ba-js-common-header 0.0.49 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ba-js-common-header.es.js +1716 -1597
- package/dist/ba-js-common-header.umd.js +1716 -1597
- package/dist/style.css +268 -84
- package/package.json +3 -2
|
@@ -2818,9 +2818,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2818
2818
|
DOMException.prototype = Object.create(Error.prototype);
|
|
2819
2819
|
DOMException.prototype.constructor = DOMException;
|
|
2820
2820
|
}
|
|
2821
|
-
function fetch$1(input,
|
|
2821
|
+
function fetch$1(input, init2) {
|
|
2822
2822
|
return new Promise(function(resolve2, reject) {
|
|
2823
|
-
var request = new Request(input,
|
|
2823
|
+
var request = new Request(input, init2);
|
|
2824
2824
|
if (request.signal && request.signal.aborted) {
|
|
2825
2825
|
return reject(new DOMException("Aborted", "AbortError"));
|
|
2826
2826
|
}
|
|
@@ -2875,9 +2875,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
2875
2875
|
xhr.responseType = "arraybuffer";
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
2878
|
-
if (
|
|
2879
|
-
Object.getOwnPropertyNames(
|
|
2880
|
-
xhr.setRequestHeader(name, normalizeValue(
|
|
2878
|
+
if (init2 && typeof init2.headers === "object" && !(init2.headers instanceof Headers)) {
|
|
2879
|
+
Object.getOwnPropertyNames(init2.headers).forEach(function(name) {
|
|
2880
|
+
xhr.setRequestHeader(name, normalizeValue(init2.headers[name]));
|
|
2881
2881
|
});
|
|
2882
2882
|
} else {
|
|
2883
2883
|
request.headers.forEach(function(value, name) {
|
|
@@ -8490,7 +8490,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8490
8490
|
function isObjectLike$6(value) {
|
|
8491
8491
|
return !!value && typeof value == "object";
|
|
8492
8492
|
}
|
|
8493
|
-
var assign$
|
|
8493
|
+
var assign$4 = createAssigner(function(object, source) {
|
|
8494
8494
|
if (nonEnumShadows || isPrototype$2(source) || isArrayLike$2(source)) {
|
|
8495
8495
|
copyObject(source, keys$4(source), object);
|
|
8496
8496
|
return;
|
|
@@ -8504,7 +8504,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8504
8504
|
function keys$4(object) {
|
|
8505
8505
|
return isArrayLike$2(object) ? arrayLikeKeys$2(object) : baseKeys$2(object);
|
|
8506
8506
|
}
|
|
8507
|
-
var lodash_assign = assign$
|
|
8507
|
+
var lodash_assign = assign$4;
|
|
8508
8508
|
var lodash_find = { exports: {} };
|
|
8509
8509
|
(function(module2, exports3) {
|
|
8510
8510
|
var LARGE_ARRAY_SIZE2 = 200;
|
|
@@ -14128,7 +14128,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14128
14128
|
{
|
|
14129
14129
|
title: "ES Ipsum Dolor Sem Ligula",
|
|
14130
14130
|
url: "#",
|
|
14131
|
-
date: "
|
|
14131
|
+
date: "2023-01-05"
|
|
14132
14132
|
}
|
|
14133
14133
|
]
|
|
14134
14134
|
},
|
|
@@ -14473,7 +14473,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14473
14473
|
};
|
|
14474
14474
|
var checkPropTypes_1 = checkPropTypes$1;
|
|
14475
14475
|
var ReactIs$1 = reactIs$2.exports;
|
|
14476
|
-
var assign$
|
|
14476
|
+
var assign$3 = objectAssign$1;
|
|
14477
14477
|
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
14478
14478
|
var has$1 = has$3;
|
|
14479
14479
|
var checkPropTypes = checkPropTypes_1;
|
|
@@ -14764,7 +14764,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
14764
14764
|
if (propType !== "object") {
|
|
14765
14765
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
14766
14766
|
}
|
|
14767
|
-
var allKeys = assign$
|
|
14767
|
+
var allKeys = assign$3({}, props[propName], shapeTypes);
|
|
14768
14768
|
for (var key in allKeys) {
|
|
14769
14769
|
var checker = shapeTypes[key];
|
|
14770
14770
|
if (has$1(shapeTypes, key) && typeof checker !== "function") {
|
|
@@ -15181,9 +15181,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
15181
15181
|
case REACT_LAZY_TYPE: {
|
|
15182
15182
|
var lazyComponent = type;
|
|
15183
15183
|
var payload = lazyComponent._payload;
|
|
15184
|
-
var
|
|
15184
|
+
var init2 = lazyComponent._init;
|
|
15185
15185
|
try {
|
|
15186
|
-
return getComponentName(
|
|
15186
|
+
return getComponentName(init2(payload));
|
|
15187
15187
|
} catch (x2) {
|
|
15188
15188
|
return null;
|
|
15189
15189
|
}
|
|
@@ -15429,9 +15429,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
15429
15429
|
case REACT_LAZY_TYPE: {
|
|
15430
15430
|
var lazyComponent = type;
|
|
15431
15431
|
var payload = lazyComponent._payload;
|
|
15432
|
-
var
|
|
15432
|
+
var init2 = lazyComponent._init;
|
|
15433
15433
|
try {
|
|
15434
|
-
return describeUnknownElementTypeFrameInDEV(
|
|
15434
|
+
return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn);
|
|
15435
15435
|
} catch (x2) {
|
|
15436
15436
|
}
|
|
15437
15437
|
}
|
|
@@ -15857,7 +15857,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
15857
15857
|
{
|
|
15858
15858
|
jsxDevRuntime.exports = reactJsxDevRuntime_development;
|
|
15859
15859
|
}
|
|
15860
|
-
var _jsxFileName$
|
|
15860
|
+
var _jsxFileName$e = "/Users/patrick/git/ba-js-common-header/node_modules/react-redux/es/components/Provider.js";
|
|
15861
15861
|
function Provider(_ref) {
|
|
15862
15862
|
var store2 = _ref.store, context = _ref.context, children = _ref.children;
|
|
15863
15863
|
var contextValue = require$$0.useMemo(function() {
|
|
@@ -15887,7 +15887,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
15887
15887
|
value: contextValue,
|
|
15888
15888
|
children
|
|
15889
15889
|
}, void 0, false, {
|
|
15890
|
-
fileName: _jsxFileName$
|
|
15890
|
+
fileName: _jsxFileName$e,
|
|
15891
15891
|
lineNumber: 36,
|
|
15892
15892
|
columnNumber: 23
|
|
15893
15893
|
}, this);
|
|
@@ -18032,7 +18032,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
18032
18032
|
username: "",
|
|
18033
18033
|
hotelId: 0,
|
|
18034
18034
|
guideId: 0,
|
|
18035
|
-
hotelGroupId: 0
|
|
18035
|
+
hotelGroupId: 0,
|
|
18036
|
+
group: ""
|
|
18036
18037
|
},
|
|
18037
18038
|
reducers: {
|
|
18038
18039
|
setUserInfo: (state, action) => action.payload
|
|
@@ -18493,12 +18494,20 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
18493
18494
|
var logger = /* @__PURE__ */ getDefaultExportFromCjs(reduxLogger.exports);
|
|
18494
18495
|
const notificationsSlice = createSlice({
|
|
18495
18496
|
name: "notifications",
|
|
18496
|
-
initialState: {
|
|
18497
|
+
initialState: {
|
|
18498
|
+
notifications: {},
|
|
18499
|
+
showNotifications: false
|
|
18500
|
+
},
|
|
18497
18501
|
reducers: {
|
|
18498
|
-
setNotifications: (state, action) =>
|
|
18502
|
+
setNotifications: (state, action) => __spreadProps(__spreadValues({}, state), {
|
|
18503
|
+
notifications: action.payload
|
|
18504
|
+
}),
|
|
18505
|
+
setShowNotifications: (state, action) => __spreadProps(__spreadValues({}, state), {
|
|
18506
|
+
showNotifications: action.payload
|
|
18507
|
+
})
|
|
18499
18508
|
}
|
|
18500
18509
|
});
|
|
18501
|
-
const { setNotifications } = notificationsSlice.actions;
|
|
18510
|
+
const { setNotifications, setShowNotifications } = notificationsSlice.actions;
|
|
18502
18511
|
var notificationsReducer = notificationsSlice.reducer;
|
|
18503
18512
|
const hotelsSlice = createSlice({
|
|
18504
18513
|
name: "hotels",
|
|
@@ -18534,18 +18543,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
18534
18543
|
},
|
|
18535
18544
|
middleware: (getDefaultMiddleware2) => getDefaultMiddleware2().concat(devMiddlewares)
|
|
18536
18545
|
});
|
|
18537
|
-
var _jsxFileName$
|
|
18546
|
+
var _jsxFileName$d = "/Users/patrick/git/ba-js-common-header/src/hocs/withReduxProvider.jsx";
|
|
18538
18547
|
function withReduxProvider(Component) {
|
|
18539
18548
|
return function(props) {
|
|
18540
18549
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Provider, {
|
|
18541
18550
|
store: store$4,
|
|
18542
18551
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Component, __spreadValues({}, props), void 0, false, {
|
|
18543
|
-
fileName: _jsxFileName$
|
|
18552
|
+
fileName: _jsxFileName$d,
|
|
18544
18553
|
lineNumber: 8,
|
|
18545
18554
|
columnNumber: 9
|
|
18546
18555
|
}, this)
|
|
18547
18556
|
}, void 0, false, {
|
|
18548
|
-
fileName: _jsxFileName$
|
|
18557
|
+
fileName: _jsxFileName$d,
|
|
18549
18558
|
lineNumber: 7,
|
|
18550
18559
|
columnNumber: 7
|
|
18551
18560
|
}, this);
|
|
@@ -19608,7 +19617,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19608
19617
|
let colors$1 = null;
|
|
19609
19618
|
let skipAnimation = false;
|
|
19610
19619
|
let willAdvance = noop$2;
|
|
19611
|
-
const assign$
|
|
19620
|
+
const assign$2 = (globals2) => {
|
|
19612
19621
|
if (globals2.to)
|
|
19613
19622
|
to = globals2.to;
|
|
19614
19623
|
if (globals2.now)
|
|
@@ -19645,7 +19654,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
19645
19654
|
get willAdvance() {
|
|
19646
19655
|
return willAdvance;
|
|
19647
19656
|
},
|
|
19648
|
-
assign: assign$
|
|
19657
|
+
assign: assign$2
|
|
19649
19658
|
});
|
|
19650
19659
|
const startQueue = /* @__PURE__ */ new Set();
|
|
19651
19660
|
let currentFrame = [];
|
|
@@ -22098,8 +22107,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22098
22107
|
const ctx = makeContext(SpringContext, {});
|
|
22099
22108
|
SpringContext.Provider = ctx.Provider;
|
|
22100
22109
|
SpringContext.Consumer = ctx.Consumer;
|
|
22101
|
-
function makeContext(target,
|
|
22102
|
-
Object.assign(target, require$$0__namespace.createContext(
|
|
22110
|
+
function makeContext(target, init2) {
|
|
22111
|
+
Object.assign(target, require$$0__namespace.createContext(init2));
|
|
22103
22112
|
target.Provider._context = target;
|
|
22104
22113
|
target.Consumer._context = target;
|
|
22105
22114
|
return target;
|
|
@@ -22829,7 +22838,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22829
22838
|
}
|
|
22830
22839
|
});
|
|
22831
22840
|
const animated = host.animated;
|
|
22832
|
-
var _jsxFileName$
|
|
22841
|
+
var _jsxFileName$c = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Logo.jsx";
|
|
22833
22842
|
function Logo() {
|
|
22834
22843
|
const {
|
|
22835
22844
|
product
|
|
@@ -22864,27 +22873,27 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22864
22873
|
href,
|
|
22865
22874
|
style: styles,
|
|
22866
22875
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
22867
|
-
className: "hd-brand",
|
|
22876
|
+
className: "me-1 hd-brand",
|
|
22868
22877
|
children: "Bookassist"
|
|
22869
22878
|
}, void 0, false, {
|
|
22870
|
-
fileName: _jsxFileName$
|
|
22879
|
+
fileName: _jsxFileName$c,
|
|
22871
22880
|
lineNumber: 26,
|
|
22872
22881
|
columnNumber: 15
|
|
22873
22882
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("strong", {
|
|
22874
22883
|
className: "hd-product",
|
|
22875
22884
|
children: name
|
|
22876
22885
|
}, void 0, false, {
|
|
22877
|
-
fileName: _jsxFileName$
|
|
22886
|
+
fileName: _jsxFileName$c,
|
|
22878
22887
|
lineNumber: 27,
|
|
22879
22888
|
columnNumber: 15
|
|
22880
22889
|
}, this)]
|
|
22881
22890
|
}, void 0, true, {
|
|
22882
|
-
fileName: _jsxFileName$
|
|
22891
|
+
fileName: _jsxFileName$c,
|
|
22883
22892
|
lineNumber: 25,
|
|
22884
22893
|
columnNumber: 13
|
|
22885
22894
|
}, this))
|
|
22886
22895
|
}, void 0, false, {
|
|
22887
|
-
fileName: _jsxFileName$
|
|
22896
|
+
fileName: _jsxFileName$c,
|
|
22888
22897
|
lineNumber: 18,
|
|
22889
22898
|
columnNumber: 5
|
|
22890
22899
|
}, this);
|
|
@@ -22902,6 +22911,93 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22902
22911
|
}
|
|
22903
22912
|
return id2;
|
|
22904
22913
|
}, "");
|
|
22914
|
+
/*! js-cookie v3.0.1 | MIT */
|
|
22915
|
+
function assign$1(target) {
|
|
22916
|
+
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
22917
|
+
var source = arguments[i2];
|
|
22918
|
+
for (var key in source) {
|
|
22919
|
+
target[key] = source[key];
|
|
22920
|
+
}
|
|
22921
|
+
}
|
|
22922
|
+
return target;
|
|
22923
|
+
}
|
|
22924
|
+
var defaultConverter = {
|
|
22925
|
+
read: function(value) {
|
|
22926
|
+
if (value[0] === '"') {
|
|
22927
|
+
value = value.slice(1, -1);
|
|
22928
|
+
}
|
|
22929
|
+
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
22930
|
+
},
|
|
22931
|
+
write: function(value) {
|
|
22932
|
+
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
22933
|
+
}
|
|
22934
|
+
};
|
|
22935
|
+
function init(converter, defaultAttributes) {
|
|
22936
|
+
function set2(key, value, attributes) {
|
|
22937
|
+
if (typeof document === "undefined") {
|
|
22938
|
+
return;
|
|
22939
|
+
}
|
|
22940
|
+
attributes = assign$1({}, defaultAttributes, attributes);
|
|
22941
|
+
if (typeof attributes.expires === "number") {
|
|
22942
|
+
attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
|
22943
|
+
}
|
|
22944
|
+
if (attributes.expires) {
|
|
22945
|
+
attributes.expires = attributes.expires.toUTCString();
|
|
22946
|
+
}
|
|
22947
|
+
key = encodeURIComponent(key).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
22948
|
+
var stringifiedAttributes = "";
|
|
22949
|
+
for (var attributeName in attributes) {
|
|
22950
|
+
if (!attributes[attributeName]) {
|
|
22951
|
+
continue;
|
|
22952
|
+
}
|
|
22953
|
+
stringifiedAttributes += "; " + attributeName;
|
|
22954
|
+
if (attributes[attributeName] === true) {
|
|
22955
|
+
continue;
|
|
22956
|
+
}
|
|
22957
|
+
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
|
22958
|
+
}
|
|
22959
|
+
return document.cookie = key + "=" + converter.write(value, key) + stringifiedAttributes;
|
|
22960
|
+
}
|
|
22961
|
+
function get2(key) {
|
|
22962
|
+
if (typeof document === "undefined" || arguments.length && !key) {
|
|
22963
|
+
return;
|
|
22964
|
+
}
|
|
22965
|
+
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
|
22966
|
+
var jar = {};
|
|
22967
|
+
for (var i2 = 0; i2 < cookies.length; i2++) {
|
|
22968
|
+
var parts = cookies[i2].split("=");
|
|
22969
|
+
var value = parts.slice(1).join("=");
|
|
22970
|
+
try {
|
|
22971
|
+
var foundKey = decodeURIComponent(parts[0]);
|
|
22972
|
+
jar[foundKey] = converter.read(value, foundKey);
|
|
22973
|
+
if (key === foundKey) {
|
|
22974
|
+
break;
|
|
22975
|
+
}
|
|
22976
|
+
} catch (e2) {
|
|
22977
|
+
}
|
|
22978
|
+
}
|
|
22979
|
+
return key ? jar[key] : jar;
|
|
22980
|
+
}
|
|
22981
|
+
return Object.create({
|
|
22982
|
+
set: set2,
|
|
22983
|
+
get: get2,
|
|
22984
|
+
remove: function(key, attributes) {
|
|
22985
|
+
set2(key, "", assign$1({}, attributes, {
|
|
22986
|
+
expires: -1
|
|
22987
|
+
}));
|
|
22988
|
+
},
|
|
22989
|
+
withAttributes: function(attributes) {
|
|
22990
|
+
return init(this.converter, assign$1({}, this.attributes, attributes));
|
|
22991
|
+
},
|
|
22992
|
+
withConverter: function(converter2) {
|
|
22993
|
+
return init(assign$1({}, this.converter, converter2), this.attributes);
|
|
22994
|
+
}
|
|
22995
|
+
}, {
|
|
22996
|
+
attributes: { value: Object.freeze(defaultAttributes) },
|
|
22997
|
+
converter: { value: Object.freeze(converter) }
|
|
22998
|
+
});
|
|
22999
|
+
}
|
|
23000
|
+
var api = init(defaultConverter, { path: "/" });
|
|
22905
23001
|
var commonThin = {};
|
|
22906
23002
|
var check = function(it) {
|
|
22907
23003
|
return it && it.Math == Math && it;
|
|
@@ -24489,9 +24585,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
24489
24585
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
24490
24586
|
var IS_IE11 = !global$7.ActiveXObject && "ActiveXObject" in global$7;
|
|
24491
24587
|
var InternalWeakMap;
|
|
24492
|
-
var wrapper = function(
|
|
24588
|
+
var wrapper = function(init2) {
|
|
24493
24589
|
return function WeakMap2() {
|
|
24494
|
-
return
|
|
24590
|
+
return init2(this, arguments.length ? arguments[0] : void 0);
|
|
24495
24591
|
};
|
|
24496
24592
|
};
|
|
24497
24593
|
var $WeakMap = collection("WeakMap", wrapper, collectionWeak);
|
|
@@ -25517,11 +25613,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
25517
25613
|
function ArrowAngleDown(props) {
|
|
25518
25614
|
return /* @__PURE__ */ React$q.createElement("svg", _extends$q({
|
|
25519
25615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25616
|
+
fill: "currentColor",
|
|
25520
25617
|
viewBox: "0 0 100 100",
|
|
25521
25618
|
width: "1em",
|
|
25522
25619
|
height: "1em"
|
|
25523
25620
|
}, props), /* @__PURE__ */ React$q.createElement("path", {
|
|
25524
|
-
fill: "currentColor",
|
|
25525
25621
|
d: "M52.8 75.1l46.1-44.9c1.5-1.4 1.5-3.8 0-5.4-1.5-1.4-4-1.4-5.5 0L50 67.1 6.6 24.8c-1.5-1.4-3.9-1.4-5.5 0-.7.7-1.1 1.8-1.1 2.7 0 .9.4 2 1.1 2.7l46.1 44.9c.7.7 1.8 1.1 2.8 1.1 1 .1 2-.4 2.8-1.1z"
|
|
25526
25622
|
}));
|
|
25527
25623
|
}
|
|
@@ -25599,11 +25695,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
25599
25695
|
function ArrowAngleLeft(props) {
|
|
25600
25696
|
return /* @__PURE__ */ React$p.createElement("svg", _extends$p({
|
|
25601
25697
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25698
|
+
fill: "currentColor",
|
|
25602
25699
|
viewBox: "0 0 100 100",
|
|
25603
25700
|
width: "1em",
|
|
25604
25701
|
height: "1em"
|
|
25605
25702
|
}, props), /* @__PURE__ */ React$p.createElement("path", {
|
|
25606
|
-
fill: "currentColor",
|
|
25607
25703
|
d: "M24.9 52.8l44.9 46.1c1.4 1.5 3.8 1.5 5.4 0 1.4-1.5 1.4-4 0-5.5L32.9 50 75.2 6.6c1.4-1.5 1.4-3.9 0-5.5C74.5.4 73.4 0 72.5 0s-2 .4-2.7 1.1L24.9 47.2c-.7.7-1.1 1.8-1.1 2.8s.4 2 1.1 2.8z"
|
|
25608
25704
|
}));
|
|
25609
25705
|
}
|
|
@@ -25681,11 +25777,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
25681
25777
|
function ArrowAngleRight(props) {
|
|
25682
25778
|
return /* @__PURE__ */ React$o.createElement("svg", _extends$o({
|
|
25683
25779
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25780
|
+
fill: "currentColor",
|
|
25684
25781
|
viewBox: "0 0 100 100",
|
|
25685
25782
|
width: "1em",
|
|
25686
25783
|
height: "1em"
|
|
25687
25784
|
}, props), /* @__PURE__ */ React$o.createElement("path", {
|
|
25688
|
-
fill: "currentColor",
|
|
25689
25785
|
d: "M75.1 47.2l-44.9-46c-1.4-1.5-3.8-1.5-5.4 0-1.4 1.5-1.4 4 0 5.5L67.1 50 24.8 93.4c-1.4 1.5-1.4 3.9 0 5.5.7.7 1.8 1.1 2.7 1.1.9 0 2-.4 2.7-1.1l44.9-46.1c.7-.7 1.1-1.8 1.1-2.8s-.4-2-1.1-2.8z"
|
|
25690
25786
|
}));
|
|
25691
25787
|
}
|
|
@@ -25763,11 +25859,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
25763
25859
|
function ArrowAngleUp(props) {
|
|
25764
25860
|
return /* @__PURE__ */ React$n.createElement("svg", _extends$n({
|
|
25765
25861
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25862
|
+
fill: "currentColor",
|
|
25766
25863
|
viewBox: "0 0 100 100",
|
|
25767
25864
|
width: "1em",
|
|
25768
25865
|
height: "1em"
|
|
25769
25866
|
}, props), /* @__PURE__ */ React$n.createElement("path", {
|
|
25770
|
-
fill: "currentColor",
|
|
25771
25867
|
d: "M47.2 24.9l-46 44.9c-1.5 1.4-1.5 3.8 0 5.4 1.5 1.4 4 1.4 5.5 0L50 32.9l43.4 42.3c1.5 1.4 3.9 1.4 5.5 0 .7-.7 1.1-1.8 1.1-2.7s-.4-2-1.1-2.7L52.8 24.9c-.7-.7-1.8-1.1-2.8-1.1-1-.1-2 .4-2.8 1.1z"
|
|
25772
25868
|
}));
|
|
25773
25869
|
}
|
|
@@ -25845,11 +25941,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
25845
25941
|
function ArrowDown(props) {
|
|
25846
25942
|
return /* @__PURE__ */ React$m.createElement("svg", _extends$m({
|
|
25847
25943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25944
|
+
fill: "currentColor",
|
|
25848
25945
|
viewBox: "0 0 100 100",
|
|
25849
25946
|
width: "1em",
|
|
25850
25947
|
height: "1em"
|
|
25851
25948
|
}, props), /* @__PURE__ */ React$m.createElement("path", {
|
|
25852
|
-
fill: "currentColor",
|
|
25853
25949
|
d: "M52.7 98.7l46-44.9c1.5-1.4 1.5-3.8 0-5.4-1.5-1.4-4-1.4-5.5 0L53.8 86.9V4.2c0-2.2-1.8-4-4-4s-4 1.8-4 4v82.6L6.5 48.4C5 47 2.6 47 1 48.4c-.7.7-1.1 1.8-1.1 2.7s.4 2 1.1 2.7l46.1 44.9c.7.7 1.8 1.1 2.8 1.1 1 .1 2-.4 2.8-1.1z"
|
|
25854
25950
|
}));
|
|
25855
25951
|
}
|
|
@@ -25927,11 +26023,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
25927
26023
|
function ArrowLeft(props) {
|
|
25928
26024
|
return /* @__PURE__ */ React$l.createElement("svg", _extends$l({
|
|
25929
26025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26026
|
+
fill: "currentColor",
|
|
25930
26027
|
viewBox: "0 0 100 100",
|
|
25931
26028
|
width: "1em",
|
|
25932
26029
|
height: "1em"
|
|
25933
26030
|
}, props), /* @__PURE__ */ React$l.createElement("path", {
|
|
25934
|
-
fill: "currentColor",
|
|
25935
26031
|
d: "M1.1 52.8l44.9 46c1.4 1.5 3.8 1.5 5.4 0 1.4-1.5 1.4-4 0-5.5L13 54h82.7c2.2 0 4-1.8 4-4s-1.8-4-4-4H13L51.4 6.6c1.4-1.5 1.4-3.9 0-5.5C50.7.4 49.6 0 48.7 0s-2 .4-2.7 1.1L1.1 47.2C.4 47.9 0 49 0 50c-.1 1 .4 2 1.1 2.8z"
|
|
25936
26032
|
}));
|
|
25937
26033
|
}
|
|
@@ -26009,11 +26105,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26009
26105
|
function ArrowRight(props) {
|
|
26010
26106
|
return /* @__PURE__ */ React$k.createElement("svg", _extends$k({
|
|
26011
26107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26108
|
+
fill: "currentColor",
|
|
26012
26109
|
viewBox: "0 0 100 100",
|
|
26013
26110
|
width: "1em",
|
|
26014
26111
|
height: "1em"
|
|
26015
26112
|
}, props), /* @__PURE__ */ React$k.createElement("path", {
|
|
26016
|
-
fill: "currentColor",
|
|
26017
26113
|
d: "M98.6 47.2l-44.9-46c-1.4-1.5-3.8-1.5-5.4 0-1.4 1.5-1.4 4 0 5.5L86.7 46H4c-2.2 0-4 1.8-4 4s1.8 4 4 4h82.6L48.3 93.4c-1.4 1.5-1.4 3.9 0 5.5.7.7 1.8 1.1 2.7 1.1s2-.4 2.7-1.1l44.9-46.1c.7-.7 1.1-1.8 1.1-2.8.1-1-.4-2-1.1-2.8z"
|
|
26018
26114
|
}));
|
|
26019
26115
|
}
|
|
@@ -26091,11 +26187,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26091
26187
|
function ArrowUp(props) {
|
|
26092
26188
|
return /* @__PURE__ */ React$j.createElement("svg", _extends$j({
|
|
26093
26189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26190
|
+
fill: "currentColor",
|
|
26094
26191
|
viewBox: "0 0 100 100",
|
|
26095
26192
|
width: "1em",
|
|
26096
26193
|
height: "1em"
|
|
26097
26194
|
}, props), /* @__PURE__ */ React$j.createElement("path", {
|
|
26098
|
-
fill: "currentColor",
|
|
26099
26195
|
d: "M47 1.3L1 46.2C-.5 47.6-.5 50 1 51.6c1.5 1.4 4 1.4 5.5 0l39.3-38.4v82.7c0 2.2 1.8 4 4 4s4-1.8 4-4V13.2l39.4 38.4c1.5 1.4 3.9 1.4 5.5 0 .7-.7 1.1-1.8 1.1-2.7s-.4-2-1.1-2.7L52.6 1.3C51.9.6 50.8.2 49.8.2c-1-.1-2 .4-2.8 1.1z"
|
|
26100
26196
|
}));
|
|
26101
26197
|
}
|
|
@@ -26173,11 +26269,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26173
26269
|
function Bell(props) {
|
|
26174
26270
|
return /* @__PURE__ */ React$i.createElement("svg", _extends$i({
|
|
26175
26271
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26272
|
+
fill: "currentColor",
|
|
26176
26273
|
viewBox: "0 0 100 100",
|
|
26177
26274
|
width: "1em",
|
|
26178
26275
|
height: "1em"
|
|
26179
26276
|
}, props), /* @__PURE__ */ React$i.createElement("path", {
|
|
26180
|
-
fill: "currentColor",
|
|
26181
26277
|
d: "M89.1 70.5c-6.3-5.3-9.9-13.1-9.9-21.4V37.5c0-14.7-10.9-26.8-25-28.8V4.2C54.2 1.9 52.3 0 50 0s-4.2 1.9-4.2 4.2v4.5c-14.1 2-25 14.2-25 28.8v11.6c0 8.2-3.6 16-10 21.4-1.6 1.4-2.5 3.4-2.5 5.5 0 4 3.3 7.3 7.3 7.3h68.8c4 0 7.3-3.3 7.3-7.3 0-2.1-1-4.1-2.6-5.5zM50 100c7.5 0 13.9-5.4 15.3-12.5H34.7C36.1 94.6 42.5 100 50 100z"
|
|
26182
26278
|
}));
|
|
26183
26279
|
}
|
|
@@ -26255,11 +26351,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26255
26351
|
function Close(props) {
|
|
26256
26352
|
return /* @__PURE__ */ React$h.createElement("svg", _extends$h({
|
|
26257
26353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26354
|
+
fill: "currentColor",
|
|
26258
26355
|
viewBox: "0 0 100 100",
|
|
26259
26356
|
width: "1em",
|
|
26260
26357
|
height: "1em"
|
|
26261
26358
|
}, props), /* @__PURE__ */ React$h.createElement("path", {
|
|
26262
|
-
fill: "currentColor",
|
|
26263
26359
|
d: "M1 99c1.4 1.4 3.6 1.4 5.1 0L50 55.1 93.9 99c1.4 1.4 3.6 1.4 5.1 0 1.4-1.4 1.4-3.6 0-5.1L55 50 99 6.1c1.4-1.4 1.4-3.6 0-5.1-1.4-1.4-3.6-1.4-5.1 0L50 44.9 6.1 1C4.5-.2 2.4 0 1 1.5-.1 2.8-.1 4.8 1 6.1L44.9 50 1 93.9C-.3 95.3-.3 97.5 1 99z"
|
|
26264
26360
|
}));
|
|
26265
26361
|
}
|
|
@@ -26340,19 +26436,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26340
26436
|
id: "prefix__Capa_1",
|
|
26341
26437
|
x: 0,
|
|
26342
26438
|
y: 0,
|
|
26439
|
+
fill: "currentColor",
|
|
26343
26440
|
viewBox: "0 0 100 100",
|
|
26344
26441
|
xmlSpace: "preserve",
|
|
26345
26442
|
width: "1em",
|
|
26346
26443
|
height: "1em"
|
|
26347
|
-
}, props), /* @__PURE__ */ React$g.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$g.createElement("
|
|
26348
|
-
fill: "currentColor"
|
|
26349
|
-
}, /* @__PURE__ */ React$g.createElement("path", {
|
|
26444
|
+
}, props), /* @__PURE__ */ React$g.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$g.createElement("path", {
|
|
26350
26445
|
d: "M50 100c-13.4 0-25.9-5.2-35.4-14.6C5.2 75.9 0 63.4 0 50s5.2-25.9 14.6-35.4C24.1 5.2 36.7 0 50 0c10.1 0 19.8 3 28.2 8.7 1.3.9 1.7 2.7.8 4-.5.8-1.4 1.3-2.4 1.3-.6 0-1.1-.2-1.6-.5-7.4-5-16-7.7-24.9-7.7-11.8 0-22.9 4.6-31.3 13-8.4 8.3-13 19.4-13 31.2s4.6 22.9 12.9 31.3C27 89.6 38.1 94.2 50 94.2s22.9-4.6 31.3-12.9c15-15.1 17.2-38.7 5.2-56.3-.9-1.3-.6-3.1.7-4 .5-.3 1.1-.5 1.6-.5 1 0 1.8.5 2.4 1.3 13.6 19.8 11.1 46.6-5.9 63.6-9.4 9.4-22 14.6-35.3 14.6z",
|
|
26351
26446
|
className: "prefix__st0"
|
|
26352
26447
|
}), /* @__PURE__ */ React$g.createElement("path", {
|
|
26353
26448
|
d: "M83.2 20c-.6 0-1.1-.2-1.6-.5-1.1-.8-1.6-2.2-1.1-3.5.4-1.1 1.5-1.8 2.7-1.8h.2c1.2.1 2.3.9 2.6 2.1.3 1.1-.1 2.3-1 3-.6.5-1.2.7-1.8.7zM64.7 62.5c.8 0 1.5.3 2 .8 1.1 1.1 1.1 3 0 4.1-4.4 4.4-10.3 6.9-16.6 6.9s-12.2-2.4-16.6-6.9c-1.1-1.1-1.1-3 0-4.1.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 3.3 3.3 7.8 5.2 12.5 5.2s9.2-1.8 12.5-5.2c.7-.5 1.4-.8 2.2-.8zM70.1 52.9c-4.2 0-8.1-1.6-11-4.6-1.1-1.1-1.1-3 0-4.1.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.8 1.8 4.3 2.9 6.9 2.9s5.1-1 6.9-2.9c.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.1 1.1 1.1 3 0 4.1-2.7 3-6.7 4.6-10.8 4.6zM30.1 52.9c-4.2 0-8.1-1.6-11-4.6-1.1-1.1-1.1-3 0-4.1.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.8 1.8 4.3 2.9 6.9 2.9s5.1-1 6.9-2.9c.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.1 1.1 1.1 3 0 4.1-2.7 3-6.6 4.6-10.8 4.6z",
|
|
26354
26449
|
className: "prefix__st0"
|
|
26355
|
-
}))
|
|
26450
|
+
}));
|
|
26356
26451
|
}
|
|
26357
26452
|
var EmojiSad$1 = {};
|
|
26358
26453
|
function _typeof$f(obj) {
|
|
@@ -26431,19 +26526,18 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26431
26526
|
id: "prefix__Capa_1",
|
|
26432
26527
|
x: 0,
|
|
26433
26528
|
y: 0,
|
|
26529
|
+
fill: "currentColor",
|
|
26434
26530
|
viewBox: "0 0 100 100",
|
|
26435
26531
|
xmlSpace: "preserve",
|
|
26436
26532
|
width: "1em",
|
|
26437
26533
|
height: "1em"
|
|
26438
|
-
}, props), /* @__PURE__ */ React$f.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$f.createElement("
|
|
26439
|
-
fill: "currentColor"
|
|
26440
|
-
}, /* @__PURE__ */ React$f.createElement("path", {
|
|
26534
|
+
}, props), /* @__PURE__ */ React$f.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$f.createElement("path", {
|
|
26441
26535
|
d: "M50 100c-13.4 0-25.9-5.2-35.4-14.6C5.2 75.9 0 63.4 0 50s5.2-25.9 14.6-35.4C24.1 5.2 36.7 0 50 0c10.1 0 19.8 3 28.2 8.7 1.3.9 1.7 2.7.8 4-.5.8-1.4 1.3-2.4 1.3-.6 0-1.1-.2-1.6-.5-7.4-5-16-7.7-24.9-7.7-11.8 0-22.9 4.6-31.3 13-8.4 8.3-13 19.4-13 31.2s4.6 22.9 12.9 31.3C27 89.6 38.1 94.2 50 94.2s22.9-4.6 31.3-12.9c15-15.1 17.2-38.7 5.2-56.3-.9-1.3-.6-3.1.7-4 .5-.3 1.1-.5 1.6-.5 1 0 1.8.5 2.4 1.3 13.6 19.8 11.1 46.6-5.9 63.6-9.4 9.4-22 14.6-35.3 14.6z",
|
|
26442
26536
|
className: "prefix__st0"
|
|
26443
26537
|
}), /* @__PURE__ */ React$f.createElement("path", {
|
|
26444
26538
|
d: "M83.2 20c-.6 0-1.1-.2-1.6-.5-1.1-.8-1.6-2.2-1.1-3.5.4-1.1 1.5-1.8 2.7-1.8h.2c1.2.1 2.3.9 2.6 2.1.3 1.1-.1 2.3-1 3-.6.5-1.2.7-1.8.7zM35.5 74.3c-.8 0-1.5-.3-2-.8-1.1-1.1-1.1-3 0-4.1 4.4-4.4 10.3-6.9 16.6-6.9 6.3 0 12.2 2.4 16.6 6.9 1.1 1.1 1.1 3 0 4.1-.5.5-1.3.8-2 .8-.8 0-1.5-.3-2-.8-3.3-3.3-7.8-5.2-12.5-5.2s-9.2 1.8-12.5 5.2c-.7.5-1.4.8-2.2.8zM70.1 52.9c-4.2 0-8.1-1.6-11-4.6-1.1-1.1-1.1-3 0-4.1.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.8 1.8 4.3 2.9 6.9 2.9 2.6 0 5.1-1 6.9-2.9.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.1 1.1 1.1 3 0 4.1-2.7 3-6.7 4.6-10.8 4.6zM30.1 52.9c-4.2 0-8.1-1.6-11-4.6-1.1-1.1-1.1-3 0-4.1.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.8 1.8 4.3 2.9 6.9 2.9 2.6 0 5.1-1 6.9-2.9.5-.5 1.3-.8 2-.8.8 0 1.5.3 2 .8 1.1 1.1 1.1 3 0 4.1-2.7 3-6.6 4.6-10.8 4.6z",
|
|
26445
26539
|
className: "prefix__st0"
|
|
26446
|
-
}))
|
|
26540
|
+
}));
|
|
26447
26541
|
}
|
|
26448
26542
|
var Filter$1 = {};
|
|
26449
26543
|
function _typeof$e(obj) {
|
|
@@ -26519,14 +26613,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26519
26613
|
function Filter(props) {
|
|
26520
26614
|
return /* @__PURE__ */ React$e.createElement("svg", _extends$e({
|
|
26521
26615
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26616
|
+
fill: "currentColor",
|
|
26522
26617
|
viewBox: "0 0 100 100",
|
|
26523
26618
|
width: "1em",
|
|
26524
26619
|
height: "1em"
|
|
26525
|
-
}, props), /* @__PURE__ */ React$e.createElement("
|
|
26526
|
-
fill: "currentColor"
|
|
26527
|
-
}, /* @__PURE__ */ React$e.createElement("path", {
|
|
26620
|
+
}, props), /* @__PURE__ */ React$e.createElement("path", {
|
|
26528
26621
|
d: "M96.4 17.4H42.8c0-4-3.3-7.2-7.2-7.2h-7.2c-4 0-7.2 3.3-7.2 7.2H3.6C1.6 17.4 0 19 0 21s1.7 3.6 3.6 3.6H21c0 4 3.3 7.2 7.2 7.2h7.2c4 0 7.2-3.3 7.2-7.2h53.7c2 0 3.6-1.7 3.6-3.6s-1.5-3.6-3.5-3.6zm-68.2 7.2v-7.2h7.2v7.2h-7.2zM96.4 46.4H71.8c0-4-3.3-7.2-7.2-7.2h-7.2c-4 0-7.2 3.3-7.2 7.2H3.7C1.6 46.4 0 48 0 50s1.7 3.6 3.6 3.6H50c0 4 3.3 7.2 7.2 7.2h7.2c4 0 7.2-3.3 7.2-7.2h24.7c2 0 3.6-1.7 3.6-3.6s-1.5-3.6-3.5-3.6zm-39.2 7.2v-7.2h7.2v7.2h-7.2zM96.4 75.4H42.8c0-4-3.3-7.2-7.2-7.2h-7.2c-4 0-7.2 3.3-7.2 7.2H3.6C1.6 75.4 0 77 0 79s1.7 3.6 3.6 3.6H21c0 4 3.3 7.2 7.2 7.2h7.2c4 0 7.2-3.3 7.2-7.2h53.7c2 0 3.6-1.7 3.6-3.6 0-2-1.5-3.6-3.5-3.6zm-68.2 7.2v-7.2h7.2v7.2h-7.2z"
|
|
26529
|
-
}))
|
|
26622
|
+
}));
|
|
26530
26623
|
}
|
|
26531
26624
|
var Help$1 = {};
|
|
26532
26625
|
function _typeof$d(obj) {
|
|
@@ -26602,11 +26695,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26602
26695
|
function Help(props) {
|
|
26603
26696
|
return /* @__PURE__ */ React$d.createElement("svg", _extends$d({
|
|
26604
26697
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26698
|
+
fill: "currentColor",
|
|
26605
26699
|
viewBox: "0 0 100 100",
|
|
26606
26700
|
width: "1em",
|
|
26607
26701
|
height: "1em"
|
|
26608
26702
|
}, props), /* @__PURE__ */ React$d.createElement("path", {
|
|
26609
|
-
fill: "currentColor",
|
|
26610
26703
|
d: "M50 6.5C74 6.5 93.5 26 93.5 50S74 93.5 50 93.5 6.5 74 6.5 50 26 6.5 50 6.5M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm-1.4 64.1c-2.8 0-5 2.3-5 5.1 0 2.7 2.2 5.1 5 5.1s5.1-2.4 5.1-5.1c0-2.8-2.3-5.1-5.1-5.1zm.9-38.4c-8.9 0-13 5.3-13 8.8 0 2.6 2.2 3.8 3.9 3.8 3.6 0 2.1-5.1 8.8-5.1 3.3 0 5.9 1.4 5.9 4.5 0 3.6-3.7 5.6-5.9 7.4-1.9 1.6-4.4 4.3-4.4 10 0 3.4.9 4.4 3.6 4.4 3.2 0 3.9-1.4 3.9-2.7 0-3.4.1-5.4 3.7-8.2 1.8-1.4 7.4-5.9 7.4-12s-5.5-10.9-13.9-10.9z"
|
|
26611
26704
|
}));
|
|
26612
26705
|
}
|
|
@@ -26684,14 +26777,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26684
26777
|
function Hotel(props) {
|
|
26685
26778
|
return /* @__PURE__ */ React$c.createElement("svg", _extends$c({
|
|
26686
26779
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26780
|
+
fill: "currentColor",
|
|
26687
26781
|
viewBox: "0 0 100 100",
|
|
26688
26782
|
width: "1em",
|
|
26689
26783
|
height: "1em"
|
|
26690
26784
|
}, props), /* @__PURE__ */ React$c.createElement("path", {
|
|
26691
|
-
fill: "currentColor",
|
|
26692
26785
|
d: "M85 6.5c4.7 0 8.5 3.8 8.5 8.5v70c0 4.7-3.8 8.5-8.5 8.5H15c-4.7 0-8.5-3.8-8.5-8.5V15c0-4.7 3.8-8.5 8.5-8.5zM85 0H15C6.7 0 0 6.7 0 15v70c0 8.3 6.7 15 15 15h70c8.3 0 15-6.7 15-15V15c0-8.3-6.7-15-15-15z"
|
|
26693
26786
|
}), /* @__PURE__ */ React$c.createElement("path", {
|
|
26694
|
-
fill: "currentColor",
|
|
26695
26787
|
d: "M40.6 33.1v12.3h18.8V33.1c0-1.8.4-3.1 1.2-4s1.8-1.3 3.1-1.3 2.4.4 3.2 1.3 1.2 2.2 1.2 4v33.8c0 1.8-.4 3.1-1.2 4s-1.9 1.3-3.2 1.3-2.4-.4-3.1-1.3-1.2-2.2-1.2-4V52.5H40.6v14.4c0 1.8-.4 3.1-1.2 4s-1.9 1.3-3.2 1.3-2.4-.4-3.1-1.3c-.8-.9-1.2-2.2-1.2-4V33.1c0-1.8.4-3.1 1.2-4s1.8-1.3 3.1-1.3 2.4.4 3.2 1.3 1.2 2.2 1.2 4z"
|
|
26696
26788
|
}));
|
|
26697
26789
|
}
|
|
@@ -26769,11 +26861,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26769
26861
|
function Info(props) {
|
|
26770
26862
|
return /* @__PURE__ */ React$b.createElement("svg", _extends$b({
|
|
26771
26863
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26864
|
+
fill: "currentColor",
|
|
26772
26865
|
viewBox: "0 0 100 100",
|
|
26773
26866
|
width: "1em",
|
|
26774
26867
|
height: "1em"
|
|
26775
26868
|
}, props), /* @__PURE__ */ React$b.createElement("path", {
|
|
26776
|
-
fill: "currentColor",
|
|
26777
26869
|
d: "M50 6.5C74 6.5 93.5 26 93.5 50S74 93.5 50 93.5 6.5 74 6.5 50 26 6.5 50 6.5M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 41.2c-2.2 0-3.9 1.7-3.9 3.9v25.2c0 2.2 1.7 3.9 3.9 3.9s3.9-1.7 3.9-3.9V45.1c0-2.2-1.7-3.9-3.9-3.9zm0-15.3c2.9 0 5.3 2.4 5.3 5.3s-2.4 5.3-5.3 5.3-5.3-2.4-5.3-5.3 2.4-5.3 5.3-5.3z"
|
|
26778
26870
|
}));
|
|
26779
26871
|
}
|
|
@@ -26851,11 +26943,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26851
26943
|
function List(props) {
|
|
26852
26944
|
return /* @__PURE__ */ React$a.createElement("svg", _extends$a({
|
|
26853
26945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26946
|
+
fill: "currentColor",
|
|
26854
26947
|
viewBox: "0 0 100 100",
|
|
26855
26948
|
width: "1em",
|
|
26856
26949
|
height: "1em"
|
|
26857
26950
|
}, props), /* @__PURE__ */ React$a.createElement("path", {
|
|
26858
|
-
fill: "currentColor",
|
|
26859
26951
|
d: "M96.2 15.1h-64c-2 0-3.6 1.6-3.6 3.6s1.6 3.6 3.6 3.6h64c2 0 3.6-1.6 3.6-3.6 0-2.1-1.6-3.6-3.6-3.6zM96.2 43.9h-64c-2 0-3.6 1.6-3.6 3.6s1.6 3.6 3.6 3.6h64c2 0 3.6-1.6 3.6-3.6 0-2.1-1.6-3.6-3.6-3.6zM96.2 72.8h-64c-2 0-3.6 1.6-3.6 3.6s1.6 3.6 3.6 3.6h64c2 0 3.6-1.6 3.6-3.6 0-2.1-1.6-3.6-3.6-3.6zM-.1 15.1v7.2c0 3.9 3.2 7.2 7.2 7.2h7.2c3.9 0 7.2-3.2 7.2-7.2v-7.2c0-3.9-3.2-7.2-7.2-7.2H7.1c-4 0-7.2 3.2-7.2 7.2zm14.4 7.1H7.1V15h7.2v7.2zM-.1 43.9v7.2c0 3.9 3.2 7.2 7.2 7.2h7.2c3.9 0 7.2-3.2 7.2-7.2v-7.2c0-3.9-3.2-7.2-7.2-7.2H7.1c-4 0-7.2 3.2-7.2 7.2zm14.4 7.2H7.1v-7.2h7.2v7.2zM14.2 65.6H7c-3.9 0-7.2 3.2-7.2 7.2V80c0 3.9 3.2 7.2 7.2 7.2h7.2c3.9 0 7.2-3.2 7.2-7.2v-7.2c0-4-3.2-7.2-7.2-7.2zm.1 14.3H7.1v-7.2h7.2v7.2z"
|
|
26860
26952
|
}));
|
|
26861
26953
|
}
|
|
@@ -26933,11 +27025,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
26933
27025
|
function Lock(props) {
|
|
26934
27026
|
return /* @__PURE__ */ React$9.createElement("svg", _extends$9({
|
|
26935
27027
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27028
|
+
fill: "currentColor",
|
|
26936
27029
|
viewBox: "0 0 100 100",
|
|
26937
27030
|
width: "1em",
|
|
26938
27031
|
height: "1em"
|
|
26939
27032
|
}, props), /* @__PURE__ */ React$9.createElement("path", {
|
|
26940
|
-
fill: "currentColor",
|
|
26941
27033
|
d: "M78.8 33.3H74v-9.5C74 10.7 63.3 0 50 0S26 10.7 26 23.8v9.5h-4.8c-5.3 0-9.6 4.3-9.6 9.5v47.6c0 5.2 4.3 9.5 9.6 9.5h57.7c5.3 0 9.6-4.3 9.6-9.5V42.9c0-5.3-4.4-9.6-9.7-9.6zM50 76.2c-5.3 0-9.6-4.3-9.6-9.5s4.3-9.5 9.6-9.5 9.6 4.3 9.6 9.5-4.3 9.5-9.6 9.5zm14.9-42.9H35.1v-9.5C35.1 15.7 41.8 9 50 9s14.9 6.6 14.9 14.8z"
|
|
26942
27034
|
}));
|
|
26943
27035
|
}
|
|
@@ -27015,11 +27107,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27015
27107
|
function Logout(props) {
|
|
27016
27108
|
return /* @__PURE__ */ React$8.createElement("svg", _extends$8({
|
|
27017
27109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27110
|
+
fill: "currentColor",
|
|
27018
27111
|
viewBox: "0 0 100 100",
|
|
27019
27112
|
width: "1em",
|
|
27020
27113
|
height: "1em"
|
|
27021
27114
|
}, props), /* @__PURE__ */ React$8.createElement("path", {
|
|
27022
|
-
fill: "currentColor",
|
|
27023
27115
|
d: "M68.3 12.1c-2.1-.9-4.6 0-5.5 2.2s0 4.6 2.2 5.5c13.6 5.9 22.5 19.3 22.5 34.4 0 20.7-16.8 37.5-37.5 37.5S12.5 74.9 12.5 54.2c0-15 8.9-28.5 22.5-34.4 2.1-.9 3.1-3.4 2.1-5.5-.9-2.1-3.4-3.1-5.5-2.1C15 19.4 4.1 35.8 4.1 54.2 4.2 79.5 24.7 100 50 100s45.8-20.5 45.8-45.8c0-18.4-10.9-34.8-27.5-42.1zM50 45.8c2.3 0 4.2-1.9 4.2-4.2V4.2C54.2 1.9 52.3 0 50 0s-4.2 1.9-4.2 4.2v37.5c0 2.3 1.9 4.1 4.2 4.1z"
|
|
27024
27116
|
}));
|
|
27025
27117
|
}
|
|
@@ -27097,11 +27189,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27097
27189
|
function MapPin(props) {
|
|
27098
27190
|
return /* @__PURE__ */ React$7.createElement("svg", _extends$7({
|
|
27099
27191
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27192
|
+
fill: "currentColor",
|
|
27100
27193
|
viewBox: "0 0 100 100",
|
|
27101
27194
|
width: "1em",
|
|
27102
27195
|
height: "1em"
|
|
27103
27196
|
}, props), /* @__PURE__ */ React$7.createElement("path", {
|
|
27104
|
-
fill: "currentColor",
|
|
27105
27197
|
d: "M50 0C29.3 0 12.6 16.8 12.5 37.5c0 26.9 34.9 60.6 36.4 62 .6.6 1.5.6 2.2 0 1.4-1.4 36.4-35.1 36.4-62C87.4 16.8 70.7 0 50 0zm0 54.6c-9.5 0-17.2-7.7-17.2-17.2S40.5 20.2 50 20.2s17.2 7.7 17.2 17.2c0 9.6-7.7 17.2-17.2 17.2z"
|
|
27106
27198
|
}));
|
|
27107
27199
|
}
|
|
@@ -27179,11 +27271,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27179
27271
|
function Menu(props) {
|
|
27180
27272
|
return /* @__PURE__ */ React$6.createElement("svg", _extends$6({
|
|
27181
27273
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27274
|
+
fill: "currentColor",
|
|
27182
27275
|
viewBox: "0 0 100 100",
|
|
27183
27276
|
width: "1em",
|
|
27184
27277
|
height: "1em"
|
|
27185
27278
|
}, props), /* @__PURE__ */ React$6.createElement("path", {
|
|
27186
|
-
fill: "currentColor",
|
|
27187
27279
|
d: "M93.7 87.5H6.3c-3.5 0-6.3-2.8-6.3-6.3C0 77.8 2.8 75 6.3 75h87.5c3.5 0 6.3 2.8 6.3 6.3-.1 3.4-2.9 6.2-6.4 6.2zM93.7 56.2H6.3C2.8 56.2 0 53.5 0 50s2.8-6.3 6.3-6.3h87.5c3.5 0 6.3 2.8 6.3 6.3s-2.9 6.2-6.4 6.2zM93.7 25H6.3C2.8 25 0 22.2 0 18.7s2.8-6.3 6.3-6.3h87.5c3.5 0 6.3 2.8 6.3 6.3S97.2 25 93.7 25z"
|
|
27188
27280
|
}));
|
|
27189
27281
|
}
|
|
@@ -27261,11 +27353,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27261
27353
|
function Minus(props) {
|
|
27262
27354
|
return /* @__PURE__ */ React$5.createElement("svg", _extends$5({
|
|
27263
27355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27356
|
+
fill: "currentColor",
|
|
27264
27357
|
viewBox: "0 0 100 100",
|
|
27265
27358
|
width: "1em",
|
|
27266
27359
|
height: "1em"
|
|
27267
27360
|
}, props), /* @__PURE__ */ React$5.createElement("path", {
|
|
27268
|
-
fill: "currentColor",
|
|
27269
27361
|
d: "M3.6 53.6h92.8c2 0 3.5-1.6 3.6-3.6 0-2-1.6-3.5-3.6-3.6H3.6C1.7 46.4.1 48 0 50c0 2 1.6 3.5 3.6 3.6z"
|
|
27270
27362
|
}));
|
|
27271
27363
|
}
|
|
@@ -27343,11 +27435,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27343
27435
|
function Plus(props) {
|
|
27344
27436
|
return /* @__PURE__ */ React$4.createElement("svg", _extends$4({
|
|
27345
27437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27438
|
+
fill: "currentColor",
|
|
27346
27439
|
viewBox: "0 0 100 100",
|
|
27347
27440
|
width: "1em",
|
|
27348
27441
|
height: "1em"
|
|
27349
27442
|
}, props), /* @__PURE__ */ React$4.createElement("path", {
|
|
27350
|
-
fill: "currentColor",
|
|
27351
27443
|
d: "M0 50c0 2 1.6 3.5 3.6 3.6h42.8v42.8c0 2 1.6 3.5 3.6 3.6 2 0 3.5-1.6 3.6-3.6l-.1-42.9 42.8.1c2 0 3.5-1.6 3.6-3.6 0-2-1.6-3.5-3.6-3.6H53.6V3.3c-.3-2-1.9-3.3-4-3.3-1.7.1-3.1 1.6-3.3 3.3v43.1H3.6C1.7 46.4.1 48 0 50z"
|
|
27352
27444
|
}));
|
|
27353
27445
|
}
|
|
@@ -27425,11 +27517,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27425
27517
|
function Search(props) {
|
|
27426
27518
|
return /* @__PURE__ */ React$3.createElement("svg", _extends$3({
|
|
27427
27519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27520
|
+
fill: "currentColor",
|
|
27428
27521
|
viewBox: "0 0 100 100",
|
|
27429
27522
|
width: "1em",
|
|
27430
27523
|
height: "1em"
|
|
27431
27524
|
}, props), /* @__PURE__ */ React$3.createElement("path", {
|
|
27432
|
-
fill: "currentColor",
|
|
27433
27525
|
d: "M98.8 92.9L70.3 64.5c5.5-6.8 8.8-15.5 8.8-24.9C79.2 17.8 61.4 0 39.6 0S0 17.8 0 39.6s17.8 39.6 39.6 39.6c9.4 0 18.1-3.3 24.9-8.8l28.4 28.4c.8.8 1.9 1.2 2.9 1.2 1.1 0 2.1-.4 2.9-1.2 1.7-1.6 1.7-4.3.1-5.9zM39.6 70.8c-17.2 0-31.2-14-31.2-31.2s14-31.2 31.2-31.2 31.2 14 31.2 31.2-14 31.2-31.2 31.2z"
|
|
27434
27526
|
}));
|
|
27435
27527
|
}
|
|
@@ -27507,11 +27599,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27507
27599
|
function Tick(props) {
|
|
27508
27600
|
return /* @__PURE__ */ React$2.createElement("svg", _extends$2({
|
|
27509
27601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27602
|
+
fill: "currentColor",
|
|
27510
27603
|
viewBox: "0 0 100 100",
|
|
27511
27604
|
width: "1em",
|
|
27512
27605
|
height: "1em"
|
|
27513
27606
|
}, props), /* @__PURE__ */ React$2.createElement("path", {
|
|
27514
|
-
fill: "currentColor",
|
|
27515
27607
|
d: "M98.5 14.7c-2-2-5.1-2-7.1 0L31.6 74.6l-23-23c-2-2-5.1-2-7.1 0s-2 5.1 0 7.1L28 85.3c2 2 5.1 2 7.1 0l63.4-63.4c2-2 2-5.2 0-7.2z"
|
|
27516
27608
|
}));
|
|
27517
27609
|
}
|
|
@@ -27589,11 +27681,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27589
27681
|
function User(props) {
|
|
27590
27682
|
return /* @__PURE__ */ React$1.createElement("svg", _extends$1({
|
|
27591
27683
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27684
|
+
fill: "currentColor",
|
|
27592
27685
|
viewBox: "0 0 100 100",
|
|
27593
27686
|
width: "1em",
|
|
27594
27687
|
height: "1em"
|
|
27595
27688
|
}, props), /* @__PURE__ */ React$1.createElement("path", {
|
|
27596
|
-
fill: "currentColor",
|
|
27597
27689
|
d: "M85.4 14.6C75.9 5.2 63.4 0 50 0S24.1 5.2 14.6 14.6 0 36.6 0 50s5.2 25.9 14.6 35.4S36.6 100 50 100s25.9-5.2 35.4-14.6S100 63.4 100 50s-5.2-25.9-14.6-35.4zM80 82.3c-1.6-5.6-4.7-10.7-9.1-14.7-2.7-2.4-5.8-4.4-9.1-5.7 6-3.9 9.9-10.6 9.9-18.2C71.8 31.7 62 22 50 22s-21.8 9.8-21.8 21.8c0 7.6 3.9 14.3 9.9 18.2-3.3 1.4-6.4 3.3-9.1 5.7-4.4 4-7.5 9.1-9.1 14.7-8.6-8.1-14-19.6-14-32.4C5.9 25.7 25.7 5.9 50 5.9S94.1 25.7 94.1 50c0 12.8-5.4 24.3-14.1 32.3z"
|
|
27598
27690
|
}));
|
|
27599
27691
|
}
|
|
@@ -27671,11 +27763,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
27671
27763
|
function World(props) {
|
|
27672
27764
|
return /* @__PURE__ */ React.createElement("svg", _extends({
|
|
27673
27765
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27766
|
+
fill: "currentColor",
|
|
27674
27767
|
viewBox: "0 0 100 100",
|
|
27675
27768
|
width: "1em",
|
|
27676
27769
|
height: "1em"
|
|
27677
27770
|
}, props), /* @__PURE__ */ React.createElement("path", {
|
|
27678
|
-
fill: "currentColor",
|
|
27679
27771
|
d: "M50.1 100c27.5 0 50-22.5 50-50S77.6 0 50.1 0 .1 22.5.1 50s22.5 50 50 50zm14.8-8.4c2.8-3.6 5-7.9 6.6-12.3H83c-4.8 5.5-11 9.8-18.1 12.3zm22.6-18.2h-14c1.7-6.3 2.7-13.3 3-20.5h17.7c-.6 7.5-2.9 14.5-6.7 20.5zm0-46.8c3.8 6 6.2 13 6.7 20.5H76.4c-.2-7.3-1.2-14.2-3-20.5zm-4.4-5.9H71.6C70 16.4 67.8 12 65 8.4c7 2.5 13.2 6.8 18.1 12.3zM53 6.4c5.7 1.9 9.9 8.8 12.2 14.3H53zm0 20.2h14.3c1.9 6.2 3 13.2 3.2 20.5H53zm0 26.3h17.5c-.2 7.3-1.3 14.3-3.2 20.5H53zm0 26.4h12.2c-2.4 5.6-6.5 12.4-12.2 14.3zm-35.9 0h11.5c1.6 4.3 3.8 8.7 6.6 12.3-7-2.5-13.2-6.8-18.1-12.3zm30.1 14.3c-5.7-1.9-9.9-8.8-12.2-14.3h12.2zm0-20.2H32.8c-1.9-6.2-3-13.2-3.2-20.5h17.5v20.5zm0-26.3H29.6c.2-7.3 1.3-14.3 3.2-20.5h14.3v20.5zm0-40.7v14.3H34.9c2.4-5.6 6.5-12.4 12.3-14.3zm-11.9 2c-2.8 3.6-5 7.9-6.6 12.3H17.1c4.9-5.5 11.1-9.8 18.2-12.3zM12.7 26.6h14c-1.7 6.3-2.7 13.3-3 20.5H6.1c.5-7.5 2.8-14.5 6.6-20.5zM6.1 52.9h17.7c.2 7.3 1.2 14.2 3 20.5h-14c-3.9-6-6.2-13-6.7-20.5z"
|
|
27680
27772
|
}));
|
|
27681
27773
|
}
|
|
@@ -28043,32 +28135,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28043
28135
|
};
|
|
28044
28136
|
}, [ref]);
|
|
28045
28137
|
}
|
|
28046
|
-
var _jsxFileName$
|
|
28138
|
+
var _jsxFileName$b = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Notifications.jsx";
|
|
28047
28139
|
function isNotification(notifications) {
|
|
28048
28140
|
return Array.isArray(notifications) && notifications.length > 0;
|
|
28049
28141
|
}
|
|
28050
28142
|
function Notifications() {
|
|
28051
28143
|
const [notificationsLang, setNotificationsLang] = require$$0.useState([]);
|
|
28052
28144
|
const [notificationsCount, setNotificationsCount] = require$$0.useState(0);
|
|
28053
|
-
const [
|
|
28145
|
+
const [notificationDate, setNotificationDate] = require$$0.useState();
|
|
28146
|
+
const [notified, setNotified] = require$$0.useState(true);
|
|
28054
28147
|
const {
|
|
28055
28148
|
notifications: notificationsConfig
|
|
28056
28149
|
} = useSelector((state) => state.titleBar);
|
|
28057
|
-
const [showNotifications, setShowNotifications] = require$$0.useState(false);
|
|
28058
|
-
const notifications = useSelector((state) => state.notifications);
|
|
28059
28150
|
const userLanguage = useSelector((state) => state.userLanguage);
|
|
28060
28151
|
const {
|
|
28061
28152
|
isOpen,
|
|
28062
28153
|
isMobileOrTablet
|
|
28063
28154
|
} = useSelector((state) => state.headerInfo);
|
|
28155
|
+
const {
|
|
28156
|
+
notifications,
|
|
28157
|
+
showNotifications
|
|
28158
|
+
} = useSelector((state) => state.notifications);
|
|
28159
|
+
const hideNotificationsBell = isMobileOrTablet && isOpen;
|
|
28064
28160
|
const styles = useSpring({
|
|
28065
|
-
opacity:
|
|
28161
|
+
opacity: hideNotificationsBell ? 0 : 1
|
|
28066
28162
|
});
|
|
28067
28163
|
const ref = require$$0.useRef();
|
|
28164
|
+
const dispatch = useDispatch();
|
|
28068
28165
|
useOutsideClickHandler(ref, () => {
|
|
28069
|
-
setShowNotifications(false);
|
|
28166
|
+
dispatch(setShowNotifications(false));
|
|
28070
28167
|
});
|
|
28071
|
-
const dispatch = useDispatch();
|
|
28072
28168
|
require$$0.useEffect(() => {
|
|
28073
28169
|
(async () => {
|
|
28074
28170
|
if (notificationsConfig) {
|
|
@@ -28098,8 +28194,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28098
28194
|
setNotificationsCount(notif.reduce((acc, {
|
|
28099
28195
|
items = []
|
|
28100
28196
|
}) => acc + items.length, 0));
|
|
28197
|
+
setNotificationDate(Math.max(...notif.reduce((acc, {
|
|
28198
|
+
items = []
|
|
28199
|
+
}) => [...acc, ...items], []).filter((o2) => {
|
|
28200
|
+
var _a2;
|
|
28201
|
+
return (_a2 = o2.date) == null ? void 0 : _a2.match(/^\d\d\d\d-\d\d-\d\d$/);
|
|
28202
|
+
}).map((o2) => +o2.date.replace(/\D/g, "")), 19700101));
|
|
28101
28203
|
}
|
|
28102
28204
|
}, [userLanguage, notifications]);
|
|
28205
|
+
require$$0.useEffect(() => {
|
|
28206
|
+
const lastReadDate = api.get("ba-notif-read-date");
|
|
28207
|
+
if (notificationDate) {
|
|
28208
|
+
if (!lastReadDate || lastReadDate < notificationDate) {
|
|
28209
|
+
setNotified(false);
|
|
28210
|
+
} else {
|
|
28211
|
+
setNotified(true);
|
|
28212
|
+
}
|
|
28213
|
+
}
|
|
28214
|
+
}, [notificationDate]);
|
|
28103
28215
|
if (!notificationsLang)
|
|
28104
28216
|
return null;
|
|
28105
28217
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(animated.div, {
|
|
@@ -28111,31 +28223,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28111
28223
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28112
28224
|
className: "col-6 col-lg-auto p-lg-0",
|
|
28113
28225
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28114
|
-
className: "
|
|
28226
|
+
className: "d-inline-block me-lg-3 my-1 my-lg-0",
|
|
28115
28227
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28116
|
-
className: "dropdown",
|
|
28228
|
+
className: "hd-dropdown",
|
|
28117
28229
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("button", {
|
|
28118
|
-
className: "btn
|
|
28230
|
+
className: "btn p-2 hd-dropdown-toggle",
|
|
28119
28231
|
type: "button",
|
|
28120
28232
|
id: "hd-dropdown-notifications",
|
|
28121
28233
|
onClick: (e2) => {
|
|
28234
|
+
if (hideNotificationsBell)
|
|
28235
|
+
return;
|
|
28122
28236
|
e2.stopPropagation();
|
|
28123
28237
|
setNotified(true);
|
|
28124
|
-
|
|
28238
|
+
api.set("ba-notif-read-date", new Date().toISOString().slice(0, 10).replace(/-/g, ""), {
|
|
28239
|
+
expires: 365
|
|
28240
|
+
});
|
|
28241
|
+
dispatch(setShowNotifications(!showNotifications));
|
|
28125
28242
|
},
|
|
28126
28243
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Bell, {
|
|
28127
28244
|
className: "hd-icon hd-icon-bell"
|
|
28128
28245
|
}, void 0, false, {
|
|
28129
|
-
fileName: _jsxFileName$
|
|
28130
|
-
lineNumber:
|
|
28246
|
+
fileName: _jsxFileName$b,
|
|
28247
|
+
lineNumber: 121,
|
|
28131
28248
|
columnNumber: 15
|
|
28132
28249
|
}, this), notificationsCount > 0 && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(jsxDevRuntime.exports.Fragment, {
|
|
28133
28250
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
28134
28251
|
className: "visually-hidden",
|
|
28135
28252
|
children: "Notifications"
|
|
28136
28253
|
}, void 0, false, {
|
|
28137
|
-
fileName: _jsxFileName$
|
|
28138
|
-
lineNumber:
|
|
28254
|
+
fileName: _jsxFileName$b,
|
|
28255
|
+
lineNumber: 124,
|
|
28139
28256
|
columnNumber: 19
|
|
28140
28257
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
28141
28258
|
className: cn("badge", "rounded-pill", {
|
|
@@ -28144,17 +28261,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28144
28261
|
}),
|
|
28145
28262
|
children: notificationsCount >= 9 ? "9+" : `${notificationsCount}`
|
|
28146
28263
|
}, void 0, false, {
|
|
28147
|
-
fileName: _jsxFileName$
|
|
28148
|
-
lineNumber:
|
|
28264
|
+
fileName: _jsxFileName$b,
|
|
28265
|
+
lineNumber: 125,
|
|
28149
28266
|
columnNumber: 19
|
|
28150
28267
|
}, this)]
|
|
28151
28268
|
}, void 0, true)]
|
|
28152
28269
|
}, void 0, true, {
|
|
28153
|
-
fileName: _jsxFileName$
|
|
28154
|
-
lineNumber:
|
|
28270
|
+
fileName: _jsxFileName$b,
|
|
28271
|
+
lineNumber: 105,
|
|
28155
28272
|
columnNumber: 13
|
|
28156
28273
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
28157
|
-
className: "dropdown-menu",
|
|
28274
|
+
className: "hd-dropdown-menu shadow",
|
|
28158
28275
|
style: showNotifications ? {
|
|
28159
28276
|
display: "block"
|
|
28160
28277
|
} : {},
|
|
@@ -28166,68 +28283,70 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28166
28283
|
} = notification;
|
|
28167
28284
|
return items.map((item, i2) => {
|
|
28168
28285
|
const {
|
|
28169
|
-
title: itemTitle
|
|
28286
|
+
title: itemTitle,
|
|
28287
|
+
url
|
|
28170
28288
|
} = item;
|
|
28171
28289
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(require$$0__default["default"].Fragment, {
|
|
28172
28290
|
children: [i2 === 0 && title && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
28173
28291
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
28174
|
-
className: "dropdown-header text-uppercase",
|
|
28292
|
+
className: "hd-dropdown-header text-uppercase",
|
|
28175
28293
|
children: title
|
|
28176
28294
|
}, void 0, false, {
|
|
28177
|
-
fileName: _jsxFileName$
|
|
28178
|
-
lineNumber:
|
|
28295
|
+
fileName: _jsxFileName$b,
|
|
28296
|
+
lineNumber: 149,
|
|
28179
28297
|
columnNumber: 27
|
|
28180
28298
|
}, this)
|
|
28181
28299
|
}, void 0, false, {
|
|
28182
|
-
fileName: _jsxFileName$
|
|
28183
|
-
lineNumber:
|
|
28300
|
+
fileName: _jsxFileName$b,
|
|
28301
|
+
lineNumber: 148,
|
|
28184
28302
|
columnNumber: 25
|
|
28185
28303
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
28186
28304
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("a", {
|
|
28187
|
-
className: "dropdown-item",
|
|
28188
|
-
href:
|
|
28305
|
+
className: "hd-dropdown-item",
|
|
28306
|
+
href: url,
|
|
28189
28307
|
target: "_blank",
|
|
28308
|
+
rel: "noreferrer",
|
|
28190
28309
|
children: itemTitle
|
|
28191
28310
|
}, void 0, false, {
|
|
28192
|
-
fileName: _jsxFileName$
|
|
28193
|
-
lineNumber:
|
|
28311
|
+
fileName: _jsxFileName$b,
|
|
28312
|
+
lineNumber: 155,
|
|
28194
28313
|
columnNumber: 25
|
|
28195
28314
|
}, this)
|
|
28196
28315
|
}, void 0, false, {
|
|
28197
|
-
fileName: _jsxFileName$
|
|
28198
|
-
lineNumber:
|
|
28316
|
+
fileName: _jsxFileName$b,
|
|
28317
|
+
lineNumber: 154,
|
|
28199
28318
|
columnNumber: 23
|
|
28200
28319
|
}, this)]
|
|
28201
28320
|
}, nanoid(), true, {
|
|
28202
|
-
fileName: _jsxFileName$
|
|
28203
|
-
lineNumber:
|
|
28321
|
+
fileName: _jsxFileName$b,
|
|
28322
|
+
lineNumber: 146,
|
|
28204
28323
|
columnNumber: 21
|
|
28205
28324
|
}, this);
|
|
28206
28325
|
});
|
|
28207
28326
|
})
|
|
28208
28327
|
}, void 0, false, {
|
|
28209
|
-
fileName: _jsxFileName$
|
|
28210
|
-
lineNumber:
|
|
28328
|
+
fileName: _jsxFileName$b,
|
|
28329
|
+
lineNumber: 136,
|
|
28211
28330
|
columnNumber: 13
|
|
28212
28331
|
}, this)]
|
|
28213
28332
|
}, void 0, true, {
|
|
28214
|
-
fileName: _jsxFileName$
|
|
28215
|
-
lineNumber:
|
|
28333
|
+
fileName: _jsxFileName$b,
|
|
28334
|
+
lineNumber: 104,
|
|
28216
28335
|
columnNumber: 11
|
|
28217
28336
|
}, this)
|
|
28218
28337
|
}, void 0, false, {
|
|
28219
|
-
fileName: _jsxFileName$
|
|
28220
|
-
lineNumber:
|
|
28338
|
+
fileName: _jsxFileName$b,
|
|
28339
|
+
lineNumber: 103,
|
|
28221
28340
|
columnNumber: 9
|
|
28222
28341
|
}, this)
|
|
28223
28342
|
}, void 0, false, {
|
|
28224
|
-
fileName: _jsxFileName$
|
|
28225
|
-
lineNumber:
|
|
28343
|
+
fileName: _jsxFileName$b,
|
|
28344
|
+
lineNumber: 102,
|
|
28226
28345
|
columnNumber: 7
|
|
28227
28346
|
}, this)
|
|
28228
28347
|
}, void 0, false, {
|
|
28229
|
-
fileName: _jsxFileName$
|
|
28230
|
-
lineNumber:
|
|
28348
|
+
fileName: _jsxFileName$b,
|
|
28349
|
+
lineNumber: 95,
|
|
28231
28350
|
columnNumber: 5
|
|
28232
28351
|
}, this);
|
|
28233
28352
|
}
|
|
@@ -28236,7 +28355,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28236
28355
|
const toggle = require$$0.useCallback(() => setState((s2) => !s2), []);
|
|
28237
28356
|
return [state, toggle];
|
|
28238
28357
|
}
|
|
28239
|
-
var _jsxFileName$
|
|
28358
|
+
var _jsxFileName$a = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Hamburger.jsx";
|
|
28240
28359
|
function Hamburger() {
|
|
28241
28360
|
const [headerOpen, toggleHeaderOpen] = useToggle();
|
|
28242
28361
|
const {
|
|
@@ -28261,1096 +28380,250 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
28261
28380
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28262
28381
|
className: "d-block",
|
|
28263
28382
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {}, void 0, false, {
|
|
28264
|
-
fileName: _jsxFileName$
|
|
28383
|
+
fileName: _jsxFileName$a,
|
|
28265
28384
|
lineNumber: 37,
|
|
28266
28385
|
columnNumber: 9
|
|
28267
28386
|
}, this)
|
|
28268
28387
|
}, void 0, false, {
|
|
28269
|
-
fileName: _jsxFileName$
|
|
28388
|
+
fileName: _jsxFileName$a,
|
|
28270
28389
|
lineNumber: 36,
|
|
28271
28390
|
columnNumber: 7
|
|
28272
28391
|
}, this)
|
|
28273
28392
|
}, void 0, false, {
|
|
28274
|
-
fileName: _jsxFileName$
|
|
28393
|
+
fileName: _jsxFileName$a,
|
|
28275
28394
|
lineNumber: 21,
|
|
28276
28395
|
columnNumber: 5
|
|
28277
28396
|
}, this);
|
|
28278
28397
|
}
|
|
28279
|
-
|
|
28280
|
-
|
|
28281
|
-
|
|
28398
|
+
function _assertThisInitialized(self2) {
|
|
28399
|
+
if (self2 === void 0) {
|
|
28400
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
28401
|
+
}
|
|
28402
|
+
return self2;
|
|
28403
|
+
}
|
|
28404
|
+
function _setPrototypeOf(o2, p2) {
|
|
28405
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
28406
|
+
o3.__proto__ = p3;
|
|
28407
|
+
return o3;
|
|
28408
|
+
};
|
|
28409
|
+
return _setPrototypeOf(o2, p2);
|
|
28410
|
+
}
|
|
28411
|
+
function _inheritsLoose(subClass, superClass) {
|
|
28412
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
28413
|
+
subClass.prototype.constructor = subClass;
|
|
28414
|
+
_setPrototypeOf(subClass, superClass);
|
|
28415
|
+
}
|
|
28416
|
+
var reactIs = { exports: {} };
|
|
28417
|
+
var reactIs_development = {};
|
|
28418
|
+
/** @license React v17.0.2
|
|
28419
|
+
* react-is.development.js
|
|
28420
|
+
*
|
|
28421
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28422
|
+
*
|
|
28423
|
+
* This source code is licensed under the MIT license found in the
|
|
28424
|
+
* LICENSE file in the root directory of this source tree.
|
|
28282
28425
|
*/
|
|
28283
|
-
|
|
28284
|
-
(function(
|
|
28285
|
-
var
|
|
28286
|
-
var
|
|
28287
|
-
|
|
28288
|
-
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
|
|
28292
|
-
|
|
28293
|
-
|
|
28294
|
-
|
|
28295
|
-
|
|
28296
|
-
|
|
28297
|
-
|
|
28298
|
-
|
|
28299
|
-
|
|
28300
|
-
|
|
28301
|
-
|
|
28302
|
-
|
|
28303
|
-
|
|
28304
|
-
|
|
28305
|
-
|
|
28306
|
-
|
|
28307
|
-
|
|
28426
|
+
{
|
|
28427
|
+
(function() {
|
|
28428
|
+
var REACT_ELEMENT_TYPE = 60103;
|
|
28429
|
+
var REACT_PORTAL_TYPE = 60106;
|
|
28430
|
+
var REACT_FRAGMENT_TYPE = 60107;
|
|
28431
|
+
var REACT_STRICT_MODE_TYPE = 60108;
|
|
28432
|
+
var REACT_PROFILER_TYPE = 60114;
|
|
28433
|
+
var REACT_PROVIDER_TYPE = 60109;
|
|
28434
|
+
var REACT_CONTEXT_TYPE = 60110;
|
|
28435
|
+
var REACT_FORWARD_REF_TYPE = 60112;
|
|
28436
|
+
var REACT_SUSPENSE_TYPE = 60113;
|
|
28437
|
+
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
28438
|
+
var REACT_MEMO_TYPE = 60115;
|
|
28439
|
+
var REACT_LAZY_TYPE = 60116;
|
|
28440
|
+
var REACT_BLOCK_TYPE = 60121;
|
|
28441
|
+
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
28442
|
+
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
28443
|
+
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
28444
|
+
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
28445
|
+
if (typeof Symbol === "function" && Symbol.for) {
|
|
28446
|
+
var symbolFor2 = Symbol.for;
|
|
28447
|
+
REACT_ELEMENT_TYPE = symbolFor2("react.element");
|
|
28448
|
+
REACT_PORTAL_TYPE = symbolFor2("react.portal");
|
|
28449
|
+
REACT_FRAGMENT_TYPE = symbolFor2("react.fragment");
|
|
28450
|
+
REACT_STRICT_MODE_TYPE = symbolFor2("react.strict_mode");
|
|
28451
|
+
REACT_PROFILER_TYPE = symbolFor2("react.profiler");
|
|
28452
|
+
REACT_PROVIDER_TYPE = symbolFor2("react.provider");
|
|
28453
|
+
REACT_CONTEXT_TYPE = symbolFor2("react.context");
|
|
28454
|
+
REACT_FORWARD_REF_TYPE = symbolFor2("react.forward_ref");
|
|
28455
|
+
REACT_SUSPENSE_TYPE = symbolFor2("react.suspense");
|
|
28456
|
+
REACT_SUSPENSE_LIST_TYPE = symbolFor2("react.suspense_list");
|
|
28457
|
+
REACT_MEMO_TYPE = symbolFor2("react.memo");
|
|
28458
|
+
REACT_LAZY_TYPE = symbolFor2("react.lazy");
|
|
28459
|
+
REACT_BLOCK_TYPE = symbolFor2("react.block");
|
|
28460
|
+
REACT_SERVER_BLOCK_TYPE = symbolFor2("react.server.block");
|
|
28461
|
+
REACT_FUNDAMENTAL_TYPE = symbolFor2("react.fundamental");
|
|
28462
|
+
symbolFor2("react.scope");
|
|
28463
|
+
symbolFor2("react.opaque.id");
|
|
28464
|
+
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor2("react.debug_trace_mode");
|
|
28465
|
+
symbolFor2("react.offscreen");
|
|
28466
|
+
REACT_LEGACY_HIDDEN_TYPE = symbolFor2("react.legacy_hidden");
|
|
28467
|
+
}
|
|
28468
|
+
var enableScopeAPI = false;
|
|
28469
|
+
function isValidElementType(type) {
|
|
28470
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
28471
|
+
return true;
|
|
28472
|
+
}
|
|
28473
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
28474
|
+
return true;
|
|
28475
|
+
}
|
|
28476
|
+
if (typeof type === "object" && type !== null) {
|
|
28477
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
28478
|
+
return true;
|
|
28308
28479
|
}
|
|
28309
|
-
},
|
|
28310
|
-
extend: function(obj) {
|
|
28311
|
-
this.forEach(slice.call(arguments, 1), function(source) {
|
|
28312
|
-
for (var prop in source) {
|
|
28313
|
-
obj[prop] = source[prop];
|
|
28314
|
-
}
|
|
28315
|
-
});
|
|
28316
|
-
return obj;
|
|
28317
28480
|
}
|
|
28318
|
-
|
|
28319
|
-
var Jed2 = function(options) {
|
|
28320
|
-
this.defaults = {
|
|
28321
|
-
"locale_data": {
|
|
28322
|
-
"messages": {
|
|
28323
|
-
"": {
|
|
28324
|
-
"domain": "messages",
|
|
28325
|
-
"lang": "en",
|
|
28326
|
-
"plural_forms": "nplurals=2; plural=(n != 1);"
|
|
28327
|
-
}
|
|
28328
|
-
}
|
|
28329
|
-
},
|
|
28330
|
-
"domain": "messages",
|
|
28331
|
-
"debug": false
|
|
28332
|
-
};
|
|
28333
|
-
this.options = _2.extend({}, this.defaults, options);
|
|
28334
|
-
this.textdomain(this.options.domain);
|
|
28335
|
-
if (options.domain && !this.options.locale_data[this.options.domain]) {
|
|
28336
|
-
throw new Error("Text domain set to non-existent domain: `" + options.domain + "`");
|
|
28337
|
-
}
|
|
28338
|
-
};
|
|
28339
|
-
Jed2.context_delimiter = String.fromCharCode(4);
|
|
28340
|
-
function getPluralFormFunc(plural_form_string) {
|
|
28341
|
-
return Jed2.PF.compile(plural_form_string || "nplurals=2; plural=(n != 1);");
|
|
28342
|
-
}
|
|
28343
|
-
function Chain(key, i18n) {
|
|
28344
|
-
this._key = key;
|
|
28345
|
-
this._i18n = i18n;
|
|
28481
|
+
return false;
|
|
28346
28482
|
}
|
|
28347
|
-
|
|
28348
|
-
|
|
28349
|
-
|
|
28350
|
-
|
|
28351
|
-
|
|
28352
|
-
|
|
28353
|
-
|
|
28354
|
-
|
|
28355
|
-
|
|
28356
|
-
|
|
28357
|
-
|
|
28358
|
-
|
|
28359
|
-
|
|
28360
|
-
|
|
28361
|
-
|
|
28362
|
-
|
|
28363
|
-
|
|
28364
|
-
|
|
28365
|
-
|
|
28366
|
-
|
|
28367
|
-
|
|
28368
|
-
|
|
28369
|
-
|
|
28370
|
-
|
|
28371
|
-
|
|
28372
|
-
return new Chain(key, this);
|
|
28373
|
-
},
|
|
28374
|
-
textdomain: function(domain) {
|
|
28375
|
-
if (!domain) {
|
|
28376
|
-
return this._textdomain;
|
|
28377
|
-
}
|
|
28378
|
-
this._textdomain = domain;
|
|
28379
|
-
},
|
|
28380
|
-
gettext: function(key) {
|
|
28381
|
-
return this.dcnpgettext.call(this, undef2, undef2, key);
|
|
28382
|
-
},
|
|
28383
|
-
dgettext: function(domain, key) {
|
|
28384
|
-
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
28385
|
-
},
|
|
28386
|
-
dcgettext: function(domain, key) {
|
|
28387
|
-
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
28388
|
-
},
|
|
28389
|
-
ngettext: function(skey, pkey, val) {
|
|
28390
|
-
return this.dcnpgettext.call(this, undef2, undef2, skey, pkey, val);
|
|
28391
|
-
},
|
|
28392
|
-
dngettext: function(domain, skey, pkey, val) {
|
|
28393
|
-
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
28394
|
-
},
|
|
28395
|
-
dcngettext: function(domain, skey, pkey, val) {
|
|
28396
|
-
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
28397
|
-
},
|
|
28398
|
-
pgettext: function(context, key) {
|
|
28399
|
-
return this.dcnpgettext.call(this, undef2, context, key);
|
|
28400
|
-
},
|
|
28401
|
-
dpgettext: function(domain, context, key) {
|
|
28402
|
-
return this.dcnpgettext.call(this, domain, context, key);
|
|
28403
|
-
},
|
|
28404
|
-
dcpgettext: function(domain, context, key) {
|
|
28405
|
-
return this.dcnpgettext.call(this, domain, context, key);
|
|
28406
|
-
},
|
|
28407
|
-
npgettext: function(context, skey, pkey, val) {
|
|
28408
|
-
return this.dcnpgettext.call(this, undef2, context, skey, pkey, val);
|
|
28409
|
-
},
|
|
28410
|
-
dnpgettext: function(domain, context, skey, pkey, val) {
|
|
28411
|
-
return this.dcnpgettext.call(this, domain, context, skey, pkey, val);
|
|
28412
|
-
},
|
|
28413
|
-
dcnpgettext: function(domain, context, singular_key, plural_key, val) {
|
|
28414
|
-
plural_key = plural_key || singular_key;
|
|
28415
|
-
domain = domain || this._textdomain;
|
|
28416
|
-
var fallback;
|
|
28417
|
-
if (!this.options) {
|
|
28418
|
-
fallback = new Jed2();
|
|
28419
|
-
return fallback.dcnpgettext.call(fallback, void 0, void 0, singular_key, plural_key, val);
|
|
28420
|
-
}
|
|
28421
|
-
if (!this.options.locale_data) {
|
|
28422
|
-
throw new Error("No locale data provided.");
|
|
28423
|
-
}
|
|
28424
|
-
if (!this.options.locale_data[domain]) {
|
|
28425
|
-
throw new Error("Domain `" + domain + "` was not found.");
|
|
28426
|
-
}
|
|
28427
|
-
if (!this.options.locale_data[domain][""]) {
|
|
28428
|
-
throw new Error("No locale meta information provided.");
|
|
28429
|
-
}
|
|
28430
|
-
if (!singular_key) {
|
|
28431
|
-
throw new Error("No translation key found.");
|
|
28432
|
-
}
|
|
28433
|
-
var key = context ? context + Jed2.context_delimiter + singular_key : singular_key, locale_data = this.options.locale_data, dict = locale_data[domain], defaultConf = (locale_data.messages || this.defaults.locale_data.messages)[""], pluralForms = dict[""].plural_forms || dict[""]["Plural-Forms"] || dict[""]["plural-forms"] || defaultConf.plural_forms || defaultConf["Plural-Forms"] || defaultConf["plural-forms"], val_list, res;
|
|
28434
|
-
var val_idx;
|
|
28435
|
-
if (val === void 0) {
|
|
28436
|
-
val_idx = 0;
|
|
28437
|
-
} else {
|
|
28438
|
-
if (typeof val != "number") {
|
|
28439
|
-
val = parseInt(val, 10);
|
|
28440
|
-
if (isNaN(val)) {
|
|
28441
|
-
throw new Error("The number that was passed in is not a number.");
|
|
28483
|
+
function typeOf(object) {
|
|
28484
|
+
if (typeof object === "object" && object !== null) {
|
|
28485
|
+
var $$typeof = object.$$typeof;
|
|
28486
|
+
switch ($$typeof) {
|
|
28487
|
+
case REACT_ELEMENT_TYPE:
|
|
28488
|
+
var type = object.type;
|
|
28489
|
+
switch (type) {
|
|
28490
|
+
case REACT_FRAGMENT_TYPE:
|
|
28491
|
+
case REACT_PROFILER_TYPE:
|
|
28492
|
+
case REACT_STRICT_MODE_TYPE:
|
|
28493
|
+
case REACT_SUSPENSE_TYPE:
|
|
28494
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
28495
|
+
return type;
|
|
28496
|
+
default:
|
|
28497
|
+
var $$typeofType = type && type.$$typeof;
|
|
28498
|
+
switch ($$typeofType) {
|
|
28499
|
+
case REACT_CONTEXT_TYPE:
|
|
28500
|
+
case REACT_FORWARD_REF_TYPE:
|
|
28501
|
+
case REACT_LAZY_TYPE:
|
|
28502
|
+
case REACT_MEMO_TYPE:
|
|
28503
|
+
case REACT_PROVIDER_TYPE:
|
|
28504
|
+
return $$typeofType;
|
|
28505
|
+
default:
|
|
28506
|
+
return $$typeof;
|
|
28507
|
+
}
|
|
28442
28508
|
}
|
|
28443
|
-
|
|
28444
|
-
|
|
28445
|
-
}
|
|
28446
|
-
if (!dict) {
|
|
28447
|
-
throw new Error("No domain named `" + domain + "` could be found.");
|
|
28448
|
-
}
|
|
28449
|
-
val_list = dict[key];
|
|
28450
|
-
if (!val_list || val_idx > val_list.length) {
|
|
28451
|
-
if (this.options.missing_key_callback) {
|
|
28452
|
-
this.options.missing_key_callback(key, domain);
|
|
28453
|
-
}
|
|
28454
|
-
res = [singular_key, plural_key];
|
|
28455
|
-
if (this.options.debug === true) {
|
|
28456
|
-
console.log(res[getPluralFormFunc(pluralForms)(val)]);
|
|
28457
|
-
}
|
|
28458
|
-
return res[getPluralFormFunc()(val)];
|
|
28459
|
-
}
|
|
28460
|
-
res = val_list[val_idx];
|
|
28461
|
-
if (!res) {
|
|
28462
|
-
res = [singular_key, plural_key];
|
|
28463
|
-
return res[getPluralFormFunc()(val)];
|
|
28509
|
+
case REACT_PORTAL_TYPE:
|
|
28510
|
+
return $$typeof;
|
|
28464
28511
|
}
|
|
28465
|
-
return res;
|
|
28466
|
-
}
|
|
28467
|
-
});
|
|
28468
|
-
var sprintf = function() {
|
|
28469
|
-
function get_type(variable) {
|
|
28470
|
-
return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
|
|
28471
28512
|
}
|
|
28472
|
-
|
|
28473
|
-
|
|
28513
|
+
return void 0;
|
|
28514
|
+
}
|
|
28515
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
28516
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
28517
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
28518
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
28519
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
28520
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
28521
|
+
var Memo = REACT_MEMO_TYPE;
|
|
28522
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
28523
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
28524
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
28525
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
28526
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
28527
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
28528
|
+
function isAsyncMode(object) {
|
|
28529
|
+
{
|
|
28530
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
28531
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
28532
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
28474
28533
|
}
|
|
28475
|
-
return output.join("");
|
|
28476
28534
|
}
|
|
28477
|
-
|
|
28478
|
-
|
|
28479
|
-
|
|
28535
|
+
return false;
|
|
28536
|
+
}
|
|
28537
|
+
function isConcurrentMode(object) {
|
|
28538
|
+
{
|
|
28539
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
28540
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
28541
|
+
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
28480
28542
|
}
|
|
28481
|
-
return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
|
|
28482
|
-
};
|
|
28483
|
-
str_format.format = function(parse_tree, argv) {
|
|
28484
|
-
var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i2, k2, match2, pad, pad_character, pad_length;
|
|
28485
|
-
for (i2 = 0; i2 < tree_length; i2++) {
|
|
28486
|
-
node_type = get_type(parse_tree[i2]);
|
|
28487
|
-
if (node_type === "string") {
|
|
28488
|
-
output.push(parse_tree[i2]);
|
|
28489
|
-
} else if (node_type === "array") {
|
|
28490
|
-
match2 = parse_tree[i2];
|
|
28491
|
-
if (match2[2]) {
|
|
28492
|
-
arg = argv[cursor];
|
|
28493
|
-
for (k2 = 0; k2 < match2[2].length; k2++) {
|
|
28494
|
-
if (!arg.hasOwnProperty(match2[2][k2])) {
|
|
28495
|
-
throw sprintf('[sprintf] property "%s" does not exist', match2[2][k2]);
|
|
28496
|
-
}
|
|
28497
|
-
arg = arg[match2[2][k2]];
|
|
28498
|
-
}
|
|
28499
|
-
} else if (match2[1]) {
|
|
28500
|
-
arg = argv[match2[1]];
|
|
28501
|
-
} else {
|
|
28502
|
-
arg = argv[cursor++];
|
|
28503
|
-
}
|
|
28504
|
-
if (/[^s]/.test(match2[8]) && get_type(arg) != "number") {
|
|
28505
|
-
throw sprintf("[sprintf] expecting number but found %s", get_type(arg));
|
|
28506
|
-
}
|
|
28507
|
-
if (typeof arg == "undefined" || arg === null) {
|
|
28508
|
-
arg = "";
|
|
28509
|
-
}
|
|
28510
|
-
switch (match2[8]) {
|
|
28511
|
-
case "b":
|
|
28512
|
-
arg = arg.toString(2);
|
|
28513
|
-
break;
|
|
28514
|
-
case "c":
|
|
28515
|
-
arg = String.fromCharCode(arg);
|
|
28516
|
-
break;
|
|
28517
|
-
case "d":
|
|
28518
|
-
arg = parseInt(arg, 10);
|
|
28519
|
-
break;
|
|
28520
|
-
case "e":
|
|
28521
|
-
arg = match2[7] ? arg.toExponential(match2[7]) : arg.toExponential();
|
|
28522
|
-
break;
|
|
28523
|
-
case "f":
|
|
28524
|
-
arg = match2[7] ? parseFloat(arg).toFixed(match2[7]) : parseFloat(arg);
|
|
28525
|
-
break;
|
|
28526
|
-
case "o":
|
|
28527
|
-
arg = arg.toString(8);
|
|
28528
|
-
break;
|
|
28529
|
-
case "s":
|
|
28530
|
-
arg = (arg = String(arg)) && match2[7] ? arg.substring(0, match2[7]) : arg;
|
|
28531
|
-
break;
|
|
28532
|
-
case "u":
|
|
28533
|
-
arg = Math.abs(arg);
|
|
28534
|
-
break;
|
|
28535
|
-
case "x":
|
|
28536
|
-
arg = arg.toString(16);
|
|
28537
|
-
break;
|
|
28538
|
-
case "X":
|
|
28539
|
-
arg = arg.toString(16).toUpperCase();
|
|
28540
|
-
break;
|
|
28541
|
-
}
|
|
28542
|
-
arg = /[def]/.test(match2[8]) && match2[3] && arg >= 0 ? "+" + arg : arg;
|
|
28543
|
-
pad_character = match2[4] ? match2[4] == "0" ? "0" : match2[4].charAt(1) : " ";
|
|
28544
|
-
pad_length = match2[6] - String(arg).length;
|
|
28545
|
-
pad = match2[6] ? str_repeat(pad_character, pad_length) : "";
|
|
28546
|
-
output.push(match2[5] ? arg + pad : pad + arg);
|
|
28547
|
-
}
|
|
28548
|
-
}
|
|
28549
|
-
return output.join("");
|
|
28550
|
-
};
|
|
28551
|
-
str_format.cache = {};
|
|
28552
|
-
str_format.parse = function(fmt) {
|
|
28553
|
-
var _fmt = fmt, match2 = [], parse_tree = [], arg_names = 0;
|
|
28554
|
-
while (_fmt) {
|
|
28555
|
-
if ((match2 = /^[^\x25]+/.exec(_fmt)) !== null) {
|
|
28556
|
-
parse_tree.push(match2[0]);
|
|
28557
|
-
} else if ((match2 = /^\x25{2}/.exec(_fmt)) !== null) {
|
|
28558
|
-
parse_tree.push("%");
|
|
28559
|
-
} else if ((match2 = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
|
|
28560
|
-
if (match2[2]) {
|
|
28561
|
-
arg_names |= 1;
|
|
28562
|
-
var field_list = [], replacement_field = match2[2], field_match = [];
|
|
28563
|
-
if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
28564
|
-
field_list.push(field_match[1]);
|
|
28565
|
-
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
28566
|
-
if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
28567
|
-
field_list.push(field_match[1]);
|
|
28568
|
-
} else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
|
|
28569
|
-
field_list.push(field_match[1]);
|
|
28570
|
-
} else {
|
|
28571
|
-
throw "[sprintf] huh?";
|
|
28572
|
-
}
|
|
28573
|
-
}
|
|
28574
|
-
} else {
|
|
28575
|
-
throw "[sprintf] huh?";
|
|
28576
|
-
}
|
|
28577
|
-
match2[2] = field_list;
|
|
28578
|
-
} else {
|
|
28579
|
-
arg_names |= 2;
|
|
28580
|
-
}
|
|
28581
|
-
if (arg_names === 3) {
|
|
28582
|
-
throw "[sprintf] mixing positional and named placeholders is not (yet) supported";
|
|
28583
|
-
}
|
|
28584
|
-
parse_tree.push(match2);
|
|
28585
|
-
} else {
|
|
28586
|
-
throw "[sprintf] huh?";
|
|
28587
|
-
}
|
|
28588
|
-
_fmt = _fmt.substring(match2[0].length);
|
|
28589
|
-
}
|
|
28590
|
-
return parse_tree;
|
|
28591
|
-
};
|
|
28592
|
-
return str_format;
|
|
28593
|
-
}();
|
|
28594
|
-
var vsprintf = function(fmt, argv) {
|
|
28595
|
-
argv.unshift(fmt);
|
|
28596
|
-
return sprintf.apply(null, argv);
|
|
28597
|
-
};
|
|
28598
|
-
Jed2.parse_plural = function(plural_forms, n2) {
|
|
28599
|
-
plural_forms = plural_forms.replace(/n/g, n2);
|
|
28600
|
-
return Jed2.parse_expression(plural_forms);
|
|
28601
|
-
};
|
|
28602
|
-
Jed2.sprintf = function(fmt, args) {
|
|
28603
|
-
if ({}.toString.call(args) == "[object Array]") {
|
|
28604
|
-
return vsprintf(fmt, [].slice.call(args));
|
|
28605
|
-
}
|
|
28606
|
-
return sprintf.apply(this, [].slice.call(arguments));
|
|
28607
|
-
};
|
|
28608
|
-
Jed2.prototype.sprintf = function() {
|
|
28609
|
-
return Jed2.sprintf.apply(this, arguments);
|
|
28610
|
-
};
|
|
28611
|
-
Jed2.PF = {};
|
|
28612
|
-
Jed2.PF.parse = function(p2) {
|
|
28613
|
-
var plural_str = Jed2.PF.extractPluralExpr(p2);
|
|
28614
|
-
return Jed2.PF.parser.parse.call(Jed2.PF.parser, plural_str);
|
|
28615
|
-
};
|
|
28616
|
-
Jed2.PF.compile = function(p2) {
|
|
28617
|
-
function imply(val) {
|
|
28618
|
-
return val === true ? 1 : val ? val : 0;
|
|
28619
28543
|
}
|
|
28620
|
-
|
|
28621
|
-
|
|
28622
|
-
|
|
28623
|
-
|
|
28624
|
-
}
|
|
28625
|
-
|
|
28626
|
-
return
|
|
28627
|
-
|
|
28628
|
-
|
|
28629
|
-
|
|
28630
|
-
|
|
28631
|
-
|
|
28632
|
-
|
|
28633
|
-
|
|
28634
|
-
|
|
28635
|
-
|
|
28636
|
-
|
|
28637
|
-
|
|
28638
|
-
|
|
28639
|
-
|
|
28640
|
-
|
|
28641
|
-
|
|
28642
|
-
|
|
28643
|
-
|
|
28644
|
-
|
|
28645
|
-
|
|
28646
|
-
|
|
28647
|
-
|
|
28648
|
-
|
|
28649
|
-
|
|
28650
|
-
|
|
28651
|
-
|
|
28652
|
-
|
|
28653
|
-
|
|
28654
|
-
|
|
28655
|
-
|
|
28656
|
-
|
|
28657
|
-
|
|
28658
|
-
|
|
28659
|
-
|
|
28660
|
-
|
|
28661
|
-
|
|
28662
|
-
|
|
28663
|
-
|
|
28664
|
-
|
|
28665
|
-
|
|
28666
|
-
|
|
28667
|
-
|
|
28668
|
-
|
|
28669
|
-
|
|
28670
|
-
|
|
28671
|
-
|
|
28672
|
-
|
|
28673
|
-
|
|
28674
|
-
|
|
28675
|
-
|
|
28676
|
-
|
|
28677
|
-
|
|
28678
|
-
|
|
28679
|
-
|
|
28680
|
-
|
|
28681
|
-
|
|
28682
|
-
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
|
|
28686
|
-
|
|
28687
|
-
|
|
28688
|
-
|
|
28689
|
-
|
|
28690
|
-
|
|
28691
|
-
|
|
28692
|
-
|
|
28693
|
-
|
|
28694
|
-
|
|
28695
|
-
|
|
28696
|
-
|
|
28697
|
-
|
|
28698
|
-
|
|
28699
|
-
|
|
28700
|
-
|
|
28701
|
-
|
|
28702
|
-
|
|
28703
|
-
this.$ = { type: "LT", left: $$[$0 - 2], right: $$[$0] };
|
|
28704
|
-
break;
|
|
28705
|
-
case 6:
|
|
28706
|
-
this.$ = { type: "LTE", left: $$[$0 - 2], right: $$[$0] };
|
|
28707
|
-
break;
|
|
28708
|
-
case 7:
|
|
28709
|
-
this.$ = { type: "GT", left: $$[$0 - 2], right: $$[$0] };
|
|
28710
|
-
break;
|
|
28711
|
-
case 8:
|
|
28712
|
-
this.$ = { type: "GTE", left: $$[$0 - 2], right: $$[$0] };
|
|
28713
|
-
break;
|
|
28714
|
-
case 9:
|
|
28715
|
-
this.$ = { type: "NEQ", left: $$[$0 - 2], right: $$[$0] };
|
|
28716
|
-
break;
|
|
28717
|
-
case 10:
|
|
28718
|
-
this.$ = { type: "EQ", left: $$[$0 - 2], right: $$[$0] };
|
|
28719
|
-
break;
|
|
28720
|
-
case 11:
|
|
28721
|
-
this.$ = { type: "MOD", left: $$[$0 - 2], right: $$[$0] };
|
|
28722
|
-
break;
|
|
28723
|
-
case 12:
|
|
28724
|
-
this.$ = { type: "GROUP", expr: $$[$0 - 1] };
|
|
28725
|
-
break;
|
|
28726
|
-
case 13:
|
|
28727
|
-
this.$ = { type: "VAR" };
|
|
28728
|
-
break;
|
|
28729
|
-
case 14:
|
|
28730
|
-
this.$ = { type: "NUM", val: Number(yytext) };
|
|
28731
|
-
break;
|
|
28732
|
-
}
|
|
28733
|
-
},
|
|
28734
|
-
table: [{ 3: 1, 4: 2, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 1: [3] }, { 5: [1, 6], 6: [1, 7], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16] }, { 4: 17, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 5: [2, 13], 6: [2, 13], 7: [2, 13], 8: [2, 13], 9: [2, 13], 10: [2, 13], 11: [2, 13], 12: [2, 13], 13: [2, 13], 14: [2, 13], 15: [2, 13], 16: [2, 13], 18: [2, 13] }, { 5: [2, 14], 6: [2, 14], 7: [2, 14], 8: [2, 14], 9: [2, 14], 10: [2, 14], 11: [2, 14], 12: [2, 14], 13: [2, 14], 14: [2, 14], 15: [2, 14], 16: [2, 14], 18: [2, 14] }, { 1: [2, 1] }, { 4: 18, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 19, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 20, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 21, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 22, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 23, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 24, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 25, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 26, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 27, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 6: [1, 7], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [1, 28] }, { 6: [1, 7], 7: [1, 29], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16] }, { 5: [2, 3], 6: [2, 3], 7: [2, 3], 8: [2, 3], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [2, 3] }, { 5: [2, 4], 6: [2, 4], 7: [2, 4], 8: [2, 4], 9: [2, 4], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [2, 4] }, { 5: [2, 5], 6: [2, 5], 7: [2, 5], 8: [2, 5], 9: [2, 5], 10: [2, 5], 11: [2, 5], 12: [2, 5], 13: [2, 5], 14: [2, 5], 15: [2, 5], 16: [1, 16], 18: [2, 5] }, { 5: [2, 6], 6: [2, 6], 7: [2, 6], 8: [2, 6], 9: [2, 6], 10: [2, 6], 11: [2, 6], 12: [2, 6], 13: [2, 6], 14: [2, 6], 15: [2, 6], 16: [1, 16], 18: [2, 6] }, { 5: [2, 7], 6: [2, 7], 7: [2, 7], 8: [2, 7], 9: [2, 7], 10: [2, 7], 11: [2, 7], 12: [2, 7], 13: [2, 7], 14: [2, 7], 15: [2, 7], 16: [1, 16], 18: [2, 7] }, { 5: [2, 8], 6: [2, 8], 7: [2, 8], 8: [2, 8], 9: [2, 8], 10: [2, 8], 11: [2, 8], 12: [2, 8], 13: [2, 8], 14: [2, 8], 15: [2, 8], 16: [1, 16], 18: [2, 8] }, { 5: [2, 9], 6: [2, 9], 7: [2, 9], 8: [2, 9], 9: [2, 9], 10: [2, 9], 11: [2, 9], 12: [2, 9], 13: [2, 9], 14: [2, 9], 15: [2, 9], 16: [1, 16], 18: [2, 9] }, { 5: [2, 10], 6: [2, 10], 7: [2, 10], 8: [2, 10], 9: [2, 10], 10: [2, 10], 11: [2, 10], 12: [2, 10], 13: [2, 10], 14: [2, 10], 15: [2, 10], 16: [1, 16], 18: [2, 10] }, { 5: [2, 11], 6: [2, 11], 7: [2, 11], 8: [2, 11], 9: [2, 11], 10: [2, 11], 11: [2, 11], 12: [2, 11], 13: [2, 11], 14: [2, 11], 15: [2, 11], 16: [2, 11], 18: [2, 11] }, { 5: [2, 12], 6: [2, 12], 7: [2, 12], 8: [2, 12], 9: [2, 12], 10: [2, 12], 11: [2, 12], 12: [2, 12], 13: [2, 12], 14: [2, 12], 15: [2, 12], 16: [2, 12], 18: [2, 12] }, { 4: 30, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 5: [2, 2], 6: [1, 7], 7: [2, 2], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [2, 2] }],
|
|
28735
|
-
defaultActions: { 6: [2, 1] },
|
|
28736
|
-
parseError: function parseError(str, hash) {
|
|
28737
|
-
throw new Error(str);
|
|
28738
|
-
},
|
|
28739
|
-
parse: function parse2(input) {
|
|
28740
|
-
var self2 = this, stack = [0], vstack = [null], lstack = [], table2 = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
28741
|
-
this.lexer.setInput(input);
|
|
28742
|
-
this.lexer.yy = this.yy;
|
|
28743
|
-
this.yy.lexer = this.lexer;
|
|
28744
|
-
if (typeof this.lexer.yylloc == "undefined")
|
|
28745
|
-
this.lexer.yylloc = {};
|
|
28746
|
-
var yyloc = this.lexer.yylloc;
|
|
28747
|
-
lstack.push(yyloc);
|
|
28748
|
-
if (typeof this.yy.parseError === "function")
|
|
28749
|
-
this.parseError = this.yy.parseError;
|
|
28750
|
-
function popStack(n2) {
|
|
28751
|
-
stack.length = stack.length - 2 * n2;
|
|
28752
|
-
vstack.length = vstack.length - n2;
|
|
28753
|
-
lstack.length = lstack.length - n2;
|
|
28754
|
-
}
|
|
28755
|
-
function lex() {
|
|
28756
|
-
var token2;
|
|
28757
|
-
token2 = self2.lexer.lex() || 1;
|
|
28758
|
-
if (typeof token2 !== "number") {
|
|
28759
|
-
token2 = self2.symbols_[token2] || token2;
|
|
28760
|
-
}
|
|
28761
|
-
return token2;
|
|
28762
|
-
}
|
|
28763
|
-
var symbol, preErrorSymbol, state, action, r2, yyval = {}, p2, len, newState, expected;
|
|
28764
|
-
while (true) {
|
|
28765
|
-
state = stack[stack.length - 1];
|
|
28766
|
-
if (this.defaultActions[state]) {
|
|
28767
|
-
action = this.defaultActions[state];
|
|
28768
|
-
} else {
|
|
28769
|
-
if (symbol == null)
|
|
28770
|
-
symbol = lex();
|
|
28771
|
-
action = table2[state] && table2[state][symbol];
|
|
28772
|
-
}
|
|
28773
|
-
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
28774
|
-
if (!recovering) {
|
|
28775
|
-
expected = [];
|
|
28776
|
-
for (p2 in table2[state])
|
|
28777
|
-
if (this.terminals_[p2] && p2 > 2) {
|
|
28778
|
-
expected.push("'" + this.terminals_[p2] + "'");
|
|
28779
|
-
}
|
|
28780
|
-
var errStr = "";
|
|
28781
|
-
if (this.lexer.showPosition) {
|
|
28782
|
-
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + this.terminals_[symbol] + "'";
|
|
28783
|
-
} else {
|
|
28784
|
-
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
28785
|
-
}
|
|
28786
|
-
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
|
28787
|
-
}
|
|
28788
|
-
if (recovering == 3) {
|
|
28789
|
-
if (symbol == EOF) {
|
|
28790
|
-
throw new Error(errStr || "Parsing halted.");
|
|
28791
|
-
}
|
|
28792
|
-
yyleng = this.lexer.yyleng;
|
|
28793
|
-
yytext = this.lexer.yytext;
|
|
28794
|
-
yylineno = this.lexer.yylineno;
|
|
28795
|
-
yyloc = this.lexer.yylloc;
|
|
28796
|
-
symbol = lex();
|
|
28797
|
-
}
|
|
28798
|
-
while (1) {
|
|
28799
|
-
if (TERROR.toString() in table2[state]) {
|
|
28800
|
-
break;
|
|
28801
|
-
}
|
|
28802
|
-
if (state == 0) {
|
|
28803
|
-
throw new Error(errStr || "Parsing halted.");
|
|
28804
|
-
}
|
|
28805
|
-
popStack(1);
|
|
28806
|
-
state = stack[stack.length - 1];
|
|
28807
|
-
}
|
|
28808
|
-
preErrorSymbol = symbol;
|
|
28809
|
-
symbol = TERROR;
|
|
28810
|
-
state = stack[stack.length - 1];
|
|
28811
|
-
action = table2[state] && table2[state][TERROR];
|
|
28812
|
-
recovering = 3;
|
|
28813
|
-
}
|
|
28814
|
-
if (action[0] instanceof Array && action.length > 1) {
|
|
28815
|
-
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
28816
|
-
}
|
|
28817
|
-
switch (action[0]) {
|
|
28818
|
-
case 1:
|
|
28819
|
-
stack.push(symbol);
|
|
28820
|
-
vstack.push(this.lexer.yytext);
|
|
28821
|
-
lstack.push(this.lexer.yylloc);
|
|
28822
|
-
stack.push(action[1]);
|
|
28823
|
-
symbol = null;
|
|
28824
|
-
if (!preErrorSymbol) {
|
|
28825
|
-
yyleng = this.lexer.yyleng;
|
|
28826
|
-
yytext = this.lexer.yytext;
|
|
28827
|
-
yylineno = this.lexer.yylineno;
|
|
28828
|
-
yyloc = this.lexer.yylloc;
|
|
28829
|
-
if (recovering > 0)
|
|
28830
|
-
recovering--;
|
|
28831
|
-
} else {
|
|
28832
|
-
symbol = preErrorSymbol;
|
|
28833
|
-
preErrorSymbol = null;
|
|
28834
|
-
}
|
|
28835
|
-
break;
|
|
28836
|
-
case 2:
|
|
28837
|
-
len = this.productions_[action[1]][1];
|
|
28838
|
-
yyval.$ = vstack[vstack.length - len];
|
|
28839
|
-
yyval._$ = {
|
|
28840
|
-
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
28841
|
-
last_line: lstack[lstack.length - 1].last_line,
|
|
28842
|
-
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
28843
|
-
last_column: lstack[lstack.length - 1].last_column
|
|
28844
|
-
};
|
|
28845
|
-
r2 = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
|
|
28846
|
-
if (typeof r2 !== "undefined") {
|
|
28847
|
-
return r2;
|
|
28848
|
-
}
|
|
28849
|
-
if (len) {
|
|
28850
|
-
stack = stack.slice(0, -1 * len * 2);
|
|
28851
|
-
vstack = vstack.slice(0, -1 * len);
|
|
28852
|
-
lstack = lstack.slice(0, -1 * len);
|
|
28853
|
-
}
|
|
28854
|
-
stack.push(this.productions_[action[1]][0]);
|
|
28855
|
-
vstack.push(yyval.$);
|
|
28856
|
-
lstack.push(yyval._$);
|
|
28857
|
-
newState = table2[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
28858
|
-
stack.push(newState);
|
|
28859
|
-
break;
|
|
28860
|
-
case 3:
|
|
28861
|
-
return true;
|
|
28862
|
-
}
|
|
28863
|
-
}
|
|
28864
|
-
return true;
|
|
28865
|
-
}
|
|
28866
|
-
};
|
|
28867
|
-
var lexer = function() {
|
|
28868
|
-
var lexer2 = {
|
|
28869
|
-
EOF: 1,
|
|
28870
|
-
parseError: function parseError(str, hash) {
|
|
28871
|
-
if (this.yy.parseError) {
|
|
28872
|
-
this.yy.parseError(str, hash);
|
|
28873
|
-
} else {
|
|
28874
|
-
throw new Error(str);
|
|
28875
|
-
}
|
|
28876
|
-
},
|
|
28877
|
-
setInput: function(input) {
|
|
28878
|
-
this._input = input;
|
|
28879
|
-
this._more = this._less = this.done = false;
|
|
28880
|
-
this.yylineno = this.yyleng = 0;
|
|
28881
|
-
this.yytext = this.matched = this.match = "";
|
|
28882
|
-
this.conditionStack = ["INITIAL"];
|
|
28883
|
-
this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 };
|
|
28884
|
-
return this;
|
|
28885
|
-
},
|
|
28886
|
-
input: function() {
|
|
28887
|
-
var ch = this._input[0];
|
|
28888
|
-
this.yytext += ch;
|
|
28889
|
-
this.yyleng++;
|
|
28890
|
-
this.match += ch;
|
|
28891
|
-
this.matched += ch;
|
|
28892
|
-
var lines = ch.match(/\n/);
|
|
28893
|
-
if (lines)
|
|
28894
|
-
this.yylineno++;
|
|
28895
|
-
this._input = this._input.slice(1);
|
|
28896
|
-
return ch;
|
|
28897
|
-
},
|
|
28898
|
-
unput: function(ch) {
|
|
28899
|
-
this._input = ch + this._input;
|
|
28900
|
-
return this;
|
|
28901
|
-
},
|
|
28902
|
-
more: function() {
|
|
28903
|
-
this._more = true;
|
|
28904
|
-
return this;
|
|
28905
|
-
},
|
|
28906
|
-
pastInput: function() {
|
|
28907
|
-
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
28908
|
-
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
28909
|
-
},
|
|
28910
|
-
upcomingInput: function() {
|
|
28911
|
-
var next = this.match;
|
|
28912
|
-
if (next.length < 20) {
|
|
28913
|
-
next += this._input.substr(0, 20 - next.length);
|
|
28914
|
-
}
|
|
28915
|
-
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
28916
|
-
},
|
|
28917
|
-
showPosition: function() {
|
|
28918
|
-
var pre = this.pastInput();
|
|
28919
|
-
var c6 = new Array(pre.length + 1).join("-");
|
|
28920
|
-
return pre + this.upcomingInput() + "\n" + c6 + "^";
|
|
28921
|
-
},
|
|
28922
|
-
next: function() {
|
|
28923
|
-
if (this.done) {
|
|
28924
|
-
return this.EOF;
|
|
28925
|
-
}
|
|
28926
|
-
if (!this._input)
|
|
28927
|
-
this.done = true;
|
|
28928
|
-
var token2, match2, lines;
|
|
28929
|
-
if (!this._more) {
|
|
28930
|
-
this.yytext = "";
|
|
28931
|
-
this.match = "";
|
|
28932
|
-
}
|
|
28933
|
-
var rules2 = this._currentRules();
|
|
28934
|
-
for (var i2 = 0; i2 < rules2.length; i2++) {
|
|
28935
|
-
match2 = this._input.match(this.rules[rules2[i2]]);
|
|
28936
|
-
if (match2) {
|
|
28937
|
-
lines = match2[0].match(/\n.*/g);
|
|
28938
|
-
if (lines)
|
|
28939
|
-
this.yylineno += lines.length;
|
|
28940
|
-
this.yylloc = {
|
|
28941
|
-
first_line: this.yylloc.last_line,
|
|
28942
|
-
last_line: this.yylineno + 1,
|
|
28943
|
-
first_column: this.yylloc.last_column,
|
|
28944
|
-
last_column: lines ? lines[lines.length - 1].length - 1 : this.yylloc.last_column + match2[0].length
|
|
28945
|
-
};
|
|
28946
|
-
this.yytext += match2[0];
|
|
28947
|
-
this.match += match2[0];
|
|
28948
|
-
this.matches = match2;
|
|
28949
|
-
this.yyleng = this.yytext.length;
|
|
28950
|
-
this._more = false;
|
|
28951
|
-
this._input = this._input.slice(match2[0].length);
|
|
28952
|
-
this.matched += match2[0];
|
|
28953
|
-
token2 = this.performAction.call(this, this.yy, this, rules2[i2], this.conditionStack[this.conditionStack.length - 1]);
|
|
28954
|
-
if (token2)
|
|
28955
|
-
return token2;
|
|
28956
|
-
else
|
|
28957
|
-
return;
|
|
28958
|
-
}
|
|
28959
|
-
}
|
|
28960
|
-
if (this._input === "") {
|
|
28961
|
-
return this.EOF;
|
|
28962
|
-
} else {
|
|
28963
|
-
this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { text: "", token: null, line: this.yylineno });
|
|
28964
|
-
}
|
|
28965
|
-
},
|
|
28966
|
-
lex: function lex() {
|
|
28967
|
-
var r2 = this.next();
|
|
28968
|
-
if (typeof r2 !== "undefined") {
|
|
28969
|
-
return r2;
|
|
28970
|
-
} else {
|
|
28971
|
-
return this.lex();
|
|
28972
|
-
}
|
|
28973
|
-
},
|
|
28974
|
-
begin: function begin(condition) {
|
|
28975
|
-
this.conditionStack.push(condition);
|
|
28976
|
-
},
|
|
28977
|
-
popState: function popState() {
|
|
28978
|
-
return this.conditionStack.pop();
|
|
28979
|
-
},
|
|
28980
|
-
_currentRules: function _currentRules() {
|
|
28981
|
-
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
28982
|
-
},
|
|
28983
|
-
topState: function() {
|
|
28984
|
-
return this.conditionStack[this.conditionStack.length - 2];
|
|
28985
|
-
},
|
|
28986
|
-
pushState: function begin(condition) {
|
|
28987
|
-
this.begin(condition);
|
|
28988
|
-
}
|
|
28989
|
-
};
|
|
28990
|
-
lexer2.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
28991
|
-
switch ($avoiding_name_collisions) {
|
|
28992
|
-
case 0:
|
|
28993
|
-
break;
|
|
28994
|
-
case 1:
|
|
28995
|
-
return 20;
|
|
28996
|
-
case 2:
|
|
28997
|
-
return 19;
|
|
28998
|
-
case 3:
|
|
28999
|
-
return 8;
|
|
29000
|
-
case 4:
|
|
29001
|
-
return 9;
|
|
29002
|
-
case 5:
|
|
29003
|
-
return 6;
|
|
29004
|
-
case 6:
|
|
29005
|
-
return 7;
|
|
29006
|
-
case 7:
|
|
29007
|
-
return 11;
|
|
29008
|
-
case 8:
|
|
29009
|
-
return 13;
|
|
29010
|
-
case 9:
|
|
29011
|
-
return 10;
|
|
29012
|
-
case 10:
|
|
29013
|
-
return 12;
|
|
29014
|
-
case 11:
|
|
29015
|
-
return 14;
|
|
29016
|
-
case 12:
|
|
29017
|
-
return 15;
|
|
29018
|
-
case 13:
|
|
29019
|
-
return 16;
|
|
29020
|
-
case 14:
|
|
29021
|
-
return 17;
|
|
29022
|
-
case 15:
|
|
29023
|
-
return 18;
|
|
29024
|
-
case 16:
|
|
29025
|
-
return 5;
|
|
29026
|
-
case 17:
|
|
29027
|
-
return "INVALID";
|
|
29028
|
-
}
|
|
29029
|
-
};
|
|
29030
|
-
lexer2.rules = [/^\s+/, /^[0-9]+(\.[0-9]+)?\b/, /^n\b/, /^\|\|/, /^&&/, /^\?/, /^:/, /^<=/, /^>=/, /^</, /^>/, /^!=/, /^==/, /^%/, /^\(/, /^\)/, /^$/, /^./];
|
|
29031
|
-
lexer2.conditions = { "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "inclusive": true } };
|
|
29032
|
-
return lexer2;
|
|
29033
|
-
}();
|
|
29034
|
-
parser.lexer = lexer;
|
|
29035
|
-
return parser;
|
|
29036
|
-
}();
|
|
29037
|
-
{
|
|
29038
|
-
if (module2.exports) {
|
|
29039
|
-
exports3 = module2.exports = Jed2;
|
|
29040
|
-
}
|
|
29041
|
-
exports3.Jed = Jed2;
|
|
29042
|
-
}
|
|
29043
|
-
})();
|
|
29044
|
-
})(jed, jed.exports);
|
|
29045
|
-
var Jed = jed.exports;
|
|
29046
|
-
const fetcher = (url) => fetch(url).then((r2) => r2.json());
|
|
29047
|
-
function messageFormat(string, replacements) {
|
|
29048
|
-
return string.replace(/\{(\d+)\}/g, function() {
|
|
29049
|
-
return replacements[arguments[1]];
|
|
29050
|
-
});
|
|
29051
|
-
}
|
|
29052
|
-
function useI18n() {
|
|
29053
|
-
const { i18nFeed } = useSelector((state) => state.headerInfo);
|
|
29054
|
-
const userLanguage = useSelector((state) => state.userLanguage);
|
|
29055
|
-
const { data: data2, error } = index(i18nFeed && userLanguage ? messageFormat(i18nFeed, [userLanguage]) : null, fetcher);
|
|
29056
|
-
return {
|
|
29057
|
-
i18n: new Jed({
|
|
29058
|
-
locale_data: data2 || {
|
|
29059
|
-
messages: {
|
|
29060
|
-
"": {}
|
|
29061
|
-
}
|
|
29062
|
-
}
|
|
29063
|
-
}),
|
|
29064
|
-
error
|
|
29065
|
-
};
|
|
29066
|
-
}
|
|
29067
|
-
var _jsxFileName$a = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Extranet.jsx";
|
|
29068
|
-
function Extranet() {
|
|
29069
|
-
const {
|
|
29070
|
-
i18n
|
|
29071
|
-
} = useI18n();
|
|
29072
|
-
const {
|
|
29073
|
-
isOpen,
|
|
29074
|
-
isMobileOrTablet
|
|
29075
|
-
} = useSelector((state) => state.headerInfo);
|
|
29076
|
-
const [ref, {
|
|
29077
|
-
height
|
|
29078
|
-
}] = useMeasure$1();
|
|
29079
|
-
const transitions = useTransition(!isMobileOrTablet || isOpen, {
|
|
29080
|
-
from: {
|
|
29081
|
-
height: 0
|
|
29082
|
-
},
|
|
29083
|
-
enter: {
|
|
29084
|
-
height
|
|
29085
|
-
},
|
|
29086
|
-
leave: {
|
|
29087
|
-
height: 0
|
|
29088
|
-
},
|
|
29089
|
-
update: {
|
|
29090
|
-
height
|
|
29091
|
-
},
|
|
29092
|
-
config: __spreadProps(__spreadValues({}, config.stiff), {
|
|
29093
|
-
clamp: true
|
|
29094
|
-
})
|
|
29095
|
-
});
|
|
29096
|
-
return transitions((styles, item) => item && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(animated.div, {
|
|
29097
|
-
className: "col-12 pt-lg-2 order-lg-1",
|
|
29098
|
-
id: "hd-extranet",
|
|
29099
|
-
style: isMobileOrTablet ? __spreadProps(__spreadValues({}, styles), {
|
|
29100
|
-
display: "block"
|
|
29101
|
-
}) : {},
|
|
29102
|
-
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("a", {
|
|
29103
|
-
ref,
|
|
29104
|
-
className: "d-block ",
|
|
29105
|
-
href: "#",
|
|
29106
|
-
target: "_blank",
|
|
29107
|
-
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.ArrowLeft, {
|
|
29108
|
-
className: "hd-icon hd-icon-arrow-left"
|
|
29109
|
-
}, void 0, false, {
|
|
29110
|
-
fileName: _jsxFileName$a,
|
|
29111
|
-
lineNumber: 27,
|
|
29112
|
-
columnNumber: 13
|
|
29113
|
-
}, this), i18n.translate("Back to the Extranet").fetch()]
|
|
29114
|
-
}, void 0, true, {
|
|
29115
|
-
fileName: _jsxFileName$a,
|
|
29116
|
-
lineNumber: 26,
|
|
29117
|
-
columnNumber: 11
|
|
29118
|
-
}, this)
|
|
29119
|
-
}, void 0, false, {
|
|
29120
|
-
fileName: _jsxFileName$a,
|
|
29121
|
-
lineNumber: 21,
|
|
29122
|
-
columnNumber: 9
|
|
29123
|
-
}, this));
|
|
29124
|
-
}
|
|
29125
|
-
function _assertThisInitialized(self2) {
|
|
29126
|
-
if (self2 === void 0) {
|
|
29127
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
29128
|
-
}
|
|
29129
|
-
return self2;
|
|
29130
|
-
}
|
|
29131
|
-
function _setPrototypeOf(o2, p2) {
|
|
29132
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
29133
|
-
o3.__proto__ = p3;
|
|
29134
|
-
return o3;
|
|
29135
|
-
};
|
|
29136
|
-
return _setPrototypeOf(o2, p2);
|
|
29137
|
-
}
|
|
29138
|
-
function _inheritsLoose(subClass, superClass) {
|
|
29139
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
29140
|
-
subClass.prototype.constructor = subClass;
|
|
29141
|
-
_setPrototypeOf(subClass, superClass);
|
|
29142
|
-
}
|
|
29143
|
-
var reactIs = { exports: {} };
|
|
29144
|
-
var reactIs_development = {};
|
|
29145
|
-
/** @license React v17.0.2
|
|
29146
|
-
* react-is.development.js
|
|
29147
|
-
*
|
|
29148
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29149
|
-
*
|
|
29150
|
-
* This source code is licensed under the MIT license found in the
|
|
29151
|
-
* LICENSE file in the root directory of this source tree.
|
|
29152
|
-
*/
|
|
29153
|
-
{
|
|
29154
|
-
(function() {
|
|
29155
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
29156
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
29157
|
-
var REACT_FRAGMENT_TYPE = 60107;
|
|
29158
|
-
var REACT_STRICT_MODE_TYPE = 60108;
|
|
29159
|
-
var REACT_PROFILER_TYPE = 60114;
|
|
29160
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
29161
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
29162
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
29163
|
-
var REACT_SUSPENSE_TYPE = 60113;
|
|
29164
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
29165
|
-
var REACT_MEMO_TYPE = 60115;
|
|
29166
|
-
var REACT_LAZY_TYPE = 60116;
|
|
29167
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
29168
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
29169
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
29170
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
29171
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
29172
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
29173
|
-
var symbolFor2 = Symbol.for;
|
|
29174
|
-
REACT_ELEMENT_TYPE = symbolFor2("react.element");
|
|
29175
|
-
REACT_PORTAL_TYPE = symbolFor2("react.portal");
|
|
29176
|
-
REACT_FRAGMENT_TYPE = symbolFor2("react.fragment");
|
|
29177
|
-
REACT_STRICT_MODE_TYPE = symbolFor2("react.strict_mode");
|
|
29178
|
-
REACT_PROFILER_TYPE = symbolFor2("react.profiler");
|
|
29179
|
-
REACT_PROVIDER_TYPE = symbolFor2("react.provider");
|
|
29180
|
-
REACT_CONTEXT_TYPE = symbolFor2("react.context");
|
|
29181
|
-
REACT_FORWARD_REF_TYPE = symbolFor2("react.forward_ref");
|
|
29182
|
-
REACT_SUSPENSE_TYPE = symbolFor2("react.suspense");
|
|
29183
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor2("react.suspense_list");
|
|
29184
|
-
REACT_MEMO_TYPE = symbolFor2("react.memo");
|
|
29185
|
-
REACT_LAZY_TYPE = symbolFor2("react.lazy");
|
|
29186
|
-
REACT_BLOCK_TYPE = symbolFor2("react.block");
|
|
29187
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor2("react.server.block");
|
|
29188
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor2("react.fundamental");
|
|
29189
|
-
symbolFor2("react.scope");
|
|
29190
|
-
symbolFor2("react.opaque.id");
|
|
29191
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor2("react.debug_trace_mode");
|
|
29192
|
-
symbolFor2("react.offscreen");
|
|
29193
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor2("react.legacy_hidden");
|
|
29194
|
-
}
|
|
29195
|
-
var enableScopeAPI = false;
|
|
29196
|
-
function isValidElementType(type) {
|
|
29197
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
29198
|
-
return true;
|
|
29199
|
-
}
|
|
29200
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
29201
|
-
return true;
|
|
29202
|
-
}
|
|
29203
|
-
if (typeof type === "object" && type !== null) {
|
|
29204
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
29205
|
-
return true;
|
|
29206
|
-
}
|
|
29207
|
-
}
|
|
29208
|
-
return false;
|
|
29209
|
-
}
|
|
29210
|
-
function typeOf(object) {
|
|
29211
|
-
if (typeof object === "object" && object !== null) {
|
|
29212
|
-
var $$typeof = object.$$typeof;
|
|
29213
|
-
switch ($$typeof) {
|
|
29214
|
-
case REACT_ELEMENT_TYPE:
|
|
29215
|
-
var type = object.type;
|
|
29216
|
-
switch (type) {
|
|
29217
|
-
case REACT_FRAGMENT_TYPE:
|
|
29218
|
-
case REACT_PROFILER_TYPE:
|
|
29219
|
-
case REACT_STRICT_MODE_TYPE:
|
|
29220
|
-
case REACT_SUSPENSE_TYPE:
|
|
29221
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
29222
|
-
return type;
|
|
29223
|
-
default:
|
|
29224
|
-
var $$typeofType = type && type.$$typeof;
|
|
29225
|
-
switch ($$typeofType) {
|
|
29226
|
-
case REACT_CONTEXT_TYPE:
|
|
29227
|
-
case REACT_FORWARD_REF_TYPE:
|
|
29228
|
-
case REACT_LAZY_TYPE:
|
|
29229
|
-
case REACT_MEMO_TYPE:
|
|
29230
|
-
case REACT_PROVIDER_TYPE:
|
|
29231
|
-
return $$typeofType;
|
|
29232
|
-
default:
|
|
29233
|
-
return $$typeof;
|
|
29234
|
-
}
|
|
29235
|
-
}
|
|
29236
|
-
case REACT_PORTAL_TYPE:
|
|
29237
|
-
return $$typeof;
|
|
29238
|
-
}
|
|
29239
|
-
}
|
|
29240
|
-
return void 0;
|
|
29241
|
-
}
|
|
29242
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
29243
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
29244
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
29245
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
29246
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
29247
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
29248
|
-
var Memo = REACT_MEMO_TYPE;
|
|
29249
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
29250
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
29251
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
29252
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
29253
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
29254
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
29255
|
-
function isAsyncMode(object) {
|
|
29256
|
-
{
|
|
29257
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
29258
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
29259
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
29260
|
-
}
|
|
29261
|
-
}
|
|
29262
|
-
return false;
|
|
29263
|
-
}
|
|
29264
|
-
function isConcurrentMode(object) {
|
|
29265
|
-
{
|
|
29266
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
29267
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
29268
|
-
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
29269
|
-
}
|
|
29270
|
-
}
|
|
29271
|
-
return false;
|
|
29272
|
-
}
|
|
29273
|
-
function isContextConsumer(object) {
|
|
29274
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
29275
|
-
}
|
|
29276
|
-
function isContextProvider(object) {
|
|
29277
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
29278
|
-
}
|
|
29279
|
-
function isElement(object) {
|
|
29280
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
29281
|
-
}
|
|
29282
|
-
function isForwardRef(object) {
|
|
29283
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
29284
|
-
}
|
|
29285
|
-
function isFragment(object) {
|
|
29286
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
29287
|
-
}
|
|
29288
|
-
function isLazy(object) {
|
|
29289
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
29290
|
-
}
|
|
29291
|
-
function isMemo(object) {
|
|
29292
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
29293
|
-
}
|
|
29294
|
-
function isPortal(object) {
|
|
29295
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
29296
|
-
}
|
|
29297
|
-
function isProfiler(object) {
|
|
29298
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
29299
|
-
}
|
|
29300
|
-
function isStrictMode(object) {
|
|
29301
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
29302
|
-
}
|
|
29303
|
-
function isSuspense(object) {
|
|
29304
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
29305
|
-
}
|
|
29306
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
29307
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
29308
|
-
reactIs_development.Element = Element;
|
|
29309
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
29310
|
-
reactIs_development.Fragment = Fragment;
|
|
29311
|
-
reactIs_development.Lazy = Lazy;
|
|
29312
|
-
reactIs_development.Memo = Memo;
|
|
29313
|
-
reactIs_development.Portal = Portal;
|
|
29314
|
-
reactIs_development.Profiler = Profiler;
|
|
29315
|
-
reactIs_development.StrictMode = StrictMode;
|
|
29316
|
-
reactIs_development.Suspense = Suspense;
|
|
29317
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
29318
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
29319
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
29320
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
29321
|
-
reactIs_development.isElement = isElement;
|
|
29322
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
29323
|
-
reactIs_development.isFragment = isFragment;
|
|
29324
|
-
reactIs_development.isLazy = isLazy;
|
|
29325
|
-
reactIs_development.isMemo = isMemo;
|
|
29326
|
-
reactIs_development.isPortal = isPortal;
|
|
29327
|
-
reactIs_development.isProfiler = isProfiler;
|
|
29328
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
29329
|
-
reactIs_development.isSuspense = isSuspense;
|
|
29330
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
29331
|
-
reactIs_development.typeOf = typeOf;
|
|
29332
|
-
})();
|
|
29333
|
-
}
|
|
29334
|
-
{
|
|
29335
|
-
reactIs.exports = reactIs_development;
|
|
29336
|
-
}
|
|
29337
|
-
function t(t2) {
|
|
29338
|
-
return typeof t2 == "object" && t2 != null && t2.nodeType === 1;
|
|
29339
|
-
}
|
|
29340
|
-
function e(t2, e2) {
|
|
29341
|
-
return (!e2 || t2 !== "hidden") && t2 !== "visible" && t2 !== "clip";
|
|
29342
|
-
}
|
|
29343
|
-
function n(t2, n2) {
|
|
29344
|
-
if (t2.clientHeight < t2.scrollHeight || t2.clientWidth < t2.scrollWidth) {
|
|
29345
|
-
var r2 = getComputedStyle(t2, null);
|
|
29346
|
-
return e(r2.overflowY, n2) || e(r2.overflowX, n2) || function(t3) {
|
|
29347
|
-
var e2 = function(t4) {
|
|
29348
|
-
if (!t4.ownerDocument || !t4.ownerDocument.defaultView)
|
|
29349
|
-
return null;
|
|
29350
|
-
try {
|
|
29351
|
-
return t4.ownerDocument.defaultView.frameElement;
|
|
29352
|
-
} catch (t5) {
|
|
29353
|
-
return null;
|
|
28544
|
+
return false;
|
|
28545
|
+
}
|
|
28546
|
+
function isContextConsumer(object) {
|
|
28547
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
28548
|
+
}
|
|
28549
|
+
function isContextProvider(object) {
|
|
28550
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
28551
|
+
}
|
|
28552
|
+
function isElement(object) {
|
|
28553
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
28554
|
+
}
|
|
28555
|
+
function isForwardRef(object) {
|
|
28556
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
28557
|
+
}
|
|
28558
|
+
function isFragment(object) {
|
|
28559
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
28560
|
+
}
|
|
28561
|
+
function isLazy(object) {
|
|
28562
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
28563
|
+
}
|
|
28564
|
+
function isMemo(object) {
|
|
28565
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
28566
|
+
}
|
|
28567
|
+
function isPortal(object) {
|
|
28568
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
28569
|
+
}
|
|
28570
|
+
function isProfiler(object) {
|
|
28571
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
28572
|
+
}
|
|
28573
|
+
function isStrictMode(object) {
|
|
28574
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
28575
|
+
}
|
|
28576
|
+
function isSuspense(object) {
|
|
28577
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
28578
|
+
}
|
|
28579
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
28580
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
28581
|
+
reactIs_development.Element = Element;
|
|
28582
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
28583
|
+
reactIs_development.Fragment = Fragment;
|
|
28584
|
+
reactIs_development.Lazy = Lazy;
|
|
28585
|
+
reactIs_development.Memo = Memo;
|
|
28586
|
+
reactIs_development.Portal = Portal;
|
|
28587
|
+
reactIs_development.Profiler = Profiler;
|
|
28588
|
+
reactIs_development.StrictMode = StrictMode;
|
|
28589
|
+
reactIs_development.Suspense = Suspense;
|
|
28590
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
28591
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
28592
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
28593
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
28594
|
+
reactIs_development.isElement = isElement;
|
|
28595
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
28596
|
+
reactIs_development.isFragment = isFragment;
|
|
28597
|
+
reactIs_development.isLazy = isLazy;
|
|
28598
|
+
reactIs_development.isMemo = isMemo;
|
|
28599
|
+
reactIs_development.isPortal = isPortal;
|
|
28600
|
+
reactIs_development.isProfiler = isProfiler;
|
|
28601
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
28602
|
+
reactIs_development.isSuspense = isSuspense;
|
|
28603
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
28604
|
+
reactIs_development.typeOf = typeOf;
|
|
28605
|
+
})();
|
|
28606
|
+
}
|
|
28607
|
+
{
|
|
28608
|
+
reactIs.exports = reactIs_development;
|
|
28609
|
+
}
|
|
28610
|
+
function t(t2) {
|
|
28611
|
+
return typeof t2 == "object" && t2 != null && t2.nodeType === 1;
|
|
28612
|
+
}
|
|
28613
|
+
function e(t2, e2) {
|
|
28614
|
+
return (!e2 || t2 !== "hidden") && t2 !== "visible" && t2 !== "clip";
|
|
28615
|
+
}
|
|
28616
|
+
function n(t2, n2) {
|
|
28617
|
+
if (t2.clientHeight < t2.scrollHeight || t2.clientWidth < t2.scrollWidth) {
|
|
28618
|
+
var r2 = getComputedStyle(t2, null);
|
|
28619
|
+
return e(r2.overflowY, n2) || e(r2.overflowX, n2) || function(t3) {
|
|
28620
|
+
var e2 = function(t4) {
|
|
28621
|
+
if (!t4.ownerDocument || !t4.ownerDocument.defaultView)
|
|
28622
|
+
return null;
|
|
28623
|
+
try {
|
|
28624
|
+
return t4.ownerDocument.defaultView.frameElement;
|
|
28625
|
+
} catch (t5) {
|
|
28626
|
+
return null;
|
|
29354
28627
|
}
|
|
29355
28628
|
}(t3);
|
|
29356
28629
|
return !!e2 && (e2.clientHeight < t3.scrollHeight || e2.clientWidth < t3.scrollWidth);
|
|
@@ -31126,306 +30399,1094 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31126
30399
|
if (isInitialMountRef.current) {
|
|
31127
30400
|
return;
|
|
31128
30401
|
}
|
|
31129
|
-
previousResultCountRef.current = items.length;
|
|
31130
|
-
});
|
|
31131
|
-
var mouseAndTouchTrackersRef = useMouseAndTouchTracker(isOpen, [comboboxRef, menuRef, toggleButtonRef], environment, function() {
|
|
30402
|
+
previousResultCountRef.current = items.length;
|
|
30403
|
+
});
|
|
30404
|
+
var mouseAndTouchTrackersRef = useMouseAndTouchTracker(isOpen, [comboboxRef, menuRef, toggleButtonRef], environment, function() {
|
|
30405
|
+
dispatch({
|
|
30406
|
+
type: InputBlur,
|
|
30407
|
+
selectItem: false
|
|
30408
|
+
});
|
|
30409
|
+
});
|
|
30410
|
+
var setGetterPropCallInfo = useGetterPropsCalledChecker("getInputProps", "getComboboxProps", "getMenuProps");
|
|
30411
|
+
require$$0.useEffect(function() {
|
|
30412
|
+
isInitialMountRef.current = false;
|
|
30413
|
+
}, []);
|
|
30414
|
+
require$$0.useEffect(function() {
|
|
30415
|
+
if (!isOpen) {
|
|
30416
|
+
itemRefs.current = {};
|
|
30417
|
+
}
|
|
30418
|
+
}, [isOpen]);
|
|
30419
|
+
var inputKeyDownHandlers = require$$0.useMemo(function() {
|
|
30420
|
+
return {
|
|
30421
|
+
ArrowDown: function ArrowDown2(event) {
|
|
30422
|
+
event.preventDefault();
|
|
30423
|
+
dispatch({
|
|
30424
|
+
type: InputKeyDownArrowDown,
|
|
30425
|
+
shiftKey: event.shiftKey,
|
|
30426
|
+
getItemNodeFromIndex
|
|
30427
|
+
});
|
|
30428
|
+
},
|
|
30429
|
+
ArrowUp: function ArrowUp2(event) {
|
|
30430
|
+
event.preventDefault();
|
|
30431
|
+
dispatch({
|
|
30432
|
+
type: InputKeyDownArrowUp,
|
|
30433
|
+
shiftKey: event.shiftKey,
|
|
30434
|
+
getItemNodeFromIndex
|
|
30435
|
+
});
|
|
30436
|
+
},
|
|
30437
|
+
Home: function Home(event) {
|
|
30438
|
+
if (!latest.current.state.isOpen) {
|
|
30439
|
+
return;
|
|
30440
|
+
}
|
|
30441
|
+
event.preventDefault();
|
|
30442
|
+
dispatch({
|
|
30443
|
+
type: InputKeyDownHome,
|
|
30444
|
+
getItemNodeFromIndex
|
|
30445
|
+
});
|
|
30446
|
+
},
|
|
30447
|
+
End: function End(event) {
|
|
30448
|
+
if (!latest.current.state.isOpen) {
|
|
30449
|
+
return;
|
|
30450
|
+
}
|
|
30451
|
+
event.preventDefault();
|
|
30452
|
+
dispatch({
|
|
30453
|
+
type: InputKeyDownEnd,
|
|
30454
|
+
getItemNodeFromIndex
|
|
30455
|
+
});
|
|
30456
|
+
},
|
|
30457
|
+
Escape: function Escape() {
|
|
30458
|
+
var latestState = latest.current.state;
|
|
30459
|
+
if (latestState.isOpen || latestState.inputValue || latestState.selectedItem || latestState.highlightedIndex > -1) {
|
|
30460
|
+
dispatch({
|
|
30461
|
+
type: InputKeyDownEscape
|
|
30462
|
+
});
|
|
30463
|
+
}
|
|
30464
|
+
},
|
|
30465
|
+
Enter: function Enter(event) {
|
|
30466
|
+
var latestState = latest.current.state;
|
|
30467
|
+
if (!latestState.isOpen || latestState.highlightedIndex < 0 || event.which === 229) {
|
|
30468
|
+
return;
|
|
30469
|
+
}
|
|
30470
|
+
event.preventDefault();
|
|
30471
|
+
dispatch({
|
|
30472
|
+
type: InputKeyDownEnter,
|
|
30473
|
+
getItemNodeFromIndex
|
|
30474
|
+
});
|
|
30475
|
+
}
|
|
30476
|
+
};
|
|
30477
|
+
}, [dispatch, latest, getItemNodeFromIndex]);
|
|
30478
|
+
var getLabelProps = require$$0.useCallback(function(labelProps) {
|
|
30479
|
+
return _extends$u({
|
|
30480
|
+
id: elementIds.labelId,
|
|
30481
|
+
htmlFor: elementIds.inputId
|
|
30482
|
+
}, labelProps);
|
|
30483
|
+
}, [elementIds]);
|
|
30484
|
+
var getMenuProps = require$$0.useCallback(function(_temp, _temp2) {
|
|
30485
|
+
var _extends2;
|
|
30486
|
+
var _ref = _temp === void 0 ? {} : _temp, onMouseLeave = _ref.onMouseLeave, _ref$refKey = _ref.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey, ref = _ref.ref, rest = _objectWithoutPropertiesLoose$2(_ref, _excluded$1);
|
|
30487
|
+
var _ref2 = _temp2 === void 0 ? {} : _temp2, _ref2$suppressRefErro = _ref2.suppressRefError, suppressRefError = _ref2$suppressRefErro === void 0 ? false : _ref2$suppressRefErro;
|
|
30488
|
+
setGetterPropCallInfo("getMenuProps", suppressRefError, refKey, menuRef);
|
|
30489
|
+
return _extends$u((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
30490
|
+
menuRef.current = menuNode;
|
|
30491
|
+
}), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function() {
|
|
30492
|
+
dispatch({
|
|
30493
|
+
type: MenuMouseLeave
|
|
30494
|
+
});
|
|
30495
|
+
}), _extends2), rest);
|
|
30496
|
+
}, [dispatch, setGetterPropCallInfo, elementIds]);
|
|
30497
|
+
var getItemProps = require$$0.useCallback(function(_temp3) {
|
|
30498
|
+
var _extends3, _ref4;
|
|
30499
|
+
var _ref3 = _temp3 === void 0 ? {} : _temp3, item = _ref3.item, index2 = _ref3.index, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, onMouseMove = _ref3.onMouseMove, onClick = _ref3.onClick;
|
|
30500
|
+
_ref3.onPress;
|
|
30501
|
+
var rest = _objectWithoutPropertiesLoose$2(_ref3, _excluded2$1);
|
|
30502
|
+
var _latest$current = latest.current, latestProps = _latest$current.props, latestState = _latest$current.state;
|
|
30503
|
+
var itemIndex = getItemIndex(index2, item, latestProps.items);
|
|
30504
|
+
if (itemIndex < 0) {
|
|
30505
|
+
throw new Error("Pass either item or item index in getItemProps!");
|
|
30506
|
+
}
|
|
30507
|
+
var onSelectKey = "onClick";
|
|
30508
|
+
var customClickHandler = onClick;
|
|
30509
|
+
var itemHandleMouseMove = function itemHandleMouseMove2() {
|
|
30510
|
+
if (index2 === latestState.highlightedIndex) {
|
|
30511
|
+
return;
|
|
30512
|
+
}
|
|
30513
|
+
shouldScrollRef.current = false;
|
|
30514
|
+
dispatch({
|
|
30515
|
+
type: ItemMouseMove,
|
|
30516
|
+
index: index2
|
|
30517
|
+
});
|
|
30518
|
+
};
|
|
30519
|
+
var itemHandleClick = function itemHandleClick2() {
|
|
30520
|
+
dispatch({
|
|
30521
|
+
type: ItemClick,
|
|
30522
|
+
index: index2
|
|
30523
|
+
});
|
|
30524
|
+
if (inputRef.current) {
|
|
30525
|
+
inputRef.current.focus();
|
|
30526
|
+
}
|
|
30527
|
+
};
|
|
30528
|
+
return _extends$u((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(itemNode) {
|
|
30529
|
+
if (itemNode) {
|
|
30530
|
+
itemRefs.current[elementIds.getItemId(itemIndex)] = itemNode;
|
|
30531
|
+
}
|
|
30532
|
+
}), _extends3.role = "option", _extends3["aria-selected"] = "" + (itemIndex === latestState.highlightedIndex), _extends3.id = elementIds.getItemId(itemIndex), _extends3), !rest.disabled && (_ref4 = {
|
|
30533
|
+
onMouseMove: callAllEventHandlers(onMouseMove, itemHandleMouseMove)
|
|
30534
|
+
}, _ref4[onSelectKey] = callAllEventHandlers(customClickHandler, itemHandleClick), _ref4), rest);
|
|
30535
|
+
}, [dispatch, latest, shouldScrollRef, elementIds]);
|
|
30536
|
+
var getToggleButtonProps = require$$0.useCallback(function(_temp4) {
|
|
30537
|
+
var _extends4;
|
|
30538
|
+
var _ref5 = _temp4 === void 0 ? {} : _temp4, onClick = _ref5.onClick;
|
|
30539
|
+
_ref5.onPress;
|
|
30540
|
+
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$2(_ref5, _excluded3);
|
|
30541
|
+
var toggleButtonHandleClick = function toggleButtonHandleClick2() {
|
|
30542
|
+
dispatch({
|
|
30543
|
+
type: ToggleButtonClick
|
|
30544
|
+
});
|
|
30545
|
+
if (!latest.current.state.isOpen && inputRef.current) {
|
|
30546
|
+
inputRef.current.focus();
|
|
30547
|
+
}
|
|
30548
|
+
};
|
|
30549
|
+
return _extends$u((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
30550
|
+
toggleButtonRef.current = toggleButtonNode;
|
|
30551
|
+
}), _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$u({}, {
|
|
30552
|
+
onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
|
|
30553
|
+
}), rest);
|
|
30554
|
+
}, [dispatch, latest, elementIds]);
|
|
30555
|
+
var getInputProps = require$$0.useCallback(function(_temp5, _temp6) {
|
|
30556
|
+
var _extends5;
|
|
30557
|
+
var _ref6 = _temp5 === void 0 ? {} : _temp5, onKeyDown = _ref6.onKeyDown, onChange = _ref6.onChange, onInput = _ref6.onInput, onBlur = _ref6.onBlur;
|
|
30558
|
+
_ref6.onChangeText;
|
|
30559
|
+
var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$2(_ref6, _excluded4);
|
|
30560
|
+
var _ref7 = _temp6 === void 0 ? {} : _temp6, _ref7$suppressRefErro = _ref7.suppressRefError, suppressRefError = _ref7$suppressRefErro === void 0 ? false : _ref7$suppressRefErro;
|
|
30561
|
+
setGetterPropCallInfo("getInputProps", suppressRefError, refKey, inputRef);
|
|
30562
|
+
var latestState = latest.current.state;
|
|
30563
|
+
var inputHandleKeyDown = function inputHandleKeyDown2(event) {
|
|
30564
|
+
var key = normalizeArrowKey(event);
|
|
30565
|
+
if (key && inputKeyDownHandlers[key]) {
|
|
30566
|
+
inputKeyDownHandlers[key](event);
|
|
30567
|
+
}
|
|
30568
|
+
};
|
|
30569
|
+
var inputHandleChange = function inputHandleChange2(event) {
|
|
30570
|
+
dispatch({
|
|
30571
|
+
type: InputChange,
|
|
30572
|
+
inputValue: event.target.value
|
|
30573
|
+
});
|
|
30574
|
+
};
|
|
30575
|
+
var inputHandleBlur = function inputHandleBlur2() {
|
|
30576
|
+
if (latestState.isOpen && !mouseAndTouchTrackersRef.current.isMouseDown) {
|
|
30577
|
+
dispatch({
|
|
30578
|
+
type: InputBlur,
|
|
30579
|
+
selectItem: true
|
|
30580
|
+
});
|
|
30581
|
+
}
|
|
30582
|
+
};
|
|
30583
|
+
var onChangeKey = "onChange";
|
|
30584
|
+
var eventHandlers = {};
|
|
30585
|
+
if (!rest.disabled) {
|
|
30586
|
+
var _eventHandlers;
|
|
30587
|
+
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers);
|
|
30588
|
+
}
|
|
30589
|
+
return _extends$u((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function(inputNode) {
|
|
30590
|
+
inputRef.current = inputNode;
|
|
30591
|
+
}), _extends5.id = elementIds.inputId, _extends5["aria-autocomplete"] = "list", _extends5["aria-controls"] = elementIds.menuId, _extends5), latestState.isOpen && latestState.highlightedIndex > -1 && {
|
|
30592
|
+
"aria-activedescendant": elementIds.getItemId(latestState.highlightedIndex)
|
|
30593
|
+
}, {
|
|
30594
|
+
"aria-labelledby": elementIds.labelId,
|
|
30595
|
+
autoComplete: "off",
|
|
30596
|
+
value: latestState.inputValue
|
|
30597
|
+
}, eventHandlers, rest);
|
|
30598
|
+
}, [dispatch, inputKeyDownHandlers, latest, mouseAndTouchTrackersRef, setGetterPropCallInfo, elementIds]);
|
|
30599
|
+
var getComboboxProps = require$$0.useCallback(function(_temp7, _temp8) {
|
|
30600
|
+
var _extends6;
|
|
30601
|
+
var _ref8 = _temp7 === void 0 ? {} : _temp7, _ref8$refKey = _ref8.refKey, refKey = _ref8$refKey === void 0 ? "ref" : _ref8$refKey, ref = _ref8.ref, rest = _objectWithoutPropertiesLoose$2(_ref8, _excluded5);
|
|
30602
|
+
var _ref9 = _temp8 === void 0 ? {} : _temp8, _ref9$suppressRefErro = _ref9.suppressRefError, suppressRefError = _ref9$suppressRefErro === void 0 ? false : _ref9$suppressRefErro;
|
|
30603
|
+
setGetterPropCallInfo("getComboboxProps", suppressRefError, refKey, comboboxRef);
|
|
30604
|
+
return _extends$u((_extends6 = {}, _extends6[refKey] = handleRefs(ref, function(comboboxNode) {
|
|
30605
|
+
comboboxRef.current = comboboxNode;
|
|
30606
|
+
}), _extends6.role = "combobox", _extends6["aria-haspopup"] = "listbox", _extends6["aria-owns"] = elementIds.menuId, _extends6["aria-expanded"] = latest.current.state.isOpen, _extends6), rest);
|
|
30607
|
+
}, [latest, setGetterPropCallInfo, elementIds]);
|
|
30608
|
+
var toggleMenu = require$$0.useCallback(function() {
|
|
31132
30609
|
dispatch({
|
|
31133
|
-
type:
|
|
31134
|
-
selectItem: false
|
|
30610
|
+
type: FunctionToggleMenu
|
|
31135
30611
|
});
|
|
31136
|
-
});
|
|
31137
|
-
var
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
31141
|
-
|
|
31142
|
-
|
|
31143
|
-
|
|
31144
|
-
|
|
31145
|
-
|
|
31146
|
-
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
|
|
31151
|
-
|
|
31152
|
-
|
|
31153
|
-
|
|
30612
|
+
}, [dispatch]);
|
|
30613
|
+
var closeMenu = require$$0.useCallback(function() {
|
|
30614
|
+
dispatch({
|
|
30615
|
+
type: FunctionCloseMenu
|
|
30616
|
+
});
|
|
30617
|
+
}, [dispatch]);
|
|
30618
|
+
var openMenu = require$$0.useCallback(function() {
|
|
30619
|
+
dispatch({
|
|
30620
|
+
type: FunctionOpenMenu
|
|
30621
|
+
});
|
|
30622
|
+
}, [dispatch]);
|
|
30623
|
+
var setHighlightedIndex = require$$0.useCallback(function(newHighlightedIndex) {
|
|
30624
|
+
dispatch({
|
|
30625
|
+
type: FunctionSetHighlightedIndex,
|
|
30626
|
+
highlightedIndex: newHighlightedIndex
|
|
30627
|
+
});
|
|
30628
|
+
}, [dispatch]);
|
|
30629
|
+
var selectItem = require$$0.useCallback(function(newSelectedItem) {
|
|
30630
|
+
dispatch({
|
|
30631
|
+
type: FunctionSelectItem,
|
|
30632
|
+
selectedItem: newSelectedItem
|
|
30633
|
+
});
|
|
30634
|
+
}, [dispatch]);
|
|
30635
|
+
var setInputValue = require$$0.useCallback(function(newInputValue) {
|
|
30636
|
+
dispatch({
|
|
30637
|
+
type: FunctionSetInputValue,
|
|
30638
|
+
inputValue: newInputValue
|
|
30639
|
+
});
|
|
30640
|
+
}, [dispatch]);
|
|
30641
|
+
var reset = require$$0.useCallback(function() {
|
|
30642
|
+
dispatch({
|
|
30643
|
+
type: FunctionReset$1
|
|
30644
|
+
});
|
|
30645
|
+
}, [dispatch]);
|
|
30646
|
+
return {
|
|
30647
|
+
getItemProps,
|
|
30648
|
+
getLabelProps,
|
|
30649
|
+
getMenuProps,
|
|
30650
|
+
getInputProps,
|
|
30651
|
+
getComboboxProps,
|
|
30652
|
+
getToggleButtonProps,
|
|
30653
|
+
toggleMenu,
|
|
30654
|
+
openMenu,
|
|
30655
|
+
closeMenu,
|
|
30656
|
+
setHighlightedIndex,
|
|
30657
|
+
setInputValue,
|
|
30658
|
+
selectItem,
|
|
30659
|
+
reset,
|
|
30660
|
+
highlightedIndex,
|
|
30661
|
+
isOpen,
|
|
30662
|
+
selectedItem,
|
|
30663
|
+
inputValue
|
|
30664
|
+
};
|
|
30665
|
+
}
|
|
30666
|
+
function getA11yRemovalMessage(selectionParameters) {
|
|
30667
|
+
var removedSelectedItem = selectionParameters.removedSelectedItem, itemToStringLocal = selectionParameters.itemToString;
|
|
30668
|
+
return itemToStringLocal(removedSelectedItem) + " has been removed.";
|
|
30669
|
+
}
|
|
30670
|
+
({
|
|
30671
|
+
selectedItems: PropTypes.array,
|
|
30672
|
+
initialSelectedItems: PropTypes.array,
|
|
30673
|
+
defaultSelectedItems: PropTypes.array,
|
|
30674
|
+
itemToString: PropTypes.func,
|
|
30675
|
+
getA11yRemovalMessage: PropTypes.func,
|
|
30676
|
+
stateReducer: PropTypes.func,
|
|
30677
|
+
activeIndex: PropTypes.number,
|
|
30678
|
+
initialActiveIndex: PropTypes.number,
|
|
30679
|
+
defaultActiveIndex: PropTypes.number,
|
|
30680
|
+
onActiveIndexChange: PropTypes.func,
|
|
30681
|
+
onSelectedItemsChange: PropTypes.func,
|
|
30682
|
+
keyNavigationNext: PropTypes.string,
|
|
30683
|
+
keyNavigationPrevious: PropTypes.string,
|
|
30684
|
+
environment: PropTypes.shape({
|
|
30685
|
+
addEventListener: PropTypes.func,
|
|
30686
|
+
removeEventListener: PropTypes.func,
|
|
30687
|
+
document: PropTypes.shape({
|
|
30688
|
+
getElementById: PropTypes.func,
|
|
30689
|
+
activeElement: PropTypes.any,
|
|
30690
|
+
body: PropTypes.any
|
|
30691
|
+
})
|
|
30692
|
+
})
|
|
30693
|
+
});
|
|
30694
|
+
({
|
|
30695
|
+
itemToString: defaultProps$3.itemToString,
|
|
30696
|
+
stateReducer: defaultProps$3.stateReducer,
|
|
30697
|
+
environment: defaultProps$3.environment,
|
|
30698
|
+
getA11yRemovalMessage,
|
|
30699
|
+
keyNavigationNext: "ArrowRight",
|
|
30700
|
+
keyNavigationPrevious: "ArrowLeft"
|
|
30701
|
+
});
|
|
30702
|
+
var jed = { exports: {} };
|
|
30703
|
+
/**
|
|
30704
|
+
* @preserve jed.js https://github.com/SlexAxton/Jed
|
|
30705
|
+
*/
|
|
30706
|
+
(function(module2, exports3) {
|
|
30707
|
+
(function(root2, undef2) {
|
|
30708
|
+
var ArrayProto = Array.prototype, ObjProto = Object.prototype, slice = ArrayProto.slice, hasOwnProp = ObjProto.hasOwnProperty, nativeForEach = ArrayProto.forEach, breaker = {};
|
|
30709
|
+
var _2 = {
|
|
30710
|
+
forEach: function(obj, iterator, context) {
|
|
30711
|
+
var i2, l2, key;
|
|
30712
|
+
if (obj === null) {
|
|
30713
|
+
return;
|
|
30714
|
+
}
|
|
30715
|
+
if (nativeForEach && obj.forEach === nativeForEach) {
|
|
30716
|
+
obj.forEach(iterator, context);
|
|
30717
|
+
} else if (obj.length === +obj.length) {
|
|
30718
|
+
for (i2 = 0, l2 = obj.length; i2 < l2; i2++) {
|
|
30719
|
+
if (i2 in obj && iterator.call(context, obj[i2], i2, obj) === breaker) {
|
|
30720
|
+
return;
|
|
30721
|
+
}
|
|
30722
|
+
}
|
|
30723
|
+
} else {
|
|
30724
|
+
for (key in obj) {
|
|
30725
|
+
if (hasOwnProp.call(obj, key)) {
|
|
30726
|
+
if (iterator.call(context, obj[key], key, obj) === breaker) {
|
|
30727
|
+
return;
|
|
30728
|
+
}
|
|
30729
|
+
}
|
|
30730
|
+
}
|
|
30731
|
+
}
|
|
30732
|
+
},
|
|
30733
|
+
extend: function(obj) {
|
|
30734
|
+
this.forEach(slice.call(arguments, 1), function(source) {
|
|
30735
|
+
for (var prop in source) {
|
|
30736
|
+
obj[prop] = source[prop];
|
|
30737
|
+
}
|
|
31154
30738
|
});
|
|
30739
|
+
return obj;
|
|
30740
|
+
}
|
|
30741
|
+
};
|
|
30742
|
+
var Jed2 = function(options) {
|
|
30743
|
+
this.defaults = {
|
|
30744
|
+
"locale_data": {
|
|
30745
|
+
"messages": {
|
|
30746
|
+
"": {
|
|
30747
|
+
"domain": "messages",
|
|
30748
|
+
"lang": "en",
|
|
30749
|
+
"plural_forms": "nplurals=2; plural=(n != 1);"
|
|
30750
|
+
}
|
|
30751
|
+
}
|
|
30752
|
+
},
|
|
30753
|
+
"domain": "messages",
|
|
30754
|
+
"debug": false
|
|
30755
|
+
};
|
|
30756
|
+
this.options = _2.extend({}, this.defaults, options);
|
|
30757
|
+
this.textdomain(this.options.domain);
|
|
30758
|
+
if (options.domain && !this.options.locale_data[this.options.domain]) {
|
|
30759
|
+
throw new Error("Text domain set to non-existent domain: `" + options.domain + "`");
|
|
30760
|
+
}
|
|
30761
|
+
};
|
|
30762
|
+
Jed2.context_delimiter = String.fromCharCode(4);
|
|
30763
|
+
function getPluralFormFunc(plural_form_string) {
|
|
30764
|
+
return Jed2.PF.compile(plural_form_string || "nplurals=2; plural=(n != 1);");
|
|
30765
|
+
}
|
|
30766
|
+
function Chain(key, i18n) {
|
|
30767
|
+
this._key = key;
|
|
30768
|
+
this._i18n = i18n;
|
|
30769
|
+
}
|
|
30770
|
+
_2.extend(Chain.prototype, {
|
|
30771
|
+
onDomain: function(domain) {
|
|
30772
|
+
this._domain = domain;
|
|
30773
|
+
return this;
|
|
31155
30774
|
},
|
|
31156
|
-
|
|
31157
|
-
|
|
31158
|
-
|
|
31159
|
-
type: InputKeyDownArrowUp,
|
|
31160
|
-
shiftKey: event.shiftKey,
|
|
31161
|
-
getItemNodeFromIndex
|
|
31162
|
-
});
|
|
30775
|
+
withContext: function(context) {
|
|
30776
|
+
this._context = context;
|
|
30777
|
+
return this;
|
|
31163
30778
|
},
|
|
31164
|
-
|
|
31165
|
-
|
|
31166
|
-
|
|
30779
|
+
ifPlural: function(num, pkey) {
|
|
30780
|
+
this._val = num;
|
|
30781
|
+
this._pkey = pkey;
|
|
30782
|
+
return this;
|
|
30783
|
+
},
|
|
30784
|
+
fetch: function(sArr) {
|
|
30785
|
+
if ({}.toString.call(sArr) != "[object Array]") {
|
|
30786
|
+
sArr = [].slice.call(arguments, 0);
|
|
31167
30787
|
}
|
|
31168
|
-
|
|
31169
|
-
|
|
31170
|
-
|
|
31171
|
-
|
|
31172
|
-
|
|
30788
|
+
return (sArr && sArr.length ? Jed2.sprintf : function(x2) {
|
|
30789
|
+
return x2;
|
|
30790
|
+
})(this._i18n.dcnpgettext(this._domain, this._context, this._key, this._pkey, this._val), sArr);
|
|
30791
|
+
}
|
|
30792
|
+
});
|
|
30793
|
+
_2.extend(Jed2.prototype, {
|
|
30794
|
+
translate: function(key) {
|
|
30795
|
+
return new Chain(key, this);
|
|
31173
30796
|
},
|
|
31174
|
-
|
|
31175
|
-
if (!
|
|
31176
|
-
return;
|
|
30797
|
+
textdomain: function(domain) {
|
|
30798
|
+
if (!domain) {
|
|
30799
|
+
return this._textdomain;
|
|
30800
|
+
}
|
|
30801
|
+
this._textdomain = domain;
|
|
30802
|
+
},
|
|
30803
|
+
gettext: function(key) {
|
|
30804
|
+
return this.dcnpgettext.call(this, undef2, undef2, key);
|
|
30805
|
+
},
|
|
30806
|
+
dgettext: function(domain, key) {
|
|
30807
|
+
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
30808
|
+
},
|
|
30809
|
+
dcgettext: function(domain, key) {
|
|
30810
|
+
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
30811
|
+
},
|
|
30812
|
+
ngettext: function(skey, pkey, val) {
|
|
30813
|
+
return this.dcnpgettext.call(this, undef2, undef2, skey, pkey, val);
|
|
30814
|
+
},
|
|
30815
|
+
dngettext: function(domain, skey, pkey, val) {
|
|
30816
|
+
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
30817
|
+
},
|
|
30818
|
+
dcngettext: function(domain, skey, pkey, val) {
|
|
30819
|
+
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
30820
|
+
},
|
|
30821
|
+
pgettext: function(context, key) {
|
|
30822
|
+
return this.dcnpgettext.call(this, undef2, context, key);
|
|
30823
|
+
},
|
|
30824
|
+
dpgettext: function(domain, context, key) {
|
|
30825
|
+
return this.dcnpgettext.call(this, domain, context, key);
|
|
30826
|
+
},
|
|
30827
|
+
dcpgettext: function(domain, context, key) {
|
|
30828
|
+
return this.dcnpgettext.call(this, domain, context, key);
|
|
30829
|
+
},
|
|
30830
|
+
npgettext: function(context, skey, pkey, val) {
|
|
30831
|
+
return this.dcnpgettext.call(this, undef2, context, skey, pkey, val);
|
|
30832
|
+
},
|
|
30833
|
+
dnpgettext: function(domain, context, skey, pkey, val) {
|
|
30834
|
+
return this.dcnpgettext.call(this, domain, context, skey, pkey, val);
|
|
30835
|
+
},
|
|
30836
|
+
dcnpgettext: function(domain, context, singular_key, plural_key, val) {
|
|
30837
|
+
plural_key = plural_key || singular_key;
|
|
30838
|
+
domain = domain || this._textdomain;
|
|
30839
|
+
var fallback;
|
|
30840
|
+
if (!this.options) {
|
|
30841
|
+
fallback = new Jed2();
|
|
30842
|
+
return fallback.dcnpgettext.call(fallback, void 0, void 0, singular_key, plural_key, val);
|
|
30843
|
+
}
|
|
30844
|
+
if (!this.options.locale_data) {
|
|
30845
|
+
throw new Error("No locale data provided.");
|
|
30846
|
+
}
|
|
30847
|
+
if (!this.options.locale_data[domain]) {
|
|
30848
|
+
throw new Error("Domain `" + domain + "` was not found.");
|
|
30849
|
+
}
|
|
30850
|
+
if (!this.options.locale_data[domain][""]) {
|
|
30851
|
+
throw new Error("No locale meta information provided.");
|
|
30852
|
+
}
|
|
30853
|
+
if (!singular_key) {
|
|
30854
|
+
throw new Error("No translation key found.");
|
|
30855
|
+
}
|
|
30856
|
+
var key = context ? context + Jed2.context_delimiter + singular_key : singular_key, locale_data = this.options.locale_data, dict = locale_data[domain], defaultConf = (locale_data.messages || this.defaults.locale_data.messages)[""], pluralForms = dict[""].plural_forms || dict[""]["Plural-Forms"] || dict[""]["plural-forms"] || defaultConf.plural_forms || defaultConf["Plural-Forms"] || defaultConf["plural-forms"], val_list, res;
|
|
30857
|
+
var val_idx;
|
|
30858
|
+
if (val === void 0) {
|
|
30859
|
+
val_idx = 0;
|
|
30860
|
+
} else {
|
|
30861
|
+
if (typeof val != "number") {
|
|
30862
|
+
val = parseInt(val, 10);
|
|
30863
|
+
if (isNaN(val)) {
|
|
30864
|
+
throw new Error("The number that was passed in is not a number.");
|
|
30865
|
+
}
|
|
30866
|
+
}
|
|
30867
|
+
val_idx = getPluralFormFunc(pluralForms)(val);
|
|
30868
|
+
}
|
|
30869
|
+
if (!dict) {
|
|
30870
|
+
throw new Error("No domain named `" + domain + "` could be found.");
|
|
30871
|
+
}
|
|
30872
|
+
val_list = dict[key];
|
|
30873
|
+
if (!val_list || val_idx > val_list.length) {
|
|
30874
|
+
if (this.options.missing_key_callback) {
|
|
30875
|
+
this.options.missing_key_callback(key, domain);
|
|
30876
|
+
}
|
|
30877
|
+
res = [singular_key, plural_key];
|
|
30878
|
+
if (this.options.debug === true) {
|
|
30879
|
+
console.log(res[getPluralFormFunc(pluralForms)(val)]);
|
|
30880
|
+
}
|
|
30881
|
+
return res[getPluralFormFunc()(val)];
|
|
30882
|
+
}
|
|
30883
|
+
res = val_list[val_idx];
|
|
30884
|
+
if (!res) {
|
|
30885
|
+
res = [singular_key, plural_key];
|
|
30886
|
+
return res[getPluralFormFunc()(val)];
|
|
30887
|
+
}
|
|
30888
|
+
return res;
|
|
30889
|
+
}
|
|
30890
|
+
});
|
|
30891
|
+
var sprintf = function() {
|
|
30892
|
+
function get_type(variable) {
|
|
30893
|
+
return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
|
|
30894
|
+
}
|
|
30895
|
+
function str_repeat(input, multiplier) {
|
|
30896
|
+
for (var output = []; multiplier > 0; output[--multiplier] = input) {
|
|
30897
|
+
}
|
|
30898
|
+
return output.join("");
|
|
30899
|
+
}
|
|
30900
|
+
var str_format = function() {
|
|
30901
|
+
if (!str_format.cache.hasOwnProperty(arguments[0])) {
|
|
30902
|
+
str_format.cache[arguments[0]] = str_format.parse(arguments[0]);
|
|
30903
|
+
}
|
|
30904
|
+
return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
|
|
30905
|
+
};
|
|
30906
|
+
str_format.format = function(parse_tree, argv) {
|
|
30907
|
+
var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i2, k2, match2, pad, pad_character, pad_length;
|
|
30908
|
+
for (i2 = 0; i2 < tree_length; i2++) {
|
|
30909
|
+
node_type = get_type(parse_tree[i2]);
|
|
30910
|
+
if (node_type === "string") {
|
|
30911
|
+
output.push(parse_tree[i2]);
|
|
30912
|
+
} else if (node_type === "array") {
|
|
30913
|
+
match2 = parse_tree[i2];
|
|
30914
|
+
if (match2[2]) {
|
|
30915
|
+
arg = argv[cursor];
|
|
30916
|
+
for (k2 = 0; k2 < match2[2].length; k2++) {
|
|
30917
|
+
if (!arg.hasOwnProperty(match2[2][k2])) {
|
|
30918
|
+
throw sprintf('[sprintf] property "%s" does not exist', match2[2][k2]);
|
|
30919
|
+
}
|
|
30920
|
+
arg = arg[match2[2][k2]];
|
|
30921
|
+
}
|
|
30922
|
+
} else if (match2[1]) {
|
|
30923
|
+
arg = argv[match2[1]];
|
|
30924
|
+
} else {
|
|
30925
|
+
arg = argv[cursor++];
|
|
30926
|
+
}
|
|
30927
|
+
if (/[^s]/.test(match2[8]) && get_type(arg) != "number") {
|
|
30928
|
+
throw sprintf("[sprintf] expecting number but found %s", get_type(arg));
|
|
30929
|
+
}
|
|
30930
|
+
if (typeof arg == "undefined" || arg === null) {
|
|
30931
|
+
arg = "";
|
|
30932
|
+
}
|
|
30933
|
+
switch (match2[8]) {
|
|
30934
|
+
case "b":
|
|
30935
|
+
arg = arg.toString(2);
|
|
30936
|
+
break;
|
|
30937
|
+
case "c":
|
|
30938
|
+
arg = String.fromCharCode(arg);
|
|
30939
|
+
break;
|
|
30940
|
+
case "d":
|
|
30941
|
+
arg = parseInt(arg, 10);
|
|
30942
|
+
break;
|
|
30943
|
+
case "e":
|
|
30944
|
+
arg = match2[7] ? arg.toExponential(match2[7]) : arg.toExponential();
|
|
30945
|
+
break;
|
|
30946
|
+
case "f":
|
|
30947
|
+
arg = match2[7] ? parseFloat(arg).toFixed(match2[7]) : parseFloat(arg);
|
|
30948
|
+
break;
|
|
30949
|
+
case "o":
|
|
30950
|
+
arg = arg.toString(8);
|
|
30951
|
+
break;
|
|
30952
|
+
case "s":
|
|
30953
|
+
arg = (arg = String(arg)) && match2[7] ? arg.substring(0, match2[7]) : arg;
|
|
30954
|
+
break;
|
|
30955
|
+
case "u":
|
|
30956
|
+
arg = Math.abs(arg);
|
|
30957
|
+
break;
|
|
30958
|
+
case "x":
|
|
30959
|
+
arg = arg.toString(16);
|
|
30960
|
+
break;
|
|
30961
|
+
case "X":
|
|
30962
|
+
arg = arg.toString(16).toUpperCase();
|
|
30963
|
+
break;
|
|
30964
|
+
}
|
|
30965
|
+
arg = /[def]/.test(match2[8]) && match2[3] && arg >= 0 ? "+" + arg : arg;
|
|
30966
|
+
pad_character = match2[4] ? match2[4] == "0" ? "0" : match2[4].charAt(1) : " ";
|
|
30967
|
+
pad_length = match2[6] - String(arg).length;
|
|
30968
|
+
pad = match2[6] ? str_repeat(pad_character, pad_length) : "";
|
|
30969
|
+
output.push(match2[5] ? arg + pad : pad + arg);
|
|
30970
|
+
}
|
|
30971
|
+
}
|
|
30972
|
+
return output.join("");
|
|
30973
|
+
};
|
|
30974
|
+
str_format.cache = {};
|
|
30975
|
+
str_format.parse = function(fmt) {
|
|
30976
|
+
var _fmt = fmt, match2 = [], parse_tree = [], arg_names = 0;
|
|
30977
|
+
while (_fmt) {
|
|
30978
|
+
if ((match2 = /^[^\x25]+/.exec(_fmt)) !== null) {
|
|
30979
|
+
parse_tree.push(match2[0]);
|
|
30980
|
+
} else if ((match2 = /^\x25{2}/.exec(_fmt)) !== null) {
|
|
30981
|
+
parse_tree.push("%");
|
|
30982
|
+
} else if ((match2 = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
|
|
30983
|
+
if (match2[2]) {
|
|
30984
|
+
arg_names |= 1;
|
|
30985
|
+
var field_list = [], replacement_field = match2[2], field_match = [];
|
|
30986
|
+
if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
30987
|
+
field_list.push(field_match[1]);
|
|
30988
|
+
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
30989
|
+
if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
30990
|
+
field_list.push(field_match[1]);
|
|
30991
|
+
} else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
|
|
30992
|
+
field_list.push(field_match[1]);
|
|
30993
|
+
} else {
|
|
30994
|
+
throw "[sprintf] huh?";
|
|
30995
|
+
}
|
|
30996
|
+
}
|
|
30997
|
+
} else {
|
|
30998
|
+
throw "[sprintf] huh?";
|
|
30999
|
+
}
|
|
31000
|
+
match2[2] = field_list;
|
|
31001
|
+
} else {
|
|
31002
|
+
arg_names |= 2;
|
|
31003
|
+
}
|
|
31004
|
+
if (arg_names === 3) {
|
|
31005
|
+
throw "[sprintf] mixing positional and named placeholders is not (yet) supported";
|
|
31006
|
+
}
|
|
31007
|
+
parse_tree.push(match2);
|
|
31008
|
+
} else {
|
|
31009
|
+
throw "[sprintf] huh?";
|
|
31010
|
+
}
|
|
31011
|
+
_fmt = _fmt.substring(match2[0].length);
|
|
31177
31012
|
}
|
|
31178
|
-
|
|
31179
|
-
|
|
31180
|
-
|
|
31181
|
-
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
|
|
31185
|
-
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31013
|
+
return parse_tree;
|
|
31014
|
+
};
|
|
31015
|
+
return str_format;
|
|
31016
|
+
}();
|
|
31017
|
+
var vsprintf = function(fmt, argv) {
|
|
31018
|
+
argv.unshift(fmt);
|
|
31019
|
+
return sprintf.apply(null, argv);
|
|
31020
|
+
};
|
|
31021
|
+
Jed2.parse_plural = function(plural_forms, n2) {
|
|
31022
|
+
plural_forms = plural_forms.replace(/n/g, n2);
|
|
31023
|
+
return Jed2.parse_expression(plural_forms);
|
|
31024
|
+
};
|
|
31025
|
+
Jed2.sprintf = function(fmt, args) {
|
|
31026
|
+
if ({}.toString.call(args) == "[object Array]") {
|
|
31027
|
+
return vsprintf(fmt, [].slice.call(args));
|
|
31028
|
+
}
|
|
31029
|
+
return sprintf.apply(this, [].slice.call(arguments));
|
|
31030
|
+
};
|
|
31031
|
+
Jed2.prototype.sprintf = function() {
|
|
31032
|
+
return Jed2.sprintf.apply(this, arguments);
|
|
31033
|
+
};
|
|
31034
|
+
Jed2.PF = {};
|
|
31035
|
+
Jed2.PF.parse = function(p2) {
|
|
31036
|
+
var plural_str = Jed2.PF.extractPluralExpr(p2);
|
|
31037
|
+
return Jed2.PF.parser.parse.call(Jed2.PF.parser, plural_str);
|
|
31038
|
+
};
|
|
31039
|
+
Jed2.PF.compile = function(p2) {
|
|
31040
|
+
function imply(val) {
|
|
31041
|
+
return val === true ? 1 : val ? val : 0;
|
|
31042
|
+
}
|
|
31043
|
+
var ast = Jed2.PF.parse(p2);
|
|
31044
|
+
return function(n2) {
|
|
31045
|
+
return imply(Jed2.PF.interpreter(ast)(n2));
|
|
31046
|
+
};
|
|
31047
|
+
};
|
|
31048
|
+
Jed2.PF.interpreter = function(ast) {
|
|
31049
|
+
return function(n2) {
|
|
31050
|
+
switch (ast.type) {
|
|
31051
|
+
case "GROUP":
|
|
31052
|
+
return Jed2.PF.interpreter(ast.expr)(n2);
|
|
31053
|
+
case "TERNARY":
|
|
31054
|
+
if (Jed2.PF.interpreter(ast.expr)(n2)) {
|
|
31055
|
+
return Jed2.PF.interpreter(ast.truthy)(n2);
|
|
31056
|
+
}
|
|
31057
|
+
return Jed2.PF.interpreter(ast.falsey)(n2);
|
|
31058
|
+
case "OR":
|
|
31059
|
+
return Jed2.PF.interpreter(ast.left)(n2) || Jed2.PF.interpreter(ast.right)(n2);
|
|
31060
|
+
case "AND":
|
|
31061
|
+
return Jed2.PF.interpreter(ast.left)(n2) && Jed2.PF.interpreter(ast.right)(n2);
|
|
31062
|
+
case "LT":
|
|
31063
|
+
return Jed2.PF.interpreter(ast.left)(n2) < Jed2.PF.interpreter(ast.right)(n2);
|
|
31064
|
+
case "GT":
|
|
31065
|
+
return Jed2.PF.interpreter(ast.left)(n2) > Jed2.PF.interpreter(ast.right)(n2);
|
|
31066
|
+
case "LTE":
|
|
31067
|
+
return Jed2.PF.interpreter(ast.left)(n2) <= Jed2.PF.interpreter(ast.right)(n2);
|
|
31068
|
+
case "GTE":
|
|
31069
|
+
return Jed2.PF.interpreter(ast.left)(n2) >= Jed2.PF.interpreter(ast.right)(n2);
|
|
31070
|
+
case "EQ":
|
|
31071
|
+
return Jed2.PF.interpreter(ast.left)(n2) == Jed2.PF.interpreter(ast.right)(n2);
|
|
31072
|
+
case "NEQ":
|
|
31073
|
+
return Jed2.PF.interpreter(ast.left)(n2) != Jed2.PF.interpreter(ast.right)(n2);
|
|
31074
|
+
case "MOD":
|
|
31075
|
+
return Jed2.PF.interpreter(ast.left)(n2) % Jed2.PF.interpreter(ast.right)(n2);
|
|
31076
|
+
case "VAR":
|
|
31077
|
+
return n2;
|
|
31078
|
+
case "NUM":
|
|
31079
|
+
return ast.val;
|
|
31080
|
+
default:
|
|
31081
|
+
throw new Error("Invalid Token found.");
|
|
31190
31082
|
}
|
|
31191
|
-
}
|
|
31192
|
-
|
|
31193
|
-
|
|
31194
|
-
|
|
31195
|
-
|
|
31083
|
+
};
|
|
31084
|
+
};
|
|
31085
|
+
Jed2.PF.extractPluralExpr = function(p2) {
|
|
31086
|
+
p2 = p2.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
31087
|
+
if (!/;\s*$/.test(p2)) {
|
|
31088
|
+
p2 = p2.concat(";");
|
|
31089
|
+
}
|
|
31090
|
+
var nplurals_re = /nplurals\=(\d+);/, plural_re = /plural\=(.*);/, nplurals_matches = p2.match(nplurals_re), plural_matches;
|
|
31091
|
+
if (nplurals_matches.length > 1)
|
|
31092
|
+
;
|
|
31093
|
+
else {
|
|
31094
|
+
throw new Error("nplurals not found in plural_forms string: " + p2);
|
|
31095
|
+
}
|
|
31096
|
+
p2 = p2.replace(nplurals_re, "");
|
|
31097
|
+
plural_matches = p2.match(plural_re);
|
|
31098
|
+
if (!(plural_matches && plural_matches.length > 1)) {
|
|
31099
|
+
throw new Error("`plural` expression not found: " + p2);
|
|
31100
|
+
}
|
|
31101
|
+
return plural_matches[1];
|
|
31102
|
+
};
|
|
31103
|
+
Jed2.PF.parser = function() {
|
|
31104
|
+
var parser = {
|
|
31105
|
+
trace: function trace() {
|
|
31106
|
+
},
|
|
31107
|
+
yy: {},
|
|
31108
|
+
symbols_: { "error": 2, "expressions": 3, "e": 4, "EOF": 5, "?": 6, ":": 7, "||": 8, "&&": 9, "<": 10, "<=": 11, ">": 12, ">=": 13, "!=": 14, "==": 15, "%": 16, "(": 17, ")": 18, "n": 19, "NUMBER": 20, "$accept": 0, "$end": 1 },
|
|
31109
|
+
terminals_: { 2: "error", 5: "EOF", 6: "?", 7: ":", 8: "||", 9: "&&", 10: "<", 11: "<=", 12: ">", 13: ">=", 14: "!=", 15: "==", 16: "%", 17: "(", 18: ")", 19: "n", 20: "NUMBER" },
|
|
31110
|
+
productions_: [0, [3, 2], [4, 5], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 3], [4, 1], [4, 1]],
|
|
31111
|
+
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
31112
|
+
var $0 = $$.length - 1;
|
|
31113
|
+
switch (yystate) {
|
|
31114
|
+
case 1:
|
|
31115
|
+
return { type: "GROUP", expr: $$[$0 - 1] };
|
|
31116
|
+
case 2:
|
|
31117
|
+
this.$ = { type: "TERNARY", expr: $$[$0 - 4], truthy: $$[$0 - 2], falsey: $$[$0] };
|
|
31118
|
+
break;
|
|
31119
|
+
case 3:
|
|
31120
|
+
this.$ = { type: "OR", left: $$[$0 - 2], right: $$[$0] };
|
|
31121
|
+
break;
|
|
31122
|
+
case 4:
|
|
31123
|
+
this.$ = { type: "AND", left: $$[$0 - 2], right: $$[$0] };
|
|
31124
|
+
break;
|
|
31125
|
+
case 5:
|
|
31126
|
+
this.$ = { type: "LT", left: $$[$0 - 2], right: $$[$0] };
|
|
31127
|
+
break;
|
|
31128
|
+
case 6:
|
|
31129
|
+
this.$ = { type: "LTE", left: $$[$0 - 2], right: $$[$0] };
|
|
31130
|
+
break;
|
|
31131
|
+
case 7:
|
|
31132
|
+
this.$ = { type: "GT", left: $$[$0 - 2], right: $$[$0] };
|
|
31133
|
+
break;
|
|
31134
|
+
case 8:
|
|
31135
|
+
this.$ = { type: "GTE", left: $$[$0 - 2], right: $$[$0] };
|
|
31136
|
+
break;
|
|
31137
|
+
case 9:
|
|
31138
|
+
this.$ = { type: "NEQ", left: $$[$0 - 2], right: $$[$0] };
|
|
31139
|
+
break;
|
|
31140
|
+
case 10:
|
|
31141
|
+
this.$ = { type: "EQ", left: $$[$0 - 2], right: $$[$0] };
|
|
31142
|
+
break;
|
|
31143
|
+
case 11:
|
|
31144
|
+
this.$ = { type: "MOD", left: $$[$0 - 2], right: $$[$0] };
|
|
31145
|
+
break;
|
|
31146
|
+
case 12:
|
|
31147
|
+
this.$ = { type: "GROUP", expr: $$[$0 - 1] };
|
|
31148
|
+
break;
|
|
31149
|
+
case 13:
|
|
31150
|
+
this.$ = { type: "VAR" };
|
|
31151
|
+
break;
|
|
31152
|
+
case 14:
|
|
31153
|
+
this.$ = { type: "NUM", val: Number(yytext) };
|
|
31154
|
+
break;
|
|
31155
|
+
}
|
|
31156
|
+
},
|
|
31157
|
+
table: [{ 3: 1, 4: 2, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 1: [3] }, { 5: [1, 6], 6: [1, 7], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16] }, { 4: 17, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 5: [2, 13], 6: [2, 13], 7: [2, 13], 8: [2, 13], 9: [2, 13], 10: [2, 13], 11: [2, 13], 12: [2, 13], 13: [2, 13], 14: [2, 13], 15: [2, 13], 16: [2, 13], 18: [2, 13] }, { 5: [2, 14], 6: [2, 14], 7: [2, 14], 8: [2, 14], 9: [2, 14], 10: [2, 14], 11: [2, 14], 12: [2, 14], 13: [2, 14], 14: [2, 14], 15: [2, 14], 16: [2, 14], 18: [2, 14] }, { 1: [2, 1] }, { 4: 18, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 19, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 20, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 21, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 22, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 23, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 24, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 25, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 26, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 4: 27, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 6: [1, 7], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [1, 28] }, { 6: [1, 7], 7: [1, 29], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16] }, { 5: [2, 3], 6: [2, 3], 7: [2, 3], 8: [2, 3], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [2, 3] }, { 5: [2, 4], 6: [2, 4], 7: [2, 4], 8: [2, 4], 9: [2, 4], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [2, 4] }, { 5: [2, 5], 6: [2, 5], 7: [2, 5], 8: [2, 5], 9: [2, 5], 10: [2, 5], 11: [2, 5], 12: [2, 5], 13: [2, 5], 14: [2, 5], 15: [2, 5], 16: [1, 16], 18: [2, 5] }, { 5: [2, 6], 6: [2, 6], 7: [2, 6], 8: [2, 6], 9: [2, 6], 10: [2, 6], 11: [2, 6], 12: [2, 6], 13: [2, 6], 14: [2, 6], 15: [2, 6], 16: [1, 16], 18: [2, 6] }, { 5: [2, 7], 6: [2, 7], 7: [2, 7], 8: [2, 7], 9: [2, 7], 10: [2, 7], 11: [2, 7], 12: [2, 7], 13: [2, 7], 14: [2, 7], 15: [2, 7], 16: [1, 16], 18: [2, 7] }, { 5: [2, 8], 6: [2, 8], 7: [2, 8], 8: [2, 8], 9: [2, 8], 10: [2, 8], 11: [2, 8], 12: [2, 8], 13: [2, 8], 14: [2, 8], 15: [2, 8], 16: [1, 16], 18: [2, 8] }, { 5: [2, 9], 6: [2, 9], 7: [2, 9], 8: [2, 9], 9: [2, 9], 10: [2, 9], 11: [2, 9], 12: [2, 9], 13: [2, 9], 14: [2, 9], 15: [2, 9], 16: [1, 16], 18: [2, 9] }, { 5: [2, 10], 6: [2, 10], 7: [2, 10], 8: [2, 10], 9: [2, 10], 10: [2, 10], 11: [2, 10], 12: [2, 10], 13: [2, 10], 14: [2, 10], 15: [2, 10], 16: [1, 16], 18: [2, 10] }, { 5: [2, 11], 6: [2, 11], 7: [2, 11], 8: [2, 11], 9: [2, 11], 10: [2, 11], 11: [2, 11], 12: [2, 11], 13: [2, 11], 14: [2, 11], 15: [2, 11], 16: [2, 11], 18: [2, 11] }, { 5: [2, 12], 6: [2, 12], 7: [2, 12], 8: [2, 12], 9: [2, 12], 10: [2, 12], 11: [2, 12], 12: [2, 12], 13: [2, 12], 14: [2, 12], 15: [2, 12], 16: [2, 12], 18: [2, 12] }, { 4: 30, 17: [1, 3], 19: [1, 4], 20: [1, 5] }, { 5: [2, 2], 6: [1, 7], 7: [2, 2], 8: [1, 8], 9: [1, 9], 10: [1, 10], 11: [1, 11], 12: [1, 12], 13: [1, 13], 14: [1, 14], 15: [1, 15], 16: [1, 16], 18: [2, 2] }],
|
|
31158
|
+
defaultActions: { 6: [2, 1] },
|
|
31159
|
+
parseError: function parseError(str, hash) {
|
|
31160
|
+
throw new Error(str);
|
|
31161
|
+
},
|
|
31162
|
+
parse: function parse2(input) {
|
|
31163
|
+
var self2 = this, stack = [0], vstack = [null], lstack = [], table2 = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
31164
|
+
this.lexer.setInput(input);
|
|
31165
|
+
this.lexer.yy = this.yy;
|
|
31166
|
+
this.yy.lexer = this.lexer;
|
|
31167
|
+
if (typeof this.lexer.yylloc == "undefined")
|
|
31168
|
+
this.lexer.yylloc = {};
|
|
31169
|
+
var yyloc = this.lexer.yylloc;
|
|
31170
|
+
lstack.push(yyloc);
|
|
31171
|
+
if (typeof this.yy.parseError === "function")
|
|
31172
|
+
this.parseError = this.yy.parseError;
|
|
31173
|
+
function popStack(n2) {
|
|
31174
|
+
stack.length = stack.length - 2 * n2;
|
|
31175
|
+
vstack.length = vstack.length - n2;
|
|
31176
|
+
lstack.length = lstack.length - n2;
|
|
31177
|
+
}
|
|
31178
|
+
function lex() {
|
|
31179
|
+
var token2;
|
|
31180
|
+
token2 = self2.lexer.lex() || 1;
|
|
31181
|
+
if (typeof token2 !== "number") {
|
|
31182
|
+
token2 = self2.symbols_[token2] || token2;
|
|
31183
|
+
}
|
|
31184
|
+
return token2;
|
|
31185
|
+
}
|
|
31186
|
+
var symbol, preErrorSymbol, state, action, r2, yyval = {}, p2, len, newState, expected;
|
|
31187
|
+
while (true) {
|
|
31188
|
+
state = stack[stack.length - 1];
|
|
31189
|
+
if (this.defaultActions[state]) {
|
|
31190
|
+
action = this.defaultActions[state];
|
|
31191
|
+
} else {
|
|
31192
|
+
if (symbol == null)
|
|
31193
|
+
symbol = lex();
|
|
31194
|
+
action = table2[state] && table2[state][symbol];
|
|
31195
|
+
}
|
|
31196
|
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
31197
|
+
if (!recovering) {
|
|
31198
|
+
expected = [];
|
|
31199
|
+
for (p2 in table2[state])
|
|
31200
|
+
if (this.terminals_[p2] && p2 > 2) {
|
|
31201
|
+
expected.push("'" + this.terminals_[p2] + "'");
|
|
31202
|
+
}
|
|
31203
|
+
var errStr = "";
|
|
31204
|
+
if (this.lexer.showPosition) {
|
|
31205
|
+
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + this.terminals_[symbol] + "'";
|
|
31206
|
+
} else {
|
|
31207
|
+
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
31208
|
+
}
|
|
31209
|
+
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
|
31210
|
+
}
|
|
31211
|
+
if (recovering == 3) {
|
|
31212
|
+
if (symbol == EOF) {
|
|
31213
|
+
throw new Error(errStr || "Parsing halted.");
|
|
31214
|
+
}
|
|
31215
|
+
yyleng = this.lexer.yyleng;
|
|
31216
|
+
yytext = this.lexer.yytext;
|
|
31217
|
+
yylineno = this.lexer.yylineno;
|
|
31218
|
+
yyloc = this.lexer.yylloc;
|
|
31219
|
+
symbol = lex();
|
|
31220
|
+
}
|
|
31221
|
+
while (1) {
|
|
31222
|
+
if (TERROR.toString() in table2[state]) {
|
|
31223
|
+
break;
|
|
31224
|
+
}
|
|
31225
|
+
if (state == 0) {
|
|
31226
|
+
throw new Error(errStr || "Parsing halted.");
|
|
31227
|
+
}
|
|
31228
|
+
popStack(1);
|
|
31229
|
+
state = stack[stack.length - 1];
|
|
31230
|
+
}
|
|
31231
|
+
preErrorSymbol = symbol;
|
|
31232
|
+
symbol = TERROR;
|
|
31233
|
+
state = stack[stack.length - 1];
|
|
31234
|
+
action = table2[state] && table2[state][TERROR];
|
|
31235
|
+
recovering = 3;
|
|
31236
|
+
}
|
|
31237
|
+
if (action[0] instanceof Array && action.length > 1) {
|
|
31238
|
+
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
31239
|
+
}
|
|
31240
|
+
switch (action[0]) {
|
|
31241
|
+
case 1:
|
|
31242
|
+
stack.push(symbol);
|
|
31243
|
+
vstack.push(this.lexer.yytext);
|
|
31244
|
+
lstack.push(this.lexer.yylloc);
|
|
31245
|
+
stack.push(action[1]);
|
|
31246
|
+
symbol = null;
|
|
31247
|
+
if (!preErrorSymbol) {
|
|
31248
|
+
yyleng = this.lexer.yyleng;
|
|
31249
|
+
yytext = this.lexer.yytext;
|
|
31250
|
+
yylineno = this.lexer.yylineno;
|
|
31251
|
+
yyloc = this.lexer.yylloc;
|
|
31252
|
+
if (recovering > 0)
|
|
31253
|
+
recovering--;
|
|
31254
|
+
} else {
|
|
31255
|
+
symbol = preErrorSymbol;
|
|
31256
|
+
preErrorSymbol = null;
|
|
31257
|
+
}
|
|
31258
|
+
break;
|
|
31259
|
+
case 2:
|
|
31260
|
+
len = this.productions_[action[1]][1];
|
|
31261
|
+
yyval.$ = vstack[vstack.length - len];
|
|
31262
|
+
yyval._$ = {
|
|
31263
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
31264
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
31265
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
31266
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
31267
|
+
};
|
|
31268
|
+
r2 = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
|
|
31269
|
+
if (typeof r2 !== "undefined") {
|
|
31270
|
+
return r2;
|
|
31271
|
+
}
|
|
31272
|
+
if (len) {
|
|
31273
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
31274
|
+
vstack = vstack.slice(0, -1 * len);
|
|
31275
|
+
lstack = lstack.slice(0, -1 * len);
|
|
31276
|
+
}
|
|
31277
|
+
stack.push(this.productions_[action[1]][0]);
|
|
31278
|
+
vstack.push(yyval.$);
|
|
31279
|
+
lstack.push(yyval._$);
|
|
31280
|
+
newState = table2[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
31281
|
+
stack.push(newState);
|
|
31282
|
+
break;
|
|
31283
|
+
case 3:
|
|
31284
|
+
return true;
|
|
31285
|
+
}
|
|
31286
|
+
}
|
|
31287
|
+
return true;
|
|
31196
31288
|
}
|
|
31197
|
-
|
|
31198
|
-
|
|
31199
|
-
|
|
31200
|
-
|
|
31201
|
-
|
|
31202
|
-
|
|
31203
|
-
|
|
31204
|
-
|
|
31205
|
-
|
|
31206
|
-
|
|
31207
|
-
|
|
31208
|
-
|
|
31209
|
-
|
|
31210
|
-
|
|
31211
|
-
|
|
31212
|
-
|
|
31213
|
-
|
|
31214
|
-
|
|
31215
|
-
|
|
31216
|
-
|
|
31217
|
-
|
|
31218
|
-
|
|
31219
|
-
|
|
31220
|
-
|
|
31221
|
-
|
|
31222
|
-
|
|
31223
|
-
|
|
31224
|
-
|
|
31225
|
-
|
|
31226
|
-
|
|
31227
|
-
|
|
31228
|
-
|
|
31229
|
-
|
|
31230
|
-
|
|
31231
|
-
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
|
|
31235
|
-
|
|
31236
|
-
|
|
31237
|
-
|
|
31238
|
-
|
|
31239
|
-
|
|
31240
|
-
|
|
31241
|
-
|
|
31242
|
-
|
|
31243
|
-
|
|
31244
|
-
|
|
31245
|
-
|
|
31246
|
-
|
|
31247
|
-
|
|
31248
|
-
|
|
31249
|
-
|
|
31250
|
-
|
|
31251
|
-
|
|
31252
|
-
|
|
31253
|
-
|
|
31254
|
-
|
|
31255
|
-
|
|
31256
|
-
|
|
31257
|
-
|
|
31258
|
-
|
|
31259
|
-
|
|
31260
|
-
|
|
31261
|
-
|
|
31262
|
-
|
|
31263
|
-
|
|
31264
|
-
|
|
31265
|
-
|
|
31266
|
-
|
|
31267
|
-
|
|
31268
|
-
|
|
31269
|
-
|
|
31270
|
-
|
|
31271
|
-
|
|
31272
|
-
|
|
31273
|
-
|
|
31274
|
-
|
|
31275
|
-
|
|
31276
|
-
|
|
31277
|
-
|
|
31278
|
-
|
|
31279
|
-
|
|
31280
|
-
|
|
31281
|
-
|
|
31282
|
-
|
|
31283
|
-
|
|
31284
|
-
|
|
31285
|
-
|
|
31286
|
-
|
|
31287
|
-
|
|
31288
|
-
|
|
31289
|
-
|
|
31290
|
-
|
|
31291
|
-
|
|
31292
|
-
|
|
31293
|
-
|
|
31294
|
-
|
|
31295
|
-
|
|
31296
|
-
|
|
31297
|
-
|
|
31298
|
-
|
|
31299
|
-
|
|
31300
|
-
|
|
31301
|
-
|
|
31302
|
-
|
|
31303
|
-
|
|
31304
|
-
|
|
31305
|
-
|
|
31306
|
-
|
|
31307
|
-
|
|
31289
|
+
};
|
|
31290
|
+
var lexer = function() {
|
|
31291
|
+
var lexer2 = {
|
|
31292
|
+
EOF: 1,
|
|
31293
|
+
parseError: function parseError(str, hash) {
|
|
31294
|
+
if (this.yy.parseError) {
|
|
31295
|
+
this.yy.parseError(str, hash);
|
|
31296
|
+
} else {
|
|
31297
|
+
throw new Error(str);
|
|
31298
|
+
}
|
|
31299
|
+
},
|
|
31300
|
+
setInput: function(input) {
|
|
31301
|
+
this._input = input;
|
|
31302
|
+
this._more = this._less = this.done = false;
|
|
31303
|
+
this.yylineno = this.yyleng = 0;
|
|
31304
|
+
this.yytext = this.matched = this.match = "";
|
|
31305
|
+
this.conditionStack = ["INITIAL"];
|
|
31306
|
+
this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 };
|
|
31307
|
+
return this;
|
|
31308
|
+
},
|
|
31309
|
+
input: function() {
|
|
31310
|
+
var ch = this._input[0];
|
|
31311
|
+
this.yytext += ch;
|
|
31312
|
+
this.yyleng++;
|
|
31313
|
+
this.match += ch;
|
|
31314
|
+
this.matched += ch;
|
|
31315
|
+
var lines = ch.match(/\n/);
|
|
31316
|
+
if (lines)
|
|
31317
|
+
this.yylineno++;
|
|
31318
|
+
this._input = this._input.slice(1);
|
|
31319
|
+
return ch;
|
|
31320
|
+
},
|
|
31321
|
+
unput: function(ch) {
|
|
31322
|
+
this._input = ch + this._input;
|
|
31323
|
+
return this;
|
|
31324
|
+
},
|
|
31325
|
+
more: function() {
|
|
31326
|
+
this._more = true;
|
|
31327
|
+
return this;
|
|
31328
|
+
},
|
|
31329
|
+
pastInput: function() {
|
|
31330
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
31331
|
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
31332
|
+
},
|
|
31333
|
+
upcomingInput: function() {
|
|
31334
|
+
var next = this.match;
|
|
31335
|
+
if (next.length < 20) {
|
|
31336
|
+
next += this._input.substr(0, 20 - next.length);
|
|
31337
|
+
}
|
|
31338
|
+
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
31339
|
+
},
|
|
31340
|
+
showPosition: function() {
|
|
31341
|
+
var pre = this.pastInput();
|
|
31342
|
+
var c6 = new Array(pre.length + 1).join("-");
|
|
31343
|
+
return pre + this.upcomingInput() + "\n" + c6 + "^";
|
|
31344
|
+
},
|
|
31345
|
+
next: function() {
|
|
31346
|
+
if (this.done) {
|
|
31347
|
+
return this.EOF;
|
|
31348
|
+
}
|
|
31349
|
+
if (!this._input)
|
|
31350
|
+
this.done = true;
|
|
31351
|
+
var token2, match2, lines;
|
|
31352
|
+
if (!this._more) {
|
|
31353
|
+
this.yytext = "";
|
|
31354
|
+
this.match = "";
|
|
31355
|
+
}
|
|
31356
|
+
var rules2 = this._currentRules();
|
|
31357
|
+
for (var i2 = 0; i2 < rules2.length; i2++) {
|
|
31358
|
+
match2 = this._input.match(this.rules[rules2[i2]]);
|
|
31359
|
+
if (match2) {
|
|
31360
|
+
lines = match2[0].match(/\n.*/g);
|
|
31361
|
+
if (lines)
|
|
31362
|
+
this.yylineno += lines.length;
|
|
31363
|
+
this.yylloc = {
|
|
31364
|
+
first_line: this.yylloc.last_line,
|
|
31365
|
+
last_line: this.yylineno + 1,
|
|
31366
|
+
first_column: this.yylloc.last_column,
|
|
31367
|
+
last_column: lines ? lines[lines.length - 1].length - 1 : this.yylloc.last_column + match2[0].length
|
|
31368
|
+
};
|
|
31369
|
+
this.yytext += match2[0];
|
|
31370
|
+
this.match += match2[0];
|
|
31371
|
+
this.matches = match2;
|
|
31372
|
+
this.yyleng = this.yytext.length;
|
|
31373
|
+
this._more = false;
|
|
31374
|
+
this._input = this._input.slice(match2[0].length);
|
|
31375
|
+
this.matched += match2[0];
|
|
31376
|
+
token2 = this.performAction.call(this, this.yy, this, rules2[i2], this.conditionStack[this.conditionStack.length - 1]);
|
|
31377
|
+
if (token2)
|
|
31378
|
+
return token2;
|
|
31379
|
+
else
|
|
31380
|
+
return;
|
|
31381
|
+
}
|
|
31382
|
+
}
|
|
31383
|
+
if (this._input === "") {
|
|
31384
|
+
return this.EOF;
|
|
31385
|
+
} else {
|
|
31386
|
+
this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { text: "", token: null, line: this.yylineno });
|
|
31387
|
+
}
|
|
31388
|
+
},
|
|
31389
|
+
lex: function lex() {
|
|
31390
|
+
var r2 = this.next();
|
|
31391
|
+
if (typeof r2 !== "undefined") {
|
|
31392
|
+
return r2;
|
|
31393
|
+
} else {
|
|
31394
|
+
return this.lex();
|
|
31395
|
+
}
|
|
31396
|
+
},
|
|
31397
|
+
begin: function begin(condition) {
|
|
31398
|
+
this.conditionStack.push(condition);
|
|
31399
|
+
},
|
|
31400
|
+
popState: function popState() {
|
|
31401
|
+
return this.conditionStack.pop();
|
|
31402
|
+
},
|
|
31403
|
+
_currentRules: function _currentRules() {
|
|
31404
|
+
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
31405
|
+
},
|
|
31406
|
+
topState: function() {
|
|
31407
|
+
return this.conditionStack[this.conditionStack.length - 2];
|
|
31408
|
+
},
|
|
31409
|
+
pushState: function begin(condition) {
|
|
31410
|
+
this.begin(condition);
|
|
31411
|
+
}
|
|
31412
|
+
};
|
|
31413
|
+
lexer2.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
31414
|
+
switch ($avoiding_name_collisions) {
|
|
31415
|
+
case 0:
|
|
31416
|
+
break;
|
|
31417
|
+
case 1:
|
|
31418
|
+
return 20;
|
|
31419
|
+
case 2:
|
|
31420
|
+
return 19;
|
|
31421
|
+
case 3:
|
|
31422
|
+
return 8;
|
|
31423
|
+
case 4:
|
|
31424
|
+
return 9;
|
|
31425
|
+
case 5:
|
|
31426
|
+
return 6;
|
|
31427
|
+
case 6:
|
|
31428
|
+
return 7;
|
|
31429
|
+
case 7:
|
|
31430
|
+
return 11;
|
|
31431
|
+
case 8:
|
|
31432
|
+
return 13;
|
|
31433
|
+
case 9:
|
|
31434
|
+
return 10;
|
|
31435
|
+
case 10:
|
|
31436
|
+
return 12;
|
|
31437
|
+
case 11:
|
|
31438
|
+
return 14;
|
|
31439
|
+
case 12:
|
|
31440
|
+
return 15;
|
|
31441
|
+
case 13:
|
|
31442
|
+
return 16;
|
|
31443
|
+
case 14:
|
|
31444
|
+
return 17;
|
|
31445
|
+
case 15:
|
|
31446
|
+
return 18;
|
|
31447
|
+
case 16:
|
|
31448
|
+
return 5;
|
|
31449
|
+
case 17:
|
|
31450
|
+
return "INVALID";
|
|
31451
|
+
}
|
|
31452
|
+
};
|
|
31453
|
+
lexer2.rules = [/^\s+/, /^[0-9]+(\.[0-9]+)?\b/, /^n\b/, /^\|\|/, /^&&/, /^\?/, /^:/, /^<=/, /^>=/, /^</, /^>/, /^!=/, /^==/, /^%/, /^\(/, /^\)/, /^$/, /^./];
|
|
31454
|
+
lexer2.conditions = { "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "inclusive": true } };
|
|
31455
|
+
return lexer2;
|
|
31456
|
+
}();
|
|
31457
|
+
parser.lexer = lexer;
|
|
31458
|
+
return parser;
|
|
31459
|
+
}();
|
|
31460
|
+
{
|
|
31461
|
+
if (module2.exports) {
|
|
31462
|
+
exports3 = module2.exports = Jed2;
|
|
31308
31463
|
}
|
|
31309
|
-
|
|
31310
|
-
var onChangeKey = "onChange";
|
|
31311
|
-
var eventHandlers = {};
|
|
31312
|
-
if (!rest.disabled) {
|
|
31313
|
-
var _eventHandlers;
|
|
31314
|
-
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers);
|
|
31464
|
+
exports3.Jed = Jed2;
|
|
31315
31465
|
}
|
|
31316
|
-
|
|
31317
|
-
|
|
31318
|
-
|
|
31319
|
-
|
|
31320
|
-
|
|
31321
|
-
|
|
31322
|
-
|
|
31323
|
-
|
|
31324
|
-
|
|
31325
|
-
|
|
31326
|
-
|
|
31327
|
-
|
|
31328
|
-
|
|
31329
|
-
var _ref9 = _temp8 === void 0 ? {} : _temp8, _ref9$suppressRefErro = _ref9.suppressRefError, suppressRefError = _ref9$suppressRefErro === void 0 ? false : _ref9$suppressRefErro;
|
|
31330
|
-
setGetterPropCallInfo("getComboboxProps", suppressRefError, refKey, comboboxRef);
|
|
31331
|
-
return _extends$u((_extends6 = {}, _extends6[refKey] = handleRefs(ref, function(comboboxNode) {
|
|
31332
|
-
comboboxRef.current = comboboxNode;
|
|
31333
|
-
}), _extends6.role = "combobox", _extends6["aria-haspopup"] = "listbox", _extends6["aria-owns"] = elementIds.menuId, _extends6["aria-expanded"] = latest.current.state.isOpen, _extends6), rest);
|
|
31334
|
-
}, [latest, setGetterPropCallInfo, elementIds]);
|
|
31335
|
-
var toggleMenu = require$$0.useCallback(function() {
|
|
31336
|
-
dispatch({
|
|
31337
|
-
type: FunctionToggleMenu
|
|
31338
|
-
});
|
|
31339
|
-
}, [dispatch]);
|
|
31340
|
-
var closeMenu = require$$0.useCallback(function() {
|
|
31341
|
-
dispatch({
|
|
31342
|
-
type: FunctionCloseMenu
|
|
31343
|
-
});
|
|
31344
|
-
}, [dispatch]);
|
|
31345
|
-
var openMenu = require$$0.useCallback(function() {
|
|
31346
|
-
dispatch({
|
|
31347
|
-
type: FunctionOpenMenu
|
|
31348
|
-
});
|
|
31349
|
-
}, [dispatch]);
|
|
31350
|
-
var setHighlightedIndex = require$$0.useCallback(function(newHighlightedIndex) {
|
|
31351
|
-
dispatch({
|
|
31352
|
-
type: FunctionSetHighlightedIndex,
|
|
31353
|
-
highlightedIndex: newHighlightedIndex
|
|
31354
|
-
});
|
|
31355
|
-
}, [dispatch]);
|
|
31356
|
-
var selectItem = require$$0.useCallback(function(newSelectedItem) {
|
|
31357
|
-
dispatch({
|
|
31358
|
-
type: FunctionSelectItem,
|
|
31359
|
-
selectedItem: newSelectedItem
|
|
31360
|
-
});
|
|
31361
|
-
}, [dispatch]);
|
|
31362
|
-
var setInputValue = require$$0.useCallback(function(newInputValue) {
|
|
31363
|
-
dispatch({
|
|
31364
|
-
type: FunctionSetInputValue,
|
|
31365
|
-
inputValue: newInputValue
|
|
31366
|
-
});
|
|
31367
|
-
}, [dispatch]);
|
|
31368
|
-
var reset = require$$0.useCallback(function() {
|
|
31369
|
-
dispatch({
|
|
31370
|
-
type: FunctionReset$1
|
|
31371
|
-
});
|
|
31372
|
-
}, [dispatch]);
|
|
31466
|
+
})();
|
|
31467
|
+
})(jed, jed.exports);
|
|
31468
|
+
var Jed = jed.exports;
|
|
31469
|
+
const fetcher = (url) => fetch(url).then((r2) => r2.json());
|
|
31470
|
+
function messageFormat(string, replacements) {
|
|
31471
|
+
return string.replace(/\{(\d+)\}/g, function() {
|
|
31472
|
+
return replacements[arguments[1]];
|
|
31473
|
+
});
|
|
31474
|
+
}
|
|
31475
|
+
function useI18n() {
|
|
31476
|
+
const { i18nFeed } = useSelector((state) => state.headerInfo);
|
|
31477
|
+
const userLanguage = useSelector((state) => state.userLanguage);
|
|
31478
|
+
const { data: data2, error } = index(i18nFeed && userLanguage ? messageFormat(i18nFeed, [userLanguage]) : null, fetcher);
|
|
31373
31479
|
return {
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
|
|
31378
|
-
|
|
31379
|
-
|
|
31380
|
-
|
|
31381
|
-
|
|
31382
|
-
closeMenu,
|
|
31383
|
-
setHighlightedIndex,
|
|
31384
|
-
setInputValue,
|
|
31385
|
-
selectItem,
|
|
31386
|
-
reset,
|
|
31387
|
-
highlightedIndex,
|
|
31388
|
-
isOpen,
|
|
31389
|
-
selectedItem,
|
|
31390
|
-
inputValue
|
|
31480
|
+
i18n: new Jed({
|
|
31481
|
+
locale_data: data2 || {
|
|
31482
|
+
messages: {
|
|
31483
|
+
"": {}
|
|
31484
|
+
}
|
|
31485
|
+
}
|
|
31486
|
+
}),
|
|
31487
|
+
error
|
|
31391
31488
|
};
|
|
31392
31489
|
}
|
|
31393
|
-
function getA11yRemovalMessage(selectionParameters) {
|
|
31394
|
-
var removedSelectedItem = selectionParameters.removedSelectedItem, itemToStringLocal = selectionParameters.itemToString;
|
|
31395
|
-
return itemToStringLocal(removedSelectedItem) + " has been removed.";
|
|
31396
|
-
}
|
|
31397
|
-
({
|
|
31398
|
-
selectedItems: PropTypes.array,
|
|
31399
|
-
initialSelectedItems: PropTypes.array,
|
|
31400
|
-
defaultSelectedItems: PropTypes.array,
|
|
31401
|
-
itemToString: PropTypes.func,
|
|
31402
|
-
getA11yRemovalMessage: PropTypes.func,
|
|
31403
|
-
stateReducer: PropTypes.func,
|
|
31404
|
-
activeIndex: PropTypes.number,
|
|
31405
|
-
initialActiveIndex: PropTypes.number,
|
|
31406
|
-
defaultActiveIndex: PropTypes.number,
|
|
31407
|
-
onActiveIndexChange: PropTypes.func,
|
|
31408
|
-
onSelectedItemsChange: PropTypes.func,
|
|
31409
|
-
keyNavigationNext: PropTypes.string,
|
|
31410
|
-
keyNavigationPrevious: PropTypes.string,
|
|
31411
|
-
environment: PropTypes.shape({
|
|
31412
|
-
addEventListener: PropTypes.func,
|
|
31413
|
-
removeEventListener: PropTypes.func,
|
|
31414
|
-
document: PropTypes.shape({
|
|
31415
|
-
getElementById: PropTypes.func,
|
|
31416
|
-
activeElement: PropTypes.any,
|
|
31417
|
-
body: PropTypes.any
|
|
31418
|
-
})
|
|
31419
|
-
})
|
|
31420
|
-
});
|
|
31421
|
-
({
|
|
31422
|
-
itemToString: defaultProps$3.itemToString,
|
|
31423
|
-
stateReducer: defaultProps$3.stateReducer,
|
|
31424
|
-
environment: defaultProps$3.environment,
|
|
31425
|
-
getA11yRemovalMessage,
|
|
31426
|
-
keyNavigationNext: "ArrowRight",
|
|
31427
|
-
keyNavigationPrevious: "ArrowLeft"
|
|
31428
|
-
});
|
|
31429
31490
|
var _jsxFileName$9 = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/HotelFinder.jsx";
|
|
31430
31491
|
function getHotelInfoFromHotelFinderHotel(hotel) {
|
|
31431
31492
|
let name;
|
|
@@ -31442,6 +31503,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31442
31503
|
guideId
|
|
31443
31504
|
};
|
|
31444
31505
|
}
|
|
31506
|
+
const noMatchHotel = ["0_0"];
|
|
31445
31507
|
function HotelFinder(props) {
|
|
31446
31508
|
const {
|
|
31447
31509
|
hotels,
|
|
@@ -31450,10 +31512,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31450
31512
|
handleHotelChange,
|
|
31451
31513
|
subMenuItem
|
|
31452
31514
|
} = props;
|
|
31515
|
+
const {
|
|
31516
|
+
i18n
|
|
31517
|
+
} = useI18n();
|
|
31518
|
+
if (noMatchHotel.length === 1) {
|
|
31519
|
+
noMatchHotel.unshift(i18n.translate("No_matches_please_try_again").fetch());
|
|
31520
|
+
}
|
|
31453
31521
|
const [inputHotels, setInputHotels] = require$$0.useState([]);
|
|
31522
|
+
const [ctrlInputValue, setCtrlInputValue] = require$$0.useState(defaultHotel && defaultHotel[0] || "");
|
|
31454
31523
|
const {
|
|
31455
|
-
subMenus
|
|
31456
|
-
isMobileOrTablet
|
|
31524
|
+
subMenus
|
|
31457
31525
|
} = useSelector((state) => state.headerInfo);
|
|
31458
31526
|
const dispatch = useDispatch();
|
|
31459
31527
|
const subMenuOpen = subMenus.find((id2) => id2 === subMenuItem);
|
|
@@ -31464,7 +31532,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31464
31532
|
getInputProps,
|
|
31465
31533
|
getComboboxProps,
|
|
31466
31534
|
highlightedIndex,
|
|
31467
|
-
getItemProps
|
|
31535
|
+
getItemProps,
|
|
31536
|
+
closeMenu
|
|
31468
31537
|
} = useCombobox({
|
|
31469
31538
|
items: inputHotels,
|
|
31470
31539
|
itemToString: itemToString2,
|
|
@@ -31475,30 +31544,43 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31475
31544
|
selectedItem
|
|
31476
31545
|
}) => {
|
|
31477
31546
|
reactDom.unstable_batchedUpdates(() => {
|
|
31478
|
-
|
|
31547
|
+
if (selectedItem !== noMatchHotel) {
|
|
31548
|
+
dispatch(setSelectedHotel(selectedItem));
|
|
31549
|
+
}
|
|
31479
31550
|
dispatch(removeSubMenu(subMenuItem));
|
|
31480
31551
|
});
|
|
31481
31552
|
if (typeof handleHotelChange === "function") {
|
|
31482
|
-
|
|
31553
|
+
if (selectedItem !== noMatchHotel) {
|
|
31554
|
+
handleHotelChange(getHotelInfoFromHotelFinderHotel(selectedItem));
|
|
31555
|
+
}
|
|
31483
31556
|
}
|
|
31557
|
+
document.querySelector("#hd-property-input").blur();
|
|
31484
31558
|
},
|
|
31485
31559
|
onInputValueChange: ({
|
|
31486
31560
|
inputValue
|
|
31487
31561
|
}) => {
|
|
31488
31562
|
const inputValueLC = inputValue.toLowerCase();
|
|
31489
|
-
|
|
31490
|
-
|
|
31563
|
+
const matchingHotels = hotels.filter((hotel) => {
|
|
31564
|
+
if (!inputValueLC)
|
|
31565
|
+
return false;
|
|
31566
|
+
const hotelNameLC = itemToString2(hotel).toLowerCase().trim();
|
|
31491
31567
|
return hotelNameLC.match(`(^|\\s)${inputValueLC}`);
|
|
31492
|
-
})
|
|
31568
|
+
});
|
|
31569
|
+
if (matchingHotels.length > 0) {
|
|
31570
|
+
setInputHotels(matchingHotels);
|
|
31571
|
+
} else if (!inputValueLC) {
|
|
31572
|
+
setInputHotels([]);
|
|
31573
|
+
closeMenu();
|
|
31574
|
+
} else {
|
|
31575
|
+
setInputHotels([noMatchHotel]);
|
|
31576
|
+
}
|
|
31577
|
+
setCtrlInputValue(inputValue);
|
|
31493
31578
|
}
|
|
31494
31579
|
});
|
|
31495
31580
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
31496
31581
|
className: cn("col-12", "col-lg", "py-3", "px-lg-0", "py-lg-0", "list-unstyled", "hd-nav-second-level", {
|
|
31497
31582
|
"hd-submenu-opened": subMenuOpen
|
|
31498
31583
|
}),
|
|
31499
|
-
style: isMobileOrTablet ? {
|
|
31500
|
-
top: 50
|
|
31501
|
-
} : {},
|
|
31502
31584
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
31503
31585
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31504
31586
|
id: "hd-property-search",
|
|
@@ -31508,78 +31590,114 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31508
31590
|
children: "Select property"
|
|
31509
31591
|
}, void 0, false, {
|
|
31510
31592
|
fileName: _jsxFileName$9,
|
|
31511
|
-
lineNumber:
|
|
31593
|
+
lineNumber: 117,
|
|
31512
31594
|
columnNumber: 11
|
|
31513
31595
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", __spreadProps(__spreadValues({
|
|
31514
31596
|
id: "hd-property-input-container"
|
|
31515
31597
|
}, getComboboxProps()), {
|
|
31516
|
-
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("input", __spreadValues({
|
|
31598
|
+
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("input", __spreadProps(__spreadValues({}, getInputProps({
|
|
31599
|
+
onChange: (e2) => {
|
|
31600
|
+
const cursorPos = e2.target.selectionStart;
|
|
31601
|
+
setTimeout(() => {
|
|
31602
|
+
e2.target.setSelectionRange(cursorPos, cursorPos);
|
|
31603
|
+
}, 0);
|
|
31604
|
+
}
|
|
31605
|
+
})), {
|
|
31517
31606
|
type: "text",
|
|
31518
31607
|
className: "form-control",
|
|
31608
|
+
placeholder: i18n.translate("hotel_name").fetch(),
|
|
31519
31609
|
id: "hd-property-input",
|
|
31520
|
-
|
|
31521
|
-
|
|
31610
|
+
value: ctrlInputValue,
|
|
31611
|
+
onBlur: (e2) => {
|
|
31612
|
+
const {
|
|
31613
|
+
name
|
|
31614
|
+
} = getHotelInfoFromHotelFinderHotel(selectedHotel);
|
|
31615
|
+
if (e2.target.value !== name) {
|
|
31616
|
+
setCtrlInputValue(name);
|
|
31617
|
+
}
|
|
31618
|
+
}
|
|
31619
|
+
}), void 0, false, {
|
|
31522
31620
|
fileName: _jsxFileName$9,
|
|
31523
|
-
lineNumber:
|
|
31621
|
+
lineNumber: 124,
|
|
31524
31622
|
columnNumber: 13
|
|
31525
31623
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", __spreadProps(__spreadValues({
|
|
31526
|
-
|
|
31527
|
-
listStyle: "none",
|
|
31528
|
-
marginBottom: 0
|
|
31529
|
-
}
|
|
31624
|
+
className: "mb-0 px-3 list-unstyled shadow"
|
|
31530
31625
|
}, getMenuProps()), {
|
|
31531
31626
|
children: isOpen && inputHotels.map((hotel, index2) => /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", __spreadProps(__spreadValues({
|
|
31532
|
-
|
|
31533
|
-
backgroundColor: "#bde4ff"
|
|
31534
|
-
} : {}
|
|
31627
|
+
className: "py-3 py-lg-2"
|
|
31535
31628
|
}, getItemProps({
|
|
31536
31629
|
hotel,
|
|
31537
31630
|
index: index2
|
|
31538
31631
|
})), {
|
|
31539
|
-
children:
|
|
31632
|
+
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31633
|
+
style: {
|
|
31634
|
+
display: "flex",
|
|
31635
|
+
justifyContent: "space-between",
|
|
31636
|
+
alignItems: "center"
|
|
31637
|
+
},
|
|
31638
|
+
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31639
|
+
children: hotel[0]
|
|
31640
|
+
}, void 0, false, {
|
|
31641
|
+
fileName: _jsxFileName$9,
|
|
31642
|
+
lineNumber: 164,
|
|
31643
|
+
columnNumber: 23
|
|
31644
|
+
}, this), hotel === selectedHotel && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Tick, {}, void 0, false, {
|
|
31645
|
+
fileName: _jsxFileName$9,
|
|
31646
|
+
lineNumber: 165,
|
|
31647
|
+
columnNumber: 51
|
|
31648
|
+
}, this)]
|
|
31649
|
+
}, void 0, true, {
|
|
31650
|
+
fileName: _jsxFileName$9,
|
|
31651
|
+
lineNumber: 157,
|
|
31652
|
+
columnNumber: 21
|
|
31653
|
+
}, this)
|
|
31540
31654
|
}), hotel[1], false, {
|
|
31541
31655
|
fileName: _jsxFileName$9,
|
|
31542
|
-
lineNumber:
|
|
31656
|
+
lineNumber: 151,
|
|
31543
31657
|
columnNumber: 19
|
|
31544
31658
|
}, this))
|
|
31545
31659
|
}), void 0, false, {
|
|
31546
31660
|
fileName: _jsxFileName$9,
|
|
31547
|
-
lineNumber:
|
|
31661
|
+
lineNumber: 148,
|
|
31548
31662
|
columnNumber: 13
|
|
31549
31663
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Search, {
|
|
31550
31664
|
className: "hd-icon hd-icon-search"
|
|
31551
31665
|
}, void 0, false, {
|
|
31552
31666
|
fileName: _jsxFileName$9,
|
|
31553
|
-
lineNumber:
|
|
31667
|
+
lineNumber: 170,
|
|
31554
31668
|
columnNumber: 13
|
|
31555
31669
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Close, {
|
|
31556
31670
|
className: "hd-icon hd-icon-close",
|
|
31557
31671
|
onClick: () => {
|
|
31558
|
-
|
|
31672
|
+
setCtrlInputValue("");
|
|
31673
|
+
closeMenu();
|
|
31674
|
+
},
|
|
31675
|
+
onMouseDown: (e2) => {
|
|
31676
|
+
e2.preventDefault();
|
|
31559
31677
|
}
|
|
31560
31678
|
}, void 0, false, {
|
|
31561
31679
|
fileName: _jsxFileName$9,
|
|
31562
|
-
lineNumber:
|
|
31680
|
+
lineNumber: 171,
|
|
31563
31681
|
columnNumber: 13
|
|
31564
31682
|
}, this)]
|
|
31565
31683
|
}), void 0, true, {
|
|
31566
31684
|
fileName: _jsxFileName$9,
|
|
31567
|
-
lineNumber:
|
|
31685
|
+
lineNumber: 123,
|
|
31568
31686
|
columnNumber: 11
|
|
31569
31687
|
}, this)]
|
|
31570
31688
|
}, void 0, true, {
|
|
31571
31689
|
fileName: _jsxFileName$9,
|
|
31572
|
-
lineNumber:
|
|
31690
|
+
lineNumber: 116,
|
|
31573
31691
|
columnNumber: 9
|
|
31574
31692
|
}, this)
|
|
31575
31693
|
}, void 0, false, {
|
|
31576
31694
|
fileName: _jsxFileName$9,
|
|
31577
|
-
lineNumber:
|
|
31695
|
+
lineNumber: 115,
|
|
31578
31696
|
columnNumber: 7
|
|
31579
31697
|
}, this)
|
|
31580
31698
|
}, void 0, false, {
|
|
31581
31699
|
fileName: _jsxFileName$9,
|
|
31582
|
-
lineNumber:
|
|
31700
|
+
lineNumber: 101,
|
|
31583
31701
|
columnNumber: 5
|
|
31584
31702
|
}, this);
|
|
31585
31703
|
}
|
|
@@ -31603,6 +31721,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31603
31721
|
const [
|
|
31604
31722
|
subMenuItem
|
|
31605
31723
|
] = require$$0.useState("Select property");
|
|
31724
|
+
const [displayName, setDisplayName] = require$$0.useState("");
|
|
31606
31725
|
const userInfo = useSelector((state) => state.userInfo);
|
|
31607
31726
|
const {
|
|
31608
31727
|
isOpen,
|
|
@@ -31666,6 +31785,16 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31666
31785
|
}
|
|
31667
31786
|
})();
|
|
31668
31787
|
}, [propertySelector]);
|
|
31788
|
+
require$$0.useEffect(() => {
|
|
31789
|
+
if (userInfo.group) {
|
|
31790
|
+
setDisplayName(userInfo.group);
|
|
31791
|
+
} else if (selectedHotel) {
|
|
31792
|
+
const {
|
|
31793
|
+
name
|
|
31794
|
+
} = getHotelInfoFromHotelFinderHotel(selectedHotel);
|
|
31795
|
+
setDisplayName(name);
|
|
31796
|
+
}
|
|
31797
|
+
}, [userInfo, selectedHotel]);
|
|
31669
31798
|
return transitions((styles, item) => item && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(animated.div, {
|
|
31670
31799
|
className: "col-12 col-lg me-lg-auto px-0 order-lg-3",
|
|
31671
31800
|
id: "hd-property",
|
|
@@ -31688,10 +31817,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31688
31817
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
31689
31818
|
className: "ps-lg-3 py-3 py-lg-0 d-block",
|
|
31690
31819
|
id: "hd-group-name",
|
|
31691
|
-
children:
|
|
31820
|
+
children: displayName
|
|
31692
31821
|
}, void 0, false, {
|
|
31693
31822
|
fileName: _jsxFileName$8,
|
|
31694
|
-
lineNumber:
|
|
31823
|
+
lineNumber: 95,
|
|
31695
31824
|
columnNumber: 19
|
|
31696
31825
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31697
31826
|
className: "row me-0 d-lg-none align-items-center",
|
|
@@ -31702,7 +31831,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31702
31831
|
children: subMenuItem
|
|
31703
31832
|
}, void 0, false, {
|
|
31704
31833
|
fileName: _jsxFileName$8,
|
|
31705
|
-
lineNumber:
|
|
31834
|
+
lineNumber: 103,
|
|
31706
31835
|
columnNumber: 23
|
|
31707
31836
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
31708
31837
|
className: "d-block",
|
|
@@ -31710,12 +31839,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31710
31839
|
children: selectedHotel && selectedHotel[0] || defaultHotel && defaultHotel[0]
|
|
31711
31840
|
}, void 0, false, {
|
|
31712
31841
|
fileName: _jsxFileName$8,
|
|
31713
|
-
lineNumber:
|
|
31842
|
+
lineNumber: 104,
|
|
31714
31843
|
columnNumber: 23
|
|
31715
31844
|
}, this)]
|
|
31716
31845
|
}, void 0, true, {
|
|
31717
31846
|
fileName: _jsxFileName$8,
|
|
31718
|
-
lineNumber:
|
|
31847
|
+
lineNumber: 102,
|
|
31719
31848
|
columnNumber: 21
|
|
31720
31849
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31721
31850
|
className: "col-auto p-2 d-block",
|
|
@@ -31723,24 +31852,24 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31723
31852
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
31724
31853
|
}, void 0, false, {
|
|
31725
31854
|
fileName: _jsxFileName$8,
|
|
31726
|
-
lineNumber:
|
|
31855
|
+
lineNumber: 110,
|
|
31727
31856
|
columnNumber: 23
|
|
31728
31857
|
}, this)
|
|
31729
31858
|
}, void 0, false, {
|
|
31730
31859
|
fileName: _jsxFileName$8,
|
|
31731
|
-
lineNumber:
|
|
31860
|
+
lineNumber: 109,
|
|
31732
31861
|
columnNumber: 21
|
|
31733
31862
|
}, this)]
|
|
31734
31863
|
}, void 0, true, {
|
|
31735
31864
|
fileName: _jsxFileName$8,
|
|
31736
|
-
lineNumber:
|
|
31865
|
+
lineNumber: 101,
|
|
31737
31866
|
columnNumber: 19
|
|
31738
31867
|
}, this)]
|
|
31739
31868
|
}, void 0, true, {
|
|
31740
31869
|
fileName: _jsxFileName$8,
|
|
31741
|
-
lineNumber:
|
|
31870
|
+
lineNumber: 91,
|
|
31742
31871
|
columnNumber: 17
|
|
31743
|
-
}, this), hotelFinderHotels.length >
|
|
31872
|
+
}, this), userInfo.group && hotelFinderHotels.length > 1 && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(HotelFinder, {
|
|
31744
31873
|
hotels: hotelFinderHotels,
|
|
31745
31874
|
defaultHotel,
|
|
31746
31875
|
selectedHotel,
|
|
@@ -31748,27 +31877,27 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31748
31877
|
subMenuItem
|
|
31749
31878
|
}, void 0, false, {
|
|
31750
31879
|
fileName: _jsxFileName$8,
|
|
31751
|
-
lineNumber:
|
|
31880
|
+
lineNumber: 115,
|
|
31752
31881
|
columnNumber: 19
|
|
31753
31882
|
}, this)]
|
|
31754
31883
|
}, void 0, true, {
|
|
31755
31884
|
fileName: _jsxFileName$8,
|
|
31756
|
-
lineNumber:
|
|
31885
|
+
lineNumber: 90,
|
|
31757
31886
|
columnNumber: 15
|
|
31758
31887
|
}, this)
|
|
31759
31888
|
}, void 0, false, {
|
|
31760
31889
|
fileName: _jsxFileName$8,
|
|
31761
|
-
lineNumber:
|
|
31890
|
+
lineNumber: 84,
|
|
31762
31891
|
columnNumber: 13
|
|
31763
31892
|
}, this)
|
|
31764
31893
|
}, void 0, false, {
|
|
31765
31894
|
fileName: _jsxFileName$8,
|
|
31766
|
-
lineNumber:
|
|
31895
|
+
lineNumber: 80,
|
|
31767
31896
|
columnNumber: 11
|
|
31768
31897
|
}, this)
|
|
31769
31898
|
}, void 0, false, {
|
|
31770
31899
|
fileName: _jsxFileName$8,
|
|
31771
|
-
lineNumber:
|
|
31900
|
+
lineNumber: 75,
|
|
31772
31901
|
columnNumber: 9
|
|
31773
31902
|
}, this));
|
|
31774
31903
|
}
|
|
@@ -31826,8 +31955,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31826
31955
|
i18n
|
|
31827
31956
|
} = useI18n();
|
|
31828
31957
|
const {
|
|
31829
|
-
subMenus
|
|
31830
|
-
isMobileOrTablet
|
|
31958
|
+
subMenus
|
|
31831
31959
|
} = useSelector((state) => state.headerInfo);
|
|
31832
31960
|
const {
|
|
31833
31961
|
user
|
|
@@ -31926,9 +32054,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31926
32054
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
31927
32055
|
"hd-submenu-opened": subMenuOpen
|
|
31928
32056
|
}),
|
|
31929
|
-
style: isMobileOrTablet ? {
|
|
31930
|
-
top: 50
|
|
31931
|
-
} : {},
|
|
31932
32057
|
children: children.map(({
|
|
31933
32058
|
href,
|
|
31934
32059
|
label: lbl
|
|
@@ -31945,22 +32070,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31945
32070
|
children: i18n.translate(lbl).fetch()
|
|
31946
32071
|
}, void 0, false, {
|
|
31947
32072
|
fileName: _jsxFileName$6,
|
|
31948
|
-
lineNumber:
|
|
32073
|
+
lineNumber: 54,
|
|
31949
32074
|
columnNumber: 17
|
|
31950
32075
|
}, this)
|
|
31951
32076
|
}, void 0, false, {
|
|
31952
32077
|
fileName: _jsxFileName$6,
|
|
31953
|
-
lineNumber:
|
|
32078
|
+
lineNumber: 53,
|
|
31954
32079
|
columnNumber: 15
|
|
31955
32080
|
}, this)
|
|
31956
32081
|
}, void 0, false, {
|
|
31957
32082
|
fileName: _jsxFileName$6,
|
|
31958
|
-
lineNumber:
|
|
32083
|
+
lineNumber: 52,
|
|
31959
32084
|
columnNumber: 13
|
|
31960
32085
|
}, this)
|
|
31961
32086
|
}, nanoid(), false, {
|
|
31962
32087
|
fileName: _jsxFileName$6,
|
|
31963
|
-
lineNumber:
|
|
32088
|
+
lineNumber: 51,
|
|
31964
32089
|
columnNumber: 11
|
|
31965
32090
|
}, this))
|
|
31966
32091
|
}, void 0, false, {
|
|
@@ -31986,8 +32111,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
31986
32111
|
languageSelector
|
|
31987
32112
|
} = useSelector((state) => state.titleBar);
|
|
31988
32113
|
const {
|
|
31989
|
-
subMenus
|
|
31990
|
-
isMobileOrTablet
|
|
32114
|
+
subMenus
|
|
31991
32115
|
} = useSelector((state) => state.headerInfo);
|
|
31992
32116
|
const dispatch = useDispatch();
|
|
31993
32117
|
require$$0.useEffect(() => {
|
|
@@ -32094,9 +32218,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
32094
32218
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
32095
32219
|
"hd-submenu-opened": subMenuOpen
|
|
32096
32220
|
}),
|
|
32097
|
-
style: isMobileOrTablet ? {
|
|
32098
|
-
top: 50
|
|
32099
|
-
} : {},
|
|
32100
32221
|
children: languageObjs.map(({
|
|
32101
32222
|
code,
|
|
32102
32223
|
name
|
|
@@ -32122,22 +32243,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
32122
32243
|
children: name
|
|
32123
32244
|
}, code, false, {
|
|
32124
32245
|
fileName: _jsxFileName$5,
|
|
32125
|
-
lineNumber:
|
|
32246
|
+
lineNumber: 88,
|
|
32126
32247
|
columnNumber: 17
|
|
32127
32248
|
}, this)
|
|
32128
32249
|
}, void 0, false, {
|
|
32129
32250
|
fileName: _jsxFileName$5,
|
|
32130
|
-
lineNumber:
|
|
32251
|
+
lineNumber: 87,
|
|
32131
32252
|
columnNumber: 15
|
|
32132
32253
|
}, this)
|
|
32133
32254
|
}, void 0, false, {
|
|
32134
32255
|
fileName: _jsxFileName$5,
|
|
32135
|
-
lineNumber:
|
|
32256
|
+
lineNumber: 86,
|
|
32136
32257
|
columnNumber: 13
|
|
32137
32258
|
}, this)
|
|
32138
32259
|
}, nanoid(), false, {
|
|
32139
32260
|
fileName: _jsxFileName$5,
|
|
32140
|
-
lineNumber:
|
|
32261
|
+
lineNumber: 85,
|
|
32141
32262
|
columnNumber: 11
|
|
32142
32263
|
}, this))
|
|
32143
32264
|
}, void 0, false, {
|
|
@@ -32257,6 +32378,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
32257
32378
|
});
|
|
32258
32379
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
32259
32380
|
className: "container-xxl",
|
|
32381
|
+
id: "hd-top-container",
|
|
32260
32382
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
32261
32383
|
className: "row align-items-center pb-lg-2",
|
|
32262
32384
|
id: "hd-header-container",
|
|
@@ -32276,10 +32398,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
32276
32398
|
fileName: _jsxFileName$3,
|
|
32277
32399
|
lineNumber: 32,
|
|
32278
32400
|
columnNumber: 9
|
|
32279
|
-
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Extranet, {}, void 0, false, {
|
|
32280
|
-
fileName: _jsxFileName$3,
|
|
32281
|
-
lineNumber: 33,
|
|
32282
|
-
columnNumber: 9
|
|
32283
32401
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(PropertySelector, {
|
|
32284
32402
|
handleHotelChange
|
|
32285
32403
|
}, void 0, false, {
|
|
@@ -33713,8 +33831,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33713
33831
|
} = useI18n();
|
|
33714
33832
|
const {
|
|
33715
33833
|
isOpen: headerIsOpen,
|
|
33716
|
-
subMenus
|
|
33717
|
-
isMobileOrTablet
|
|
33834
|
+
subMenus
|
|
33718
33835
|
} = useSelector((state) => state.headerInfo);
|
|
33719
33836
|
const {
|
|
33720
33837
|
items
|
|
@@ -33740,27 +33857,27 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33740
33857
|
className: "hd-icon hd-icon-lock"
|
|
33741
33858
|
}, void 0, false, {
|
|
33742
33859
|
fileName: _jsxFileName$2,
|
|
33743
|
-
lineNumber:
|
|
33860
|
+
lineNumber: 50,
|
|
33744
33861
|
columnNumber: 17
|
|
33745
33862
|
}, this)
|
|
33746
33863
|
}, void 0, false, {
|
|
33747
33864
|
fileName: _jsxFileName$2,
|
|
33748
|
-
lineNumber:
|
|
33865
|
+
lineNumber: 49,
|
|
33749
33866
|
columnNumber: 15
|
|
33750
33867
|
}, this)]
|
|
33751
33868
|
}, void 0, true, {
|
|
33752
33869
|
fileName: _jsxFileName$2,
|
|
33753
|
-
lineNumber:
|
|
33870
|
+
lineNumber: 47,
|
|
33754
33871
|
columnNumber: 13
|
|
33755
33872
|
}, this)
|
|
33756
33873
|
}, void 0, false, {
|
|
33757
33874
|
fileName: _jsxFileName$2,
|
|
33758
|
-
lineNumber:
|
|
33875
|
+
lineNumber: 46,
|
|
33759
33876
|
columnNumber: 11
|
|
33760
33877
|
}, this)
|
|
33761
33878
|
}, void 0, false, {
|
|
33762
33879
|
fileName: _jsxFileName$2,
|
|
33763
|
-
lineNumber:
|
|
33880
|
+
lineNumber: 45,
|
|
33764
33881
|
columnNumber: 9
|
|
33765
33882
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
33766
33883
|
className: cn("py-3", "list-unstyled", {
|
|
@@ -33780,22 +33897,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33780
33897
|
className: "hd-icon hd-icon-lock"
|
|
33781
33898
|
}, void 0, false, {
|
|
33782
33899
|
fileName: _jsxFileName$2,
|
|
33783
|
-
lineNumber:
|
|
33900
|
+
lineNumber: 67,
|
|
33784
33901
|
columnNumber: 19
|
|
33785
33902
|
}, this)
|
|
33786
33903
|
}, void 0, false, {
|
|
33787
33904
|
fileName: _jsxFileName$2,
|
|
33788
|
-
lineNumber:
|
|
33905
|
+
lineNumber: 66,
|
|
33789
33906
|
columnNumber: 17
|
|
33790
33907
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("p", {
|
|
33791
33908
|
children: ["This premium functionality has not been activated.", /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("br", {}, void 0, false, {
|
|
33792
33909
|
fileName: _jsxFileName$2,
|
|
33793
|
-
lineNumber:
|
|
33910
|
+
lineNumber: 71,
|
|
33794
33911
|
columnNumber: 19
|
|
33795
33912
|
}, this), "Please contact us to activate this feature."]
|
|
33796
33913
|
}, void 0, true, {
|
|
33797
33914
|
fileName: _jsxFileName$2,
|
|
33798
|
-
lineNumber:
|
|
33915
|
+
lineNumber: 69,
|
|
33799
33916
|
columnNumber: 17
|
|
33800
33917
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("a", {
|
|
33801
33918
|
className: "btn btn-sm btn-outline-primary",
|
|
@@ -33804,32 +33921,32 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33804
33921
|
children: "Learn more"
|
|
33805
33922
|
}, void 0, false, {
|
|
33806
33923
|
fileName: _jsxFileName$2,
|
|
33807
|
-
lineNumber:
|
|
33924
|
+
lineNumber: 74,
|
|
33808
33925
|
columnNumber: 17
|
|
33809
33926
|
}, this)]
|
|
33810
33927
|
}, void 0, true, {
|
|
33811
33928
|
fileName: _jsxFileName$2,
|
|
33812
|
-
lineNumber:
|
|
33929
|
+
lineNumber: 65,
|
|
33813
33930
|
columnNumber: 15
|
|
33814
33931
|
}, this)
|
|
33815
33932
|
}, void 0, false, {
|
|
33816
33933
|
fileName: _jsxFileName$2,
|
|
33817
|
-
lineNumber:
|
|
33934
|
+
lineNumber: 64,
|
|
33818
33935
|
columnNumber: 13
|
|
33819
33936
|
}, this)
|
|
33820
33937
|
}, void 0, false, {
|
|
33821
33938
|
fileName: _jsxFileName$2,
|
|
33822
|
-
lineNumber:
|
|
33939
|
+
lineNumber: 63,
|
|
33823
33940
|
columnNumber: 11
|
|
33824
33941
|
}, this)
|
|
33825
33942
|
}, void 0, false, {
|
|
33826
33943
|
fileName: _jsxFileName$2,
|
|
33827
|
-
lineNumber:
|
|
33944
|
+
lineNumber: 55,
|
|
33828
33945
|
columnNumber: 9
|
|
33829
33946
|
}, this)]
|
|
33830
33947
|
}, void 0, true, {
|
|
33831
33948
|
fileName: _jsxFileName$2,
|
|
33832
|
-
lineNumber:
|
|
33949
|
+
lineNumber: 39,
|
|
33833
33950
|
columnNumber: 7
|
|
33834
33951
|
}, this);
|
|
33835
33952
|
}
|
|
@@ -33854,19 +33971,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33854
33971
|
children: i18n.translate(label).fetch()
|
|
33855
33972
|
}, void 0, false, {
|
|
33856
33973
|
fileName: _jsxFileName$2,
|
|
33857
|
-
lineNumber:
|
|
33974
|
+
lineNumber: 101,
|
|
33858
33975
|
columnNumber: 15
|
|
33859
33976
|
}, this) : /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
33860
33977
|
className: "ps-lg-3 pe-3 py-2",
|
|
33861
33978
|
children: i18n.translate(label).fetch()
|
|
33862
33979
|
}, void 0, false, {
|
|
33863
33980
|
fileName: _jsxFileName$2,
|
|
33864
|
-
lineNumber:
|
|
33981
|
+
lineNumber: 111,
|
|
33865
33982
|
columnNumber: 15
|
|
33866
33983
|
}, this)
|
|
33867
33984
|
}, void 0, false, {
|
|
33868
33985
|
fileName: _jsxFileName$2,
|
|
33869
|
-
lineNumber:
|
|
33986
|
+
lineNumber: 99,
|
|
33870
33987
|
columnNumber: 11
|
|
33871
33988
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
33872
33989
|
className: "col-auto p-2 d-block d-lg-none",
|
|
@@ -33874,34 +33991,31 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33874
33991
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
33875
33992
|
}, void 0, false, {
|
|
33876
33993
|
fileName: _jsxFileName$2,
|
|
33877
|
-
lineNumber:
|
|
33994
|
+
lineNumber: 118,
|
|
33878
33995
|
columnNumber: 15
|
|
33879
33996
|
}, this)
|
|
33880
33997
|
}, void 0, false, {
|
|
33881
33998
|
fileName: _jsxFileName$2,
|
|
33882
|
-
lineNumber:
|
|
33999
|
+
lineNumber: 117,
|
|
33883
34000
|
columnNumber: 13
|
|
33884
34001
|
}, this)]
|
|
33885
34002
|
}, void 0, true, {
|
|
33886
34003
|
fileName: _jsxFileName$2,
|
|
33887
|
-
lineNumber:
|
|
34004
|
+
lineNumber: 98,
|
|
33888
34005
|
columnNumber: 9
|
|
33889
34006
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
33890
34007
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
33891
34008
|
"hd-submenu-opened": subMenuOpen
|
|
33892
34009
|
}),
|
|
33893
|
-
style: isMobileOrTablet ? {
|
|
33894
|
-
top: 50
|
|
33895
|
-
} : {},
|
|
33896
34010
|
children
|
|
33897
34011
|
}, void 0, false, {
|
|
33898
34012
|
fileName: _jsxFileName$2,
|
|
33899
|
-
lineNumber:
|
|
34013
|
+
lineNumber: 123,
|
|
33900
34014
|
columnNumber: 11
|
|
33901
34015
|
}, this)]
|
|
33902
34016
|
}, void 0, true, {
|
|
33903
34017
|
fileName: _jsxFileName$2,
|
|
33904
|
-
lineNumber:
|
|
34018
|
+
lineNumber: 90,
|
|
33905
34019
|
columnNumber: 7
|
|
33906
34020
|
}, this);
|
|
33907
34021
|
}
|
|
@@ -33916,17 +34030,17 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33916
34030
|
children: i18n.translate(group).fetch()
|
|
33917
34031
|
}, void 0, false, {
|
|
33918
34032
|
fileName: _jsxFileName$2,
|
|
33919
|
-
lineNumber:
|
|
34033
|
+
lineNumber: 140,
|
|
33920
34034
|
columnNumber: 15
|
|
33921
34035
|
}, this)
|
|
33922
34036
|
}, void 0, false, {
|
|
33923
34037
|
fileName: _jsxFileName$2,
|
|
33924
|
-
lineNumber:
|
|
34038
|
+
lineNumber: 139,
|
|
33925
34039
|
columnNumber: 13
|
|
33926
34040
|
}, this)
|
|
33927
34041
|
}, void 0, false, {
|
|
33928
34042
|
fileName: _jsxFileName$2,
|
|
33929
|
-
lineNumber:
|
|
34043
|
+
lineNumber: 138,
|
|
33930
34044
|
columnNumber: 11
|
|
33931
34045
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
33932
34046
|
onClick: () => {
|
|
@@ -33947,19 +34061,19 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33947
34061
|
children: i18n.translate(label).fetch()
|
|
33948
34062
|
}, void 0, false, {
|
|
33949
34063
|
fileName: _jsxFileName$2,
|
|
33950
|
-
lineNumber:
|
|
34064
|
+
lineNumber: 156,
|
|
33951
34065
|
columnNumber: 17
|
|
33952
34066
|
}, this) : /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
33953
34067
|
className: "px-lg-3 py-2 d-block",
|
|
33954
34068
|
children: i18n.translate(label).fetch()
|
|
33955
34069
|
}, void 0, false, {
|
|
33956
34070
|
fileName: _jsxFileName$2,
|
|
33957
|
-
lineNumber:
|
|
34071
|
+
lineNumber: 166,
|
|
33958
34072
|
columnNumber: 17
|
|
33959
34073
|
}, this)
|
|
33960
34074
|
}, void 0, false, {
|
|
33961
34075
|
fileName: _jsxFileName$2,
|
|
33962
|
-
lineNumber:
|
|
34076
|
+
lineNumber: 154,
|
|
33963
34077
|
columnNumber: 13
|
|
33964
34078
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
33965
34079
|
className: "col-auto px-0",
|
|
@@ -33969,36 +34083,36 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
33969
34083
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
33970
34084
|
}, void 0, false, {
|
|
33971
34085
|
fileName: _jsxFileName$2,
|
|
33972
|
-
lineNumber:
|
|
34086
|
+
lineNumber: 174,
|
|
33973
34087
|
columnNumber: 19
|
|
33974
34088
|
}, this)
|
|
33975
34089
|
}, void 0, false, {
|
|
33976
34090
|
fileName: _jsxFileName$2,
|
|
33977
|
-
lineNumber:
|
|
34091
|
+
lineNumber: 173,
|
|
33978
34092
|
columnNumber: 17
|
|
33979
34093
|
}, this)
|
|
33980
34094
|
}, void 0, false, {
|
|
33981
34095
|
fileName: _jsxFileName$2,
|
|
33982
|
-
lineNumber:
|
|
34096
|
+
lineNumber: 172,
|
|
33983
34097
|
columnNumber: 15
|
|
33984
34098
|
}, this)]
|
|
33985
34099
|
}, void 0, true, {
|
|
33986
34100
|
fileName: _jsxFileName$2,
|
|
33987
|
-
lineNumber:
|
|
34101
|
+
lineNumber: 153,
|
|
33988
34102
|
columnNumber: 11
|
|
33989
34103
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
33990
|
-
className: cn("ps-3", "ps-lg-0", "list-unstyled", "hd-nav-third-level", {
|
|
34104
|
+
className: cn("py-3", "ps-3", "ps-lg-0", "list-unstyled", "hd-nav-third-level", {
|
|
33991
34105
|
"hd-submenu-opened": subMenuOpen
|
|
33992
34106
|
}),
|
|
33993
34107
|
children
|
|
33994
34108
|
}, void 0, false, {
|
|
33995
34109
|
fileName: _jsxFileName$2,
|
|
33996
|
-
lineNumber:
|
|
34110
|
+
lineNumber: 180,
|
|
33997
34111
|
columnNumber: 13
|
|
33998
34112
|
}, this)]
|
|
33999
34113
|
}, void 0, true, {
|
|
34000
34114
|
fileName: _jsxFileName$2,
|
|
34001
|
-
lineNumber:
|
|
34115
|
+
lineNumber: 146,
|
|
34002
34116
|
columnNumber: 9
|
|
34003
34117
|
}, this)]
|
|
34004
34118
|
}, void 0, true);
|
|
@@ -34018,22 +34132,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
34018
34132
|
children: i18n.translate(label).fetch()
|
|
34019
34133
|
}, void 0, false, {
|
|
34020
34134
|
fileName: _jsxFileName$2,
|
|
34021
|
-
lineNumber:
|
|
34135
|
+
lineNumber: 204,
|
|
34022
34136
|
columnNumber: 13
|
|
34023
34137
|
}, this)
|
|
34024
34138
|
}, void 0, false, {
|
|
34025
34139
|
fileName: _jsxFileName$2,
|
|
34026
|
-
lineNumber:
|
|
34140
|
+
lineNumber: 203,
|
|
34027
34141
|
columnNumber: 11
|
|
34028
34142
|
}, this)
|
|
34029
34143
|
}, void 0, false, {
|
|
34030
34144
|
fileName: _jsxFileName$2,
|
|
34031
|
-
lineNumber:
|
|
34145
|
+
lineNumber: 202,
|
|
34032
34146
|
columnNumber: 9
|
|
34033
34147
|
}, this)
|
|
34034
34148
|
}, void 0, false, {
|
|
34035
34149
|
fileName: _jsxFileName$2,
|
|
34036
|
-
lineNumber:
|
|
34150
|
+
lineNumber: 201,
|
|
34037
34151
|
columnNumber: 7
|
|
34038
34152
|
}, this);
|
|
34039
34153
|
}
|
|
@@ -34092,12 +34206,12 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
34092
34206
|
level: level + 1
|
|
34093
34207
|
}, void 0, false, {
|
|
34094
34208
|
fileName: _jsxFileName$2,
|
|
34095
|
-
lineNumber:
|
|
34209
|
+
lineNumber: 265,
|
|
34096
34210
|
columnNumber: 9
|
|
34097
34211
|
}, this)
|
|
34098
34212
|
}, item.id, false, {
|
|
34099
34213
|
fileName: _jsxFileName$2,
|
|
34100
|
-
lineNumber:
|
|
34214
|
+
lineNumber: 257,
|
|
34101
34215
|
columnNumber: 7
|
|
34102
34216
|
}, this);
|
|
34103
34217
|
});
|
|
@@ -34186,22 +34300,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
34186
34300
|
menuItems: items
|
|
34187
34301
|
}, void 0, false, {
|
|
34188
34302
|
fileName: _jsxFileName$2,
|
|
34189
|
-
lineNumber:
|
|
34303
|
+
lineNumber: 341,
|
|
34190
34304
|
columnNumber: 15
|
|
34191
34305
|
}, this)
|
|
34192
34306
|
}, void 0, false, {
|
|
34193
34307
|
fileName: _jsxFileName$2,
|
|
34194
|
-
lineNumber:
|
|
34308
|
+
lineNumber: 337,
|
|
34195
34309
|
columnNumber: 13
|
|
34196
34310
|
}, this)
|
|
34197
34311
|
}, void 0, false, {
|
|
34198
34312
|
fileName: _jsxFileName$2,
|
|
34199
|
-
lineNumber:
|
|
34313
|
+
lineNumber: 336,
|
|
34200
34314
|
columnNumber: 11
|
|
34201
34315
|
}, this)
|
|
34202
34316
|
}, void 0, false, {
|
|
34203
34317
|
fileName: _jsxFileName$2,
|
|
34204
|
-
lineNumber:
|
|
34318
|
+
lineNumber: 331,
|
|
34205
34319
|
columnNumber: 9
|
|
34206
34320
|
}, this));
|
|
34207
34321
|
}
|
|
@@ -34286,6 +34400,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
34286
34400
|
subMenus,
|
|
34287
34401
|
isMobileOrTablet
|
|
34288
34402
|
} = useSelector((state) => state.headerInfo);
|
|
34403
|
+
const {
|
|
34404
|
+
showNotifications
|
|
34405
|
+
} = useSelector((state) => state.notifications);
|
|
34289
34406
|
const headerRef = require$$0.useRef(null);
|
|
34290
34407
|
const dispatch = useDispatch();
|
|
34291
34408
|
require$$0.useEffect(() => {
|
|
@@ -34342,32 +34459,34 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
34342
34459
|
"hd-menu-opened": headerIsOpen,
|
|
34343
34460
|
"hd-overflow-hidden": subMenus.length > 0
|
|
34344
34461
|
}),
|
|
34345
|
-
style: __spreadProps(__spreadValues({}, isMobileOrTablet && !headerIsOpen && {
|
|
34462
|
+
style: __spreadProps(__spreadValues(__spreadValues({}, isMobileOrTablet && !headerIsOpen && {
|
|
34346
34463
|
overflow: "hidden"
|
|
34464
|
+
}), showNotifications && {
|
|
34465
|
+
overflow: "visible"
|
|
34347
34466
|
}), {
|
|
34348
34467
|
maxWidth: "none"
|
|
34349
34468
|
}),
|
|
34350
34469
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(TitleBar, __spreadValues({}, props), void 0, false, {
|
|
34351
34470
|
fileName: _jsxFileName,
|
|
34352
|
-
lineNumber:
|
|
34471
|
+
lineNumber: 90,
|
|
34353
34472
|
columnNumber: 9
|
|
34354
34473
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(MenuBar, {}, void 0, false, {
|
|
34355
34474
|
fileName: _jsxFileName,
|
|
34356
|
-
lineNumber:
|
|
34475
|
+
lineNumber: 91,
|
|
34357
34476
|
columnNumber: 9
|
|
34358
34477
|
}, this)]
|
|
34359
34478
|
}, void 0, true, {
|
|
34360
34479
|
fileName: _jsxFileName,
|
|
34361
|
-
lineNumber:
|
|
34480
|
+
lineNumber: 77,
|
|
34362
34481
|
columnNumber: 7
|
|
34363
34482
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Breadcrumb, {}, void 0, false, {
|
|
34364
34483
|
fileName: _jsxFileName,
|
|
34365
|
-
lineNumber:
|
|
34484
|
+
lineNumber: 93,
|
|
34366
34485
|
columnNumber: 7
|
|
34367
34486
|
}, this)]
|
|
34368
34487
|
}, void 0, true, {
|
|
34369
34488
|
fileName: _jsxFileName,
|
|
34370
|
-
lineNumber:
|
|
34489
|
+
lineNumber: 76,
|
|
34371
34490
|
columnNumber: 5
|
|
34372
34491
|
}, this);
|
|
34373
34492
|
}
|
|
@@ -34390,7 +34509,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
34390
34509
|
function renderHeader(element, props) {
|
|
34391
34510
|
reactDom.render(/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Wrapped, __spreadValues({}, props), void 0, false, {
|
|
34392
34511
|
fileName: _jsxFileName,
|
|
34393
|
-
lineNumber:
|
|
34512
|
+
lineNumber: 118,
|
|
34394
34513
|
columnNumber: 10
|
|
34395
34514
|
}, this), element);
|
|
34396
34515
|
}
|