@wix/entity-advanced-permissions 1.1426.0 → 1.1427.0
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/statics/500.chunk.js +2458 -2641
- package/dist/statics/500.chunk.js.map +1 -1
- package/dist/statics/500.chunk.min.js +4 -2
- package/dist/statics/500.chunk.min.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.js +726 -508
- package/dist/statics/entity-advanced-permissions.umd.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.min.js +54 -2
- package/dist/statics/entity-advanced-permissions.umd.min.js.map +1 -1
- package/dist/statics/manifest.json +2 -2
- package/dist/statics/manifest.min.json +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -34679,7 +34679,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
34679
34679
|
/******/
|
|
34680
34680
|
/******/ /* webpack/runtime/publicPath */
|
|
34681
34681
|
/******/ (() => {
|
|
34682
|
-
/******/ __webpack_require__.p = "https://static.parastorage.com/services/entity-advanced-permissions/
|
|
34682
|
+
/******/ __webpack_require__.p = "https://static.parastorage.com/services/entity-advanced-permissions/924339cc73a0eb8fdfc3ee52cf548d12a03cbaa31702ae16cfac19f5/";
|
|
34683
34683
|
/******/ })();
|
|
34684
34684
|
/******/
|
|
34685
34685
|
/******/ /* webpack/runtime/jsonp chunk loading */
|
|
@@ -34783,7 +34783,7 @@ var __webpack_exports__ = {};
|
|
|
34783
34783
|
(() => {
|
|
34784
34784
|
"use strict";
|
|
34785
34785
|
/*!********************************!*\
|
|
34786
|
-
!*** ./index.ts +
|
|
34786
|
+
!*** ./index.ts + 568 modules ***!
|
|
34787
34787
|
\********************************/
|
|
34788
34788
|
// ESM COMPAT FLAG
|
|
34789
34789
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -35710,7 +35710,7 @@ if(false /* HMR */) // removed by dead control flow
|
|
|
35710
35710
|
{}
|
|
35711
35711
|
|
|
35712
35712
|
;// ../../../node_modules/@wix/design-system/dist/esm/utils/versionedNamespace.js
|
|
35713
|
-
const placeholder = '
|
|
35713
|
+
const placeholder = 'wds_1_346_0';
|
|
35714
35714
|
const versionedNamespace = placeholder.startsWith('wds_')
|
|
35715
35715
|
? placeholder
|
|
35716
35716
|
: '';
|
|
@@ -35928,93 +35928,6 @@ const ReactPortal = ({ children, node, }) => {
|
|
|
35928
35928
|
};
|
|
35929
35929
|
|
|
35930
35930
|
//# sourceMappingURL=ReactPortal.js.map
|
|
35931
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
35932
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
35933
|
-
if (null == r) return {};
|
|
35934
|
-
var t = {};
|
|
35935
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
35936
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
35937
|
-
t[n] = r[n];
|
|
35938
|
-
}
|
|
35939
|
-
return t;
|
|
35940
|
-
}
|
|
35941
|
-
|
|
35942
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
35943
|
-
function _extends() {
|
|
35944
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
35945
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
35946
|
-
var t = arguments[e];
|
|
35947
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
35948
|
-
}
|
|
35949
|
-
return n;
|
|
35950
|
-
}, _extends.apply(null, arguments);
|
|
35951
|
-
}
|
|
35952
|
-
|
|
35953
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
35954
|
-
function _setPrototypeOf(t, e) {
|
|
35955
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
35956
|
-
return t.__proto__ = e, t;
|
|
35957
|
-
}, _setPrototypeOf(t, e);
|
|
35958
|
-
}
|
|
35959
|
-
|
|
35960
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
35961
|
-
|
|
35962
|
-
function _inheritsLoose(t, o) {
|
|
35963
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
35964
|
-
}
|
|
35965
|
-
|
|
35966
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
35967
|
-
function _assertThisInitialized(e) {
|
|
35968
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
35969
|
-
return e;
|
|
35970
|
-
}
|
|
35971
|
-
|
|
35972
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
35973
|
-
function _typeof(o) {
|
|
35974
|
-
"@babel/helpers - typeof";
|
|
35975
|
-
|
|
35976
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
35977
|
-
return typeof o;
|
|
35978
|
-
} : function (o) {
|
|
35979
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
35980
|
-
}, _typeof(o);
|
|
35981
|
-
}
|
|
35982
|
-
|
|
35983
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
35984
|
-
|
|
35985
|
-
function toPrimitive(t, r) {
|
|
35986
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
35987
|
-
var e = t[Symbol.toPrimitive];
|
|
35988
|
-
if (void 0 !== e) {
|
|
35989
|
-
var i = e.call(t, r || "default");
|
|
35990
|
-
if ("object" != _typeof(i)) return i;
|
|
35991
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
35992
|
-
}
|
|
35993
|
-
return ("string" === r ? String : Number)(t);
|
|
35994
|
-
}
|
|
35995
|
-
|
|
35996
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
35997
|
-
|
|
35998
|
-
|
|
35999
|
-
function toPropertyKey(t) {
|
|
36000
|
-
var i = toPrimitive(t, "string");
|
|
36001
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
36002
|
-
}
|
|
36003
|
-
|
|
36004
|
-
;// ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
36005
|
-
|
|
36006
|
-
function _defineProperty(e, r, t) {
|
|
36007
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36008
|
-
value: t,
|
|
36009
|
-
enumerable: !0,
|
|
36010
|
-
configurable: !0,
|
|
36011
|
-
writable: !0
|
|
36012
|
-
}) : e[r] = t, e;
|
|
36013
|
-
}
|
|
36014
|
-
|
|
36015
|
-
// EXTERNAL MODULE: ../../../node_modules/deep-equal/index.js
|
|
36016
|
-
var deep_equal = __webpack_require__(788);
|
|
36017
|
-
var deep_equal_default = /*#__PURE__*/__webpack_require__.n(deep_equal);
|
|
36018
35931
|
;// ../../../node_modules/popper.js/dist/esm/popper.js
|
|
36019
35932
|
/**!
|
|
36020
35933
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
@@ -36425,7 +36338,7 @@ var defineProperty = function (obj, key, value) {
|
|
|
36425
36338
|
return obj;
|
|
36426
36339
|
};
|
|
36427
36340
|
|
|
36428
|
-
var
|
|
36341
|
+
var _extends = Object.assign || function (target) {
|
|
36429
36342
|
for (var i = 1; i < arguments.length; i++) {
|
|
36430
36343
|
var source = arguments[i];
|
|
36431
36344
|
|
|
@@ -36447,7 +36360,7 @@ var popper_extends = Object.assign || function (target) {
|
|
|
36447
36360
|
* @returns {Object} ClientRect like output
|
|
36448
36361
|
*/
|
|
36449
36362
|
function getClientRect(offsets) {
|
|
36450
|
-
return
|
|
36363
|
+
return _extends({}, offsets, {
|
|
36451
36364
|
right: offsets.left + offsets.width,
|
|
36452
36365
|
bottom: offsets.top + offsets.height
|
|
36453
36366
|
});
|
|
@@ -36735,7 +36648,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
|
|
|
36735
36648
|
};
|
|
36736
36649
|
|
|
36737
36650
|
var sortedAreas = Object.keys(rects).map(function (key) {
|
|
36738
|
-
return
|
|
36651
|
+
return _extends({
|
|
36739
36652
|
key: key
|
|
36740
36653
|
}, rects[key], {
|
|
36741
36654
|
area: getArea(rects[key])
|
|
@@ -37377,9 +37290,9 @@ function computeStyle(data, options) {
|
|
|
37377
37290
|
};
|
|
37378
37291
|
|
|
37379
37292
|
// Update `data` attributes, styles and arrowStyles
|
|
37380
|
-
data.attributes =
|
|
37381
|
-
data.styles =
|
|
37382
|
-
data.arrowStyles =
|
|
37293
|
+
data.attributes = _extends({}, attributes, data.attributes);
|
|
37294
|
+
data.styles = _extends({}, styles, data.styles);
|
|
37295
|
+
data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
|
|
37383
37296
|
|
|
37384
37297
|
return data;
|
|
37385
37298
|
}
|
|
@@ -37659,7 +37572,7 @@ function flip(data, options) {
|
|
|
37659
37572
|
|
|
37660
37573
|
// this object contains `position`, we want to preserve it along with
|
|
37661
37574
|
// any additional property we may add in the future
|
|
37662
|
-
data.offsets.popper =
|
|
37575
|
+
data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
|
37663
37576
|
|
|
37664
37577
|
data = runModifiers(data.instance.modifiers, data, 'flip');
|
|
37665
37578
|
}
|
|
@@ -37933,7 +37846,7 @@ function preventOverflow(data, options) {
|
|
|
37933
37846
|
|
|
37934
37847
|
order.forEach(function (placement) {
|
|
37935
37848
|
var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
|
|
37936
|
-
popper =
|
|
37849
|
+
popper = _extends({}, popper, check[side](placement));
|
|
37937
37850
|
});
|
|
37938
37851
|
|
|
37939
37852
|
data.offsets.popper = popper;
|
|
@@ -37968,7 +37881,7 @@ function shift(data) {
|
|
|
37968
37881
|
end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
|
|
37969
37882
|
};
|
|
37970
37883
|
|
|
37971
|
-
data.offsets.popper =
|
|
37884
|
+
data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
|
|
37972
37885
|
}
|
|
37973
37886
|
|
|
37974
37887
|
return data;
|
|
@@ -38500,7 +38413,7 @@ var Popper = function () {
|
|
|
38500
38413
|
this.update = popper_debounce(this.update.bind(this));
|
|
38501
38414
|
|
|
38502
38415
|
// with {} we create a new object with the options inside it
|
|
38503
|
-
this.options =
|
|
38416
|
+
this.options = _extends({}, Popper.Defaults, options);
|
|
38504
38417
|
|
|
38505
38418
|
// init state
|
|
38506
38419
|
this.state = {
|
|
@@ -38515,13 +38428,13 @@ var Popper = function () {
|
|
|
38515
38428
|
|
|
38516
38429
|
// Deep merge modifiers options
|
|
38517
38430
|
this.options.modifiers = {};
|
|
38518
|
-
Object.keys(
|
|
38519
|
-
_this.options.modifiers[name] =
|
|
38431
|
+
Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
|
|
38432
|
+
_this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
|
|
38520
38433
|
});
|
|
38521
38434
|
|
|
38522
38435
|
// Refactoring modifiers' list (Object => Array)
|
|
38523
38436
|
this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
|
|
38524
|
-
return
|
|
38437
|
+
return _extends({
|
|
38525
38438
|
name: name
|
|
38526
38439
|
}, _this.options.modifiers[name]);
|
|
38527
38440
|
})
|
|
@@ -38633,380 +38546,249 @@ Popper.Defaults = Defaults;
|
|
|
38633
38546
|
/* harmony default export */ const popper = (Popper);
|
|
38634
38547
|
//# sourceMappingURL=popper.js.map
|
|
38635
38548
|
|
|
38636
|
-
// EXTERNAL MODULE: ../../../node_modules
|
|
38637
|
-
var
|
|
38638
|
-
var
|
|
38639
|
-
;// ../../../node_modules/
|
|
38640
|
-
|
|
38641
|
-
|
|
38642
|
-
|
|
38643
|
-
|
|
38644
|
-
|
|
38645
|
-
var ManagerReferenceNodeContext = lib_default()();
|
|
38646
|
-
var ManagerReferenceNodeSetterContext = lib_default()();
|
|
38647
|
-
|
|
38648
|
-
var Manager =
|
|
38649
|
-
/*#__PURE__*/
|
|
38650
|
-
function (_React$Component) {
|
|
38651
|
-
_inheritsLoose(Manager, _React$Component);
|
|
38652
|
-
|
|
38653
|
-
function Manager() {
|
|
38654
|
-
var _this;
|
|
38655
|
-
|
|
38656
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38657
|
-
args[_key] = arguments[_key];
|
|
38658
|
-
}
|
|
38659
|
-
|
|
38660
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
38661
|
-
|
|
38662
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "referenceNode", void 0);
|
|
38663
|
-
|
|
38664
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setReferenceNode", function (newReferenceNode) {
|
|
38665
|
-
if (newReferenceNode && _this.referenceNode !== newReferenceNode) {
|
|
38666
|
-
_this.referenceNode = newReferenceNode;
|
|
38667
|
-
|
|
38668
|
-
_this.forceUpdate();
|
|
38669
|
-
}
|
|
38670
|
-
});
|
|
38671
|
-
|
|
38672
|
-
return _this;
|
|
38673
|
-
}
|
|
38674
|
-
|
|
38675
|
-
var _proto = Manager.prototype;
|
|
38676
|
-
|
|
38677
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
38678
|
-
this.referenceNode = null;
|
|
38679
|
-
};
|
|
38680
|
-
|
|
38681
|
-
_proto.render = function render() {
|
|
38682
|
-
return external_React_.createElement(ManagerReferenceNodeContext.Provider, {
|
|
38683
|
-
value: this.referenceNode
|
|
38684
|
-
}, external_React_.createElement(ManagerReferenceNodeSetterContext.Provider, {
|
|
38685
|
-
value: this.setReferenceNode
|
|
38686
|
-
}, this.props.children));
|
|
38687
|
-
};
|
|
38688
|
-
|
|
38689
|
-
return Manager;
|
|
38690
|
-
}(external_React_.Component);
|
|
38691
|
-
|
|
38692
|
-
|
|
38693
|
-
;// ../../../node_modules/react-popper/lib/esm/utils.js
|
|
38694
|
-
/**
|
|
38695
|
-
* Takes an argument and if it's an array, returns the first item in the array,
|
|
38696
|
-
* otherwise returns the argument. Used for Preact compatibility.
|
|
38697
|
-
*/
|
|
38698
|
-
var unwrapArray = function unwrapArray(arg) {
|
|
38699
|
-
return Array.isArray(arg) ? arg[0] : arg;
|
|
38700
|
-
};
|
|
38701
|
-
/**
|
|
38702
|
-
* Takes a maybe-undefined function and arbitrary args and invokes the function
|
|
38703
|
-
* only if it is defined.
|
|
38704
|
-
*/
|
|
38705
|
-
|
|
38706
|
-
var safeInvoke = function safeInvoke(fn) {
|
|
38707
|
-
if (typeof fn === "function") {
|
|
38708
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
38709
|
-
args[_key - 1] = arguments[_key];
|
|
38710
|
-
}
|
|
38711
|
-
|
|
38712
|
-
return fn.apply(void 0, args);
|
|
38713
|
-
}
|
|
38714
|
-
};
|
|
38549
|
+
// EXTERNAL MODULE: ../../../node_modules/lodash/isEqual.js
|
|
38550
|
+
var isEqual = __webpack_require__(8434);
|
|
38551
|
+
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
|
|
38552
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/Popover/PopoverCore/ReactPopper.js
|
|
38715
38553
|
/**
|
|
38716
|
-
*
|
|
38717
|
-
*
|
|
38554
|
+
* @license
|
|
38555
|
+
* Adapted from react-popper 1.3.11 (https://github.com/popperjs/react-popper/tree/v1.3.11)
|
|
38556
|
+
*
|
|
38557
|
+
* The MIT License (MIT)
|
|
38558
|
+
*
|
|
38559
|
+
* Copyright (c) 2018 React Popper authors
|
|
38560
|
+
*
|
|
38561
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
38562
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
38563
|
+
* in the Software without restriction, including without limitation the rights
|
|
38564
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
38565
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
38566
|
+
* furnished to do so, subject to the following conditions:
|
|
38567
|
+
*
|
|
38568
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
38569
|
+
* copies or substantial portions of the Software.
|
|
38570
|
+
*
|
|
38571
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
38572
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
38573
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
38574
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
38575
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
38576
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
38577
|
+
* SOFTWARE.
|
|
38718
38578
|
*/
|
|
38719
38579
|
|
|
38720
|
-
var shallowEqual = function shallowEqual(objA, objB) {
|
|
38721
|
-
var aKeys = Object.keys(objA);
|
|
38722
|
-
var bKeys = Object.keys(objB);
|
|
38723
|
-
|
|
38724
|
-
if (bKeys.length !== aKeys.length) {
|
|
38725
|
-
return false;
|
|
38726
|
-
}
|
|
38727
38580
|
|
|
38728
|
-
for (var i = 0; i < bKeys.length; i++) {
|
|
38729
|
-
var key = aKeys[i];
|
|
38730
38581
|
|
|
38731
|
-
|
|
38732
|
-
|
|
38582
|
+
const setRef = (ref, node) => {
|
|
38583
|
+
if (typeof ref === 'function') {
|
|
38584
|
+
ref(node);
|
|
38733
38585
|
}
|
|
38734
|
-
|
|
38735
|
-
|
|
38736
|
-
return true;
|
|
38737
|
-
};
|
|
38738
|
-
/**
|
|
38739
|
-
* Sets a ref using either a ref callback or a ref object
|
|
38740
|
-
*/
|
|
38741
|
-
|
|
38742
|
-
var setRef = function setRef(ref, node) {
|
|
38743
|
-
// if its a function call it
|
|
38744
|
-
if (typeof ref === "function") {
|
|
38745
|
-
return safeInvoke(ref, node);
|
|
38746
|
-
} // otherwise we should treat it as a ref object
|
|
38747
|
-
else if (ref != null) {
|
|
38748
|
-
ref.current = node;
|
|
38586
|
+
else if (ref != null) {
|
|
38587
|
+
ref.current = node;
|
|
38749
38588
|
}
|
|
38750
38589
|
};
|
|
38751
|
-
|
|
38752
|
-
|
|
38753
|
-
|
|
38754
|
-
|
|
38755
|
-
|
|
38756
|
-
|
|
38757
|
-
|
|
38758
|
-
|
|
38759
|
-
|
|
38760
|
-
|
|
38761
|
-
|
|
38762
|
-
|
|
38763
|
-
|
|
38764
|
-
|
|
38765
|
-
|
|
38766
|
-
|
|
38767
|
-
|
|
38590
|
+
const ReferenceNodeContext = external_React_.createContext(undefined);
|
|
38591
|
+
const ReferenceNodeSetterContext = external_React_.createContext(undefined);
|
|
38592
|
+
class Manager extends external_React_.Component {
|
|
38593
|
+
constructor() {
|
|
38594
|
+
super(...arguments);
|
|
38595
|
+
this.referenceNode = undefined;
|
|
38596
|
+
this.setReferenceNode = (node) => {
|
|
38597
|
+
if (node && this.referenceNode !== node) {
|
|
38598
|
+
this.referenceNode = node;
|
|
38599
|
+
this.forceUpdate();
|
|
38600
|
+
}
|
|
38601
|
+
};
|
|
38602
|
+
}
|
|
38603
|
+
componentWillUnmount() {
|
|
38604
|
+
this.referenceNode = null;
|
|
38605
|
+
}
|
|
38606
|
+
render() {
|
|
38607
|
+
return (external_React_.createElement(ReferenceNodeContext.Provider, { value: this.referenceNode },
|
|
38608
|
+
external_React_.createElement(ReferenceNodeSetterContext.Provider, { value: this.setReferenceNode }, this.props.children)));
|
|
38609
|
+
}
|
|
38610
|
+
}
|
|
38611
|
+
class InnerReference extends external_React_.Component {
|
|
38612
|
+
constructor() {
|
|
38613
|
+
super(...arguments);
|
|
38614
|
+
this.refHandler = (node) => {
|
|
38615
|
+
setRef(this.props.innerRef, node);
|
|
38616
|
+
this.props.setReferenceNode?.(node);
|
|
38617
|
+
};
|
|
38618
|
+
}
|
|
38619
|
+
componentWillUnmount() {
|
|
38620
|
+
setRef(this.props.innerRef, null);
|
|
38621
|
+
}
|
|
38622
|
+
render() {
|
|
38623
|
+
return this.props.children({ ref: this.refHandler });
|
|
38624
|
+
}
|
|
38625
|
+
}
|
|
38626
|
+
const Reference = (props) => (external_React_.createElement(ReferenceNodeSetterContext.Consumer, null, setReferenceNode => (external_React_.createElement(InnerReference, { setReferenceNode: setReferenceNode, ...props }))));
|
|
38627
|
+
const initialStyle = {
|
|
38628
|
+
position: 'absolute',
|
|
38629
|
+
top: 0,
|
|
38630
|
+
left: 0,
|
|
38631
|
+
opacity: 0,
|
|
38632
|
+
pointerEvents: 'none',
|
|
38768
38633
|
};
|
|
38769
|
-
|
|
38770
|
-
|
|
38771
|
-
|
|
38772
|
-
|
|
38773
|
-
|
|
38774
|
-
|
|
38775
|
-
|
|
38776
|
-
|
|
38777
|
-
|
|
38778
|
-
|
|
38779
|
-
|
|
38634
|
+
const initialArrowStyle = {};
|
|
38635
|
+
class InnerPopper extends external_React_.Component {
|
|
38636
|
+
constructor() {
|
|
38637
|
+
super(...arguments);
|
|
38638
|
+
this.state = { data: undefined, placement: undefined };
|
|
38639
|
+
this.popperInstance = null;
|
|
38640
|
+
this.popperNode = null;
|
|
38641
|
+
this.arrowNode = null;
|
|
38642
|
+
this.setPopperNode = (popperNode) => {
|
|
38643
|
+
if (!popperNode || this.popperNode === popperNode) {
|
|
38644
|
+
return;
|
|
38645
|
+
}
|
|
38646
|
+
setRef(this.props.innerRef, popperNode);
|
|
38647
|
+
this.popperNode = popperNode;
|
|
38648
|
+
this.updatePopperInstance();
|
|
38649
|
+
};
|
|
38650
|
+
this.setArrowNode = (arrowNode) => {
|
|
38651
|
+
this.arrowNode = arrowNode;
|
|
38652
|
+
};
|
|
38653
|
+
this.updateStateModifier = {
|
|
38654
|
+
enabled: true,
|
|
38655
|
+
order: 900,
|
|
38656
|
+
fn: data => {
|
|
38657
|
+
const { placement } = data;
|
|
38658
|
+
this.setState({ data, placement });
|
|
38659
|
+
return data;
|
|
38660
|
+
},
|
|
38661
|
+
};
|
|
38662
|
+
this.getOptions = () => ({
|
|
38663
|
+
placement: this.props.placement,
|
|
38664
|
+
eventsEnabled: this.props.eventsEnabled,
|
|
38665
|
+
positionFixed: this.props.positionFixed,
|
|
38666
|
+
modifiers: {
|
|
38667
|
+
...this.props.modifiers,
|
|
38668
|
+
arrow: {
|
|
38669
|
+
...(this.props.modifiers && this.props.modifiers.arrow),
|
|
38670
|
+
enabled: !!this.arrowNode,
|
|
38671
|
+
element: this.arrowNode,
|
|
38672
|
+
},
|
|
38673
|
+
applyStyle: { enabled: false },
|
|
38674
|
+
updateStateModifier: this.updateStateModifier,
|
|
38675
|
+
},
|
|
38676
|
+
});
|
|
38677
|
+
this.getPopperStyle = () => !this.popperNode || !this.state.data
|
|
38678
|
+
? initialStyle
|
|
38679
|
+
: {
|
|
38680
|
+
position: this.state.data.offsets.popper
|
|
38681
|
+
.position,
|
|
38682
|
+
...this.state.data.styles,
|
|
38683
|
+
};
|
|
38684
|
+
this.getPopperPlacement = () => !this.state.data ? undefined : this.state.placement;
|
|
38685
|
+
this.getArrowStyle = () => !this.arrowNode || !this.state.data
|
|
38686
|
+
? initialArrowStyle
|
|
38687
|
+
: this.state.data.arrowStyles;
|
|
38688
|
+
this.getOutOfBoundariesState = () => this.state.data ? this.state.data.hide : undefined;
|
|
38689
|
+
this.destroyPopperInstance = () => {
|
|
38690
|
+
if (!this.popperInstance) {
|
|
38691
|
+
return;
|
|
38692
|
+
}
|
|
38693
|
+
this.popperInstance.destroy();
|
|
38694
|
+
this.popperInstance = null;
|
|
38695
|
+
};
|
|
38696
|
+
this.updatePopperInstance = () => {
|
|
38697
|
+
this.destroyPopperInstance();
|
|
38698
|
+
const { popperNode } = this;
|
|
38699
|
+
const { referenceElement } = this.props;
|
|
38700
|
+
if (!referenceElement || !popperNode) {
|
|
38701
|
+
return;
|
|
38702
|
+
}
|
|
38703
|
+
this.popperInstance = new popper(referenceElement, popperNode, this.getOptions());
|
|
38704
|
+
};
|
|
38705
|
+
this.scheduleUpdate = () => {
|
|
38706
|
+
if (this.popperInstance) {
|
|
38707
|
+
this.popperInstance.scheduleUpdate();
|
|
38708
|
+
}
|
|
38709
|
+
};
|
|
38780
38710
|
}
|
|
38781
|
-
|
|
38782
|
-
|
|
38783
|
-
|
|
38784
|
-
|
|
38785
|
-
|
|
38786
|
-
|
|
38787
|
-
|
|
38788
|
-
|
|
38789
|
-
|
|
38790
|
-
|
|
38791
|
-
|
|
38792
|
-
|
|
38793
|
-
|
|
38794
|
-
|
|
38795
|
-
|
|
38796
|
-
|
|
38797
|
-
|
|
38798
|
-
|
|
38799
|
-
|
|
38800
|
-
|
|
38801
|
-
|
|
38802
|
-
|
|
38803
|
-
|
|
38804
|
-
|
|
38805
|
-
|
|
38806
|
-
|
|
38807
|
-
|
|
38808
|
-
|
|
38809
|
-
|
|
38810
|
-
|
|
38811
|
-
|
|
38812
|
-
|
|
38813
|
-
|
|
38814
|
-
|
|
38815
|
-
|
|
38711
|
+
componentDidUpdate(prevProps, prevState) {
|
|
38712
|
+
if (this.props.placement !== prevProps.placement ||
|
|
38713
|
+
this.props.referenceElement !== prevProps.referenceElement ||
|
|
38714
|
+
this.props.positionFixed !== prevProps.positionFixed ||
|
|
38715
|
+
!isEqual_default()(this.props.modifiers, prevProps.modifiers)) {
|
|
38716
|
+
this.updatePopperInstance();
|
|
38717
|
+
}
|
|
38718
|
+
else if (this.props.eventsEnabled !== prevProps.eventsEnabled &&
|
|
38719
|
+
this.popperInstance) {
|
|
38720
|
+
if (this.props.eventsEnabled) {
|
|
38721
|
+
this.popperInstance.enableEventListeners();
|
|
38722
|
+
}
|
|
38723
|
+
else {
|
|
38724
|
+
this.popperInstance.disableEventListeners();
|
|
38725
|
+
}
|
|
38726
|
+
}
|
|
38727
|
+
if (prevState.placement !== this.state.placement) {
|
|
38728
|
+
this.scheduleUpdate();
|
|
38729
|
+
}
|
|
38730
|
+
}
|
|
38731
|
+
componentWillUnmount() {
|
|
38732
|
+
setRef(this.props.innerRef, null);
|
|
38733
|
+
this.destroyPopperInstance();
|
|
38734
|
+
}
|
|
38735
|
+
render() {
|
|
38736
|
+
return this.props.children({
|
|
38737
|
+
ref: this.setPopperNode,
|
|
38738
|
+
style: this.getPopperStyle(),
|
|
38739
|
+
placement: this.getPopperPlacement(),
|
|
38740
|
+
outOfBoundaries: this.getOutOfBoundariesState(),
|
|
38741
|
+
scheduleUpdate: this.scheduleUpdate,
|
|
38742
|
+
arrowProps: {
|
|
38743
|
+
ref: this.setArrowNode,
|
|
38744
|
+
style: this.getArrowStyle(),
|
|
38745
|
+
},
|
|
38816
38746
|
});
|
|
38817
|
-
|
|
38818
|
-
return data;
|
|
38819
|
-
}
|
|
38820
|
-
});
|
|
38821
|
-
|
|
38822
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOptions", function () {
|
|
38823
|
-
return {
|
|
38824
|
-
placement: _this.props.placement,
|
|
38825
|
-
eventsEnabled: _this.props.eventsEnabled,
|
|
38826
|
-
positionFixed: _this.props.positionFixed,
|
|
38827
|
-
modifiers: _extends({}, _this.props.modifiers, {
|
|
38828
|
-
arrow: _extends({}, _this.props.modifiers && _this.props.modifiers.arrow, {
|
|
38829
|
-
enabled: !!_this.arrowNode,
|
|
38830
|
-
element: _this.arrowNode
|
|
38831
|
-
}),
|
|
38832
|
-
applyStyle: {
|
|
38833
|
-
enabled: false
|
|
38834
|
-
},
|
|
38835
|
-
updateStateModifier: _this.updateStateModifier
|
|
38836
|
-
})
|
|
38837
|
-
};
|
|
38838
|
-
});
|
|
38839
|
-
|
|
38840
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPopperStyle", function () {
|
|
38841
|
-
return !_this.popperNode || !_this.state.data ? initialStyle : _extends({
|
|
38842
|
-
position: _this.state.data.offsets.popper.position
|
|
38843
|
-
}, _this.state.data.styles);
|
|
38844
|
-
});
|
|
38845
|
-
|
|
38846
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPopperPlacement", function () {
|
|
38847
|
-
return !_this.state.data ? undefined : _this.state.placement;
|
|
38848
|
-
});
|
|
38849
|
-
|
|
38850
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getArrowStyle", function () {
|
|
38851
|
-
return !_this.arrowNode || !_this.state.data ? initialArrowStyle : _this.state.data.arrowStyles;
|
|
38852
|
-
});
|
|
38853
|
-
|
|
38854
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOutOfBoundariesState", function () {
|
|
38855
|
-
return _this.state.data ? _this.state.data.hide : undefined;
|
|
38856
|
-
});
|
|
38857
|
-
|
|
38858
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "destroyPopperInstance", function () {
|
|
38859
|
-
if (!_this.popperInstance) return;
|
|
38860
|
-
|
|
38861
|
-
_this.popperInstance.destroy();
|
|
38862
|
-
|
|
38863
|
-
_this.popperInstance = null;
|
|
38864
|
-
});
|
|
38865
|
-
|
|
38866
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updatePopperInstance", function () {
|
|
38867
|
-
_this.destroyPopperInstance();
|
|
38868
|
-
|
|
38869
|
-
var _assertThisInitialize = _assertThisInitialized(_assertThisInitialized(_this)),
|
|
38870
|
-
popperNode = _assertThisInitialize.popperNode;
|
|
38871
|
-
|
|
38872
|
-
var referenceElement = _this.props.referenceElement;
|
|
38873
|
-
if (!referenceElement || !popperNode) return;
|
|
38874
|
-
_this.popperInstance = new popper(referenceElement, popperNode, _this.getOptions());
|
|
38875
|
-
});
|
|
38876
|
-
|
|
38877
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "scheduleUpdate", function () {
|
|
38878
|
-
if (_this.popperInstance) {
|
|
38879
|
-
_this.popperInstance.scheduleUpdate();
|
|
38880
|
-
}
|
|
38881
|
-
});
|
|
38882
|
-
|
|
38883
|
-
return _this;
|
|
38884
|
-
}
|
|
38885
|
-
|
|
38886
|
-
var _proto = InnerPopper.prototype;
|
|
38887
|
-
|
|
38888
|
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
|
|
38889
|
-
// If the Popper.js options have changed, update the instance (destroy + create)
|
|
38890
|
-
if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed || !deep_equal_default()(this.props.modifiers, prevProps.modifiers, {
|
|
38891
|
-
strict: true
|
|
38892
|
-
})) {
|
|
38893
|
-
// develop only check that modifiers isn't being updated needlessly
|
|
38894
|
-
if (false) // removed by dead control flow
|
|
38895
|
-
{}
|
|
38896
|
-
|
|
38897
|
-
this.updatePopperInstance();
|
|
38898
|
-
} else if (this.props.eventsEnabled !== prevProps.eventsEnabled && this.popperInstance) {
|
|
38899
|
-
this.props.eventsEnabled ? this.popperInstance.enableEventListeners() : this.popperInstance.disableEventListeners();
|
|
38900
|
-
} // A placement difference in state means popper determined a new placement
|
|
38901
|
-
// apart from the props value. By the time the popper element is rendered with
|
|
38902
|
-
// the new position Popper has already measured it, if the place change triggers
|
|
38903
|
-
// a size change it will result in a misaligned popper. So we schedule an update to be sure.
|
|
38904
|
-
|
|
38905
|
-
|
|
38906
|
-
if (prevState.placement !== this.state.placement) {
|
|
38907
|
-
this.scheduleUpdate();
|
|
38908
38747
|
}
|
|
38909
|
-
};
|
|
38910
|
-
|
|
38911
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
38912
|
-
setRef(this.props.innerRef, null);
|
|
38913
|
-
this.destroyPopperInstance();
|
|
38914
|
-
};
|
|
38915
|
-
|
|
38916
|
-
_proto.render = function render() {
|
|
38917
|
-
return unwrapArray(this.props.children)({
|
|
38918
|
-
ref: this.setPopperNode,
|
|
38919
|
-
style: this.getPopperStyle(),
|
|
38920
|
-
placement: this.getPopperPlacement(),
|
|
38921
|
-
outOfBoundaries: this.getOutOfBoundariesState(),
|
|
38922
|
-
scheduleUpdate: this.scheduleUpdate,
|
|
38923
|
-
arrowProps: {
|
|
38924
|
-
ref: this.setArrowNode,
|
|
38925
|
-
style: this.getArrowStyle()
|
|
38926
|
-
}
|
|
38927
|
-
});
|
|
38928
|
-
};
|
|
38929
|
-
|
|
38930
|
-
return InnerPopper;
|
|
38931
|
-
}(external_React_.Component);
|
|
38932
|
-
|
|
38933
|
-
_defineProperty(InnerPopper, "defaultProps", {
|
|
38934
|
-
placement: 'bottom',
|
|
38935
|
-
eventsEnabled: true,
|
|
38936
|
-
referenceElement: undefined,
|
|
38937
|
-
positionFixed: false
|
|
38938
|
-
});
|
|
38939
|
-
|
|
38940
|
-
var Popper_placements = popper.placements;
|
|
38941
|
-
|
|
38942
|
-
function Popper_Popper(_ref) {
|
|
38943
|
-
var referenceElement = _ref.referenceElement,
|
|
38944
|
-
props = _objectWithoutPropertiesLoose(_ref, ["referenceElement"]);
|
|
38945
|
-
|
|
38946
|
-
return external_React_.createElement(ManagerReferenceNodeContext.Consumer, null, function (referenceNode) {
|
|
38947
|
-
return external_React_.createElement(InnerPopper, _extends({
|
|
38948
|
-
referenceElement: referenceElement !== undefined ? referenceElement : referenceNode
|
|
38949
|
-
}, props));
|
|
38950
|
-
});
|
|
38951
38748
|
}
|
|
38952
|
-
|
|
38953
|
-
|
|
38954
|
-
|
|
38955
|
-
|
|
38956
|
-
|
|
38957
|
-
|
|
38958
|
-
|
|
38959
|
-
|
|
38960
|
-
|
|
38961
|
-
|
|
38962
|
-
|
|
38963
|
-
|
|
38964
|
-
|
|
38965
|
-
var
|
|
38966
|
-
/*#__PURE__*/
|
|
38967
|
-
function (_React$Component) {
|
|
38968
|
-
_inheritsLoose(InnerReference, _React$Component);
|
|
38969
|
-
|
|
38970
|
-
function InnerReference() {
|
|
38971
|
-
var _this;
|
|
38972
|
-
|
|
38973
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38974
|
-
args[_key] = arguments[_key];
|
|
38749
|
+
InnerPopper.defaultProps = {
|
|
38750
|
+
placement: 'bottom',
|
|
38751
|
+
eventsEnabled: true,
|
|
38752
|
+
referenceElement: undefined,
|
|
38753
|
+
positionFixed: false,
|
|
38754
|
+
};
|
|
38755
|
+
const ReactPopper_Popper = ({ referenceElement, ...props }) => (external_React_.createElement(ReferenceNodeContext.Consumer, null, referenceNode => (external_React_.createElement(InnerPopper, { referenceElement: referenceElement !== undefined ? referenceElement : referenceNode, ...props }))));
|
|
38756
|
+
//# sourceMappingURL=ReactPopper.js.map
|
|
38757
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
38758
|
+
function extends_extends() {
|
|
38759
|
+
return extends_extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
38760
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
38761
|
+
var t = arguments[e];
|
|
38762
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
38975
38763
|
}
|
|
38764
|
+
return n;
|
|
38765
|
+
}, extends_extends.apply(null, arguments);
|
|
38766
|
+
}
|
|
38976
38767
|
|
|
38977
|
-
|
|
38978
|
-
|
|
38979
|
-
|
|
38980
|
-
|
|
38981
|
-
|
|
38982
|
-
|
|
38983
|
-
|
|
38984
|
-
return _this;
|
|
38768
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
38769
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
38770
|
+
if (null == r) return {};
|
|
38771
|
+
var t = {};
|
|
38772
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
38773
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
38774
|
+
t[n] = r[n];
|
|
38985
38775
|
}
|
|
38776
|
+
return t;
|
|
38777
|
+
}
|
|
38986
38778
|
|
|
38987
|
-
|
|
38988
|
-
|
|
38989
|
-
|
|
38990
|
-
|
|
38991
|
-
};
|
|
38992
|
-
|
|
38993
|
-
_proto.render = function render() {
|
|
38994
|
-
warning_default()(Boolean(this.props.setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
|
|
38995
|
-
return unwrapArray(this.props.children)({
|
|
38996
|
-
ref: this.refHandler
|
|
38997
|
-
});
|
|
38998
|
-
};
|
|
38779
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
38780
|
+
function _setPrototypeOf(t, e) {
|
|
38781
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
38782
|
+
return t.__proto__ = e, t;
|
|
38783
|
+
}, _setPrototypeOf(t, e);
|
|
38784
|
+
}
|
|
38999
38785
|
|
|
39000
|
-
|
|
39001
|
-
}(external_React_.Component);
|
|
38786
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
39002
38787
|
|
|
39003
|
-
function
|
|
39004
|
-
|
|
39005
|
-
return external_React_.createElement(InnerReference, _extends({
|
|
39006
|
-
setReferenceNode: setReferenceNode
|
|
39007
|
-
}, props));
|
|
39008
|
-
});
|
|
38788
|
+
function _inheritsLoose(t, o) {
|
|
38789
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
39009
38790
|
}
|
|
38791
|
+
|
|
39010
38792
|
;// ../../../node_modules/dom-helpers/esm/hasClass.js
|
|
39011
38793
|
/**
|
|
39012
38794
|
* Checks if a given element has a CSS class.
|
|
@@ -39768,7 +39550,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
39768
39550
|
_ = _this$props.classNames,
|
|
39769
39551
|
props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
|
39770
39552
|
|
|
39771
|
-
return /*#__PURE__*/external_React_default().createElement(esm_Transition,
|
|
39553
|
+
return /*#__PURE__*/external_React_default().createElement(esm_Transition, extends_extends({}, props, {
|
|
39772
39554
|
onEnter: this.onEnter,
|
|
39773
39555
|
onEntered: this.onEntered,
|
|
39774
39556
|
onEntering: this.onEntering,
|
|
@@ -40370,7 +40152,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40370
40152
|
fixed,
|
|
40371
40153
|
isTestEnv: PopoverCore_isTestEnv,
|
|
40372
40154
|
});
|
|
40373
|
-
const popperWithArrow = (status) => (external_React_default().createElement(
|
|
40155
|
+
const popperWithArrow = (status) => (external_React_default().createElement(ReactPopper_Popper, { modifiers: modifiers, placement: placement }, ({ ref, style: popperStyles, placement: popperPlacement, arrowProps, scheduleUpdate, }) => {
|
|
40374
40156
|
this.popperScheduleUpdate = scheduleUpdate;
|
|
40375
40157
|
return (external_React_default().createElement("div", { "data-hook": "popover-content", className: popoverContentClasses.root({
|
|
40376
40158
|
status,
|
|
@@ -40386,7 +40168,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40386
40168
|
hasArrow: true,
|
|
40387
40169
|
}), onKeyDown: shown && onEscPress ? this._onKeyDown : undefined, onClick: onContentClick, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedBy }, childrenObject.Content)));
|
|
40388
40170
|
}));
|
|
40389
|
-
const popper = (status) => (external_React_default().createElement(
|
|
40171
|
+
const popper = (status) => (external_React_default().createElement(ReactPopper_Popper, { modifiers: modifiers, placement: placement }, ({ ref, style: popperStyles, placement: popperPlacement, scheduleUpdate, }) => {
|
|
40390
40172
|
this.popperScheduleUpdate = scheduleUpdate;
|
|
40391
40173
|
return (external_React_default().createElement("div", { id: id, ref: mergeRefs(ref, this.popoverContentRef, this.transitionRef), role: role, tabIndex: tabIndex, className: popoverContentClasses.root({
|
|
40392
40174
|
status,
|
|
@@ -42284,6 +42066,432 @@ var helpers_extends = __webpack_require__(1414);
|
|
|
42284
42066
|
var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
|
|
42285
42067
|
// EXTERNAL MODULE: ../../../node_modules/@wix/wix-ui-tpa/dist/cssVars/esm/components/internal/WixUiCoreComponents/components/CoreDropdown/CoreDropdown.st.css
|
|
42286
42068
|
var CoreDropdown_st = __webpack_require__(1861);
|
|
42069
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
42070
|
+
function _assertThisInitialized(e) {
|
|
42071
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
42072
|
+
return e;
|
|
42073
|
+
}
|
|
42074
|
+
|
|
42075
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
42076
|
+
function _typeof(o) {
|
|
42077
|
+
"@babel/helpers - typeof";
|
|
42078
|
+
|
|
42079
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
42080
|
+
return typeof o;
|
|
42081
|
+
} : function (o) {
|
|
42082
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
42083
|
+
}, _typeof(o);
|
|
42084
|
+
}
|
|
42085
|
+
|
|
42086
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
42087
|
+
|
|
42088
|
+
function toPrimitive(t, r) {
|
|
42089
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
42090
|
+
var e = t[Symbol.toPrimitive];
|
|
42091
|
+
if (void 0 !== e) {
|
|
42092
|
+
var i = e.call(t, r || "default");
|
|
42093
|
+
if ("object" != _typeof(i)) return i;
|
|
42094
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
42095
|
+
}
|
|
42096
|
+
return ("string" === r ? String : Number)(t);
|
|
42097
|
+
}
|
|
42098
|
+
|
|
42099
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
42100
|
+
|
|
42101
|
+
|
|
42102
|
+
function toPropertyKey(t) {
|
|
42103
|
+
var i = toPrimitive(t, "string");
|
|
42104
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
42105
|
+
}
|
|
42106
|
+
|
|
42107
|
+
;// ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
42108
|
+
|
|
42109
|
+
function _defineProperty(e, r, t) {
|
|
42110
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
42111
|
+
value: t,
|
|
42112
|
+
enumerable: !0,
|
|
42113
|
+
configurable: !0,
|
|
42114
|
+
writable: !0
|
|
42115
|
+
}) : e[r] = t, e;
|
|
42116
|
+
}
|
|
42117
|
+
|
|
42118
|
+
// EXTERNAL MODULE: ../../../node_modules/deep-equal/index.js
|
|
42119
|
+
var deep_equal = __webpack_require__(788);
|
|
42120
|
+
var deep_equal_default = /*#__PURE__*/__webpack_require__.n(deep_equal);
|
|
42121
|
+
// EXTERNAL MODULE: ../../../node_modules/@hypnosphi/create-react-context/lib/index.js
|
|
42122
|
+
var create_react_context_lib = __webpack_require__(774);
|
|
42123
|
+
var lib_default = /*#__PURE__*/__webpack_require__.n(create_react_context_lib);
|
|
42124
|
+
;// ../../../node_modules/react-popper/lib/esm/Manager.js
|
|
42125
|
+
|
|
42126
|
+
|
|
42127
|
+
|
|
42128
|
+
|
|
42129
|
+
|
|
42130
|
+
var ManagerReferenceNodeContext = lib_default()();
|
|
42131
|
+
var ManagerReferenceNodeSetterContext = lib_default()();
|
|
42132
|
+
|
|
42133
|
+
var Manager_Manager =
|
|
42134
|
+
/*#__PURE__*/
|
|
42135
|
+
function (_React$Component) {
|
|
42136
|
+
_inheritsLoose(Manager, _React$Component);
|
|
42137
|
+
|
|
42138
|
+
function Manager() {
|
|
42139
|
+
var _this;
|
|
42140
|
+
|
|
42141
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42142
|
+
args[_key] = arguments[_key];
|
|
42143
|
+
}
|
|
42144
|
+
|
|
42145
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
42146
|
+
|
|
42147
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "referenceNode", void 0);
|
|
42148
|
+
|
|
42149
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setReferenceNode", function (newReferenceNode) {
|
|
42150
|
+
if (newReferenceNode && _this.referenceNode !== newReferenceNode) {
|
|
42151
|
+
_this.referenceNode = newReferenceNode;
|
|
42152
|
+
|
|
42153
|
+
_this.forceUpdate();
|
|
42154
|
+
}
|
|
42155
|
+
});
|
|
42156
|
+
|
|
42157
|
+
return _this;
|
|
42158
|
+
}
|
|
42159
|
+
|
|
42160
|
+
var _proto = Manager.prototype;
|
|
42161
|
+
|
|
42162
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
42163
|
+
this.referenceNode = null;
|
|
42164
|
+
};
|
|
42165
|
+
|
|
42166
|
+
_proto.render = function render() {
|
|
42167
|
+
return external_React_.createElement(ManagerReferenceNodeContext.Provider, {
|
|
42168
|
+
value: this.referenceNode
|
|
42169
|
+
}, external_React_.createElement(ManagerReferenceNodeSetterContext.Provider, {
|
|
42170
|
+
value: this.setReferenceNode
|
|
42171
|
+
}, this.props.children));
|
|
42172
|
+
};
|
|
42173
|
+
|
|
42174
|
+
return Manager;
|
|
42175
|
+
}(external_React_.Component);
|
|
42176
|
+
|
|
42177
|
+
|
|
42178
|
+
;// ../../../node_modules/react-popper/lib/esm/utils.js
|
|
42179
|
+
/**
|
|
42180
|
+
* Takes an argument and if it's an array, returns the first item in the array,
|
|
42181
|
+
* otherwise returns the argument. Used for Preact compatibility.
|
|
42182
|
+
*/
|
|
42183
|
+
var unwrapArray = function unwrapArray(arg) {
|
|
42184
|
+
return Array.isArray(arg) ? arg[0] : arg;
|
|
42185
|
+
};
|
|
42186
|
+
/**
|
|
42187
|
+
* Takes a maybe-undefined function and arbitrary args and invokes the function
|
|
42188
|
+
* only if it is defined.
|
|
42189
|
+
*/
|
|
42190
|
+
|
|
42191
|
+
var safeInvoke = function safeInvoke(fn) {
|
|
42192
|
+
if (typeof fn === "function") {
|
|
42193
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
42194
|
+
args[_key - 1] = arguments[_key];
|
|
42195
|
+
}
|
|
42196
|
+
|
|
42197
|
+
return fn.apply(void 0, args);
|
|
42198
|
+
}
|
|
42199
|
+
};
|
|
42200
|
+
/**
|
|
42201
|
+
* Does a shallow equality check of two objects by comparing the reference
|
|
42202
|
+
* equality of each value.
|
|
42203
|
+
*/
|
|
42204
|
+
|
|
42205
|
+
var shallowEqual = function shallowEqual(objA, objB) {
|
|
42206
|
+
var aKeys = Object.keys(objA);
|
|
42207
|
+
var bKeys = Object.keys(objB);
|
|
42208
|
+
|
|
42209
|
+
if (bKeys.length !== aKeys.length) {
|
|
42210
|
+
return false;
|
|
42211
|
+
}
|
|
42212
|
+
|
|
42213
|
+
for (var i = 0; i < bKeys.length; i++) {
|
|
42214
|
+
var key = aKeys[i];
|
|
42215
|
+
|
|
42216
|
+
if (objA[key] !== objB[key]) {
|
|
42217
|
+
return false;
|
|
42218
|
+
}
|
|
42219
|
+
}
|
|
42220
|
+
|
|
42221
|
+
return true;
|
|
42222
|
+
};
|
|
42223
|
+
/**
|
|
42224
|
+
* Sets a ref using either a ref callback or a ref object
|
|
42225
|
+
*/
|
|
42226
|
+
|
|
42227
|
+
var utils_setRef = function setRef(ref, node) {
|
|
42228
|
+
// if its a function call it
|
|
42229
|
+
if (typeof ref === "function") {
|
|
42230
|
+
return safeInvoke(ref, node);
|
|
42231
|
+
} // otherwise we should treat it as a ref object
|
|
42232
|
+
else if (ref != null) {
|
|
42233
|
+
ref.current = node;
|
|
42234
|
+
}
|
|
42235
|
+
};
|
|
42236
|
+
;// ../../../node_modules/react-popper/lib/esm/Popper.js
|
|
42237
|
+
|
|
42238
|
+
|
|
42239
|
+
|
|
42240
|
+
|
|
42241
|
+
|
|
42242
|
+
|
|
42243
|
+
|
|
42244
|
+
|
|
42245
|
+
|
|
42246
|
+
|
|
42247
|
+
var Popper_initialStyle = {
|
|
42248
|
+
position: 'absolute',
|
|
42249
|
+
top: 0,
|
|
42250
|
+
left: 0,
|
|
42251
|
+
opacity: 0,
|
|
42252
|
+
pointerEvents: 'none'
|
|
42253
|
+
};
|
|
42254
|
+
var Popper_initialArrowStyle = {};
|
|
42255
|
+
var Popper_InnerPopper =
|
|
42256
|
+
/*#__PURE__*/
|
|
42257
|
+
function (_React$Component) {
|
|
42258
|
+
_inheritsLoose(InnerPopper, _React$Component);
|
|
42259
|
+
|
|
42260
|
+
function InnerPopper() {
|
|
42261
|
+
var _this;
|
|
42262
|
+
|
|
42263
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42264
|
+
args[_key] = arguments[_key];
|
|
42265
|
+
}
|
|
42266
|
+
|
|
42267
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
42268
|
+
|
|
42269
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
|
|
42270
|
+
data: undefined,
|
|
42271
|
+
placement: undefined
|
|
42272
|
+
});
|
|
42273
|
+
|
|
42274
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "popperInstance", void 0);
|
|
42275
|
+
|
|
42276
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "popperNode", null);
|
|
42277
|
+
|
|
42278
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "arrowNode", null);
|
|
42279
|
+
|
|
42280
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setPopperNode", function (popperNode) {
|
|
42281
|
+
if (!popperNode || _this.popperNode === popperNode) return;
|
|
42282
|
+
utils_setRef(_this.props.innerRef, popperNode);
|
|
42283
|
+
_this.popperNode = popperNode;
|
|
42284
|
+
|
|
42285
|
+
_this.updatePopperInstance();
|
|
42286
|
+
});
|
|
42287
|
+
|
|
42288
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setArrowNode", function (arrowNode) {
|
|
42289
|
+
_this.arrowNode = arrowNode;
|
|
42290
|
+
});
|
|
42291
|
+
|
|
42292
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateStateModifier", {
|
|
42293
|
+
enabled: true,
|
|
42294
|
+
order: 900,
|
|
42295
|
+
fn: function fn(data) {
|
|
42296
|
+
var placement = data.placement;
|
|
42297
|
+
|
|
42298
|
+
_this.setState({
|
|
42299
|
+
data: data,
|
|
42300
|
+
placement: placement
|
|
42301
|
+
});
|
|
42302
|
+
|
|
42303
|
+
return data;
|
|
42304
|
+
}
|
|
42305
|
+
});
|
|
42306
|
+
|
|
42307
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOptions", function () {
|
|
42308
|
+
return {
|
|
42309
|
+
placement: _this.props.placement,
|
|
42310
|
+
eventsEnabled: _this.props.eventsEnabled,
|
|
42311
|
+
positionFixed: _this.props.positionFixed,
|
|
42312
|
+
modifiers: extends_extends({}, _this.props.modifiers, {
|
|
42313
|
+
arrow: extends_extends({}, _this.props.modifiers && _this.props.modifiers.arrow, {
|
|
42314
|
+
enabled: !!_this.arrowNode,
|
|
42315
|
+
element: _this.arrowNode
|
|
42316
|
+
}),
|
|
42317
|
+
applyStyle: {
|
|
42318
|
+
enabled: false
|
|
42319
|
+
},
|
|
42320
|
+
updateStateModifier: _this.updateStateModifier
|
|
42321
|
+
})
|
|
42322
|
+
};
|
|
42323
|
+
});
|
|
42324
|
+
|
|
42325
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPopperStyle", function () {
|
|
42326
|
+
return !_this.popperNode || !_this.state.data ? Popper_initialStyle : extends_extends({
|
|
42327
|
+
position: _this.state.data.offsets.popper.position
|
|
42328
|
+
}, _this.state.data.styles);
|
|
42329
|
+
});
|
|
42330
|
+
|
|
42331
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPopperPlacement", function () {
|
|
42332
|
+
return !_this.state.data ? undefined : _this.state.placement;
|
|
42333
|
+
});
|
|
42334
|
+
|
|
42335
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getArrowStyle", function () {
|
|
42336
|
+
return !_this.arrowNode || !_this.state.data ? Popper_initialArrowStyle : _this.state.data.arrowStyles;
|
|
42337
|
+
});
|
|
42338
|
+
|
|
42339
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOutOfBoundariesState", function () {
|
|
42340
|
+
return _this.state.data ? _this.state.data.hide : undefined;
|
|
42341
|
+
});
|
|
42342
|
+
|
|
42343
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "destroyPopperInstance", function () {
|
|
42344
|
+
if (!_this.popperInstance) return;
|
|
42345
|
+
|
|
42346
|
+
_this.popperInstance.destroy();
|
|
42347
|
+
|
|
42348
|
+
_this.popperInstance = null;
|
|
42349
|
+
});
|
|
42350
|
+
|
|
42351
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updatePopperInstance", function () {
|
|
42352
|
+
_this.destroyPopperInstance();
|
|
42353
|
+
|
|
42354
|
+
var _assertThisInitialize = _assertThisInitialized(_assertThisInitialized(_this)),
|
|
42355
|
+
popperNode = _assertThisInitialize.popperNode;
|
|
42356
|
+
|
|
42357
|
+
var referenceElement = _this.props.referenceElement;
|
|
42358
|
+
if (!referenceElement || !popperNode) return;
|
|
42359
|
+
_this.popperInstance = new popper(referenceElement, popperNode, _this.getOptions());
|
|
42360
|
+
});
|
|
42361
|
+
|
|
42362
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "scheduleUpdate", function () {
|
|
42363
|
+
if (_this.popperInstance) {
|
|
42364
|
+
_this.popperInstance.scheduleUpdate();
|
|
42365
|
+
}
|
|
42366
|
+
});
|
|
42367
|
+
|
|
42368
|
+
return _this;
|
|
42369
|
+
}
|
|
42370
|
+
|
|
42371
|
+
var _proto = InnerPopper.prototype;
|
|
42372
|
+
|
|
42373
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
|
|
42374
|
+
// If the Popper.js options have changed, update the instance (destroy + create)
|
|
42375
|
+
if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed || !deep_equal_default()(this.props.modifiers, prevProps.modifiers, {
|
|
42376
|
+
strict: true
|
|
42377
|
+
})) {
|
|
42378
|
+
// develop only check that modifiers isn't being updated needlessly
|
|
42379
|
+
if (false) // removed by dead control flow
|
|
42380
|
+
{}
|
|
42381
|
+
|
|
42382
|
+
this.updatePopperInstance();
|
|
42383
|
+
} else if (this.props.eventsEnabled !== prevProps.eventsEnabled && this.popperInstance) {
|
|
42384
|
+
this.props.eventsEnabled ? this.popperInstance.enableEventListeners() : this.popperInstance.disableEventListeners();
|
|
42385
|
+
} // A placement difference in state means popper determined a new placement
|
|
42386
|
+
// apart from the props value. By the time the popper element is rendered with
|
|
42387
|
+
// the new position Popper has already measured it, if the place change triggers
|
|
42388
|
+
// a size change it will result in a misaligned popper. So we schedule an update to be sure.
|
|
42389
|
+
|
|
42390
|
+
|
|
42391
|
+
if (prevState.placement !== this.state.placement) {
|
|
42392
|
+
this.scheduleUpdate();
|
|
42393
|
+
}
|
|
42394
|
+
};
|
|
42395
|
+
|
|
42396
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
42397
|
+
utils_setRef(this.props.innerRef, null);
|
|
42398
|
+
this.destroyPopperInstance();
|
|
42399
|
+
};
|
|
42400
|
+
|
|
42401
|
+
_proto.render = function render() {
|
|
42402
|
+
return unwrapArray(this.props.children)({
|
|
42403
|
+
ref: this.setPopperNode,
|
|
42404
|
+
style: this.getPopperStyle(),
|
|
42405
|
+
placement: this.getPopperPlacement(),
|
|
42406
|
+
outOfBoundaries: this.getOutOfBoundariesState(),
|
|
42407
|
+
scheduleUpdate: this.scheduleUpdate,
|
|
42408
|
+
arrowProps: {
|
|
42409
|
+
ref: this.setArrowNode,
|
|
42410
|
+
style: this.getArrowStyle()
|
|
42411
|
+
}
|
|
42412
|
+
});
|
|
42413
|
+
};
|
|
42414
|
+
|
|
42415
|
+
return InnerPopper;
|
|
42416
|
+
}(external_React_.Component);
|
|
42417
|
+
|
|
42418
|
+
_defineProperty(Popper_InnerPopper, "defaultProps", {
|
|
42419
|
+
placement: 'bottom',
|
|
42420
|
+
eventsEnabled: true,
|
|
42421
|
+
referenceElement: undefined,
|
|
42422
|
+
positionFixed: false
|
|
42423
|
+
});
|
|
42424
|
+
|
|
42425
|
+
var Popper_placements = popper.placements;
|
|
42426
|
+
|
|
42427
|
+
function Popper_Popper(_ref) {
|
|
42428
|
+
var referenceElement = _ref.referenceElement,
|
|
42429
|
+
props = _objectWithoutPropertiesLoose(_ref, ["referenceElement"]);
|
|
42430
|
+
|
|
42431
|
+
return external_React_.createElement(ManagerReferenceNodeContext.Consumer, null, function (referenceNode) {
|
|
42432
|
+
return external_React_.createElement(Popper_InnerPopper, extends_extends({
|
|
42433
|
+
referenceElement: referenceElement !== undefined ? referenceElement : referenceNode
|
|
42434
|
+
}, props));
|
|
42435
|
+
});
|
|
42436
|
+
}
|
|
42437
|
+
// EXTERNAL MODULE: ../../../node_modules/warning/warning.js
|
|
42438
|
+
var warning = __webpack_require__(345);
|
|
42439
|
+
var warning_default = /*#__PURE__*/__webpack_require__.n(warning);
|
|
42440
|
+
;// ../../../node_modules/react-popper/lib/esm/Reference.js
|
|
42441
|
+
|
|
42442
|
+
|
|
42443
|
+
|
|
42444
|
+
|
|
42445
|
+
|
|
42446
|
+
|
|
42447
|
+
|
|
42448
|
+
|
|
42449
|
+
|
|
42450
|
+
var Reference_InnerReference =
|
|
42451
|
+
/*#__PURE__*/
|
|
42452
|
+
function (_React$Component) {
|
|
42453
|
+
_inheritsLoose(InnerReference, _React$Component);
|
|
42454
|
+
|
|
42455
|
+
function InnerReference() {
|
|
42456
|
+
var _this;
|
|
42457
|
+
|
|
42458
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42459
|
+
args[_key] = arguments[_key];
|
|
42460
|
+
}
|
|
42461
|
+
|
|
42462
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
42463
|
+
|
|
42464
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "refHandler", function (node) {
|
|
42465
|
+
utils_setRef(_this.props.innerRef, node);
|
|
42466
|
+
safeInvoke(_this.props.setReferenceNode, node);
|
|
42467
|
+
});
|
|
42468
|
+
|
|
42469
|
+
return _this;
|
|
42470
|
+
}
|
|
42471
|
+
|
|
42472
|
+
var _proto = InnerReference.prototype;
|
|
42473
|
+
|
|
42474
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
42475
|
+
utils_setRef(this.props.innerRef, null);
|
|
42476
|
+
};
|
|
42477
|
+
|
|
42478
|
+
_proto.render = function render() {
|
|
42479
|
+
warning_default()(Boolean(this.props.setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
|
|
42480
|
+
return unwrapArray(this.props.children)({
|
|
42481
|
+
ref: this.refHandler
|
|
42482
|
+
});
|
|
42483
|
+
};
|
|
42484
|
+
|
|
42485
|
+
return InnerReference;
|
|
42486
|
+
}(external_React_.Component);
|
|
42487
|
+
|
|
42488
|
+
function Reference_Reference(props) {
|
|
42489
|
+
return external_React_.createElement(ManagerReferenceNodeSetterContext.Consumer, null, function (setReferenceNode) {
|
|
42490
|
+
return external_React_.createElement(Reference_InnerReference, extends_extends({
|
|
42491
|
+
setReferenceNode: setReferenceNode
|
|
42492
|
+
}, props));
|
|
42493
|
+
});
|
|
42494
|
+
}
|
|
42287
42495
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
42288
42496
|
var prop_types = __webpack_require__(7598);
|
|
42289
42497
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
@@ -43076,10 +43284,10 @@ class CorePopover extends external_React_.Component {
|
|
|
43076
43284
|
});
|
|
43077
43285
|
const shouldAnimate = CorePopover_shouldAnimatePopover(this.props);
|
|
43078
43286
|
const shouldRenderPopper = isMounted && (shouldAnimate || shown);
|
|
43079
|
-
return (external_React_.createElement(
|
|
43287
|
+
return (external_React_.createElement(Manager_Manager, null,
|
|
43080
43288
|
external_React_.createElement(CoreClickOutside, { rootRef: this.clickOutsideRef, onClickOutside: shown ? this._handleClickOutside : undefined, excludeClass: [this.clickOutsideClass, excludeClass] },
|
|
43081
43289
|
external_React_.createElement("div", { ref: this.clickOutsideRef, style: style, "data-content-hook": this.contentHook, className: (0,CorePopover_st.st)(CorePopover_st.classes.root, { fluid }, this.props.className), onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, id: id, ...FilterDataProps_filterDataProps(this.props) },
|
|
43082
|
-
external_React_.createElement(
|
|
43290
|
+
external_React_.createElement(Reference_Reference, { innerRef: (r) => (this.targetRef = r) }, ({ ref }) => (external_React_.createElement("div", { ref: ref, className: CorePopover_st.classes.popoverElement, "data-hook": const_DataHooks.element, onClick: onClick, onKeyDown: onKeyDown }, childrenObject.Element))),
|
|
43083
43291
|
shouldRenderPopper && this.renderPopperContent(childrenObject)))));
|
|
43084
43292
|
}
|
|
43085
43293
|
}
|
|
@@ -44402,6 +44610,17 @@ const filterObject = (object, filter = () => true) => {
|
|
|
44402
44610
|
return output;
|
|
44403
44611
|
};
|
|
44404
44612
|
//# sourceMappingURL=filterObject.js.map
|
|
44613
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/Box/utils/splitDomAttributes.js
|
|
44614
|
+
|
|
44615
|
+
const DOM_ATTRIBUTE_PREFIXES = ['data-', 'aria-'];
|
|
44616
|
+
const isDomAttribute = (key) => typeof key === 'string' &&
|
|
44617
|
+
(DOM_ATTRIBUTE_PREFIXES.some(prefix => key.startsWith(prefix)) ||
|
|
44618
|
+
/^on[A-Z]/.test(key));
|
|
44619
|
+
const splitDomAttributes = (props) => ({
|
|
44620
|
+
domAttributes: filterObject(props, key => isDomAttribute(key)),
|
|
44621
|
+
rest: filterObject(props, key => !isDomAttribute(key)),
|
|
44622
|
+
});
|
|
44623
|
+
//# sourceMappingURL=splitDomAttributes.js.map
|
|
44405
44624
|
;// ../../../node_modules/@wix/design-system/dist/esm/Foundation/constants/spacing.js
|
|
44406
44625
|
/** Spacing keys accepted by Box and Layout spacing props; keys and order are public API. */
|
|
44407
44626
|
const spacing = {
|
|
@@ -44512,6 +44731,7 @@ const getSizeValues = (props) => {
|
|
|
44512
44731
|
|
|
44513
44732
|
|
|
44514
44733
|
|
|
44734
|
+
|
|
44515
44735
|
const getColorStyles = (props) => {
|
|
44516
44736
|
const styles = {};
|
|
44517
44737
|
for (const propName in props) {
|
|
@@ -44522,12 +44742,13 @@ const getColorStyles = (props) => {
|
|
|
44522
44742
|
}
|
|
44523
44743
|
return styles;
|
|
44524
44744
|
};
|
|
44525
|
-
const Box = (0,external_React_.forwardRef)(({ inline = false, direction = DIRECTION.horizontal, children, className, align, verticalAlign, dataHook, gap, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginTop, marginRight, marginBottom, marginLeft, minWidth, maxWidth, width, minHeight, maxHeight, height, color, backgroundColor, border, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, style, role, ariaLabel, 'data-hook': dataHookByKebabCase, ...
|
|
44745
|
+
const Box = (0,external_React_.forwardRef)(({ inline = false, direction = DIRECTION.horizontal, children, className, align, verticalAlign, dataHook, gap, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginTop, marginRight, marginBottom, marginLeft, minWidth, maxWidth, width, minHeight, maxHeight, height, color, backgroundColor, border, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, style, role, ariaLabel, 'data-hook': dataHookByKebabCase, ...restProps }, ref) => {
|
|
44526
44746
|
(0,external_React_.useEffect)(() => {
|
|
44527
44747
|
if (typeof dataHookByKebabCase !== 'undefined') {
|
|
44528
44748
|
deprecationLog_deprecationLog('<Box/> - prop "data-hook" is deprecated and will be removed in next major release, please use "dataHook" instead.');
|
|
44529
44749
|
}
|
|
44530
44750
|
}, [dataHookByKebabCase]);
|
|
44751
|
+
const { domAttributes, rest: nativeStyles } = splitDomAttributes(restProps);
|
|
44531
44752
|
const rootClassNames = Box_classes_classes.root({ inline, direction, align, verticalAlign }, className);
|
|
44532
44753
|
const rootStyles = {
|
|
44533
44754
|
...style,
|
|
@@ -44566,7 +44787,7 @@ const Box = (0,external_React_.forwardRef)(({ inline = false, direction = DIRECT
|
|
|
44566
44787
|
};
|
|
44567
44788
|
const rootStylesFiltered = filterObject(rootStyles, (_key, value) => typeof value !== 'undefined');
|
|
44568
44789
|
const tabIndex = role && ['button', 'link'].includes(role) ? 0 : undefined;
|
|
44569
|
-
return (external_React_default().createElement("div", { "aria-label": ariaLabel, role: role, tabIndex: tabIndex, "data-hook": dataHook, className: rootClassNames, style: rootStylesFiltered, ref: ref }, children));
|
|
44790
|
+
return (external_React_default().createElement("div", { ...domAttributes, "aria-label": ariaLabel ?? domAttributes['aria-label'], role: role, tabIndex: tabIndex, "data-hook": dataHook, className: rootClassNames, style: rootStylesFiltered, ref: ref }, children));
|
|
44570
44791
|
});
|
|
44571
44792
|
Box.displayName = 'Box';
|
|
44572
44793
|
|
|
@@ -45031,9 +45252,6 @@ const listItemSelectBuilder = ({ id, className, checkbox, prefix, title, label,
|
|
|
45031
45252
|
// EXTERNAL MODULE: ../../../node_modules/lodash/defaultTo.js
|
|
45032
45253
|
var defaultTo = __webpack_require__(8242);
|
|
45033
45254
|
var defaultTo_default = /*#__PURE__*/__webpack_require__.n(defaultTo);
|
|
45034
|
-
// EXTERNAL MODULE: ../../../node_modules/lodash/isEqual.js
|
|
45035
|
-
var isEqual = __webpack_require__(8434);
|
|
45036
|
-
var isEqual_default = /*#__PURE__*/__webpack_require__.n(isEqual);
|
|
45037
45255
|
// EXTERNAL MODULE: ../../../node_modules/lodash/sortBy.js
|
|
45038
45256
|
var sortBy = __webpack_require__(7493);
|
|
45039
45257
|
var sortBy_default = /*#__PURE__*/__webpack_require__.n(sortBy);
|
|
@@ -67089,7 +67307,7 @@ var Menu = function Menu(props) {
|
|
|
67089
67307
|
getStyles = props.getStyles,
|
|
67090
67308
|
innerRef = props.innerRef,
|
|
67091
67309
|
innerProps = props.innerProps;
|
|
67092
|
-
return core_browser_esm_jsx("div",
|
|
67310
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67093
67311
|
css: getStyles('menu', props),
|
|
67094
67312
|
className: cx({
|
|
67095
67313
|
menu: true
|
|
@@ -67122,7 +67340,7 @@ var MenuList = function MenuList(props) {
|
|
|
67122
67340
|
isMulti = props.isMulti,
|
|
67123
67341
|
innerRef = props.innerRef,
|
|
67124
67342
|
innerProps = props.innerProps;
|
|
67125
|
-
return core_browser_esm_jsx("div",
|
|
67343
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67126
67344
|
css: getStyles('menuList', props),
|
|
67127
67345
|
className: cx({
|
|
67128
67346
|
'menu-list': true,
|
|
@@ -67153,7 +67371,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
67153
67371
|
cx = props.cx,
|
|
67154
67372
|
getStyles = props.getStyles,
|
|
67155
67373
|
innerProps = props.innerProps;
|
|
67156
|
-
return core_browser_esm_jsx("div",
|
|
67374
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67157
67375
|
css: getStyles('noOptionsMessage', props),
|
|
67158
67376
|
className: cx({
|
|
67159
67377
|
'menu-notice': true,
|
|
@@ -67170,7 +67388,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
67170
67388
|
cx = props.cx,
|
|
67171
67389
|
getStyles = props.getStyles,
|
|
67172
67390
|
innerProps = props.innerProps;
|
|
67173
|
-
return core_browser_esm_jsx("div",
|
|
67391
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67174
67392
|
css: getStyles('loadingMessage', props),
|
|
67175
67393
|
className: cx({
|
|
67176
67394
|
'menu-notice': true,
|
|
@@ -67378,7 +67596,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
67378
67596
|
innerProps = props.innerProps,
|
|
67379
67597
|
isDisabled = props.isDisabled,
|
|
67380
67598
|
isRtl = props.isRtl;
|
|
67381
|
-
return core_browser_esm_jsx("div",
|
|
67599
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67382
67600
|
css: getStyles('container', props),
|
|
67383
67601
|
className: cx({
|
|
67384
67602
|
'--is-disabled': isDisabled,
|
|
@@ -67466,7 +67684,7 @@ var Svg = function Svg(_ref) {
|
|
|
67466
67684
|
var size = _ref.size,
|
|
67467
67685
|
props = _objectWithoutProperties(_ref, ["size"]);
|
|
67468
67686
|
|
|
67469
|
-
return core_browser_esm_jsx("svg",
|
|
67687
|
+
return core_browser_esm_jsx("svg", extends_extends({
|
|
67470
67688
|
height: size,
|
|
67471
67689
|
width: size,
|
|
67472
67690
|
viewBox: "0 0 20 20",
|
|
@@ -67477,14 +67695,14 @@ var Svg = function Svg(_ref) {
|
|
|
67477
67695
|
};
|
|
67478
67696
|
|
|
67479
67697
|
var CrossIcon = function CrossIcon(props) {
|
|
67480
|
-
return core_browser_esm_jsx(Svg,
|
|
67698
|
+
return core_browser_esm_jsx(Svg, extends_extends({
|
|
67481
67699
|
size: 20
|
|
67482
67700
|
}, props), core_browser_esm_jsx("path", {
|
|
67483
67701
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
67484
67702
|
}));
|
|
67485
67703
|
};
|
|
67486
67704
|
var DownChevron = function DownChevron(props) {
|
|
67487
|
-
return core_browser_esm_jsx(Svg,
|
|
67705
|
+
return core_browser_esm_jsx(Svg, extends_extends({
|
|
67488
67706
|
size: 20
|
|
67489
67707
|
}, props), core_browser_esm_jsx("path", {
|
|
67490
67708
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -67517,7 +67735,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
67517
67735
|
cx = props.cx,
|
|
67518
67736
|
getStyles = props.getStyles,
|
|
67519
67737
|
innerProps = props.innerProps;
|
|
67520
|
-
return core_browser_esm_jsx("div",
|
|
67738
|
+
return core_browser_esm_jsx("div", extends_extends({}, innerProps, {
|
|
67521
67739
|
css: getStyles('dropdownIndicator', props),
|
|
67522
67740
|
className: cx({
|
|
67523
67741
|
indicator: true,
|
|
@@ -67532,7 +67750,7 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
|
67532
67750
|
cx = props.cx,
|
|
67533
67751
|
getStyles = props.getStyles,
|
|
67534
67752
|
innerProps = props.innerProps;
|
|
67535
|
-
return core_browser_esm_jsx("div",
|
|
67753
|
+
return core_browser_esm_jsx("div", extends_extends({}, innerProps, {
|
|
67536
67754
|
css: getStyles('clearIndicator', props),
|
|
67537
67755
|
className: cx({
|
|
67538
67756
|
indicator: true,
|
|
@@ -67562,7 +67780,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
67562
67780
|
cx = props.cx,
|
|
67563
67781
|
getStyles = props.getStyles,
|
|
67564
67782
|
innerProps = props.innerProps;
|
|
67565
|
-
return core_browser_esm_jsx("span",
|
|
67783
|
+
return core_browser_esm_jsx("span", extends_extends({}, innerProps, {
|
|
67566
67784
|
css: getStyles('indicatorSeparator', props),
|
|
67567
67785
|
className: cx({
|
|
67568
67786
|
'indicator-separator': true
|
|
@@ -67617,7 +67835,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
67617
67835
|
getStyles = props.getStyles,
|
|
67618
67836
|
innerProps = props.innerProps,
|
|
67619
67837
|
isRtl = props.isRtl;
|
|
67620
|
-
return core_browser_esm_jsx("div",
|
|
67838
|
+
return core_browser_esm_jsx("div", extends_extends({}, innerProps, {
|
|
67621
67839
|
css: getStyles('loadingIndicator', props),
|
|
67622
67840
|
className: cx({
|
|
67623
67841
|
indicator: true,
|
|
@@ -67678,7 +67896,7 @@ var Control = function Control(props) {
|
|
|
67678
67896
|
innerRef = props.innerRef,
|
|
67679
67897
|
innerProps = props.innerProps,
|
|
67680
67898
|
menuIsOpen = props.menuIsOpen;
|
|
67681
|
-
return core_browser_esm_jsx("div",
|
|
67899
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67682
67900
|
ref: innerRef,
|
|
67683
67901
|
css: getStyles('control', props),
|
|
67684
67902
|
className: cx({
|
|
@@ -67716,7 +67934,7 @@ var index_75b02bac_browser_esm_Group = function Group(props) {
|
|
|
67716
67934
|
className: cx({
|
|
67717
67935
|
group: true
|
|
67718
67936
|
}, className)
|
|
67719
|
-
}, core_browser_esm_jsx(Heading,
|
|
67937
|
+
}, core_browser_esm_jsx(Heading, extends_extends({}, headingProps, {
|
|
67720
67938
|
selectProps: selectProps,
|
|
67721
67939
|
theme: theme,
|
|
67722
67940
|
getStyles: getStyles,
|
|
@@ -67747,7 +67965,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
67747
67965
|
selectProps = props.selectProps,
|
|
67748
67966
|
cleanProps = _objectWithoutProperties(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
|
|
67749
67967
|
|
|
67750
|
-
return core_browser_esm_jsx("div",
|
|
67968
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67751
67969
|
css: getStyles('groupHeading', _objectSpread$1({
|
|
67752
67970
|
theme: theme
|
|
67753
67971
|
}, cleanProps)),
|
|
@@ -67802,7 +68020,7 @@ var index_75b02bac_browser_esm_Input = function Input(_ref2) {
|
|
|
67802
68020
|
css: getStyles('input', _objectSpread$2({
|
|
67803
68021
|
theme: theme
|
|
67804
68022
|
}, props))
|
|
67805
|
-
}, core_browser_esm_jsx(AutosizeInput/* default */.A,
|
|
68023
|
+
}, core_browser_esm_jsx(AutosizeInput/* default */.A, extends_extends({
|
|
67806
68024
|
className: cx({
|
|
67807
68025
|
input: true
|
|
67808
68026
|
}, className),
|
|
@@ -67965,7 +68183,7 @@ var Option = function Option(props) {
|
|
|
67965
68183
|
isSelected = props.isSelected,
|
|
67966
68184
|
innerRef = props.innerRef,
|
|
67967
68185
|
innerProps = props.innerProps;
|
|
67968
|
-
return core_browser_esm_jsx("div",
|
|
68186
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
67969
68187
|
css: getStyles('option', props),
|
|
67970
68188
|
className: cx({
|
|
67971
68189
|
option: true,
|
|
@@ -67998,7 +68216,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
67998
68216
|
cx = props.cx,
|
|
67999
68217
|
getStyles = props.getStyles,
|
|
68000
68218
|
innerProps = props.innerProps;
|
|
68001
|
-
return core_browser_esm_jsx("div",
|
|
68219
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
68002
68220
|
css: getStyles('placeholder', props),
|
|
68003
68221
|
className: cx({
|
|
68004
68222
|
placeholder: true
|
|
@@ -68033,7 +68251,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
68033
68251
|
getStyles = props.getStyles,
|
|
68034
68252
|
isDisabled = props.isDisabled,
|
|
68035
68253
|
innerProps = props.innerProps;
|
|
68036
|
-
return core_browser_esm_jsx("div",
|
|
68254
|
+
return core_browser_esm_jsx("div", extends_extends({
|
|
68037
68255
|
css: getStyles('singleValue', props),
|
|
68038
68256
|
className: cx({
|
|
68039
68257
|
'single-value': true,
|
|
@@ -68422,7 +68640,7 @@ var _ref = true ? {
|
|
|
68422
68640
|
} : 0;
|
|
68423
68641
|
|
|
68424
68642
|
var A11yText = function A11yText(props) {
|
|
68425
|
-
return core_browser_esm_jsx("span",
|
|
68643
|
+
return core_browser_esm_jsx("span", extends_extends({
|
|
68426
68644
|
css: _ref
|
|
68427
68645
|
}, props));
|
|
68428
68646
|
};
|
|
@@ -68438,7 +68656,7 @@ function DummyInput(_ref) {
|
|
|
68438
68656
|
emotion = _ref.emotion,
|
|
68439
68657
|
props = _objectWithoutProperties(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
|
|
68440
68658
|
|
|
68441
|
-
return core_browser_esm_jsx("input",
|
|
68659
|
+
return core_browser_esm_jsx("input", extends_extends({
|
|
68442
68660
|
ref: innerRef
|
|
68443
68661
|
}, props, {
|
|
68444
68662
|
css: /*#__PURE__*/css_browser_esm({
|
|
@@ -70497,7 +70715,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70497
70715
|
|
|
70498
70716
|
if (!isSearchable) {
|
|
70499
70717
|
// use a dummy input to maintain focus/blur functionality
|
|
70500
|
-
return /*#__PURE__*/external_React_default().createElement(DummyInput,
|
|
70718
|
+
return /*#__PURE__*/external_React_default().createElement(DummyInput, extends_extends({
|
|
70501
70719
|
id: id,
|
|
70502
70720
|
innerRef: this.getInputRef,
|
|
70503
70721
|
onBlur: this.onInputBlur,
|
|
@@ -70515,7 +70733,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70515
70733
|
cx = _this$commonProps.cx,
|
|
70516
70734
|
theme = _this$commonProps.theme,
|
|
70517
70735
|
selectProps = _this$commonProps.selectProps;
|
|
70518
|
-
return /*#__PURE__*/external_React_default().createElement(Input,
|
|
70736
|
+
return /*#__PURE__*/external_React_default().createElement(Input, extends_extends({
|
|
70519
70737
|
autoCapitalize: "none",
|
|
70520
70738
|
autoComplete: "off",
|
|
70521
70739
|
autoCorrect: "off",
|
|
@@ -70562,7 +70780,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70562
70780
|
isFocused = _this$state8.isFocused;
|
|
70563
70781
|
|
|
70564
70782
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
70565
|
-
return inputValue ? null : /*#__PURE__*/external_React_default().createElement(Placeholder,
|
|
70783
|
+
return inputValue ? null : /*#__PURE__*/external_React_default().createElement(Placeholder, extends_extends({}, commonProps, {
|
|
70566
70784
|
key: "placeholder",
|
|
70567
70785
|
isDisabled: isDisabled,
|
|
70568
70786
|
isFocused: isFocused
|
|
@@ -70572,7 +70790,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70572
70790
|
if (isMulti) {
|
|
70573
70791
|
var selectValues = selectValue.map(function (opt, index) {
|
|
70574
70792
|
var isOptionFocused = opt === focusedValue;
|
|
70575
|
-
return /*#__PURE__*/external_React_default().createElement(MultiValue,
|
|
70793
|
+
return /*#__PURE__*/external_React_default().createElement(MultiValue, extends_extends({}, commonProps, {
|
|
70576
70794
|
components: {
|
|
70577
70795
|
Container: MultiValueContainer,
|
|
70578
70796
|
Label: MultiValueLabel,
|
|
@@ -70605,7 +70823,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70605
70823
|
}
|
|
70606
70824
|
|
|
70607
70825
|
var singleValue = selectValue[0];
|
|
70608
|
-
return /*#__PURE__*/external_React_default().createElement(SingleValue,
|
|
70826
|
+
return /*#__PURE__*/external_React_default().createElement(SingleValue, extends_extends({}, commonProps, {
|
|
70609
70827
|
data: singleValue,
|
|
70610
70828
|
isDisabled: isDisabled
|
|
70611
70829
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -70629,7 +70847,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70629
70847
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
70630
70848
|
'aria-hidden': 'true'
|
|
70631
70849
|
};
|
|
70632
|
-
return /*#__PURE__*/external_React_default().createElement(ClearIndicator,
|
|
70850
|
+
return /*#__PURE__*/external_React_default().createElement(ClearIndicator, extends_extends({}, commonProps, {
|
|
70633
70851
|
innerProps: innerProps,
|
|
70634
70852
|
isFocused: isFocused
|
|
70635
70853
|
}));
|
|
@@ -70647,7 +70865,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70647
70865
|
var innerProps = {
|
|
70648
70866
|
'aria-hidden': 'true'
|
|
70649
70867
|
};
|
|
70650
|
-
return /*#__PURE__*/external_React_default().createElement(LoadingIndicator,
|
|
70868
|
+
return /*#__PURE__*/external_React_default().createElement(LoadingIndicator, extends_extends({}, commonProps, {
|
|
70651
70869
|
innerProps: innerProps,
|
|
70652
70870
|
isDisabled: isDisabled,
|
|
70653
70871
|
isFocused: isFocused
|
|
@@ -70664,7 +70882,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70664
70882
|
var commonProps = this.commonProps;
|
|
70665
70883
|
var isDisabled = this.props.isDisabled;
|
|
70666
70884
|
var isFocused = this.state.isFocused;
|
|
70667
|
-
return /*#__PURE__*/external_React_default().createElement(IndicatorSeparator,
|
|
70885
|
+
return /*#__PURE__*/external_React_default().createElement(IndicatorSeparator, extends_extends({}, commonProps, {
|
|
70668
70886
|
isDisabled: isDisabled,
|
|
70669
70887
|
isFocused: isFocused
|
|
70670
70888
|
}));
|
|
@@ -70682,7 +70900,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70682
70900
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
70683
70901
|
'aria-hidden': 'true'
|
|
70684
70902
|
};
|
|
70685
|
-
return /*#__PURE__*/external_React_default().createElement(DropdownIndicator,
|
|
70903
|
+
return /*#__PURE__*/external_React_default().createElement(DropdownIndicator, extends_extends({}, commonProps, {
|
|
70686
70904
|
innerProps: innerProps,
|
|
70687
70905
|
isDisabled: isDisabled,
|
|
70688
70906
|
isFocused: isFocused
|
|
@@ -70729,7 +70947,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70729
70947
|
// focused option changes so we calculate additional props based on that
|
|
70730
70948
|
var isFocused = focusedOption === props.data;
|
|
70731
70949
|
props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
|
|
70732
|
-
return /*#__PURE__*/external_React_default().createElement(Option,
|
|
70950
|
+
return /*#__PURE__*/external_React_default().createElement(Option, extends_extends({}, commonProps, props, {
|
|
70733
70951
|
isFocused: isFocused
|
|
70734
70952
|
}), _this5.formatOptionLabel(props.data, 'menu'));
|
|
70735
70953
|
};
|
|
@@ -70743,7 +70961,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70743
70961
|
group = _objectWithoutProperties(item, ["type"]);
|
|
70744
70962
|
|
|
70745
70963
|
var headingId = "".concat(item.key, "-heading");
|
|
70746
|
-
return /*#__PURE__*/external_React_default().createElement(Group,
|
|
70964
|
+
return /*#__PURE__*/external_React_default().createElement(Group, extends_extends({}, commonProps, group, {
|
|
70747
70965
|
Heading: GroupHeading,
|
|
70748
70966
|
headingProps: {
|
|
70749
70967
|
id: headingId,
|
|
@@ -70779,12 +70997,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70779
70997
|
menuPosition: menuPosition,
|
|
70780
70998
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
70781
70999
|
};
|
|
70782
|
-
var menuElement = /*#__PURE__*/external_React_default().createElement(MenuPlacer,
|
|
71000
|
+
var menuElement = /*#__PURE__*/external_React_default().createElement(MenuPlacer, extends_extends({}, commonProps, menuPlacementProps), function (_ref10) {
|
|
70783
71001
|
var ref = _ref10.ref,
|
|
70784
71002
|
_ref10$placerProps = _ref10.placerProps,
|
|
70785
71003
|
placement = _ref10$placerProps.placement,
|
|
70786
71004
|
maxHeight = _ref10$placerProps.maxHeight;
|
|
70787
|
-
return /*#__PURE__*/external_React_default().createElement(Menu,
|
|
71005
|
+
return /*#__PURE__*/external_React_default().createElement(Menu, extends_extends({}, commonProps, menuPlacementProps, {
|
|
70788
71006
|
innerRef: ref,
|
|
70789
71007
|
innerProps: {
|
|
70790
71008
|
onMouseDown: _this5.onMenuMouseDown,
|
|
@@ -70798,7 +71016,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70798
71016
|
onBottomArrive: onMenuScrollToBottom
|
|
70799
71017
|
}, /*#__PURE__*/external_React_default().createElement(ScrollBlock, {
|
|
70800
71018
|
isEnabled: menuShouldBlockScroll
|
|
70801
|
-
}, /*#__PURE__*/external_React_default().createElement(MenuList,
|
|
71019
|
+
}, /*#__PURE__*/external_React_default().createElement(MenuList, extends_extends({}, commonProps, {
|
|
70802
71020
|
innerRef: _this5.getMenuListRef,
|
|
70803
71021
|
isLoading: isLoading,
|
|
70804
71022
|
maxHeight: maxHeight
|
|
@@ -70807,7 +71025,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70807
71025
|
// so we use the same component. the actual portalling logic is forked
|
|
70808
71026
|
// within the component based on `menuPosition`
|
|
70809
71027
|
|
|
70810
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/external_React_default().createElement(MenuPortal,
|
|
71028
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/external_React_default().createElement(MenuPortal, extends_extends({}, commonProps, {
|
|
70811
71029
|
appendTo: menuPortalTarget,
|
|
70812
71030
|
controlElement: this.controlRef,
|
|
70813
71031
|
menuPlacement: menuPlacement,
|
|
@@ -70888,7 +71106,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70888
71106
|
menuIsOpen = _this$props22.menuIsOpen;
|
|
70889
71107
|
var isFocused = this.state.isFocused;
|
|
70890
71108
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
70891
|
-
return /*#__PURE__*/external_React_default().createElement(SelectContainer,
|
|
71109
|
+
return /*#__PURE__*/external_React_default().createElement(SelectContainer, extends_extends({}, commonProps, {
|
|
70892
71110
|
className: className,
|
|
70893
71111
|
innerProps: {
|
|
70894
71112
|
id: id,
|
|
@@ -70896,7 +71114,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70896
71114
|
},
|
|
70897
71115
|
isDisabled: isDisabled,
|
|
70898
71116
|
isFocused: isFocused
|
|
70899
|
-
}), this.renderLiveRegion(), /*#__PURE__*/external_React_default().createElement(Control,
|
|
71117
|
+
}), this.renderLiveRegion(), /*#__PURE__*/external_React_default().createElement(Control, extends_extends({}, commonProps, {
|
|
70900
71118
|
innerRef: this.getControlRef,
|
|
70901
71119
|
innerProps: {
|
|
70902
71120
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -70905,9 +71123,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
70905
71123
|
isDisabled: isDisabled,
|
|
70906
71124
|
isFocused: isFocused,
|
|
70907
71125
|
menuIsOpen: menuIsOpen
|
|
70908
|
-
}), /*#__PURE__*/external_React_default().createElement(ValueContainer,
|
|
71126
|
+
}), /*#__PURE__*/external_React_default().createElement(ValueContainer, extends_extends({}, commonProps, {
|
|
70909
71127
|
isDisabled: isDisabled
|
|
70910
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/external_React_default().createElement(IndicatorsContainer,
|
|
71128
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/external_React_default().createElement(IndicatorsContainer, extends_extends({}, commonProps, {
|
|
70911
71129
|
isDisabled: isDisabled
|
|
70912
71130
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
70913
71131
|
}
|
|
@@ -71042,7 +71260,7 @@ var manageState = function manageState(SelectComponent) {
|
|
|
71042
71260
|
defaultValue = _this$props2.defaultValue,
|
|
71043
71261
|
props = _objectWithoutProperties(_this$props2, ["defaultInputValue", "defaultMenuIsOpen", "defaultValue"]);
|
|
71044
71262
|
|
|
71045
|
-
return /*#__PURE__*/external_React_default().createElement(SelectComponent,
|
|
71263
|
+
return /*#__PURE__*/external_React_default().createElement(SelectComponent, extends_extends({}, props, {
|
|
71046
71264
|
ref: function ref(_ref) {
|
|
71047
71265
|
_this2.select = _ref;
|
|
71048
71266
|
},
|