Skip to content

Commit 6ed665c

Browse files
committed
Compile JS files
1 parent 15a0230 commit 6ed665c

File tree

6 files changed

+30
-48
lines changed

6 files changed

+30
-48
lines changed

public/assets/scripts/choices.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,9 +1338,9 @@
13381338
function _defineProperty(e, r, t) {
13391339
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
13401340
value: t,
1341-
enumerable: !0,
1342-
configurable: !0,
1343-
writable: !0
1341+
enumerable: true,
1342+
configurable: true,
1343+
writable: true
13441344
}) : e[r] = t, e;
13451345
}
13461346
function ownKeys(e, r) {
@@ -1356,7 +1356,7 @@
13561356
function _objectSpread2(e) {
13571357
for (var r = 1; r < arguments.length; r++) {
13581358
var t = null != arguments[r] ? arguments[r] : {};
1359-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
1359+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
13601360
_defineProperty(e, r, t[r]);
13611361
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
13621362
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -1368,7 +1368,7 @@
13681368
if ("object" != typeof t || !t) return t;
13691369
var e = t[Symbol.toPrimitive];
13701370
if (void 0 !== e) {
1371-
var i = e.call(t, r || "default");
1371+
var i = e.call(t, r);
13721372
if ("object" != typeof i) return i;
13731373
throw new TypeError("@@toPrimitive must return a primitive value.");
13741374
}
@@ -1391,16 +1391,13 @@
13911391
function isArray(value) {
13921392
return !Array.isArray ? getTag(value) === '[object Array]' : Array.isArray(value);
13931393
}
1394-
1395-
// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/baseToString.js
1396-
const INFINITY = 1 / 0;
13971394
function baseToString(value) {
13981395
// Exit early for strings to avoid a performance hit in some environments.
13991396
if (typeof value == 'string') {
14001397
return value;
14011398
}
14021399
let result = value + '';
1403-
return result == '0' && 1 / value == -INFINITY ? '-0' : result;
1400+
return result == '0' && 1 / value == -Infinity ? '-0' : result;
14041401
}
14051402
function toString(value) {
14061403
return value == null ? '' : baseToString(value);
@@ -1436,7 +1433,6 @@
14361433
function getTag(value) {
14371434
return value == null ? value === undefined ? '[object Undefined]' : '[object Null]' : Object.prototype.toString.call(value);
14381435
}
1439-
const EXTENDED_SEARCH_UNAVAILABLE = 'Extended search is not available';
14401436
const INCORRECT_INDEX_TYPE = "Incorrect 'index' type";
14411437
const LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY = key => `Invalid value for key ${key}`;
14421438
const PATTERN_LENGTH_TOO_LARGE = max => `Pattern length exceeds max of ${max}.`;
@@ -2690,9 +2686,7 @@
26902686
class Fuse {
26912687
constructor(docs, options = {}, index) {
26922688
this.options = _objectSpread2(_objectSpread2({}, Config), options);
2693-
if (this.options.useExtendedSearch && !true) {
2694-
throw new Error(EXTENDED_SEARCH_UNAVAILABLE);
2695-
}
2689+
if (this.options.useExtendedSearch && false) ;
26962690
this._keyStore = new KeyStore(this.options.keys);
26972691
this.setCollection(docs, index);
26982692
}

public/assets/scripts/choices.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/assets/scripts/choices.mjs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,9 @@ var NoticeTypes = {
13321332
function _defineProperty(e, r, t) {
13331333
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
13341334
value: t,
1335-
enumerable: !0,
1336-
configurable: !0,
1337-
writable: !0
1335+
enumerable: true,
1336+
configurable: true,
1337+
writable: true
13381338
}) : e[r] = t, e;
13391339
}
13401340
function ownKeys(e, r) {
@@ -1350,7 +1350,7 @@ function ownKeys(e, r) {
13501350
function _objectSpread2(e) {
13511351
for (var r = 1; r < arguments.length; r++) {
13521352
var t = null != arguments[r] ? arguments[r] : {};
1353-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
1353+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
13541354
_defineProperty(e, r, t[r]);
13551355
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
13561356
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -1362,7 +1362,7 @@ function _toPrimitive(t, r) {
13621362
if ("object" != typeof t || !t) return t;
13631363
var e = t[Symbol.toPrimitive];
13641364
if (void 0 !== e) {
1365-
var i = e.call(t, r || "default");
1365+
var i = e.call(t, r);
13661366
if ("object" != typeof i) return i;
13671367
throw new TypeError("@@toPrimitive must return a primitive value.");
13681368
}
@@ -1385,16 +1385,13 @@ function _toPropertyKey(t) {
13851385
function isArray(value) {
13861386
return !Array.isArray ? getTag(value) === '[object Array]' : Array.isArray(value);
13871387
}
1388-
1389-
// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/baseToString.js
1390-
const INFINITY = 1 / 0;
13911388
function baseToString(value) {
13921389
// Exit early for strings to avoid a performance hit in some environments.
13931390
if (typeof value == 'string') {
13941391
return value;
13951392
}
13961393
let result = value + '';
1397-
return result == '0' && 1 / value == -INFINITY ? '-0' : result;
1394+
return result == '0' && 1 / value == -Infinity ? '-0' : result;
13981395
}
13991396
function toString(value) {
14001397
return value == null ? '' : baseToString(value);
@@ -1430,7 +1427,6 @@ function isBlank(value) {
14301427
function getTag(value) {
14311428
return value == null ? value === undefined ? '[object Undefined]' : '[object Null]' : Object.prototype.toString.call(value);
14321429
}
1433-
const EXTENDED_SEARCH_UNAVAILABLE = 'Extended search is not available';
14341430
const INCORRECT_INDEX_TYPE = "Incorrect 'index' type";
14351431
const LOGICAL_SEARCH_INVALID_QUERY_FOR_KEY = key => `Invalid value for key ${key}`;
14361432
const PATTERN_LENGTH_TOO_LARGE = max => `Pattern length exceeds max of ${max}.`;
@@ -2684,9 +2680,7 @@ function format(results, docs, {
26842680
class Fuse {
26852681
constructor(docs, options = {}, index) {
26862682
this.options = _objectSpread2(_objectSpread2({}, Config), options);
2687-
if (this.options.useExtendedSearch && !true) {
2688-
throw new Error(EXTENDED_SEARCH_UNAVAILABLE);
2689-
}
2683+
if (this.options.useExtendedSearch && false) ;
26902684
this._keyStore = new KeyStore(this.options.keys);
26912685
this.setCollection(docs, index);
26922686
}

public/assets/scripts/choices.search-basic.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,9 +1338,9 @@
13381338
function _defineProperty(e, r, t) {
13391339
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
13401340
value: t,
1341-
enumerable: !0,
1342-
configurable: !0,
1343-
writable: !0
1341+
enumerable: true,
1342+
configurable: true,
1343+
writable: true
13441344
}) : e[r] = t, e;
13451345
}
13461346
function ownKeys(e, r) {
@@ -1356,7 +1356,7 @@
13561356
function _objectSpread2(e) {
13571357
for (var r = 1; r < arguments.length; r++) {
13581358
var t = null != arguments[r] ? arguments[r] : {};
1359-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
1359+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
13601360
_defineProperty(e, r, t[r]);
13611361
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
13621362
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -1368,7 +1368,7 @@
13681368
if ("object" != typeof t || !t) return t;
13691369
var e = t[Symbol.toPrimitive];
13701370
if (void 0 !== e) {
1371-
var i = e.call(t, r || "default");
1371+
var i = e.call(t, r);
13721372
if ("object" != typeof i) return i;
13731373
throw new TypeError("@@toPrimitive must return a primitive value.");
13741374
}
@@ -1391,16 +1391,13 @@
13911391
function isArray(value) {
13921392
return !Array.isArray ? getTag(value) === '[object Array]' : Array.isArray(value);
13931393
}
1394-
1395-
// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/baseToString.js
1396-
const INFINITY = 1 / 0;
13971394
function baseToString(value) {
13981395
// Exit early for strings to avoid a performance hit in some environments.
13991396
if (typeof value == 'string') {
14001397
return value;
14011398
}
14021399
let result = value + '';
1403-
return result == '0' && 1 / value == -INFINITY ? '-0' : result;
1400+
return result == '0' && 1 / value == -Infinity ? '-0' : result;
14041401
}
14051402
function toString(value) {
14061403
return value == null ? '' : baseToString(value);
@@ -2269,7 +2266,7 @@
22692266
class Fuse {
22702267
constructor(docs, options = {}, index) {
22712268
this.options = _objectSpread2(_objectSpread2({}, Config), options);
2272-
if (this.options.useExtendedSearch && !false) {
2269+
if (this.options.useExtendedSearch && true) {
22732270
throw new Error(EXTENDED_SEARCH_UNAVAILABLE);
22742271
}
22752272
this._keyStore = new KeyStore(this.options.keys);

public/assets/scripts/choices.search-basic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/assets/scripts/choices.search-basic.mjs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,9 @@ var NoticeTypes = {
13321332
function _defineProperty(e, r, t) {
13331333
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
13341334
value: t,
1335-
enumerable: !0,
1336-
configurable: !0,
1337-
writable: !0
1335+
enumerable: true,
1336+
configurable: true,
1337+
writable: true
13381338
}) : e[r] = t, e;
13391339
}
13401340
function ownKeys(e, r) {
@@ -1350,7 +1350,7 @@ function ownKeys(e, r) {
13501350
function _objectSpread2(e) {
13511351
for (var r = 1; r < arguments.length; r++) {
13521352
var t = null != arguments[r] ? arguments[r] : {};
1353-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
1353+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
13541354
_defineProperty(e, r, t[r]);
13551355
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
13561356
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -1362,7 +1362,7 @@ function _toPrimitive(t, r) {
13621362
if ("object" != typeof t || !t) return t;
13631363
var e = t[Symbol.toPrimitive];
13641364
if (void 0 !== e) {
1365-
var i = e.call(t, r || "default");
1365+
var i = e.call(t, r);
13661366
if ("object" != typeof i) return i;
13671367
throw new TypeError("@@toPrimitive must return a primitive value.");
13681368
}
@@ -1385,16 +1385,13 @@ function _toPropertyKey(t) {
13851385
function isArray(value) {
13861386
return !Array.isArray ? getTag(value) === '[object Array]' : Array.isArray(value);
13871387
}
1388-
1389-
// Adapted from: https://github.com/lodash/lodash/blob/master/.internal/baseToString.js
1390-
const INFINITY = 1 / 0;
13911388
function baseToString(value) {
13921389
// Exit early for strings to avoid a performance hit in some environments.
13931390
if (typeof value == 'string') {
13941391
return value;
13951392
}
13961393
let result = value + '';
1397-
return result == '0' && 1 / value == -INFINITY ? '-0' : result;
1394+
return result == '0' && 1 / value == -Infinity ? '-0' : result;
13981395
}
13991396
function toString(value) {
14001397
return value == null ? '' : baseToString(value);
@@ -2263,7 +2260,7 @@ function format(results, docs, {
22632260
class Fuse {
22642261
constructor(docs, options = {}, index) {
22652262
this.options = _objectSpread2(_objectSpread2({}, Config), options);
2266-
if (this.options.useExtendedSearch && !false) {
2263+
if (this.options.useExtendedSearch && true) {
22672264
throw new Error(EXTENDED_SEARCH_UNAVAILABLE);
22682265
}
22692266
this._keyStore = new KeyStore(this.options.keys);

0 commit comments

Comments
 (0)