pollination-react-io 1.0.0 → 1.1.2
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/build/GetGeometry/GetGeometry.types.d.ts +8 -0
- package/build/GetModel/GetModel.types.d.ts +8 -0
- package/build/SendGeometry/SendGeometry.types.d.ts +12 -1
- package/build/SendModel/SendModel.types.d.ts +12 -1
- package/build/atoms/ConditionalWrapper/index.d.ts +7 -5
- package/build/atoms/Dropdown/Dropdown.d.ts +2 -1
- package/build/atoms/InputLabel/InputLabel.d.ts +4 -0
- package/build/atoms/InputLabel/InputLabel.types.d.ts +3 -0
- package/build/atoms/SettingsButton/index.d.ts +2 -0
- package/build/atoms/index.d.ts +1 -0
- package/build/index.esm.js +459 -214
- package/build/index.esm.js.map +1 -1
- package/build/index.js +459 -214
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -23822,8 +23822,8 @@ var useHbjsontoVTK = function () {
|
|
|
23822
23822
|
|
|
23823
23823
|
function composeRefs(...o){return e=>o.forEach((o=>function(o,e){"function"==typeof o?o(e):null!=o&&(o.current=e);}(o,e)))}function useComposedRefs(...e){return React__namespace.useCallback(composeRefs(...e),e)}
|
|
23824
23824
|
|
|
23825
|
-
function _extends$
|
|
23826
|
-
_extends$
|
|
23825
|
+
function _extends$g() {
|
|
23826
|
+
_extends$g = Object.assign ? Object.assign.bind() : function (target) {
|
|
23827
23827
|
for (var i = 1; i < arguments.length; i++) {
|
|
23828
23828
|
var source = arguments[i];
|
|
23829
23829
|
|
|
@@ -23836,12 +23836,12 @@ function _extends$c() {
|
|
|
23836
23836
|
|
|
23837
23837
|
return target;
|
|
23838
23838
|
};
|
|
23839
|
-
return _extends$
|
|
23839
|
+
return _extends$g.apply(this, arguments);
|
|
23840
23840
|
}
|
|
23841
23841
|
|
|
23842
|
-
const Slot=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>{const{children:a,...s}=e;return React__namespace.Children.toArray(a).some(l$6)?/*#__PURE__*/React__namespace.createElement(React__namespace.Fragment,null,React__namespace.Children.map(a,(e=>l$6(e)?/*#__PURE__*/React__namespace.createElement(n$7,_extends$
|
|
23842
|
+
const Slot=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>{const{children:a,...s}=e;return React__namespace.Children.toArray(a).some(l$6)?/*#__PURE__*/React__namespace.createElement(React__namespace.Fragment,null,React__namespace.Children.map(a,(e=>l$6(e)?/*#__PURE__*/React__namespace.createElement(n$7,_extends$g({},s,{ref:o}),e.props.children):e))):/*#__PURE__*/React__namespace.createElement(n$7,_extends$g({},s,{ref:o}),a)}));Slot.displayName="Slot";const n$7=/*#__PURE__*/React__namespace.forwardRef(((r,n)=>{const{children:l,...a}=r;return React__namespace.isValidElement(l)?/*#__PURE__*/React__namespace.cloneElement(l,{...o$3(a,l.props),ref:composeRefs(n,l.ref)}):React__namespace.Children.count(l)>1?React__namespace.Children.only(null):null}));n$7.displayName="SlotClone";const Slottable=({children:e})=>/*#__PURE__*/React__namespace.createElement(React__namespace.Fragment,null,e);function l$6(e){return React__namespace.isValidElement(e)&&e.type===Slottable}function o$3(e,t){const r={...t};for(const n in t){const l=e[n],o=t[n];/^on[A-Z]/.test(n)?r[n]=(...e)=>{null==o||o(...e),null==l||l(...e);}:"style"===n?r[n]={...l,...o}:"className"===n&&(r[n]=[l,o].filter(Boolean).join(" "));}return {...e,...r}}
|
|
23843
23843
|
|
|
23844
|
-
const Primitive=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((o,i)=>({...o,[i]:/*#__PURE__*/React__namespace.forwardRef(((o,m)=>{const{asChild:a,...s}=o,n=a?Slot:i;return React__namespace.useEffect((()=>{window[Symbol.for("radix-ui")]=!0;}),[]),/*#__PURE__*/React__namespace.createElement(n,_extends$
|
|
23844
|
+
const Primitive=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((o,i)=>({...o,[i]:/*#__PURE__*/React__namespace.forwardRef(((o,m)=>{const{asChild:a,...s}=o,n=a?Slot:i;return React__namespace.useEffect((()=>{window[Symbol.for("radix-ui")]=!0;}),[]),/*#__PURE__*/React__namespace.createElement(n,_extends$g({},s,{ref:m}))}))})),{});
|
|
23845
23845
|
|
|
23846
23846
|
const useLayoutEffect=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?React__namespace.useLayoutEffect:()=>{};
|
|
23847
23847
|
|
|
@@ -23849,7 +23849,7 @@ function useCallbackRef$1(r){const t=React__namespace.useRef(r);return React__na
|
|
|
23849
23849
|
|
|
23850
23850
|
function createContextScope(n,o=[]){let r=[];const c=()=>{const t=r.map((t=>/*#__PURE__*/React__namespace.createContext(t)));return function(o){const r=(null==o?void 0:o[n])||t;return React__namespace.useMemo((()=>({[`__scope${n}`]:{...o,[n]:r}})),[o,r])}};return c.scopeName=n,[function(t,o){const c=/*#__PURE__*/React__namespace.createContext(o),u=r.length;function s(t){const{scope:o,children:r,...s}=t,i=(null==o?void 0:o[n][u])||c,a=React__namespace.useMemo((()=>s),Object.values(s));return React__namespace.createElement(i.Provider,{value:a},r)}return r=[...r,o],s.displayName=t+"Provider",[s,function(r,s){const i=(null==s?void 0:s[n][u])||c,a=React__namespace.useContext(i);if(a)return a;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},t$5(c,...o)]}function t$5(...t){const n=t[0];if(1===t.length)return n;const o=()=>{const o=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=o.reduce(((e,{useScope:n,scopeName:o})=>({...e,...n(t)[`__scope${o}`]})),{});return React__namespace.useMemo((()=>({[`__scope${n.scopeName}`]:r})),[r])}};return o.scopeName=n.scopeName,o}
|
|
23851
23851
|
|
|
23852
|
-
const[c$6,i$4]=createContextScope("Avatar");const[s$3,l$5]=c$6("Avatar");const Avatar$1=/*#__PURE__*/React__namespace.forwardRef(((t,a)=>{const{__scopeAvatar:r,...c}=t,[i,l]=React__namespace.useState("idle");return React__namespace.createElement(s$3,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:l},/*#__PURE__*/React__namespace.createElement(Primitive.span,_extends$
|
|
23852
|
+
const[c$6,i$4]=createContextScope("Avatar");const[s$3,l$5]=c$6("Avatar");const Avatar$1=/*#__PURE__*/React__namespace.forwardRef(((t,a)=>{const{__scopeAvatar:r,...c}=t,[i,l]=React__namespace.useState("idle");return React__namespace.createElement(s$3,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:l},/*#__PURE__*/React__namespace.createElement(Primitive.span,_extends$g({},c,{ref:a})))}));const AvatarImage=/*#__PURE__*/React__namespace.forwardRef(((r,c)=>{const{__scopeAvatar:i,src:s,onLoadingStatusChange:d=(()=>{}),...m}=r,u=l$5("AvatarImage",i),f=function(e){const[t,a]=React__namespace.useState("idle");return React__namespace.useEffect((()=>{if(!e)return void a("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&a(e);};return a("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1;}}),[e]),t}(s),p=useCallbackRef$1((e=>{d(e),u.onImageLoadingStatusChange(e);}));return useLayoutEffect((()=>{"idle"!==f&&p(f);}),[f,p]),"loaded"===f?/*#__PURE__*/React__namespace.createElement(Primitive.img,_extends$g({},m,{ref:c,src:s})):null}));const AvatarFallback=/*#__PURE__*/React__namespace.forwardRef(((t,a)=>{const{__scopeAvatar:r,delayMs:c,...i}=t,s=l$5("AvatarFallback",r),[d,m]=React__namespace.useState(void 0===c);return React__namespace.useEffect((()=>{if(void 0!==c){const e=window.setTimeout((()=>m(!0)),c);return ()=>window.clearTimeout(e)}}),[c]),d&&"loaded"!==s.imageLoadingStatus?/*#__PURE__*/React__namespace.createElement(Primitive.span,_extends$g({},i,{ref:a})):null}));const Root$a=Avatar$1;const Image$1=AvatarImage;const Fallback$1=AvatarFallback;
|
|
23853
23853
|
|
|
23854
23854
|
var Root$9 = Root$a, Fallback = Fallback$1, Image = Image$1;
|
|
23855
23855
|
var Avatar = function (_a) {
|
|
@@ -23893,7 +23893,7 @@ var ConditionalWrapper = function (_a) {
|
|
|
23893
23893
|
return (condition ? wrapper(children) : children);
|
|
23894
23894
|
};
|
|
23895
23895
|
|
|
23896
|
-
function _objectWithoutPropertiesLoose$
|
|
23896
|
+
function _objectWithoutPropertiesLoose$h(source, excluded) {
|
|
23897
23897
|
if (source == null) return {};
|
|
23898
23898
|
var target = {};
|
|
23899
23899
|
var sourceKeys = Object.keys(source);
|
|
@@ -25961,7 +25961,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
25961
25961
|
|
|
25962
25962
|
otherStateToSet = pickState(otherStateToSet);
|
|
25963
25963
|
|
|
25964
|
-
_this.internalSetState(_extends$
|
|
25964
|
+
_this.internalSetState(_extends$g({
|
|
25965
25965
|
highlightedIndex: highlightedIndex
|
|
25966
25966
|
}, otherStateToSet));
|
|
25967
25967
|
};
|
|
@@ -25978,7 +25978,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
25978
25978
|
_this.selectItem = function (item, otherStateToSet, cb) {
|
|
25979
25979
|
otherStateToSet = pickState(otherStateToSet);
|
|
25980
25980
|
|
|
25981
|
-
_this.internalSetState(_extends$
|
|
25981
|
+
_this.internalSetState(_extends$g({
|
|
25982
25982
|
isOpen: _this.props.defaultIsOpen,
|
|
25983
25983
|
highlightedIndex: _this.props.defaultHighlightedIndex,
|
|
25984
25984
|
selectedItem: item,
|
|
@@ -26010,7 +26010,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26010
26010
|
// See https://github.com/downshift-js/downshift/issues/217 for more info.
|
|
26011
26011
|
|
|
26012
26012
|
if (!isStateToSetFunction && stateToSet.hasOwnProperty('inputValue')) {
|
|
26013
|
-
_this.props.onInputValueChange(stateToSet.inputValue, _extends$
|
|
26013
|
+
_this.props.onInputValueChange(stateToSet.inputValue, _extends$g({}, _this.getStateAndHelpers(), stateToSet));
|
|
26014
26014
|
}
|
|
26015
26015
|
|
|
26016
26016
|
return _this.setState(function (state) {
|
|
@@ -26058,7 +26058,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26058
26058
|
// earlier, so we'll call it now that we know what the inputValue state will be.
|
|
26059
26059
|
|
|
26060
26060
|
if (isStateToSetFunction && newStateToSet.hasOwnProperty('inputValue')) {
|
|
26061
|
-
_this.props.onInputValueChange(newStateToSet.inputValue, _extends$
|
|
26061
|
+
_this.props.onInputValueChange(newStateToSet.inputValue, _extends$g({}, _this.getStateAndHelpers(), newStateToSet));
|
|
26062
26062
|
}
|
|
26063
26063
|
|
|
26064
26064
|
return nextState;
|
|
@@ -26098,7 +26098,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26098
26098
|
_ref$refKey = _ref.refKey,
|
|
26099
26099
|
refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
|
|
26100
26100
|
ref = _ref.ref,
|
|
26101
|
-
rest = _objectWithoutPropertiesLoose$
|
|
26101
|
+
rest = _objectWithoutPropertiesLoose$h(_ref, _excluded$4$1);
|
|
26102
26102
|
|
|
26103
26103
|
var _ref2 = _temp2 === void 0 ? {} : _temp2,
|
|
26104
26104
|
_ref2$suppressRefErro = _ref2.suppressRefError,
|
|
@@ -26113,7 +26113,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26113
26113
|
var _this$getState = _this.getState(),
|
|
26114
26114
|
isOpen = _this$getState.isOpen;
|
|
26115
26115
|
|
|
26116
|
-
return _extends$
|
|
26116
|
+
return _extends$g((_extends2 = {}, _extends2[refKey] = handleRefs(ref, _this.rootRef), _extends2.role = 'combobox', _extends2['aria-expanded'] = isOpen, _extends2['aria-haspopup'] = 'listbox', _extends2['aria-owns'] = isOpen ? _this.menuId : null, _extends2['aria-labelledby'] = _this.labelId, _extends2), rest);
|
|
26117
26117
|
};
|
|
26118
26118
|
|
|
26119
26119
|
_this.keyDownHandlers = {
|
|
@@ -26206,7 +26206,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26206
26206
|
},
|
|
26207
26207
|
Escape: function Escape(event) {
|
|
26208
26208
|
event.preventDefault();
|
|
26209
|
-
this.reset(_extends$
|
|
26209
|
+
this.reset(_extends$g({
|
|
26210
26210
|
type: keyDownEscape
|
|
26211
26211
|
}, !this.state.isOpen && {
|
|
26212
26212
|
selectedItem: null,
|
|
@@ -26214,7 +26214,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26214
26214
|
}));
|
|
26215
26215
|
}
|
|
26216
26216
|
};
|
|
26217
|
-
_this.buttonKeyDownHandlers = _extends$
|
|
26217
|
+
_this.buttonKeyDownHandlers = _extends$g({}, _this.keyDownHandlers, {
|
|
26218
26218
|
' ': function _(event) {
|
|
26219
26219
|
event.preventDefault();
|
|
26220
26220
|
this.toggleMenu({
|
|
@@ -26222,7 +26222,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26222
26222
|
});
|
|
26223
26223
|
}
|
|
26224
26224
|
});
|
|
26225
|
-
_this.inputKeyDownHandlers = _extends$
|
|
26225
|
+
_this.inputKeyDownHandlers = _extends$g({}, _this.keyDownHandlers, {
|
|
26226
26226
|
Home: function Home(event) {
|
|
26227
26227
|
var _this4 = this;
|
|
26228
26228
|
|
|
@@ -26282,7 +26282,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26282
26282
|
var onKeyDown = _ref3.onKeyDown,
|
|
26283
26283
|
onKeyUp = _ref3.onKeyUp,
|
|
26284
26284
|
onBlur = _ref3.onBlur,
|
|
26285
|
-
rest = _objectWithoutPropertiesLoose$
|
|
26285
|
+
rest = _objectWithoutPropertiesLoose$h(_ref3, _excluded2$3);
|
|
26286
26286
|
|
|
26287
26287
|
var _this$getState5 = _this.getState(),
|
|
26288
26288
|
isOpen = _this$getState5.isOpen;
|
|
@@ -26294,7 +26294,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26294
26294
|
onBlur: callAllEventHandlers(onBlur, _this.buttonHandleBlur)
|
|
26295
26295
|
};
|
|
26296
26296
|
var eventHandlers = rest.disabled ? {} : enabledEventHandlers;
|
|
26297
|
-
return _extends$
|
|
26297
|
+
return _extends$g({
|
|
26298
26298
|
type: 'button',
|
|
26299
26299
|
role: 'button',
|
|
26300
26300
|
'aria-label': isOpen ? 'close menu' : 'open menu',
|
|
@@ -26358,7 +26358,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26358
26358
|
};
|
|
26359
26359
|
|
|
26360
26360
|
_this.getLabelProps = function (props) {
|
|
26361
|
-
return _extends$
|
|
26361
|
+
return _extends$g({
|
|
26362
26362
|
htmlFor: _this.inputId,
|
|
26363
26363
|
id: _this.labelId
|
|
26364
26364
|
}, props);
|
|
@@ -26371,7 +26371,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26371
26371
|
onChange = _ref4.onChange,
|
|
26372
26372
|
onInput = _ref4.onInput;
|
|
26373
26373
|
_ref4.onChangeText;
|
|
26374
|
-
var rest = _objectWithoutPropertiesLoose$
|
|
26374
|
+
var rest = _objectWithoutPropertiesLoose$h(_ref4, _excluded3$2);
|
|
26375
26375
|
|
|
26376
26376
|
var onChangeKey;
|
|
26377
26377
|
var eventHandlers = {};
|
|
@@ -26392,7 +26392,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26392
26392
|
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, _this.inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, _this.inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, _this.inputHandleBlur), _eventHandlers);
|
|
26393
26393
|
}
|
|
26394
26394
|
|
|
26395
|
-
return _extends$
|
|
26395
|
+
return _extends$g({
|
|
26396
26396
|
'aria-autocomplete': 'list',
|
|
26397
26397
|
'aria-activedescendant': isOpen && typeof highlightedIndex === 'number' && highlightedIndex >= 0 ? _this.getItemId(highlightedIndex) : null,
|
|
26398
26398
|
'aria-controls': isOpen ? _this.menuId : null,
|
|
@@ -26446,7 +26446,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26446
26446
|
_ref5$refKey = _ref5.refKey,
|
|
26447
26447
|
refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
|
|
26448
26448
|
ref = _ref5.ref,
|
|
26449
|
-
props = _objectWithoutPropertiesLoose$
|
|
26449
|
+
props = _objectWithoutPropertiesLoose$h(_ref5, _excluded4$1);
|
|
26450
26450
|
|
|
26451
26451
|
var _ref6 = _temp6 === void 0 ? {} : _temp6,
|
|
26452
26452
|
_ref6$suppressRefErro = _ref6.suppressRefError,
|
|
@@ -26455,7 +26455,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26455
26455
|
_this.getMenuProps.called = true;
|
|
26456
26456
|
_this.getMenuProps.refKey = refKey;
|
|
26457
26457
|
_this.getMenuProps.suppressRefError = suppressRefError;
|
|
26458
|
-
return _extends$
|
|
26458
|
+
return _extends$g((_extends3 = {}, _extends3[refKey] = handleRefs(ref, _this.menuRef), _extends3.role = 'listbox', _extends3['aria-labelledby'] = props && props['aria-label'] ? null : _this.labelId, _extends3.id = _this.menuId, _extends3), props);
|
|
26459
26459
|
};
|
|
26460
26460
|
|
|
26461
26461
|
_this.getItemProps = function (_temp7) {
|
|
@@ -26471,7 +26471,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26471
26471
|
item = _ref7$item === void 0 ? process.env.NODE_ENV === 'production' ?
|
|
26472
26472
|
/* istanbul ignore next */
|
|
26473
26473
|
undefined : requiredProp('getItemProps', 'item') : _ref7$item,
|
|
26474
|
-
rest = _objectWithoutPropertiesLoose$
|
|
26474
|
+
rest = _objectWithoutPropertiesLoose$h(_ref7, _excluded5$1);
|
|
26475
26475
|
|
|
26476
26476
|
if (index === undefined) {
|
|
26477
26477
|
_this.items.push(item);
|
|
@@ -26522,7 +26522,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26522
26522
|
var eventHandlers = rest.disabled ? {
|
|
26523
26523
|
onMouseDown: enabledEventHandlers.onMouseDown
|
|
26524
26524
|
} : enabledEventHandlers;
|
|
26525
|
-
return _extends$
|
|
26525
|
+
return _extends$g({
|
|
26526
26526
|
id: _this.getItemId(index),
|
|
26527
26527
|
role: 'option',
|
|
26528
26528
|
'aria-selected': _this.getState().highlightedIndex === index
|
|
@@ -26542,7 +26542,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26542
26542
|
|
|
26543
26543
|
_this.internalSetState(function (_ref8) {
|
|
26544
26544
|
var selectedItem = _ref8.selectedItem;
|
|
26545
|
-
return _extends$
|
|
26545
|
+
return _extends$g({
|
|
26546
26546
|
isOpen: _this.props.defaultIsOpen,
|
|
26547
26547
|
highlightedIndex: _this.props.defaultHighlightedIndex,
|
|
26548
26548
|
inputValue: _this.props.itemToString(selectedItem)
|
|
@@ -26559,7 +26559,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26559
26559
|
|
|
26560
26560
|
_this.internalSetState(function (_ref9) {
|
|
26561
26561
|
var isOpen = _ref9.isOpen;
|
|
26562
|
-
return _extends$
|
|
26562
|
+
return _extends$g({
|
|
26563
26563
|
isOpen: !isOpen
|
|
26564
26564
|
}, isOpen && {
|
|
26565
26565
|
highlightedIndex: _this.props.defaultHighlightedIndex
|
|
@@ -26598,7 +26598,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
26598
26598
|
|
|
26599
26599
|
var resultCount = _this.getItemCount();
|
|
26600
26600
|
|
|
26601
|
-
var status = _this.props.getA11yStatusMessage(_extends$
|
|
26601
|
+
var status = _this.props.getA11yStatusMessage(_extends$g({
|
|
26602
26602
|
itemToString: _this.props.itemToString,
|
|
26603
26603
|
previousResultCount: _this.previousResultCount,
|
|
26604
26604
|
resultCount: resultCount,
|
|
@@ -27088,7 +27088,7 @@ function callOnChangeProps(action, state, newState) {
|
|
|
27088
27088
|
});
|
|
27089
27089
|
|
|
27090
27090
|
if (props.onStateChange && Object.keys(changes).length) {
|
|
27091
|
-
props.onStateChange(_extends$
|
|
27091
|
+
props.onStateChange(_extends$g({
|
|
27092
27092
|
type: type
|
|
27093
27093
|
}, changes));
|
|
27094
27094
|
}
|
|
@@ -27100,7 +27100,7 @@ function invokeOnChangeHandler(key, action, state, newState) {
|
|
|
27100
27100
|
var handler = "on" + capitalizeString(key) + "Change";
|
|
27101
27101
|
|
|
27102
27102
|
if (props[handler] && newState[key] !== undefined && newState[key] !== state[key]) {
|
|
27103
|
-
props[handler](_extends$
|
|
27103
|
+
props[handler](_extends$g({
|
|
27104
27104
|
type: type
|
|
27105
27105
|
}, newState));
|
|
27106
27106
|
}
|
|
@@ -27210,7 +27210,7 @@ function useEnhancedReducer(reducer, initialState, props) {
|
|
|
27210
27210
|
actionRef.current = action;
|
|
27211
27211
|
state = getState(state, action.props);
|
|
27212
27212
|
var changes = reducer(state, action);
|
|
27213
|
-
var newState = action.props.stateReducer(state, _extends$
|
|
27213
|
+
var newState = action.props.stateReducer(state, _extends$g({}, action, {
|
|
27214
27214
|
changes: changes
|
|
27215
27215
|
}));
|
|
27216
27216
|
return newState;
|
|
@@ -27222,7 +27222,7 @@ function useEnhancedReducer(reducer, initialState, props) {
|
|
|
27222
27222
|
|
|
27223
27223
|
var propsRef = useLatestRef(props);
|
|
27224
27224
|
var dispatchWithProps = React.useCallback(function (action) {
|
|
27225
|
-
return dispatch(_extends$
|
|
27225
|
+
return dispatch(_extends$g({
|
|
27226
27226
|
props: propsRef.current
|
|
27227
27227
|
}, action));
|
|
27228
27228
|
}, [propsRef]);
|
|
@@ -27459,7 +27459,7 @@ function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
|
|
|
27459
27459
|
highlightedIndex = _ref2.highlightedIndex,
|
|
27460
27460
|
items = _ref2.items,
|
|
27461
27461
|
environment = _ref2.environment,
|
|
27462
|
-
rest = _objectWithoutPropertiesLoose$
|
|
27462
|
+
rest = _objectWithoutPropertiesLoose$h(_ref2, _excluded$3$1);
|
|
27463
27463
|
|
|
27464
27464
|
// Sets a11y status message on changes in state.
|
|
27465
27465
|
React.useEffect(function () {
|
|
@@ -27468,7 +27468,7 @@ function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
|
|
|
27468
27468
|
}
|
|
27469
27469
|
|
|
27470
27470
|
updateA11yStatus(function () {
|
|
27471
|
-
return getA11yMessage(_extends$
|
|
27471
|
+
return getA11yMessage(_extends$g({
|
|
27472
27472
|
highlightedIndex: highlightedIndex,
|
|
27473
27473
|
highlightedItem: items[highlightedIndex],
|
|
27474
27474
|
resultCount: items.length
|
|
@@ -27590,7 +27590,7 @@ function downshiftCommonReducer(state, action, stateChangeTypes) {
|
|
|
27590
27590
|
throw new Error('Reducer called without proper action type.');
|
|
27591
27591
|
}
|
|
27592
27592
|
|
|
27593
|
-
return _extends$
|
|
27593
|
+
return _extends$g({}, state, changes);
|
|
27594
27594
|
}
|
|
27595
27595
|
({
|
|
27596
27596
|
items: propTypes.array.isRequired,
|
|
@@ -27730,7 +27730,7 @@ function getInitialState$1(props) {
|
|
|
27730
27730
|
inputValue = props.itemToString(selectedItem);
|
|
27731
27731
|
}
|
|
27732
27732
|
|
|
27733
|
-
return _extends$
|
|
27733
|
+
return _extends$g({}, initialState, {
|
|
27734
27734
|
inputValue: inputValue
|
|
27735
27735
|
});
|
|
27736
27736
|
}
|
|
@@ -27821,7 +27821,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
27821
27821
|
};
|
|
27822
27822
|
}
|
|
27823
27823
|
|
|
27824
|
-
var defaultProps$1 = _extends$
|
|
27824
|
+
var defaultProps$1 = _extends$g({}, defaultProps$3, {
|
|
27825
27825
|
getA11yStatusMessage: getA11yStatusMessage$1,
|
|
27826
27826
|
circularNavigation: true
|
|
27827
27827
|
});
|
|
@@ -27873,7 +27873,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
27873
27873
|
break;
|
|
27874
27874
|
|
|
27875
27875
|
case InputKeyDownEnter:
|
|
27876
|
-
changes = _extends$
|
|
27876
|
+
changes = _extends$g({}, state.isOpen && state.highlightedIndex >= 0 && {
|
|
27877
27877
|
selectedItem: props.items[state.highlightedIndex],
|
|
27878
27878
|
isOpen: getDefaultValue$1(props, 'isOpen'),
|
|
27879
27879
|
highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
|
|
@@ -27882,7 +27882,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
27882
27882
|
break;
|
|
27883
27883
|
|
|
27884
27884
|
case InputKeyDownEscape:
|
|
27885
|
-
changes = _extends$
|
|
27885
|
+
changes = _extends$g({
|
|
27886
27886
|
isOpen: false,
|
|
27887
27887
|
highlightedIndex: -1
|
|
27888
27888
|
}, !state.isOpen && {
|
|
@@ -27904,7 +27904,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
27904
27904
|
break;
|
|
27905
27905
|
|
|
27906
27906
|
case InputBlur:
|
|
27907
|
-
changes = _extends$
|
|
27907
|
+
changes = _extends$g({
|
|
27908
27908
|
isOpen: false,
|
|
27909
27909
|
highlightedIndex: -1
|
|
27910
27910
|
}, state.highlightedIndex >= 0 && action.selectItem && {
|
|
@@ -27938,7 +27938,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
27938
27938
|
return downshiftCommonReducer(state, action, stateChangeTypes$1);
|
|
27939
27939
|
}
|
|
27940
27940
|
|
|
27941
|
-
return _extends$
|
|
27941
|
+
return _extends$g({}, state, changes);
|
|
27942
27942
|
}
|
|
27943
27943
|
/* eslint-enable complexity */
|
|
27944
27944
|
|
|
@@ -27956,7 +27956,7 @@ function useCombobox(userProps) {
|
|
|
27956
27956
|
|
|
27957
27957
|
validatePropTypes$1(userProps, useCombobox); // Props defaults and destructuring.
|
|
27958
27958
|
|
|
27959
|
-
var props = _extends$
|
|
27959
|
+
var props = _extends$g({}, defaultProps$1, userProps);
|
|
27960
27960
|
|
|
27961
27961
|
var initialIsOpen = props.initialIsOpen,
|
|
27962
27962
|
defaultIsOpen = props.defaultIsOpen,
|
|
@@ -27998,7 +27998,7 @@ function useCombobox(userProps) {
|
|
|
27998
27998
|
}, [elementIds]); // Effects.
|
|
27999
27999
|
// Sets a11y status message on changes in state.
|
|
28000
28000
|
|
|
28001
|
-
useA11yMessageSetter(getA11yStatusMessage, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
28001
|
+
useA11yMessageSetter(getA11yStatusMessage, [isOpen, highlightedIndex, inputValue, items], _extends$g({
|
|
28002
28002
|
isInitialMount: isInitialMountRef.current,
|
|
28003
28003
|
previousResultCount: previousResultCountRef.current,
|
|
28004
28004
|
items: items,
|
|
@@ -28006,7 +28006,7 @@ function useCombobox(userProps) {
|
|
|
28006
28006
|
itemToString: itemToString
|
|
28007
28007
|
}, state)); // Sets a11y status message on changes in selectedItem.
|
|
28008
28008
|
|
|
28009
|
-
useA11yMessageSetter(getA11ySelectionMessage, [selectedItem], _extends$
|
|
28009
|
+
useA11yMessageSetter(getA11ySelectionMessage, [selectedItem], _extends$g({
|
|
28010
28010
|
isInitialMount: isInitialMountRef.current,
|
|
28011
28011
|
previousResultCount: previousResultCountRef.current,
|
|
28012
28012
|
items: items,
|
|
@@ -28130,7 +28130,7 @@ function useCombobox(userProps) {
|
|
|
28130
28130
|
}, [dispatch, latest, getItemNodeFromIndex]); // Getter props.
|
|
28131
28131
|
|
|
28132
28132
|
var getLabelProps = React.useCallback(function (labelProps) {
|
|
28133
|
-
return _extends$
|
|
28133
|
+
return _extends$g({
|
|
28134
28134
|
id: elementIds.labelId,
|
|
28135
28135
|
htmlFor: elementIds.inputId
|
|
28136
28136
|
}, labelProps);
|
|
@@ -28143,14 +28143,14 @@ function useCombobox(userProps) {
|
|
|
28143
28143
|
_ref$refKey = _ref.refKey,
|
|
28144
28144
|
refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
|
|
28145
28145
|
ref = _ref.ref,
|
|
28146
|
-
rest = _objectWithoutPropertiesLoose$
|
|
28146
|
+
rest = _objectWithoutPropertiesLoose$h(_ref, _excluded$1$1);
|
|
28147
28147
|
|
|
28148
28148
|
var _ref2 = _temp2 === void 0 ? {} : _temp2,
|
|
28149
28149
|
_ref2$suppressRefErro = _ref2.suppressRefError,
|
|
28150
28150
|
suppressRefError = _ref2$suppressRefErro === void 0 ? false : _ref2$suppressRefErro;
|
|
28151
28151
|
|
|
28152
28152
|
setGetterPropCallInfo('getMenuProps', suppressRefError, refKey, menuRef);
|
|
28153
|
-
return _extends$
|
|
28153
|
+
return _extends$g((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function (menuNode) {
|
|
28154
28154
|
menuRef.current = menuNode;
|
|
28155
28155
|
}), _extends2.id = elementIds.menuId, _extends2.role = 'listbox', _extends2['aria-labelledby'] = elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function () {
|
|
28156
28156
|
dispatch({
|
|
@@ -28170,7 +28170,7 @@ function useCombobox(userProps) {
|
|
|
28170
28170
|
onMouseMove = _ref3.onMouseMove,
|
|
28171
28171
|
onClick = _ref3.onClick;
|
|
28172
28172
|
_ref3.onPress;
|
|
28173
|
-
var rest = _objectWithoutPropertiesLoose$
|
|
28173
|
+
var rest = _objectWithoutPropertiesLoose$h(_ref3, _excluded2$1);
|
|
28174
28174
|
|
|
28175
28175
|
var _latest$current = latest.current,
|
|
28176
28176
|
latestProps = _latest$current.props,
|
|
@@ -28207,7 +28207,7 @@ function useCombobox(userProps) {
|
|
|
28207
28207
|
}
|
|
28208
28208
|
};
|
|
28209
28209
|
|
|
28210
|
-
return _extends$
|
|
28210
|
+
return _extends$g((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function (itemNode) {
|
|
28211
28211
|
if (itemNode) {
|
|
28212
28212
|
itemRefs.current[elementIds.getItemId(itemIndex)] = itemNode;
|
|
28213
28213
|
}
|
|
@@ -28224,7 +28224,7 @@ function useCombobox(userProps) {
|
|
|
28224
28224
|
var _ref5$refKey = _ref5.refKey,
|
|
28225
28225
|
refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
|
|
28226
28226
|
ref = _ref5.ref,
|
|
28227
|
-
rest = _objectWithoutPropertiesLoose$
|
|
28227
|
+
rest = _objectWithoutPropertiesLoose$h(_ref5, _excluded3$1);
|
|
28228
28228
|
|
|
28229
28229
|
var toggleButtonHandleClick = function toggleButtonHandleClick() {
|
|
28230
28230
|
dispatch({
|
|
@@ -28236,9 +28236,9 @@ function useCombobox(userProps) {
|
|
|
28236
28236
|
}
|
|
28237
28237
|
};
|
|
28238
28238
|
|
|
28239
|
-
return _extends$
|
|
28239
|
+
return _extends$g((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function (toggleButtonNode) {
|
|
28240
28240
|
toggleButtonRef.current = toggleButtonNode;
|
|
28241
|
-
}), _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$
|
|
28241
|
+
}), _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$g({}, {
|
|
28242
28242
|
onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
|
|
28243
28243
|
}), rest);
|
|
28244
28244
|
}, [dispatch, latest, elementIds]);
|
|
@@ -28254,7 +28254,7 @@ function useCombobox(userProps) {
|
|
|
28254
28254
|
var _ref6$refKey = _ref6.refKey,
|
|
28255
28255
|
refKey = _ref6$refKey === void 0 ? 'ref' : _ref6$refKey,
|
|
28256
28256
|
ref = _ref6.ref,
|
|
28257
|
-
rest = _objectWithoutPropertiesLoose$
|
|
28257
|
+
rest = _objectWithoutPropertiesLoose$h(_ref6, _excluded4$2);
|
|
28258
28258
|
|
|
28259
28259
|
var _ref7 = _temp6 === void 0 ? {} : _temp6,
|
|
28260
28260
|
_ref7$suppressRefErro = _ref7.suppressRefError,
|
|
@@ -28299,7 +28299,7 @@ function useCombobox(userProps) {
|
|
|
28299
28299
|
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers);
|
|
28300
28300
|
}
|
|
28301
28301
|
|
|
28302
|
-
return _extends$
|
|
28302
|
+
return _extends$g((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function (inputNode) {
|
|
28303
28303
|
inputRef.current = inputNode;
|
|
28304
28304
|
}), _extends5.id = elementIds.inputId, _extends5['aria-autocomplete'] = 'list', _extends5['aria-controls'] = elementIds.menuId, _extends5), latestState.isOpen && latestState.highlightedIndex > -1 && {
|
|
28305
28305
|
'aria-activedescendant': elementIds.getItemId(latestState.highlightedIndex)
|
|
@@ -28318,14 +28318,14 @@ function useCombobox(userProps) {
|
|
|
28318
28318
|
_ref8$refKey = _ref8.refKey,
|
|
28319
28319
|
refKey = _ref8$refKey === void 0 ? 'ref' : _ref8$refKey,
|
|
28320
28320
|
ref = _ref8.ref,
|
|
28321
|
-
rest = _objectWithoutPropertiesLoose$
|
|
28321
|
+
rest = _objectWithoutPropertiesLoose$h(_ref8, _excluded5);
|
|
28322
28322
|
|
|
28323
28323
|
var _ref9 = _temp8 === void 0 ? {} : _temp8,
|
|
28324
28324
|
_ref9$suppressRefErro = _ref9.suppressRefError,
|
|
28325
28325
|
suppressRefError = _ref9$suppressRefErro === void 0 ? false : _ref9$suppressRefErro;
|
|
28326
28326
|
|
|
28327
28327
|
setGetterPropCallInfo('getComboboxProps', suppressRefError, refKey, comboboxRef);
|
|
28328
|
-
return _extends$
|
|
28328
|
+
return _extends$g((_extends6 = {}, _extends6[refKey] = handleRefs(ref, function (comboboxNode) {
|
|
28329
28329
|
comboboxRef.current = comboboxNode;
|
|
28330
28330
|
}), _extends6.role = 'combobox', _extends6['aria-haspopup'] = 'listbox', _extends6['aria-owns'] = elementIds.menuId, _extends6['aria-expanded'] = latest.current.state.isOpen, _extends6), rest);
|
|
28331
28331
|
}, [latest, setGetterPropCallInfo, elementIds]); // returns
|
|
@@ -30093,22 +30093,22 @@ function styleInject(css, ref) {
|
|
|
30093
30093
|
var css_248z$a = "/*\n * Container style\n */\n.ps {\n overflow: hidden !important;\n overflow-anchor: none;\n -ms-overflow-style: none;\n touch-action: auto;\n -ms-touch-action: auto;\n}\n\n/*\n * Scrollbar rail styles\n */\n.ps__rail-x {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n height: 15px;\n /* there must be 'bottom' or 'top' for ps__rail-x */\n bottom: 0px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-y {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n width: 15px;\n /* there must be 'right' or 'left' for ps__rail-y */\n right: 0;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps--active-x > .ps__rail-x,\n.ps--active-y > .ps__rail-y {\n display: block;\n background-color: transparent;\n}\n\n.ps:hover > .ps__rail-x,\n.ps:hover > .ps__rail-y,\n.ps--focus > .ps__rail-x,\n.ps--focus > .ps__rail-y,\n.ps--scrolling-x > .ps__rail-x,\n.ps--scrolling-y > .ps__rail-y {\n opacity: 0.6;\n}\n\n.ps .ps__rail-x:hover,\n.ps .ps__rail-y:hover,\n.ps .ps__rail-x:focus,\n.ps .ps__rail-y:focus,\n.ps .ps__rail-x.ps--clicking,\n.ps .ps__rail-y.ps--clicking {\n background-color: #eee;\n opacity: 0.9;\n}\n\n/*\n * Scrollbar thumb styles\n */\n.ps__thumb-x {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, height .2s ease-in-out;\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\n height: 6px;\n /* there must be 'bottom' for ps__thumb-x */\n bottom: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__thumb-y {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, width .2s ease-in-out;\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\n width: 6px;\n /* there must be 'right' for ps__thumb-y */\n right: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-x:hover > .ps__thumb-x,\n.ps__rail-x:focus > .ps__thumb-x,\n.ps__rail-x.ps--clicking .ps__thumb-x {\n background-color: #999;\n height: 11px;\n}\n\n.ps__rail-y:hover > .ps__thumb-y,\n.ps__rail-y:focus > .ps__thumb-y,\n.ps__rail-y.ps--clicking .ps__thumb-y {\n background-color: #999;\n width: 11px;\n}\n\n/* MS supports */\n@supports (-ms-overflow-style: none) {\n .ps {\n overflow: auto !important;\n }\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ps {\n overflow: auto !important;\n }\n}\n.scrollbar-container {\n position: relative;\n height: 100%; }";
|
|
30094
30094
|
styleInject(css_248z$a);
|
|
30095
30095
|
|
|
30096
|
-
const e$2="horizontal",n$3=["horizontal","vertical"];const Separator=/*#__PURE__*/React__namespace.forwardRef(((n,a)=>{const{decorative:p,orientation:l=e$2,...c}=n,s=i$3(l)?l:e$2,u=p?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};return React__namespace.createElement(Primitive.div,_extends$
|
|
30096
|
+
const e$2="horizontal",n$3=["horizontal","vertical"];const Separator=/*#__PURE__*/React__namespace.forwardRef(((n,a)=>{const{decorative:p,orientation:l=e$2,...c}=n,s=i$3(l)?l:e$2,u=p?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};return React__namespace.createElement(Primitive.div,_extends$g({"data-orientation":s},u,c,{ref:a}))}));function i$3(r){return n$3.includes(r)}Separator.propTypes={orientation(r,o,t){const n=r[o],a=String(n);return n&&!i$3(n)?new Error(function(r,o){return `Invalid prop \`orientation\` of value \`${r}\` supplied to \`${o}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${e$2}\`.`}(a,t)):null}};const Root$8=Separator;
|
|
30097
30097
|
|
|
30098
|
-
var _excluded$
|
|
30098
|
+
var _excluded$g = ["color", "size", "title"];
|
|
30099
30099
|
|
|
30100
|
-
function _extends$
|
|
30100
|
+
function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
30101
30101
|
|
|
30102
|
-
function _objectWithoutProperties$
|
|
30102
|
+
function _objectWithoutProperties$g(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$g(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30103
30103
|
|
|
30104
|
-
function _objectWithoutPropertiesLoose$
|
|
30104
|
+
function _objectWithoutPropertiesLoose$g(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30105
30105
|
var ArrowClockwise = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30106
30106
|
var color = _ref.color,
|
|
30107
30107
|
size = _ref.size,
|
|
30108
30108
|
title = _ref.title,
|
|
30109
|
-
rest = _objectWithoutProperties$
|
|
30109
|
+
rest = _objectWithoutProperties$g(_ref, _excluded$g);
|
|
30110
30110
|
|
|
30111
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30111
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$f({
|
|
30112
30112
|
ref: ref,
|
|
30113
30113
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30114
30114
|
viewBox: "0 0 16 16",
|
|
@@ -30134,20 +30134,20 @@ ArrowClockwise.defaultProps = {
|
|
|
30134
30134
|
};
|
|
30135
30135
|
var ArrowClockwise$1 = ArrowClockwise;
|
|
30136
30136
|
|
|
30137
|
-
var _excluded$
|
|
30137
|
+
var _excluded$f = ["color", "size", "title"];
|
|
30138
30138
|
|
|
30139
|
-
function _extends$
|
|
30139
|
+
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
30140
30140
|
|
|
30141
|
-
function _objectWithoutProperties$
|
|
30141
|
+
function _objectWithoutProperties$f(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$f(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30142
30142
|
|
|
30143
|
-
function _objectWithoutPropertiesLoose$
|
|
30143
|
+
function _objectWithoutPropertiesLoose$f(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30144
30144
|
var ArrowDown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30145
30145
|
var color = _ref.color,
|
|
30146
30146
|
size = _ref.size,
|
|
30147
30147
|
title = _ref.title,
|
|
30148
|
-
rest = _objectWithoutProperties$
|
|
30148
|
+
rest = _objectWithoutProperties$f(_ref, _excluded$f);
|
|
30149
30149
|
|
|
30150
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30150
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$e({
|
|
30151
30151
|
ref: ref,
|
|
30152
30152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30153
30153
|
viewBox: "0 0 16 16",
|
|
@@ -30171,20 +30171,20 @@ ArrowDown.defaultProps = {
|
|
|
30171
30171
|
};
|
|
30172
30172
|
var ArrowDown$1 = ArrowDown;
|
|
30173
30173
|
|
|
30174
|
-
var _excluded$
|
|
30174
|
+
var _excluded$e = ["color", "size", "title"];
|
|
30175
30175
|
|
|
30176
|
-
function _extends$
|
|
30176
|
+
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
30177
30177
|
|
|
30178
|
-
function _objectWithoutProperties$
|
|
30178
|
+
function _objectWithoutProperties$e(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30179
30179
|
|
|
30180
|
-
function _objectWithoutPropertiesLoose$
|
|
30180
|
+
function _objectWithoutPropertiesLoose$e(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30181
30181
|
var ArrowRepeat = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30182
30182
|
var color = _ref.color,
|
|
30183
30183
|
size = _ref.size,
|
|
30184
30184
|
title = _ref.title,
|
|
30185
|
-
rest = _objectWithoutProperties$
|
|
30185
|
+
rest = _objectWithoutProperties$e(_ref, _excluded$e);
|
|
30186
30186
|
|
|
30187
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30187
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$d({
|
|
30188
30188
|
ref: ref,
|
|
30189
30189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30190
30190
|
viewBox: "0 0 16 16",
|
|
@@ -30210,20 +30210,20 @@ ArrowRepeat.defaultProps = {
|
|
|
30210
30210
|
};
|
|
30211
30211
|
var ArrowRepeat$1 = ArrowRepeat;
|
|
30212
30212
|
|
|
30213
|
-
var _excluded$
|
|
30213
|
+
var _excluded$d = ["color", "size", "title"];
|
|
30214
30214
|
|
|
30215
|
-
function _extends$
|
|
30215
|
+
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
30216
30216
|
|
|
30217
|
-
function _objectWithoutProperties$
|
|
30217
|
+
function _objectWithoutProperties$d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30218
30218
|
|
|
30219
|
-
function _objectWithoutPropertiesLoose$
|
|
30219
|
+
function _objectWithoutPropertiesLoose$d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30220
30220
|
var BoundingBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30221
30221
|
var color = _ref.color,
|
|
30222
30222
|
size = _ref.size,
|
|
30223
30223
|
title = _ref.title,
|
|
30224
|
-
rest = _objectWithoutProperties$
|
|
30224
|
+
rest = _objectWithoutProperties$d(_ref, _excluded$d);
|
|
30225
30225
|
|
|
30226
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30226
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$c({
|
|
30227
30227
|
ref: ref,
|
|
30228
30228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30229
30229
|
viewBox: "0 0 16 16",
|
|
@@ -30246,20 +30246,20 @@ BoundingBox.defaultProps = {
|
|
|
30246
30246
|
};
|
|
30247
30247
|
var BoundingBox$1 = BoundingBox;
|
|
30248
30248
|
|
|
30249
|
-
var _excluded$
|
|
30249
|
+
var _excluded$c = ["color", "size", "title"];
|
|
30250
30250
|
|
|
30251
|
-
function _extends$
|
|
30251
|
+
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
30252
30252
|
|
|
30253
|
-
function _objectWithoutProperties$
|
|
30253
|
+
function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30254
30254
|
|
|
30255
|
-
function _objectWithoutPropertiesLoose$
|
|
30255
|
+
function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30256
30256
|
var BoxArrowInLeft = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30257
30257
|
var color = _ref.color,
|
|
30258
30258
|
size = _ref.size,
|
|
30259
30259
|
title = _ref.title,
|
|
30260
|
-
rest = _objectWithoutProperties$
|
|
30260
|
+
rest = _objectWithoutProperties$c(_ref, _excluded$c);
|
|
30261
30261
|
|
|
30262
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30262
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$b({
|
|
30263
30263
|
ref: ref,
|
|
30264
30264
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30265
30265
|
viewBox: "0 0 16 16",
|
|
@@ -30286,20 +30286,59 @@ BoxArrowInLeft.defaultProps = {
|
|
|
30286
30286
|
};
|
|
30287
30287
|
var BoxArrowInLeft$1 = BoxArrowInLeft;
|
|
30288
30288
|
|
|
30289
|
-
var _excluded$
|
|
30289
|
+
var _excluded$b = ["color", "size", "title"];
|
|
30290
30290
|
|
|
30291
|
-
function _extends$
|
|
30291
|
+
function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
30292
30292
|
|
|
30293
|
-
function _objectWithoutProperties$
|
|
30293
|
+
function _objectWithoutProperties$b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30294
30294
|
|
|
30295
|
-
function _objectWithoutPropertiesLoose$
|
|
30295
|
+
function _objectWithoutPropertiesLoose$b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30296
|
+
var Building = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30297
|
+
var color = _ref.color,
|
|
30298
|
+
size = _ref.size,
|
|
30299
|
+
title = _ref.title,
|
|
30300
|
+
rest = _objectWithoutProperties$b(_ref, _excluded$b);
|
|
30301
|
+
|
|
30302
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$a({
|
|
30303
|
+
ref: ref,
|
|
30304
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30305
|
+
viewBox: "0 0 16 16",
|
|
30306
|
+
width: size,
|
|
30307
|
+
height: size,
|
|
30308
|
+
fill: color
|
|
30309
|
+
}, rest), title ? /*#__PURE__*/React__default["default"].createElement("title", null, title) : null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
30310
|
+
fillRule: "evenodd",
|
|
30311
|
+
d: "M14.763.075A.5.5 0 0 1 15 .5v15a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V14h-1v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .342-.474L6 7.64V4.5a.5.5 0 0 1 .276-.447l8-4a.5.5 0 0 1 .487.022zM6 8.694 1 10.36V15h5V8.694zM7 15h2v-1.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V15h2V1.309l-7 3.5V15z"
|
|
30312
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
30313
|
+
d: "M2 11h1v1H2v-1zm2 0h1v1H4v-1zm-2 2h1v1H2v-1zm2 0h1v1H4v-1zm4-4h1v1H8V9zm2 0h1v1h-1V9zm-2 2h1v1H8v-1zm2 0h1v1h-1v-1zm2-2h1v1h-1V9zm0 2h1v1h-1v-1zM8 7h1v1H8V7zm2 0h1v1h-1V7zm2 0h1v1h-1V7zM8 5h1v1H8V5zm2 0h1v1h-1V5zm2 0h1v1h-1V5zm0-2h1v1h-1V3z"
|
|
30314
|
+
}));
|
|
30315
|
+
});
|
|
30316
|
+
Building.propTypes = {
|
|
30317
|
+
color: propTypes.string,
|
|
30318
|
+
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
30319
|
+
title: propTypes.string
|
|
30320
|
+
};
|
|
30321
|
+
Building.defaultProps = {
|
|
30322
|
+
color: 'currentColor',
|
|
30323
|
+
size: '1em',
|
|
30324
|
+
title: null
|
|
30325
|
+
};
|
|
30326
|
+
var Building$1 = Building;
|
|
30327
|
+
|
|
30328
|
+
var _excluded$a = ["color", "size", "title"];
|
|
30329
|
+
|
|
30330
|
+
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
30331
|
+
|
|
30332
|
+
function _objectWithoutProperties$a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30333
|
+
|
|
30334
|
+
function _objectWithoutPropertiesLoose$a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30296
30335
|
var CaretDownFill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30297
30336
|
var color = _ref.color,
|
|
30298
30337
|
size = _ref.size,
|
|
30299
30338
|
title = _ref.title,
|
|
30300
|
-
rest = _objectWithoutProperties$
|
|
30339
|
+
rest = _objectWithoutProperties$a(_ref, _excluded$a);
|
|
30301
30340
|
|
|
30302
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30341
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$9({
|
|
30303
30342
|
ref: ref,
|
|
30304
30343
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30305
30344
|
viewBox: "0 0 16 16",
|
|
@@ -30322,20 +30361,20 @@ CaretDownFill.defaultProps = {
|
|
|
30322
30361
|
};
|
|
30323
30362
|
var CaretDownFill$1 = CaretDownFill;
|
|
30324
30363
|
|
|
30325
|
-
var _excluded$
|
|
30364
|
+
var _excluded$9 = ["color", "size", "title"];
|
|
30326
30365
|
|
|
30327
|
-
function _extends$
|
|
30366
|
+
function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
30328
30367
|
|
|
30329
|
-
function _objectWithoutProperties$
|
|
30368
|
+
function _objectWithoutProperties$9(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$9(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30330
30369
|
|
|
30331
|
-
function _objectWithoutPropertiesLoose$
|
|
30370
|
+
function _objectWithoutPropertiesLoose$9(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30332
30371
|
var CheckCircle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30333
30372
|
var color = _ref.color,
|
|
30334
30373
|
size = _ref.size,
|
|
30335
30374
|
title = _ref.title,
|
|
30336
|
-
rest = _objectWithoutProperties$
|
|
30375
|
+
rest = _objectWithoutProperties$9(_ref, _excluded$9);
|
|
30337
30376
|
|
|
30338
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30377
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$8({
|
|
30339
30378
|
ref: ref,
|
|
30340
30379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30341
30380
|
viewBox: "0 0 16 16",
|
|
@@ -30360,20 +30399,20 @@ CheckCircle.defaultProps = {
|
|
|
30360
30399
|
};
|
|
30361
30400
|
var CheckCircle$1 = CheckCircle;
|
|
30362
30401
|
|
|
30363
|
-
var _excluded$
|
|
30402
|
+
var _excluded$8 = ["color", "size", "title"];
|
|
30364
30403
|
|
|
30365
|
-
function _extends$
|
|
30404
|
+
function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
30366
30405
|
|
|
30367
|
-
function _objectWithoutProperties$
|
|
30406
|
+
function _objectWithoutProperties$8(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$8(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30368
30407
|
|
|
30369
|
-
function _objectWithoutPropertiesLoose$
|
|
30408
|
+
function _objectWithoutPropertiesLoose$8(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30370
30409
|
var CloudArrowUp = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30371
30410
|
var color = _ref.color,
|
|
30372
30411
|
size = _ref.size,
|
|
30373
30412
|
title = _ref.title,
|
|
30374
|
-
rest = _objectWithoutProperties$
|
|
30413
|
+
rest = _objectWithoutProperties$8(_ref, _excluded$8);
|
|
30375
30414
|
|
|
30376
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30415
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$7({
|
|
30377
30416
|
ref: ref,
|
|
30378
30417
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30379
30418
|
viewBox: "0 0 16 16",
|
|
@@ -30399,20 +30438,20 @@ CloudArrowUp.defaultProps = {
|
|
|
30399
30438
|
};
|
|
30400
30439
|
var CloudArrowUp$1 = CloudArrowUp;
|
|
30401
30440
|
|
|
30402
|
-
var _excluded$
|
|
30441
|
+
var _excluded$7 = ["color", "size", "title"];
|
|
30403
30442
|
|
|
30404
|
-
function _extends$
|
|
30443
|
+
function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
30405
30444
|
|
|
30406
|
-
function _objectWithoutProperties$
|
|
30445
|
+
function _objectWithoutProperties$7(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30407
30446
|
|
|
30408
|
-
function _objectWithoutPropertiesLoose$
|
|
30447
|
+
function _objectWithoutPropertiesLoose$7(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30409
30448
|
var CursorText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30410
30449
|
var color = _ref.color,
|
|
30411
30450
|
size = _ref.size,
|
|
30412
30451
|
title = _ref.title,
|
|
30413
|
-
rest = _objectWithoutProperties$
|
|
30452
|
+
rest = _objectWithoutProperties$7(_ref, _excluded$7);
|
|
30414
30453
|
|
|
30415
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30454
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$6({
|
|
30416
30455
|
ref: ref,
|
|
30417
30456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30418
30457
|
viewBox: "0 0 16 16",
|
|
@@ -30435,20 +30474,20 @@ CursorText.defaultProps = {
|
|
|
30435
30474
|
};
|
|
30436
30475
|
var CursorText$1 = CursorText;
|
|
30437
30476
|
|
|
30438
|
-
var _excluded$
|
|
30477
|
+
var _excluded$6 = ["color", "size", "title"];
|
|
30439
30478
|
|
|
30440
|
-
function _extends$
|
|
30479
|
+
function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
30441
30480
|
|
|
30442
|
-
function _objectWithoutProperties$
|
|
30481
|
+
function _objectWithoutProperties$6(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30443
30482
|
|
|
30444
|
-
function _objectWithoutPropertiesLoose$
|
|
30483
|
+
function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30445
30484
|
var EyeSlash = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30446
30485
|
var color = _ref.color,
|
|
30447
30486
|
size = _ref.size,
|
|
30448
30487
|
title = _ref.title,
|
|
30449
|
-
rest = _objectWithoutProperties$
|
|
30488
|
+
rest = _objectWithoutProperties$6(_ref, _excluded$6);
|
|
30450
30489
|
|
|
30451
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30490
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$5({
|
|
30452
30491
|
ref: ref,
|
|
30453
30492
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30454
30493
|
viewBox: "0 0 16 16",
|
|
@@ -30475,20 +30514,20 @@ EyeSlash.defaultProps = {
|
|
|
30475
30514
|
};
|
|
30476
30515
|
var EyeSlash$1 = EyeSlash;
|
|
30477
30516
|
|
|
30478
|
-
var _excluded$
|
|
30517
|
+
var _excluded$5 = ["color", "size", "title"];
|
|
30479
30518
|
|
|
30480
|
-
function _extends$
|
|
30519
|
+
function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
30481
30520
|
|
|
30482
|
-
function _objectWithoutProperties$
|
|
30521
|
+
function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30483
30522
|
|
|
30484
|
-
function _objectWithoutPropertiesLoose$
|
|
30523
|
+
function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30485
30524
|
var Eye = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30486
30525
|
var color = _ref.color,
|
|
30487
30526
|
size = _ref.size,
|
|
30488
30527
|
title = _ref.title,
|
|
30489
|
-
rest = _objectWithoutProperties$
|
|
30528
|
+
rest = _objectWithoutProperties$5(_ref, _excluded$5);
|
|
30490
30529
|
|
|
30491
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
30530
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$4({
|
|
30492
30531
|
ref: ref,
|
|
30493
30532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30494
30533
|
viewBox: "0 0 16 16",
|
|
@@ -30513,6 +30552,117 @@ Eye.defaultProps = {
|
|
|
30513
30552
|
};
|
|
30514
30553
|
var Eye$1 = Eye;
|
|
30515
30554
|
|
|
30555
|
+
var _excluded$4 = ["color", "size", "title"];
|
|
30556
|
+
|
|
30557
|
+
function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
30558
|
+
|
|
30559
|
+
function _objectWithoutProperties$4(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$4(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30560
|
+
|
|
30561
|
+
function _objectWithoutPropertiesLoose$4(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30562
|
+
var Eyeglasses = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30563
|
+
var color = _ref.color,
|
|
30564
|
+
size = _ref.size,
|
|
30565
|
+
title = _ref.title,
|
|
30566
|
+
rest = _objectWithoutProperties$4(_ref, _excluded$4);
|
|
30567
|
+
|
|
30568
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$3({
|
|
30569
|
+
ref: ref,
|
|
30570
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30571
|
+
viewBox: "0 0 16 16",
|
|
30572
|
+
width: size,
|
|
30573
|
+
height: size,
|
|
30574
|
+
fill: color
|
|
30575
|
+
}, rest), title ? /*#__PURE__*/React__default["default"].createElement("title", null, title) : null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
30576
|
+
d: "M4 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm2.625.547a3 3 0 0 0-5.584.953H.5a.5.5 0 0 0 0 1h.541A3 3 0 0 0 7 8a1 1 0 0 1 2 0 3 3 0 0 0 5.959.5h.541a.5.5 0 0 0 0-1h-.541a3 3 0 0 0-5.584-.953A1.993 1.993 0 0 0 8 6c-.532 0-1.016.208-1.375.547zM14 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"
|
|
30577
|
+
}));
|
|
30578
|
+
});
|
|
30579
|
+
Eyeglasses.propTypes = {
|
|
30580
|
+
color: propTypes.string,
|
|
30581
|
+
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
30582
|
+
title: propTypes.string
|
|
30583
|
+
};
|
|
30584
|
+
Eyeglasses.defaultProps = {
|
|
30585
|
+
color: 'currentColor',
|
|
30586
|
+
size: '1em',
|
|
30587
|
+
title: null
|
|
30588
|
+
};
|
|
30589
|
+
var Eyeglasses$1 = Eyeglasses;
|
|
30590
|
+
|
|
30591
|
+
var _excluded$3 = ["color", "size", "title"];
|
|
30592
|
+
|
|
30593
|
+
function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
30594
|
+
|
|
30595
|
+
function _objectWithoutProperties$3(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$3(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30596
|
+
|
|
30597
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30598
|
+
var Recycle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30599
|
+
var color = _ref.color,
|
|
30600
|
+
size = _ref.size,
|
|
30601
|
+
title = _ref.title,
|
|
30602
|
+
rest = _objectWithoutProperties$3(_ref, _excluded$3);
|
|
30603
|
+
|
|
30604
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$2({
|
|
30605
|
+
ref: ref,
|
|
30606
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30607
|
+
viewBox: "0 0 16 16",
|
|
30608
|
+
width: size,
|
|
30609
|
+
height: size,
|
|
30610
|
+
fill: color
|
|
30611
|
+
}, rest), title ? /*#__PURE__*/React__default["default"].createElement("title", null, title) : null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
30612
|
+
d: "M9.302 1.256a1.5 1.5 0 0 0-2.604 0l-1.704 2.98a.5.5 0 0 0 .869.497l1.703-2.981a.5.5 0 0 1 .868 0l2.54 4.444-1.256-.337a.5.5 0 1 0-.26.966l2.415.647a.5.5 0 0 0 .613-.353l.647-2.415a.5.5 0 1 0-.966-.259l-.333 1.242-2.532-4.431zM2.973 7.773l-1.255.337a.5.5 0 1 1-.26-.966l2.416-.647a.5.5 0 0 1 .612.353l.647 2.415a.5.5 0 0 1-.966.259l-.333-1.242-2.545 4.454a.5.5 0 0 0 .434.748H5a.5.5 0 0 1 0 1H1.723A1.5 1.5 0 0 1 .421 12.24l2.552-4.467zm10.89 1.463a.5.5 0 1 0-.868.496l1.716 3.004a.5.5 0 0 1-.434.748h-5.57l.647-.646a.5.5 0 1 0-.708-.707l-1.5 1.5a.498.498 0 0 0 0 .707l1.5 1.5a.5.5 0 1 0 .708-.707l-.647-.647h5.57a1.5 1.5 0 0 0 1.302-2.244l-1.716-3.004z"
|
|
30613
|
+
}));
|
|
30614
|
+
});
|
|
30615
|
+
Recycle.propTypes = {
|
|
30616
|
+
color: propTypes.string,
|
|
30617
|
+
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
30618
|
+
title: propTypes.string
|
|
30619
|
+
};
|
|
30620
|
+
Recycle.defaultProps = {
|
|
30621
|
+
color: 'currentColor',
|
|
30622
|
+
size: '1em',
|
|
30623
|
+
title: null
|
|
30624
|
+
};
|
|
30625
|
+
var Recycle$1 = Recycle;
|
|
30626
|
+
|
|
30627
|
+
var _excluded$2 = ["color", "size", "title"];
|
|
30628
|
+
|
|
30629
|
+
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
30630
|
+
|
|
30631
|
+
function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$2(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30632
|
+
|
|
30633
|
+
function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
30634
|
+
var Trash = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30635
|
+
var color = _ref.color,
|
|
30636
|
+
size = _ref.size,
|
|
30637
|
+
title = _ref.title,
|
|
30638
|
+
rest = _objectWithoutProperties$2(_ref, _excluded$2);
|
|
30639
|
+
|
|
30640
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$1({
|
|
30641
|
+
ref: ref,
|
|
30642
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30643
|
+
viewBox: "0 0 16 16",
|
|
30644
|
+
width: size,
|
|
30645
|
+
height: size,
|
|
30646
|
+
fill: color
|
|
30647
|
+
}, rest), title ? /*#__PURE__*/React__default["default"].createElement("title", null, title) : null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
30648
|
+
d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"
|
|
30649
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
30650
|
+
fillRule: "evenodd",
|
|
30651
|
+
d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"
|
|
30652
|
+
}));
|
|
30653
|
+
});
|
|
30654
|
+
Trash.propTypes = {
|
|
30655
|
+
color: propTypes.string,
|
|
30656
|
+
size: propTypes.oneOfType([propTypes.string, propTypes.number]),
|
|
30657
|
+
title: propTypes.string
|
|
30658
|
+
};
|
|
30659
|
+
Trash.defaultProps = {
|
|
30660
|
+
color: 'currentColor',
|
|
30661
|
+
size: '1em',
|
|
30662
|
+
title: null
|
|
30663
|
+
};
|
|
30664
|
+
var Trash$1 = Trash;
|
|
30665
|
+
|
|
30516
30666
|
var _excluded$1 = ["color", "size", "title"];
|
|
30517
30667
|
|
|
30518
30668
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -31127,11 +31277,11 @@ function createCollection(c){const n=c+"CollectionProvider",[l,i]=createContextS
|
|
|
31127
31277
|
|
|
31128
31278
|
function composeEventHandlers$1(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(null==e||e(r),!1===t||!r.defaultPrevented)return null==n?void 0:n(r)}}
|
|
31129
31279
|
|
|
31130
|
-
const f$3={bubbles:!1,cancelable:!0},[p$1,l$2,m$2]=createCollection("RovingFocusGroup"),[d$3,v$1]=createContextScope("RovingFocusGroup",[m$2]);const[g$2,F$1]=d$3("RovingFocusGroup");const RovingFocusGroup=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>/*#__PURE__*/React__namespace.createElement(p$1.Provider,{scope:e.__scopeRovingFocusGroup},/*#__PURE__*/React__namespace.createElement(p$1.Slot,{scope:e.__scopeRovingFocusGroup},/*#__PURE__*/React__namespace.createElement(w$2,_extends$
|
|
31280
|
+
const f$3={bubbles:!1,cancelable:!0},[p$1,l$2,m$2]=createCollection("RovingFocusGroup"),[d$3,v$1]=createContextScope("RovingFocusGroup",[m$2]);const[g$2,F$1]=d$3("RovingFocusGroup");const RovingFocusGroup=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>/*#__PURE__*/React__namespace.createElement(p$1.Provider,{scope:e.__scopeRovingFocusGroup},/*#__PURE__*/React__namespace.createElement(p$1.Slot,{scope:e.__scopeRovingFocusGroup},/*#__PURE__*/React__namespace.createElement(w$2,_extends$g({},e,{ref:o}))))));const w$2=/*#__PURE__*/React__namespace.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:c,orientation:p,dir:m="ltr",loop:d=!1,currentTabStopId:v,defaultCurrentTabStopId:F,onCurrentTabStopIdChange:w,onEntryFocus:b,...x}=t,E=React__namespace.useRef(null),I=useComposedRefs(n,E),[G=null,h]=useControllableState({prop:v,defaultProp:F,onChange:w}),[T,A]=React__namespace.useState(!1),y=useCallbackRef$1(b),D=l$2(c),S=React__namespace.useRef(!1);return React__namespace.useEffect((()=>{const e=E.current;if(e)return e.addEventListener("rovingFocusGroup.onEntryFocus",y),()=>e.removeEventListener("rovingFocusGroup.onEntryFocus",y)}),[y]),/*#__PURE__*/React__namespace.createElement(g$2,{scope:c,orientation:p,dir:m,loop:d,currentTabStopId:G,onItemFocus:React__namespace.useCallback((e=>h(e)),[h]),onItemShiftTab:React__namespace.useCallback((()=>A(!0)),[])},/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$g({tabIndex:T?-1:0,"data-orientation":p},x,{ref:I,style:{outline:"none",...t.style},onMouseDown:composeEventHandlers$1(t.onMouseDown,(()=>{S.current=!0;})),onFocus:composeEventHandlers$1(t.onFocus,(e=>{const o=!S.current;if(e.target===e.currentTarget&&o&&!T){const o=new Event("rovingFocusGroup.onEntryFocus",f$3);if(e.currentTarget.dispatchEvent(o),!o.defaultPrevented){const e=D().filter((e=>e.focusable));R$1([e.find((e=>e.active)),e.find((e=>e.id===G)),...e].filter(Boolean).map((e=>e.ref.current)));}}S.current=!1;})),onBlur:composeEventHandlers$1(t.onBlur,(()=>A(!1)))})))}));const RovingFocusGroupItem=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:c=!1,...f}=e,m=useId(),d=F$1("RovingFocusGroupItem",n),v=d.currentTabStopId===m,g=l$2(n);return React__namespace.createElement(p$1.ItemSlot,{scope:n,id:m,focusable:i,active:c},/*#__PURE__*/React__namespace.createElement(Primitive.span,_extends$g({tabIndex:v?0:-1,"data-orientation":d.orientation},f,{ref:o,onMouseDown:composeEventHandlers$1(e.onMouseDown,(e=>{i?d.onItemFocus(m):e.preventDefault();})),onFocus:composeEventHandlers$1(e.onFocus,(()=>d.onItemFocus(m))),onKeyDown:composeEventHandlers$1(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const o=function(e,o,r){const t=function(e,o){return "rtl"!==o?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return "vertical"===o&&["ArrowLeft","ArrowRight"].includes(t)||"horizontal"===o&&["ArrowUp","ArrowDown"].includes(t)?void 0:b$2[t]}(e,d.orientation,d.dir);if(void 0!==o){e.preventDefault();let n=g().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===o)n.reverse();else if("prev"===o||"next"===o){"prev"===o&&n.reverse();const i=n.indexOf(e.currentTarget);n=d.loop?(t=i+1,(r=n).map(((e,o)=>r[(t+o)%r.length]))):n.slice(i+1);}setTimeout((()=>R$1(n)));}var r,t;}))})))}));const b$2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R$1(e){const o=document.activeElement;for(const r of e){if(r===o)return;if(r.focus(),document.activeElement!==o)return}}const Root$7=RovingFocusGroup;const Item$2=RovingFocusGroupItem;
|
|
31131
31281
|
|
|
31132
|
-
const Portal=/*#__PURE__*/React__namespace.forwardRef(((a,i)=>{var n,d;const{containerRef:s,style:u,...c}=a,m=null!==(n=null==s?void 0:s.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(d=globalThis.document)||void 0===d?void 0:d.body,[,f]=React__namespace.useState({});return useLayoutEffect((()=>{f({});}),[]),m?/*#__PURE__*/e__default["default"].createPortal(/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$
|
|
31282
|
+
const Portal=/*#__PURE__*/React__namespace.forwardRef(((a,i)=>{var n,d;const{containerRef:s,style:u,...c}=a,m=null!==(n=null==s?void 0:s.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(d=globalThis.document)||void 0===d?void 0:d.body,[,f]=React__namespace.useState({});return useLayoutEffect((()=>{f({});}),[]),m?/*#__PURE__*/e__default["default"].createPortal(/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$g({"data-radix-portal":""},c,{ref:i,style:m===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),m):null}));
|
|
31133
31283
|
|
|
31134
|
-
const Arrow$5=/*#__PURE__*/React__namespace.forwardRef(((o,i)=>{const{children:n,width:s=10,height:m=5,...p}=o;return React__namespace.createElement(Primitive.svg,_extends$
|
|
31284
|
+
const Arrow$5=/*#__PURE__*/React__namespace.forwardRef(((o,i)=>{const{children:n,width:s=10,height:m=5,...p}=o;return React__namespace.createElement(Primitive.svg,_extends$g({},p,{ref:i,width:s,height:m,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),o.asChild?n:/*#__PURE__*/React__namespace.createElement("polygon",{points:"0,0 30,0 15,10"}))}));const Root$6=Arrow$5;
|
|
31135
31285
|
|
|
31136
31286
|
function useSize(r){const[i,t]=React__namespace.useState(void 0);return React__namespace.useEffect((()=>{if(r){const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const i=e[0];let o,n;if("borderBoxSize"in i){const e=i.borderBoxSize,r=Array.isArray(e)?e[0]:e;o=r.inlineSize,n=r.blockSize;}else {const e=r.getBoundingClientRect();o=e.width,n=e.height;}t({width:o,height:n});}));return e.observe(r,{box:"border-box"}),()=>e.unobserve(r)}t(void 0);}),[r]),i}
|
|
31137
31287
|
|
|
@@ -31141,17 +31291,17 @@ function useRect(e){const[o,c]=React__namespace.useState();return React__namespa
|
|
|
31141
31291
|
|
|
31142
31292
|
function getPlacementData({anchorRect:p,popperSize:c,arrowSize:f,arrowOffset:l=0,side:d,sideOffset:h=0,align:x,alignOffset:g=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:w,collisionTolerance:m=0}){if(!p||!c||!w)return {popperStyles:o$1,arrowStyles:n$1};const y=function(e,r,o=0,n=0,i){const p=i?i.height:0,a=t(r,e,"x"),s=t(r,e,"y"),c=s.before-o-p,f=s.after+o+p,l=a.before-o-p,d=a.after+o+p;return {top:{start:{x:a.start+n,y:c},center:{x:a.center,y:c},end:{x:a.end-n,y:c}},right:{start:{x:d,y:s.start+n},center:{x:d,y:s.center},end:{x:d,y:s.end-n}},bottom:{start:{x:a.start+n,y:f},center:{x:a.center,y:f},end:{x:a.end-n,y:f}},left:{start:{x:l,y:s.start+n},center:{x:l,y:s.center},end:{x:l,y:s.end-n}}}}(c,p,h,g,f),b=y[d][x];if(!1===u){const t=e(b);let o=n$1;f&&(o=i$2({popperSize:c,arrowSize:f,arrowOffset:l,side:d,align:x}));return {popperStyles:{...t,"--radix-popper-transform-origin":r$2(c,d,x,l,f)},arrowStyles:o,placedSide:d,placedAlign:x}}const S=DOMRect.fromRect({...c,...b}),$=(O=w,z=m,DOMRect.fromRect({width:O.width-2*z,height:O.height-2*z,x:O.left+z,y:O.top+z}));var O,z;const R=s$2(S,$),M=y[a$1(d)][x],D=function(t,e,r){const o=a$1(t);return e[t]&&!r[o]?o:t}(d,R,s$2(DOMRect.fromRect({...c,...M}),$)),A=function(t,e,r,o,n){const i="top"===r||"bottom"===r,p=i?"left":"top",a=i?"right":"bottom",s=i?"width":"height",c=e[s]>t[s];if(("start"===o||"center"===o)&&(n[p]&&c||n[a]&&!c))return "end";if(("end"===o||"center"===o)&&(n[a]&&c||n[p]&&!c))return "start";return o}(c,p,d,x,R),I=e(y[D][A]);let C=n$1;f&&(C=i$2({popperSize:c,arrowSize:f,arrowOffset:l,side:D,align:A}));return {popperStyles:{...I,"--radix-popper-transform-origin":r$2(c,D,A,l,f)},arrowStyles:C,placedSide:D,placedAlign:A}}function t(t,e,r){const o=t["x"===r?"left":"top"],n="x"===r?"width":"height",i=t[n],p=e[n];return {before:o-p,start:o,center:o+(i-p)/2,end:o+i-p,after:o+i}}function e(t){return {position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(t.x+window.scrollX)}px, ${Math.round(t.y+window.scrollY)}px, 0)`}}function r$2(t,e,r,o,n){const i="top"===e||"bottom"===e,p=n?n.width:0,a=n?n.height:0,s=p/2+o;let c="",f="";return i?(c={start:`${s}px`,center:"center",end:t.width-s+"px"}[r],f="top"===e?`${t.height+a}px`:-a+"px"):(c="left"===e?`${t.width+a}px`:-a+"px",f={start:`${s}px`,center:"center",end:t.height-s+"px"}[r]),`${c} ${f}`}const o$1={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},n$1={position:"absolute",opacity:0};function i$2({popperSize:t,arrowSize:e,arrowOffset:r,side:o,align:n}){const i=(t.width-e.width)/2,a=(t.height-e.width)/2,s={top:0,right:90,bottom:180,left:-90}[o],c=Math.max(e.width,e.height),f={width:`${c}px`,height:`${c}px`,transform:`rotate(${s}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:p(o,n)};return "top"!==o&&"bottom"!==o||("start"===n&&(f.left=`${r}px`),"center"===n&&(f.left=`${i}px`),"end"===n&&(f.right=`${r}px`)),"left"!==o&&"right"!==o||("start"===n&&(f.top=`${r}px`),"center"===n&&(f.top=`${a}px`),"end"===n&&(f.bottom=`${r}px`)),f}function p(t,e){return ("top"!==t&&"right"!==t||"end"!==e)&&("bottom"!==t&&"left"!==t||"end"===e)?"ltr":"rtl"}function a$1(t){return {top:"bottom",right:"left",bottom:"top",left:"right"}[t]}function s$2(t,e){return {top:t.top<e.top,right:t.right>e.right,bottom:t.bottom>e.bottom,left:t.left<e.left}}
|
|
31143
31293
|
|
|
31144
|
-
const[c$2,l$1]=createContextScope("Popper");const[f$2,d$2]=c$2("Popper");const Popper=e=>{const{__scopePopper:o,children:r}=e,[t,n]=React__namespace.useState(null);return React__namespace.createElement(f$2,{scope:o,anchor:t,onAnchorChange:n},r)};const PopperAnchor=/*#__PURE__*/React__namespace.forwardRef(((e,r)=>{const{__scopePopper:t,virtualRef:n,...p}=e,c=d$2("PopperAnchor",t),l=React__namespace.useRef(null),f=useComposedRefs(r,l);return React__namespace.useEffect((()=>{c.onAnchorChange((null==n?void 0:n.current)||l.current);})),n?null:/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$
|
|
31294
|
+
const[c$2,l$1]=createContextScope("Popper");const[f$2,d$2]=c$2("Popper");const Popper=e=>{const{__scopePopper:o,children:r}=e,[t,n]=React__namespace.useState(null);return React__namespace.createElement(f$2,{scope:o,anchor:t,onAnchorChange:n},r)};const PopperAnchor=/*#__PURE__*/React__namespace.forwardRef(((e,r)=>{const{__scopePopper:t,virtualRef:n,...p}=e,c=d$2("PopperAnchor",t),l=React__namespace.useRef(null),f=useComposedRefs(r,l);return React__namespace.useEffect((()=>{c.onAnchorChange((null==n?void 0:n.current)||l.current);})),n?null:/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$g({},p,{ref:f}))}));const[u$1,m$1]=c$2("PopperContent");const PopperContent=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopePopper:c,side:l="bottom",sideOffset:f,align:m="center",alignOffset:w,collisionTolerance:h,avoidCollisions:x=!0,...v}=e,P=d$2("PopperContent",c),[A,g]=React__namespace.useState(),E=useRect(P.anchor),[y,C]=React__namespace.useState(null),S=useSize(y),[R,O]=React__namespace.useState(null),_=useSize(R),b=useComposedRefs(n,(e=>C(e))),z=function(){const[e,o]=React__namespace.useState(void 0);return React__namespace.useEffect((()=>{let e;function r(){o({width:window.innerWidth,height:window.innerHeight});}function t(){window.clearTimeout(e),e=window.setTimeout(r,100);}return r(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]),e}(),T=z?DOMRect.fromRect({...z,x:0,y:0}):void 0,{popperStyles:k,arrowStyles:L,placedSide:B,placedAlign:D}=getPlacementData({anchorRect:E,popperSize:S,arrowSize:_,arrowOffset:A,side:l,sideOffset:f,align:m,alignOffset:w,shouldAvoidCollisions:x,collisionBoundariesRect:T,collisionTolerance:h}),H=void 0!==B;return React__namespace.createElement("div",{style:k,"data-radix-popper-content-wrapper":""},/*#__PURE__*/React__namespace.createElement(u$1,{scope:c,arrowStyles:L,onArrowChange:O,onArrowOffsetChange:g},/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$g({"data-side":B,"data-align":D},v,{style:{...v.style,animation:H?void 0:"none"},ref:b}))))}));const PopperArrow=/*#__PURE__*/React__namespace.forwardRef((function(o,r){const{__scopePopper:t,offset:n,...i}=o,p=m$1("PopperArrow",t),{onArrowOffsetChange:c}=p;return React__namespace.useEffect((()=>c(n)),[c,n]),/*#__PURE__*/React__namespace.createElement("span",{style:{...p.arrowStyles,pointerEvents:"none"}},/*#__PURE__*/React__namespace.createElement("span",{ref:p.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},/*#__PURE__*/React__namespace.createElement(Root$6,_extends$g({},i,{ref:r,style:{...i.style,display:"block"}}))))}));const Root$5=Popper;const Anchor$1=PopperAnchor;const Content$4=PopperContent;const Arrow$4=PopperArrow;
|
|
31145
31295
|
|
|
31146
31296
|
const Presence=u=>{const{present:o,children:i}=u,s=function(n){const[u,o]=React__namespace.useState(),i=React__namespace.useRef({}),s=React__namespace.useRef(n),c=React__namespace.useRef("none"),a=n?"mounted":"unmounted",[d,m]=function(e,n){return React__namespace.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return React__namespace.useEffect((()=>{const e=r$1(i.current);c.current="mounted"===d?e:"none";}),[d]),useLayoutEffect((()=>{const e=i.current,t=s.current;if(t!==n){const u=c.current,o=r$1(e);if(n)m("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))m("UNMOUNT");else {const e=u!==o;m(t&&e?"ANIMATION_OUT":"UNMOUNT");}s.current=n;}}),[n,m]),useLayoutEffect((()=>{if(u){const e=e=>{const n=r$1(i.current).includes(e.animationName);e.target===u&&n&&m("ANIMATION_END");},n=e=>{e.target===u&&(c.current=r$1(i.current));};return u.addEventListener("animationstart",n),u.addEventListener("animationcancel",e),u.addEventListener("animationend",e),()=>{u.removeEventListener("animationstart",n),u.removeEventListener("animationcancel",e),u.removeEventListener("animationend",e);}}m("ANIMATION_END");}),[u,m]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:React__namespace.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e);}),[])}}(o),c="function"==typeof i?i({present:s.isPresent}):React__namespace.Children.only(i),a=useComposedRefs(s.ref,c.ref);return "function"==typeof i||s.isPresent?/*#__PURE__*/React__namespace.cloneElement(c,{ref:a}):null};function r$1(e){return (null==e?void 0:e.animationName)||"none"}Presence.displayName="Presence";
|
|
31147
31297
|
|
|
31148
|
-
const c$1={bubbles:!1,cancelable:!0};const FocusScope=/*#__PURE__*/React__namespace.forwardRef(((i,f)=>{const{loop:l=!1,trapped:m=!1,onMountAutoFocus:p,onUnmountAutoFocus:v,...E}=i,[F,S]=React__namespace.useState(null),b=useCallbackRef$1(p),T=useCallbackRef$1(v),y=React__namespace.useRef(null),L=useComposedRefs(f,(e=>S(e))),h=React__namespace.useRef({paused:!1,pause(){this.paused=!0;},resume(){this.paused=!1;}}).current;React__namespace.useEffect((()=>{if(m){function e(e){if(h.paused||!F)return;const t=e.target;F.contains(t)?y.current=t:a(y.current,{select:!0});}function t(e){!h.paused&&F&&(F.contains(e.relatedTarget)||a(y.current,{select:!0}));}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t);}}}),[m,F,h.paused]),React__namespace.useEffect((()=>{if(F){d$1.add(h);const t=document.activeElement;if(!F.contains(t)){const n=new Event("focusScope.autoFocusOnMount",c$1);F.addEventListener("focusScope.autoFocusOnMount",b),F.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(a(o,{select:t}),document.activeElement!==n)return}((e=r(F),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&a(F));}return ()=>{F.removeEventListener("focusScope.autoFocusOnMount",b),setTimeout((()=>{const e=new Event("focusScope.autoFocusOnUnmount",c$1);F.addEventListener("focusScope.autoFocusOnUnmount",T),F.dispatchEvent(e),e.defaultPrevented||a(null!=t?t:document.body,{select:!0}),F.removeEventListener("focusScope.autoFocusOnUnmount",T),d$1.remove(h);}),0);}}var e;}),[F,b,T,h]);const N=React__namespace.useCallback((e=>{if(!l&&!m)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,u]=function(e){const t=r(e),n=s$1(t,e),o=s$1(t.reverse(),e);return [n,o]}(t);o&&u?e.shiftKey||n!==u?e.shiftKey&&n===o&&(e.preventDefault(),l&&a(u,{select:!0})):(e.preventDefault(),l&&a(o,{select:!0})):n===t&&e.preventDefault();}}),[l,m,h.paused]);return React__namespace.createElement(Primitive.div,_extends$
|
|
31298
|
+
const c$1={bubbles:!1,cancelable:!0};const FocusScope=/*#__PURE__*/React__namespace.forwardRef(((i,f)=>{const{loop:l=!1,trapped:m=!1,onMountAutoFocus:p,onUnmountAutoFocus:v,...E}=i,[F,S]=React__namespace.useState(null),b=useCallbackRef$1(p),T=useCallbackRef$1(v),y=React__namespace.useRef(null),L=useComposedRefs(f,(e=>S(e))),h=React__namespace.useRef({paused:!1,pause(){this.paused=!0;},resume(){this.paused=!1;}}).current;React__namespace.useEffect((()=>{if(m){function e(e){if(h.paused||!F)return;const t=e.target;F.contains(t)?y.current=t:a(y.current,{select:!0});}function t(e){!h.paused&&F&&(F.contains(e.relatedTarget)||a(y.current,{select:!0}));}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t);}}}),[m,F,h.paused]),React__namespace.useEffect((()=>{if(F){d$1.add(h);const t=document.activeElement;if(!F.contains(t)){const n=new Event("focusScope.autoFocusOnMount",c$1);F.addEventListener("focusScope.autoFocusOnMount",b),F.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(a(o,{select:t}),document.activeElement!==n)return}((e=r(F),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&a(F));}return ()=>{F.removeEventListener("focusScope.autoFocusOnMount",b),setTimeout((()=>{const e=new Event("focusScope.autoFocusOnUnmount",c$1);F.addEventListener("focusScope.autoFocusOnUnmount",T),F.dispatchEvent(e),e.defaultPrevented||a(null!=t?t:document.body,{select:!0}),F.removeEventListener("focusScope.autoFocusOnUnmount",T),d$1.remove(h);}),0);}}var e;}),[F,b,T,h]);const N=React__namespace.useCallback((e=>{if(!l&&!m)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,u]=function(e){const t=r(e),n=s$1(t,e),o=s$1(t.reverse(),e);return [n,o]}(t);o&&u?e.shiftKey||n!==u?e.shiftKey&&n===o&&(e.preventDefault(),l&&a(u,{select:!0})):(e.preventDefault(),l&&a(o,{select:!0})):n===t&&e.preventDefault();}}),[l,m,h.paused]);return React__namespace.createElement(Primitive.div,_extends$g({tabIndex:-1},E,{ref:L,onKeyDown:N}))}));function r(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function s$1(e,t){for(const n of e)if(!i$1(n,{upTo:t}))return n}function i$1(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return !0;for(;e;){if(void 0!==t&&e===t)return !1;if("none"===getComputedStyle(e).display)return !0;e=e.parentElement;}return !1}function a(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select();}}const d$1=function(){let e=[];return {add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=f$1(e,t),e.unshift(t);},remove(t){var n;e=f$1(e,t),null===(n=e[0])||void 0===n||n.resume();}}}();function f$1(e,t){const n=[...e],o=n.indexOf(t);return -1!==o&&n.splice(o,1),n}
|
|
31149
31299
|
|
|
31150
31300
|
function useEscapeKeydown(n){const o=useCallbackRef$1(n);React__namespace.useEffect((()=>{const e=e=>{"Escape"===e.key&&o(e);};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[o]);}
|
|
31151
31301
|
|
|
31152
31302
|
let n,o=0;function useBodyPointerEvents({disabled:r}){const i=React__namespace.useRef(!1);useLayoutEffect((()=>{if(r){function e(){o--,0===o&&(document.body.style.pointerEvents=n);}function t(e){i.current="mouse"!==e.pointerType;}return 0===o&&(n=document.body.style.pointerEvents),document.body.style.pointerEvents="none",o++,document.addEventListener("pointerup",t),()=>{i.current?document.addEventListener("click",e,{once:!0}):e(),document.removeEventListener("pointerup",t);}}}),[r]);}
|
|
31153
31303
|
|
|
31154
|
-
const u=/*#__PURE__*/React__namespace.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});const DismissableLayer=/*#__PURE__*/React__namespace.forwardRef(((l,m)=>{const{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:E,onDismiss:y,...w}=l,h=React__namespace.useContext(u),[D,x]=React__namespace.useState(null),[,C]=React__namespace.useState({}),L=useComposedRefs(m,(e=>x(e))),P=Array.from(h.layers),[O]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),g=P.indexOf(O),B=D?P.indexOf(D):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,F=B>=g,S=function(e){const n=useCallbackRef$1(e),r=React__namespace.useRef(!1);return React__namespace.useEffect((()=>{const e=e=>{if(e.target&&!r.current){d("dismissableLayer.pointerDownOutside",n,{originalEvent:e});}r.current=!1;},t=window.setTimeout((()=>{document.addEventListener("pointerdown",e);}),0);return ()=>{window.clearTimeout(t),document.removeEventListener("pointerdown",e);}}),[n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...h.branches].some((e=>e.contains(t)));F&&!n&&(null==v||v(e),null==E||E(e),e.defaultPrevented||null==y||y());})),W=function(e){const n=useCallbackRef$1(e),r=React__namespace.useRef(!1);return React__namespace.useEffect((()=>{const e=e=>{if(e.target&&!r.current){d("dismissableLayer.focusOutside",n,{originalEvent:e});}};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...h.branches].some((e=>e.contains(t)))||(null==b||b(e),null==E||E(e),e.defaultPrevented||null==y||y());}));return useEscapeKeydown((e=>{B===h.layers.size-1&&(null==p||p(e),e.defaultPrevented||null==y||y());})),useBodyPointerEvents({disabled:f}),React__namespace.useEffect((()=>{D&&(f&&h.layersWithOutsidePointerEventsDisabled.add(D),h.layers.add(D),c());}),[D,f,h]),React__namespace.useEffect((()=>()=>{D&&(h.layers.delete(D),h.layersWithOutsidePointerEventsDisabled.delete(D),c());}),[D,h]),React__namespace.useEffect((()=>{const e=()=>C({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$
|
|
31304
|
+
const u=/*#__PURE__*/React__namespace.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});const DismissableLayer=/*#__PURE__*/React__namespace.forwardRef(((l,m)=>{const{disableOutsidePointerEvents:f=!1,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:E,onDismiss:y,...w}=l,h=React__namespace.useContext(u),[D,x]=React__namespace.useState(null),[,C]=React__namespace.useState({}),L=useComposedRefs(m,(e=>x(e))),P=Array.from(h.layers),[O]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),g=P.indexOf(O),B=D?P.indexOf(D):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,F=B>=g,S=function(e){const n=useCallbackRef$1(e),r=React__namespace.useRef(!1);return React__namespace.useEffect((()=>{const e=e=>{if(e.target&&!r.current){d("dismissableLayer.pointerDownOutside",n,{originalEvent:e});}r.current=!1;},t=window.setTimeout((()=>{document.addEventListener("pointerdown",e);}),0);return ()=>{window.clearTimeout(t),document.removeEventListener("pointerdown",e);}}),[n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...h.branches].some((e=>e.contains(t)));F&&!n&&(null==v||v(e),null==E||E(e),e.defaultPrevented||null==y||y());})),W=function(e){const n=useCallbackRef$1(e),r=React__namespace.useRef(!1);return React__namespace.useEffect((()=>{const e=e=>{if(e.target&&!r.current){d("dismissableLayer.focusOutside",n,{originalEvent:e});}};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...h.branches].some((e=>e.contains(t)))||(null==b||b(e),null==E||E(e),e.defaultPrevented||null==y||y());}));return useEscapeKeydown((e=>{B===h.layers.size-1&&(null==p||p(e),e.defaultPrevented||null==y||y());})),useBodyPointerEvents({disabled:f}),React__namespace.useEffect((()=>{D&&(f&&h.layersWithOutsidePointerEventsDisabled.add(D),h.layers.add(D),c());}),[D,f,h]),React__namespace.useEffect((()=>()=>{D&&(h.layers.delete(D),h.layersWithOutsidePointerEventsDisabled.delete(D),c());}),[D,h]),React__namespace.useEffect((()=>{const e=()=>C({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$g({},w,{ref:L,style:{pointerEvents:R?F?"auto":"none":void 0,...l.style},onFocusCapture:composeEventHandlers$1(l.onFocusCapture,W.onFocusCapture),onBlurCapture:composeEventHandlers$1(l.onBlurCapture,W.onBlurCapture),onPointerDownCapture:composeEventHandlers$1(l.onPointerDownCapture,S.onPointerDownCapture)}))}));function c(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e);}function d(e,t,n){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return t&&r.addEventListener(e,t,{once:!0}),!r.dispatchEvent(s)}
|
|
31155
31305
|
|
|
31156
31306
|
var getDefaultParent = function (originalTarget) {
|
|
31157
31307
|
if (typeof document === 'undefined') {
|
|
@@ -31948,9 +32098,9 @@ var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { retu
|
|
|
31948
32098
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
31949
32099
|
var C = ReactRemoveScroll;
|
|
31950
32100
|
|
|
31951
|
-
const x$1=["Enter"," "],b$1=["ArrowUp","PageDown","End"],R=["ArrowDown","PageUp","Home",...b$1],y$1={ltr:["ArrowLeft"],rtl:["ArrowRight"]},[I,k$1,P]=createCollection("Menu"),[D$1,S]=createContextScope("Menu",[P,l$1,v$1]);const O=l$1(),T=v$1(),[L,A]=D$1("Menu");const Menu=e=>{const{__scopeMenu:n,open:o=!1,children:u,onOpenChange:c,modal:i=!0}=e,s=O(n),[l,d]=React__namespace.useState(null),p=React__namespace.useRef(!1),f=useCallbackRef$1(c),m=useDirection(l,e.dir);return React__namespace.useEffect((()=>{const e=()=>{p.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0});},n=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0});}}),[]),/*#__PURE__*/React__namespace.createElement(Root$5,s,/*#__PURE__*/React__namespace.createElement(L,{scope:n,isSubmenu:!1,isUsingKeyboardRef:p,dir:m,open:o,onOpenChange:f,content:l,onContentChange:d,onRootClose:React__namespace.useCallback((()=>f(!1)),[f]),modal:i},u))};const MenuSub=n=>{const{__scopeMenu:r,children:o,open:u=!1,onOpenChange:c}=n,i=A("MenuSub",r),s=O(r),[l,d]=React__namespace.useState(null),[p,f]=React__namespace.useState(null),m=useCallbackRef$1(c);return React__namespace.useEffect((()=>(!1===i.open&&m(!1),()=>m(!1))),[i.open,m]),/*#__PURE__*/React__namespace.createElement(Root$5,s,/*#__PURE__*/React__namespace.createElement(L,{scope:r,isSubmenu:!0,isUsingKeyboardRef:i.isUsingKeyboardRef,dir:i.dir,open:u,onOpenChange:m,content:p,onContentChange:f,onRootClose:i.onRootClose,contentId:useId(),trigger:l,onTriggerChange:d,triggerId:useId(),modal:!1},o))};const MenuAnchor=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=O(t);return React__namespace.createElement(Anchor$1,_extends$c({},o,r,{ref:n}))}));const[F,K]=D$1("MenuContent");const MenuContent=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{forceMount:t,...r}=e,o=A("MenuContent",e.__scopeMenu);return React__namespace.createElement(I.Provider,{scope:e.__scopeMenu},/*#__PURE__*/React__namespace.createElement(Presence,{present:t||o.open},/*#__PURE__*/React__namespace.createElement(I.Slot,{scope:e.__scopeMenu},o.isSubmenu?/*#__PURE__*/React__namespace.createElement(X,_extends$c({},r,{ref:n})):/*#__PURE__*/React__namespace.createElement(G,_extends$c({},r,{ref:n})))))}));const G=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>A("MenuContent",e.__scopeMenu).modal?/*#__PURE__*/React__namespace.createElement(U,_extends$c({},e,{ref:n})):/*#__PURE__*/React__namespace.createElement(V,_extends$c({},e,{ref:n})))),U=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const t=A("MenuContent",e.__scopeMenu),r=React__namespace.useRef(null),o=useComposedRefs(n,r);return React__namespace.useEffect((()=>{const e=r.current;if(e)return hideOthers(e)}),[]),/*#__PURE__*/React__namespace.createElement(B,_extends$c({},e,{ref:o,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:composeEventHandlers$1(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))})),V=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const t=A("MenuContent",e.__scopeMenu);return React__namespace.createElement(B,_extends$c({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))})),X=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const t=A("MenuContent",e.__scopeMenu),r=React__namespace.useRef(null),o=useComposedRefs(n,r);return t.isSubmenu?/*#__PURE__*/React__namespace.createElement(B,_extends$c({id:t.contentId,"aria-labelledby":t.triggerId},e,{ref:o,align:"start",side:"rtl"===t.dir?"left":"right",portalled:!0,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;t.isUsingKeyboardRef.current&&(null===(n=r.current)||void 0===n||n.focus()),e.preventDefault();},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:composeEventHandlers$1(e.onFocusOutside,(e=>{e.target!==t.trigger&&t.onOpenChange(!1);})),onEscapeKeyDown:composeEventHandlers$1(e.onEscapeKeyDown,t.onRootClose),onKeyDown:composeEventHandlers$1(e.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),r=y$1[t.dir].includes(e.key);var o;n&&r&&(t.onOpenChange(!1),null===(o=t.trigger)||void 0===o||o.focus(),e.preventDefault());}))})):null})),B=/*#__PURE__*/React__namespace.forwardRef(((e,t)=>{const{__scopeMenu:r,loop:u=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:x,onDismiss:_,disableOutsideScroll:y,allowPinchZoom:I,portalled:P,...D}=e,S=A("MenuContent",r),L=O(r),K=T(r),G=k$1(r),[U,V]=React__namespace.useState(null),X=React__namespace.useRef(null),B=useComposedRefs(t,X,S.onContentChange),Y=React__namespace.useRef(0),Z=React__namespace.useRef(""),z=React__namespace.useRef(0),H=React__namespace.useRef(null),W=React__namespace.useRef("right"),q=React__namespace.useRef(0),N=P?Portal:React__namespace.Fragment,Q=y?C:React__namespace.Fragment,$=y?{allowPinchZoom:I}:void 0,ee=e=>{var n,t;const r=Z.current+e,o=G().filter((e=>!e.disabled)),u=document.activeElement,c=null===(n=o.find((e=>e.ref.current===u)))||void 0===n?void 0:n.textValue,a=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0]))?n[0]:n,o=t?e.indexOf(t):-1;let u=(c=e,a=Math.max(o,0),c.map(((e,n)=>c[(a+n)%c.length])));var c,a;1===r.length&&(u=u.filter((e=>e!==t)));const i=u.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==t?i:void 0}(o.map((e=>e.textValue)),r,c),i=null===(t=o.find((e=>e.textValue===a)))||void 0===t?void 0:t.ref.current;!function e(n){Z.current=n,window.clearTimeout(Y.current),""!==n&&(Y.current=window.setTimeout((()=>e("")),1e3));}(r),i&&setTimeout((()=>i.focus()));};React__namespace.useEffect((()=>()=>window.clearTimeout(Y.current)),[]),useFocusGuards();const ne=React__namespace.useCallback((e=>{var n,t;return W.current===(null===(n=H.current)||void 0===n?void 0:n.side)&&function(e,n){if(!n)return !1;return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,u=n.length-1;e<n.length;u=e++){const c=n[e].x,a=n[e].y,i=n[u].x,s=n[u].y;a>r!=s>r&&t<(i-c)*(r-a)/(s-a)+c&&(o=!o);}return o}({x:e.clientX,y:e.clientY},n)}(e,null===(t=H.current)||void 0===t?void 0:t.area)}),[]);return React__namespace.createElement(N,null,/*#__PURE__*/React__namespace.createElement(Q,$,/*#__PURE__*/React__namespace.createElement(F,{scope:r,searchRef:Z,onItemEnter:React__namespace.useCallback((e=>{ne(e)&&e.preventDefault();}),[ne]),onItemLeave:React__namespace.useCallback((e=>{var n;ne(e)||(null===(n=X.current)||void 0===n||n.focus(),V(null));}),[ne]),onTriggerLeave:React__namespace.useCallback((e=>{ne(e)&&e.preventDefault();}),[ne]),pointerGraceTimerRef:z,onPointerGraceIntentChange:React__namespace.useCallback((e=>{H.current=e;}),[])},/*#__PURE__*/React__namespace.createElement(FocusScope,{asChild:!0,trapped:i,onMountAutoFocus:composeEventHandlers$1(s,(e=>{var n;e.preventDefault(),null===(n=X.current)||void 0===n||n.focus();})),onUnmountAutoFocus:l},/*#__PURE__*/React__namespace.createElement(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:x,onDismiss:_},/*#__PURE__*/React__namespace.createElement(Root$7,_extends$c({asChild:!0},K,{dir:S.dir,orientation:"vertical",loop:u,currentTabStopId:U,onCurrentTabStopIdChange:V,onEntryFocus:e=>{S.isUsingKeyboardRef.current||e.preventDefault();}}),/*#__PURE__*/React__namespace.createElement(Content$4,_extends$c({role:"menu","aria-orientation":"vertical","data-state":j(S.open),dir:S.dir},L,D,{ref:B,style:{outline:"none",...D.style},onKeyDown:composeEventHandlers$1(D.onKeyDown,(e=>{const n=e.target,t=e.currentTarget.contains(n),r=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&o&&ee(e.key));const u=X.current;if(e.target!==u)return;if(!R.includes(e.key))return;e.preventDefault();const c=G().filter((e=>!e.disabled)).map((e=>e.ref.current));b$1.includes(e.key)&&c.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(c);})),onBlur:composeEventHandlers$1(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(Y.current),Z.current="");})),onPointerMove:composeEventHandlers$1(e.onPointerMove,J((e=>{const n=e.target,t=q.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>q.current?"right":"left";W.current=n,q.current=e.clientX;}})))}))))))))}));const MenuGroup=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return React__namespace.createElement(Primitive.div,_extends$c({role:"group"},r,{ref:n}))}));const MenuLabel=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return React__namespace.createElement(Primitive.div,_extends$c({},r,{ref:n}))}));const MenuItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{disabled:t=!1,onSelect:r,...o}=e,u=React__namespace.useRef(null),c=A("MenuItem",e.__scopeMenu),a=K("MenuItem",e.__scopeMenu),i=useComposedRefs(n,u),s=React__namespace.useRef(!1);return React__namespace.createElement(Y,_extends$c({},o,{ref:i,disabled:t,onClick:composeEventHandlers$1(e.onClick,(()=>{const e=u.current;if(!t&&e){const n=new Event("menu.itemSelect",{bubbles:!0,cancelable:!0});e.addEventListener("menu.itemSelect",(e=>null==r?void 0:r(e)),{once:!0}),e.dispatchEvent(n),n.defaultPrevented?s.current=!1:c.onRootClose();}})),onPointerDown:n=>{var t;null===(t=e.onPointerDown)||void 0===t||t.call(e,n),s.current=!0;},onPointerUp:composeEventHandlers$1(e.onPointerUp,(e=>{var n;s.current||null===(n=e.currentTarget)||void 0===n||n.click();})),onKeyDown:composeEventHandlers$1(e.onKeyDown,(e=>{const n=""!==a.searchRef.current;t||n&&" "===e.key||x$1.includes(e.key)&&(e.currentTarget.click(),e.preventDefault());}))}))}));const Y=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:u,...c}=e,a=K("MenuItem",t),i=T(t),l=React__namespace.useRef(null),d=useComposedRefs(n,l),[p,f]=React__namespace.useState("");return React__namespace.useEffect((()=>{const e=l.current;var n;e&&f((null!==(n=e.textContent)&&void 0!==n?n:"").trim());}),[c.children]),/*#__PURE__*/React__namespace.createElement(I.ItemSlot,{scope:t,disabled:r,textValue:null!=u?u:p},/*#__PURE__*/React__namespace.createElement(Item$2,_extends$c({asChild:!0},i,{focusable:!r}),/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$c({role:"menuitem","aria-disabled":r||void 0,"data-disabled":r?"":void 0},c,{ref:d,onPointerMove:composeEventHandlers$1(e.onPointerMove,J((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus();}}))),onPointerLeave:composeEventHandlers$1(e.onPointerLeave,J((e=>a.onItemLeave(e))))}))))}));const MenuCheckboxItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{checked:t=!1,onCheckedChange:r,...o}=e;return React__namespace.createElement(H,{scope:e.__scopeMenu,checked:t},/*#__PURE__*/React__namespace.createElement(MenuItem,_extends$c({role:"menuitemcheckbox","aria-checked":t},o,{ref:n,"data-state":q(t),onSelect:composeEventHandlers$1(o.onSelect,(()=>null==r?void 0:r(!t)),{checkForDefaultPrevented:!1})})))}));const[Z,z]=D$1("MenuRadioGroup",{value:void 0,onValueChange:()=>{}});const MenuRadioGroup=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{value:r,onValueChange:o,...u}=e,c=useCallbackRef$1(o);return React__namespace.createElement(Z,{scope:e.__scopeMenu,value:r,onValueChange:c},/*#__PURE__*/React__namespace.createElement(MenuGroup,_extends$c({},u,{ref:n})))}));const MenuRadioItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{value:t,...r}=e,o=z("MenuRadioItem",e.__scopeMenu),u=t===o.value;return React__namespace.createElement(H,{scope:e.__scopeMenu,checked:u},/*#__PURE__*/React__namespace.createElement(MenuItem,_extends$c({role:"menuitemradio","aria-checked":u},r,{ref:n,"data-state":q(u),onSelect:composeEventHandlers$1(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,t)}),{checkForDefaultPrevented:!1})})))}));const[H,W]=D$1("MenuItemIndicator",{checked:!1});const MenuItemIndicator=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,u=W("MenuItemIndicator",t);return React__namespace.createElement(Presence,{present:r||u.checked},/*#__PURE__*/React__namespace.createElement(Primitive.span,_extends$c({},o,{ref:n,"data-state":q(u.checked)})))}));const MenuArrow=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=O(t);return React__namespace.createElement(Arrow$4,_extends$c({},o,r,{ref:n}))}));function j(e){return e?"open":"closed"}function q(e){return e?"checked":"unchecked"}function J(e){return n=>"mouse"===n.pointerType?e(n):void 0}const Root$4=Menu;const Sub=MenuSub;const Anchor=MenuAnchor;const Content$3=MenuContent;const Group$1=MenuGroup;const Label$1=MenuLabel;const Item$1=MenuItem;const CheckboxItem$1=MenuCheckboxItem;const RadioGroup$1=MenuRadioGroup;const RadioItem$1=MenuRadioItem;const ItemIndicator$1=MenuItemIndicator;const Arrow$3=MenuArrow;
|
|
32101
|
+
const x$1=["Enter"," "],b$1=["ArrowUp","PageDown","End"],R=["ArrowDown","PageUp","Home",...b$1],y$1={ltr:["ArrowLeft"],rtl:["ArrowRight"]},[I,k$1,P]=createCollection("Menu"),[D$1,S]=createContextScope("Menu",[P,l$1,v$1]);const O=l$1(),T=v$1(),[L,A]=D$1("Menu");const Menu=e=>{const{__scopeMenu:n,open:o=!1,children:u,onOpenChange:c,modal:i=!0}=e,s=O(n),[l,d]=React__namespace.useState(null),p=React__namespace.useRef(!1),f=useCallbackRef$1(c),m=useDirection(l,e.dir);return React__namespace.useEffect((()=>{const e=()=>{p.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0});},n=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0});}}),[]),/*#__PURE__*/React__namespace.createElement(Root$5,s,/*#__PURE__*/React__namespace.createElement(L,{scope:n,isSubmenu:!1,isUsingKeyboardRef:p,dir:m,open:o,onOpenChange:f,content:l,onContentChange:d,onRootClose:React__namespace.useCallback((()=>f(!1)),[f]),modal:i},u))};const MenuSub=n=>{const{__scopeMenu:r,children:o,open:u=!1,onOpenChange:c}=n,i=A("MenuSub",r),s=O(r),[l,d]=React__namespace.useState(null),[p,f]=React__namespace.useState(null),m=useCallbackRef$1(c);return React__namespace.useEffect((()=>(!1===i.open&&m(!1),()=>m(!1))),[i.open,m]),/*#__PURE__*/React__namespace.createElement(Root$5,s,/*#__PURE__*/React__namespace.createElement(L,{scope:r,isSubmenu:!0,isUsingKeyboardRef:i.isUsingKeyboardRef,dir:i.dir,open:u,onOpenChange:m,content:p,onContentChange:f,onRootClose:i.onRootClose,contentId:useId(),trigger:l,onTriggerChange:d,triggerId:useId(),modal:!1},o))};const MenuAnchor=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=O(t);return React__namespace.createElement(Anchor$1,_extends$g({},o,r,{ref:n}))}));const[F,K]=D$1("MenuContent");const MenuContent=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{forceMount:t,...r}=e,o=A("MenuContent",e.__scopeMenu);return React__namespace.createElement(I.Provider,{scope:e.__scopeMenu},/*#__PURE__*/React__namespace.createElement(Presence,{present:t||o.open},/*#__PURE__*/React__namespace.createElement(I.Slot,{scope:e.__scopeMenu},o.isSubmenu?/*#__PURE__*/React__namespace.createElement(X,_extends$g({},r,{ref:n})):/*#__PURE__*/React__namespace.createElement(G,_extends$g({},r,{ref:n})))))}));const G=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>A("MenuContent",e.__scopeMenu).modal?/*#__PURE__*/React__namespace.createElement(U,_extends$g({},e,{ref:n})):/*#__PURE__*/React__namespace.createElement(V,_extends$g({},e,{ref:n})))),U=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const t=A("MenuContent",e.__scopeMenu),r=React__namespace.useRef(null),o=useComposedRefs(n,r);return React__namespace.useEffect((()=>{const e=r.current;if(e)return hideOthers(e)}),[]),/*#__PURE__*/React__namespace.createElement(B,_extends$g({},e,{ref:o,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:composeEventHandlers$1(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)}))})),V=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const t=A("MenuContent",e.__scopeMenu);return React__namespace.createElement(B,_extends$g({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)}))})),X=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const t=A("MenuContent",e.__scopeMenu),r=React__namespace.useRef(null),o=useComposedRefs(n,r);return t.isSubmenu?/*#__PURE__*/React__namespace.createElement(B,_extends$g({id:t.contentId,"aria-labelledby":t.triggerId},e,{ref:o,align:"start",side:"rtl"===t.dir?"left":"right",portalled:!0,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;t.isUsingKeyboardRef.current&&(null===(n=r.current)||void 0===n||n.focus()),e.preventDefault();},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:composeEventHandlers$1(e.onFocusOutside,(e=>{e.target!==t.trigger&&t.onOpenChange(!1);})),onEscapeKeyDown:composeEventHandlers$1(e.onEscapeKeyDown,t.onRootClose),onKeyDown:composeEventHandlers$1(e.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),r=y$1[t.dir].includes(e.key);var o;n&&r&&(t.onOpenChange(!1),null===(o=t.trigger)||void 0===o||o.focus(),e.preventDefault());}))})):null})),B=/*#__PURE__*/React__namespace.forwardRef(((e,t)=>{const{__scopeMenu:r,loop:u=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:x,onDismiss:_,disableOutsideScroll:y,allowPinchZoom:I,portalled:P,...D}=e,S=A("MenuContent",r),L=O(r),K=T(r),G=k$1(r),[U,V]=React__namespace.useState(null),X=React__namespace.useRef(null),B=useComposedRefs(t,X,S.onContentChange),Y=React__namespace.useRef(0),Z=React__namespace.useRef(""),z=React__namespace.useRef(0),H=React__namespace.useRef(null),W=React__namespace.useRef("right"),q=React__namespace.useRef(0),N=P?Portal:React__namespace.Fragment,Q=y?C:React__namespace.Fragment,$=y?{allowPinchZoom:I}:void 0,ee=e=>{var n,t;const r=Z.current+e,o=G().filter((e=>!e.disabled)),u=document.activeElement,c=null===(n=o.find((e=>e.ref.current===u)))||void 0===n?void 0:n.textValue,a=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0]))?n[0]:n,o=t?e.indexOf(t):-1;let u=(c=e,a=Math.max(o,0),c.map(((e,n)=>c[(a+n)%c.length])));var c,a;1===r.length&&(u=u.filter((e=>e!==t)));const i=u.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return i!==t?i:void 0}(o.map((e=>e.textValue)),r,c),i=null===(t=o.find((e=>e.textValue===a)))||void 0===t?void 0:t.ref.current;!function e(n){Z.current=n,window.clearTimeout(Y.current),""!==n&&(Y.current=window.setTimeout((()=>e("")),1e3));}(r),i&&setTimeout((()=>i.focus()));};React__namespace.useEffect((()=>()=>window.clearTimeout(Y.current)),[]),useFocusGuards();const ne=React__namespace.useCallback((e=>{var n,t;return W.current===(null===(n=H.current)||void 0===n?void 0:n.side)&&function(e,n){if(!n)return !1;return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,u=n.length-1;e<n.length;u=e++){const c=n[e].x,a=n[e].y,i=n[u].x,s=n[u].y;a>r!=s>r&&t<(i-c)*(r-a)/(s-a)+c&&(o=!o);}return o}({x:e.clientX,y:e.clientY},n)}(e,null===(t=H.current)||void 0===t?void 0:t.area)}),[]);return React__namespace.createElement(N,null,/*#__PURE__*/React__namespace.createElement(Q,$,/*#__PURE__*/React__namespace.createElement(F,{scope:r,searchRef:Z,onItemEnter:React__namespace.useCallback((e=>{ne(e)&&e.preventDefault();}),[ne]),onItemLeave:React__namespace.useCallback((e=>{var n;ne(e)||(null===(n=X.current)||void 0===n||n.focus(),V(null));}),[ne]),onTriggerLeave:React__namespace.useCallback((e=>{ne(e)&&e.preventDefault();}),[ne]),pointerGraceTimerRef:z,onPointerGraceIntentChange:React__namespace.useCallback((e=>{H.current=e;}),[])},/*#__PURE__*/React__namespace.createElement(FocusScope,{asChild:!0,trapped:i,onMountAutoFocus:composeEventHandlers$1(s,(e=>{var n;e.preventDefault(),null===(n=X.current)||void 0===n||n.focus();})),onUnmountAutoFocus:l},/*#__PURE__*/React__namespace.createElement(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:x,onDismiss:_},/*#__PURE__*/React__namespace.createElement(Root$7,_extends$g({asChild:!0},K,{dir:S.dir,orientation:"vertical",loop:u,currentTabStopId:U,onCurrentTabStopIdChange:V,onEntryFocus:e=>{S.isUsingKeyboardRef.current||e.preventDefault();}}),/*#__PURE__*/React__namespace.createElement(Content$4,_extends$g({role:"menu","aria-orientation":"vertical","data-state":j(S.open),dir:S.dir},L,D,{ref:B,style:{outline:"none",...D.style},onKeyDown:composeEventHandlers$1(D.onKeyDown,(e=>{const n=e.target,t=e.currentTarget.contains(n),r=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&o&&ee(e.key));const u=X.current;if(e.target!==u)return;if(!R.includes(e.key))return;e.preventDefault();const c=G().filter((e=>!e.disabled)).map((e=>e.ref.current));b$1.includes(e.key)&&c.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(c);})),onBlur:composeEventHandlers$1(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(Y.current),Z.current="");})),onPointerMove:composeEventHandlers$1(e.onPointerMove,J((e=>{const n=e.target,t=q.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>q.current?"right":"left";W.current=n,q.current=e.clientX;}})))}))))))))}));const MenuGroup=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return React__namespace.createElement(Primitive.div,_extends$g({role:"group"},r,{ref:n}))}));const MenuLabel=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return React__namespace.createElement(Primitive.div,_extends$g({},r,{ref:n}))}));const MenuItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{disabled:t=!1,onSelect:r,...o}=e,u=React__namespace.useRef(null),c=A("MenuItem",e.__scopeMenu),a=K("MenuItem",e.__scopeMenu),i=useComposedRefs(n,u),s=React__namespace.useRef(!1);return React__namespace.createElement(Y,_extends$g({},o,{ref:i,disabled:t,onClick:composeEventHandlers$1(e.onClick,(()=>{const e=u.current;if(!t&&e){const n=new Event("menu.itemSelect",{bubbles:!0,cancelable:!0});e.addEventListener("menu.itemSelect",(e=>null==r?void 0:r(e)),{once:!0}),e.dispatchEvent(n),n.defaultPrevented?s.current=!1:c.onRootClose();}})),onPointerDown:n=>{var t;null===(t=e.onPointerDown)||void 0===t||t.call(e,n),s.current=!0;},onPointerUp:composeEventHandlers$1(e.onPointerUp,(e=>{var n;s.current||null===(n=e.currentTarget)||void 0===n||n.click();})),onKeyDown:composeEventHandlers$1(e.onKeyDown,(e=>{const n=""!==a.searchRef.current;t||n&&" "===e.key||x$1.includes(e.key)&&(e.currentTarget.click(),e.preventDefault());}))}))}));const Y=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,disabled:r=!1,textValue:u,...c}=e,a=K("MenuItem",t),i=T(t),l=React__namespace.useRef(null),d=useComposedRefs(n,l),[p,f]=React__namespace.useState("");return React__namespace.useEffect((()=>{const e=l.current;var n;e&&f((null!==(n=e.textContent)&&void 0!==n?n:"").trim());}),[c.children]),/*#__PURE__*/React__namespace.createElement(I.ItemSlot,{scope:t,disabled:r,textValue:null!=u?u:p},/*#__PURE__*/React__namespace.createElement(Item$2,_extends$g({asChild:!0},i,{focusable:!r}),/*#__PURE__*/React__namespace.createElement(Primitive.div,_extends$g({role:"menuitem","aria-disabled":r||void 0,"data-disabled":r?"":void 0},c,{ref:d,onPointerMove:composeEventHandlers$1(e.onPointerMove,J((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus();}}))),onPointerLeave:composeEventHandlers$1(e.onPointerLeave,J((e=>a.onItemLeave(e))))}))))}));const MenuCheckboxItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{checked:t=!1,onCheckedChange:r,...o}=e;return React__namespace.createElement(H,{scope:e.__scopeMenu,checked:t},/*#__PURE__*/React__namespace.createElement(MenuItem,_extends$g({role:"menuitemcheckbox","aria-checked":t},o,{ref:n,"data-state":q(t),onSelect:composeEventHandlers$1(o.onSelect,(()=>null==r?void 0:r(!t)),{checkForDefaultPrevented:!1})})))}));const[Z,z]=D$1("MenuRadioGroup",{value:void 0,onValueChange:()=>{}});const MenuRadioGroup=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{value:r,onValueChange:o,...u}=e,c=useCallbackRef$1(o);return React__namespace.createElement(Z,{scope:e.__scopeMenu,value:r,onValueChange:c},/*#__PURE__*/React__namespace.createElement(MenuGroup,_extends$g({},u,{ref:n})))}));const MenuRadioItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{value:t,...r}=e,o=z("MenuRadioItem",e.__scopeMenu),u=t===o.value;return React__namespace.createElement(H,{scope:e.__scopeMenu,checked:u},/*#__PURE__*/React__namespace.createElement(MenuItem,_extends$g({role:"menuitemradio","aria-checked":u},r,{ref:n,"data-state":q(u),onSelect:composeEventHandlers$1(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,t)}),{checkForDefaultPrevented:!1})})))}));const[H,W]=D$1("MenuItemIndicator",{checked:!1});const MenuItemIndicator=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,u=W("MenuItemIndicator",t);return React__namespace.createElement(Presence,{present:r||u.checked},/*#__PURE__*/React__namespace.createElement(Primitive.span,_extends$g({},o,{ref:n,"data-state":q(u.checked)})))}));const MenuArrow=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=O(t);return React__namespace.createElement(Arrow$4,_extends$g({},o,r,{ref:n}))}));function j(e){return e?"open":"closed"}function q(e){return e?"checked":"unchecked"}function J(e){return n=>"mouse"===n.pointerType?e(n):void 0}const Root$4=Menu;const Sub=MenuSub;const Anchor=MenuAnchor;const Content$3=MenuContent;const Group$1=MenuGroup;const Label$1=MenuLabel;const Item$1=MenuItem;const CheckboxItem$1=MenuCheckboxItem;const RadioGroup$1=MenuRadioGroup;const RadioItem$1=MenuRadioItem;const ItemIndicator$1=MenuItemIndicator;const Arrow$3=MenuArrow;
|
|
31952
32102
|
|
|
31953
|
-
const[s,i]=createContextScope("DropdownMenu",[S]);const l=S(),[m,w$1]=s("DropdownMenu");const DropdownMenu=e=>{const{__scopeDropdownMenu:n,children:r,open:p,defaultOpen:d,onOpenChange:a}=e,s=M("DropdownMenu",n),i=l(n),[w=!1,D]=useControllableState({prop:p,defaultProp:d,onChange:a}),g=React__namespace.useCallback((()=>D((e=>!e))),[D]);return s.isInsideContent?/*#__PURE__*/React__namespace.createElement(m,{scope:n,isRootMenu:!1,open:w,onOpenChange:D,onOpenToggle:g},/*#__PURE__*/React__namespace.createElement(Sub,_extends$
|
|
32103
|
+
const[s,i]=createContextScope("DropdownMenu",[S]);const l=S(),[m,w$1]=s("DropdownMenu");const DropdownMenu=e=>{const{__scopeDropdownMenu:n,children:r,open:p,defaultOpen:d,onOpenChange:a}=e,s=M("DropdownMenu",n),i=l(n),[w=!1,D]=useControllableState({prop:p,defaultProp:d,onChange:a}),g=React__namespace.useCallback((()=>D((e=>!e))),[D]);return s.isInsideContent?/*#__PURE__*/React__namespace.createElement(m,{scope:n,isRootMenu:!1,open:w,onOpenChange:D,onOpenToggle:g},/*#__PURE__*/React__namespace.createElement(Sub,_extends$g({},i,{open:w,onOpenChange:D}),r)):/*#__PURE__*/React__namespace.createElement(f,_extends$g({},e,{open:w,onOpenChange:D,onOpenToggle:g}),r)};const f=n=>{const{__scopeDropdownMenu:r,children:t,dir:p,open:d,onOpenChange:a,onOpenToggle:s,modal:i=!0}=n,w=l(r),f=React__namespace.useRef(null);return React__namespace.createElement(m,{scope:r,isRootMenu:!0,triggerId:useId(),triggerRef:f,contentId:useId(),open:d,onOpenChange:a,onOpenToggle:s,modal:i},/*#__PURE__*/React__namespace.createElement(Root$4,_extends$g({},w,{open:d,onOpenChange:a,dir:p,modal:i}),t))};const DropdownMenuTrigger=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,disabled:p=!1,...s}=e,i=w$1("DropdownMenuTrigger",t),m=l(t);return i.isRootMenu?/*#__PURE__*/React__namespace.createElement(Anchor,_extends$g({asChild:!0},m),/*#__PURE__*/React__namespace.createElement(Primitive.button,_extends$g({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":!!i.open||void 0,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":p?"":void 0,disabled:p},s,{ref:composeRefs(n,i.triggerRef),onPointerDown:composeEventHandlers$1(e.onPointerDown,(e=>{p||0!==e.button||!1!==e.ctrlKey||(i.open||e.preventDefault(),i.onOpenToggle());})),onKeyDown:composeEventHandlers$1(e.onKeyDown,(e=>{p||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault());}))}))):null}));const[D,M]=s("DropdownMenuContent",{isInsideContent:!1});const DropdownMenuContent=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=w$1("DropdownMenuContent",r),d=l(r),a={...t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}};return React__namespace.createElement(D,{scope:r,isInsideContent:!0},p.isRootMenu?/*#__PURE__*/React__namespace.createElement(g$1,_extends$g({__scopeDropdownMenu:r},a,{ref:n})):/*#__PURE__*/React__namespace.createElement(Content$3,_extends$g({},d,a,{ref:n})))}));const g$1=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,portalled:t=!0,...p}=e,d=w$1("DropdownMenuContent",r),s=l(r),i=React__namespace.useRef(!1);return d.isRootMenu?/*#__PURE__*/React__namespace.createElement(Content$3,_extends$g({id:d.contentId,"aria-labelledby":d.triggerId},s,p,{ref:n,portalled:t,onCloseAutoFocus:composeEventHandlers$1(e.onCloseAutoFocus,(e=>{var o;i.current||null===(o=d.triggerRef.current)||void 0===o||o.focus(),i.current=!1,e.preventDefault();})),onInteractOutside:composeEventHandlers$1(e.onInteractOutside,(e=>{const o=e.detail.originalEvent,n=0===o.button&&!0===o.ctrlKey,r=2===o.button||n;d.modal&&!r||(i.current=!0);}))})):null}));const DropdownMenuGroup=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(Group$1,_extends$g({},p,t,{ref:n}))}));const DropdownMenuLabel=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(Label$1,_extends$g({},p,t,{ref:n}))}));const DropdownMenuItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(Item$1,_extends$g({},p,t,{ref:n}))}));const DropdownMenuCheckboxItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(CheckboxItem$1,_extends$g({},p,t,{ref:n}))}));const DropdownMenuRadioGroup=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(RadioGroup$1,_extends$g({},p,t,{ref:n}))}));const DropdownMenuRadioItem=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(RadioItem$1,_extends$g({},p,t,{ref:n}))}));const DropdownMenuItemIndicator=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(ItemIndicator$1,_extends$g({},p,t,{ref:n}))}));const DropdownMenuArrow=/*#__PURE__*/React__namespace.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l(r);return React__namespace.createElement(Arrow$3,_extends$g({},p,t,{ref:n}))}));const Root$3=DropdownMenu;const Trigger$2=DropdownMenuTrigger;const Content$2=DropdownMenuContent;const Group=DropdownMenuGroup;const Label=DropdownMenuLabel;const Item=DropdownMenuItem;const CheckboxItem=DropdownMenuCheckboxItem;const RadioGroup=DropdownMenuRadioGroup;const RadioItem=DropdownMenuRadioItem;const ItemIndicator=DropdownMenuItemIndicator;const Arrow$2=DropdownMenuArrow;
|
|
31954
32104
|
|
|
31955
32105
|
var css_248z$8 = ":root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n:root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n:root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, \"avenir next\", avenir, helvetica, \"helvetica neue\", ubuntu, roboto, noto, \"segoe ui\", arial, sans-serif;\n color: var(--slate12);\n margin: 0;\n font-size: 17px;\n}\n\nh1 {\n font-size: 3rem;\n}\n\nh2 {\n font-size: 2.25rem;\n}\n\nh3 {\n font-size: 1.5rem;\n}\n\nh4 {\n font-size: 1.25rem;\n}\n\nh5 {\n font-size: 1rem;\n}\n\nh6 {\n font-size: 0.875rem;\n}\n\nlabel {\n font-size: 1.125;\n color: var(--slate12);\n}\n\nli {\n font-size: 0.95rem;\n}\n\n.secondary {\n font-size: 0.875rem;\n color: var(--slate10);\n}\n\np,\nspan {\n color: var(--slate12);\n}\n\ninput::placeholder {\n color: var(--slate11);\n}\n\n.poll-select-content {\n display: flex;\n flex-direction: column;\n width: fit-content;\n background-color: white;\n border: 1px solid var(--grey3);\n border-radius: 4px;\n padding: 6px 4px;\n box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 4px;\n gap: 2px;\n}\n\n.poll-select-item {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n border-radius: 2px;\n padding: 2px 8px 2px 30px;\n transition: background-color 0.15s linear, color 0.15s linear;\n}\n\n.poll-select-item[data-state=checked] {\n background-color: var(--primary2);\n color: white;\n}\n\n.poll-select-item:focus-visible {\n background-color: var(--primary0);\n outline: solid 1px var(--primary);\n color: unset;\n outline-color: var(--primary);\n}\n\n.poll-select-item:hover {\n background-color: var(--primary0);\n cursor: pointer;\n color: unset;\n}\n\n.poll-separator {\n background-color: #d0d7de;\n height: 1px;\n width: 100%;\n margin: 4px 0;\n}";
|
|
31956
32106
|
styleInject(css_248z$8);
|
|
@@ -33736,6 +33886,21 @@ var FileInput = function (_a) {
|
|
|
33736
33886
|
React__default["default"].createElement("input", __assign$3({ type: "file", name: "file" }, getInputProps()))));
|
|
33737
33887
|
};
|
|
33738
33888
|
|
|
33889
|
+
var InputLabel = function (_a) {
|
|
33890
|
+
var helpText = _a.helpText, children = _a.children;
|
|
33891
|
+
return (React__default["default"].createElement("div", { style: {
|
|
33892
|
+
display: 'flex',
|
|
33893
|
+
flexDirection: 'column',
|
|
33894
|
+
width: 'fit-content',
|
|
33895
|
+
color: 'var(--primary)',
|
|
33896
|
+
fontSize: '0.75rem',
|
|
33897
|
+
textAlign: 'end',
|
|
33898
|
+
gap: 4
|
|
33899
|
+
} },
|
|
33900
|
+
children,
|
|
33901
|
+
helpText));
|
|
33902
|
+
};
|
|
33903
|
+
|
|
33739
33904
|
var logo = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMSIgdmlld0JveD0iMCAwIDEyMCAxMjEiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTY6Mjg3OSkiPgo8cGF0aCBkPSJNNzQuMTMyOSAxOS45MzVDNzEuMjU0NiAxOC4xNjQ0IDY3Ljc1OCAxNy4xNTg2IDY0LjIxMzggMTYuNjM3OUM2MC44ODM5IDE2LjI1MjcgNTkuMDY5NyAxNi4yNiA1NS44ODQyIDE2LjU2NTNDNTIuMjg2IDE3LjAyOTUgNDguODg2NiAxOC4xMjY5IDQ1LjgwMTIgMTkuNzQyMkwzOC45NzQ2IDI0LjYzMzRDMzUuMDMzNSAyOC4zODQ0IDMyLjEwNDcgMzMuMTg5OCAzMC42Mzk3IDM4LjU5NzdDMzAuNTQ0MyAzOC45NTAxIDMwLjI3MDMgMzkuMjI3MSAyOS45MTkxIDM5LjMyNjl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Y4LjQwNjdDNjIuNzgwMiA2OS45NDIxIDYxLjUzNTYgNzEuMTg2NyA2MC4wMDAzIDcxLjE4NjdDNTguNDY0OSA3MS4xODY3IDU3LjIyMDMgNjkuOTQyMSA1Ny4yMjAzIDY4LjQwNjdaTTYwLjAyNCA1MS4wMzE5QzU4LjQ4ODcgNTEuMDMxOSA1Ny4yNDQxIDUyLjI3NjUgNTcuMjQ0MSA1My44MTE5QzU3LjI0NDEgNTUuMzQ3MiA1OC40ODg3IDU2LjU5MTggNjAuMDI0IDU2LjU5MThDNjEuNTU5NCA1Ni41OTE4IDYyLjgwNCA1NS4zNDcyIDYyLjgwNCA1My44MTE5QzYyLjgwNCA1Mi4yNzY1IDYxLjU1OTQgNTEuMDMxOSA2MC4wMjQgNTEuMDMxOVoiIGZpbGw9IiMyNDI5MkUiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTY6Mjg3OSI+CjxyZWN0IHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAwLjQyNzk3OSkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4=';
|
|
33740
33905
|
|
|
33741
33906
|
var Logo = function () { return (React__default["default"].createElement("div", { style: {
|
|
@@ -33753,17 +33918,48 @@ var Logo = function () { return (React__default["default"].createElement("div",
|
|
|
33753
33918
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
33754
33919
|
} }))); };
|
|
33755
33920
|
|
|
33756
|
-
var css_248z$5 = ":root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n:root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, \"avenir next\", avenir, helvetica, \"helvetica neue\", ubuntu, roboto, noto, \"segoe ui\", arial, sans-serif;\n color: var(--slate12);\n margin: 0;\n font-size: 17px;\n}\n\nh1 {\n font-size: 3rem;\n}\n\nh2 {\n font-size: 2.25rem;\n}\n\nh3 {\n font-size: 1.5rem;\n}\n\nh4 {\n font-size: 1.25rem;\n}\n\nh5 {\n font-size: 1rem;\n}\n\nh6 {\n font-size: 0.875rem;\n}\n\nlabel {\n font-size: 1.125;\n color: var(--slate12);\n}\n\nli {\n font-size: 0.95rem;\n}\n\n.secondary {\n font-size: 0.875rem;\n color: var(--slate10);\n}\n\np,\nspan {\n color: var(--slate12);\n}\n\ninput::placeholder {\n color: var(--slate11);\n}\n\n.btn-group {\n width: fit-content;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\n.btn-group:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.btn-group-disabled:hover {\n box-shadow: none;\n}\n\n.btn-group input {\n width: 100%;\n}\n\n.btn-group input::placeholder {\n color: var(--primary1);\n}\n\n.btn-group * {\n background-color: var(--primary);\n color: white;\n transition: background-color 0.125s ease-in-out;\n}\n\n.btn-group-disabled * {\n background-color: var(--slate5);\n border-color: var(--slate11) !important;\n color: var(--slate11);\n cursor: default !important;\n}\n\n.btn-group i,\n.btn-group svg {\n
|
|
33921
|
+
var css_248z$5 = ":root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n:root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, \"avenir next\", avenir, helvetica, \"helvetica neue\", ubuntu, roboto, noto, \"segoe ui\", arial, sans-serif;\n color: var(--slate12);\n margin: 0;\n font-size: 17px;\n}\n\nh1 {\n font-size: 3rem;\n}\n\nh2 {\n font-size: 2.25rem;\n}\n\nh3 {\n font-size: 1.5rem;\n}\n\nh4 {\n font-size: 1.25rem;\n}\n\nh5 {\n font-size: 1rem;\n}\n\nh6 {\n font-size: 0.875rem;\n}\n\nlabel {\n font-size: 1.125;\n color: var(--slate12);\n}\n\nli {\n font-size: 0.95rem;\n}\n\n.secondary {\n font-size: 0.875rem;\n color: var(--slate10);\n}\n\np,\nspan {\n color: var(--slate12);\n}\n\ninput::placeholder {\n color: var(--slate11);\n}\n\n.btn-group {\n width: fit-content;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\n.btn-group:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.btn-group-disabled:hover {\n box-shadow: none;\n}\n\n.btn-group input {\n width: 100%;\n}\n\n.btn-group input::placeholder {\n color: var(--primary1);\n}\n\n.btn-group * {\n background-color: var(--primary);\n color: white;\n transition: background-color 0.125s ease-in-out;\n}\n\n.btn-group-disabled * {\n background-color: var(--slate5);\n border-color: var(--slate11) !important;\n color: var(--slate11);\n cursor: default !important;\n}\n\n.btn-group i,\n.btn-group svg {\n background-color: rgba(0, 0, 0, 0);\n}\n\n.btn-group button,\n.btn-group input {\n display: flex;\n padding: 6px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: 1px solid var(--primary);\n border-left-color: #096dd9;\n transition: box-shadow 0.125s ease-in-out;\n}\n\n.btn-group button:active {\n box-shadow: inset 0px 0px 14px 14px #096dd9;\n}\n\n.btn-group button:first-child,\n.btn-group input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n border-left-color: var(--primary);\n}\n\n.btn-group button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n\n.btn-group button:not(:last-child),\n.btn-group input:not(:last-child) {\n border-right: none;\n}\n\n.btn-group button:focus-visible,\n.btn-group input:focus-visible {\n outline: none;\n}\n\n.btn-group button:focus,\n.btn-group input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.btn-group:after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.btn-group button:hover,\n.btn-group input:hover {\n background-color: var(--primary2);\n z-index: 11;\n}\n\n.btn-group-disabled:hover button:hover,\n.btn-group-disabled:hover input:hover {\n background-color: var(--slate5);\n}\n\n.options-content {\n font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);\n}";
|
|
33757
33922
|
styleInject(css_248z$5);
|
|
33758
33923
|
|
|
33759
|
-
|
|
33924
|
+
var SettingsButton = function (_a) {
|
|
33925
|
+
var onClick = _a.onClick, label = _a.label, options = _a.options, asButtons = _a.asButtons, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.triggerIcon, triggerIcon = _c === void 0 ? React__default["default"].createElement(CaretDownFill$1, null) : _c, helpText = _a.helpText
|
|
33926
|
+
// prefix
|
|
33927
|
+
;
|
|
33928
|
+
return (React__default["default"].createElement(ConditionalWrapper, { condition: typeof helpText !== 'undefined' || disabled, wrapper: function (children) { return React__default["default"].createElement(InputLabel, { helpText: disabled ? 'Enabled in Pollination CAD plugins.' : helpText }, children); } },
|
|
33929
|
+
React__default["default"].createElement("div", { className: "btn-group ".concat(disabled && 'btn-group-disabled') },
|
|
33930
|
+
React__default["default"].createElement("button", { type: 'button', onClick: onClick, disabled: disabled, style: {
|
|
33931
|
+
flex: 1,
|
|
33932
|
+
} },
|
|
33933
|
+
React__default["default"].createElement(Logo, null),
|
|
33934
|
+
label),
|
|
33935
|
+
options && options.length
|
|
33936
|
+
&& React__default["default"].createElement(React__default["default"].Fragment, null, asButtons ?
|
|
33937
|
+
React__default["default"].createElement(React__default["default"].Fragment, null, options.reduce(function (p, c) { return __spreadArray$2(__spreadArray$2([], p, true), c.options, true); }, []).map(function (o) {
|
|
33938
|
+
var _a;
|
|
33939
|
+
return React__default["default"].createElement("button", { key: o.id, style: {
|
|
33940
|
+
boxShadow: !disabled && o.checked ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
33941
|
+
}, onClick: function (e) { return o.onSelect && o.onSelect(o); } }, (_a = o.icon) !== null && _a !== void 0 ? _a : o.label);
|
|
33942
|
+
}))
|
|
33943
|
+
:
|
|
33944
|
+
React__default["default"].createElement(Dropdown, { trigger: (React__default["default"].createElement("button", null, triggerIcon)), optionGroups: options, contentProps: {
|
|
33945
|
+
align: 'end',
|
|
33946
|
+
style: {
|
|
33947
|
+
fontSize: 'clamp(0.65rem, 8vw - 0.75rem, 0.85rem)',
|
|
33948
|
+
},
|
|
33949
|
+
}, disabled: disabled })))));
|
|
33950
|
+
};
|
|
33951
|
+
|
|
33952
|
+
var css_248z$4 = ":root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n:root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.text-input {\n width: 100%;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n border: 1px solid var(--primary);\n}\n\n.text-input:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.text-input-disabled:hover {\n box-shadow: none;\n}\n\n.text-input input {\n width: 100%;\n color: var(--primary);\n}\n\n.text-input input::placeholder {\n color: var(--slate10);\n}\n\n.text-input i svg {\n fill: var(--primary);\n}\n\n.text-input button,\n.text-input input {\n display: flex;\n padding: 6px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: none;\n}\n\n.text-input button:first-child,\n.text-input input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.text-input button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.text-input button:not(:last-child),\n.text-input input:not(:last-child) {\n border-right: none;\n}\n\n.text-input button:focus-visible,\n.text-input input:focus-visible {\n outline: none;\n}\n\n.text-input button:focus,\n.text-input input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.text-input:after {\n content: \"\";\n clear: both;\n display: table;\n}";
|
|
33953
|
+
styleInject(css_248z$4);
|
|
33954
|
+
|
|
33955
|
+
const VisuallyHidden=/*#__PURE__*/React__namespace.forwardRef(((i,o)=>/*#__PURE__*/React__namespace.createElement(Primitive.span,_extends$g({},i,{ref:o,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...i.style}}))));const Root$2=VisuallyHidden;
|
|
33760
33956
|
|
|
33761
33957
|
function usePrevious(r){const u=React__namespace.useRef({value:r,previous:r});return React__namespace.useMemo((()=>(u.current.value!==r&&(u.current.previous=u.current.value,u.current.value=r),u.current.previous)),[r])}
|
|
33762
33958
|
|
|
33763
|
-
const[w,x]=createContextScope("Tooltip",[l$1]);const g=l$1(),E=700,[v,b]=w("TooltipProvider",{isOpenDelayed:!0,delayDuration:E,onOpen:()=>{},onClose:()=>{}});const[y,_]=w("Tooltip");const Tooltip$1=o=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a=!1,onOpenChange:l,delayDuration:c}=o,s=b("Tooltip",t),u=g(t),[d,m]=React__namespace.useState(null),f=useId(),C=React__namespace.useRef(0),w=null!=c?c:s.delayDuration,x=React__namespace.useRef(!1),{onOpen:E,onClose:v}=s,[_=!1,h]=useControllableState({prop:i,defaultProp:a,onChange:e=>{e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),E()),null==l||l(e);}}),k=React__namespace.useMemo((()=>_?x.current?"delayed-open":"instant-open":"closed"),[_]),D=React__namespace.useCallback((()=>{window.clearTimeout(C.current),x.current=!1,h(!0);}),[h]),O=React__namespace.useCallback((()=>{window.clearTimeout(C.current),C.current=window.setTimeout((()=>{x.current=!0,h(!0);}),w);}),[w,h]);return React__namespace.useEffect((()=>()=>window.clearTimeout(C.current)),[]),/*#__PURE__*/React__namespace.createElement(Root$5,u,/*#__PURE__*/React__namespace.createElement(y,{scope:t,contentId:f,open:_,stateAttribute:k,trigger:d,onTriggerChange:m,onTriggerEnter:React__namespace.useCallback((()=>{s.isOpenDelayed?O():D();}),[s.isOpenDelayed,O,D]),onOpen:React__namespace.useCallback(D,[D]),onClose:React__namespace.useCallback((()=>{window.clearTimeout(C.current),h(!1),v();}),[h,v])},r))};const TooltipTrigger=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>{const{__scopeTooltip:t,...r}=e,i=_("TooltipTrigger",t),l=g(t),c=useComposedRefs(o,i.onTriggerChange),s=React__namespace.useRef(!1),u=React__namespace.useCallback((()=>s.current=!1),[]);return React__namespace.useEffect((()=>()=>document.removeEventListener("mouseup",u)),[u]),/*#__PURE__*/React__namespace.createElement(Anchor$1,_extends$
|
|
33959
|
+
const[w,x]=createContextScope("Tooltip",[l$1]);const g=l$1(),E=700,[v,b]=w("TooltipProvider",{isOpenDelayed:!0,delayDuration:E,onOpen:()=>{},onClose:()=>{}});const[y,_]=w("Tooltip");const Tooltip$1=o=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a=!1,onOpenChange:l,delayDuration:c}=o,s=b("Tooltip",t),u=g(t),[d,m]=React__namespace.useState(null),f=useId(),C=React__namespace.useRef(0),w=null!=c?c:s.delayDuration,x=React__namespace.useRef(!1),{onOpen:E,onClose:v}=s,[_=!1,h]=useControllableState({prop:i,defaultProp:a,onChange:e=>{e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),E()),null==l||l(e);}}),k=React__namespace.useMemo((()=>_?x.current?"delayed-open":"instant-open":"closed"),[_]),D=React__namespace.useCallback((()=>{window.clearTimeout(C.current),x.current=!1,h(!0);}),[h]),O=React__namespace.useCallback((()=>{window.clearTimeout(C.current),C.current=window.setTimeout((()=>{x.current=!0,h(!0);}),w);}),[w,h]);return React__namespace.useEffect((()=>()=>window.clearTimeout(C.current)),[]),/*#__PURE__*/React__namespace.createElement(Root$5,u,/*#__PURE__*/React__namespace.createElement(y,{scope:t,contentId:f,open:_,stateAttribute:k,trigger:d,onTriggerChange:m,onTriggerEnter:React__namespace.useCallback((()=>{s.isOpenDelayed?O():D();}),[s.isOpenDelayed,O,D]),onOpen:React__namespace.useCallback(D,[D]),onClose:React__namespace.useCallback((()=>{window.clearTimeout(C.current),h(!1),v();}),[h,v])},r))};const TooltipTrigger=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>{const{__scopeTooltip:t,...r}=e,i=_("TooltipTrigger",t),l=g(t),c=useComposedRefs(o,i.onTriggerChange),s=React__namespace.useRef(!1),u=React__namespace.useCallback((()=>s.current=!1),[]);return React__namespace.useEffect((()=>()=>document.removeEventListener("mouseup",u)),[u]),/*#__PURE__*/React__namespace.createElement(Anchor$1,_extends$g({asChild:!0},l),/*#__PURE__*/React__namespace.createElement(Primitive.button,_extends$g({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:c,onMouseEnter:composeEventHandlers$1(e.onMouseEnter,i.onTriggerEnter),onMouseLeave:composeEventHandlers$1(e.onMouseLeave,i.onClose),onMouseDown:composeEventHandlers$1(e.onMouseDown,(()=>{i.onClose(),s.current=!0,document.addEventListener("mouseup",u,{once:!0});})),onFocus:composeEventHandlers$1(e.onFocus,(()=>{s.current||i.onOpen();})),onBlur:composeEventHandlers$1(e.onBlur,i.onClose),onClick:composeEventHandlers$1(e.onClick,(e=>{0===e.detail&&i.onClose();}))})))}));const TooltipContent=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>{const{forceMount:t,...r}=e,n=_("TooltipContent",e.__scopeTooltip);return React__namespace.createElement(Presence,{present:t||n.open},/*#__PURE__*/React__namespace.createElement(h,_extends$g({ref:o},r)))}));const h=/*#__PURE__*/React__namespace.forwardRef(((e,i)=>{const{__scopeTooltip:a,children:l,"aria-label":c,portalled:s=!0,...p}=e,d=_("TooltipContent",a),m=g(a),f=s?Portal:React__namespace.Fragment,{onClose:w}=d;return useEscapeKeydown((()=>w())),React__namespace.useEffect((()=>(document.addEventListener("tooltip.open",w),()=>document.removeEventListener("tooltip.open",w))),[w]),/*#__PURE__*/React__namespace.createElement(f,null,/*#__PURE__*/React__namespace.createElement(k,{__scopeTooltip:a}),/*#__PURE__*/React__namespace.createElement(Content$4,_extends$g({"data-state":d.stateAttribute},m,p,{ref:i,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),/*#__PURE__*/React__namespace.createElement(Slottable,null,l),/*#__PURE__*/React__namespace.createElement(Root$2,{id:d.contentId,role:"tooltip"},c||l)))}));const TooltipArrow=/*#__PURE__*/React__namespace.forwardRef(((e,o)=>{const{__scopeTooltip:t,...r}=e,i=g(t);return React__namespace.createElement(Arrow$4,_extends$g({},i,r,{ref:o}))}));function k(e){const{__scopeTooltip:o}=e,t=_("CheckTriggerMoved",o),r=useRect(t.trigger),n=null==r?void 0:r.left,i=usePrevious(n),a=null==r?void 0:r.top,l=usePrevious(a),u=t.onClose;return React__namespace.useEffect((()=>{(void 0!==i&&i!==n||void 0!==l&&l!==a)&&u();}),[u,i,l,n,a]),null}const Root$1=Tooltip$1;const Trigger$1=TooltipTrigger;const Content$1=TooltipContent;const Arrow$1=TooltipArrow;
|
|
33764
33960
|
|
|
33765
|
-
var css_248z$
|
|
33766
|
-
styleInject(css_248z$
|
|
33961
|
+
var css_248z$3 = ":root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n:root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, \"avenir next\", avenir, helvetica, \"helvetica neue\", ubuntu, roboto, noto, \"segoe ui\", arial, sans-serif;\n color: var(--slate12);\n margin: 0;\n font-size: 17px;\n}\n\nh1 {\n font-size: 3rem;\n}\n\nh2 {\n font-size: 2.25rem;\n}\n\nh3 {\n font-size: 1.5rem;\n}\n\nh4 {\n font-size: 1.25rem;\n}\n\nh5 {\n font-size: 1rem;\n}\n\nh6 {\n font-size: 0.875rem;\n}\n\nlabel {\n font-size: 1.125;\n color: var(--slate12);\n}\n\nli {\n font-size: 0.95rem;\n}\n\n.secondary {\n font-size: 0.875rem;\n color: var(--slate10);\n}\n\np,\nspan {\n color: var(--slate12);\n}\n\ninput::placeholder {\n color: var(--slate11);\n}\n\n.tooltip-content {\n border-radius: 4px;\n padding: 6px 10px;\n background-color: white;\n font-size: 0.85rem;\n font-weight: 500;\n border: 1px solid var(--slate8);\n box-shadow: hsla(206deg, 22%, 7%, 0.35) 0px 10px 38px -10px, hsla(206deg, 22%, 7%, 0.2) 0px 10px 20px -15px;\n}";
|
|
33962
|
+
styleInject(css_248z$3);
|
|
33767
33963
|
|
|
33768
33964
|
var Root = Root$1, Trigger = Trigger$1, Content = Content$1, Arrow = Arrow$1;
|
|
33769
33965
|
var Tooltip = function (_a) {
|
|
@@ -33779,7 +33975,7 @@ var Tooltip = function (_a) {
|
|
|
33779
33975
|
padding: 0,
|
|
33780
33976
|
border: 'none',
|
|
33781
33977
|
} }, children),
|
|
33782
|
-
React__default["default"].createElement(Content, { className: "tooltip-content", side: side, align: "center", alignOffset: -5, style: __assign$3({ zIndex: 9999, maxWidth:
|
|
33978
|
+
React__default["default"].createElement(Content, { className: "tooltip-content", side: side, align: "center", alignOffset: -5, style: __assign$3({ zIndex: 9999, maxWidth: 400, flexWrap: 'wrap' }, style) },
|
|
33783
33979
|
content,
|
|
33784
33980
|
React__default["default"].createElement(Arrow, { style: {
|
|
33785
33981
|
fill: 'white',
|
|
@@ -33793,27 +33989,6 @@ var Tooltip = function (_a) {
|
|
|
33793
33989
|
}, offset: 6 }))));
|
|
33794
33990
|
};
|
|
33795
33991
|
|
|
33796
|
-
var SettingsButton = function (_a) {
|
|
33797
|
-
var onClick = _a.onClick, label = _a.label, options = _a.options, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.triggerIcon, triggerIcon = _c === void 0 ? React__default["default"].createElement(CaretDownFill$1, null) : _c;
|
|
33798
|
-
return (React__default["default"].createElement(ConditionalWrapper, { condition: disabled, wrapper: function (children) { return React__default["default"].createElement(Tooltip, { content: "Available in Pollination CAD Plugins" }, children); } },
|
|
33799
|
-
React__default["default"].createElement("div", { className: "btn-group ".concat(disabled && 'btn-group-disabled') },
|
|
33800
|
-
React__default["default"].createElement("button", { onClick: onClick, disabled: disabled, style: {
|
|
33801
|
-
flex: 1,
|
|
33802
|
-
} },
|
|
33803
|
-
React__default["default"].createElement(Logo, null),
|
|
33804
|
-
label),
|
|
33805
|
-
options && options.length
|
|
33806
|
-
&& (React__default["default"].createElement(Dropdown, { trigger: (React__default["default"].createElement("button", null, triggerIcon)), optionGroups: options, contentProps: {
|
|
33807
|
-
align: 'end',
|
|
33808
|
-
style: {
|
|
33809
|
-
fontSize: 'clamp(0.65rem, 8vw - 0.75rem, 0.85rem)',
|
|
33810
|
-
},
|
|
33811
|
-
}, disabled: disabled })))));
|
|
33812
|
-
};
|
|
33813
|
-
|
|
33814
|
-
var css_248z$3 = ":root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n:root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.text-input {\n width: 100%;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n border: 1px solid var(--primary);\n}\n\n.text-input:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.text-input-disabled:hover {\n box-shadow: none;\n}\n\n.text-input input {\n width: 100%;\n color: var(--primary);\n}\n\n.text-input input::placeholder {\n color: var(--slate10);\n}\n\n.text-input i svg {\n fill: var(--primary);\n}\n\n.text-input button,\n.text-input input {\n display: flex;\n padding: 6px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: none;\n}\n\n.text-input button:first-child,\n.text-input input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.text-input button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.text-input button:not(:last-child),\n.text-input input:not(:last-child) {\n border-right: none;\n}\n\n.text-input button:focus-visible,\n.text-input input:focus-visible {\n outline: none;\n}\n\n.text-input button:focus,\n.text-input input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.text-input:after {\n content: \"\";\n clear: both;\n display: table;\n}";
|
|
33815
|
-
styleInject(css_248z$3);
|
|
33816
|
-
|
|
33817
33992
|
var css_248z$2 = ":root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n:root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n:root {\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, \"avenir next\", avenir, helvetica, \"helvetica neue\", ubuntu, roboto, noto, \"segoe ui\", arial, sans-serif;\n color: var(--slate12);\n margin: 0;\n font-size: 17px;\n}\n\nh1 {\n font-size: 3rem;\n}\n\nh2 {\n font-size: 2.25rem;\n}\n\nh3 {\n font-size: 1.5rem;\n}\n\nh4 {\n font-size: 1.25rem;\n}\n\nh5 {\n font-size: 1rem;\n}\n\nh6 {\n font-size: 0.875rem;\n}\n\nlabel {\n font-size: 1.125;\n color: var(--slate12);\n}\n\nli {\n font-size: 0.95rem;\n}\n\n.secondary {\n font-size: 0.875rem;\n color: var(--slate10);\n}\n\np,\nspan {\n color: var(--slate12);\n}\n\ninput::placeholder {\n color: var(--slate11);\n}";
|
|
33818
33993
|
styleInject(css_248z$2);
|
|
33819
33994
|
|
|
@@ -33825,14 +34000,21 @@ var AuthUser = function (config) {
|
|
|
33825
34000
|
: authUser.name.slice(0, 2).toUpperCase()) }));
|
|
33826
34001
|
};
|
|
33827
34002
|
|
|
34003
|
+
// Generated with util/create-component.js
|
|
34004
|
+
var GetModelActions$1;
|
|
34005
|
+
(function (GetModelActions) {
|
|
34006
|
+
GetModelActions["selection"] = "selection";
|
|
34007
|
+
GetModelActions["subscribe"] = "subscribe";
|
|
34008
|
+
})(GetModelActions$1 || (GetModelActions$1 = {}));
|
|
34009
|
+
|
|
33828
34010
|
var GetGeometry = function (_a) {
|
|
33829
|
-
var setParentState = _a.setParentState;
|
|
34011
|
+
var setParentState = _a.setParentState, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Get Geometry' : _b;
|
|
33830
34012
|
var subscribeRef = React.useRef();
|
|
33831
|
-
var
|
|
33832
|
-
var
|
|
33833
|
-
var
|
|
34013
|
+
var _c = React.useState(performance.now().toString()), key = _c[0], setKey = _c[1];
|
|
34014
|
+
var _d = React.useState(false), selection = _d[0], setSelection = _d[1];
|
|
34015
|
+
var _e = React.useState(false), subscribe = _e[0], setSubscribe = _e[1];
|
|
33834
34016
|
// pollination-react-io hooks
|
|
33835
|
-
var
|
|
34017
|
+
var _f = useGetGeometry(), host = _f.host, geometry = _f.geometry, getGeometry = _f.getGeometry;
|
|
33836
34018
|
React.useEffect(function () {
|
|
33837
34019
|
if (!geometry || !setParentState)
|
|
33838
34020
|
return;
|
|
@@ -33864,24 +34046,28 @@ var GetGeometry = function (_a) {
|
|
|
33864
34046
|
if (!getGeometry)
|
|
33865
34047
|
return;
|
|
33866
34048
|
getGeometry(key, selection, true);
|
|
33867
|
-
}, disabled: typeof getGeometry === 'undefined',
|
|
34049
|
+
}, disabled: typeof getGeometry === 'undefined',
|
|
34050
|
+
// @ts-ignore
|
|
34051
|
+
options: host !== 'revit' ? [{
|
|
33868
34052
|
options: [
|
|
33869
34053
|
{
|
|
33870
34054
|
type: 'checkbox',
|
|
33871
|
-
id:
|
|
34055
|
+
id: GetModelActions$1.subscribe,
|
|
33872
34056
|
label: 'Subscribe',
|
|
33873
34057
|
disabled: !getGeometry,
|
|
33874
34058
|
checked: subscribe,
|
|
34059
|
+
icon: React__default["default"].createElement(ArrowRepeat$1, { size: 16 }),
|
|
33875
34060
|
onSelect: function () {
|
|
33876
34061
|
setSubscribe(function (state) { return !state; });
|
|
33877
34062
|
},
|
|
33878
34063
|
},
|
|
33879
34064
|
{
|
|
33880
34065
|
type: 'checkbox',
|
|
33881
|
-
id:
|
|
34066
|
+
id: GetModelActions$1.selection,
|
|
33882
34067
|
label: 'Select',
|
|
33883
34068
|
disabled: !getGeometry,
|
|
33884
34069
|
checked: selection,
|
|
34070
|
+
icon: React__default["default"].createElement(BoundingBox$1, { size: 16 }),
|
|
33885
34071
|
onSelect: function () {
|
|
33886
34072
|
// reset key when "select" option is deselected
|
|
33887
34073
|
if (selection) {
|
|
@@ -33890,21 +34076,28 @@ var GetGeometry = function (_a) {
|
|
|
33890
34076
|
setSelection(function (state) { return !state; });
|
|
33891
34077
|
},
|
|
33892
34078
|
},
|
|
33893
|
-
]
|
|
33894
|
-
|
|
33895
|
-
|
|
33896
|
-
|
|
33897
|
-
|
|
34079
|
+
].filter(function (o) {
|
|
34080
|
+
if (!optionsConfig)
|
|
34081
|
+
return true;
|
|
34082
|
+
return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
|
|
34083
|
+
}),
|
|
34084
|
+
}] : undefined, asButtons: true, label: buttonLabel, helpText: "Get ".concat(selection ? 'selected ' : '', " geometry").concat(subscribe ? ' continuously' : '', ".") }));
|
|
33898
34085
|
};
|
|
33899
34086
|
|
|
34087
|
+
var GetModelActions;
|
|
34088
|
+
(function (GetModelActions) {
|
|
34089
|
+
GetModelActions["selection"] = "selection";
|
|
34090
|
+
GetModelActions["subscribe"] = "subscribe";
|
|
34091
|
+
})(GetModelActions || (GetModelActions = {}));
|
|
34092
|
+
|
|
33900
34093
|
var GetModel = function (_a) {
|
|
33901
|
-
var setParentState = _a.setParentState;
|
|
34094
|
+
var setParentState = _a.setParentState, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Get Model' : _b;
|
|
33902
34095
|
var subscribeRef = React.useRef();
|
|
33903
|
-
var
|
|
33904
|
-
var
|
|
33905
|
-
var
|
|
34096
|
+
var _c = React.useState(performance.now().toString()), key = _c[0], setKey = _c[1];
|
|
34097
|
+
var _d = React.useState(false), selection = _d[0], setSelection = _d[1];
|
|
34098
|
+
var _e = React.useState(false), subscribe = _e[0], setSubscribe = _e[1];
|
|
33906
34099
|
// pollination-react-io hooks
|
|
33907
|
-
var
|
|
34100
|
+
var _f = useGetHbjson(), host = _f.host, hbjson = _f.hbjson, getHbjson = _f.getHbjson;
|
|
33908
34101
|
React.useEffect(function () {
|
|
33909
34102
|
if (!hbjson || !setParentState)
|
|
33910
34103
|
return;
|
|
@@ -33953,24 +34146,28 @@ var GetModel = function (_a) {
|
|
|
33953
34146
|
if (!getHbjson)
|
|
33954
34147
|
return;
|
|
33955
34148
|
getHbjson(key, selection, true);
|
|
33956
|
-
}, disabled: !getHbjson,
|
|
34149
|
+
}, disabled: !getHbjson,
|
|
34150
|
+
// @ts-ignore
|
|
34151
|
+
options: host !== 'revit' ? [{
|
|
33957
34152
|
options: [
|
|
33958
34153
|
{
|
|
33959
34154
|
type: 'checkbox',
|
|
33960
|
-
id:
|
|
34155
|
+
id: GetModelActions.subscribe,
|
|
33961
34156
|
label: 'Auto Reload',
|
|
33962
34157
|
disabled: !getHbjson,
|
|
33963
34158
|
checked: subscribe,
|
|
34159
|
+
icon: React__default["default"].createElement(ArrowRepeat$1, { size: 16 }),
|
|
33964
34160
|
onSelect: function () {
|
|
33965
34161
|
setSubscribe(function (state) { return !state; });
|
|
33966
34162
|
},
|
|
33967
34163
|
},
|
|
33968
34164
|
{
|
|
33969
34165
|
type: 'checkbox',
|
|
33970
|
-
id:
|
|
34166
|
+
id: GetModelActions.selection,
|
|
33971
34167
|
label: 'Select',
|
|
33972
34168
|
disabled: !getHbjson,
|
|
33973
34169
|
checked: selection,
|
|
34170
|
+
icon: React__default["default"].createElement(BoundingBox$1, { size: 16 }),
|
|
33974
34171
|
onSelect: function () {
|
|
33975
34172
|
// reset key when "select" option is deselected
|
|
33976
34173
|
if (selection) {
|
|
@@ -33979,11 +34176,12 @@ var GetModel = function (_a) {
|
|
|
33979
34176
|
setSelection(function (state) { return !state; });
|
|
33980
34177
|
},
|
|
33981
34178
|
},
|
|
33982
|
-
]
|
|
33983
|
-
|
|
33984
|
-
|
|
33985
|
-
|
|
33986
|
-
|
|
34179
|
+
].filter(function (o) {
|
|
34180
|
+
if (!optionsConfig)
|
|
34181
|
+
return true;
|
|
34182
|
+
return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
|
|
34183
|
+
}),
|
|
34184
|
+
}] : undefined, asButtons: true, label: buttonLabel, helpText: "Get ".concat(selection ? 'selected ' : '', " model").concat(subscribe ? ' continuously' : '', ".") })));
|
|
33987
34185
|
};
|
|
33988
34186
|
|
|
33989
34187
|
// Generated with util/create-component.js
|
|
@@ -34550,6 +34748,16 @@ var SelectRun = function (_a) {
|
|
|
34550
34748
|
} }, "Showing ".concat((_c = runs === null || runs === void 0 ? void 0 : runs.length) !== null && _c !== void 0 ? _c : 0, " of ").concat(total, " runs"))), onScrollReachEnd: onScrollReachEnd }));
|
|
34551
34749
|
};
|
|
34552
34750
|
|
|
34751
|
+
// Generated with util/create-component.js
|
|
34752
|
+
var Action$1;
|
|
34753
|
+
(function (Action) {
|
|
34754
|
+
Action["add"] = "add";
|
|
34755
|
+
Action["delete"] = "delete";
|
|
34756
|
+
Action["preview"] = "preview";
|
|
34757
|
+
Action["clear"] = "clear";
|
|
34758
|
+
Action["subscribePreview"] = "subscribe-preview";
|
|
34759
|
+
})(Action$1 || (Action$1 = {}));
|
|
34760
|
+
|
|
34553
34761
|
var getAction$1 = function (key) {
|
|
34554
34762
|
switch (key) {
|
|
34555
34763
|
case 'add':
|
|
@@ -34565,9 +34773,9 @@ var getAction$1 = function (key) {
|
|
|
34565
34773
|
}
|
|
34566
34774
|
};
|
|
34567
34775
|
var SendGeometry = function (_a) {
|
|
34568
|
-
var geometry = _a.geometry, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey;
|
|
34569
|
-
var
|
|
34570
|
-
var
|
|
34776
|
+
var geometry = _a.geometry, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Send Geometry' : _b;
|
|
34777
|
+
var _c = React.useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action$1.preview), selOpt = _c[0], setSelOpt = _c[1];
|
|
34778
|
+
var _d = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
|
|
34571
34779
|
var sendGeometry = useSendGeometry().sendGeometry;
|
|
34572
34780
|
React.useEffect(function () {
|
|
34573
34781
|
setSelOpt(defaultAction);
|
|
@@ -34611,56 +34819,80 @@ var SendGeometry = function (_a) {
|
|
|
34611
34819
|
}, options: [{
|
|
34612
34820
|
type: 'radio',
|
|
34613
34821
|
value: selOpt,
|
|
34822
|
+
// @ts-ignore
|
|
34614
34823
|
options: [
|
|
34615
34824
|
{
|
|
34616
34825
|
type: 'radio',
|
|
34617
|
-
id:
|
|
34826
|
+
id: Action$1.preview,
|
|
34618
34827
|
label: 'Preview',
|
|
34828
|
+
checked: selOpt === Action$1.preview,
|
|
34829
|
+
icon: React__default["default"].createElement(Eyeglasses$1, { size: 16 }),
|
|
34619
34830
|
disabled: !sendGeometry,
|
|
34620
34831
|
onSelect: function () {
|
|
34621
|
-
setSelOpt(function (state) { return (state ===
|
|
34832
|
+
setSelOpt(function (state) { return (state === Action$1.preview ? undefined : Action$1.preview); });
|
|
34622
34833
|
},
|
|
34623
34834
|
},
|
|
34624
34835
|
{
|
|
34625
34836
|
type: 'radio',
|
|
34626
|
-
id:
|
|
34837
|
+
id: Action$1.add,
|
|
34627
34838
|
label: 'Add',
|
|
34839
|
+
checked: selOpt === Action$1.add,
|
|
34840
|
+
icon: React__default["default"].createElement(Building$1, { size: 16 }),
|
|
34628
34841
|
disabled: !sendGeometry,
|
|
34629
34842
|
onSelect: function () {
|
|
34630
|
-
setSelOpt(function (state) { return (state ===
|
|
34843
|
+
setSelOpt(function (state) { return (state === Action$1.add ? undefined : Action$1.add); });
|
|
34631
34844
|
},
|
|
34632
34845
|
},
|
|
34633
34846
|
{
|
|
34634
34847
|
type: 'radio',
|
|
34635
|
-
id:
|
|
34848
|
+
id: Action$1.delete,
|
|
34636
34849
|
label: 'Delete',
|
|
34850
|
+
checked: selOpt === Action$1.delete,
|
|
34851
|
+
icon: React__default["default"].createElement(Trash$1, { size: 16 }),
|
|
34637
34852
|
disabled: !sendGeometry,
|
|
34638
34853
|
onSelect: function () {
|
|
34639
|
-
setSelOpt(function (state) { return (state ===
|
|
34854
|
+
setSelOpt(function (state) { return (state === Action$1.delete ? undefined : Action$1.delete); });
|
|
34640
34855
|
},
|
|
34641
34856
|
},
|
|
34642
34857
|
{
|
|
34643
34858
|
type: 'radio',
|
|
34644
|
-
id:
|
|
34859
|
+
id: Action$1.clear,
|
|
34645
34860
|
label: 'Clear',
|
|
34861
|
+
checked: selOpt === Action$1.clear,
|
|
34862
|
+
icon: React__default["default"].createElement(Recycle$1, { size: 16 }),
|
|
34646
34863
|
disabled: !sendGeometry,
|
|
34647
34864
|
onSelect: function () {
|
|
34648
|
-
setSelOpt(function (state) { return (state ===
|
|
34865
|
+
setSelOpt(function (state) { return (state === Action$1.clear ? undefined : Action$1.clear); });
|
|
34649
34866
|
},
|
|
34650
34867
|
},
|
|
34651
34868
|
{
|
|
34652
34869
|
type: 'radio',
|
|
34653
|
-
id:
|
|
34870
|
+
id: Action$1.subscribePreview,
|
|
34654
34871
|
label: 'Subscribe Preview',
|
|
34872
|
+
checked: selOpt === Action$1.subscribePreview,
|
|
34873
|
+
icon: React__default["default"].createElement(ArrowRepeat$1, { size: 16 }),
|
|
34655
34874
|
disabled: !sendGeometry,
|
|
34656
34875
|
onSelect: function () {
|
|
34657
|
-
setSelOpt(function (state) { return (state ===
|
|
34876
|
+
setSelOpt(function (state) { return (state === Action$1.subscribePreview ? undefined : Action$1.subscribePreview); });
|
|
34658
34877
|
},
|
|
34659
34878
|
},
|
|
34660
|
-
]
|
|
34661
|
-
|
|
34879
|
+
].filter(function (o) {
|
|
34880
|
+
if (!optionsConfig)
|
|
34881
|
+
return true;
|
|
34882
|
+
return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
|
|
34883
|
+
}),
|
|
34884
|
+
}], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " geometry.") }));
|
|
34662
34885
|
};
|
|
34663
34886
|
|
|
34887
|
+
var Action;
|
|
34888
|
+
(function (Action) {
|
|
34889
|
+
Action["add"] = "add";
|
|
34890
|
+
Action["delete"] = "delete";
|
|
34891
|
+
Action["preview"] = "preview";
|
|
34892
|
+
Action["clear"] = "clear";
|
|
34893
|
+
Action["subscribePreview"] = "subscribe-preview";
|
|
34894
|
+
})(Action || (Action = {}));
|
|
34895
|
+
|
|
34664
34896
|
var getAction = function (key) {
|
|
34665
34897
|
switch (key) {
|
|
34666
34898
|
case 'add':
|
|
@@ -34674,9 +34906,9 @@ var getAction = function (key) {
|
|
|
34674
34906
|
}
|
|
34675
34907
|
};
|
|
34676
34908
|
var SendModel = function (_a) {
|
|
34677
|
-
var hbjson = _a.hbjson, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey;
|
|
34678
|
-
var
|
|
34679
|
-
var
|
|
34909
|
+
var hbjson = _a.hbjson, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Send Model' : _b;
|
|
34910
|
+
var _c = React.useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action.preview), selOpt = _c[0], setSelOpt = _c[1];
|
|
34911
|
+
var _d = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
|
|
34680
34912
|
var sendHbjson = useSendHbjson().sendHbjson;
|
|
34681
34913
|
React.useEffect(function () {
|
|
34682
34914
|
setSelOpt(defaultAction);
|
|
@@ -34685,7 +34917,7 @@ var SendModel = function (_a) {
|
|
|
34685
34917
|
setKey(defaultKey);
|
|
34686
34918
|
}, [defaultKey]);
|
|
34687
34919
|
React.useEffect(function () {
|
|
34688
|
-
if (!sendHbjson || selOpt !==
|
|
34920
|
+
if (!sendHbjson || selOpt !== Action.subscribePreview)
|
|
34689
34921
|
return;
|
|
34690
34922
|
sendHbjson('CombinedRenderingPollinationModel', {
|
|
34691
34923
|
data: hbjson,
|
|
@@ -34720,45 +34952,58 @@ var SendModel = function (_a) {
|
|
|
34720
34952
|
}, options: [{
|
|
34721
34953
|
type: 'radio',
|
|
34722
34954
|
value: selOpt,
|
|
34955
|
+
// @ts-ignore
|
|
34723
34956
|
options: [
|
|
34724
34957
|
{
|
|
34725
34958
|
type: 'radio',
|
|
34726
|
-
id:
|
|
34959
|
+
id: Action.preview,
|
|
34727
34960
|
label: 'Preview',
|
|
34961
|
+
checked: selOpt === Action.preview,
|
|
34962
|
+
icon: React__default["default"].createElement(Eyeglasses$1, { size: 16 }),
|
|
34728
34963
|
disabled: !sendHbjson,
|
|
34729
34964
|
onSelect: function () {
|
|
34730
|
-
setSelOpt(function (state) { return (state ===
|
|
34965
|
+
setSelOpt(function (state) { return (state === Action.preview ? undefined : Action.preview); });
|
|
34731
34966
|
},
|
|
34732
34967
|
},
|
|
34733
34968
|
{
|
|
34734
34969
|
type: 'radio',
|
|
34735
|
-
id:
|
|
34970
|
+
id: Action.add,
|
|
34736
34971
|
label: 'Add',
|
|
34972
|
+
checked: selOpt === Action.add,
|
|
34973
|
+
icon: React__default["default"].createElement(Building$1, { size: 16 }),
|
|
34737
34974
|
disabled: !sendHbjson,
|
|
34738
34975
|
onSelect: function () {
|
|
34739
|
-
setSelOpt(function (state) { return (state ===
|
|
34976
|
+
setSelOpt(function (state) { return (state === Action.add ? undefined : Action.add); });
|
|
34740
34977
|
},
|
|
34741
34978
|
},
|
|
34742
34979
|
{
|
|
34743
34980
|
type: 'radio',
|
|
34744
|
-
id:
|
|
34981
|
+
id: Action.clear,
|
|
34745
34982
|
label: 'Clear',
|
|
34983
|
+
checked: selOpt === Action.clear,
|
|
34984
|
+
icon: React__default["default"].createElement(Recycle$1, { size: 16 }),
|
|
34746
34985
|
disabled: !sendHbjson,
|
|
34747
34986
|
onSelect: function () {
|
|
34748
|
-
setSelOpt(function (state) { return (state ===
|
|
34987
|
+
setSelOpt(function (state) { return (state === Action.clear ? undefined : Action.clear); });
|
|
34749
34988
|
},
|
|
34750
34989
|
},
|
|
34751
34990
|
{
|
|
34752
34991
|
type: 'radio',
|
|
34753
|
-
id:
|
|
34992
|
+
id: Action.subscribePreview,
|
|
34754
34993
|
label: 'Subscribe Preview',
|
|
34994
|
+
checked: selOpt === Action.subscribePreview,
|
|
34995
|
+
icon: React__default["default"].createElement(ArrowRepeat$1, { size: 16 }),
|
|
34755
34996
|
disabled: !sendHbjson,
|
|
34756
34997
|
onSelect: function () {
|
|
34757
|
-
setSelOpt(function (state) { return (state ===
|
|
34998
|
+
setSelOpt(function (state) { return (state === Action.subscribePreview ? undefined : Action.subscribePreview); });
|
|
34758
34999
|
},
|
|
34759
35000
|
},
|
|
34760
|
-
]
|
|
34761
|
-
|
|
35001
|
+
].filter(function (o) {
|
|
35002
|
+
if (!optionsConfig)
|
|
35003
|
+
return true;
|
|
35004
|
+
return typeof optionsConfig[o.id] === 'undefined' ? true : optionsConfig[o.id];
|
|
35005
|
+
}),
|
|
35006
|
+
}], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " model.") }));
|
|
34762
35007
|
};
|
|
34763
35008
|
|
|
34764
35009
|
// Generated with util/create-component.js
|
|
@@ -34768,7 +35013,7 @@ var SendResults = function (_a) {
|
|
|
34768
35013
|
var _c = React.useState(false), toggleHide = _c[0], setToggleHide = _c[1];
|
|
34769
35014
|
var disabled = !sendGeometry || !geometry || host !== 'revit';
|
|
34770
35015
|
var _d = React.useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0]; _d[1];
|
|
34771
|
-
return (React__default["default"].createElement(ConditionalWrapper, { condition: disabled, wrapper: function (children) { return React__default["default"].createElement(
|
|
35016
|
+
return (React__default["default"].createElement(ConditionalWrapper, { condition: disabled, wrapper: function (children) { return (React__default["default"].createElement(InputLabel, { helpText: 'Available in the Pollination Revit Plugin' }, children)); } },
|
|
34772
35017
|
React__default["default"].createElement("div", { className: "btn-group ".concat(disabled && 'btn-group-disabled') },
|
|
34773
35018
|
React__default["default"].createElement("button", { onClick: function () {
|
|
34774
35019
|
if (disabled)
|