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
|
@@ -2792,9 +2792,9 @@ try {
|
|
|
2792
2792
|
DOMException.prototype = Object.create(Error.prototype);
|
|
2793
2793
|
DOMException.prototype.constructor = DOMException;
|
|
2794
2794
|
}
|
|
2795
|
-
function fetch$1(input,
|
|
2795
|
+
function fetch$1(input, init2) {
|
|
2796
2796
|
return new Promise(function(resolve2, reject) {
|
|
2797
|
-
var request = new Request(input,
|
|
2797
|
+
var request = new Request(input, init2);
|
|
2798
2798
|
if (request.signal && request.signal.aborted) {
|
|
2799
2799
|
return reject(new DOMException("Aborted", "AbortError"));
|
|
2800
2800
|
}
|
|
@@ -2849,9 +2849,9 @@ function fetch$1(input, init) {
|
|
|
2849
2849
|
xhr.responseType = "arraybuffer";
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
|
-
if (
|
|
2853
|
-
Object.getOwnPropertyNames(
|
|
2854
|
-
xhr.setRequestHeader(name, normalizeValue(
|
|
2852
|
+
if (init2 && typeof init2.headers === "object" && !(init2.headers instanceof Headers)) {
|
|
2853
|
+
Object.getOwnPropertyNames(init2.headers).forEach(function(name) {
|
|
2854
|
+
xhr.setRequestHeader(name, normalizeValue(init2.headers[name]));
|
|
2855
2855
|
});
|
|
2856
2856
|
} else {
|
|
2857
2857
|
request.headers.forEach(function(value, name) {
|
|
@@ -8464,7 +8464,7 @@ function isObject$j(value) {
|
|
|
8464
8464
|
function isObjectLike$6(value) {
|
|
8465
8465
|
return !!value && typeof value == "object";
|
|
8466
8466
|
}
|
|
8467
|
-
var assign$
|
|
8467
|
+
var assign$4 = createAssigner(function(object, source) {
|
|
8468
8468
|
if (nonEnumShadows || isPrototype$2(source) || isArrayLike$2(source)) {
|
|
8469
8469
|
copyObject(source, keys$4(source), object);
|
|
8470
8470
|
return;
|
|
@@ -8478,7 +8478,7 @@ var assign$3 = createAssigner(function(object, source) {
|
|
|
8478
8478
|
function keys$4(object) {
|
|
8479
8479
|
return isArrayLike$2(object) ? arrayLikeKeys$2(object) : baseKeys$2(object);
|
|
8480
8480
|
}
|
|
8481
|
-
var lodash_assign = assign$
|
|
8481
|
+
var lodash_assign = assign$4;
|
|
8482
8482
|
var lodash_find = { exports: {} };
|
|
8483
8483
|
(function(module, exports) {
|
|
8484
8484
|
var LARGE_ARRAY_SIZE2 = 200;
|
|
@@ -14102,7 +14102,7 @@ function makeServer() {
|
|
|
14102
14102
|
{
|
|
14103
14103
|
title: "ES Ipsum Dolor Sem Ligula",
|
|
14104
14104
|
url: "#",
|
|
14105
|
-
date: "
|
|
14105
|
+
date: "2023-01-05"
|
|
14106
14106
|
}
|
|
14107
14107
|
]
|
|
14108
14108
|
},
|
|
@@ -14447,7 +14447,7 @@ checkPropTypes$1.resetWarningCache = function() {
|
|
|
14447
14447
|
};
|
|
14448
14448
|
var checkPropTypes_1 = checkPropTypes$1;
|
|
14449
14449
|
var ReactIs$1 = reactIs$2.exports;
|
|
14450
|
-
var assign$
|
|
14450
|
+
var assign$3 = objectAssign$1;
|
|
14451
14451
|
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
14452
14452
|
var has$1 = has$3;
|
|
14453
14453
|
var checkPropTypes = checkPropTypes_1;
|
|
@@ -14738,7 +14738,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
14738
14738
|
if (propType !== "object") {
|
|
14739
14739
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
14740
14740
|
}
|
|
14741
|
-
var allKeys = assign$
|
|
14741
|
+
var allKeys = assign$3({}, props[propName], shapeTypes);
|
|
14742
14742
|
for (var key in allKeys) {
|
|
14743
14743
|
var checker = shapeTypes[key];
|
|
14744
14744
|
if (has$1(shapeTypes, key) && typeof checker !== "function") {
|
|
@@ -15155,9 +15155,9 @@ var reactJsxDevRuntime_development = {};
|
|
|
15155
15155
|
case REACT_LAZY_TYPE: {
|
|
15156
15156
|
var lazyComponent = type;
|
|
15157
15157
|
var payload = lazyComponent._payload;
|
|
15158
|
-
var
|
|
15158
|
+
var init2 = lazyComponent._init;
|
|
15159
15159
|
try {
|
|
15160
|
-
return getComponentName(
|
|
15160
|
+
return getComponentName(init2(payload));
|
|
15161
15161
|
} catch (x2) {
|
|
15162
15162
|
return null;
|
|
15163
15163
|
}
|
|
@@ -15403,9 +15403,9 @@ var reactJsxDevRuntime_development = {};
|
|
|
15403
15403
|
case REACT_LAZY_TYPE: {
|
|
15404
15404
|
var lazyComponent = type;
|
|
15405
15405
|
var payload = lazyComponent._payload;
|
|
15406
|
-
var
|
|
15406
|
+
var init2 = lazyComponent._init;
|
|
15407
15407
|
try {
|
|
15408
|
-
return describeUnknownElementTypeFrameInDEV(
|
|
15408
|
+
return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn);
|
|
15409
15409
|
} catch (x2) {
|
|
15410
15410
|
}
|
|
15411
15411
|
}
|
|
@@ -15831,7 +15831,7 @@ var reactJsxDevRuntime_development = {};
|
|
|
15831
15831
|
{
|
|
15832
15832
|
jsxDevRuntime.exports = reactJsxDevRuntime_development;
|
|
15833
15833
|
}
|
|
15834
|
-
var _jsxFileName$
|
|
15834
|
+
var _jsxFileName$e = "/Users/patrick/git/ba-js-common-header/node_modules/react-redux/es/components/Provider.js";
|
|
15835
15835
|
function Provider(_ref) {
|
|
15836
15836
|
var store = _ref.store, context = _ref.context, children = _ref.children;
|
|
15837
15837
|
var contextValue = useMemo(function() {
|
|
@@ -15861,7 +15861,7 @@ function Provider(_ref) {
|
|
|
15861
15861
|
value: contextValue,
|
|
15862
15862
|
children
|
|
15863
15863
|
}, void 0, false, {
|
|
15864
|
-
fileName: _jsxFileName$
|
|
15864
|
+
fileName: _jsxFileName$e,
|
|
15865
15865
|
lineNumber: 36,
|
|
15866
15866
|
columnNumber: 23
|
|
15867
15867
|
}, this);
|
|
@@ -18006,7 +18006,8 @@ const userInfoSlice = createSlice({
|
|
|
18006
18006
|
username: "",
|
|
18007
18007
|
hotelId: 0,
|
|
18008
18008
|
guideId: 0,
|
|
18009
|
-
hotelGroupId: 0
|
|
18009
|
+
hotelGroupId: 0,
|
|
18010
|
+
group: ""
|
|
18010
18011
|
},
|
|
18011
18012
|
reducers: {
|
|
18012
18013
|
setUserInfo: (state, action) => action.payload
|
|
@@ -18467,12 +18468,20 @@ var reduxLogger = { exports: {} };
|
|
|
18467
18468
|
var logger = /* @__PURE__ */ getDefaultExportFromCjs(reduxLogger.exports);
|
|
18468
18469
|
const notificationsSlice = createSlice({
|
|
18469
18470
|
name: "notifications",
|
|
18470
|
-
initialState: {
|
|
18471
|
+
initialState: {
|
|
18472
|
+
notifications: {},
|
|
18473
|
+
showNotifications: false
|
|
18474
|
+
},
|
|
18471
18475
|
reducers: {
|
|
18472
|
-
setNotifications: (state, action) =>
|
|
18476
|
+
setNotifications: (state, action) => __spreadProps(__spreadValues({}, state), {
|
|
18477
|
+
notifications: action.payload
|
|
18478
|
+
}),
|
|
18479
|
+
setShowNotifications: (state, action) => __spreadProps(__spreadValues({}, state), {
|
|
18480
|
+
showNotifications: action.payload
|
|
18481
|
+
})
|
|
18473
18482
|
}
|
|
18474
18483
|
});
|
|
18475
|
-
const { setNotifications } = notificationsSlice.actions;
|
|
18484
|
+
const { setNotifications, setShowNotifications } = notificationsSlice.actions;
|
|
18476
18485
|
var notificationsReducer = notificationsSlice.reducer;
|
|
18477
18486
|
const hotelsSlice = createSlice({
|
|
18478
18487
|
name: "hotels",
|
|
@@ -18508,18 +18517,18 @@ var store$4 = configureStore({
|
|
|
18508
18517
|
},
|
|
18509
18518
|
middleware: (getDefaultMiddleware2) => getDefaultMiddleware2().concat(devMiddlewares)
|
|
18510
18519
|
});
|
|
18511
|
-
var _jsxFileName$
|
|
18520
|
+
var _jsxFileName$d = "/Users/patrick/git/ba-js-common-header/src/hocs/withReduxProvider.jsx";
|
|
18512
18521
|
function withReduxProvider(Component2) {
|
|
18513
18522
|
return function(props) {
|
|
18514
18523
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Provider, {
|
|
18515
18524
|
store: store$4,
|
|
18516
18525
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Component2, __spreadValues({}, props), void 0, false, {
|
|
18517
|
-
fileName: _jsxFileName$
|
|
18526
|
+
fileName: _jsxFileName$d,
|
|
18518
18527
|
lineNumber: 8,
|
|
18519
18528
|
columnNumber: 9
|
|
18520
18529
|
}, this)
|
|
18521
18530
|
}, void 0, false, {
|
|
18522
|
-
fileName: _jsxFileName$
|
|
18531
|
+
fileName: _jsxFileName$d,
|
|
18523
18532
|
lineNumber: 7,
|
|
18524
18533
|
columnNumber: 7
|
|
18525
18534
|
}, this);
|
|
@@ -19582,7 +19591,7 @@ let to2;
|
|
|
19582
19591
|
let colors$1 = null;
|
|
19583
19592
|
let skipAnimation = false;
|
|
19584
19593
|
let willAdvance = noop$2;
|
|
19585
|
-
const assign$
|
|
19594
|
+
const assign$2 = (globals2) => {
|
|
19586
19595
|
if (globals2.to)
|
|
19587
19596
|
to2 = globals2.to;
|
|
19588
19597
|
if (globals2.now)
|
|
@@ -19619,7 +19628,7 @@ var globals = /* @__PURE__ */ Object.freeze({
|
|
|
19619
19628
|
get willAdvance() {
|
|
19620
19629
|
return willAdvance;
|
|
19621
19630
|
},
|
|
19622
|
-
assign: assign$
|
|
19631
|
+
assign: assign$2
|
|
19623
19632
|
});
|
|
19624
19633
|
const startQueue = /* @__PURE__ */ new Set();
|
|
19625
19634
|
let currentFrame = [];
|
|
@@ -22072,8 +22081,8 @@ const SpringContext = (_ref) => {
|
|
|
22072
22081
|
const ctx = makeContext(SpringContext, {});
|
|
22073
22082
|
SpringContext.Provider = ctx.Provider;
|
|
22074
22083
|
SpringContext.Consumer = ctx.Consumer;
|
|
22075
|
-
function makeContext(target,
|
|
22076
|
-
Object.assign(target, require$$0.createContext(
|
|
22084
|
+
function makeContext(target, init2) {
|
|
22085
|
+
Object.assign(target, require$$0.createContext(init2));
|
|
22077
22086
|
target.Provider._context = target;
|
|
22078
22087
|
target.Consumer._context = target;
|
|
22079
22088
|
return target;
|
|
@@ -22803,7 +22812,7 @@ const host = createHost(primitives, {
|
|
|
22803
22812
|
}
|
|
22804
22813
|
});
|
|
22805
22814
|
const animated = host.animated;
|
|
22806
|
-
var _jsxFileName$
|
|
22815
|
+
var _jsxFileName$c = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Logo.jsx";
|
|
22807
22816
|
function Logo() {
|
|
22808
22817
|
const {
|
|
22809
22818
|
product
|
|
@@ -22838,27 +22847,27 @@ function Logo() {
|
|
|
22838
22847
|
href,
|
|
22839
22848
|
style: styles,
|
|
22840
22849
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
22841
|
-
className: "hd-brand",
|
|
22850
|
+
className: "me-1 hd-brand",
|
|
22842
22851
|
children: "Bookassist"
|
|
22843
22852
|
}, void 0, false, {
|
|
22844
|
-
fileName: _jsxFileName$
|
|
22853
|
+
fileName: _jsxFileName$c,
|
|
22845
22854
|
lineNumber: 26,
|
|
22846
22855
|
columnNumber: 15
|
|
22847
22856
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("strong", {
|
|
22848
22857
|
className: "hd-product",
|
|
22849
22858
|
children: name
|
|
22850
22859
|
}, void 0, false, {
|
|
22851
|
-
fileName: _jsxFileName$
|
|
22860
|
+
fileName: _jsxFileName$c,
|
|
22852
22861
|
lineNumber: 27,
|
|
22853
22862
|
columnNumber: 15
|
|
22854
22863
|
}, this)]
|
|
22855
22864
|
}, void 0, true, {
|
|
22856
|
-
fileName: _jsxFileName$
|
|
22865
|
+
fileName: _jsxFileName$c,
|
|
22857
22866
|
lineNumber: 25,
|
|
22858
22867
|
columnNumber: 13
|
|
22859
22868
|
}, this))
|
|
22860
22869
|
}, void 0, false, {
|
|
22861
|
-
fileName: _jsxFileName$
|
|
22870
|
+
fileName: _jsxFileName$c,
|
|
22862
22871
|
lineNumber: 18,
|
|
22863
22872
|
columnNumber: 5
|
|
22864
22873
|
}, this);
|
|
@@ -22876,6 +22885,93 @@ let nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce(
|
|
|
22876
22885
|
}
|
|
22877
22886
|
return id2;
|
|
22878
22887
|
}, "");
|
|
22888
|
+
/*! js-cookie v3.0.1 | MIT */
|
|
22889
|
+
function assign$1(target) {
|
|
22890
|
+
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
22891
|
+
var source = arguments[i2];
|
|
22892
|
+
for (var key in source) {
|
|
22893
|
+
target[key] = source[key];
|
|
22894
|
+
}
|
|
22895
|
+
}
|
|
22896
|
+
return target;
|
|
22897
|
+
}
|
|
22898
|
+
var defaultConverter = {
|
|
22899
|
+
read: function(value) {
|
|
22900
|
+
if (value[0] === '"') {
|
|
22901
|
+
value = value.slice(1, -1);
|
|
22902
|
+
}
|
|
22903
|
+
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
22904
|
+
},
|
|
22905
|
+
write: function(value) {
|
|
22906
|
+
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
22907
|
+
}
|
|
22908
|
+
};
|
|
22909
|
+
function init(converter, defaultAttributes) {
|
|
22910
|
+
function set2(key, value, attributes) {
|
|
22911
|
+
if (typeof document === "undefined") {
|
|
22912
|
+
return;
|
|
22913
|
+
}
|
|
22914
|
+
attributes = assign$1({}, defaultAttributes, attributes);
|
|
22915
|
+
if (typeof attributes.expires === "number") {
|
|
22916
|
+
attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
|
22917
|
+
}
|
|
22918
|
+
if (attributes.expires) {
|
|
22919
|
+
attributes.expires = attributes.expires.toUTCString();
|
|
22920
|
+
}
|
|
22921
|
+
key = encodeURIComponent(key).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
22922
|
+
var stringifiedAttributes = "";
|
|
22923
|
+
for (var attributeName in attributes) {
|
|
22924
|
+
if (!attributes[attributeName]) {
|
|
22925
|
+
continue;
|
|
22926
|
+
}
|
|
22927
|
+
stringifiedAttributes += "; " + attributeName;
|
|
22928
|
+
if (attributes[attributeName] === true) {
|
|
22929
|
+
continue;
|
|
22930
|
+
}
|
|
22931
|
+
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
|
22932
|
+
}
|
|
22933
|
+
return document.cookie = key + "=" + converter.write(value, key) + stringifiedAttributes;
|
|
22934
|
+
}
|
|
22935
|
+
function get4(key) {
|
|
22936
|
+
if (typeof document === "undefined" || arguments.length && !key) {
|
|
22937
|
+
return;
|
|
22938
|
+
}
|
|
22939
|
+
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
|
22940
|
+
var jar = {};
|
|
22941
|
+
for (var i2 = 0; i2 < cookies.length; i2++) {
|
|
22942
|
+
var parts = cookies[i2].split("=");
|
|
22943
|
+
var value = parts.slice(1).join("=");
|
|
22944
|
+
try {
|
|
22945
|
+
var foundKey = decodeURIComponent(parts[0]);
|
|
22946
|
+
jar[foundKey] = converter.read(value, foundKey);
|
|
22947
|
+
if (key === foundKey) {
|
|
22948
|
+
break;
|
|
22949
|
+
}
|
|
22950
|
+
} catch (e2) {
|
|
22951
|
+
}
|
|
22952
|
+
}
|
|
22953
|
+
return key ? jar[key] : jar;
|
|
22954
|
+
}
|
|
22955
|
+
return Object.create({
|
|
22956
|
+
set: set2,
|
|
22957
|
+
get: get4,
|
|
22958
|
+
remove: function(key, attributes) {
|
|
22959
|
+
set2(key, "", assign$1({}, attributes, {
|
|
22960
|
+
expires: -1
|
|
22961
|
+
}));
|
|
22962
|
+
},
|
|
22963
|
+
withAttributes: function(attributes) {
|
|
22964
|
+
return init(this.converter, assign$1({}, this.attributes, attributes));
|
|
22965
|
+
},
|
|
22966
|
+
withConverter: function(converter2) {
|
|
22967
|
+
return init(assign$1({}, this.converter, converter2), this.attributes);
|
|
22968
|
+
}
|
|
22969
|
+
}, {
|
|
22970
|
+
attributes: { value: Object.freeze(defaultAttributes) },
|
|
22971
|
+
converter: { value: Object.freeze(converter) }
|
|
22972
|
+
});
|
|
22973
|
+
}
|
|
22974
|
+
var api = init(defaultConverter, { path: "/" });
|
|
22879
22975
|
var commonThin = {};
|
|
22880
22976
|
var check = function(it) {
|
|
22881
22977
|
return it && it.Math == Math && it;
|
|
@@ -24463,9 +24559,9 @@ var enforceInternalState = internalState.enforce;
|
|
|
24463
24559
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
24464
24560
|
var IS_IE11 = !global$7.ActiveXObject && "ActiveXObject" in global$7;
|
|
24465
24561
|
var InternalWeakMap;
|
|
24466
|
-
var wrapper = function(
|
|
24562
|
+
var wrapper = function(init2) {
|
|
24467
24563
|
return function WeakMap2() {
|
|
24468
|
-
return
|
|
24564
|
+
return init2(this, arguments.length ? arguments[0] : void 0);
|
|
24469
24565
|
};
|
|
24470
24566
|
};
|
|
24471
24567
|
var $WeakMap = collection("WeakMap", wrapper, collectionWeak);
|
|
@@ -25491,11 +25587,11 @@ function _extends$q() {
|
|
|
25491
25587
|
function ArrowAngleDown(props) {
|
|
25492
25588
|
return /* @__PURE__ */ React$q.createElement("svg", _extends$q({
|
|
25493
25589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25590
|
+
fill: "currentColor",
|
|
25494
25591
|
viewBox: "0 0 100 100",
|
|
25495
25592
|
width: "1em",
|
|
25496
25593
|
height: "1em"
|
|
25497
25594
|
}, props), /* @__PURE__ */ React$q.createElement("path", {
|
|
25498
|
-
fill: "currentColor",
|
|
25499
25595
|
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"
|
|
25500
25596
|
}));
|
|
25501
25597
|
}
|
|
@@ -25573,11 +25669,11 @@ function _extends$p() {
|
|
|
25573
25669
|
function ArrowAngleLeft(props) {
|
|
25574
25670
|
return /* @__PURE__ */ React$p.createElement("svg", _extends$p({
|
|
25575
25671
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25672
|
+
fill: "currentColor",
|
|
25576
25673
|
viewBox: "0 0 100 100",
|
|
25577
25674
|
width: "1em",
|
|
25578
25675
|
height: "1em"
|
|
25579
25676
|
}, props), /* @__PURE__ */ React$p.createElement("path", {
|
|
25580
|
-
fill: "currentColor",
|
|
25581
25677
|
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"
|
|
25582
25678
|
}));
|
|
25583
25679
|
}
|
|
@@ -25655,11 +25751,11 @@ function _extends$o() {
|
|
|
25655
25751
|
function ArrowAngleRight(props) {
|
|
25656
25752
|
return /* @__PURE__ */ React$o.createElement("svg", _extends$o({
|
|
25657
25753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25754
|
+
fill: "currentColor",
|
|
25658
25755
|
viewBox: "0 0 100 100",
|
|
25659
25756
|
width: "1em",
|
|
25660
25757
|
height: "1em"
|
|
25661
25758
|
}, props), /* @__PURE__ */ React$o.createElement("path", {
|
|
25662
|
-
fill: "currentColor",
|
|
25663
25759
|
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"
|
|
25664
25760
|
}));
|
|
25665
25761
|
}
|
|
@@ -25737,11 +25833,11 @@ function _extends$n() {
|
|
|
25737
25833
|
function ArrowAngleUp(props) {
|
|
25738
25834
|
return /* @__PURE__ */ React$n.createElement("svg", _extends$n({
|
|
25739
25835
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25836
|
+
fill: "currentColor",
|
|
25740
25837
|
viewBox: "0 0 100 100",
|
|
25741
25838
|
width: "1em",
|
|
25742
25839
|
height: "1em"
|
|
25743
25840
|
}, props), /* @__PURE__ */ React$n.createElement("path", {
|
|
25744
|
-
fill: "currentColor",
|
|
25745
25841
|
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"
|
|
25746
25842
|
}));
|
|
25747
25843
|
}
|
|
@@ -25819,11 +25915,11 @@ function _extends$m() {
|
|
|
25819
25915
|
function ArrowDown(props) {
|
|
25820
25916
|
return /* @__PURE__ */ React$m.createElement("svg", _extends$m({
|
|
25821
25917
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25918
|
+
fill: "currentColor",
|
|
25822
25919
|
viewBox: "0 0 100 100",
|
|
25823
25920
|
width: "1em",
|
|
25824
25921
|
height: "1em"
|
|
25825
25922
|
}, props), /* @__PURE__ */ React$m.createElement("path", {
|
|
25826
|
-
fill: "currentColor",
|
|
25827
25923
|
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"
|
|
25828
25924
|
}));
|
|
25829
25925
|
}
|
|
@@ -25901,11 +25997,11 @@ function _extends$l() {
|
|
|
25901
25997
|
function ArrowLeft(props) {
|
|
25902
25998
|
return /* @__PURE__ */ React$l.createElement("svg", _extends$l({
|
|
25903
25999
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26000
|
+
fill: "currentColor",
|
|
25904
26001
|
viewBox: "0 0 100 100",
|
|
25905
26002
|
width: "1em",
|
|
25906
26003
|
height: "1em"
|
|
25907
26004
|
}, props), /* @__PURE__ */ React$l.createElement("path", {
|
|
25908
|
-
fill: "currentColor",
|
|
25909
26005
|
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"
|
|
25910
26006
|
}));
|
|
25911
26007
|
}
|
|
@@ -25983,11 +26079,11 @@ function _extends$k() {
|
|
|
25983
26079
|
function ArrowRight(props) {
|
|
25984
26080
|
return /* @__PURE__ */ React$k.createElement("svg", _extends$k({
|
|
25985
26081
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26082
|
+
fill: "currentColor",
|
|
25986
26083
|
viewBox: "0 0 100 100",
|
|
25987
26084
|
width: "1em",
|
|
25988
26085
|
height: "1em"
|
|
25989
26086
|
}, props), /* @__PURE__ */ React$k.createElement("path", {
|
|
25990
|
-
fill: "currentColor",
|
|
25991
26087
|
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"
|
|
25992
26088
|
}));
|
|
25993
26089
|
}
|
|
@@ -26065,11 +26161,11 @@ function _extends$j() {
|
|
|
26065
26161
|
function ArrowUp(props) {
|
|
26066
26162
|
return /* @__PURE__ */ React$j.createElement("svg", _extends$j({
|
|
26067
26163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26164
|
+
fill: "currentColor",
|
|
26068
26165
|
viewBox: "0 0 100 100",
|
|
26069
26166
|
width: "1em",
|
|
26070
26167
|
height: "1em"
|
|
26071
26168
|
}, props), /* @__PURE__ */ React$j.createElement("path", {
|
|
26072
|
-
fill: "currentColor",
|
|
26073
26169
|
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"
|
|
26074
26170
|
}));
|
|
26075
26171
|
}
|
|
@@ -26147,11 +26243,11 @@ function _extends$i() {
|
|
|
26147
26243
|
function Bell(props) {
|
|
26148
26244
|
return /* @__PURE__ */ React$i.createElement("svg", _extends$i({
|
|
26149
26245
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26246
|
+
fill: "currentColor",
|
|
26150
26247
|
viewBox: "0 0 100 100",
|
|
26151
26248
|
width: "1em",
|
|
26152
26249
|
height: "1em"
|
|
26153
26250
|
}, props), /* @__PURE__ */ React$i.createElement("path", {
|
|
26154
|
-
fill: "currentColor",
|
|
26155
26251
|
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"
|
|
26156
26252
|
}));
|
|
26157
26253
|
}
|
|
@@ -26229,11 +26325,11 @@ function _extends$h() {
|
|
|
26229
26325
|
function Close(props) {
|
|
26230
26326
|
return /* @__PURE__ */ React$h.createElement("svg", _extends$h({
|
|
26231
26327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26328
|
+
fill: "currentColor",
|
|
26232
26329
|
viewBox: "0 0 100 100",
|
|
26233
26330
|
width: "1em",
|
|
26234
26331
|
height: "1em"
|
|
26235
26332
|
}, props), /* @__PURE__ */ React$h.createElement("path", {
|
|
26236
|
-
fill: "currentColor",
|
|
26237
26333
|
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"
|
|
26238
26334
|
}));
|
|
26239
26335
|
}
|
|
@@ -26314,19 +26410,18 @@ function EmojiHappy(props) {
|
|
|
26314
26410
|
id: "prefix__Capa_1",
|
|
26315
26411
|
x: 0,
|
|
26316
26412
|
y: 0,
|
|
26413
|
+
fill: "currentColor",
|
|
26317
26414
|
viewBox: "0 0 100 100",
|
|
26318
26415
|
xmlSpace: "preserve",
|
|
26319
26416
|
width: "1em",
|
|
26320
26417
|
height: "1em"
|
|
26321
|
-
}, props), /* @__PURE__ */ React$g.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$g.createElement("
|
|
26322
|
-
fill: "currentColor"
|
|
26323
|
-
}, /* @__PURE__ */ React$g.createElement("path", {
|
|
26418
|
+
}, props), /* @__PURE__ */ React$g.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$g.createElement("path", {
|
|
26324
26419
|
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",
|
|
26325
26420
|
className: "prefix__st0"
|
|
26326
26421
|
}), /* @__PURE__ */ React$g.createElement("path", {
|
|
26327
26422
|
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",
|
|
26328
26423
|
className: "prefix__st0"
|
|
26329
|
-
}))
|
|
26424
|
+
}));
|
|
26330
26425
|
}
|
|
26331
26426
|
var EmojiSad$1 = {};
|
|
26332
26427
|
function _typeof$f(obj) {
|
|
@@ -26405,19 +26500,18 @@ function EmojiSad(props) {
|
|
|
26405
26500
|
id: "prefix__Capa_1",
|
|
26406
26501
|
x: 0,
|
|
26407
26502
|
y: 0,
|
|
26503
|
+
fill: "currentColor",
|
|
26408
26504
|
viewBox: "0 0 100 100",
|
|
26409
26505
|
xmlSpace: "preserve",
|
|
26410
26506
|
width: "1em",
|
|
26411
26507
|
height: "1em"
|
|
26412
|
-
}, props), /* @__PURE__ */ React$f.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$f.createElement("
|
|
26413
|
-
fill: "currentColor"
|
|
26414
|
-
}, /* @__PURE__ */ React$f.createElement("path", {
|
|
26508
|
+
}, props), /* @__PURE__ */ React$f.createElement("style", null, ".prefix__st0{fill:#010101}"), /* @__PURE__ */ React$f.createElement("path", {
|
|
26415
26509
|
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",
|
|
26416
26510
|
className: "prefix__st0"
|
|
26417
26511
|
}), /* @__PURE__ */ React$f.createElement("path", {
|
|
26418
26512
|
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",
|
|
26419
26513
|
className: "prefix__st0"
|
|
26420
|
-
}))
|
|
26514
|
+
}));
|
|
26421
26515
|
}
|
|
26422
26516
|
var Filter$1 = {};
|
|
26423
26517
|
function _typeof$e(obj) {
|
|
@@ -26493,14 +26587,13 @@ function _extends$e() {
|
|
|
26493
26587
|
function Filter(props) {
|
|
26494
26588
|
return /* @__PURE__ */ React$e.createElement("svg", _extends$e({
|
|
26495
26589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26590
|
+
fill: "currentColor",
|
|
26496
26591
|
viewBox: "0 0 100 100",
|
|
26497
26592
|
width: "1em",
|
|
26498
26593
|
height: "1em"
|
|
26499
|
-
}, props), /* @__PURE__ */ React$e.createElement("
|
|
26500
|
-
fill: "currentColor"
|
|
26501
|
-
}, /* @__PURE__ */ React$e.createElement("path", {
|
|
26594
|
+
}, props), /* @__PURE__ */ React$e.createElement("path", {
|
|
26502
26595
|
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"
|
|
26503
|
-
}))
|
|
26596
|
+
}));
|
|
26504
26597
|
}
|
|
26505
26598
|
var Help$1 = {};
|
|
26506
26599
|
function _typeof$d(obj) {
|
|
@@ -26576,11 +26669,11 @@ function _extends$d() {
|
|
|
26576
26669
|
function Help(props) {
|
|
26577
26670
|
return /* @__PURE__ */ React$d.createElement("svg", _extends$d({
|
|
26578
26671
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26672
|
+
fill: "currentColor",
|
|
26579
26673
|
viewBox: "0 0 100 100",
|
|
26580
26674
|
width: "1em",
|
|
26581
26675
|
height: "1em"
|
|
26582
26676
|
}, props), /* @__PURE__ */ React$d.createElement("path", {
|
|
26583
|
-
fill: "currentColor",
|
|
26584
26677
|
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"
|
|
26585
26678
|
}));
|
|
26586
26679
|
}
|
|
@@ -26658,14 +26751,13 @@ function _extends$c() {
|
|
|
26658
26751
|
function Hotel(props) {
|
|
26659
26752
|
return /* @__PURE__ */ React$c.createElement("svg", _extends$c({
|
|
26660
26753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26754
|
+
fill: "currentColor",
|
|
26661
26755
|
viewBox: "0 0 100 100",
|
|
26662
26756
|
width: "1em",
|
|
26663
26757
|
height: "1em"
|
|
26664
26758
|
}, props), /* @__PURE__ */ React$c.createElement("path", {
|
|
26665
|
-
fill: "currentColor",
|
|
26666
26759
|
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"
|
|
26667
26760
|
}), /* @__PURE__ */ React$c.createElement("path", {
|
|
26668
|
-
fill: "currentColor",
|
|
26669
26761
|
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"
|
|
26670
26762
|
}));
|
|
26671
26763
|
}
|
|
@@ -26743,11 +26835,11 @@ function _extends$b() {
|
|
|
26743
26835
|
function Info(props) {
|
|
26744
26836
|
return /* @__PURE__ */ React$b.createElement("svg", _extends$b({
|
|
26745
26837
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26838
|
+
fill: "currentColor",
|
|
26746
26839
|
viewBox: "0 0 100 100",
|
|
26747
26840
|
width: "1em",
|
|
26748
26841
|
height: "1em"
|
|
26749
26842
|
}, props), /* @__PURE__ */ React$b.createElement("path", {
|
|
26750
|
-
fill: "currentColor",
|
|
26751
26843
|
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"
|
|
26752
26844
|
}));
|
|
26753
26845
|
}
|
|
@@ -26825,11 +26917,11 @@ function _extends$a() {
|
|
|
26825
26917
|
function List(props) {
|
|
26826
26918
|
return /* @__PURE__ */ React$a.createElement("svg", _extends$a({
|
|
26827
26919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26920
|
+
fill: "currentColor",
|
|
26828
26921
|
viewBox: "0 0 100 100",
|
|
26829
26922
|
width: "1em",
|
|
26830
26923
|
height: "1em"
|
|
26831
26924
|
}, props), /* @__PURE__ */ React$a.createElement("path", {
|
|
26832
|
-
fill: "currentColor",
|
|
26833
26925
|
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"
|
|
26834
26926
|
}));
|
|
26835
26927
|
}
|
|
@@ -26907,11 +26999,11 @@ function _extends$9() {
|
|
|
26907
26999
|
function Lock(props) {
|
|
26908
27000
|
return /* @__PURE__ */ React$9.createElement("svg", _extends$9({
|
|
26909
27001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27002
|
+
fill: "currentColor",
|
|
26910
27003
|
viewBox: "0 0 100 100",
|
|
26911
27004
|
width: "1em",
|
|
26912
27005
|
height: "1em"
|
|
26913
27006
|
}, props), /* @__PURE__ */ React$9.createElement("path", {
|
|
26914
|
-
fill: "currentColor",
|
|
26915
27007
|
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"
|
|
26916
27008
|
}));
|
|
26917
27009
|
}
|
|
@@ -26989,11 +27081,11 @@ function _extends$8() {
|
|
|
26989
27081
|
function Logout(props) {
|
|
26990
27082
|
return /* @__PURE__ */ React$8.createElement("svg", _extends$8({
|
|
26991
27083
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27084
|
+
fill: "currentColor",
|
|
26992
27085
|
viewBox: "0 0 100 100",
|
|
26993
27086
|
width: "1em",
|
|
26994
27087
|
height: "1em"
|
|
26995
27088
|
}, props), /* @__PURE__ */ React$8.createElement("path", {
|
|
26996
|
-
fill: "currentColor",
|
|
26997
27089
|
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"
|
|
26998
27090
|
}));
|
|
26999
27091
|
}
|
|
@@ -27071,11 +27163,11 @@ function _extends$7() {
|
|
|
27071
27163
|
function MapPin(props) {
|
|
27072
27164
|
return /* @__PURE__ */ React$7.createElement("svg", _extends$7({
|
|
27073
27165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27166
|
+
fill: "currentColor",
|
|
27074
27167
|
viewBox: "0 0 100 100",
|
|
27075
27168
|
width: "1em",
|
|
27076
27169
|
height: "1em"
|
|
27077
27170
|
}, props), /* @__PURE__ */ React$7.createElement("path", {
|
|
27078
|
-
fill: "currentColor",
|
|
27079
27171
|
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"
|
|
27080
27172
|
}));
|
|
27081
27173
|
}
|
|
@@ -27153,11 +27245,11 @@ function _extends$6() {
|
|
|
27153
27245
|
function Menu(props) {
|
|
27154
27246
|
return /* @__PURE__ */ React$6.createElement("svg", _extends$6({
|
|
27155
27247
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27248
|
+
fill: "currentColor",
|
|
27156
27249
|
viewBox: "0 0 100 100",
|
|
27157
27250
|
width: "1em",
|
|
27158
27251
|
height: "1em"
|
|
27159
27252
|
}, props), /* @__PURE__ */ React$6.createElement("path", {
|
|
27160
|
-
fill: "currentColor",
|
|
27161
27253
|
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"
|
|
27162
27254
|
}));
|
|
27163
27255
|
}
|
|
@@ -27235,11 +27327,11 @@ function _extends$5() {
|
|
|
27235
27327
|
function Minus(props) {
|
|
27236
27328
|
return /* @__PURE__ */ React$5.createElement("svg", _extends$5({
|
|
27237
27329
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27330
|
+
fill: "currentColor",
|
|
27238
27331
|
viewBox: "0 0 100 100",
|
|
27239
27332
|
width: "1em",
|
|
27240
27333
|
height: "1em"
|
|
27241
27334
|
}, props), /* @__PURE__ */ React$5.createElement("path", {
|
|
27242
|
-
fill: "currentColor",
|
|
27243
27335
|
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"
|
|
27244
27336
|
}));
|
|
27245
27337
|
}
|
|
@@ -27317,11 +27409,11 @@ function _extends$4() {
|
|
|
27317
27409
|
function Plus(props) {
|
|
27318
27410
|
return /* @__PURE__ */ React$4.createElement("svg", _extends$4({
|
|
27319
27411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27412
|
+
fill: "currentColor",
|
|
27320
27413
|
viewBox: "0 0 100 100",
|
|
27321
27414
|
width: "1em",
|
|
27322
27415
|
height: "1em"
|
|
27323
27416
|
}, props), /* @__PURE__ */ React$4.createElement("path", {
|
|
27324
|
-
fill: "currentColor",
|
|
27325
27417
|
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"
|
|
27326
27418
|
}));
|
|
27327
27419
|
}
|
|
@@ -27399,11 +27491,11 @@ function _extends$3() {
|
|
|
27399
27491
|
function Search(props) {
|
|
27400
27492
|
return /* @__PURE__ */ React$3.createElement("svg", _extends$3({
|
|
27401
27493
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27494
|
+
fill: "currentColor",
|
|
27402
27495
|
viewBox: "0 0 100 100",
|
|
27403
27496
|
width: "1em",
|
|
27404
27497
|
height: "1em"
|
|
27405
27498
|
}, props), /* @__PURE__ */ React$3.createElement("path", {
|
|
27406
|
-
fill: "currentColor",
|
|
27407
27499
|
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"
|
|
27408
27500
|
}));
|
|
27409
27501
|
}
|
|
@@ -27481,11 +27573,11 @@ function _extends$2() {
|
|
|
27481
27573
|
function Tick(props) {
|
|
27482
27574
|
return /* @__PURE__ */ React$2.createElement("svg", _extends$2({
|
|
27483
27575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27576
|
+
fill: "currentColor",
|
|
27484
27577
|
viewBox: "0 0 100 100",
|
|
27485
27578
|
width: "1em",
|
|
27486
27579
|
height: "1em"
|
|
27487
27580
|
}, props), /* @__PURE__ */ React$2.createElement("path", {
|
|
27488
|
-
fill: "currentColor",
|
|
27489
27581
|
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"
|
|
27490
27582
|
}));
|
|
27491
27583
|
}
|
|
@@ -27563,11 +27655,11 @@ function _extends$1() {
|
|
|
27563
27655
|
function User(props) {
|
|
27564
27656
|
return /* @__PURE__ */ React$1.createElement("svg", _extends$1({
|
|
27565
27657
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27658
|
+
fill: "currentColor",
|
|
27566
27659
|
viewBox: "0 0 100 100",
|
|
27567
27660
|
width: "1em",
|
|
27568
27661
|
height: "1em"
|
|
27569
27662
|
}, props), /* @__PURE__ */ React$1.createElement("path", {
|
|
27570
|
-
fill: "currentColor",
|
|
27571
27663
|
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"
|
|
27572
27664
|
}));
|
|
27573
27665
|
}
|
|
@@ -27645,11 +27737,11 @@ function _extends() {
|
|
|
27645
27737
|
function World(props) {
|
|
27646
27738
|
return /* @__PURE__ */ React.createElement("svg", _extends({
|
|
27647
27739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27740
|
+
fill: "currentColor",
|
|
27648
27741
|
viewBox: "0 0 100 100",
|
|
27649
27742
|
width: "1em",
|
|
27650
27743
|
height: "1em"
|
|
27651
27744
|
}, props), /* @__PURE__ */ React.createElement("path", {
|
|
27652
|
-
fill: "currentColor",
|
|
27653
27745
|
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"
|
|
27654
27746
|
}));
|
|
27655
27747
|
}
|
|
@@ -28017,32 +28109,36 @@ function useOutsideClickHandler(ref, handleOutsideClick) {
|
|
|
28017
28109
|
};
|
|
28018
28110
|
}, [ref]);
|
|
28019
28111
|
}
|
|
28020
|
-
var _jsxFileName$
|
|
28112
|
+
var _jsxFileName$b = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Notifications.jsx";
|
|
28021
28113
|
function isNotification(notifications) {
|
|
28022
28114
|
return Array.isArray(notifications) && notifications.length > 0;
|
|
28023
28115
|
}
|
|
28024
28116
|
function Notifications() {
|
|
28025
28117
|
const [notificationsLang, setNotificationsLang] = useState([]);
|
|
28026
28118
|
const [notificationsCount, setNotificationsCount] = useState(0);
|
|
28027
|
-
const [
|
|
28119
|
+
const [notificationDate, setNotificationDate] = useState();
|
|
28120
|
+
const [notified, setNotified] = useState(true);
|
|
28028
28121
|
const {
|
|
28029
28122
|
notifications: notificationsConfig
|
|
28030
28123
|
} = useSelector((state) => state.titleBar);
|
|
28031
|
-
const [showNotifications, setShowNotifications] = useState(false);
|
|
28032
|
-
const notifications = useSelector((state) => state.notifications);
|
|
28033
28124
|
const userLanguage = useSelector((state) => state.userLanguage);
|
|
28034
28125
|
const {
|
|
28035
28126
|
isOpen,
|
|
28036
28127
|
isMobileOrTablet
|
|
28037
28128
|
} = useSelector((state) => state.headerInfo);
|
|
28129
|
+
const {
|
|
28130
|
+
notifications,
|
|
28131
|
+
showNotifications
|
|
28132
|
+
} = useSelector((state) => state.notifications);
|
|
28133
|
+
const hideNotificationsBell = isMobileOrTablet && isOpen;
|
|
28038
28134
|
const styles = useSpring({
|
|
28039
|
-
opacity:
|
|
28135
|
+
opacity: hideNotificationsBell ? 0 : 1
|
|
28040
28136
|
});
|
|
28041
28137
|
const ref = useRef();
|
|
28138
|
+
const dispatch = useDispatch();
|
|
28042
28139
|
useOutsideClickHandler(ref, () => {
|
|
28043
|
-
setShowNotifications(false);
|
|
28140
|
+
dispatch(setShowNotifications(false));
|
|
28044
28141
|
});
|
|
28045
|
-
const dispatch = useDispatch();
|
|
28046
28142
|
useEffect(() => {
|
|
28047
28143
|
(async () => {
|
|
28048
28144
|
if (notificationsConfig) {
|
|
@@ -28072,8 +28168,24 @@ function Notifications() {
|
|
|
28072
28168
|
setNotificationsCount(notif.reduce((acc, {
|
|
28073
28169
|
items = []
|
|
28074
28170
|
}) => acc + items.length, 0));
|
|
28171
|
+
setNotificationDate(Math.max(...notif.reduce((acc, {
|
|
28172
|
+
items = []
|
|
28173
|
+
}) => [...acc, ...items], []).filter((o2) => {
|
|
28174
|
+
var _a2;
|
|
28175
|
+
return (_a2 = o2.date) == null ? void 0 : _a2.match(/^\d\d\d\d-\d\d-\d\d$/);
|
|
28176
|
+
}).map((o2) => +o2.date.replace(/\D/g, "")), 19700101));
|
|
28075
28177
|
}
|
|
28076
28178
|
}, [userLanguage, notifications]);
|
|
28179
|
+
useEffect(() => {
|
|
28180
|
+
const lastReadDate = api.get("ba-notif-read-date");
|
|
28181
|
+
if (notificationDate) {
|
|
28182
|
+
if (!lastReadDate || lastReadDate < notificationDate) {
|
|
28183
|
+
setNotified(false);
|
|
28184
|
+
} else {
|
|
28185
|
+
setNotified(true);
|
|
28186
|
+
}
|
|
28187
|
+
}
|
|
28188
|
+
}, [notificationDate]);
|
|
28077
28189
|
if (!notificationsLang)
|
|
28078
28190
|
return null;
|
|
28079
28191
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(animated.div, {
|
|
@@ -28085,31 +28197,36 @@ function Notifications() {
|
|
|
28085
28197
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28086
28198
|
className: "col-6 col-lg-auto p-lg-0",
|
|
28087
28199
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28088
|
-
className: "
|
|
28200
|
+
className: "d-inline-block me-lg-3 my-1 my-lg-0",
|
|
28089
28201
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28090
|
-
className: "dropdown",
|
|
28202
|
+
className: "hd-dropdown",
|
|
28091
28203
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("button", {
|
|
28092
|
-
className: "btn
|
|
28204
|
+
className: "btn p-2 hd-dropdown-toggle",
|
|
28093
28205
|
type: "button",
|
|
28094
28206
|
id: "hd-dropdown-notifications",
|
|
28095
28207
|
onClick: (e2) => {
|
|
28208
|
+
if (hideNotificationsBell)
|
|
28209
|
+
return;
|
|
28096
28210
|
e2.stopPropagation();
|
|
28097
28211
|
setNotified(true);
|
|
28098
|
-
|
|
28212
|
+
api.set("ba-notif-read-date", new Date().toISOString().slice(0, 10).replace(/-/g, ""), {
|
|
28213
|
+
expires: 365
|
|
28214
|
+
});
|
|
28215
|
+
dispatch(setShowNotifications(!showNotifications));
|
|
28099
28216
|
},
|
|
28100
28217
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Bell, {
|
|
28101
28218
|
className: "hd-icon hd-icon-bell"
|
|
28102
28219
|
}, void 0, false, {
|
|
28103
|
-
fileName: _jsxFileName$
|
|
28104
|
-
lineNumber:
|
|
28220
|
+
fileName: _jsxFileName$b,
|
|
28221
|
+
lineNumber: 121,
|
|
28105
28222
|
columnNumber: 15
|
|
28106
28223
|
}, this), notificationsCount > 0 && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(jsxDevRuntime.exports.Fragment, {
|
|
28107
28224
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
28108
28225
|
className: "visually-hidden",
|
|
28109
28226
|
children: "Notifications"
|
|
28110
28227
|
}, void 0, false, {
|
|
28111
|
-
fileName: _jsxFileName$
|
|
28112
|
-
lineNumber:
|
|
28228
|
+
fileName: _jsxFileName$b,
|
|
28229
|
+
lineNumber: 124,
|
|
28113
28230
|
columnNumber: 19
|
|
28114
28231
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
28115
28232
|
className: cn("badge", "rounded-pill", {
|
|
@@ -28118,17 +28235,17 @@ function Notifications() {
|
|
|
28118
28235
|
}),
|
|
28119
28236
|
children: notificationsCount >= 9 ? "9+" : `${notificationsCount}`
|
|
28120
28237
|
}, void 0, false, {
|
|
28121
|
-
fileName: _jsxFileName$
|
|
28122
|
-
lineNumber:
|
|
28238
|
+
fileName: _jsxFileName$b,
|
|
28239
|
+
lineNumber: 125,
|
|
28123
28240
|
columnNumber: 19
|
|
28124
28241
|
}, this)]
|
|
28125
28242
|
}, void 0, true)]
|
|
28126
28243
|
}, void 0, true, {
|
|
28127
|
-
fileName: _jsxFileName$
|
|
28128
|
-
lineNumber:
|
|
28244
|
+
fileName: _jsxFileName$b,
|
|
28245
|
+
lineNumber: 105,
|
|
28129
28246
|
columnNumber: 13
|
|
28130
28247
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
28131
|
-
className: "dropdown-menu",
|
|
28248
|
+
className: "hd-dropdown-menu shadow",
|
|
28132
28249
|
style: showNotifications ? {
|
|
28133
28250
|
display: "block"
|
|
28134
28251
|
} : {},
|
|
@@ -28140,68 +28257,70 @@ function Notifications() {
|
|
|
28140
28257
|
} = notification;
|
|
28141
28258
|
return items.map((item, i2) => {
|
|
28142
28259
|
const {
|
|
28143
|
-
title: itemTitle
|
|
28260
|
+
title: itemTitle,
|
|
28261
|
+
url
|
|
28144
28262
|
} = item;
|
|
28145
28263
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(require$$0__default.Fragment, {
|
|
28146
28264
|
children: [i2 === 0 && title && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
28147
28265
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
28148
|
-
className: "dropdown-header text-uppercase",
|
|
28266
|
+
className: "hd-dropdown-header text-uppercase",
|
|
28149
28267
|
children: title
|
|
28150
28268
|
}, void 0, false, {
|
|
28151
|
-
fileName: _jsxFileName$
|
|
28152
|
-
lineNumber:
|
|
28269
|
+
fileName: _jsxFileName$b,
|
|
28270
|
+
lineNumber: 149,
|
|
28153
28271
|
columnNumber: 27
|
|
28154
28272
|
}, this)
|
|
28155
28273
|
}, void 0, false, {
|
|
28156
|
-
fileName: _jsxFileName$
|
|
28157
|
-
lineNumber:
|
|
28274
|
+
fileName: _jsxFileName$b,
|
|
28275
|
+
lineNumber: 148,
|
|
28158
28276
|
columnNumber: 25
|
|
28159
28277
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
28160
28278
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("a", {
|
|
28161
|
-
className: "dropdown-item",
|
|
28162
|
-
href:
|
|
28279
|
+
className: "hd-dropdown-item",
|
|
28280
|
+
href: url,
|
|
28163
28281
|
target: "_blank",
|
|
28282
|
+
rel: "noreferrer",
|
|
28164
28283
|
children: itemTitle
|
|
28165
28284
|
}, void 0, false, {
|
|
28166
|
-
fileName: _jsxFileName$
|
|
28167
|
-
lineNumber:
|
|
28285
|
+
fileName: _jsxFileName$b,
|
|
28286
|
+
lineNumber: 155,
|
|
28168
28287
|
columnNumber: 25
|
|
28169
28288
|
}, this)
|
|
28170
28289
|
}, void 0, false, {
|
|
28171
|
-
fileName: _jsxFileName$
|
|
28172
|
-
lineNumber:
|
|
28290
|
+
fileName: _jsxFileName$b,
|
|
28291
|
+
lineNumber: 154,
|
|
28173
28292
|
columnNumber: 23
|
|
28174
28293
|
}, this)]
|
|
28175
28294
|
}, nanoid(), true, {
|
|
28176
|
-
fileName: _jsxFileName$
|
|
28177
|
-
lineNumber:
|
|
28295
|
+
fileName: _jsxFileName$b,
|
|
28296
|
+
lineNumber: 146,
|
|
28178
28297
|
columnNumber: 21
|
|
28179
28298
|
}, this);
|
|
28180
28299
|
});
|
|
28181
28300
|
})
|
|
28182
28301
|
}, void 0, false, {
|
|
28183
|
-
fileName: _jsxFileName$
|
|
28184
|
-
lineNumber:
|
|
28302
|
+
fileName: _jsxFileName$b,
|
|
28303
|
+
lineNumber: 136,
|
|
28185
28304
|
columnNumber: 13
|
|
28186
28305
|
}, this)]
|
|
28187
28306
|
}, void 0, true, {
|
|
28188
|
-
fileName: _jsxFileName$
|
|
28189
|
-
lineNumber:
|
|
28307
|
+
fileName: _jsxFileName$b,
|
|
28308
|
+
lineNumber: 104,
|
|
28190
28309
|
columnNumber: 11
|
|
28191
28310
|
}, this)
|
|
28192
28311
|
}, void 0, false, {
|
|
28193
|
-
fileName: _jsxFileName$
|
|
28194
|
-
lineNumber:
|
|
28312
|
+
fileName: _jsxFileName$b,
|
|
28313
|
+
lineNumber: 103,
|
|
28195
28314
|
columnNumber: 9
|
|
28196
28315
|
}, this)
|
|
28197
28316
|
}, void 0, false, {
|
|
28198
|
-
fileName: _jsxFileName$
|
|
28199
|
-
lineNumber:
|
|
28317
|
+
fileName: _jsxFileName$b,
|
|
28318
|
+
lineNumber: 102,
|
|
28200
28319
|
columnNumber: 7
|
|
28201
28320
|
}, this)
|
|
28202
28321
|
}, void 0, false, {
|
|
28203
|
-
fileName: _jsxFileName$
|
|
28204
|
-
lineNumber:
|
|
28322
|
+
fileName: _jsxFileName$b,
|
|
28323
|
+
lineNumber: 95,
|
|
28205
28324
|
columnNumber: 5
|
|
28206
28325
|
}, this);
|
|
28207
28326
|
}
|
|
@@ -28210,7 +28329,7 @@ function useToggle(initialState = false) {
|
|
|
28210
28329
|
const toggle = useCallback(() => setState((s2) => !s2), []);
|
|
28211
28330
|
return [state, toggle];
|
|
28212
28331
|
}
|
|
28213
|
-
var _jsxFileName$
|
|
28332
|
+
var _jsxFileName$a = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Hamburger.jsx";
|
|
28214
28333
|
function Hamburger() {
|
|
28215
28334
|
const [headerOpen, toggleHeaderOpen] = useToggle();
|
|
28216
28335
|
const {
|
|
@@ -28235,1096 +28354,250 @@ function Hamburger() {
|
|
|
28235
28354
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
28236
28355
|
className: "d-block",
|
|
28237
28356
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {}, void 0, false, {
|
|
28238
|
-
fileName: _jsxFileName$
|
|
28357
|
+
fileName: _jsxFileName$a,
|
|
28239
28358
|
lineNumber: 37,
|
|
28240
28359
|
columnNumber: 9
|
|
28241
28360
|
}, this)
|
|
28242
28361
|
}, void 0, false, {
|
|
28243
|
-
fileName: _jsxFileName$
|
|
28362
|
+
fileName: _jsxFileName$a,
|
|
28244
28363
|
lineNumber: 36,
|
|
28245
28364
|
columnNumber: 7
|
|
28246
28365
|
}, this)
|
|
28247
28366
|
}, void 0, false, {
|
|
28248
|
-
fileName: _jsxFileName$
|
|
28367
|
+
fileName: _jsxFileName$a,
|
|
28249
28368
|
lineNumber: 21,
|
|
28250
28369
|
columnNumber: 5
|
|
28251
28370
|
}, this);
|
|
28252
28371
|
}
|
|
28253
|
-
|
|
28254
|
-
|
|
28255
|
-
|
|
28372
|
+
function _assertThisInitialized(self2) {
|
|
28373
|
+
if (self2 === void 0) {
|
|
28374
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
28375
|
+
}
|
|
28376
|
+
return self2;
|
|
28377
|
+
}
|
|
28378
|
+
function _setPrototypeOf(o2, p2) {
|
|
28379
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
28380
|
+
o3.__proto__ = p3;
|
|
28381
|
+
return o3;
|
|
28382
|
+
};
|
|
28383
|
+
return _setPrototypeOf(o2, p2);
|
|
28384
|
+
}
|
|
28385
|
+
function _inheritsLoose(subClass, superClass) {
|
|
28386
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
28387
|
+
subClass.prototype.constructor = subClass;
|
|
28388
|
+
_setPrototypeOf(subClass, superClass);
|
|
28389
|
+
}
|
|
28390
|
+
var reactIs = { exports: {} };
|
|
28391
|
+
var reactIs_development = {};
|
|
28392
|
+
/** @license React v17.0.2
|
|
28393
|
+
* react-is.development.js
|
|
28394
|
+
*
|
|
28395
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28396
|
+
*
|
|
28397
|
+
* This source code is licensed under the MIT license found in the
|
|
28398
|
+
* LICENSE file in the root directory of this source tree.
|
|
28256
28399
|
*/
|
|
28257
|
-
|
|
28258
|
-
(function(
|
|
28259
|
-
var
|
|
28260
|
-
var
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
|
|
28265
|
-
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
|
|
28271
|
-
|
|
28272
|
-
|
|
28273
|
-
|
|
28274
|
-
|
|
28275
|
-
|
|
28276
|
-
|
|
28277
|
-
|
|
28278
|
-
|
|
28279
|
-
|
|
28280
|
-
|
|
28281
|
-
|
|
28400
|
+
{
|
|
28401
|
+
(function() {
|
|
28402
|
+
var REACT_ELEMENT_TYPE = 60103;
|
|
28403
|
+
var REACT_PORTAL_TYPE = 60106;
|
|
28404
|
+
var REACT_FRAGMENT_TYPE = 60107;
|
|
28405
|
+
var REACT_STRICT_MODE_TYPE = 60108;
|
|
28406
|
+
var REACT_PROFILER_TYPE = 60114;
|
|
28407
|
+
var REACT_PROVIDER_TYPE = 60109;
|
|
28408
|
+
var REACT_CONTEXT_TYPE = 60110;
|
|
28409
|
+
var REACT_FORWARD_REF_TYPE = 60112;
|
|
28410
|
+
var REACT_SUSPENSE_TYPE = 60113;
|
|
28411
|
+
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
28412
|
+
var REACT_MEMO_TYPE = 60115;
|
|
28413
|
+
var REACT_LAZY_TYPE = 60116;
|
|
28414
|
+
var REACT_BLOCK_TYPE = 60121;
|
|
28415
|
+
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
28416
|
+
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
28417
|
+
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
28418
|
+
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
28419
|
+
if (typeof Symbol === "function" && Symbol.for) {
|
|
28420
|
+
var symbolFor2 = Symbol.for;
|
|
28421
|
+
REACT_ELEMENT_TYPE = symbolFor2("react.element");
|
|
28422
|
+
REACT_PORTAL_TYPE = symbolFor2("react.portal");
|
|
28423
|
+
REACT_FRAGMENT_TYPE = symbolFor2("react.fragment");
|
|
28424
|
+
REACT_STRICT_MODE_TYPE = symbolFor2("react.strict_mode");
|
|
28425
|
+
REACT_PROFILER_TYPE = symbolFor2("react.profiler");
|
|
28426
|
+
REACT_PROVIDER_TYPE = symbolFor2("react.provider");
|
|
28427
|
+
REACT_CONTEXT_TYPE = symbolFor2("react.context");
|
|
28428
|
+
REACT_FORWARD_REF_TYPE = symbolFor2("react.forward_ref");
|
|
28429
|
+
REACT_SUSPENSE_TYPE = symbolFor2("react.suspense");
|
|
28430
|
+
REACT_SUSPENSE_LIST_TYPE = symbolFor2("react.suspense_list");
|
|
28431
|
+
REACT_MEMO_TYPE = symbolFor2("react.memo");
|
|
28432
|
+
REACT_LAZY_TYPE = symbolFor2("react.lazy");
|
|
28433
|
+
REACT_BLOCK_TYPE = symbolFor2("react.block");
|
|
28434
|
+
REACT_SERVER_BLOCK_TYPE = symbolFor2("react.server.block");
|
|
28435
|
+
REACT_FUNDAMENTAL_TYPE = symbolFor2("react.fundamental");
|
|
28436
|
+
symbolFor2("react.scope");
|
|
28437
|
+
symbolFor2("react.opaque.id");
|
|
28438
|
+
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor2("react.debug_trace_mode");
|
|
28439
|
+
symbolFor2("react.offscreen");
|
|
28440
|
+
REACT_LEGACY_HIDDEN_TYPE = symbolFor2("react.legacy_hidden");
|
|
28441
|
+
}
|
|
28442
|
+
var enableScopeAPI = false;
|
|
28443
|
+
function isValidElementType(type) {
|
|
28444
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
28445
|
+
return true;
|
|
28446
|
+
}
|
|
28447
|
+
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) {
|
|
28448
|
+
return true;
|
|
28449
|
+
}
|
|
28450
|
+
if (typeof type === "object" && type !== null) {
|
|
28451
|
+
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) {
|
|
28452
|
+
return true;
|
|
28282
28453
|
}
|
|
28283
|
-
},
|
|
28284
|
-
extend: function(obj) {
|
|
28285
|
-
this.forEach(slice.call(arguments, 1), function(source) {
|
|
28286
|
-
for (var prop in source) {
|
|
28287
|
-
obj[prop] = source[prop];
|
|
28288
|
-
}
|
|
28289
|
-
});
|
|
28290
|
-
return obj;
|
|
28291
28454
|
}
|
|
28292
|
-
|
|
28293
|
-
var Jed2 = function(options) {
|
|
28294
|
-
this.defaults = {
|
|
28295
|
-
"locale_data": {
|
|
28296
|
-
"messages": {
|
|
28297
|
-
"": {
|
|
28298
|
-
"domain": "messages",
|
|
28299
|
-
"lang": "en",
|
|
28300
|
-
"plural_forms": "nplurals=2; plural=(n != 1);"
|
|
28301
|
-
}
|
|
28302
|
-
}
|
|
28303
|
-
},
|
|
28304
|
-
"domain": "messages",
|
|
28305
|
-
"debug": false
|
|
28306
|
-
};
|
|
28307
|
-
this.options = _2.extend({}, this.defaults, options);
|
|
28308
|
-
this.textdomain(this.options.domain);
|
|
28309
|
-
if (options.domain && !this.options.locale_data[this.options.domain]) {
|
|
28310
|
-
throw new Error("Text domain set to non-existent domain: `" + options.domain + "`");
|
|
28311
|
-
}
|
|
28312
|
-
};
|
|
28313
|
-
Jed2.context_delimiter = String.fromCharCode(4);
|
|
28314
|
-
function getPluralFormFunc(plural_form_string) {
|
|
28315
|
-
return Jed2.PF.compile(plural_form_string || "nplurals=2; plural=(n != 1);");
|
|
28316
|
-
}
|
|
28317
|
-
function Chain(key, i18n) {
|
|
28318
|
-
this._key = key;
|
|
28319
|
-
this._i18n = i18n;
|
|
28455
|
+
return false;
|
|
28320
28456
|
}
|
|
28321
|
-
|
|
28322
|
-
|
|
28323
|
-
|
|
28324
|
-
|
|
28325
|
-
|
|
28326
|
-
|
|
28327
|
-
|
|
28328
|
-
|
|
28329
|
-
|
|
28330
|
-
|
|
28331
|
-
|
|
28332
|
-
|
|
28333
|
-
|
|
28334
|
-
|
|
28335
|
-
|
|
28336
|
-
|
|
28337
|
-
|
|
28338
|
-
|
|
28339
|
-
|
|
28340
|
-
|
|
28341
|
-
|
|
28342
|
-
|
|
28343
|
-
|
|
28344
|
-
|
|
28345
|
-
|
|
28346
|
-
return new Chain(key, this);
|
|
28347
|
-
},
|
|
28348
|
-
textdomain: function(domain) {
|
|
28349
|
-
if (!domain) {
|
|
28350
|
-
return this._textdomain;
|
|
28351
|
-
}
|
|
28352
|
-
this._textdomain = domain;
|
|
28353
|
-
},
|
|
28354
|
-
gettext: function(key) {
|
|
28355
|
-
return this.dcnpgettext.call(this, undef2, undef2, key);
|
|
28356
|
-
},
|
|
28357
|
-
dgettext: function(domain, key) {
|
|
28358
|
-
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
28359
|
-
},
|
|
28360
|
-
dcgettext: function(domain, key) {
|
|
28361
|
-
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
28362
|
-
},
|
|
28363
|
-
ngettext: function(skey, pkey, val) {
|
|
28364
|
-
return this.dcnpgettext.call(this, undef2, undef2, skey, pkey, val);
|
|
28365
|
-
},
|
|
28366
|
-
dngettext: function(domain, skey, pkey, val) {
|
|
28367
|
-
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
28368
|
-
},
|
|
28369
|
-
dcngettext: function(domain, skey, pkey, val) {
|
|
28370
|
-
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
28371
|
-
},
|
|
28372
|
-
pgettext: function(context, key) {
|
|
28373
|
-
return this.dcnpgettext.call(this, undef2, context, key);
|
|
28374
|
-
},
|
|
28375
|
-
dpgettext: function(domain, context, key) {
|
|
28376
|
-
return this.dcnpgettext.call(this, domain, context, key);
|
|
28377
|
-
},
|
|
28378
|
-
dcpgettext: function(domain, context, key) {
|
|
28379
|
-
return this.dcnpgettext.call(this, domain, context, key);
|
|
28380
|
-
},
|
|
28381
|
-
npgettext: function(context, skey, pkey, val) {
|
|
28382
|
-
return this.dcnpgettext.call(this, undef2, context, skey, pkey, val);
|
|
28383
|
-
},
|
|
28384
|
-
dnpgettext: function(domain, context, skey, pkey, val) {
|
|
28385
|
-
return this.dcnpgettext.call(this, domain, context, skey, pkey, val);
|
|
28386
|
-
},
|
|
28387
|
-
dcnpgettext: function(domain, context, singular_key, plural_key, val) {
|
|
28388
|
-
plural_key = plural_key || singular_key;
|
|
28389
|
-
domain = domain || this._textdomain;
|
|
28390
|
-
var fallback;
|
|
28391
|
-
if (!this.options) {
|
|
28392
|
-
fallback = new Jed2();
|
|
28393
|
-
return fallback.dcnpgettext.call(fallback, void 0, void 0, singular_key, plural_key, val);
|
|
28394
|
-
}
|
|
28395
|
-
if (!this.options.locale_data) {
|
|
28396
|
-
throw new Error("No locale data provided.");
|
|
28397
|
-
}
|
|
28398
|
-
if (!this.options.locale_data[domain]) {
|
|
28399
|
-
throw new Error("Domain `" + domain + "` was not found.");
|
|
28400
|
-
}
|
|
28401
|
-
if (!this.options.locale_data[domain][""]) {
|
|
28402
|
-
throw new Error("No locale meta information provided.");
|
|
28403
|
-
}
|
|
28404
|
-
if (!singular_key) {
|
|
28405
|
-
throw new Error("No translation key found.");
|
|
28406
|
-
}
|
|
28407
|
-
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;
|
|
28408
|
-
var val_idx;
|
|
28409
|
-
if (val === void 0) {
|
|
28410
|
-
val_idx = 0;
|
|
28411
|
-
} else {
|
|
28412
|
-
if (typeof val != "number") {
|
|
28413
|
-
val = parseInt(val, 10);
|
|
28414
|
-
if (isNaN(val)) {
|
|
28415
|
-
throw new Error("The number that was passed in is not a number.");
|
|
28457
|
+
function typeOf(object) {
|
|
28458
|
+
if (typeof object === "object" && object !== null) {
|
|
28459
|
+
var $$typeof = object.$$typeof;
|
|
28460
|
+
switch ($$typeof) {
|
|
28461
|
+
case REACT_ELEMENT_TYPE:
|
|
28462
|
+
var type = object.type;
|
|
28463
|
+
switch (type) {
|
|
28464
|
+
case REACT_FRAGMENT_TYPE:
|
|
28465
|
+
case REACT_PROFILER_TYPE:
|
|
28466
|
+
case REACT_STRICT_MODE_TYPE:
|
|
28467
|
+
case REACT_SUSPENSE_TYPE:
|
|
28468
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
28469
|
+
return type;
|
|
28470
|
+
default:
|
|
28471
|
+
var $$typeofType = type && type.$$typeof;
|
|
28472
|
+
switch ($$typeofType) {
|
|
28473
|
+
case REACT_CONTEXT_TYPE:
|
|
28474
|
+
case REACT_FORWARD_REF_TYPE:
|
|
28475
|
+
case REACT_LAZY_TYPE:
|
|
28476
|
+
case REACT_MEMO_TYPE:
|
|
28477
|
+
case REACT_PROVIDER_TYPE:
|
|
28478
|
+
return $$typeofType;
|
|
28479
|
+
default:
|
|
28480
|
+
return $$typeof;
|
|
28481
|
+
}
|
|
28416
28482
|
}
|
|
28417
|
-
|
|
28418
|
-
|
|
28419
|
-
}
|
|
28420
|
-
if (!dict) {
|
|
28421
|
-
throw new Error("No domain named `" + domain + "` could be found.");
|
|
28422
|
-
}
|
|
28423
|
-
val_list = dict[key];
|
|
28424
|
-
if (!val_list || val_idx > val_list.length) {
|
|
28425
|
-
if (this.options.missing_key_callback) {
|
|
28426
|
-
this.options.missing_key_callback(key, domain);
|
|
28427
|
-
}
|
|
28428
|
-
res = [singular_key, plural_key];
|
|
28429
|
-
if (this.options.debug === true) {
|
|
28430
|
-
console.log(res[getPluralFormFunc(pluralForms)(val)]);
|
|
28431
|
-
}
|
|
28432
|
-
return res[getPluralFormFunc()(val)];
|
|
28433
|
-
}
|
|
28434
|
-
res = val_list[val_idx];
|
|
28435
|
-
if (!res) {
|
|
28436
|
-
res = [singular_key, plural_key];
|
|
28437
|
-
return res[getPluralFormFunc()(val)];
|
|
28483
|
+
case REACT_PORTAL_TYPE:
|
|
28484
|
+
return $$typeof;
|
|
28438
28485
|
}
|
|
28439
|
-
return res;
|
|
28440
|
-
}
|
|
28441
|
-
});
|
|
28442
|
-
var sprintf = function() {
|
|
28443
|
-
function get_type(variable) {
|
|
28444
|
-
return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
|
|
28445
28486
|
}
|
|
28446
|
-
|
|
28447
|
-
|
|
28487
|
+
return void 0;
|
|
28488
|
+
}
|
|
28489
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
28490
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
28491
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
28492
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
28493
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
28494
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
28495
|
+
var Memo = REACT_MEMO_TYPE;
|
|
28496
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
28497
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
28498
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
28499
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
28500
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
28501
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
28502
|
+
function isAsyncMode(object) {
|
|
28503
|
+
{
|
|
28504
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
28505
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
28506
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
28448
28507
|
}
|
|
28449
|
-
return output.join("");
|
|
28450
28508
|
}
|
|
28451
|
-
|
|
28452
|
-
|
|
28453
|
-
|
|
28509
|
+
return false;
|
|
28510
|
+
}
|
|
28511
|
+
function isConcurrentMode(object) {
|
|
28512
|
+
{
|
|
28513
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
28514
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
28515
|
+
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
28454
28516
|
}
|
|
28455
|
-
return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
|
|
28456
|
-
};
|
|
28457
|
-
str_format.format = function(parse_tree, argv) {
|
|
28458
|
-
var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i2, k2, match3, pad, pad_character, pad_length;
|
|
28459
|
-
for (i2 = 0; i2 < tree_length; i2++) {
|
|
28460
|
-
node_type = get_type(parse_tree[i2]);
|
|
28461
|
-
if (node_type === "string") {
|
|
28462
|
-
output.push(parse_tree[i2]);
|
|
28463
|
-
} else if (node_type === "array") {
|
|
28464
|
-
match3 = parse_tree[i2];
|
|
28465
|
-
if (match3[2]) {
|
|
28466
|
-
arg = argv[cursor];
|
|
28467
|
-
for (k2 = 0; k2 < match3[2].length; k2++) {
|
|
28468
|
-
if (!arg.hasOwnProperty(match3[2][k2])) {
|
|
28469
|
-
throw sprintf('[sprintf] property "%s" does not exist', match3[2][k2]);
|
|
28470
|
-
}
|
|
28471
|
-
arg = arg[match3[2][k2]];
|
|
28472
|
-
}
|
|
28473
|
-
} else if (match3[1]) {
|
|
28474
|
-
arg = argv[match3[1]];
|
|
28475
|
-
} else {
|
|
28476
|
-
arg = argv[cursor++];
|
|
28477
|
-
}
|
|
28478
|
-
if (/[^s]/.test(match3[8]) && get_type(arg) != "number") {
|
|
28479
|
-
throw sprintf("[sprintf] expecting number but found %s", get_type(arg));
|
|
28480
|
-
}
|
|
28481
|
-
if (typeof arg == "undefined" || arg === null) {
|
|
28482
|
-
arg = "";
|
|
28483
|
-
}
|
|
28484
|
-
switch (match3[8]) {
|
|
28485
|
-
case "b":
|
|
28486
|
-
arg = arg.toString(2);
|
|
28487
|
-
break;
|
|
28488
|
-
case "c":
|
|
28489
|
-
arg = String.fromCharCode(arg);
|
|
28490
|
-
break;
|
|
28491
|
-
case "d":
|
|
28492
|
-
arg = parseInt(arg, 10);
|
|
28493
|
-
break;
|
|
28494
|
-
case "e":
|
|
28495
|
-
arg = match3[7] ? arg.toExponential(match3[7]) : arg.toExponential();
|
|
28496
|
-
break;
|
|
28497
|
-
case "f":
|
|
28498
|
-
arg = match3[7] ? parseFloat(arg).toFixed(match3[7]) : parseFloat(arg);
|
|
28499
|
-
break;
|
|
28500
|
-
case "o":
|
|
28501
|
-
arg = arg.toString(8);
|
|
28502
|
-
break;
|
|
28503
|
-
case "s":
|
|
28504
|
-
arg = (arg = String(arg)) && match3[7] ? arg.substring(0, match3[7]) : arg;
|
|
28505
|
-
break;
|
|
28506
|
-
case "u":
|
|
28507
|
-
arg = Math.abs(arg);
|
|
28508
|
-
break;
|
|
28509
|
-
case "x":
|
|
28510
|
-
arg = arg.toString(16);
|
|
28511
|
-
break;
|
|
28512
|
-
case "X":
|
|
28513
|
-
arg = arg.toString(16).toUpperCase();
|
|
28514
|
-
break;
|
|
28515
|
-
}
|
|
28516
|
-
arg = /[def]/.test(match3[8]) && match3[3] && arg >= 0 ? "+" + arg : arg;
|
|
28517
|
-
pad_character = match3[4] ? match3[4] == "0" ? "0" : match3[4].charAt(1) : " ";
|
|
28518
|
-
pad_length = match3[6] - String(arg).length;
|
|
28519
|
-
pad = match3[6] ? str_repeat(pad_character, pad_length) : "";
|
|
28520
|
-
output.push(match3[5] ? arg + pad : pad + arg);
|
|
28521
|
-
}
|
|
28522
|
-
}
|
|
28523
|
-
return output.join("");
|
|
28524
|
-
};
|
|
28525
|
-
str_format.cache = {};
|
|
28526
|
-
str_format.parse = function(fmt) {
|
|
28527
|
-
var _fmt = fmt, match3 = [], parse_tree = [], arg_names = 0;
|
|
28528
|
-
while (_fmt) {
|
|
28529
|
-
if ((match3 = /^[^\x25]+/.exec(_fmt)) !== null) {
|
|
28530
|
-
parse_tree.push(match3[0]);
|
|
28531
|
-
} else if ((match3 = /^\x25{2}/.exec(_fmt)) !== null) {
|
|
28532
|
-
parse_tree.push("%");
|
|
28533
|
-
} else if ((match3 = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
|
|
28534
|
-
if (match3[2]) {
|
|
28535
|
-
arg_names |= 1;
|
|
28536
|
-
var field_list = [], replacement_field = match3[2], field_match = [];
|
|
28537
|
-
if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
28538
|
-
field_list.push(field_match[1]);
|
|
28539
|
-
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
28540
|
-
if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
28541
|
-
field_list.push(field_match[1]);
|
|
28542
|
-
} else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
|
|
28543
|
-
field_list.push(field_match[1]);
|
|
28544
|
-
} else {
|
|
28545
|
-
throw "[sprintf] huh?";
|
|
28546
|
-
}
|
|
28547
|
-
}
|
|
28548
|
-
} else {
|
|
28549
|
-
throw "[sprintf] huh?";
|
|
28550
|
-
}
|
|
28551
|
-
match3[2] = field_list;
|
|
28552
|
-
} else {
|
|
28553
|
-
arg_names |= 2;
|
|
28554
|
-
}
|
|
28555
|
-
if (arg_names === 3) {
|
|
28556
|
-
throw "[sprintf] mixing positional and named placeholders is not (yet) supported";
|
|
28557
|
-
}
|
|
28558
|
-
parse_tree.push(match3);
|
|
28559
|
-
} else {
|
|
28560
|
-
throw "[sprintf] huh?";
|
|
28561
|
-
}
|
|
28562
|
-
_fmt = _fmt.substring(match3[0].length);
|
|
28563
|
-
}
|
|
28564
|
-
return parse_tree;
|
|
28565
|
-
};
|
|
28566
|
-
return str_format;
|
|
28567
|
-
}();
|
|
28568
|
-
var vsprintf = function(fmt, argv) {
|
|
28569
|
-
argv.unshift(fmt);
|
|
28570
|
-
return sprintf.apply(null, argv);
|
|
28571
|
-
};
|
|
28572
|
-
Jed2.parse_plural = function(plural_forms, n2) {
|
|
28573
|
-
plural_forms = plural_forms.replace(/n/g, n2);
|
|
28574
|
-
return Jed2.parse_expression(plural_forms);
|
|
28575
|
-
};
|
|
28576
|
-
Jed2.sprintf = function(fmt, args) {
|
|
28577
|
-
if ({}.toString.call(args) == "[object Array]") {
|
|
28578
|
-
return vsprintf(fmt, [].slice.call(args));
|
|
28579
|
-
}
|
|
28580
|
-
return sprintf.apply(this, [].slice.call(arguments));
|
|
28581
|
-
};
|
|
28582
|
-
Jed2.prototype.sprintf = function() {
|
|
28583
|
-
return Jed2.sprintf.apply(this, arguments);
|
|
28584
|
-
};
|
|
28585
|
-
Jed2.PF = {};
|
|
28586
|
-
Jed2.PF.parse = function(p2) {
|
|
28587
|
-
var plural_str = Jed2.PF.extractPluralExpr(p2);
|
|
28588
|
-
return Jed2.PF.parser.parse.call(Jed2.PF.parser, plural_str);
|
|
28589
|
-
};
|
|
28590
|
-
Jed2.PF.compile = function(p2) {
|
|
28591
|
-
function imply(val) {
|
|
28592
|
-
return val === true ? 1 : val ? val : 0;
|
|
28593
28517
|
}
|
|
28594
|
-
|
|
28595
|
-
|
|
28596
|
-
|
|
28597
|
-
|
|
28598
|
-
}
|
|
28599
|
-
|
|
28600
|
-
return
|
|
28601
|
-
|
|
28602
|
-
|
|
28603
|
-
|
|
28604
|
-
|
|
28605
|
-
|
|
28606
|
-
|
|
28607
|
-
|
|
28608
|
-
|
|
28609
|
-
|
|
28610
|
-
|
|
28611
|
-
|
|
28612
|
-
|
|
28613
|
-
|
|
28614
|
-
|
|
28615
|
-
|
|
28616
|
-
|
|
28617
|
-
|
|
28618
|
-
|
|
28619
|
-
|
|
28620
|
-
|
|
28621
|
-
|
|
28622
|
-
|
|
28623
|
-
|
|
28624
|
-
|
|
28625
|
-
|
|
28626
|
-
|
|
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
|
-
this.$ = { type: "LT", left: $$[$0 - 2], right: $$[$0] };
|
|
28678
|
-
break;
|
|
28679
|
-
case 6:
|
|
28680
|
-
this.$ = { type: "LTE", left: $$[$0 - 2], right: $$[$0] };
|
|
28681
|
-
break;
|
|
28682
|
-
case 7:
|
|
28683
|
-
this.$ = { type: "GT", left: $$[$0 - 2], right: $$[$0] };
|
|
28684
|
-
break;
|
|
28685
|
-
case 8:
|
|
28686
|
-
this.$ = { type: "GTE", left: $$[$0 - 2], right: $$[$0] };
|
|
28687
|
-
break;
|
|
28688
|
-
case 9:
|
|
28689
|
-
this.$ = { type: "NEQ", left: $$[$0 - 2], right: $$[$0] };
|
|
28690
|
-
break;
|
|
28691
|
-
case 10:
|
|
28692
|
-
this.$ = { type: "EQ", left: $$[$0 - 2], right: $$[$0] };
|
|
28693
|
-
break;
|
|
28694
|
-
case 11:
|
|
28695
|
-
this.$ = { type: "MOD", left: $$[$0 - 2], right: $$[$0] };
|
|
28696
|
-
break;
|
|
28697
|
-
case 12:
|
|
28698
|
-
this.$ = { type: "GROUP", expr: $$[$0 - 1] };
|
|
28699
|
-
break;
|
|
28700
|
-
case 13:
|
|
28701
|
-
this.$ = { type: "VAR" };
|
|
28702
|
-
break;
|
|
28703
|
-
case 14:
|
|
28704
|
-
this.$ = { type: "NUM", val: Number(yytext) };
|
|
28705
|
-
break;
|
|
28706
|
-
}
|
|
28707
|
-
},
|
|
28708
|
-
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] }],
|
|
28709
|
-
defaultActions: { 6: [2, 1] },
|
|
28710
|
-
parseError: function parseError(str, hash) {
|
|
28711
|
-
throw new Error(str);
|
|
28712
|
-
},
|
|
28713
|
-
parse: function parse2(input) {
|
|
28714
|
-
var self2 = this, stack = [0], vstack = [null], lstack = [], table2 = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
28715
|
-
this.lexer.setInput(input);
|
|
28716
|
-
this.lexer.yy = this.yy;
|
|
28717
|
-
this.yy.lexer = this.lexer;
|
|
28718
|
-
if (typeof this.lexer.yylloc == "undefined")
|
|
28719
|
-
this.lexer.yylloc = {};
|
|
28720
|
-
var yyloc = this.lexer.yylloc;
|
|
28721
|
-
lstack.push(yyloc);
|
|
28722
|
-
if (typeof this.yy.parseError === "function")
|
|
28723
|
-
this.parseError = this.yy.parseError;
|
|
28724
|
-
function popStack(n2) {
|
|
28725
|
-
stack.length = stack.length - 2 * n2;
|
|
28726
|
-
vstack.length = vstack.length - n2;
|
|
28727
|
-
lstack.length = lstack.length - n2;
|
|
28728
|
-
}
|
|
28729
|
-
function lex() {
|
|
28730
|
-
var token2;
|
|
28731
|
-
token2 = self2.lexer.lex() || 1;
|
|
28732
|
-
if (typeof token2 !== "number") {
|
|
28733
|
-
token2 = self2.symbols_[token2] || token2;
|
|
28734
|
-
}
|
|
28735
|
-
return token2;
|
|
28736
|
-
}
|
|
28737
|
-
var symbol, preErrorSymbol, state, action, r2, yyval = {}, p2, len, newState, expected;
|
|
28738
|
-
while (true) {
|
|
28739
|
-
state = stack[stack.length - 1];
|
|
28740
|
-
if (this.defaultActions[state]) {
|
|
28741
|
-
action = this.defaultActions[state];
|
|
28742
|
-
} else {
|
|
28743
|
-
if (symbol == null)
|
|
28744
|
-
symbol = lex();
|
|
28745
|
-
action = table2[state] && table2[state][symbol];
|
|
28746
|
-
}
|
|
28747
|
-
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
28748
|
-
if (!recovering) {
|
|
28749
|
-
expected = [];
|
|
28750
|
-
for (p2 in table2[state])
|
|
28751
|
-
if (this.terminals_[p2] && p2 > 2) {
|
|
28752
|
-
expected.push("'" + this.terminals_[p2] + "'");
|
|
28753
|
-
}
|
|
28754
|
-
var errStr = "";
|
|
28755
|
-
if (this.lexer.showPosition) {
|
|
28756
|
-
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + this.terminals_[symbol] + "'";
|
|
28757
|
-
} else {
|
|
28758
|
-
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
28759
|
-
}
|
|
28760
|
-
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
|
28761
|
-
}
|
|
28762
|
-
if (recovering == 3) {
|
|
28763
|
-
if (symbol == EOF) {
|
|
28764
|
-
throw new Error(errStr || "Parsing halted.");
|
|
28765
|
-
}
|
|
28766
|
-
yyleng = this.lexer.yyleng;
|
|
28767
|
-
yytext = this.lexer.yytext;
|
|
28768
|
-
yylineno = this.lexer.yylineno;
|
|
28769
|
-
yyloc = this.lexer.yylloc;
|
|
28770
|
-
symbol = lex();
|
|
28771
|
-
}
|
|
28772
|
-
while (1) {
|
|
28773
|
-
if (TERROR.toString() in table2[state]) {
|
|
28774
|
-
break;
|
|
28775
|
-
}
|
|
28776
|
-
if (state == 0) {
|
|
28777
|
-
throw new Error(errStr || "Parsing halted.");
|
|
28778
|
-
}
|
|
28779
|
-
popStack(1);
|
|
28780
|
-
state = stack[stack.length - 1];
|
|
28781
|
-
}
|
|
28782
|
-
preErrorSymbol = symbol;
|
|
28783
|
-
symbol = TERROR;
|
|
28784
|
-
state = stack[stack.length - 1];
|
|
28785
|
-
action = table2[state] && table2[state][TERROR];
|
|
28786
|
-
recovering = 3;
|
|
28787
|
-
}
|
|
28788
|
-
if (action[0] instanceof Array && action.length > 1) {
|
|
28789
|
-
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
28790
|
-
}
|
|
28791
|
-
switch (action[0]) {
|
|
28792
|
-
case 1:
|
|
28793
|
-
stack.push(symbol);
|
|
28794
|
-
vstack.push(this.lexer.yytext);
|
|
28795
|
-
lstack.push(this.lexer.yylloc);
|
|
28796
|
-
stack.push(action[1]);
|
|
28797
|
-
symbol = null;
|
|
28798
|
-
if (!preErrorSymbol) {
|
|
28799
|
-
yyleng = this.lexer.yyleng;
|
|
28800
|
-
yytext = this.lexer.yytext;
|
|
28801
|
-
yylineno = this.lexer.yylineno;
|
|
28802
|
-
yyloc = this.lexer.yylloc;
|
|
28803
|
-
if (recovering > 0)
|
|
28804
|
-
recovering--;
|
|
28805
|
-
} else {
|
|
28806
|
-
symbol = preErrorSymbol;
|
|
28807
|
-
preErrorSymbol = null;
|
|
28808
|
-
}
|
|
28809
|
-
break;
|
|
28810
|
-
case 2:
|
|
28811
|
-
len = this.productions_[action[1]][1];
|
|
28812
|
-
yyval.$ = vstack[vstack.length - len];
|
|
28813
|
-
yyval._$ = {
|
|
28814
|
-
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
28815
|
-
last_line: lstack[lstack.length - 1].last_line,
|
|
28816
|
-
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
28817
|
-
last_column: lstack[lstack.length - 1].last_column
|
|
28818
|
-
};
|
|
28819
|
-
r2 = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
|
|
28820
|
-
if (typeof r2 !== "undefined") {
|
|
28821
|
-
return r2;
|
|
28822
|
-
}
|
|
28823
|
-
if (len) {
|
|
28824
|
-
stack = stack.slice(0, -1 * len * 2);
|
|
28825
|
-
vstack = vstack.slice(0, -1 * len);
|
|
28826
|
-
lstack = lstack.slice(0, -1 * len);
|
|
28827
|
-
}
|
|
28828
|
-
stack.push(this.productions_[action[1]][0]);
|
|
28829
|
-
vstack.push(yyval.$);
|
|
28830
|
-
lstack.push(yyval._$);
|
|
28831
|
-
newState = table2[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
28832
|
-
stack.push(newState);
|
|
28833
|
-
break;
|
|
28834
|
-
case 3:
|
|
28835
|
-
return true;
|
|
28836
|
-
}
|
|
28837
|
-
}
|
|
28838
|
-
return true;
|
|
28839
|
-
}
|
|
28840
|
-
};
|
|
28841
|
-
var lexer = function() {
|
|
28842
|
-
var lexer2 = {
|
|
28843
|
-
EOF: 1,
|
|
28844
|
-
parseError: function parseError(str, hash) {
|
|
28845
|
-
if (this.yy.parseError) {
|
|
28846
|
-
this.yy.parseError(str, hash);
|
|
28847
|
-
} else {
|
|
28848
|
-
throw new Error(str);
|
|
28849
|
-
}
|
|
28850
|
-
},
|
|
28851
|
-
setInput: function(input) {
|
|
28852
|
-
this._input = input;
|
|
28853
|
-
this._more = this._less = this.done = false;
|
|
28854
|
-
this.yylineno = this.yyleng = 0;
|
|
28855
|
-
this.yytext = this.matched = this.match = "";
|
|
28856
|
-
this.conditionStack = ["INITIAL"];
|
|
28857
|
-
this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 };
|
|
28858
|
-
return this;
|
|
28859
|
-
},
|
|
28860
|
-
input: function() {
|
|
28861
|
-
var ch = this._input[0];
|
|
28862
|
-
this.yytext += ch;
|
|
28863
|
-
this.yyleng++;
|
|
28864
|
-
this.match += ch;
|
|
28865
|
-
this.matched += ch;
|
|
28866
|
-
var lines = ch.match(/\n/);
|
|
28867
|
-
if (lines)
|
|
28868
|
-
this.yylineno++;
|
|
28869
|
-
this._input = this._input.slice(1);
|
|
28870
|
-
return ch;
|
|
28871
|
-
},
|
|
28872
|
-
unput: function(ch) {
|
|
28873
|
-
this._input = ch + this._input;
|
|
28874
|
-
return this;
|
|
28875
|
-
},
|
|
28876
|
-
more: function() {
|
|
28877
|
-
this._more = true;
|
|
28878
|
-
return this;
|
|
28879
|
-
},
|
|
28880
|
-
pastInput: function() {
|
|
28881
|
-
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
28882
|
-
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
28883
|
-
},
|
|
28884
|
-
upcomingInput: function() {
|
|
28885
|
-
var next2 = this.match;
|
|
28886
|
-
if (next2.length < 20) {
|
|
28887
|
-
next2 += this._input.substr(0, 20 - next2.length);
|
|
28888
|
-
}
|
|
28889
|
-
return (next2.substr(0, 20) + (next2.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
28890
|
-
},
|
|
28891
|
-
showPosition: function() {
|
|
28892
|
-
var pre = this.pastInput();
|
|
28893
|
-
var c6 = new Array(pre.length + 1).join("-");
|
|
28894
|
-
return pre + this.upcomingInput() + "\n" + c6 + "^";
|
|
28895
|
-
},
|
|
28896
|
-
next: function() {
|
|
28897
|
-
if (this.done) {
|
|
28898
|
-
return this.EOF;
|
|
28899
|
-
}
|
|
28900
|
-
if (!this._input)
|
|
28901
|
-
this.done = true;
|
|
28902
|
-
var token2, match3, lines;
|
|
28903
|
-
if (!this._more) {
|
|
28904
|
-
this.yytext = "";
|
|
28905
|
-
this.match = "";
|
|
28906
|
-
}
|
|
28907
|
-
var rules2 = this._currentRules();
|
|
28908
|
-
for (var i2 = 0; i2 < rules2.length; i2++) {
|
|
28909
|
-
match3 = this._input.match(this.rules[rules2[i2]]);
|
|
28910
|
-
if (match3) {
|
|
28911
|
-
lines = match3[0].match(/\n.*/g);
|
|
28912
|
-
if (lines)
|
|
28913
|
-
this.yylineno += lines.length;
|
|
28914
|
-
this.yylloc = {
|
|
28915
|
-
first_line: this.yylloc.last_line,
|
|
28916
|
-
last_line: this.yylineno + 1,
|
|
28917
|
-
first_column: this.yylloc.last_column,
|
|
28918
|
-
last_column: lines ? lines[lines.length - 1].length - 1 : this.yylloc.last_column + match3[0].length
|
|
28919
|
-
};
|
|
28920
|
-
this.yytext += match3[0];
|
|
28921
|
-
this.match += match3[0];
|
|
28922
|
-
this.matches = match3;
|
|
28923
|
-
this.yyleng = this.yytext.length;
|
|
28924
|
-
this._more = false;
|
|
28925
|
-
this._input = this._input.slice(match3[0].length);
|
|
28926
|
-
this.matched += match3[0];
|
|
28927
|
-
token2 = this.performAction.call(this, this.yy, this, rules2[i2], this.conditionStack[this.conditionStack.length - 1]);
|
|
28928
|
-
if (token2)
|
|
28929
|
-
return token2;
|
|
28930
|
-
else
|
|
28931
|
-
return;
|
|
28932
|
-
}
|
|
28933
|
-
}
|
|
28934
|
-
if (this._input === "") {
|
|
28935
|
-
return this.EOF;
|
|
28936
|
-
} else {
|
|
28937
|
-
this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { text: "", token: null, line: this.yylineno });
|
|
28938
|
-
}
|
|
28939
|
-
},
|
|
28940
|
-
lex: function lex() {
|
|
28941
|
-
var r2 = this.next();
|
|
28942
|
-
if (typeof r2 !== "undefined") {
|
|
28943
|
-
return r2;
|
|
28944
|
-
} else {
|
|
28945
|
-
return this.lex();
|
|
28946
|
-
}
|
|
28947
|
-
},
|
|
28948
|
-
begin: function begin(condition) {
|
|
28949
|
-
this.conditionStack.push(condition);
|
|
28950
|
-
},
|
|
28951
|
-
popState: function popState() {
|
|
28952
|
-
return this.conditionStack.pop();
|
|
28953
|
-
},
|
|
28954
|
-
_currentRules: function _currentRules() {
|
|
28955
|
-
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
28956
|
-
},
|
|
28957
|
-
topState: function() {
|
|
28958
|
-
return this.conditionStack[this.conditionStack.length - 2];
|
|
28959
|
-
},
|
|
28960
|
-
pushState: function begin(condition) {
|
|
28961
|
-
this.begin(condition);
|
|
28962
|
-
}
|
|
28963
|
-
};
|
|
28964
|
-
lexer2.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
28965
|
-
switch ($avoiding_name_collisions) {
|
|
28966
|
-
case 0:
|
|
28967
|
-
break;
|
|
28968
|
-
case 1:
|
|
28969
|
-
return 20;
|
|
28970
|
-
case 2:
|
|
28971
|
-
return 19;
|
|
28972
|
-
case 3:
|
|
28973
|
-
return 8;
|
|
28974
|
-
case 4:
|
|
28975
|
-
return 9;
|
|
28976
|
-
case 5:
|
|
28977
|
-
return 6;
|
|
28978
|
-
case 6:
|
|
28979
|
-
return 7;
|
|
28980
|
-
case 7:
|
|
28981
|
-
return 11;
|
|
28982
|
-
case 8:
|
|
28983
|
-
return 13;
|
|
28984
|
-
case 9:
|
|
28985
|
-
return 10;
|
|
28986
|
-
case 10:
|
|
28987
|
-
return 12;
|
|
28988
|
-
case 11:
|
|
28989
|
-
return 14;
|
|
28990
|
-
case 12:
|
|
28991
|
-
return 15;
|
|
28992
|
-
case 13:
|
|
28993
|
-
return 16;
|
|
28994
|
-
case 14:
|
|
28995
|
-
return 17;
|
|
28996
|
-
case 15:
|
|
28997
|
-
return 18;
|
|
28998
|
-
case 16:
|
|
28999
|
-
return 5;
|
|
29000
|
-
case 17:
|
|
29001
|
-
return "INVALID";
|
|
29002
|
-
}
|
|
29003
|
-
};
|
|
29004
|
-
lexer2.rules = [/^\s+/, /^[0-9]+(\.[0-9]+)?\b/, /^n\b/, /^\|\|/, /^&&/, /^\?/, /^:/, /^<=/, /^>=/, /^</, /^>/, /^!=/, /^==/, /^%/, /^\(/, /^\)/, /^$/, /^./];
|
|
29005
|
-
lexer2.conditions = { "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "inclusive": true } };
|
|
29006
|
-
return lexer2;
|
|
29007
|
-
}();
|
|
29008
|
-
parser.lexer = lexer;
|
|
29009
|
-
return parser;
|
|
29010
|
-
}();
|
|
29011
|
-
{
|
|
29012
|
-
if (module.exports) {
|
|
29013
|
-
exports = module.exports = Jed2;
|
|
29014
|
-
}
|
|
29015
|
-
exports.Jed = Jed2;
|
|
29016
|
-
}
|
|
29017
|
-
})();
|
|
29018
|
-
})(jed, jed.exports);
|
|
29019
|
-
var Jed = jed.exports;
|
|
29020
|
-
const fetcher = (url) => fetch(url).then((r2) => r2.json());
|
|
29021
|
-
function messageFormat(string, replacements) {
|
|
29022
|
-
return string.replace(/\{(\d+)\}/g, function() {
|
|
29023
|
-
return replacements[arguments[1]];
|
|
29024
|
-
});
|
|
29025
|
-
}
|
|
29026
|
-
function useI18n() {
|
|
29027
|
-
const { i18nFeed } = useSelector((state) => state.headerInfo);
|
|
29028
|
-
const userLanguage = useSelector((state) => state.userLanguage);
|
|
29029
|
-
const { data: data2, error } = index(i18nFeed && userLanguage ? messageFormat(i18nFeed, [userLanguage]) : null, fetcher);
|
|
29030
|
-
return {
|
|
29031
|
-
i18n: new Jed({
|
|
29032
|
-
locale_data: data2 || {
|
|
29033
|
-
messages: {
|
|
29034
|
-
"": {}
|
|
29035
|
-
}
|
|
29036
|
-
}
|
|
29037
|
-
}),
|
|
29038
|
-
error
|
|
29039
|
-
};
|
|
29040
|
-
}
|
|
29041
|
-
var _jsxFileName$a = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/Extranet.jsx";
|
|
29042
|
-
function Extranet() {
|
|
29043
|
-
const {
|
|
29044
|
-
i18n
|
|
29045
|
-
} = useI18n();
|
|
29046
|
-
const {
|
|
29047
|
-
isOpen,
|
|
29048
|
-
isMobileOrTablet
|
|
29049
|
-
} = useSelector((state) => state.headerInfo);
|
|
29050
|
-
const [ref, {
|
|
29051
|
-
height
|
|
29052
|
-
}] = useMeasure$1();
|
|
29053
|
-
const transitions = useTransition(!isMobileOrTablet || isOpen, {
|
|
29054
|
-
from: {
|
|
29055
|
-
height: 0
|
|
29056
|
-
},
|
|
29057
|
-
enter: {
|
|
29058
|
-
height
|
|
29059
|
-
},
|
|
29060
|
-
leave: {
|
|
29061
|
-
height: 0
|
|
29062
|
-
},
|
|
29063
|
-
update: {
|
|
29064
|
-
height
|
|
29065
|
-
},
|
|
29066
|
-
config: __spreadProps(__spreadValues({}, config.stiff), {
|
|
29067
|
-
clamp: true
|
|
29068
|
-
})
|
|
29069
|
-
});
|
|
29070
|
-
return transitions((styles, item) => item && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(animated.div, {
|
|
29071
|
-
className: "col-12 pt-lg-2 order-lg-1",
|
|
29072
|
-
id: "hd-extranet",
|
|
29073
|
-
style: isMobileOrTablet ? __spreadProps(__spreadValues({}, styles), {
|
|
29074
|
-
display: "block"
|
|
29075
|
-
}) : {},
|
|
29076
|
-
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("a", {
|
|
29077
|
-
ref,
|
|
29078
|
-
className: "d-block ",
|
|
29079
|
-
href: "#",
|
|
29080
|
-
target: "_blank",
|
|
29081
|
-
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.ArrowLeft, {
|
|
29082
|
-
className: "hd-icon hd-icon-arrow-left"
|
|
29083
|
-
}, void 0, false, {
|
|
29084
|
-
fileName: _jsxFileName$a,
|
|
29085
|
-
lineNumber: 27,
|
|
29086
|
-
columnNumber: 13
|
|
29087
|
-
}, this), i18n.translate("Back to the Extranet").fetch()]
|
|
29088
|
-
}, void 0, true, {
|
|
29089
|
-
fileName: _jsxFileName$a,
|
|
29090
|
-
lineNumber: 26,
|
|
29091
|
-
columnNumber: 11
|
|
29092
|
-
}, this)
|
|
29093
|
-
}, void 0, false, {
|
|
29094
|
-
fileName: _jsxFileName$a,
|
|
29095
|
-
lineNumber: 21,
|
|
29096
|
-
columnNumber: 9
|
|
29097
|
-
}, this));
|
|
29098
|
-
}
|
|
29099
|
-
function _assertThisInitialized(self2) {
|
|
29100
|
-
if (self2 === void 0) {
|
|
29101
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
29102
|
-
}
|
|
29103
|
-
return self2;
|
|
29104
|
-
}
|
|
29105
|
-
function _setPrototypeOf(o2, p2) {
|
|
29106
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
29107
|
-
o3.__proto__ = p3;
|
|
29108
|
-
return o3;
|
|
29109
|
-
};
|
|
29110
|
-
return _setPrototypeOf(o2, p2);
|
|
29111
|
-
}
|
|
29112
|
-
function _inheritsLoose(subClass, superClass) {
|
|
29113
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
29114
|
-
subClass.prototype.constructor = subClass;
|
|
29115
|
-
_setPrototypeOf(subClass, superClass);
|
|
29116
|
-
}
|
|
29117
|
-
var reactIs = { exports: {} };
|
|
29118
|
-
var reactIs_development = {};
|
|
29119
|
-
/** @license React v17.0.2
|
|
29120
|
-
* react-is.development.js
|
|
29121
|
-
*
|
|
29122
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29123
|
-
*
|
|
29124
|
-
* This source code is licensed under the MIT license found in the
|
|
29125
|
-
* LICENSE file in the root directory of this source tree.
|
|
29126
|
-
*/
|
|
29127
|
-
{
|
|
29128
|
-
(function() {
|
|
29129
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
29130
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
29131
|
-
var REACT_FRAGMENT_TYPE = 60107;
|
|
29132
|
-
var REACT_STRICT_MODE_TYPE = 60108;
|
|
29133
|
-
var REACT_PROFILER_TYPE = 60114;
|
|
29134
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
29135
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
29136
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
29137
|
-
var REACT_SUSPENSE_TYPE = 60113;
|
|
29138
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
29139
|
-
var REACT_MEMO_TYPE = 60115;
|
|
29140
|
-
var REACT_LAZY_TYPE = 60116;
|
|
29141
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
29142
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
29143
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
29144
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
29145
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
29146
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
29147
|
-
var symbolFor2 = Symbol.for;
|
|
29148
|
-
REACT_ELEMENT_TYPE = symbolFor2("react.element");
|
|
29149
|
-
REACT_PORTAL_TYPE = symbolFor2("react.portal");
|
|
29150
|
-
REACT_FRAGMENT_TYPE = symbolFor2("react.fragment");
|
|
29151
|
-
REACT_STRICT_MODE_TYPE = symbolFor2("react.strict_mode");
|
|
29152
|
-
REACT_PROFILER_TYPE = symbolFor2("react.profiler");
|
|
29153
|
-
REACT_PROVIDER_TYPE = symbolFor2("react.provider");
|
|
29154
|
-
REACT_CONTEXT_TYPE = symbolFor2("react.context");
|
|
29155
|
-
REACT_FORWARD_REF_TYPE = symbolFor2("react.forward_ref");
|
|
29156
|
-
REACT_SUSPENSE_TYPE = symbolFor2("react.suspense");
|
|
29157
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor2("react.suspense_list");
|
|
29158
|
-
REACT_MEMO_TYPE = symbolFor2("react.memo");
|
|
29159
|
-
REACT_LAZY_TYPE = symbolFor2("react.lazy");
|
|
29160
|
-
REACT_BLOCK_TYPE = symbolFor2("react.block");
|
|
29161
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor2("react.server.block");
|
|
29162
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor2("react.fundamental");
|
|
29163
|
-
symbolFor2("react.scope");
|
|
29164
|
-
symbolFor2("react.opaque.id");
|
|
29165
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor2("react.debug_trace_mode");
|
|
29166
|
-
symbolFor2("react.offscreen");
|
|
29167
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor2("react.legacy_hidden");
|
|
29168
|
-
}
|
|
29169
|
-
var enableScopeAPI = false;
|
|
29170
|
-
function isValidElementType(type) {
|
|
29171
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
29172
|
-
return true;
|
|
29173
|
-
}
|
|
29174
|
-
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) {
|
|
29175
|
-
return true;
|
|
29176
|
-
}
|
|
29177
|
-
if (typeof type === "object" && type !== null) {
|
|
29178
|
-
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) {
|
|
29179
|
-
return true;
|
|
29180
|
-
}
|
|
29181
|
-
}
|
|
29182
|
-
return false;
|
|
29183
|
-
}
|
|
29184
|
-
function typeOf(object) {
|
|
29185
|
-
if (typeof object === "object" && object !== null) {
|
|
29186
|
-
var $$typeof = object.$$typeof;
|
|
29187
|
-
switch ($$typeof) {
|
|
29188
|
-
case REACT_ELEMENT_TYPE:
|
|
29189
|
-
var type = object.type;
|
|
29190
|
-
switch (type) {
|
|
29191
|
-
case REACT_FRAGMENT_TYPE:
|
|
29192
|
-
case REACT_PROFILER_TYPE:
|
|
29193
|
-
case REACT_STRICT_MODE_TYPE:
|
|
29194
|
-
case REACT_SUSPENSE_TYPE:
|
|
29195
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
29196
|
-
return type;
|
|
29197
|
-
default:
|
|
29198
|
-
var $$typeofType = type && type.$$typeof;
|
|
29199
|
-
switch ($$typeofType) {
|
|
29200
|
-
case REACT_CONTEXT_TYPE:
|
|
29201
|
-
case REACT_FORWARD_REF_TYPE:
|
|
29202
|
-
case REACT_LAZY_TYPE:
|
|
29203
|
-
case REACT_MEMO_TYPE:
|
|
29204
|
-
case REACT_PROVIDER_TYPE:
|
|
29205
|
-
return $$typeofType;
|
|
29206
|
-
default:
|
|
29207
|
-
return $$typeof;
|
|
29208
|
-
}
|
|
29209
|
-
}
|
|
29210
|
-
case REACT_PORTAL_TYPE:
|
|
29211
|
-
return $$typeof;
|
|
29212
|
-
}
|
|
29213
|
-
}
|
|
29214
|
-
return void 0;
|
|
29215
|
-
}
|
|
29216
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
29217
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
29218
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
29219
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
29220
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
29221
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
29222
|
-
var Memo = REACT_MEMO_TYPE;
|
|
29223
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
29224
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
29225
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
29226
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
29227
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
29228
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
29229
|
-
function isAsyncMode(object) {
|
|
29230
|
-
{
|
|
29231
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
29232
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
29233
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.");
|
|
29234
|
-
}
|
|
29235
|
-
}
|
|
29236
|
-
return false;
|
|
29237
|
-
}
|
|
29238
|
-
function isConcurrentMode(object) {
|
|
29239
|
-
{
|
|
29240
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
29241
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
29242
|
-
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.");
|
|
29243
|
-
}
|
|
29244
|
-
}
|
|
29245
|
-
return false;
|
|
29246
|
-
}
|
|
29247
|
-
function isContextConsumer(object) {
|
|
29248
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
29249
|
-
}
|
|
29250
|
-
function isContextProvider(object) {
|
|
29251
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
29252
|
-
}
|
|
29253
|
-
function isElement(object) {
|
|
29254
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
29255
|
-
}
|
|
29256
|
-
function isForwardRef(object) {
|
|
29257
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
29258
|
-
}
|
|
29259
|
-
function isFragment(object) {
|
|
29260
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
29261
|
-
}
|
|
29262
|
-
function isLazy(object) {
|
|
29263
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
29264
|
-
}
|
|
29265
|
-
function isMemo(object) {
|
|
29266
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
29267
|
-
}
|
|
29268
|
-
function isPortal(object) {
|
|
29269
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
29270
|
-
}
|
|
29271
|
-
function isProfiler(object) {
|
|
29272
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
29273
|
-
}
|
|
29274
|
-
function isStrictMode(object) {
|
|
29275
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
29276
|
-
}
|
|
29277
|
-
function isSuspense(object) {
|
|
29278
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
29279
|
-
}
|
|
29280
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
29281
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
29282
|
-
reactIs_development.Element = Element;
|
|
29283
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
29284
|
-
reactIs_development.Fragment = Fragment;
|
|
29285
|
-
reactIs_development.Lazy = Lazy;
|
|
29286
|
-
reactIs_development.Memo = Memo;
|
|
29287
|
-
reactIs_development.Portal = Portal;
|
|
29288
|
-
reactIs_development.Profiler = Profiler;
|
|
29289
|
-
reactIs_development.StrictMode = StrictMode;
|
|
29290
|
-
reactIs_development.Suspense = Suspense;
|
|
29291
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
29292
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
29293
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
29294
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
29295
|
-
reactIs_development.isElement = isElement;
|
|
29296
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
29297
|
-
reactIs_development.isFragment = isFragment;
|
|
29298
|
-
reactIs_development.isLazy = isLazy;
|
|
29299
|
-
reactIs_development.isMemo = isMemo;
|
|
29300
|
-
reactIs_development.isPortal = isPortal;
|
|
29301
|
-
reactIs_development.isProfiler = isProfiler;
|
|
29302
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
29303
|
-
reactIs_development.isSuspense = isSuspense;
|
|
29304
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
29305
|
-
reactIs_development.typeOf = typeOf;
|
|
29306
|
-
})();
|
|
29307
|
-
}
|
|
29308
|
-
{
|
|
29309
|
-
reactIs.exports = reactIs_development;
|
|
29310
|
-
}
|
|
29311
|
-
function t(t2) {
|
|
29312
|
-
return typeof t2 == "object" && t2 != null && t2.nodeType === 1;
|
|
29313
|
-
}
|
|
29314
|
-
function e(t2, e2) {
|
|
29315
|
-
return (!e2 || t2 !== "hidden") && t2 !== "visible" && t2 !== "clip";
|
|
29316
|
-
}
|
|
29317
|
-
function n(t2, n2) {
|
|
29318
|
-
if (t2.clientHeight < t2.scrollHeight || t2.clientWidth < t2.scrollWidth) {
|
|
29319
|
-
var r2 = getComputedStyle(t2, null);
|
|
29320
|
-
return e(r2.overflowY, n2) || e(r2.overflowX, n2) || function(t3) {
|
|
29321
|
-
var e2 = function(t4) {
|
|
29322
|
-
if (!t4.ownerDocument || !t4.ownerDocument.defaultView)
|
|
29323
|
-
return null;
|
|
29324
|
-
try {
|
|
29325
|
-
return t4.ownerDocument.defaultView.frameElement;
|
|
29326
|
-
} catch (t5) {
|
|
29327
|
-
return null;
|
|
28518
|
+
return false;
|
|
28519
|
+
}
|
|
28520
|
+
function isContextConsumer(object) {
|
|
28521
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
28522
|
+
}
|
|
28523
|
+
function isContextProvider(object) {
|
|
28524
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
28525
|
+
}
|
|
28526
|
+
function isElement(object) {
|
|
28527
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
28528
|
+
}
|
|
28529
|
+
function isForwardRef(object) {
|
|
28530
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
28531
|
+
}
|
|
28532
|
+
function isFragment(object) {
|
|
28533
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
28534
|
+
}
|
|
28535
|
+
function isLazy(object) {
|
|
28536
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
28537
|
+
}
|
|
28538
|
+
function isMemo(object) {
|
|
28539
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
28540
|
+
}
|
|
28541
|
+
function isPortal(object) {
|
|
28542
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
28543
|
+
}
|
|
28544
|
+
function isProfiler(object) {
|
|
28545
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
28546
|
+
}
|
|
28547
|
+
function isStrictMode(object) {
|
|
28548
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
28549
|
+
}
|
|
28550
|
+
function isSuspense(object) {
|
|
28551
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
28552
|
+
}
|
|
28553
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
28554
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
28555
|
+
reactIs_development.Element = Element;
|
|
28556
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
28557
|
+
reactIs_development.Fragment = Fragment;
|
|
28558
|
+
reactIs_development.Lazy = Lazy;
|
|
28559
|
+
reactIs_development.Memo = Memo;
|
|
28560
|
+
reactIs_development.Portal = Portal;
|
|
28561
|
+
reactIs_development.Profiler = Profiler;
|
|
28562
|
+
reactIs_development.StrictMode = StrictMode;
|
|
28563
|
+
reactIs_development.Suspense = Suspense;
|
|
28564
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
28565
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
28566
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
28567
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
28568
|
+
reactIs_development.isElement = isElement;
|
|
28569
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
28570
|
+
reactIs_development.isFragment = isFragment;
|
|
28571
|
+
reactIs_development.isLazy = isLazy;
|
|
28572
|
+
reactIs_development.isMemo = isMemo;
|
|
28573
|
+
reactIs_development.isPortal = isPortal;
|
|
28574
|
+
reactIs_development.isProfiler = isProfiler;
|
|
28575
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
28576
|
+
reactIs_development.isSuspense = isSuspense;
|
|
28577
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
28578
|
+
reactIs_development.typeOf = typeOf;
|
|
28579
|
+
})();
|
|
28580
|
+
}
|
|
28581
|
+
{
|
|
28582
|
+
reactIs.exports = reactIs_development;
|
|
28583
|
+
}
|
|
28584
|
+
function t(t2) {
|
|
28585
|
+
return typeof t2 == "object" && t2 != null && t2.nodeType === 1;
|
|
28586
|
+
}
|
|
28587
|
+
function e(t2, e2) {
|
|
28588
|
+
return (!e2 || t2 !== "hidden") && t2 !== "visible" && t2 !== "clip";
|
|
28589
|
+
}
|
|
28590
|
+
function n(t2, n2) {
|
|
28591
|
+
if (t2.clientHeight < t2.scrollHeight || t2.clientWidth < t2.scrollWidth) {
|
|
28592
|
+
var r2 = getComputedStyle(t2, null);
|
|
28593
|
+
return e(r2.overflowY, n2) || e(r2.overflowX, n2) || function(t3) {
|
|
28594
|
+
var e2 = function(t4) {
|
|
28595
|
+
if (!t4.ownerDocument || !t4.ownerDocument.defaultView)
|
|
28596
|
+
return null;
|
|
28597
|
+
try {
|
|
28598
|
+
return t4.ownerDocument.defaultView.frameElement;
|
|
28599
|
+
} catch (t5) {
|
|
28600
|
+
return null;
|
|
29328
28601
|
}
|
|
29329
28602
|
}(t3);
|
|
29330
28603
|
return !!e2 && (e2.clientHeight < t3.scrollHeight || e2.clientWidth < t3.scrollWidth);
|
|
@@ -31100,306 +30373,1094 @@ function useCombobox(userProps) {
|
|
|
31100
30373
|
if (isInitialMountRef.current) {
|
|
31101
30374
|
return;
|
|
31102
30375
|
}
|
|
31103
|
-
previousResultCountRef.current = items.length;
|
|
31104
|
-
});
|
|
31105
|
-
var mouseAndTouchTrackersRef = useMouseAndTouchTracker(isOpen, [comboboxRef, menuRef, toggleButtonRef], environment, function() {
|
|
30376
|
+
previousResultCountRef.current = items.length;
|
|
30377
|
+
});
|
|
30378
|
+
var mouseAndTouchTrackersRef = useMouseAndTouchTracker(isOpen, [comboboxRef, menuRef, toggleButtonRef], environment, function() {
|
|
30379
|
+
dispatch({
|
|
30380
|
+
type: InputBlur,
|
|
30381
|
+
selectItem: false
|
|
30382
|
+
});
|
|
30383
|
+
});
|
|
30384
|
+
var setGetterPropCallInfo = useGetterPropsCalledChecker("getInputProps", "getComboboxProps", "getMenuProps");
|
|
30385
|
+
useEffect(function() {
|
|
30386
|
+
isInitialMountRef.current = false;
|
|
30387
|
+
}, []);
|
|
30388
|
+
useEffect(function() {
|
|
30389
|
+
if (!isOpen) {
|
|
30390
|
+
itemRefs.current = {};
|
|
30391
|
+
}
|
|
30392
|
+
}, [isOpen]);
|
|
30393
|
+
var inputKeyDownHandlers = useMemo(function() {
|
|
30394
|
+
return {
|
|
30395
|
+
ArrowDown: function ArrowDown2(event) {
|
|
30396
|
+
event.preventDefault();
|
|
30397
|
+
dispatch({
|
|
30398
|
+
type: InputKeyDownArrowDown,
|
|
30399
|
+
shiftKey: event.shiftKey,
|
|
30400
|
+
getItemNodeFromIndex
|
|
30401
|
+
});
|
|
30402
|
+
},
|
|
30403
|
+
ArrowUp: function ArrowUp2(event) {
|
|
30404
|
+
event.preventDefault();
|
|
30405
|
+
dispatch({
|
|
30406
|
+
type: InputKeyDownArrowUp,
|
|
30407
|
+
shiftKey: event.shiftKey,
|
|
30408
|
+
getItemNodeFromIndex
|
|
30409
|
+
});
|
|
30410
|
+
},
|
|
30411
|
+
Home: function Home(event) {
|
|
30412
|
+
if (!latest.current.state.isOpen) {
|
|
30413
|
+
return;
|
|
30414
|
+
}
|
|
30415
|
+
event.preventDefault();
|
|
30416
|
+
dispatch({
|
|
30417
|
+
type: InputKeyDownHome,
|
|
30418
|
+
getItemNodeFromIndex
|
|
30419
|
+
});
|
|
30420
|
+
},
|
|
30421
|
+
End: function End(event) {
|
|
30422
|
+
if (!latest.current.state.isOpen) {
|
|
30423
|
+
return;
|
|
30424
|
+
}
|
|
30425
|
+
event.preventDefault();
|
|
30426
|
+
dispatch({
|
|
30427
|
+
type: InputKeyDownEnd,
|
|
30428
|
+
getItemNodeFromIndex
|
|
30429
|
+
});
|
|
30430
|
+
},
|
|
30431
|
+
Escape: function Escape() {
|
|
30432
|
+
var latestState = latest.current.state;
|
|
30433
|
+
if (latestState.isOpen || latestState.inputValue || latestState.selectedItem || latestState.highlightedIndex > -1) {
|
|
30434
|
+
dispatch({
|
|
30435
|
+
type: InputKeyDownEscape
|
|
30436
|
+
});
|
|
30437
|
+
}
|
|
30438
|
+
},
|
|
30439
|
+
Enter: function Enter(event) {
|
|
30440
|
+
var latestState = latest.current.state;
|
|
30441
|
+
if (!latestState.isOpen || latestState.highlightedIndex < 0 || event.which === 229) {
|
|
30442
|
+
return;
|
|
30443
|
+
}
|
|
30444
|
+
event.preventDefault();
|
|
30445
|
+
dispatch({
|
|
30446
|
+
type: InputKeyDownEnter,
|
|
30447
|
+
getItemNodeFromIndex
|
|
30448
|
+
});
|
|
30449
|
+
}
|
|
30450
|
+
};
|
|
30451
|
+
}, [dispatch, latest, getItemNodeFromIndex]);
|
|
30452
|
+
var getLabelProps = useCallback(function(labelProps) {
|
|
30453
|
+
return _extends$u({
|
|
30454
|
+
id: elementIds.labelId,
|
|
30455
|
+
htmlFor: elementIds.inputId
|
|
30456
|
+
}, labelProps);
|
|
30457
|
+
}, [elementIds]);
|
|
30458
|
+
var getMenuProps = useCallback(function(_temp, _temp2) {
|
|
30459
|
+
var _extends2;
|
|
30460
|
+
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);
|
|
30461
|
+
var _ref2 = _temp2 === void 0 ? {} : _temp2, _ref2$suppressRefErro = _ref2.suppressRefError, suppressRefError = _ref2$suppressRefErro === void 0 ? false : _ref2$suppressRefErro;
|
|
30462
|
+
setGetterPropCallInfo("getMenuProps", suppressRefError, refKey, menuRef);
|
|
30463
|
+
return _extends$u((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
30464
|
+
menuRef.current = menuNode;
|
|
30465
|
+
}), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function() {
|
|
30466
|
+
dispatch({
|
|
30467
|
+
type: MenuMouseLeave
|
|
30468
|
+
});
|
|
30469
|
+
}), _extends2), rest);
|
|
30470
|
+
}, [dispatch, setGetterPropCallInfo, elementIds]);
|
|
30471
|
+
var getItemProps = useCallback(function(_temp3) {
|
|
30472
|
+
var _extends3, _ref4;
|
|
30473
|
+
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;
|
|
30474
|
+
_ref3.onPress;
|
|
30475
|
+
var rest = _objectWithoutPropertiesLoose$2(_ref3, _excluded2$1);
|
|
30476
|
+
var _latest$current = latest.current, latestProps = _latest$current.props, latestState = _latest$current.state;
|
|
30477
|
+
var itemIndex = getItemIndex(index2, item, latestProps.items);
|
|
30478
|
+
if (itemIndex < 0) {
|
|
30479
|
+
throw new Error("Pass either item or item index in getItemProps!");
|
|
30480
|
+
}
|
|
30481
|
+
var onSelectKey = "onClick";
|
|
30482
|
+
var customClickHandler = onClick;
|
|
30483
|
+
var itemHandleMouseMove = function itemHandleMouseMove2() {
|
|
30484
|
+
if (index2 === latestState.highlightedIndex) {
|
|
30485
|
+
return;
|
|
30486
|
+
}
|
|
30487
|
+
shouldScrollRef.current = false;
|
|
30488
|
+
dispatch({
|
|
30489
|
+
type: ItemMouseMove,
|
|
30490
|
+
index: index2
|
|
30491
|
+
});
|
|
30492
|
+
};
|
|
30493
|
+
var itemHandleClick = function itemHandleClick2() {
|
|
30494
|
+
dispatch({
|
|
30495
|
+
type: ItemClick,
|
|
30496
|
+
index: index2
|
|
30497
|
+
});
|
|
30498
|
+
if (inputRef.current) {
|
|
30499
|
+
inputRef.current.focus();
|
|
30500
|
+
}
|
|
30501
|
+
};
|
|
30502
|
+
return _extends$u((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(itemNode) {
|
|
30503
|
+
if (itemNode) {
|
|
30504
|
+
itemRefs.current[elementIds.getItemId(itemIndex)] = itemNode;
|
|
30505
|
+
}
|
|
30506
|
+
}), _extends3.role = "option", _extends3["aria-selected"] = "" + (itemIndex === latestState.highlightedIndex), _extends3.id = elementIds.getItemId(itemIndex), _extends3), !rest.disabled && (_ref4 = {
|
|
30507
|
+
onMouseMove: callAllEventHandlers(onMouseMove, itemHandleMouseMove)
|
|
30508
|
+
}, _ref4[onSelectKey] = callAllEventHandlers(customClickHandler, itemHandleClick), _ref4), rest);
|
|
30509
|
+
}, [dispatch, latest, shouldScrollRef, elementIds]);
|
|
30510
|
+
var getToggleButtonProps = useCallback(function(_temp4) {
|
|
30511
|
+
var _extends4;
|
|
30512
|
+
var _ref5 = _temp4 === void 0 ? {} : _temp4, onClick = _ref5.onClick;
|
|
30513
|
+
_ref5.onPress;
|
|
30514
|
+
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$2(_ref5, _excluded3);
|
|
30515
|
+
var toggleButtonHandleClick = function toggleButtonHandleClick2() {
|
|
30516
|
+
dispatch({
|
|
30517
|
+
type: ToggleButtonClick
|
|
30518
|
+
});
|
|
30519
|
+
if (!latest.current.state.isOpen && inputRef.current) {
|
|
30520
|
+
inputRef.current.focus();
|
|
30521
|
+
}
|
|
30522
|
+
};
|
|
30523
|
+
return _extends$u((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
30524
|
+
toggleButtonRef.current = toggleButtonNode;
|
|
30525
|
+
}), _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$u({}, {
|
|
30526
|
+
onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
|
|
30527
|
+
}), rest);
|
|
30528
|
+
}, [dispatch, latest, elementIds]);
|
|
30529
|
+
var getInputProps = useCallback(function(_temp5, _temp6) {
|
|
30530
|
+
var _extends5;
|
|
30531
|
+
var _ref6 = _temp5 === void 0 ? {} : _temp5, onKeyDown = _ref6.onKeyDown, onChange = _ref6.onChange, onInput = _ref6.onInput, onBlur = _ref6.onBlur;
|
|
30532
|
+
_ref6.onChangeText;
|
|
30533
|
+
var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$2(_ref6, _excluded4);
|
|
30534
|
+
var _ref7 = _temp6 === void 0 ? {} : _temp6, _ref7$suppressRefErro = _ref7.suppressRefError, suppressRefError = _ref7$suppressRefErro === void 0 ? false : _ref7$suppressRefErro;
|
|
30535
|
+
setGetterPropCallInfo("getInputProps", suppressRefError, refKey, inputRef);
|
|
30536
|
+
var latestState = latest.current.state;
|
|
30537
|
+
var inputHandleKeyDown = function inputHandleKeyDown2(event) {
|
|
30538
|
+
var key = normalizeArrowKey(event);
|
|
30539
|
+
if (key && inputKeyDownHandlers[key]) {
|
|
30540
|
+
inputKeyDownHandlers[key](event);
|
|
30541
|
+
}
|
|
30542
|
+
};
|
|
30543
|
+
var inputHandleChange = function inputHandleChange2(event) {
|
|
30544
|
+
dispatch({
|
|
30545
|
+
type: InputChange,
|
|
30546
|
+
inputValue: event.target.value
|
|
30547
|
+
});
|
|
30548
|
+
};
|
|
30549
|
+
var inputHandleBlur = function inputHandleBlur2() {
|
|
30550
|
+
if (latestState.isOpen && !mouseAndTouchTrackersRef.current.isMouseDown) {
|
|
30551
|
+
dispatch({
|
|
30552
|
+
type: InputBlur,
|
|
30553
|
+
selectItem: true
|
|
30554
|
+
});
|
|
30555
|
+
}
|
|
30556
|
+
};
|
|
30557
|
+
var onChangeKey = "onChange";
|
|
30558
|
+
var eventHandlers = {};
|
|
30559
|
+
if (!rest.disabled) {
|
|
30560
|
+
var _eventHandlers;
|
|
30561
|
+
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers);
|
|
30562
|
+
}
|
|
30563
|
+
return _extends$u((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function(inputNode) {
|
|
30564
|
+
inputRef.current = inputNode;
|
|
30565
|
+
}), _extends5.id = elementIds.inputId, _extends5["aria-autocomplete"] = "list", _extends5["aria-controls"] = elementIds.menuId, _extends5), latestState.isOpen && latestState.highlightedIndex > -1 && {
|
|
30566
|
+
"aria-activedescendant": elementIds.getItemId(latestState.highlightedIndex)
|
|
30567
|
+
}, {
|
|
30568
|
+
"aria-labelledby": elementIds.labelId,
|
|
30569
|
+
autoComplete: "off",
|
|
30570
|
+
value: latestState.inputValue
|
|
30571
|
+
}, eventHandlers, rest);
|
|
30572
|
+
}, [dispatch, inputKeyDownHandlers, latest, mouseAndTouchTrackersRef, setGetterPropCallInfo, elementIds]);
|
|
30573
|
+
var getComboboxProps = useCallback(function(_temp7, _temp8) {
|
|
30574
|
+
var _extends6;
|
|
30575
|
+
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);
|
|
30576
|
+
var _ref9 = _temp8 === void 0 ? {} : _temp8, _ref9$suppressRefErro = _ref9.suppressRefError, suppressRefError = _ref9$suppressRefErro === void 0 ? false : _ref9$suppressRefErro;
|
|
30577
|
+
setGetterPropCallInfo("getComboboxProps", suppressRefError, refKey, comboboxRef);
|
|
30578
|
+
return _extends$u((_extends6 = {}, _extends6[refKey] = handleRefs(ref, function(comboboxNode) {
|
|
30579
|
+
comboboxRef.current = comboboxNode;
|
|
30580
|
+
}), _extends6.role = "combobox", _extends6["aria-haspopup"] = "listbox", _extends6["aria-owns"] = elementIds.menuId, _extends6["aria-expanded"] = latest.current.state.isOpen, _extends6), rest);
|
|
30581
|
+
}, [latest, setGetterPropCallInfo, elementIds]);
|
|
30582
|
+
var toggleMenu = useCallback(function() {
|
|
31106
30583
|
dispatch({
|
|
31107
|
-
type:
|
|
31108
|
-
selectItem: false
|
|
30584
|
+
type: FunctionToggleMenu
|
|
31109
30585
|
});
|
|
31110
|
-
});
|
|
31111
|
-
var
|
|
31112
|
-
|
|
31113
|
-
|
|
31114
|
-
|
|
31115
|
-
|
|
31116
|
-
|
|
31117
|
-
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
|
|
31121
|
-
|
|
31122
|
-
|
|
31123
|
-
|
|
31124
|
-
|
|
31125
|
-
|
|
31126
|
-
|
|
31127
|
-
|
|
30586
|
+
}, [dispatch]);
|
|
30587
|
+
var closeMenu = useCallback(function() {
|
|
30588
|
+
dispatch({
|
|
30589
|
+
type: FunctionCloseMenu
|
|
30590
|
+
});
|
|
30591
|
+
}, [dispatch]);
|
|
30592
|
+
var openMenu = useCallback(function() {
|
|
30593
|
+
dispatch({
|
|
30594
|
+
type: FunctionOpenMenu
|
|
30595
|
+
});
|
|
30596
|
+
}, [dispatch]);
|
|
30597
|
+
var setHighlightedIndex = useCallback(function(newHighlightedIndex) {
|
|
30598
|
+
dispatch({
|
|
30599
|
+
type: FunctionSetHighlightedIndex,
|
|
30600
|
+
highlightedIndex: newHighlightedIndex
|
|
30601
|
+
});
|
|
30602
|
+
}, [dispatch]);
|
|
30603
|
+
var selectItem = useCallback(function(newSelectedItem) {
|
|
30604
|
+
dispatch({
|
|
30605
|
+
type: FunctionSelectItem,
|
|
30606
|
+
selectedItem: newSelectedItem
|
|
30607
|
+
});
|
|
30608
|
+
}, [dispatch]);
|
|
30609
|
+
var setInputValue = useCallback(function(newInputValue) {
|
|
30610
|
+
dispatch({
|
|
30611
|
+
type: FunctionSetInputValue,
|
|
30612
|
+
inputValue: newInputValue
|
|
30613
|
+
});
|
|
30614
|
+
}, [dispatch]);
|
|
30615
|
+
var reset = useCallback(function() {
|
|
30616
|
+
dispatch({
|
|
30617
|
+
type: FunctionReset$1
|
|
30618
|
+
});
|
|
30619
|
+
}, [dispatch]);
|
|
30620
|
+
return {
|
|
30621
|
+
getItemProps,
|
|
30622
|
+
getLabelProps,
|
|
30623
|
+
getMenuProps,
|
|
30624
|
+
getInputProps,
|
|
30625
|
+
getComboboxProps,
|
|
30626
|
+
getToggleButtonProps,
|
|
30627
|
+
toggleMenu,
|
|
30628
|
+
openMenu,
|
|
30629
|
+
closeMenu,
|
|
30630
|
+
setHighlightedIndex,
|
|
30631
|
+
setInputValue,
|
|
30632
|
+
selectItem,
|
|
30633
|
+
reset,
|
|
30634
|
+
highlightedIndex,
|
|
30635
|
+
isOpen,
|
|
30636
|
+
selectedItem,
|
|
30637
|
+
inputValue
|
|
30638
|
+
};
|
|
30639
|
+
}
|
|
30640
|
+
function getA11yRemovalMessage(selectionParameters) {
|
|
30641
|
+
var removedSelectedItem = selectionParameters.removedSelectedItem, itemToStringLocal = selectionParameters.itemToString;
|
|
30642
|
+
return itemToStringLocal(removedSelectedItem) + " has been removed.";
|
|
30643
|
+
}
|
|
30644
|
+
({
|
|
30645
|
+
selectedItems: PropTypes.array,
|
|
30646
|
+
initialSelectedItems: PropTypes.array,
|
|
30647
|
+
defaultSelectedItems: PropTypes.array,
|
|
30648
|
+
itemToString: PropTypes.func,
|
|
30649
|
+
getA11yRemovalMessage: PropTypes.func,
|
|
30650
|
+
stateReducer: PropTypes.func,
|
|
30651
|
+
activeIndex: PropTypes.number,
|
|
30652
|
+
initialActiveIndex: PropTypes.number,
|
|
30653
|
+
defaultActiveIndex: PropTypes.number,
|
|
30654
|
+
onActiveIndexChange: PropTypes.func,
|
|
30655
|
+
onSelectedItemsChange: PropTypes.func,
|
|
30656
|
+
keyNavigationNext: PropTypes.string,
|
|
30657
|
+
keyNavigationPrevious: PropTypes.string,
|
|
30658
|
+
environment: PropTypes.shape({
|
|
30659
|
+
addEventListener: PropTypes.func,
|
|
30660
|
+
removeEventListener: PropTypes.func,
|
|
30661
|
+
document: PropTypes.shape({
|
|
30662
|
+
getElementById: PropTypes.func,
|
|
30663
|
+
activeElement: PropTypes.any,
|
|
30664
|
+
body: PropTypes.any
|
|
30665
|
+
})
|
|
30666
|
+
})
|
|
30667
|
+
});
|
|
30668
|
+
({
|
|
30669
|
+
itemToString: defaultProps$3.itemToString,
|
|
30670
|
+
stateReducer: defaultProps$3.stateReducer,
|
|
30671
|
+
environment: defaultProps$3.environment,
|
|
30672
|
+
getA11yRemovalMessage,
|
|
30673
|
+
keyNavigationNext: "ArrowRight",
|
|
30674
|
+
keyNavigationPrevious: "ArrowLeft"
|
|
30675
|
+
});
|
|
30676
|
+
var jed = { exports: {} };
|
|
30677
|
+
/**
|
|
30678
|
+
* @preserve jed.js https://github.com/SlexAxton/Jed
|
|
30679
|
+
*/
|
|
30680
|
+
(function(module, exports) {
|
|
30681
|
+
(function(root2, undef2) {
|
|
30682
|
+
var ArrayProto = Array.prototype, ObjProto = Object.prototype, slice = ArrayProto.slice, hasOwnProp = ObjProto.hasOwnProperty, nativeForEach = ArrayProto.forEach, breaker = {};
|
|
30683
|
+
var _2 = {
|
|
30684
|
+
forEach: function(obj, iterator, context) {
|
|
30685
|
+
var i2, l2, key;
|
|
30686
|
+
if (obj === null) {
|
|
30687
|
+
return;
|
|
30688
|
+
}
|
|
30689
|
+
if (nativeForEach && obj.forEach === nativeForEach) {
|
|
30690
|
+
obj.forEach(iterator, context);
|
|
30691
|
+
} else if (obj.length === +obj.length) {
|
|
30692
|
+
for (i2 = 0, l2 = obj.length; i2 < l2; i2++) {
|
|
30693
|
+
if (i2 in obj && iterator.call(context, obj[i2], i2, obj) === breaker) {
|
|
30694
|
+
return;
|
|
30695
|
+
}
|
|
30696
|
+
}
|
|
30697
|
+
} else {
|
|
30698
|
+
for (key in obj) {
|
|
30699
|
+
if (hasOwnProp.call(obj, key)) {
|
|
30700
|
+
if (iterator.call(context, obj[key], key, obj) === breaker) {
|
|
30701
|
+
return;
|
|
30702
|
+
}
|
|
30703
|
+
}
|
|
30704
|
+
}
|
|
30705
|
+
}
|
|
30706
|
+
},
|
|
30707
|
+
extend: function(obj) {
|
|
30708
|
+
this.forEach(slice.call(arguments, 1), function(source) {
|
|
30709
|
+
for (var prop in source) {
|
|
30710
|
+
obj[prop] = source[prop];
|
|
30711
|
+
}
|
|
31128
30712
|
});
|
|
30713
|
+
return obj;
|
|
30714
|
+
}
|
|
30715
|
+
};
|
|
30716
|
+
var Jed2 = function(options) {
|
|
30717
|
+
this.defaults = {
|
|
30718
|
+
"locale_data": {
|
|
30719
|
+
"messages": {
|
|
30720
|
+
"": {
|
|
30721
|
+
"domain": "messages",
|
|
30722
|
+
"lang": "en",
|
|
30723
|
+
"plural_forms": "nplurals=2; plural=(n != 1);"
|
|
30724
|
+
}
|
|
30725
|
+
}
|
|
30726
|
+
},
|
|
30727
|
+
"domain": "messages",
|
|
30728
|
+
"debug": false
|
|
30729
|
+
};
|
|
30730
|
+
this.options = _2.extend({}, this.defaults, options);
|
|
30731
|
+
this.textdomain(this.options.domain);
|
|
30732
|
+
if (options.domain && !this.options.locale_data[this.options.domain]) {
|
|
30733
|
+
throw new Error("Text domain set to non-existent domain: `" + options.domain + "`");
|
|
30734
|
+
}
|
|
30735
|
+
};
|
|
30736
|
+
Jed2.context_delimiter = String.fromCharCode(4);
|
|
30737
|
+
function getPluralFormFunc(plural_form_string) {
|
|
30738
|
+
return Jed2.PF.compile(plural_form_string || "nplurals=2; plural=(n != 1);");
|
|
30739
|
+
}
|
|
30740
|
+
function Chain(key, i18n) {
|
|
30741
|
+
this._key = key;
|
|
30742
|
+
this._i18n = i18n;
|
|
30743
|
+
}
|
|
30744
|
+
_2.extend(Chain.prototype, {
|
|
30745
|
+
onDomain: function(domain) {
|
|
30746
|
+
this._domain = domain;
|
|
30747
|
+
return this;
|
|
31129
30748
|
},
|
|
31130
|
-
|
|
31131
|
-
|
|
31132
|
-
|
|
31133
|
-
type: InputKeyDownArrowUp,
|
|
31134
|
-
shiftKey: event.shiftKey,
|
|
31135
|
-
getItemNodeFromIndex
|
|
31136
|
-
});
|
|
30749
|
+
withContext: function(context) {
|
|
30750
|
+
this._context = context;
|
|
30751
|
+
return this;
|
|
31137
30752
|
},
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
30753
|
+
ifPlural: function(num, pkey) {
|
|
30754
|
+
this._val = num;
|
|
30755
|
+
this._pkey = pkey;
|
|
30756
|
+
return this;
|
|
30757
|
+
},
|
|
30758
|
+
fetch: function(sArr) {
|
|
30759
|
+
if ({}.toString.call(sArr) != "[object Array]") {
|
|
30760
|
+
sArr = [].slice.call(arguments, 0);
|
|
31141
30761
|
}
|
|
31142
|
-
|
|
31143
|
-
|
|
31144
|
-
|
|
31145
|
-
|
|
31146
|
-
|
|
30762
|
+
return (sArr && sArr.length ? Jed2.sprintf : function(x2) {
|
|
30763
|
+
return x2;
|
|
30764
|
+
})(this._i18n.dcnpgettext(this._domain, this._context, this._key, this._pkey, this._val), sArr);
|
|
30765
|
+
}
|
|
30766
|
+
});
|
|
30767
|
+
_2.extend(Jed2.prototype, {
|
|
30768
|
+
translate: function(key) {
|
|
30769
|
+
return new Chain(key, this);
|
|
31147
30770
|
},
|
|
31148
|
-
|
|
31149
|
-
if (!
|
|
31150
|
-
return;
|
|
30771
|
+
textdomain: function(domain) {
|
|
30772
|
+
if (!domain) {
|
|
30773
|
+
return this._textdomain;
|
|
30774
|
+
}
|
|
30775
|
+
this._textdomain = domain;
|
|
30776
|
+
},
|
|
30777
|
+
gettext: function(key) {
|
|
30778
|
+
return this.dcnpgettext.call(this, undef2, undef2, key);
|
|
30779
|
+
},
|
|
30780
|
+
dgettext: function(domain, key) {
|
|
30781
|
+
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
30782
|
+
},
|
|
30783
|
+
dcgettext: function(domain, key) {
|
|
30784
|
+
return this.dcnpgettext.call(this, domain, undef2, key);
|
|
30785
|
+
},
|
|
30786
|
+
ngettext: function(skey, pkey, val) {
|
|
30787
|
+
return this.dcnpgettext.call(this, undef2, undef2, skey, pkey, val);
|
|
30788
|
+
},
|
|
30789
|
+
dngettext: function(domain, skey, pkey, val) {
|
|
30790
|
+
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
30791
|
+
},
|
|
30792
|
+
dcngettext: function(domain, skey, pkey, val) {
|
|
30793
|
+
return this.dcnpgettext.call(this, domain, undef2, skey, pkey, val);
|
|
30794
|
+
},
|
|
30795
|
+
pgettext: function(context, key) {
|
|
30796
|
+
return this.dcnpgettext.call(this, undef2, context, key);
|
|
30797
|
+
},
|
|
30798
|
+
dpgettext: function(domain, context, key) {
|
|
30799
|
+
return this.dcnpgettext.call(this, domain, context, key);
|
|
30800
|
+
},
|
|
30801
|
+
dcpgettext: function(domain, context, key) {
|
|
30802
|
+
return this.dcnpgettext.call(this, domain, context, key);
|
|
30803
|
+
},
|
|
30804
|
+
npgettext: function(context, skey, pkey, val) {
|
|
30805
|
+
return this.dcnpgettext.call(this, undef2, context, skey, pkey, val);
|
|
30806
|
+
},
|
|
30807
|
+
dnpgettext: function(domain, context, skey, pkey, val) {
|
|
30808
|
+
return this.dcnpgettext.call(this, domain, context, skey, pkey, val);
|
|
30809
|
+
},
|
|
30810
|
+
dcnpgettext: function(domain, context, singular_key, plural_key, val) {
|
|
30811
|
+
plural_key = plural_key || singular_key;
|
|
30812
|
+
domain = domain || this._textdomain;
|
|
30813
|
+
var fallback;
|
|
30814
|
+
if (!this.options) {
|
|
30815
|
+
fallback = new Jed2();
|
|
30816
|
+
return fallback.dcnpgettext.call(fallback, void 0, void 0, singular_key, plural_key, val);
|
|
30817
|
+
}
|
|
30818
|
+
if (!this.options.locale_data) {
|
|
30819
|
+
throw new Error("No locale data provided.");
|
|
30820
|
+
}
|
|
30821
|
+
if (!this.options.locale_data[domain]) {
|
|
30822
|
+
throw new Error("Domain `" + domain + "` was not found.");
|
|
30823
|
+
}
|
|
30824
|
+
if (!this.options.locale_data[domain][""]) {
|
|
30825
|
+
throw new Error("No locale meta information provided.");
|
|
30826
|
+
}
|
|
30827
|
+
if (!singular_key) {
|
|
30828
|
+
throw new Error("No translation key found.");
|
|
30829
|
+
}
|
|
30830
|
+
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;
|
|
30831
|
+
var val_idx;
|
|
30832
|
+
if (val === void 0) {
|
|
30833
|
+
val_idx = 0;
|
|
30834
|
+
} else {
|
|
30835
|
+
if (typeof val != "number") {
|
|
30836
|
+
val = parseInt(val, 10);
|
|
30837
|
+
if (isNaN(val)) {
|
|
30838
|
+
throw new Error("The number that was passed in is not a number.");
|
|
30839
|
+
}
|
|
30840
|
+
}
|
|
30841
|
+
val_idx = getPluralFormFunc(pluralForms)(val);
|
|
30842
|
+
}
|
|
30843
|
+
if (!dict) {
|
|
30844
|
+
throw new Error("No domain named `" + domain + "` could be found.");
|
|
30845
|
+
}
|
|
30846
|
+
val_list = dict[key];
|
|
30847
|
+
if (!val_list || val_idx > val_list.length) {
|
|
30848
|
+
if (this.options.missing_key_callback) {
|
|
30849
|
+
this.options.missing_key_callback(key, domain);
|
|
30850
|
+
}
|
|
30851
|
+
res = [singular_key, plural_key];
|
|
30852
|
+
if (this.options.debug === true) {
|
|
30853
|
+
console.log(res[getPluralFormFunc(pluralForms)(val)]);
|
|
30854
|
+
}
|
|
30855
|
+
return res[getPluralFormFunc()(val)];
|
|
30856
|
+
}
|
|
30857
|
+
res = val_list[val_idx];
|
|
30858
|
+
if (!res) {
|
|
30859
|
+
res = [singular_key, plural_key];
|
|
30860
|
+
return res[getPluralFormFunc()(val)];
|
|
30861
|
+
}
|
|
30862
|
+
return res;
|
|
30863
|
+
}
|
|
30864
|
+
});
|
|
30865
|
+
var sprintf = function() {
|
|
30866
|
+
function get_type(variable) {
|
|
30867
|
+
return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
|
|
30868
|
+
}
|
|
30869
|
+
function str_repeat(input, multiplier) {
|
|
30870
|
+
for (var output = []; multiplier > 0; output[--multiplier] = input) {
|
|
30871
|
+
}
|
|
30872
|
+
return output.join("");
|
|
30873
|
+
}
|
|
30874
|
+
var str_format = function() {
|
|
30875
|
+
if (!str_format.cache.hasOwnProperty(arguments[0])) {
|
|
30876
|
+
str_format.cache[arguments[0]] = str_format.parse(arguments[0]);
|
|
30877
|
+
}
|
|
30878
|
+
return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
|
|
30879
|
+
};
|
|
30880
|
+
str_format.format = function(parse_tree, argv) {
|
|
30881
|
+
var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i2, k2, match3, pad, pad_character, pad_length;
|
|
30882
|
+
for (i2 = 0; i2 < tree_length; i2++) {
|
|
30883
|
+
node_type = get_type(parse_tree[i2]);
|
|
30884
|
+
if (node_type === "string") {
|
|
30885
|
+
output.push(parse_tree[i2]);
|
|
30886
|
+
} else if (node_type === "array") {
|
|
30887
|
+
match3 = parse_tree[i2];
|
|
30888
|
+
if (match3[2]) {
|
|
30889
|
+
arg = argv[cursor];
|
|
30890
|
+
for (k2 = 0; k2 < match3[2].length; k2++) {
|
|
30891
|
+
if (!arg.hasOwnProperty(match3[2][k2])) {
|
|
30892
|
+
throw sprintf('[sprintf] property "%s" does not exist', match3[2][k2]);
|
|
30893
|
+
}
|
|
30894
|
+
arg = arg[match3[2][k2]];
|
|
30895
|
+
}
|
|
30896
|
+
} else if (match3[1]) {
|
|
30897
|
+
arg = argv[match3[1]];
|
|
30898
|
+
} else {
|
|
30899
|
+
arg = argv[cursor++];
|
|
30900
|
+
}
|
|
30901
|
+
if (/[^s]/.test(match3[8]) && get_type(arg) != "number") {
|
|
30902
|
+
throw sprintf("[sprintf] expecting number but found %s", get_type(arg));
|
|
30903
|
+
}
|
|
30904
|
+
if (typeof arg == "undefined" || arg === null) {
|
|
30905
|
+
arg = "";
|
|
30906
|
+
}
|
|
30907
|
+
switch (match3[8]) {
|
|
30908
|
+
case "b":
|
|
30909
|
+
arg = arg.toString(2);
|
|
30910
|
+
break;
|
|
30911
|
+
case "c":
|
|
30912
|
+
arg = String.fromCharCode(arg);
|
|
30913
|
+
break;
|
|
30914
|
+
case "d":
|
|
30915
|
+
arg = parseInt(arg, 10);
|
|
30916
|
+
break;
|
|
30917
|
+
case "e":
|
|
30918
|
+
arg = match3[7] ? arg.toExponential(match3[7]) : arg.toExponential();
|
|
30919
|
+
break;
|
|
30920
|
+
case "f":
|
|
30921
|
+
arg = match3[7] ? parseFloat(arg).toFixed(match3[7]) : parseFloat(arg);
|
|
30922
|
+
break;
|
|
30923
|
+
case "o":
|
|
30924
|
+
arg = arg.toString(8);
|
|
30925
|
+
break;
|
|
30926
|
+
case "s":
|
|
30927
|
+
arg = (arg = String(arg)) && match3[7] ? arg.substring(0, match3[7]) : arg;
|
|
30928
|
+
break;
|
|
30929
|
+
case "u":
|
|
30930
|
+
arg = Math.abs(arg);
|
|
30931
|
+
break;
|
|
30932
|
+
case "x":
|
|
30933
|
+
arg = arg.toString(16);
|
|
30934
|
+
break;
|
|
30935
|
+
case "X":
|
|
30936
|
+
arg = arg.toString(16).toUpperCase();
|
|
30937
|
+
break;
|
|
30938
|
+
}
|
|
30939
|
+
arg = /[def]/.test(match3[8]) && match3[3] && arg >= 0 ? "+" + arg : arg;
|
|
30940
|
+
pad_character = match3[4] ? match3[4] == "0" ? "0" : match3[4].charAt(1) : " ";
|
|
30941
|
+
pad_length = match3[6] - String(arg).length;
|
|
30942
|
+
pad = match3[6] ? str_repeat(pad_character, pad_length) : "";
|
|
30943
|
+
output.push(match3[5] ? arg + pad : pad + arg);
|
|
30944
|
+
}
|
|
30945
|
+
}
|
|
30946
|
+
return output.join("");
|
|
30947
|
+
};
|
|
30948
|
+
str_format.cache = {};
|
|
30949
|
+
str_format.parse = function(fmt) {
|
|
30950
|
+
var _fmt = fmt, match3 = [], parse_tree = [], arg_names = 0;
|
|
30951
|
+
while (_fmt) {
|
|
30952
|
+
if ((match3 = /^[^\x25]+/.exec(_fmt)) !== null) {
|
|
30953
|
+
parse_tree.push(match3[0]);
|
|
30954
|
+
} else if ((match3 = /^\x25{2}/.exec(_fmt)) !== null) {
|
|
30955
|
+
parse_tree.push("%");
|
|
30956
|
+
} else if ((match3 = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
|
|
30957
|
+
if (match3[2]) {
|
|
30958
|
+
arg_names |= 1;
|
|
30959
|
+
var field_list = [], replacement_field = match3[2], field_match = [];
|
|
30960
|
+
if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
30961
|
+
field_list.push(field_match[1]);
|
|
30962
|
+
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
30963
|
+
if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
|
|
30964
|
+
field_list.push(field_match[1]);
|
|
30965
|
+
} else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
|
|
30966
|
+
field_list.push(field_match[1]);
|
|
30967
|
+
} else {
|
|
30968
|
+
throw "[sprintf] huh?";
|
|
30969
|
+
}
|
|
30970
|
+
}
|
|
30971
|
+
} else {
|
|
30972
|
+
throw "[sprintf] huh?";
|
|
30973
|
+
}
|
|
30974
|
+
match3[2] = field_list;
|
|
30975
|
+
} else {
|
|
30976
|
+
arg_names |= 2;
|
|
30977
|
+
}
|
|
30978
|
+
if (arg_names === 3) {
|
|
30979
|
+
throw "[sprintf] mixing positional and named placeholders is not (yet) supported";
|
|
30980
|
+
}
|
|
30981
|
+
parse_tree.push(match3);
|
|
30982
|
+
} else {
|
|
30983
|
+
throw "[sprintf] huh?";
|
|
30984
|
+
}
|
|
30985
|
+
_fmt = _fmt.substring(match3[0].length);
|
|
31151
30986
|
}
|
|
31152
|
-
|
|
31153
|
-
|
|
31154
|
-
|
|
31155
|
-
|
|
31156
|
-
|
|
31157
|
-
|
|
31158
|
-
|
|
31159
|
-
|
|
31160
|
-
|
|
31161
|
-
|
|
31162
|
-
|
|
31163
|
-
|
|
30987
|
+
return parse_tree;
|
|
30988
|
+
};
|
|
30989
|
+
return str_format;
|
|
30990
|
+
}();
|
|
30991
|
+
var vsprintf = function(fmt, argv) {
|
|
30992
|
+
argv.unshift(fmt);
|
|
30993
|
+
return sprintf.apply(null, argv);
|
|
30994
|
+
};
|
|
30995
|
+
Jed2.parse_plural = function(plural_forms, n2) {
|
|
30996
|
+
plural_forms = plural_forms.replace(/n/g, n2);
|
|
30997
|
+
return Jed2.parse_expression(plural_forms);
|
|
30998
|
+
};
|
|
30999
|
+
Jed2.sprintf = function(fmt, args) {
|
|
31000
|
+
if ({}.toString.call(args) == "[object Array]") {
|
|
31001
|
+
return vsprintf(fmt, [].slice.call(args));
|
|
31002
|
+
}
|
|
31003
|
+
return sprintf.apply(this, [].slice.call(arguments));
|
|
31004
|
+
};
|
|
31005
|
+
Jed2.prototype.sprintf = function() {
|
|
31006
|
+
return Jed2.sprintf.apply(this, arguments);
|
|
31007
|
+
};
|
|
31008
|
+
Jed2.PF = {};
|
|
31009
|
+
Jed2.PF.parse = function(p2) {
|
|
31010
|
+
var plural_str = Jed2.PF.extractPluralExpr(p2);
|
|
31011
|
+
return Jed2.PF.parser.parse.call(Jed2.PF.parser, plural_str);
|
|
31012
|
+
};
|
|
31013
|
+
Jed2.PF.compile = function(p2) {
|
|
31014
|
+
function imply(val) {
|
|
31015
|
+
return val === true ? 1 : val ? val : 0;
|
|
31016
|
+
}
|
|
31017
|
+
var ast = Jed2.PF.parse(p2);
|
|
31018
|
+
return function(n2) {
|
|
31019
|
+
return imply(Jed2.PF.interpreter(ast)(n2));
|
|
31020
|
+
};
|
|
31021
|
+
};
|
|
31022
|
+
Jed2.PF.interpreter = function(ast) {
|
|
31023
|
+
return function(n2) {
|
|
31024
|
+
switch (ast.type) {
|
|
31025
|
+
case "GROUP":
|
|
31026
|
+
return Jed2.PF.interpreter(ast.expr)(n2);
|
|
31027
|
+
case "TERNARY":
|
|
31028
|
+
if (Jed2.PF.interpreter(ast.expr)(n2)) {
|
|
31029
|
+
return Jed2.PF.interpreter(ast.truthy)(n2);
|
|
31030
|
+
}
|
|
31031
|
+
return Jed2.PF.interpreter(ast.falsey)(n2);
|
|
31032
|
+
case "OR":
|
|
31033
|
+
return Jed2.PF.interpreter(ast.left)(n2) || Jed2.PF.interpreter(ast.right)(n2);
|
|
31034
|
+
case "AND":
|
|
31035
|
+
return Jed2.PF.interpreter(ast.left)(n2) && Jed2.PF.interpreter(ast.right)(n2);
|
|
31036
|
+
case "LT":
|
|
31037
|
+
return Jed2.PF.interpreter(ast.left)(n2) < Jed2.PF.interpreter(ast.right)(n2);
|
|
31038
|
+
case "GT":
|
|
31039
|
+
return Jed2.PF.interpreter(ast.left)(n2) > Jed2.PF.interpreter(ast.right)(n2);
|
|
31040
|
+
case "LTE":
|
|
31041
|
+
return Jed2.PF.interpreter(ast.left)(n2) <= Jed2.PF.interpreter(ast.right)(n2);
|
|
31042
|
+
case "GTE":
|
|
31043
|
+
return Jed2.PF.interpreter(ast.left)(n2) >= Jed2.PF.interpreter(ast.right)(n2);
|
|
31044
|
+
case "EQ":
|
|
31045
|
+
return Jed2.PF.interpreter(ast.left)(n2) == Jed2.PF.interpreter(ast.right)(n2);
|
|
31046
|
+
case "NEQ":
|
|
31047
|
+
return Jed2.PF.interpreter(ast.left)(n2) != Jed2.PF.interpreter(ast.right)(n2);
|
|
31048
|
+
case "MOD":
|
|
31049
|
+
return Jed2.PF.interpreter(ast.left)(n2) % Jed2.PF.interpreter(ast.right)(n2);
|
|
31050
|
+
case "VAR":
|
|
31051
|
+
return n2;
|
|
31052
|
+
case "NUM":
|
|
31053
|
+
return ast.val;
|
|
31054
|
+
default:
|
|
31055
|
+
throw new Error("Invalid Token found.");
|
|
31164
31056
|
}
|
|
31165
|
-
}
|
|
31166
|
-
|
|
31167
|
-
|
|
31168
|
-
|
|
31169
|
-
|
|
31057
|
+
};
|
|
31058
|
+
};
|
|
31059
|
+
Jed2.PF.extractPluralExpr = function(p2) {
|
|
31060
|
+
p2 = p2.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
31061
|
+
if (!/;\s*$/.test(p2)) {
|
|
31062
|
+
p2 = p2.concat(";");
|
|
31063
|
+
}
|
|
31064
|
+
var nplurals_re = /nplurals\=(\d+);/, plural_re = /plural\=(.*);/, nplurals_matches = p2.match(nplurals_re), plural_matches;
|
|
31065
|
+
if (nplurals_matches.length > 1)
|
|
31066
|
+
;
|
|
31067
|
+
else {
|
|
31068
|
+
throw new Error("nplurals not found in plural_forms string: " + p2);
|
|
31069
|
+
}
|
|
31070
|
+
p2 = p2.replace(nplurals_re, "");
|
|
31071
|
+
plural_matches = p2.match(plural_re);
|
|
31072
|
+
if (!(plural_matches && plural_matches.length > 1)) {
|
|
31073
|
+
throw new Error("`plural` expression not found: " + p2);
|
|
31074
|
+
}
|
|
31075
|
+
return plural_matches[1];
|
|
31076
|
+
};
|
|
31077
|
+
Jed2.PF.parser = function() {
|
|
31078
|
+
var parser = {
|
|
31079
|
+
trace: function trace() {
|
|
31080
|
+
},
|
|
31081
|
+
yy: {},
|
|
31082
|
+
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 },
|
|
31083
|
+
terminals_: { 2: "error", 5: "EOF", 6: "?", 7: ":", 8: "||", 9: "&&", 10: "<", 11: "<=", 12: ">", 13: ">=", 14: "!=", 15: "==", 16: "%", 17: "(", 18: ")", 19: "n", 20: "NUMBER" },
|
|
31084
|
+
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]],
|
|
31085
|
+
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
31086
|
+
var $0 = $$.length - 1;
|
|
31087
|
+
switch (yystate) {
|
|
31088
|
+
case 1:
|
|
31089
|
+
return { type: "GROUP", expr: $$[$0 - 1] };
|
|
31090
|
+
case 2:
|
|
31091
|
+
this.$ = { type: "TERNARY", expr: $$[$0 - 4], truthy: $$[$0 - 2], falsey: $$[$0] };
|
|
31092
|
+
break;
|
|
31093
|
+
case 3:
|
|
31094
|
+
this.$ = { type: "OR", left: $$[$0 - 2], right: $$[$0] };
|
|
31095
|
+
break;
|
|
31096
|
+
case 4:
|
|
31097
|
+
this.$ = { type: "AND", left: $$[$0 - 2], right: $$[$0] };
|
|
31098
|
+
break;
|
|
31099
|
+
case 5:
|
|
31100
|
+
this.$ = { type: "LT", left: $$[$0 - 2], right: $$[$0] };
|
|
31101
|
+
break;
|
|
31102
|
+
case 6:
|
|
31103
|
+
this.$ = { type: "LTE", left: $$[$0 - 2], right: $$[$0] };
|
|
31104
|
+
break;
|
|
31105
|
+
case 7:
|
|
31106
|
+
this.$ = { type: "GT", left: $$[$0 - 2], right: $$[$0] };
|
|
31107
|
+
break;
|
|
31108
|
+
case 8:
|
|
31109
|
+
this.$ = { type: "GTE", left: $$[$0 - 2], right: $$[$0] };
|
|
31110
|
+
break;
|
|
31111
|
+
case 9:
|
|
31112
|
+
this.$ = { type: "NEQ", left: $$[$0 - 2], right: $$[$0] };
|
|
31113
|
+
break;
|
|
31114
|
+
case 10:
|
|
31115
|
+
this.$ = { type: "EQ", left: $$[$0 - 2], right: $$[$0] };
|
|
31116
|
+
break;
|
|
31117
|
+
case 11:
|
|
31118
|
+
this.$ = { type: "MOD", left: $$[$0 - 2], right: $$[$0] };
|
|
31119
|
+
break;
|
|
31120
|
+
case 12:
|
|
31121
|
+
this.$ = { type: "GROUP", expr: $$[$0 - 1] };
|
|
31122
|
+
break;
|
|
31123
|
+
case 13:
|
|
31124
|
+
this.$ = { type: "VAR" };
|
|
31125
|
+
break;
|
|
31126
|
+
case 14:
|
|
31127
|
+
this.$ = { type: "NUM", val: Number(yytext) };
|
|
31128
|
+
break;
|
|
31129
|
+
}
|
|
31130
|
+
},
|
|
31131
|
+
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] }],
|
|
31132
|
+
defaultActions: { 6: [2, 1] },
|
|
31133
|
+
parseError: function parseError(str, hash) {
|
|
31134
|
+
throw new Error(str);
|
|
31135
|
+
},
|
|
31136
|
+
parse: function parse2(input) {
|
|
31137
|
+
var self2 = this, stack = [0], vstack = [null], lstack = [], table2 = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
31138
|
+
this.lexer.setInput(input);
|
|
31139
|
+
this.lexer.yy = this.yy;
|
|
31140
|
+
this.yy.lexer = this.lexer;
|
|
31141
|
+
if (typeof this.lexer.yylloc == "undefined")
|
|
31142
|
+
this.lexer.yylloc = {};
|
|
31143
|
+
var yyloc = this.lexer.yylloc;
|
|
31144
|
+
lstack.push(yyloc);
|
|
31145
|
+
if (typeof this.yy.parseError === "function")
|
|
31146
|
+
this.parseError = this.yy.parseError;
|
|
31147
|
+
function popStack(n2) {
|
|
31148
|
+
stack.length = stack.length - 2 * n2;
|
|
31149
|
+
vstack.length = vstack.length - n2;
|
|
31150
|
+
lstack.length = lstack.length - n2;
|
|
31151
|
+
}
|
|
31152
|
+
function lex() {
|
|
31153
|
+
var token2;
|
|
31154
|
+
token2 = self2.lexer.lex() || 1;
|
|
31155
|
+
if (typeof token2 !== "number") {
|
|
31156
|
+
token2 = self2.symbols_[token2] || token2;
|
|
31157
|
+
}
|
|
31158
|
+
return token2;
|
|
31159
|
+
}
|
|
31160
|
+
var symbol, preErrorSymbol, state, action, r2, yyval = {}, p2, len, newState, expected;
|
|
31161
|
+
while (true) {
|
|
31162
|
+
state = stack[stack.length - 1];
|
|
31163
|
+
if (this.defaultActions[state]) {
|
|
31164
|
+
action = this.defaultActions[state];
|
|
31165
|
+
} else {
|
|
31166
|
+
if (symbol == null)
|
|
31167
|
+
symbol = lex();
|
|
31168
|
+
action = table2[state] && table2[state][symbol];
|
|
31169
|
+
}
|
|
31170
|
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
31171
|
+
if (!recovering) {
|
|
31172
|
+
expected = [];
|
|
31173
|
+
for (p2 in table2[state])
|
|
31174
|
+
if (this.terminals_[p2] && p2 > 2) {
|
|
31175
|
+
expected.push("'" + this.terminals_[p2] + "'");
|
|
31176
|
+
}
|
|
31177
|
+
var errStr = "";
|
|
31178
|
+
if (this.lexer.showPosition) {
|
|
31179
|
+
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + this.terminals_[symbol] + "'";
|
|
31180
|
+
} else {
|
|
31181
|
+
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
31182
|
+
}
|
|
31183
|
+
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
|
31184
|
+
}
|
|
31185
|
+
if (recovering == 3) {
|
|
31186
|
+
if (symbol == EOF) {
|
|
31187
|
+
throw new Error(errStr || "Parsing halted.");
|
|
31188
|
+
}
|
|
31189
|
+
yyleng = this.lexer.yyleng;
|
|
31190
|
+
yytext = this.lexer.yytext;
|
|
31191
|
+
yylineno = this.lexer.yylineno;
|
|
31192
|
+
yyloc = this.lexer.yylloc;
|
|
31193
|
+
symbol = lex();
|
|
31194
|
+
}
|
|
31195
|
+
while (1) {
|
|
31196
|
+
if (TERROR.toString() in table2[state]) {
|
|
31197
|
+
break;
|
|
31198
|
+
}
|
|
31199
|
+
if (state == 0) {
|
|
31200
|
+
throw new Error(errStr || "Parsing halted.");
|
|
31201
|
+
}
|
|
31202
|
+
popStack(1);
|
|
31203
|
+
state = stack[stack.length - 1];
|
|
31204
|
+
}
|
|
31205
|
+
preErrorSymbol = symbol;
|
|
31206
|
+
symbol = TERROR;
|
|
31207
|
+
state = stack[stack.length - 1];
|
|
31208
|
+
action = table2[state] && table2[state][TERROR];
|
|
31209
|
+
recovering = 3;
|
|
31210
|
+
}
|
|
31211
|
+
if (action[0] instanceof Array && action.length > 1) {
|
|
31212
|
+
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
31213
|
+
}
|
|
31214
|
+
switch (action[0]) {
|
|
31215
|
+
case 1:
|
|
31216
|
+
stack.push(symbol);
|
|
31217
|
+
vstack.push(this.lexer.yytext);
|
|
31218
|
+
lstack.push(this.lexer.yylloc);
|
|
31219
|
+
stack.push(action[1]);
|
|
31220
|
+
symbol = null;
|
|
31221
|
+
if (!preErrorSymbol) {
|
|
31222
|
+
yyleng = this.lexer.yyleng;
|
|
31223
|
+
yytext = this.lexer.yytext;
|
|
31224
|
+
yylineno = this.lexer.yylineno;
|
|
31225
|
+
yyloc = this.lexer.yylloc;
|
|
31226
|
+
if (recovering > 0)
|
|
31227
|
+
recovering--;
|
|
31228
|
+
} else {
|
|
31229
|
+
symbol = preErrorSymbol;
|
|
31230
|
+
preErrorSymbol = null;
|
|
31231
|
+
}
|
|
31232
|
+
break;
|
|
31233
|
+
case 2:
|
|
31234
|
+
len = this.productions_[action[1]][1];
|
|
31235
|
+
yyval.$ = vstack[vstack.length - len];
|
|
31236
|
+
yyval._$ = {
|
|
31237
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
31238
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
31239
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
31240
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
31241
|
+
};
|
|
31242
|
+
r2 = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
|
|
31243
|
+
if (typeof r2 !== "undefined") {
|
|
31244
|
+
return r2;
|
|
31245
|
+
}
|
|
31246
|
+
if (len) {
|
|
31247
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
31248
|
+
vstack = vstack.slice(0, -1 * len);
|
|
31249
|
+
lstack = lstack.slice(0, -1 * len);
|
|
31250
|
+
}
|
|
31251
|
+
stack.push(this.productions_[action[1]][0]);
|
|
31252
|
+
vstack.push(yyval.$);
|
|
31253
|
+
lstack.push(yyval._$);
|
|
31254
|
+
newState = table2[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
31255
|
+
stack.push(newState);
|
|
31256
|
+
break;
|
|
31257
|
+
case 3:
|
|
31258
|
+
return true;
|
|
31259
|
+
}
|
|
31260
|
+
}
|
|
31261
|
+
return true;
|
|
31170
31262
|
}
|
|
31171
|
-
|
|
31172
|
-
|
|
31173
|
-
|
|
31174
|
-
|
|
31175
|
-
|
|
31176
|
-
|
|
31177
|
-
|
|
31178
|
-
|
|
31179
|
-
|
|
31180
|
-
|
|
31181
|
-
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
|
|
31185
|
-
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31190
|
-
|
|
31191
|
-
|
|
31192
|
-
|
|
31193
|
-
|
|
31194
|
-
|
|
31195
|
-
|
|
31196
|
-
|
|
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
|
-
|
|
31263
|
+
};
|
|
31264
|
+
var lexer = function() {
|
|
31265
|
+
var lexer2 = {
|
|
31266
|
+
EOF: 1,
|
|
31267
|
+
parseError: function parseError(str, hash) {
|
|
31268
|
+
if (this.yy.parseError) {
|
|
31269
|
+
this.yy.parseError(str, hash);
|
|
31270
|
+
} else {
|
|
31271
|
+
throw new Error(str);
|
|
31272
|
+
}
|
|
31273
|
+
},
|
|
31274
|
+
setInput: function(input) {
|
|
31275
|
+
this._input = input;
|
|
31276
|
+
this._more = this._less = this.done = false;
|
|
31277
|
+
this.yylineno = this.yyleng = 0;
|
|
31278
|
+
this.yytext = this.matched = this.match = "";
|
|
31279
|
+
this.conditionStack = ["INITIAL"];
|
|
31280
|
+
this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 };
|
|
31281
|
+
return this;
|
|
31282
|
+
},
|
|
31283
|
+
input: function() {
|
|
31284
|
+
var ch = this._input[0];
|
|
31285
|
+
this.yytext += ch;
|
|
31286
|
+
this.yyleng++;
|
|
31287
|
+
this.match += ch;
|
|
31288
|
+
this.matched += ch;
|
|
31289
|
+
var lines = ch.match(/\n/);
|
|
31290
|
+
if (lines)
|
|
31291
|
+
this.yylineno++;
|
|
31292
|
+
this._input = this._input.slice(1);
|
|
31293
|
+
return ch;
|
|
31294
|
+
},
|
|
31295
|
+
unput: function(ch) {
|
|
31296
|
+
this._input = ch + this._input;
|
|
31297
|
+
return this;
|
|
31298
|
+
},
|
|
31299
|
+
more: function() {
|
|
31300
|
+
this._more = true;
|
|
31301
|
+
return this;
|
|
31302
|
+
},
|
|
31303
|
+
pastInput: function() {
|
|
31304
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
31305
|
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
31306
|
+
},
|
|
31307
|
+
upcomingInput: function() {
|
|
31308
|
+
var next2 = this.match;
|
|
31309
|
+
if (next2.length < 20) {
|
|
31310
|
+
next2 += this._input.substr(0, 20 - next2.length);
|
|
31311
|
+
}
|
|
31312
|
+
return (next2.substr(0, 20) + (next2.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
31313
|
+
},
|
|
31314
|
+
showPosition: function() {
|
|
31315
|
+
var pre = this.pastInput();
|
|
31316
|
+
var c6 = new Array(pre.length + 1).join("-");
|
|
31317
|
+
return pre + this.upcomingInput() + "\n" + c6 + "^";
|
|
31318
|
+
},
|
|
31319
|
+
next: function() {
|
|
31320
|
+
if (this.done) {
|
|
31321
|
+
return this.EOF;
|
|
31322
|
+
}
|
|
31323
|
+
if (!this._input)
|
|
31324
|
+
this.done = true;
|
|
31325
|
+
var token2, match3, lines;
|
|
31326
|
+
if (!this._more) {
|
|
31327
|
+
this.yytext = "";
|
|
31328
|
+
this.match = "";
|
|
31329
|
+
}
|
|
31330
|
+
var rules2 = this._currentRules();
|
|
31331
|
+
for (var i2 = 0; i2 < rules2.length; i2++) {
|
|
31332
|
+
match3 = this._input.match(this.rules[rules2[i2]]);
|
|
31333
|
+
if (match3) {
|
|
31334
|
+
lines = match3[0].match(/\n.*/g);
|
|
31335
|
+
if (lines)
|
|
31336
|
+
this.yylineno += lines.length;
|
|
31337
|
+
this.yylloc = {
|
|
31338
|
+
first_line: this.yylloc.last_line,
|
|
31339
|
+
last_line: this.yylineno + 1,
|
|
31340
|
+
first_column: this.yylloc.last_column,
|
|
31341
|
+
last_column: lines ? lines[lines.length - 1].length - 1 : this.yylloc.last_column + match3[0].length
|
|
31342
|
+
};
|
|
31343
|
+
this.yytext += match3[0];
|
|
31344
|
+
this.match += match3[0];
|
|
31345
|
+
this.matches = match3;
|
|
31346
|
+
this.yyleng = this.yytext.length;
|
|
31347
|
+
this._more = false;
|
|
31348
|
+
this._input = this._input.slice(match3[0].length);
|
|
31349
|
+
this.matched += match3[0];
|
|
31350
|
+
token2 = this.performAction.call(this, this.yy, this, rules2[i2], this.conditionStack[this.conditionStack.length - 1]);
|
|
31351
|
+
if (token2)
|
|
31352
|
+
return token2;
|
|
31353
|
+
else
|
|
31354
|
+
return;
|
|
31355
|
+
}
|
|
31356
|
+
}
|
|
31357
|
+
if (this._input === "") {
|
|
31358
|
+
return this.EOF;
|
|
31359
|
+
} else {
|
|
31360
|
+
this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), { text: "", token: null, line: this.yylineno });
|
|
31361
|
+
}
|
|
31362
|
+
},
|
|
31363
|
+
lex: function lex() {
|
|
31364
|
+
var r2 = this.next();
|
|
31365
|
+
if (typeof r2 !== "undefined") {
|
|
31366
|
+
return r2;
|
|
31367
|
+
} else {
|
|
31368
|
+
return this.lex();
|
|
31369
|
+
}
|
|
31370
|
+
},
|
|
31371
|
+
begin: function begin(condition) {
|
|
31372
|
+
this.conditionStack.push(condition);
|
|
31373
|
+
},
|
|
31374
|
+
popState: function popState() {
|
|
31375
|
+
return this.conditionStack.pop();
|
|
31376
|
+
},
|
|
31377
|
+
_currentRules: function _currentRules() {
|
|
31378
|
+
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
31379
|
+
},
|
|
31380
|
+
topState: function() {
|
|
31381
|
+
return this.conditionStack[this.conditionStack.length - 2];
|
|
31382
|
+
},
|
|
31383
|
+
pushState: function begin(condition) {
|
|
31384
|
+
this.begin(condition);
|
|
31385
|
+
}
|
|
31386
|
+
};
|
|
31387
|
+
lexer2.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
31388
|
+
switch ($avoiding_name_collisions) {
|
|
31389
|
+
case 0:
|
|
31390
|
+
break;
|
|
31391
|
+
case 1:
|
|
31392
|
+
return 20;
|
|
31393
|
+
case 2:
|
|
31394
|
+
return 19;
|
|
31395
|
+
case 3:
|
|
31396
|
+
return 8;
|
|
31397
|
+
case 4:
|
|
31398
|
+
return 9;
|
|
31399
|
+
case 5:
|
|
31400
|
+
return 6;
|
|
31401
|
+
case 6:
|
|
31402
|
+
return 7;
|
|
31403
|
+
case 7:
|
|
31404
|
+
return 11;
|
|
31405
|
+
case 8:
|
|
31406
|
+
return 13;
|
|
31407
|
+
case 9:
|
|
31408
|
+
return 10;
|
|
31409
|
+
case 10:
|
|
31410
|
+
return 12;
|
|
31411
|
+
case 11:
|
|
31412
|
+
return 14;
|
|
31413
|
+
case 12:
|
|
31414
|
+
return 15;
|
|
31415
|
+
case 13:
|
|
31416
|
+
return 16;
|
|
31417
|
+
case 14:
|
|
31418
|
+
return 17;
|
|
31419
|
+
case 15:
|
|
31420
|
+
return 18;
|
|
31421
|
+
case 16:
|
|
31422
|
+
return 5;
|
|
31423
|
+
case 17:
|
|
31424
|
+
return "INVALID";
|
|
31425
|
+
}
|
|
31426
|
+
};
|
|
31427
|
+
lexer2.rules = [/^\s+/, /^[0-9]+(\.[0-9]+)?\b/, /^n\b/, /^\|\|/, /^&&/, /^\?/, /^:/, /^<=/, /^>=/, /^</, /^>/, /^!=/, /^==/, /^%/, /^\(/, /^\)/, /^$/, /^./];
|
|
31428
|
+
lexer2.conditions = { "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "inclusive": true } };
|
|
31429
|
+
return lexer2;
|
|
31430
|
+
}();
|
|
31431
|
+
parser.lexer = lexer;
|
|
31432
|
+
return parser;
|
|
31433
|
+
}();
|
|
31434
|
+
{
|
|
31435
|
+
if (module.exports) {
|
|
31436
|
+
exports = module.exports = Jed2;
|
|
31282
31437
|
}
|
|
31283
|
-
|
|
31284
|
-
var onChangeKey = "onChange";
|
|
31285
|
-
var eventHandlers = {};
|
|
31286
|
-
if (!rest.disabled) {
|
|
31287
|
-
var _eventHandlers;
|
|
31288
|
-
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers);
|
|
31438
|
+
exports.Jed = Jed2;
|
|
31289
31439
|
}
|
|
31290
|
-
|
|
31291
|
-
|
|
31292
|
-
|
|
31293
|
-
|
|
31294
|
-
|
|
31295
|
-
|
|
31296
|
-
|
|
31297
|
-
|
|
31298
|
-
|
|
31299
|
-
|
|
31300
|
-
|
|
31301
|
-
|
|
31302
|
-
|
|
31303
|
-
var _ref9 = _temp8 === void 0 ? {} : _temp8, _ref9$suppressRefErro = _ref9.suppressRefError, suppressRefError = _ref9$suppressRefErro === void 0 ? false : _ref9$suppressRefErro;
|
|
31304
|
-
setGetterPropCallInfo("getComboboxProps", suppressRefError, refKey, comboboxRef);
|
|
31305
|
-
return _extends$u((_extends6 = {}, _extends6[refKey] = handleRefs(ref, function(comboboxNode) {
|
|
31306
|
-
comboboxRef.current = comboboxNode;
|
|
31307
|
-
}), _extends6.role = "combobox", _extends6["aria-haspopup"] = "listbox", _extends6["aria-owns"] = elementIds.menuId, _extends6["aria-expanded"] = latest.current.state.isOpen, _extends6), rest);
|
|
31308
|
-
}, [latest, setGetterPropCallInfo, elementIds]);
|
|
31309
|
-
var toggleMenu = useCallback(function() {
|
|
31310
|
-
dispatch({
|
|
31311
|
-
type: FunctionToggleMenu
|
|
31312
|
-
});
|
|
31313
|
-
}, [dispatch]);
|
|
31314
|
-
var closeMenu = useCallback(function() {
|
|
31315
|
-
dispatch({
|
|
31316
|
-
type: FunctionCloseMenu
|
|
31317
|
-
});
|
|
31318
|
-
}, [dispatch]);
|
|
31319
|
-
var openMenu = useCallback(function() {
|
|
31320
|
-
dispatch({
|
|
31321
|
-
type: FunctionOpenMenu
|
|
31322
|
-
});
|
|
31323
|
-
}, [dispatch]);
|
|
31324
|
-
var setHighlightedIndex = useCallback(function(newHighlightedIndex) {
|
|
31325
|
-
dispatch({
|
|
31326
|
-
type: FunctionSetHighlightedIndex,
|
|
31327
|
-
highlightedIndex: newHighlightedIndex
|
|
31328
|
-
});
|
|
31329
|
-
}, [dispatch]);
|
|
31330
|
-
var selectItem = useCallback(function(newSelectedItem) {
|
|
31331
|
-
dispatch({
|
|
31332
|
-
type: FunctionSelectItem,
|
|
31333
|
-
selectedItem: newSelectedItem
|
|
31334
|
-
});
|
|
31335
|
-
}, [dispatch]);
|
|
31336
|
-
var setInputValue = useCallback(function(newInputValue) {
|
|
31337
|
-
dispatch({
|
|
31338
|
-
type: FunctionSetInputValue,
|
|
31339
|
-
inputValue: newInputValue
|
|
31340
|
-
});
|
|
31341
|
-
}, [dispatch]);
|
|
31342
|
-
var reset = useCallback(function() {
|
|
31343
|
-
dispatch({
|
|
31344
|
-
type: FunctionReset$1
|
|
31345
|
-
});
|
|
31346
|
-
}, [dispatch]);
|
|
31440
|
+
})();
|
|
31441
|
+
})(jed, jed.exports);
|
|
31442
|
+
var Jed = jed.exports;
|
|
31443
|
+
const fetcher = (url) => fetch(url).then((r2) => r2.json());
|
|
31444
|
+
function messageFormat(string, replacements) {
|
|
31445
|
+
return string.replace(/\{(\d+)\}/g, function() {
|
|
31446
|
+
return replacements[arguments[1]];
|
|
31447
|
+
});
|
|
31448
|
+
}
|
|
31449
|
+
function useI18n() {
|
|
31450
|
+
const { i18nFeed } = useSelector((state) => state.headerInfo);
|
|
31451
|
+
const userLanguage = useSelector((state) => state.userLanguage);
|
|
31452
|
+
const { data: data2, error } = index(i18nFeed && userLanguage ? messageFormat(i18nFeed, [userLanguage]) : null, fetcher);
|
|
31347
31453
|
return {
|
|
31348
|
-
|
|
31349
|
-
|
|
31350
|
-
|
|
31351
|
-
|
|
31352
|
-
|
|
31353
|
-
|
|
31354
|
-
|
|
31355
|
-
|
|
31356
|
-
closeMenu,
|
|
31357
|
-
setHighlightedIndex,
|
|
31358
|
-
setInputValue,
|
|
31359
|
-
selectItem,
|
|
31360
|
-
reset,
|
|
31361
|
-
highlightedIndex,
|
|
31362
|
-
isOpen,
|
|
31363
|
-
selectedItem,
|
|
31364
|
-
inputValue
|
|
31454
|
+
i18n: new Jed({
|
|
31455
|
+
locale_data: data2 || {
|
|
31456
|
+
messages: {
|
|
31457
|
+
"": {}
|
|
31458
|
+
}
|
|
31459
|
+
}
|
|
31460
|
+
}),
|
|
31461
|
+
error
|
|
31365
31462
|
};
|
|
31366
31463
|
}
|
|
31367
|
-
function getA11yRemovalMessage(selectionParameters) {
|
|
31368
|
-
var removedSelectedItem = selectionParameters.removedSelectedItem, itemToStringLocal = selectionParameters.itemToString;
|
|
31369
|
-
return itemToStringLocal(removedSelectedItem) + " has been removed.";
|
|
31370
|
-
}
|
|
31371
|
-
({
|
|
31372
|
-
selectedItems: PropTypes.array,
|
|
31373
|
-
initialSelectedItems: PropTypes.array,
|
|
31374
|
-
defaultSelectedItems: PropTypes.array,
|
|
31375
|
-
itemToString: PropTypes.func,
|
|
31376
|
-
getA11yRemovalMessage: PropTypes.func,
|
|
31377
|
-
stateReducer: PropTypes.func,
|
|
31378
|
-
activeIndex: PropTypes.number,
|
|
31379
|
-
initialActiveIndex: PropTypes.number,
|
|
31380
|
-
defaultActiveIndex: PropTypes.number,
|
|
31381
|
-
onActiveIndexChange: PropTypes.func,
|
|
31382
|
-
onSelectedItemsChange: PropTypes.func,
|
|
31383
|
-
keyNavigationNext: PropTypes.string,
|
|
31384
|
-
keyNavigationPrevious: PropTypes.string,
|
|
31385
|
-
environment: PropTypes.shape({
|
|
31386
|
-
addEventListener: PropTypes.func,
|
|
31387
|
-
removeEventListener: PropTypes.func,
|
|
31388
|
-
document: PropTypes.shape({
|
|
31389
|
-
getElementById: PropTypes.func,
|
|
31390
|
-
activeElement: PropTypes.any,
|
|
31391
|
-
body: PropTypes.any
|
|
31392
|
-
})
|
|
31393
|
-
})
|
|
31394
|
-
});
|
|
31395
|
-
({
|
|
31396
|
-
itemToString: defaultProps$3.itemToString,
|
|
31397
|
-
stateReducer: defaultProps$3.stateReducer,
|
|
31398
|
-
environment: defaultProps$3.environment,
|
|
31399
|
-
getA11yRemovalMessage,
|
|
31400
|
-
keyNavigationNext: "ArrowRight",
|
|
31401
|
-
keyNavigationPrevious: "ArrowLeft"
|
|
31402
|
-
});
|
|
31403
31464
|
var _jsxFileName$9 = "/Users/patrick/git/ba-js-common-header/src/components/Header/TitleBar/HotelFinder.jsx";
|
|
31404
31465
|
function getHotelInfoFromHotelFinderHotel(hotel) {
|
|
31405
31466
|
let name;
|
|
@@ -31416,6 +31477,7 @@ function getHotelInfoFromHotelFinderHotel(hotel) {
|
|
|
31416
31477
|
guideId
|
|
31417
31478
|
};
|
|
31418
31479
|
}
|
|
31480
|
+
const noMatchHotel = ["0_0"];
|
|
31419
31481
|
function HotelFinder(props) {
|
|
31420
31482
|
const {
|
|
31421
31483
|
hotels,
|
|
@@ -31424,10 +31486,16 @@ function HotelFinder(props) {
|
|
|
31424
31486
|
handleHotelChange,
|
|
31425
31487
|
subMenuItem
|
|
31426
31488
|
} = props;
|
|
31489
|
+
const {
|
|
31490
|
+
i18n
|
|
31491
|
+
} = useI18n();
|
|
31492
|
+
if (noMatchHotel.length === 1) {
|
|
31493
|
+
noMatchHotel.unshift(i18n.translate("No_matches_please_try_again").fetch());
|
|
31494
|
+
}
|
|
31427
31495
|
const [inputHotels, setInputHotels] = useState([]);
|
|
31496
|
+
const [ctrlInputValue, setCtrlInputValue] = useState(defaultHotel && defaultHotel[0] || "");
|
|
31428
31497
|
const {
|
|
31429
|
-
subMenus
|
|
31430
|
-
isMobileOrTablet
|
|
31498
|
+
subMenus
|
|
31431
31499
|
} = useSelector((state) => state.headerInfo);
|
|
31432
31500
|
const dispatch = useDispatch();
|
|
31433
31501
|
const subMenuOpen = subMenus.find((id2) => id2 === subMenuItem);
|
|
@@ -31438,7 +31506,8 @@ function HotelFinder(props) {
|
|
|
31438
31506
|
getInputProps,
|
|
31439
31507
|
getComboboxProps,
|
|
31440
31508
|
highlightedIndex,
|
|
31441
|
-
getItemProps
|
|
31509
|
+
getItemProps,
|
|
31510
|
+
closeMenu
|
|
31442
31511
|
} = useCombobox({
|
|
31443
31512
|
items: inputHotels,
|
|
31444
31513
|
itemToString: itemToString2,
|
|
@@ -31449,30 +31518,43 @@ function HotelFinder(props) {
|
|
|
31449
31518
|
selectedItem
|
|
31450
31519
|
}) => {
|
|
31451
31520
|
unstable_batchedUpdates(() => {
|
|
31452
|
-
|
|
31521
|
+
if (selectedItem !== noMatchHotel) {
|
|
31522
|
+
dispatch(setSelectedHotel(selectedItem));
|
|
31523
|
+
}
|
|
31453
31524
|
dispatch(removeSubMenu(subMenuItem));
|
|
31454
31525
|
});
|
|
31455
31526
|
if (typeof handleHotelChange === "function") {
|
|
31456
|
-
|
|
31527
|
+
if (selectedItem !== noMatchHotel) {
|
|
31528
|
+
handleHotelChange(getHotelInfoFromHotelFinderHotel(selectedItem));
|
|
31529
|
+
}
|
|
31457
31530
|
}
|
|
31531
|
+
document.querySelector("#hd-property-input").blur();
|
|
31458
31532
|
},
|
|
31459
31533
|
onInputValueChange: ({
|
|
31460
31534
|
inputValue
|
|
31461
31535
|
}) => {
|
|
31462
31536
|
const inputValueLC = inputValue.toLowerCase();
|
|
31463
|
-
|
|
31464
|
-
|
|
31537
|
+
const matchingHotels = hotels.filter((hotel) => {
|
|
31538
|
+
if (!inputValueLC)
|
|
31539
|
+
return false;
|
|
31540
|
+
const hotelNameLC = itemToString2(hotel).toLowerCase().trim();
|
|
31465
31541
|
return hotelNameLC.match(`(^|\\s)${inputValueLC}`);
|
|
31466
|
-
})
|
|
31542
|
+
});
|
|
31543
|
+
if (matchingHotels.length > 0) {
|
|
31544
|
+
setInputHotels(matchingHotels);
|
|
31545
|
+
} else if (!inputValueLC) {
|
|
31546
|
+
setInputHotels([]);
|
|
31547
|
+
closeMenu();
|
|
31548
|
+
} else {
|
|
31549
|
+
setInputHotels([noMatchHotel]);
|
|
31550
|
+
}
|
|
31551
|
+
setCtrlInputValue(inputValue);
|
|
31467
31552
|
}
|
|
31468
31553
|
});
|
|
31469
31554
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
31470
31555
|
className: cn("col-12", "col-lg", "py-3", "px-lg-0", "py-lg-0", "list-unstyled", "hd-nav-second-level", {
|
|
31471
31556
|
"hd-submenu-opened": subMenuOpen
|
|
31472
31557
|
}),
|
|
31473
|
-
style: isMobileOrTablet ? {
|
|
31474
|
-
top: 50
|
|
31475
|
-
} : {},
|
|
31476
31558
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
31477
31559
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31478
31560
|
id: "hd-property-search",
|
|
@@ -31482,78 +31564,114 @@ function HotelFinder(props) {
|
|
|
31482
31564
|
children: "Select property"
|
|
31483
31565
|
}, void 0, false, {
|
|
31484
31566
|
fileName: _jsxFileName$9,
|
|
31485
|
-
lineNumber:
|
|
31567
|
+
lineNumber: 117,
|
|
31486
31568
|
columnNumber: 11
|
|
31487
31569
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", __spreadProps(__spreadValues({
|
|
31488
31570
|
id: "hd-property-input-container"
|
|
31489
31571
|
}, getComboboxProps()), {
|
|
31490
|
-
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("input", __spreadValues({
|
|
31572
|
+
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("input", __spreadProps(__spreadValues({}, getInputProps({
|
|
31573
|
+
onChange: (e2) => {
|
|
31574
|
+
const cursorPos = e2.target.selectionStart;
|
|
31575
|
+
setTimeout(() => {
|
|
31576
|
+
e2.target.setSelectionRange(cursorPos, cursorPos);
|
|
31577
|
+
}, 0);
|
|
31578
|
+
}
|
|
31579
|
+
})), {
|
|
31491
31580
|
type: "text",
|
|
31492
31581
|
className: "form-control",
|
|
31582
|
+
placeholder: i18n.translate("hotel_name").fetch(),
|
|
31493
31583
|
id: "hd-property-input",
|
|
31494
|
-
|
|
31495
|
-
|
|
31584
|
+
value: ctrlInputValue,
|
|
31585
|
+
onBlur: (e2) => {
|
|
31586
|
+
const {
|
|
31587
|
+
name
|
|
31588
|
+
} = getHotelInfoFromHotelFinderHotel(selectedHotel);
|
|
31589
|
+
if (e2.target.value !== name) {
|
|
31590
|
+
setCtrlInputValue(name);
|
|
31591
|
+
}
|
|
31592
|
+
}
|
|
31593
|
+
}), void 0, false, {
|
|
31496
31594
|
fileName: _jsxFileName$9,
|
|
31497
|
-
lineNumber:
|
|
31595
|
+
lineNumber: 124,
|
|
31498
31596
|
columnNumber: 13
|
|
31499
31597
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", __spreadProps(__spreadValues({
|
|
31500
|
-
|
|
31501
|
-
listStyle: "none",
|
|
31502
|
-
marginBottom: 0
|
|
31503
|
-
}
|
|
31598
|
+
className: "mb-0 px-3 list-unstyled shadow"
|
|
31504
31599
|
}, getMenuProps()), {
|
|
31505
31600
|
children: isOpen && inputHotels.map((hotel, index2) => /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", __spreadProps(__spreadValues({
|
|
31506
|
-
|
|
31507
|
-
backgroundColor: "#bde4ff"
|
|
31508
|
-
} : {}
|
|
31601
|
+
className: "py-3 py-lg-2"
|
|
31509
31602
|
}, getItemProps({
|
|
31510
31603
|
hotel,
|
|
31511
31604
|
index: index2
|
|
31512
31605
|
})), {
|
|
31513
|
-
children:
|
|
31606
|
+
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31607
|
+
style: {
|
|
31608
|
+
display: "flex",
|
|
31609
|
+
justifyContent: "space-between",
|
|
31610
|
+
alignItems: "center"
|
|
31611
|
+
},
|
|
31612
|
+
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31613
|
+
children: hotel[0]
|
|
31614
|
+
}, void 0, false, {
|
|
31615
|
+
fileName: _jsxFileName$9,
|
|
31616
|
+
lineNumber: 164,
|
|
31617
|
+
columnNumber: 23
|
|
31618
|
+
}, this), hotel === selectedHotel && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Tick, {}, void 0, false, {
|
|
31619
|
+
fileName: _jsxFileName$9,
|
|
31620
|
+
lineNumber: 165,
|
|
31621
|
+
columnNumber: 51
|
|
31622
|
+
}, this)]
|
|
31623
|
+
}, void 0, true, {
|
|
31624
|
+
fileName: _jsxFileName$9,
|
|
31625
|
+
lineNumber: 157,
|
|
31626
|
+
columnNumber: 21
|
|
31627
|
+
}, this)
|
|
31514
31628
|
}), hotel[1], false, {
|
|
31515
31629
|
fileName: _jsxFileName$9,
|
|
31516
|
-
lineNumber:
|
|
31630
|
+
lineNumber: 151,
|
|
31517
31631
|
columnNumber: 19
|
|
31518
31632
|
}, this))
|
|
31519
31633
|
}), void 0, false, {
|
|
31520
31634
|
fileName: _jsxFileName$9,
|
|
31521
|
-
lineNumber:
|
|
31635
|
+
lineNumber: 148,
|
|
31522
31636
|
columnNumber: 13
|
|
31523
31637
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Search, {
|
|
31524
31638
|
className: "hd-icon hd-icon-search"
|
|
31525
31639
|
}, void 0, false, {
|
|
31526
31640
|
fileName: _jsxFileName$9,
|
|
31527
|
-
lineNumber:
|
|
31641
|
+
lineNumber: 170,
|
|
31528
31642
|
columnNumber: 13
|
|
31529
31643
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(commonThin.Close, {
|
|
31530
31644
|
className: "hd-icon hd-icon-close",
|
|
31531
31645
|
onClick: () => {
|
|
31532
|
-
|
|
31646
|
+
setCtrlInputValue("");
|
|
31647
|
+
closeMenu();
|
|
31648
|
+
},
|
|
31649
|
+
onMouseDown: (e2) => {
|
|
31650
|
+
e2.preventDefault();
|
|
31533
31651
|
}
|
|
31534
31652
|
}, void 0, false, {
|
|
31535
31653
|
fileName: _jsxFileName$9,
|
|
31536
|
-
lineNumber:
|
|
31654
|
+
lineNumber: 171,
|
|
31537
31655
|
columnNumber: 13
|
|
31538
31656
|
}, this)]
|
|
31539
31657
|
}), void 0, true, {
|
|
31540
31658
|
fileName: _jsxFileName$9,
|
|
31541
|
-
lineNumber:
|
|
31659
|
+
lineNumber: 123,
|
|
31542
31660
|
columnNumber: 11
|
|
31543
31661
|
}, this)]
|
|
31544
31662
|
}, void 0, true, {
|
|
31545
31663
|
fileName: _jsxFileName$9,
|
|
31546
|
-
lineNumber:
|
|
31664
|
+
lineNumber: 116,
|
|
31547
31665
|
columnNumber: 9
|
|
31548
31666
|
}, this)
|
|
31549
31667
|
}, void 0, false, {
|
|
31550
31668
|
fileName: _jsxFileName$9,
|
|
31551
|
-
lineNumber:
|
|
31669
|
+
lineNumber: 115,
|
|
31552
31670
|
columnNumber: 7
|
|
31553
31671
|
}, this)
|
|
31554
31672
|
}, void 0, false, {
|
|
31555
31673
|
fileName: _jsxFileName$9,
|
|
31556
|
-
lineNumber:
|
|
31674
|
+
lineNumber: 101,
|
|
31557
31675
|
columnNumber: 5
|
|
31558
31676
|
}, this);
|
|
31559
31677
|
}
|
|
@@ -31577,6 +31695,7 @@ function PropertySelector(props) {
|
|
|
31577
31695
|
const [
|
|
31578
31696
|
subMenuItem
|
|
31579
31697
|
] = useState("Select property");
|
|
31698
|
+
const [displayName, setDisplayName] = useState("");
|
|
31580
31699
|
const userInfo = useSelector((state) => state.userInfo);
|
|
31581
31700
|
const {
|
|
31582
31701
|
isOpen,
|
|
@@ -31640,6 +31759,16 @@ function PropertySelector(props) {
|
|
|
31640
31759
|
}
|
|
31641
31760
|
})();
|
|
31642
31761
|
}, [propertySelector]);
|
|
31762
|
+
useEffect(() => {
|
|
31763
|
+
if (userInfo.group) {
|
|
31764
|
+
setDisplayName(userInfo.group);
|
|
31765
|
+
} else if (selectedHotel) {
|
|
31766
|
+
const {
|
|
31767
|
+
name
|
|
31768
|
+
} = getHotelInfoFromHotelFinderHotel(selectedHotel);
|
|
31769
|
+
setDisplayName(name);
|
|
31770
|
+
}
|
|
31771
|
+
}, [userInfo, selectedHotel]);
|
|
31643
31772
|
return transitions((styles, item) => item && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(animated.div, {
|
|
31644
31773
|
className: "col-12 col-lg me-lg-auto px-0 order-lg-3",
|
|
31645
31774
|
id: "hd-property",
|
|
@@ -31662,10 +31791,10 @@ function PropertySelector(props) {
|
|
|
31662
31791
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
31663
31792
|
className: "ps-lg-3 py-3 py-lg-0 d-block",
|
|
31664
31793
|
id: "hd-group-name",
|
|
31665
|
-
children:
|
|
31794
|
+
children: displayName
|
|
31666
31795
|
}, void 0, false, {
|
|
31667
31796
|
fileName: _jsxFileName$8,
|
|
31668
|
-
lineNumber:
|
|
31797
|
+
lineNumber: 95,
|
|
31669
31798
|
columnNumber: 19
|
|
31670
31799
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31671
31800
|
className: "row me-0 d-lg-none align-items-center",
|
|
@@ -31676,7 +31805,7 @@ function PropertySelector(props) {
|
|
|
31676
31805
|
children: subMenuItem
|
|
31677
31806
|
}, void 0, false, {
|
|
31678
31807
|
fileName: _jsxFileName$8,
|
|
31679
|
-
lineNumber:
|
|
31808
|
+
lineNumber: 103,
|
|
31680
31809
|
columnNumber: 23
|
|
31681
31810
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
31682
31811
|
className: "d-block",
|
|
@@ -31684,12 +31813,12 @@ function PropertySelector(props) {
|
|
|
31684
31813
|
children: selectedHotel && selectedHotel[0] || defaultHotel && defaultHotel[0]
|
|
31685
31814
|
}, void 0, false, {
|
|
31686
31815
|
fileName: _jsxFileName$8,
|
|
31687
|
-
lineNumber:
|
|
31816
|
+
lineNumber: 104,
|
|
31688
31817
|
columnNumber: 23
|
|
31689
31818
|
}, this)]
|
|
31690
31819
|
}, void 0, true, {
|
|
31691
31820
|
fileName: _jsxFileName$8,
|
|
31692
|
-
lineNumber:
|
|
31821
|
+
lineNumber: 102,
|
|
31693
31822
|
columnNumber: 21
|
|
31694
31823
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
31695
31824
|
className: "col-auto p-2 d-block",
|
|
@@ -31697,24 +31826,24 @@ function PropertySelector(props) {
|
|
|
31697
31826
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
31698
31827
|
}, void 0, false, {
|
|
31699
31828
|
fileName: _jsxFileName$8,
|
|
31700
|
-
lineNumber:
|
|
31829
|
+
lineNumber: 110,
|
|
31701
31830
|
columnNumber: 23
|
|
31702
31831
|
}, this)
|
|
31703
31832
|
}, void 0, false, {
|
|
31704
31833
|
fileName: _jsxFileName$8,
|
|
31705
|
-
lineNumber:
|
|
31834
|
+
lineNumber: 109,
|
|
31706
31835
|
columnNumber: 21
|
|
31707
31836
|
}, this)]
|
|
31708
31837
|
}, void 0, true, {
|
|
31709
31838
|
fileName: _jsxFileName$8,
|
|
31710
|
-
lineNumber:
|
|
31839
|
+
lineNumber: 101,
|
|
31711
31840
|
columnNumber: 19
|
|
31712
31841
|
}, this)]
|
|
31713
31842
|
}, void 0, true, {
|
|
31714
31843
|
fileName: _jsxFileName$8,
|
|
31715
|
-
lineNumber:
|
|
31844
|
+
lineNumber: 91,
|
|
31716
31845
|
columnNumber: 17
|
|
31717
|
-
}, this), hotelFinderHotels.length >
|
|
31846
|
+
}, this), userInfo.group && hotelFinderHotels.length > 1 && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(HotelFinder, {
|
|
31718
31847
|
hotels: hotelFinderHotels,
|
|
31719
31848
|
defaultHotel,
|
|
31720
31849
|
selectedHotel,
|
|
@@ -31722,27 +31851,27 @@ function PropertySelector(props) {
|
|
|
31722
31851
|
subMenuItem
|
|
31723
31852
|
}, void 0, false, {
|
|
31724
31853
|
fileName: _jsxFileName$8,
|
|
31725
|
-
lineNumber:
|
|
31854
|
+
lineNumber: 115,
|
|
31726
31855
|
columnNumber: 19
|
|
31727
31856
|
}, this)]
|
|
31728
31857
|
}, void 0, true, {
|
|
31729
31858
|
fileName: _jsxFileName$8,
|
|
31730
|
-
lineNumber:
|
|
31859
|
+
lineNumber: 90,
|
|
31731
31860
|
columnNumber: 15
|
|
31732
31861
|
}, this)
|
|
31733
31862
|
}, void 0, false, {
|
|
31734
31863
|
fileName: _jsxFileName$8,
|
|
31735
|
-
lineNumber:
|
|
31864
|
+
lineNumber: 84,
|
|
31736
31865
|
columnNumber: 13
|
|
31737
31866
|
}, this)
|
|
31738
31867
|
}, void 0, false, {
|
|
31739
31868
|
fileName: _jsxFileName$8,
|
|
31740
|
-
lineNumber:
|
|
31869
|
+
lineNumber: 80,
|
|
31741
31870
|
columnNumber: 11
|
|
31742
31871
|
}, this)
|
|
31743
31872
|
}, void 0, false, {
|
|
31744
31873
|
fileName: _jsxFileName$8,
|
|
31745
|
-
lineNumber:
|
|
31874
|
+
lineNumber: 75,
|
|
31746
31875
|
columnNumber: 9
|
|
31747
31876
|
}, this));
|
|
31748
31877
|
}
|
|
@@ -31800,8 +31929,7 @@ function UserManager() {
|
|
|
31800
31929
|
i18n
|
|
31801
31930
|
} = useI18n();
|
|
31802
31931
|
const {
|
|
31803
|
-
subMenus
|
|
31804
|
-
isMobileOrTablet
|
|
31932
|
+
subMenus
|
|
31805
31933
|
} = useSelector((state) => state.headerInfo);
|
|
31806
31934
|
const {
|
|
31807
31935
|
user
|
|
@@ -31900,9 +32028,6 @@ function UserManager() {
|
|
|
31900
32028
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
31901
32029
|
"hd-submenu-opened": subMenuOpen
|
|
31902
32030
|
}),
|
|
31903
|
-
style: isMobileOrTablet ? {
|
|
31904
|
-
top: 50
|
|
31905
|
-
} : {},
|
|
31906
32031
|
children: children.map(({
|
|
31907
32032
|
href,
|
|
31908
32033
|
label: lbl
|
|
@@ -31919,22 +32044,22 @@ function UserManager() {
|
|
|
31919
32044
|
children: i18n.translate(lbl).fetch()
|
|
31920
32045
|
}, void 0, false, {
|
|
31921
32046
|
fileName: _jsxFileName$6,
|
|
31922
|
-
lineNumber:
|
|
32047
|
+
lineNumber: 54,
|
|
31923
32048
|
columnNumber: 17
|
|
31924
32049
|
}, this)
|
|
31925
32050
|
}, void 0, false, {
|
|
31926
32051
|
fileName: _jsxFileName$6,
|
|
31927
|
-
lineNumber:
|
|
32052
|
+
lineNumber: 53,
|
|
31928
32053
|
columnNumber: 15
|
|
31929
32054
|
}, this)
|
|
31930
32055
|
}, void 0, false, {
|
|
31931
32056
|
fileName: _jsxFileName$6,
|
|
31932
|
-
lineNumber:
|
|
32057
|
+
lineNumber: 52,
|
|
31933
32058
|
columnNumber: 13
|
|
31934
32059
|
}, this)
|
|
31935
32060
|
}, nanoid(), false, {
|
|
31936
32061
|
fileName: _jsxFileName$6,
|
|
31937
|
-
lineNumber:
|
|
32062
|
+
lineNumber: 51,
|
|
31938
32063
|
columnNumber: 11
|
|
31939
32064
|
}, this))
|
|
31940
32065
|
}, void 0, false, {
|
|
@@ -31960,8 +32085,7 @@ function UserLanguage(props) {
|
|
|
31960
32085
|
languageSelector
|
|
31961
32086
|
} = useSelector((state) => state.titleBar);
|
|
31962
32087
|
const {
|
|
31963
|
-
subMenus
|
|
31964
|
-
isMobileOrTablet
|
|
32088
|
+
subMenus
|
|
31965
32089
|
} = useSelector((state) => state.headerInfo);
|
|
31966
32090
|
const dispatch = useDispatch();
|
|
31967
32091
|
useEffect(() => {
|
|
@@ -32068,9 +32192,6 @@ function UserLanguage(props) {
|
|
|
32068
32192
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
32069
32193
|
"hd-submenu-opened": subMenuOpen
|
|
32070
32194
|
}),
|
|
32071
|
-
style: isMobileOrTablet ? {
|
|
32072
|
-
top: 50
|
|
32073
|
-
} : {},
|
|
32074
32195
|
children: languageObjs.map(({
|
|
32075
32196
|
code,
|
|
32076
32197
|
name
|
|
@@ -32096,22 +32217,22 @@ function UserLanguage(props) {
|
|
|
32096
32217
|
children: name
|
|
32097
32218
|
}, code, false, {
|
|
32098
32219
|
fileName: _jsxFileName$5,
|
|
32099
|
-
lineNumber:
|
|
32220
|
+
lineNumber: 88,
|
|
32100
32221
|
columnNumber: 17
|
|
32101
32222
|
}, this)
|
|
32102
32223
|
}, void 0, false, {
|
|
32103
32224
|
fileName: _jsxFileName$5,
|
|
32104
|
-
lineNumber:
|
|
32225
|
+
lineNumber: 87,
|
|
32105
32226
|
columnNumber: 15
|
|
32106
32227
|
}, this)
|
|
32107
32228
|
}, void 0, false, {
|
|
32108
32229
|
fileName: _jsxFileName$5,
|
|
32109
|
-
lineNumber:
|
|
32230
|
+
lineNumber: 86,
|
|
32110
32231
|
columnNumber: 13
|
|
32111
32232
|
}, this)
|
|
32112
32233
|
}, nanoid(), false, {
|
|
32113
32234
|
fileName: _jsxFileName$5,
|
|
32114
|
-
lineNumber:
|
|
32235
|
+
lineNumber: 85,
|
|
32115
32236
|
columnNumber: 11
|
|
32116
32237
|
}, this))
|
|
32117
32238
|
}, void 0, false, {
|
|
@@ -32231,6 +32352,7 @@ function TitleBar(props) {
|
|
|
32231
32352
|
});
|
|
32232
32353
|
return /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
32233
32354
|
className: "container-xxl",
|
|
32355
|
+
id: "hd-top-container",
|
|
32234
32356
|
children: /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
32235
32357
|
className: "row align-items-center pb-lg-2",
|
|
32236
32358
|
id: "hd-header-container",
|
|
@@ -32250,10 +32372,6 @@ function TitleBar(props) {
|
|
|
32250
32372
|
fileName: _jsxFileName$3,
|
|
32251
32373
|
lineNumber: 32,
|
|
32252
32374
|
columnNumber: 9
|
|
32253
|
-
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Extranet, {}, void 0, false, {
|
|
32254
|
-
fileName: _jsxFileName$3,
|
|
32255
|
-
lineNumber: 33,
|
|
32256
|
-
columnNumber: 9
|
|
32257
32375
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(PropertySelector, {
|
|
32258
32376
|
handleHotelChange
|
|
32259
32377
|
}, void 0, false, {
|
|
@@ -33687,8 +33805,7 @@ function Row(props) {
|
|
|
33687
33805
|
} = useI18n();
|
|
33688
33806
|
const {
|
|
33689
33807
|
isOpen: headerIsOpen,
|
|
33690
|
-
subMenus
|
|
33691
|
-
isMobileOrTablet
|
|
33808
|
+
subMenus
|
|
33692
33809
|
} = useSelector((state) => state.headerInfo);
|
|
33693
33810
|
const {
|
|
33694
33811
|
items
|
|
@@ -33714,27 +33831,27 @@ function Row(props) {
|
|
|
33714
33831
|
className: "hd-icon hd-icon-lock"
|
|
33715
33832
|
}, void 0, false, {
|
|
33716
33833
|
fileName: _jsxFileName$2,
|
|
33717
|
-
lineNumber:
|
|
33834
|
+
lineNumber: 50,
|
|
33718
33835
|
columnNumber: 17
|
|
33719
33836
|
}, this)
|
|
33720
33837
|
}, void 0, false, {
|
|
33721
33838
|
fileName: _jsxFileName$2,
|
|
33722
|
-
lineNumber:
|
|
33839
|
+
lineNumber: 49,
|
|
33723
33840
|
columnNumber: 15
|
|
33724
33841
|
}, this)]
|
|
33725
33842
|
}, void 0, true, {
|
|
33726
33843
|
fileName: _jsxFileName$2,
|
|
33727
|
-
lineNumber:
|
|
33844
|
+
lineNumber: 47,
|
|
33728
33845
|
columnNumber: 13
|
|
33729
33846
|
}, this)
|
|
33730
33847
|
}, void 0, false, {
|
|
33731
33848
|
fileName: _jsxFileName$2,
|
|
33732
|
-
lineNumber:
|
|
33849
|
+
lineNumber: 46,
|
|
33733
33850
|
columnNumber: 11
|
|
33734
33851
|
}, this)
|
|
33735
33852
|
}, void 0, false, {
|
|
33736
33853
|
fileName: _jsxFileName$2,
|
|
33737
|
-
lineNumber:
|
|
33854
|
+
lineNumber: 45,
|
|
33738
33855
|
columnNumber: 9
|
|
33739
33856
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
33740
33857
|
className: cn("py-3", "list-unstyled", {
|
|
@@ -33754,22 +33871,22 @@ function Row(props) {
|
|
|
33754
33871
|
className: "hd-icon hd-icon-lock"
|
|
33755
33872
|
}, void 0, false, {
|
|
33756
33873
|
fileName: _jsxFileName$2,
|
|
33757
|
-
lineNumber:
|
|
33874
|
+
lineNumber: 67,
|
|
33758
33875
|
columnNumber: 19
|
|
33759
33876
|
}, this)
|
|
33760
33877
|
}, void 0, false, {
|
|
33761
33878
|
fileName: _jsxFileName$2,
|
|
33762
|
-
lineNumber:
|
|
33879
|
+
lineNumber: 66,
|
|
33763
33880
|
columnNumber: 17
|
|
33764
33881
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("p", {
|
|
33765
33882
|
children: ["This premium functionality has not been activated.", /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("br", {}, void 0, false, {
|
|
33766
33883
|
fileName: _jsxFileName$2,
|
|
33767
|
-
lineNumber:
|
|
33884
|
+
lineNumber: 71,
|
|
33768
33885
|
columnNumber: 19
|
|
33769
33886
|
}, this), "Please contact us to activate this feature."]
|
|
33770
33887
|
}, void 0, true, {
|
|
33771
33888
|
fileName: _jsxFileName$2,
|
|
33772
|
-
lineNumber:
|
|
33889
|
+
lineNumber: 69,
|
|
33773
33890
|
columnNumber: 17
|
|
33774
33891
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("a", {
|
|
33775
33892
|
className: "btn btn-sm btn-outline-primary",
|
|
@@ -33778,32 +33895,32 @@ function Row(props) {
|
|
|
33778
33895
|
children: "Learn more"
|
|
33779
33896
|
}, void 0, false, {
|
|
33780
33897
|
fileName: _jsxFileName$2,
|
|
33781
|
-
lineNumber:
|
|
33898
|
+
lineNumber: 74,
|
|
33782
33899
|
columnNumber: 17
|
|
33783
33900
|
}, this)]
|
|
33784
33901
|
}, void 0, true, {
|
|
33785
33902
|
fileName: _jsxFileName$2,
|
|
33786
|
-
lineNumber:
|
|
33903
|
+
lineNumber: 65,
|
|
33787
33904
|
columnNumber: 15
|
|
33788
33905
|
}, this)
|
|
33789
33906
|
}, void 0, false, {
|
|
33790
33907
|
fileName: _jsxFileName$2,
|
|
33791
|
-
lineNumber:
|
|
33908
|
+
lineNumber: 64,
|
|
33792
33909
|
columnNumber: 13
|
|
33793
33910
|
}, this)
|
|
33794
33911
|
}, void 0, false, {
|
|
33795
33912
|
fileName: _jsxFileName$2,
|
|
33796
|
-
lineNumber:
|
|
33913
|
+
lineNumber: 63,
|
|
33797
33914
|
columnNumber: 11
|
|
33798
33915
|
}, this)
|
|
33799
33916
|
}, void 0, false, {
|
|
33800
33917
|
fileName: _jsxFileName$2,
|
|
33801
|
-
lineNumber:
|
|
33918
|
+
lineNumber: 55,
|
|
33802
33919
|
columnNumber: 9
|
|
33803
33920
|
}, this)]
|
|
33804
33921
|
}, void 0, true, {
|
|
33805
33922
|
fileName: _jsxFileName$2,
|
|
33806
|
-
lineNumber:
|
|
33923
|
+
lineNumber: 39,
|
|
33807
33924
|
columnNumber: 7
|
|
33808
33925
|
}, this);
|
|
33809
33926
|
}
|
|
@@ -33828,19 +33945,19 @@ function Row(props) {
|
|
|
33828
33945
|
children: i18n.translate(label).fetch()
|
|
33829
33946
|
}, void 0, false, {
|
|
33830
33947
|
fileName: _jsxFileName$2,
|
|
33831
|
-
lineNumber:
|
|
33948
|
+
lineNumber: 101,
|
|
33832
33949
|
columnNumber: 15
|
|
33833
33950
|
}, this) : /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
33834
33951
|
className: "ps-lg-3 pe-3 py-2",
|
|
33835
33952
|
children: i18n.translate(label).fetch()
|
|
33836
33953
|
}, void 0, false, {
|
|
33837
33954
|
fileName: _jsxFileName$2,
|
|
33838
|
-
lineNumber:
|
|
33955
|
+
lineNumber: 111,
|
|
33839
33956
|
columnNumber: 15
|
|
33840
33957
|
}, this)
|
|
33841
33958
|
}, void 0, false, {
|
|
33842
33959
|
fileName: _jsxFileName$2,
|
|
33843
|
-
lineNumber:
|
|
33960
|
+
lineNumber: 99,
|
|
33844
33961
|
columnNumber: 11
|
|
33845
33962
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
33846
33963
|
className: "col-auto p-2 d-block d-lg-none",
|
|
@@ -33848,34 +33965,31 @@ function Row(props) {
|
|
|
33848
33965
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
33849
33966
|
}, void 0, false, {
|
|
33850
33967
|
fileName: _jsxFileName$2,
|
|
33851
|
-
lineNumber:
|
|
33968
|
+
lineNumber: 118,
|
|
33852
33969
|
columnNumber: 15
|
|
33853
33970
|
}, this)
|
|
33854
33971
|
}, void 0, false, {
|
|
33855
33972
|
fileName: _jsxFileName$2,
|
|
33856
|
-
lineNumber:
|
|
33973
|
+
lineNumber: 117,
|
|
33857
33974
|
columnNumber: 13
|
|
33858
33975
|
}, this)]
|
|
33859
33976
|
}, void 0, true, {
|
|
33860
33977
|
fileName: _jsxFileName$2,
|
|
33861
|
-
lineNumber:
|
|
33978
|
+
lineNumber: 98,
|
|
33862
33979
|
columnNumber: 9
|
|
33863
33980
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
33864
33981
|
className: cn("py-3", "list-unstyled", "hd-nav-second-level", {
|
|
33865
33982
|
"hd-submenu-opened": subMenuOpen
|
|
33866
33983
|
}),
|
|
33867
|
-
style: isMobileOrTablet ? {
|
|
33868
|
-
top: 50
|
|
33869
|
-
} : {},
|
|
33870
33984
|
children
|
|
33871
33985
|
}, void 0, false, {
|
|
33872
33986
|
fileName: _jsxFileName$2,
|
|
33873
|
-
lineNumber:
|
|
33987
|
+
lineNumber: 123,
|
|
33874
33988
|
columnNumber: 11
|
|
33875
33989
|
}, this)]
|
|
33876
33990
|
}, void 0, true, {
|
|
33877
33991
|
fileName: _jsxFileName$2,
|
|
33878
|
-
lineNumber:
|
|
33992
|
+
lineNumber: 90,
|
|
33879
33993
|
columnNumber: 7
|
|
33880
33994
|
}, this);
|
|
33881
33995
|
}
|
|
@@ -33890,17 +34004,17 @@ function Row(props) {
|
|
|
33890
34004
|
children: i18n.translate(group).fetch()
|
|
33891
34005
|
}, void 0, false, {
|
|
33892
34006
|
fileName: _jsxFileName$2,
|
|
33893
|
-
lineNumber:
|
|
34007
|
+
lineNumber: 140,
|
|
33894
34008
|
columnNumber: 15
|
|
33895
34009
|
}, this)
|
|
33896
34010
|
}, void 0, false, {
|
|
33897
34011
|
fileName: _jsxFileName$2,
|
|
33898
|
-
lineNumber:
|
|
34012
|
+
lineNumber: 139,
|
|
33899
34013
|
columnNumber: 13
|
|
33900
34014
|
}, this)
|
|
33901
34015
|
}, void 0, false, {
|
|
33902
34016
|
fileName: _jsxFileName$2,
|
|
33903
|
-
lineNumber:
|
|
34017
|
+
lineNumber: 138,
|
|
33904
34018
|
columnNumber: 11
|
|
33905
34019
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("li", {
|
|
33906
34020
|
onClick: () => {
|
|
@@ -33921,19 +34035,19 @@ function Row(props) {
|
|
|
33921
34035
|
children: i18n.translate(label).fetch()
|
|
33922
34036
|
}, void 0, false, {
|
|
33923
34037
|
fileName: _jsxFileName$2,
|
|
33924
|
-
lineNumber:
|
|
34038
|
+
lineNumber: 156,
|
|
33925
34039
|
columnNumber: 17
|
|
33926
34040
|
}, this) : /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("span", {
|
|
33927
34041
|
className: "px-lg-3 py-2 d-block",
|
|
33928
34042
|
children: i18n.translate(label).fetch()
|
|
33929
34043
|
}, void 0, false, {
|
|
33930
34044
|
fileName: _jsxFileName$2,
|
|
33931
|
-
lineNumber:
|
|
34045
|
+
lineNumber: 166,
|
|
33932
34046
|
columnNumber: 17
|
|
33933
34047
|
}, this)
|
|
33934
34048
|
}, void 0, false, {
|
|
33935
34049
|
fileName: _jsxFileName$2,
|
|
33936
|
-
lineNumber:
|
|
34050
|
+
lineNumber: 154,
|
|
33937
34051
|
columnNumber: 13
|
|
33938
34052
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("div", {
|
|
33939
34053
|
className: "col-auto px-0",
|
|
@@ -33943,36 +34057,36 @@ function Row(props) {
|
|
|
33943
34057
|
className: "hd-icon hd-icon-arrow-angle-right"
|
|
33944
34058
|
}, void 0, false, {
|
|
33945
34059
|
fileName: _jsxFileName$2,
|
|
33946
|
-
lineNumber:
|
|
34060
|
+
lineNumber: 174,
|
|
33947
34061
|
columnNumber: 19
|
|
33948
34062
|
}, this)
|
|
33949
34063
|
}, void 0, false, {
|
|
33950
34064
|
fileName: _jsxFileName$2,
|
|
33951
|
-
lineNumber:
|
|
34065
|
+
lineNumber: 173,
|
|
33952
34066
|
columnNumber: 17
|
|
33953
34067
|
}, this)
|
|
33954
34068
|
}, void 0, false, {
|
|
33955
34069
|
fileName: _jsxFileName$2,
|
|
33956
|
-
lineNumber:
|
|
34070
|
+
lineNumber: 172,
|
|
33957
34071
|
columnNumber: 15
|
|
33958
34072
|
}, this)]
|
|
33959
34073
|
}, void 0, true, {
|
|
33960
34074
|
fileName: _jsxFileName$2,
|
|
33961
|
-
lineNumber:
|
|
34075
|
+
lineNumber: 153,
|
|
33962
34076
|
columnNumber: 11
|
|
33963
34077
|
}, this), hasChildren && /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV("ul", {
|
|
33964
|
-
className: cn("ps-3", "ps-lg-0", "list-unstyled", "hd-nav-third-level", {
|
|
34078
|
+
className: cn("py-3", "ps-3", "ps-lg-0", "list-unstyled", "hd-nav-third-level", {
|
|
33965
34079
|
"hd-submenu-opened": subMenuOpen
|
|
33966
34080
|
}),
|
|
33967
34081
|
children
|
|
33968
34082
|
}, void 0, false, {
|
|
33969
34083
|
fileName: _jsxFileName$2,
|
|
33970
|
-
lineNumber:
|
|
34084
|
+
lineNumber: 180,
|
|
33971
34085
|
columnNumber: 13
|
|
33972
34086
|
}, this)]
|
|
33973
34087
|
}, void 0, true, {
|
|
33974
34088
|
fileName: _jsxFileName$2,
|
|
33975
|
-
lineNumber:
|
|
34089
|
+
lineNumber: 146,
|
|
33976
34090
|
columnNumber: 9
|
|
33977
34091
|
}, this)]
|
|
33978
34092
|
}, void 0, true);
|
|
@@ -33992,22 +34106,22 @@ function Row(props) {
|
|
|
33992
34106
|
children: i18n.translate(label).fetch()
|
|
33993
34107
|
}, void 0, false, {
|
|
33994
34108
|
fileName: _jsxFileName$2,
|
|
33995
|
-
lineNumber:
|
|
34109
|
+
lineNumber: 204,
|
|
33996
34110
|
columnNumber: 13
|
|
33997
34111
|
}, this)
|
|
33998
34112
|
}, void 0, false, {
|
|
33999
34113
|
fileName: _jsxFileName$2,
|
|
34000
|
-
lineNumber:
|
|
34114
|
+
lineNumber: 203,
|
|
34001
34115
|
columnNumber: 11
|
|
34002
34116
|
}, this)
|
|
34003
34117
|
}, void 0, false, {
|
|
34004
34118
|
fileName: _jsxFileName$2,
|
|
34005
|
-
lineNumber:
|
|
34119
|
+
lineNumber: 202,
|
|
34006
34120
|
columnNumber: 9
|
|
34007
34121
|
}, this)
|
|
34008
34122
|
}, void 0, false, {
|
|
34009
34123
|
fileName: _jsxFileName$2,
|
|
34010
|
-
lineNumber:
|
|
34124
|
+
lineNumber: 201,
|
|
34011
34125
|
columnNumber: 7
|
|
34012
34126
|
}, this);
|
|
34013
34127
|
}
|
|
@@ -34066,12 +34180,12 @@ function MenuItem(props) {
|
|
|
34066
34180
|
level: level + 1
|
|
34067
34181
|
}, void 0, false, {
|
|
34068
34182
|
fileName: _jsxFileName$2,
|
|
34069
|
-
lineNumber:
|
|
34183
|
+
lineNumber: 265,
|
|
34070
34184
|
columnNumber: 9
|
|
34071
34185
|
}, this)
|
|
34072
34186
|
}, item.id, false, {
|
|
34073
34187
|
fileName: _jsxFileName$2,
|
|
34074
|
-
lineNumber:
|
|
34188
|
+
lineNumber: 257,
|
|
34075
34189
|
columnNumber: 7
|
|
34076
34190
|
}, this);
|
|
34077
34191
|
});
|
|
@@ -34160,22 +34274,22 @@ function MenuBar() {
|
|
|
34160
34274
|
menuItems: items
|
|
34161
34275
|
}, void 0, false, {
|
|
34162
34276
|
fileName: _jsxFileName$2,
|
|
34163
|
-
lineNumber:
|
|
34277
|
+
lineNumber: 341,
|
|
34164
34278
|
columnNumber: 15
|
|
34165
34279
|
}, this)
|
|
34166
34280
|
}, void 0, false, {
|
|
34167
34281
|
fileName: _jsxFileName$2,
|
|
34168
|
-
lineNumber:
|
|
34282
|
+
lineNumber: 337,
|
|
34169
34283
|
columnNumber: 13
|
|
34170
34284
|
}, this)
|
|
34171
34285
|
}, void 0, false, {
|
|
34172
34286
|
fileName: _jsxFileName$2,
|
|
34173
|
-
lineNumber:
|
|
34287
|
+
lineNumber: 336,
|
|
34174
34288
|
columnNumber: 11
|
|
34175
34289
|
}, this)
|
|
34176
34290
|
}, void 0, false, {
|
|
34177
34291
|
fileName: _jsxFileName$2,
|
|
34178
|
-
lineNumber:
|
|
34292
|
+
lineNumber: 331,
|
|
34179
34293
|
columnNumber: 9
|
|
34180
34294
|
}, this));
|
|
34181
34295
|
}
|
|
@@ -34260,6 +34374,9 @@ function Header(props) {
|
|
|
34260
34374
|
subMenus,
|
|
34261
34375
|
isMobileOrTablet
|
|
34262
34376
|
} = useSelector((state) => state.headerInfo);
|
|
34377
|
+
const {
|
|
34378
|
+
showNotifications
|
|
34379
|
+
} = useSelector((state) => state.notifications);
|
|
34263
34380
|
const headerRef = useRef(null);
|
|
34264
34381
|
const dispatch = useDispatch();
|
|
34265
34382
|
useEffect(() => {
|
|
@@ -34316,32 +34433,34 @@ function Header(props) {
|
|
|
34316
34433
|
"hd-menu-opened": headerIsOpen,
|
|
34317
34434
|
"hd-overflow-hidden": subMenus.length > 0
|
|
34318
34435
|
}),
|
|
34319
|
-
style: __spreadProps(__spreadValues({}, isMobileOrTablet && !headerIsOpen && {
|
|
34436
|
+
style: __spreadProps(__spreadValues(__spreadValues({}, isMobileOrTablet && !headerIsOpen && {
|
|
34320
34437
|
overflow: "hidden"
|
|
34438
|
+
}), showNotifications && {
|
|
34439
|
+
overflow: "visible"
|
|
34321
34440
|
}), {
|
|
34322
34441
|
maxWidth: "none"
|
|
34323
34442
|
}),
|
|
34324
34443
|
children: [/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(TitleBar, __spreadValues({}, props), void 0, false, {
|
|
34325
34444
|
fileName: _jsxFileName,
|
|
34326
|
-
lineNumber:
|
|
34445
|
+
lineNumber: 90,
|
|
34327
34446
|
columnNumber: 9
|
|
34328
34447
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(MenuBar, {}, void 0, false, {
|
|
34329
34448
|
fileName: _jsxFileName,
|
|
34330
|
-
lineNumber:
|
|
34449
|
+
lineNumber: 91,
|
|
34331
34450
|
columnNumber: 9
|
|
34332
34451
|
}, this)]
|
|
34333
34452
|
}, void 0, true, {
|
|
34334
34453
|
fileName: _jsxFileName,
|
|
34335
|
-
lineNumber:
|
|
34454
|
+
lineNumber: 77,
|
|
34336
34455
|
columnNumber: 7
|
|
34337
34456
|
}, this), /* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Breadcrumb, {}, void 0, false, {
|
|
34338
34457
|
fileName: _jsxFileName,
|
|
34339
|
-
lineNumber:
|
|
34458
|
+
lineNumber: 93,
|
|
34340
34459
|
columnNumber: 7
|
|
34341
34460
|
}, this)]
|
|
34342
34461
|
}, void 0, true, {
|
|
34343
34462
|
fileName: _jsxFileName,
|
|
34344
|
-
lineNumber:
|
|
34463
|
+
lineNumber: 76,
|
|
34345
34464
|
columnNumber: 5
|
|
34346
34465
|
}, this);
|
|
34347
34466
|
}
|
|
@@ -34364,7 +34483,7 @@ const Wrapped = withReduxProvider(Header);
|
|
|
34364
34483
|
function renderHeader(element, props) {
|
|
34365
34484
|
render(/* @__PURE__ */ jsxDevRuntime.exports.jsxDEV(Wrapped, __spreadValues({}, props), void 0, false, {
|
|
34366
34485
|
fileName: _jsxFileName,
|
|
34367
|
-
lineNumber:
|
|
34486
|
+
lineNumber: 118,
|
|
34368
34487
|
columnNumber: 10
|
|
34369
34488
|
}, this), element);
|
|
34370
34489
|
}
|