@seamly/web-ui 25.5.0 → 25.5.1
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/dist/lib/index.debug.js +256 -136
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +3 -3
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +274 -155
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +3 -3
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +97 -53
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/package.json +22 -22
- package/src/javascripts/core/api/asyncapi.types.ts +1 -2
- package/src/javascripts/core/domains/store/store.types.ts +1 -4
- package/src/javascripts/core/domains/translations/components/options-button.tsx +2 -1
- package/src/javascripts/core/domains/translations/components/options-dialog/index.tsx +3 -0
- package/src/javascripts/core/ui/components/conversation/conversation.tsx +1 -2
- package/src/javascripts/core/ui/components/options/options-frame.tsx +3 -1
- package/src/javascripts/core/ui/hooks/use-click-outside.ts +6 -2
- package/src/javascripts/style-guide/states.ts +32 -18
package/build/dist/lib/index.js
CHANGED
|
@@ -21,7 +21,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21
21
|
/* harmony export */ StrictMode: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
|
|
22
22
|
/* harmony export */ Suspense: () => (/* binding */ P),
|
|
23
23
|
/* harmony export */ SuspenseList: () => (/* binding */ B),
|
|
24
|
-
/* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */
|
|
24
|
+
/* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ an),
|
|
25
25
|
/* harmony export */ cloneElement: () => (/* binding */ mn),
|
|
26
26
|
/* harmony export */ createContext: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
|
|
27
27
|
/* harmony export */ createElement: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
|
|
@@ -34,9 +34,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34
34
|
/* harmony export */ forwardRef: () => (/* binding */ D),
|
|
35
35
|
/* harmony export */ hydrate: () => (/* binding */ tn),
|
|
36
36
|
/* harmony export */ isElement: () => (/* binding */ Sn),
|
|
37
|
-
/* harmony export */ isFragment: () => (/* binding */
|
|
37
|
+
/* harmony export */ isFragment: () => (/* binding */ hn),
|
|
38
38
|
/* harmony export */ isMemo: () => (/* binding */ dn),
|
|
39
|
-
/* harmony export */ isValidElement: () => (/* binding */
|
|
39
|
+
/* harmony export */ isValidElement: () => (/* binding */ vn),
|
|
40
40
|
/* harmony export */ lazy: () => (/* binding */ z),
|
|
41
41
|
/* harmony export */ memo: () => (/* binding */ N),
|
|
42
42
|
/* harmony export */ render: () => (/* binding */ nn),
|
|
@@ -47,7 +47,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47
47
|
/* harmony export */ useInsertionEffect: () => (/* binding */ I),
|
|
48
48
|
/* harmony export */ useSyncExternalStore: () => (/* binding */ C),
|
|
49
49
|
/* harmony export */ useTransition: () => (/* binding */ k),
|
|
50
|
-
/* harmony export */ version: () => (/* binding */
|
|
50
|
+
/* harmony export */ version: () => (/* binding */ cn)
|
|
51
51
|
/* harmony export */ });
|
|
52
52
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8785);
|
|
53
53
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(preact__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -57,7 +57,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
57
57
|
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","StrictMode","createContext","createElement","createRef","Children","PureComponent","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","isElement","isFragment","isMemo","isValidElement","lazy","memo","render","startTransition","unmountComponentAtNode","unstable_batchedUpdates","useDeferredValue","useInsertionEffect","useSyncExternalStore","useTransition","version"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => preact_hooks__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
|
|
58
58
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
59
59
|
function g(n,t){for(var e in t)n[e]=t[e];return n}function E(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function C(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({t:{__:e,u:t}}),u=r[0].t,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.u=t,R(u)&&o({t:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return R(u)&&o({t:u}),n(function(){R(u)&&o({t:u})})},[n]),e}function R(n){try{return!((t=n.__)===(e=n.u())&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}// removed by dead control flow
|
|
60
|
-
var t, e; }function x(n){n()}function w(n){return n}function k(){return[!1,x]}var I=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function M(n,t){this.props=n,this.context=t}function N(n,e){function r(n){var t=this.props.ref;return t!=n.ref&&t&&("function"==typeof t?t(null):t.current=null),e?!e(this.props,n)||t!=n.ref:E(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.__f=u.prototype.isReactComponent=!0,u.type=n,u}(M.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),T&&T(n)};var A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function D(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=A,t.render=n,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var F=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},L={map:F,forEach:F,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},O=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r)};var U=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function V(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function P(){this.__u=0,this.o=null,this.__b=null}function j(n){var t=n.__&&n.__.__c;return t&&t.__a&&t.__a(n)}function z(n){var e,r,u,o=null;function i(i){if(e||(e=n()).then(function(n){n&&(o=n.default||n),u=!0},function(n){r=n,u=!0}),r)throw r;if(!u)throw e;return o?(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(o,i):null}return i.displayName="Lazy",i.__f=!0,i}function B(){this.i=null,this.l=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n)},(P.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=j(r.__v),o=!1,i=function(){o||r.__z||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var l=e.__P;e.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=W(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=l,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__u&=-33),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var H=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(n){var e=this,r=n.h;if(e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),!e.v){for(var u=e.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:u.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(n,t){this.childNodes.push(n),e.h.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}}(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Z,{context:e.context},n.__v),e.v)}function $(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Y,{__v:n,h:e});return r.containerInfo=e,r}(B.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),H(t,n,r)):u()};e?e(o):o()}},B.prototype.render=function(n){this.i=null,this.l=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){H(n,e,t)})};var q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function tn(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var en=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return en&&(n=en(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var rn,un={configurable:!0,get:function(){return this.class}},on=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1==e.indexOf("-");for(var i in t){var l=t[i];if(!("value"===i&&"defaultValue"in t&&null==l||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var c=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===l?l="":"translate"===c&&"no"===l?l=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?i="ondblclick":"onchange"!==c||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===c?i="onfocusin":"onblur"===c?i="onfocusout":J.test(i)&&(i=c):c=i="oninput":o&&G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===c&&u[i=c]&&(i="oninputCapture"),u[i]=l}}"select"==e&&(u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value}))),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",un)):t.className&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=q,on&&on(n)};var ln=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){ln&&ln(n),rn=n.__c};var cn=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){cn&&cn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),rn=null};var fn={ReactCurrentDispatcher:{current:{readContext:function(n){return rn.__n[n.__c].props.value},useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,useDeferredValue:w,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useInsertionEffect:I,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useSyncExternalStore:C,useTransition:k}}},an="18.3.1";function sn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function hn(n){return!!n&&n.$$typeof===q}function vn(n){return hn(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function dn(n){return!!n&&"string"==typeof n.displayName&&0==n.displayName.indexOf("Memo(")}function mn(n){return hn(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function pn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function yn(n){return n&&(n.base||1===n.nodeType&&n)||null}var _n=function(n,t){return n(t)},bn=function(n,t){var r=preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering;preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=function(n){return n()};var u=n(t);return preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=r,u},Sn=hn,gn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:I,useTransition:k,useDeferredValue:w,useSyncExternalStore:C,startTransition:x,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"18.3.1",Children:L,render:nn,hydrate:tn,unmountComponentAtNode:pn,createPortal:$,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:sn,cloneElement:mn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:hn,isElement:Sn,isFragment:vn,isMemo:dn,findDOMNode:yn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:M,memo:N,forwardRef:D,flushSync:bn,unstable_batchedUpdates:_n,StrictMode:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,Suspense:P,SuspenseList:B,lazy:z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fn};
|
|
60
|
+
var t, e; }function x(n){n()}function w(n){return n}function k(){return[!1,x]}var I=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function M(n,t){this.props=n,this.context=t}function N(n,e){function r(n){var t=this.props.ref;return t!=n.ref&&t&&("function"==typeof t?t(null):t.current=null),e?!e(this.props,n)||t!=n.ref:E(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.__f=u.prototype.isReactComponent=!0,u.type=n,u}(M.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(n,t){return E(this.props,n)||E(this.state,t)};var T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),T&&T(n)};var A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function D(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=A,t.render=n,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var F=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},L={map:F,forEach:F,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},O=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);O(n,t,e,r)};var U=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function V(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c.__e=!0,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function P(){this.__u=0,this.o=null,this.__b=null}function j(n){var t=n.__&&n.__.__c;return t&&t.__a&&t.__a(n)}function z(n){var e,r,u,o=null;function i(i){if(e||(e=n()).then(function(n){n&&(o=n.default||n),u=!0},function(n){r=n,u=!0}),r)throw r;if(!u)throw e;return o?(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(o,i):null}return i.displayName="Lazy",i.__f=!0,i}function B(){this.i=null,this.l=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n)},(P.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=j(r.__v),o=!1,i=function(){o||r.__z||(o=!0,e.__R=null,u?u(f):f())};e.__R=i;var l=e.__P;e.__P=null;var f=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=W(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=l,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(n,e){var r=this.__v;if(!r.__m){for(var o=r;o.__;)o=o.__;o=o.__m||(o.__m=[0,0]),r.__m=[o[1]++,0]}if(this.__b){if(r.__k){var i=document.createElement("div"),l=r.__k[0].__c;r.__k[0]=V(this.__b,i,l.__O=l.__P)}this.__b=null}var f=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return f&&(f.__u&=-33),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),f]};var H=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(n){var e=this,r=n.v;if(e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.h),e.h=null,e.v=null},e.v&&e.v!==r&&e.componentWillUnmount(),!e.h){for(var u=e.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;e.v=r,e.h={nodeType:1,parentNode:r,childNodes:[],__k:{__m:u.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(n,t){this.childNodes.push(n),e.v.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.v.removeChild(n)}}}(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Z,{context:e.context},n.__v),e.h)}function $(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(Y,{__v:n,v:e});return r.containerInfo=e,r}(B.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),H(t,n,r)):u()};e?e(o):o()}},B.prototype.render=function(n){this.i=null,this.l=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){H(n,e,t)})};var q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function tn(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var en=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return en&&(n=en(n)),n.persist=function(){},n.isPropagationStopped=function(){return this.cancelBubble},n.isDefaultPrevented=function(){return this.defaultPrevented},n.nativeEvent=n};var rn,un={configurable:!0,get:function(){return this.class}},on=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1==e.indexOf("-");for(var i in t){var l=t[i];if(!("value"===i&&"defaultValue"in t&&null==l||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var f=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===l?l="":"translate"===f&&"no"===l?l=!1:"o"===f[0]&&"n"===f[1]?"ondoubleclick"===f?i="ondblclick":"onchange"!==f||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===f?i="onfocusin":"onblur"===f?i="onfocusout":J.test(i)&&(i=f):f=i="oninput":o&&G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===f&&u[i=f]&&(i="oninputCapture"),u[i]=l}}"select"==e&&(u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value}))),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",un)):t.className&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=q,on&&on(n)};var ln=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){ln&&ln(n),rn=n.__c};var fn=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){fn&&fn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),rn=null};var an={ReactCurrentDispatcher:{current:{readContext:function(n){return rn.__n[n.__c].props.value},useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,useDeferredValue:w,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useInsertionEffect:I,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useSyncExternalStore:C,useTransition:k}}},cn="18.3.1";function sn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function vn(n){return!!n&&n.$$typeof===q}function hn(n){return vn(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function dn(n){return!!n&&"string"==typeof n.displayName&&0==n.displayName.indexOf("Memo(")}function mn(n){return vn(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function pn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function yn(n){return n&&(n.base||1===n.nodeType&&n)||null}var _n=function(n,t){return n(t)},bn=function(n,t){var r=preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering;preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=function(n){return n()};var u=n(t);return preact__WEBPACK_IMPORTED_MODULE_0__.options.debounceRendering=r,u},Sn=vn,gn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:I,useTransition:k,useDeferredValue:w,useSyncExternalStore:C,startTransition:x,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"18.3.1",Children:L,render:nn,hydrate:tn,unmountComponentAtNode:pn,createPortal:$,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:sn,cloneElement:mn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:vn,isElement:Sn,isFragment:hn,isMemo:dn,findDOMNode:yn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:M,memo:N,forwardRef:D,flushSync:bn,unstable_batchedUpdates:_n,StrictMode:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,Suspense:P,SuspenseList:B,lazy:z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:an};
|
|
61
61
|
//# sourceMappingURL=compat.module.js.map
|
|
62
62
|
|
|
63
63
|
|
|
@@ -4027,17 +4027,17 @@ __webpack_require__(1698);
|
|
|
4027
4027
|
/******/ });
|
|
4028
4028
|
/************************************************************************/
|
|
4029
4029
|
/******/ // The module cache
|
|
4030
|
-
/******/
|
|
4030
|
+
/******/ const __webpack_module_cache__ = {};
|
|
4031
4031
|
/******/
|
|
4032
4032
|
/******/ // The require function
|
|
4033
4033
|
/******/ function __webpack_require__(moduleId) {
|
|
4034
4034
|
/******/ // Check if module is in cache
|
|
4035
|
-
/******/
|
|
4035
|
+
/******/ const cachedModule = __webpack_module_cache__[moduleId];
|
|
4036
4036
|
/******/ if (cachedModule !== undefined) {
|
|
4037
4037
|
/******/ return cachedModule.exports;
|
|
4038
4038
|
/******/ }
|
|
4039
4039
|
/******/ // Create a new module (and put it into the cache)
|
|
4040
|
-
/******/
|
|
4040
|
+
/******/ const module = __webpack_module_cache__[moduleId] = {
|
|
4041
4041
|
/******/ // no module.id needed
|
|
4042
4042
|
/******/ // no module.loaded needed
|
|
4043
4043
|
/******/ exports: {}
|
|
@@ -4055,7 +4055,7 @@ __webpack_require__(1698);
|
|
|
4055
4055
|
/******/ (() => {
|
|
4056
4056
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
4057
4057
|
/******/ __webpack_require__.n = (module) => {
|
|
4058
|
-
/******/
|
|
4058
|
+
/******/ const getter = module && module.__esModule ?
|
|
4059
4059
|
/******/ () => (module['default']) :
|
|
4060
4060
|
/******/ () => (module);
|
|
4061
4061
|
/******/ __webpack_require__.d(getter, { a: getter });
|
|
@@ -4065,11 +4065,26 @@ __webpack_require__(1698);
|
|
|
4065
4065
|
/******/
|
|
4066
4066
|
/******/ /* webpack/runtime/define property getters */
|
|
4067
4067
|
/******/ (() => {
|
|
4068
|
-
/******/ // define getter functions for harmony exports
|
|
4068
|
+
/******/ // define getter/value functions for harmony exports
|
|
4069
4069
|
/******/ __webpack_require__.d = (exports, definition) => {
|
|
4070
|
-
/******/
|
|
4071
|
-
/******/
|
|
4072
|
-
/******/
|
|
4070
|
+
/******/ if(Array.isArray(definition)) {
|
|
4071
|
+
/******/ var i = 0;
|
|
4072
|
+
/******/ while(i < definition.length) {
|
|
4073
|
+
/******/ var key = definition[i++];
|
|
4074
|
+
/******/ var binding = definition[i++];
|
|
4075
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
4076
|
+
/******/ if(binding === 0) {
|
|
4077
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
4078
|
+
/******/ } else {
|
|
4079
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
4080
|
+
/******/ }
|
|
4081
|
+
/******/ } else if(binding === 0) { i++; }
|
|
4082
|
+
/******/ }
|
|
4083
|
+
/******/ } else {
|
|
4084
|
+
/******/ for(var key in definition) {
|
|
4085
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
4086
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
4087
|
+
/******/ }
|
|
4073
4088
|
/******/ }
|
|
4074
4089
|
/******/ }
|
|
4075
4090
|
/******/ };
|
|
@@ -4096,7 +4111,7 @@ __webpack_require__(1698);
|
|
|
4096
4111
|
/******/ (() => {
|
|
4097
4112
|
/******/ // define __esModule on exports
|
|
4098
4113
|
/******/ __webpack_require__.r = (exports) => {
|
|
4099
|
-
/******/ if(
|
|
4114
|
+
/******/ if(Symbol.toStringTag) {
|
|
4100
4115
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4101
4116
|
/******/ }
|
|
4102
4117
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -4105,16 +4120,16 @@ __webpack_require__(1698);
|
|
|
4105
4120
|
/******/
|
|
4106
4121
|
/******/ /* webpack/runtime/publicPath */
|
|
4107
4122
|
/******/ (() => {
|
|
4108
|
-
/******/
|
|
4123
|
+
/******/ let scriptUrl;
|
|
4109
4124
|
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
4110
|
-
/******/
|
|
4125
|
+
/******/ const document = __webpack_require__.g.document;
|
|
4111
4126
|
/******/ if (!scriptUrl && document) {
|
|
4112
|
-
/******/ if (document.currentScript
|
|
4127
|
+
/******/ if (document.currentScript?.tagName.toUpperCase() === 'SCRIPT')
|
|
4113
4128
|
/******/ scriptUrl = document.currentScript.src;
|
|
4114
4129
|
/******/ if (!scriptUrl) {
|
|
4115
|
-
/******/
|
|
4130
|
+
/******/ const scripts = document.getElementsByTagName("script");
|
|
4116
4131
|
/******/ if(scripts.length) {
|
|
4117
|
-
/******/
|
|
4132
|
+
/******/ let i = scripts.length - 1;
|
|
4118
4133
|
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
4119
4134
|
/******/ }
|
|
4120
4135
|
/******/ }
|
|
@@ -4127,7 +4142,7 @@ __webpack_require__(1698);
|
|
|
4127
4142
|
/******/ })();
|
|
4128
4143
|
/******/
|
|
4129
4144
|
/************************************************************************/
|
|
4130
|
-
|
|
4145
|
+
let __webpack_exports__ = {};
|
|
4131
4146
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
4132
4147
|
(() => {
|
|
4133
4148
|
"use strict";
|
|
@@ -5715,7 +5730,7 @@ class API {
|
|
|
5715
5730
|
return {
|
|
5716
5731
|
clientName: "@seamly/web-ui",
|
|
5717
5732
|
clientVariant: this.#layoutMode,
|
|
5718
|
-
clientVersion: "25.5.
|
|
5733
|
+
clientVersion: "25.5.1",
|
|
5719
5734
|
currentUrl: window.location.toString(),
|
|
5720
5735
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
5721
5736
|
timezone: getTimeZone(),
|
|
@@ -5731,7 +5746,7 @@ var DRAFTABLE = Symbol.for("immer-draftable");
|
|
|
5731
5746
|
var DRAFT_STATE = Symbol.for("immer-state");
|
|
5732
5747
|
|
|
5733
5748
|
// src/utils/errors.ts
|
|
5734
|
-
var errors =
|
|
5749
|
+
var errors = (/* unused pure expression or super */ null && ( false ? 0 : []));
|
|
5735
5750
|
function die(error, ...args) {
|
|
5736
5751
|
if (false) // removed by dead control flow
|
|
5737
5752
|
{}
|
|
@@ -7825,7 +7840,7 @@ function isValidKey(key) {
|
|
|
7825
7840
|
function getMessage(type) {
|
|
7826
7841
|
const splitType = type ? `${type}`.split("/") : [];
|
|
7827
7842
|
const actionName = splitType[splitType.length - 1] || "actionCreator";
|
|
7828
|
-
return `Detected an action creator with type "${type || "unknown"}" being dispatched.
|
|
7843
|
+
return `Detected an action creator with type "${type || "unknown"}" being dispatched.
|
|
7829
7844
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${actionName}())\` instead of \`dispatch(${actionName})\`. This is necessary even if the action has no payload.`;
|
|
7830
7845
|
}
|
|
7831
7846
|
function createActionCreatorInvariantMiddleware(options = {}) {
|
|
@@ -8076,6 +8091,20 @@ var createQueueWithTimer = (timeout) => {
|
|
|
8076
8091
|
setTimeout(notify, timeout);
|
|
8077
8092
|
};
|
|
8078
8093
|
};
|
|
8094
|
+
var createRafWithFallbackTimer = (raf, timeout) => {
|
|
8095
|
+
return (notify) => {
|
|
8096
|
+
let called = false;
|
|
8097
|
+
const callback = () => {
|
|
8098
|
+
if (called) return;
|
|
8099
|
+
called = true;
|
|
8100
|
+
cancelAnimationFrame(rafId);
|
|
8101
|
+
clearTimeout(timerId);
|
|
8102
|
+
notify();
|
|
8103
|
+
};
|
|
8104
|
+
const rafId = raf(callback);
|
|
8105
|
+
const timerId = setTimeout(callback, timeout);
|
|
8106
|
+
};
|
|
8107
|
+
};
|
|
8079
8108
|
var autoBatchEnhancer = (options = {
|
|
8080
8109
|
type: "raf"
|
|
8081
8110
|
}) => (next) => (...args) => {
|
|
@@ -8086,7 +8115,7 @@ var autoBatchEnhancer = (options = {
|
|
|
8086
8115
|
const listeners = /* @__PURE__ */ new Set();
|
|
8087
8116
|
const queueCallback = options.type === "tick" ? queueMicrotask : options.type === "raf" ? (
|
|
8088
8117
|
// requestAnimationFrame won't exist in SSR environments. Fall back to a vague approximation just to keep from erroring.
|
|
8089
|
-
typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10)
|
|
8118
|
+
typeof window !== "undefined" && window.requestAnimationFrame ? createRafWithFallbackTimer(window.requestAnimationFrame, 100) : createQueueWithTimer(10)
|
|
8090
8119
|
) : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
|
|
8091
8120
|
const notifyListeners = () => {
|
|
8092
8121
|
notificationQueued = false;
|
|
@@ -8395,6 +8424,8 @@ var RejectWithValue = class {
|
|
|
8395
8424
|
this.payload = payload;
|
|
8396
8425
|
this.meta = meta;
|
|
8397
8426
|
}
|
|
8427
|
+
payload;
|
|
8428
|
+
meta;
|
|
8398
8429
|
/*
|
|
8399
8430
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
8400
8431
|
does not exist at runtime
|
|
@@ -8406,6 +8437,8 @@ var FulfillWithMeta = class {
|
|
|
8406
8437
|
this.payload = payload;
|
|
8407
8438
|
this.meta = meta;
|
|
8408
8439
|
}
|
|
8440
|
+
payload;
|
|
8441
|
+
meta;
|
|
8409
8442
|
/*
|
|
8410
8443
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
8411
8444
|
does not exist at runtime
|
|
@@ -8481,7 +8514,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
8481
8514
|
});
|
|
8482
8515
|
}
|
|
8483
8516
|
}
|
|
8484
|
-
const promise = async function() {
|
|
8517
|
+
const promise = (async function() {
|
|
8485
8518
|
let finalAction;
|
|
8486
8519
|
try {
|
|
8487
8520
|
let conditionResult = options?.condition?.(arg, {
|
|
@@ -8522,12 +8555,12 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
8522
8555
|
requestId,
|
|
8523
8556
|
signal: abortController.signal,
|
|
8524
8557
|
abort,
|
|
8525
|
-
rejectWithValue: (value, meta) => {
|
|
8558
|
+
rejectWithValue: ((value, meta) => {
|
|
8526
8559
|
return new RejectWithValue(value, meta);
|
|
8527
|
-
},
|
|
8528
|
-
fulfillWithValue: (value, meta) => {
|
|
8560
|
+
}),
|
|
8561
|
+
fulfillWithValue: ((value, meta) => {
|
|
8529
8562
|
return new FulfillWithMeta(value, meta);
|
|
8530
|
-
}
|
|
8563
|
+
})
|
|
8531
8564
|
})).then((result) => {
|
|
8532
8565
|
if (result instanceof RejectWithValue) {
|
|
8533
8566
|
throw result;
|
|
@@ -8549,7 +8582,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
|
|
|
8549
8582
|
dispatch(finalAction);
|
|
8550
8583
|
}
|
|
8551
8584
|
return finalAction;
|
|
8552
|
-
}();
|
|
8585
|
+
})();
|
|
8553
8586
|
return Object.assign(promise, {
|
|
8554
8587
|
abort,
|
|
8555
8588
|
requestId,
|
|
@@ -8586,15 +8619,15 @@ function isThenable(value) {
|
|
|
8586
8619
|
|
|
8587
8620
|
// src/createSlice.ts
|
|
8588
8621
|
var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
8589
|
-
var asyncThunkCreator = {
|
|
8622
|
+
var asyncThunkCreator = (/* unused pure expression or super */ null && ({
|
|
8590
8623
|
[asyncThunkSymbol]: createAsyncThunk
|
|
8591
|
-
};
|
|
8592
|
-
var ReducerType = /* @__PURE__ */ ((ReducerType2) => {
|
|
8624
|
+
}));
|
|
8625
|
+
var ReducerType = /* @__PURE__ */ (/* unused pure expression or super */ null && (((ReducerType2) => {
|
|
8593
8626
|
ReducerType2["reducer"] = "reducer";
|
|
8594
8627
|
ReducerType2["reducerWithPrepare"] = "reducerWithPrepare";
|
|
8595
8628
|
ReducerType2["asyncThunk"] = "asyncThunk";
|
|
8596
8629
|
return ReducerType2;
|
|
8597
|
-
})(ReducerType || {});
|
|
8630
|
+
})(ReducerType || {})));
|
|
8598
8631
|
function getType(slice, actionKey) {
|
|
8599
8632
|
return `${slice}/${actionKey}`;
|
|
8600
8633
|
}
|
|
@@ -9303,6 +9336,7 @@ var TaskAbortError = class {
|
|
|
9303
9336
|
this.code = code;
|
|
9304
9337
|
this.message = `${task} ${cancelled} (reason: ${code})`;
|
|
9305
9338
|
}
|
|
9339
|
+
code;
|
|
9306
9340
|
name = "TaskAbortError";
|
|
9307
9341
|
message;
|
|
9308
9342
|
};
|
|
@@ -9382,7 +9416,7 @@ var createDelay = (signal) => {
|
|
|
9382
9416
|
var {
|
|
9383
9417
|
assign: redux_toolkit_modern_assign
|
|
9384
9418
|
} = Object;
|
|
9385
|
-
var INTERNAL_NIL_TOKEN = {};
|
|
9419
|
+
var INTERNAL_NIL_TOKEN = (/* unused pure expression or super */ null && ({}));
|
|
9386
9420
|
var alm = "listenerMiddleware";
|
|
9387
9421
|
var createFork = (parentAbortSignal, parentBlockingPromises) => {
|
|
9388
9422
|
const linkControllers = (controller) => addAbortSignalListener(parentAbortSignal, () => controller.abort(parentAbortSignal.reason));
|
|
@@ -9442,7 +9476,7 @@ var createTakePattern = (startListening, signal) => {
|
|
|
9442
9476
|
unsubscribe();
|
|
9443
9477
|
}
|
|
9444
9478
|
};
|
|
9445
|
-
return (predicate, timeout) => catchRejection(take(predicate, timeout));
|
|
9479
|
+
return ((predicate, timeout) => catchRejection(take(predicate, timeout)));
|
|
9446
9480
|
};
|
|
9447
9481
|
var getListenerEntryPropsFrom = (options) => {
|
|
9448
9482
|
let {
|
|
@@ -9470,7 +9504,7 @@ var getListenerEntryPropsFrom = (options) => {
|
|
|
9470
9504
|
effect
|
|
9471
9505
|
};
|
|
9472
9506
|
};
|
|
9473
|
-
var createListenerEntry = /* @__PURE__ */ redux_toolkit_modern_assign((options) => {
|
|
9507
|
+
var createListenerEntry = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign((options) => {
|
|
9474
9508
|
const {
|
|
9475
9509
|
type,
|
|
9476
9510
|
predicate,
|
|
@@ -9489,7 +9523,7 @@ var createListenerEntry = /* @__PURE__ */ redux_toolkit_modern_assign((options)
|
|
|
9489
9523
|
return entry;
|
|
9490
9524
|
}, {
|
|
9491
9525
|
withTypes: () => createListenerEntry
|
|
9492
|
-
});
|
|
9526
|
+
})));
|
|
9493
9527
|
var findListenerEntry = (listenerMap, options) => {
|
|
9494
9528
|
const {
|
|
9495
9529
|
type,
|
|
@@ -9523,13 +9557,13 @@ var safelyNotifyError = (errorHandler, errorToNotify, errorInfo) => {
|
|
|
9523
9557
|
}, 0);
|
|
9524
9558
|
}
|
|
9525
9559
|
};
|
|
9526
|
-
var addListener = /* @__PURE__ */ redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/add`), {
|
|
9560
|
+
var addListener = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/add`), {
|
|
9527
9561
|
withTypes: () => addListener
|
|
9528
|
-
});
|
|
9562
|
+
})));
|
|
9529
9563
|
var clearAllListeners = /* @__PURE__ */ (/* unused pure expression or super */ null && (createAction(`${alm}/removeAll`)));
|
|
9530
|
-
var removeListener = /* @__PURE__ */ redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
|
|
9564
|
+
var removeListener = /* @__PURE__ */ (/* unused pure expression or super */ null && (redux_toolkit_modern_assign(/* @__PURE__ */ createAction(`${alm}/remove`), {
|
|
9531
9565
|
withTypes: () => removeListener
|
|
9532
|
-
});
|
|
9566
|
+
})));
|
|
9533
9567
|
var defaultErrorHandler = (...args) => {
|
|
9534
9568
|
console.error(`${alm}/error`, ...args);
|
|
9535
9569
|
};
|
|
@@ -9563,10 +9597,10 @@ var createListenerMiddleware = (middlewareOptions = {}) => {
|
|
|
9563
9597
|
}
|
|
9564
9598
|
};
|
|
9565
9599
|
};
|
|
9566
|
-
const startListening = (options) => {
|
|
9600
|
+
const startListening = ((options) => {
|
|
9567
9601
|
const entry = findListenerEntry(listenerMap, options) ?? createListenerEntry(options);
|
|
9568
9602
|
return insertEntry(entry);
|
|
9569
|
-
};
|
|
9603
|
+
});
|
|
9570
9604
|
redux_toolkit_modern_assign(startListening, {
|
|
9571
9605
|
withTypes: () => startListening
|
|
9572
9606
|
});
|
|
@@ -9741,9 +9775,9 @@ var createDynamicMiddleware = () => {
|
|
|
9741
9775
|
|
|
9742
9776
|
var isSliceLike = (maybeSliceLike) => "reducerPath" in maybeSliceLike && typeof maybeSliceLike.reducerPath === "string";
|
|
9743
9777
|
var getReducers = (slices) => slices.flatMap((sliceOrMap) => isSliceLike(sliceOrMap) ? [[sliceOrMap.reducerPath, sliceOrMap.reducer]] : Object.entries(sliceOrMap));
|
|
9744
|
-
var ORIGINAL_STATE = Symbol.for("rtk-state-proxy-original");
|
|
9778
|
+
var ORIGINAL_STATE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("rtk-state-proxy-original")));
|
|
9745
9779
|
var isStateProxy = (value) => !!value && !!value[ORIGINAL_STATE];
|
|
9746
|
-
var stateProxyMap = /* @__PURE__ */ new WeakMap();
|
|
9780
|
+
var stateProxyMap = /* @__PURE__ */ (/* unused pure expression or super */ null && (new WeakMap()));
|
|
9747
9781
|
var createStateProxy = (state, reducerMap, initialStateCache) => getOrInsertComputed(stateProxyMap, state, () => new Proxy(state, {
|
|
9748
9782
|
get: (target, prop, receiver) => {
|
|
9749
9783
|
if (prop === ORIGINAL_STATE) return target;
|
|
@@ -9772,7 +9806,7 @@ var redux_toolkit_modern_original = (state) => {
|
|
|
9772
9806
|
}
|
|
9773
9807
|
return state[ORIGINAL_STATE];
|
|
9774
9808
|
};
|
|
9775
|
-
var emptyObject = {};
|
|
9809
|
+
var emptyObject = (/* unused pure expression or super */ null && ({}));
|
|
9776
9810
|
var noopReducer = (state = emptyObject) => state;
|
|
9777
9811
|
function combineSlices(...slices) {
|
|
9778
9812
|
const reducerMap = Object.fromEntries(getReducers(slices));
|
|
@@ -9990,10 +10024,10 @@ var runInputStabilityCheck = (inputSelectorResultsObject, options, inputSelector
|
|
|
9990
10024
|
};
|
|
9991
10025
|
|
|
9992
10026
|
// src/devModeChecks/setGlobalDevModeChecks.ts
|
|
9993
|
-
var globalDevModeChecks = {
|
|
10027
|
+
var globalDevModeChecks = (/* unused pure expression or super */ null && ({
|
|
9994
10028
|
inputStabilityCheck: "once",
|
|
9995
10029
|
identityFunctionCheck: "once"
|
|
9996
|
-
};
|
|
10030
|
+
}));
|
|
9997
10031
|
var setGlobalDevModeChecks = (devModeChecks) => {
|
|
9998
10032
|
Object.assign(globalDevModeChecks, devModeChecks);
|
|
9999
10033
|
};
|
|
@@ -10185,7 +10219,7 @@ var ObjectTreeNode = class {
|
|
|
10185
10219
|
collectionTag = null;
|
|
10186
10220
|
id = nextId++;
|
|
10187
10221
|
};
|
|
10188
|
-
var objectProxyHandler = {
|
|
10222
|
+
var objectProxyHandler = (/* unused pure expression or super */ null && ({
|
|
10189
10223
|
get(node, key) {
|
|
10190
10224
|
function calculateResult() {
|
|
10191
10225
|
const { value } = node;
|
|
@@ -10228,7 +10262,7 @@ var objectProxyHandler = {
|
|
|
10228
10262
|
has(node, prop) {
|
|
10229
10263
|
return Reflect.has(node.value, prop);
|
|
10230
10264
|
}
|
|
10231
|
-
};
|
|
10265
|
+
}));
|
|
10232
10266
|
var ArrayTreeNode = class {
|
|
10233
10267
|
constructor(value) {
|
|
10234
10268
|
this.value = value;
|
|
@@ -10242,7 +10276,7 @@ var ArrayTreeNode = class {
|
|
|
10242
10276
|
collectionTag = null;
|
|
10243
10277
|
id = nextId++;
|
|
10244
10278
|
};
|
|
10245
|
-
var arrayProxyHandler = {
|
|
10279
|
+
var arrayProxyHandler = (/* unused pure expression or super */ null && ({
|
|
10246
10280
|
get([node], key) {
|
|
10247
10281
|
if (key === "length") {
|
|
10248
10282
|
consumeCollection(node);
|
|
@@ -10258,7 +10292,7 @@ var arrayProxyHandler = {
|
|
|
10258
10292
|
has([node], prop) {
|
|
10259
10293
|
return objectProxyHandler.has(node, prop);
|
|
10260
10294
|
}
|
|
10261
|
-
};
|
|
10295
|
+
}));
|
|
10262
10296
|
function createNode(value) {
|
|
10263
10297
|
if (Array.isArray(value)) {
|
|
10264
10298
|
return new ArrayTreeNode(value);
|
|
@@ -10739,19 +10773,19 @@ var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ (/* unused pure expression or super
|
|
|
10739
10773
|
var REACT_PROFILER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.profiler")));
|
|
10740
10774
|
var REACT_CONSUMER_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.consumer")));
|
|
10741
10775
|
var REACT_CONTEXT_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.context")));
|
|
10742
|
-
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
10776
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.forward_ref")));
|
|
10743
10777
|
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.suspense")));
|
|
10744
10778
|
var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
10745
10779
|
"react.suspense_list"
|
|
10746
10780
|
)));
|
|
10747
|
-
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
10781
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.memo")));
|
|
10748
10782
|
var REACT_LAZY_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.lazy")));
|
|
10749
10783
|
var REACT_OFFSCREEN_TYPE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for("react.offscreen")));
|
|
10750
10784
|
var REACT_CLIENT_REFERENCE = /* @__PURE__ */ (/* unused pure expression or super */ null && (Symbol.for(
|
|
10751
10785
|
"react.client.reference"
|
|
10752
10786
|
)));
|
|
10753
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
10754
|
-
var Memo = REACT_MEMO_TYPE;
|
|
10787
|
+
var ForwardRef = (/* unused pure expression or super */ null && (REACT_FORWARD_REF_TYPE));
|
|
10788
|
+
var Memo = (/* unused pure expression or super */ null && (REACT_MEMO_TYPE));
|
|
10755
10789
|
function isValidElementType(type) {
|
|
10756
10790
|
return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || type.getModuleId !== void 0) ? true : false;
|
|
10757
10791
|
}
|
|
@@ -11196,7 +11230,7 @@ function shallowEqual(objA, objB) {
|
|
|
11196
11230
|
}
|
|
11197
11231
|
|
|
11198
11232
|
// src/utils/hoistStatics.ts
|
|
11199
|
-
var REACT_STATICS = {
|
|
11233
|
+
var REACT_STATICS = (/* unused pure expression or super */ null && ({
|
|
11200
11234
|
childContextTypes: true,
|
|
11201
11235
|
contextType: true,
|
|
11202
11236
|
contextTypes: true,
|
|
@@ -11208,8 +11242,8 @@ var REACT_STATICS = {
|
|
|
11208
11242
|
mixins: true,
|
|
11209
11243
|
propTypes: true,
|
|
11210
11244
|
type: true
|
|
11211
|
-
};
|
|
11212
|
-
var KNOWN_STATICS = {
|
|
11245
|
+
}));
|
|
11246
|
+
var KNOWN_STATICS = (/* unused pure expression or super */ null && ({
|
|
11213
11247
|
name: true,
|
|
11214
11248
|
length: true,
|
|
11215
11249
|
prototype: true,
|
|
@@ -11217,26 +11251,26 @@ var KNOWN_STATICS = {
|
|
|
11217
11251
|
callee: true,
|
|
11218
11252
|
arguments: true,
|
|
11219
11253
|
arity: true
|
|
11220
|
-
};
|
|
11221
|
-
var FORWARD_REF_STATICS = {
|
|
11254
|
+
}));
|
|
11255
|
+
var FORWARD_REF_STATICS = (/* unused pure expression or super */ null && ({
|
|
11222
11256
|
$$typeof: true,
|
|
11223
11257
|
render: true,
|
|
11224
11258
|
defaultProps: true,
|
|
11225
11259
|
displayName: true,
|
|
11226
11260
|
propTypes: true
|
|
11227
|
-
};
|
|
11228
|
-
var MEMO_STATICS = {
|
|
11261
|
+
}));
|
|
11262
|
+
var MEMO_STATICS = (/* unused pure expression or super */ null && ({
|
|
11229
11263
|
$$typeof: true,
|
|
11230
11264
|
compare: true,
|
|
11231
11265
|
defaultProps: true,
|
|
11232
11266
|
displayName: true,
|
|
11233
11267
|
propTypes: true,
|
|
11234
11268
|
type: true
|
|
11235
|
-
};
|
|
11236
|
-
var TYPE_STATICS = {
|
|
11269
|
+
}));
|
|
11270
|
+
var TYPE_STATICS = (/* unused pure expression or super */ null && ({
|
|
11237
11271
|
[ForwardRef]: FORWARD_REF_STATICS,
|
|
11238
11272
|
[Memo]: MEMO_STATICS
|
|
11239
|
-
};
|
|
11273
|
+
}));
|
|
11240
11274
|
function getStatics(component) {
|
|
11241
11275
|
if (isMemo(component)) {
|
|
11242
11276
|
return MEMO_STATICS;
|
|
@@ -11370,7 +11404,7 @@ function strictEqual(a, b) {
|
|
|
11370
11404
|
return a === b;
|
|
11371
11405
|
}
|
|
11372
11406
|
var hasWarnedAboutDeprecatedPureOption = false;
|
|
11373
|
-
function
|
|
11407
|
+
function _connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
11374
11408
|
// The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
|
|
11375
11409
|
// @ts-ignore
|
|
11376
11410
|
pure,
|
|
@@ -11569,7 +11603,8 @@ ${latestSubscriptionCallbackError.current.stack}
|
|
|
11569
11603
|
};
|
|
11570
11604
|
return wrapWithConnect;
|
|
11571
11605
|
}
|
|
11572
|
-
var
|
|
11606
|
+
var connect = (/* unused pure expression or super */ null && (_connect));
|
|
11607
|
+
var legacy_connect = (/* unused pure expression or super */ null && (_connect));
|
|
11573
11608
|
|
|
11574
11609
|
// src/components/Provider.tsx
|
|
11575
11610
|
function Provider(providerProps) {
|
|
@@ -15179,10 +15214,10 @@ const css_className = (...classes) => classes.flat().map(c => {
|
|
|
15179
15214
|
return c;
|
|
15180
15215
|
}).filter(c => typeof c === 'string').map(c => c?.split(' ')).flat().filter(c => c && c.length).map(c => {
|
|
15181
15216
|
// This rule makes sure the CSS_NAME is not added yet
|
|
15182
|
-
if (c && c.indexOf(CSS_NAME) > -1) {
|
|
15217
|
+
if (c && c.indexOf((/* inlined export .CSS_NAME */"cvco")) > -1) {
|
|
15183
15218
|
return c;
|
|
15184
15219
|
}
|
|
15185
|
-
return [CSS_NAME, c].join('-');
|
|
15220
|
+
return [(/* inlined export .CSS_NAME */"cvco"), c].join('-');
|
|
15186
15221
|
}).join(' ');
|
|
15187
15222
|
;// ./src/javascripts/core/ui/hooks/component-helper-hooks.ts
|
|
15188
15223
|
|
|
@@ -15508,7 +15543,7 @@ const useSeamlyIdleDetachCountdown = () => {
|
|
|
15508
15543
|
return;
|
|
15509
15544
|
}
|
|
15510
15545
|
const newRemaining = remaining - 1;
|
|
15511
|
-
if (newRemaining % screenReaderDebounceDelaySeconds === 0) {
|
|
15546
|
+
if (newRemaining % (/* inlined export .screenReaderDebounceDelaySeconds */10) === 0) {
|
|
15512
15547
|
sendAssertiveIfOpen(`${t('idleDetachWarning.countdownText')} ${t('idleDetachWarning.countdownTimer', getTimeFromSeconds(newRemaining))}`);
|
|
15513
15548
|
}
|
|
15514
15549
|
dispatch(decrementIdleDetachCountdownCounter());
|
|
@@ -16853,12 +16888,12 @@ const TimeIndicator = ({
|
|
|
16853
16888
|
/* harmony default export */ const time_indicator = (TimeIndicator);
|
|
16854
16889
|
;// ./node_modules/tabbable/dist/index.esm.js
|
|
16855
16890
|
/*!
|
|
16856
|
-
* tabbable 6.
|
|
16891
|
+
* tabbable 6.5.0
|
|
16857
16892
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
16858
16893
|
*/
|
|
16859
16894
|
// NOTE: separate `:not()` selectors has broader browser support than the newer
|
|
16860
16895
|
// `:not([inert], [inert] *)` (Feb 2023)
|
|
16861
|
-
var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
|
|
16896
|
+
var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'area[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
|
|
16862
16897
|
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
16863
16898
|
var NoElement = typeof Element === 'undefined';
|
|
16864
16899
|
var index_esm_matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
@@ -17216,7 +17251,9 @@ var isHidden = function isHidden(node, _ref) {
|
|
|
17216
17251
|
// (this is legacy behavior from a very long way back)
|
|
17217
17252
|
// NOTE: we check this regardless of `displayCheck="none"` because this is a
|
|
17218
17253
|
// _visibility_ check, not a _display_ check
|
|
17219
|
-
|
|
17254
|
+
var _getComputedStyle = getComputedStyle(node),
|
|
17255
|
+
visibility = _getComputedStyle.visibility;
|
|
17256
|
+
if (visibility === 'hidden' || visibility === 'collapse') {
|
|
17220
17257
|
return true;
|
|
17221
17258
|
}
|
|
17222
17259
|
var isDirectSummary = index_esm_matches.call(node, 'details>summary:first-of-type');
|
|
@@ -17444,7 +17481,7 @@ var isFocusable = function isFocusable(node, options) {
|
|
|
17444
17481
|
|
|
17445
17482
|
;// ./node_modules/focus-trap/dist/focus-trap.esm.js
|
|
17446
17483
|
/*!
|
|
17447
|
-
* focus-trap
|
|
17484
|
+
* focus-trap 8.2.2
|
|
17448
17485
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
17449
17486
|
*/
|
|
17450
17487
|
|
|
@@ -17668,6 +17705,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
17668
17705
|
returnFocusOnDeactivate: true,
|
|
17669
17706
|
escapeDeactivates: true,
|
|
17670
17707
|
delayInitialFocus: true,
|
|
17708
|
+
delayReturnFocus: true,
|
|
17671
17709
|
isolateSubtrees: false,
|
|
17672
17710
|
isKeyForward: isKeyForward,
|
|
17673
17711
|
isKeyBackward: isKeyBackward
|
|
@@ -17817,6 +17855,25 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
17817
17855
|
}
|
|
17818
17856
|
return node;
|
|
17819
17857
|
};
|
|
17858
|
+
|
|
17859
|
+
/**
|
|
17860
|
+
* Gets the current activeElement. If it's a web-component and has open shadow-root
|
|
17861
|
+
* it will recursively search inside shadow roots for the "true" activeElement.
|
|
17862
|
+
*
|
|
17863
|
+
* @param {Document | ShadowRoot} el
|
|
17864
|
+
*
|
|
17865
|
+
* @returns {HTMLElement|null} The element that currently has the focus. `null` if a focused element isn't found.
|
|
17866
|
+
**/
|
|
17867
|
+
var _getActiveElement = function getActiveElement(el) {
|
|
17868
|
+
var activeElement = el.activeElement;
|
|
17869
|
+
if (!activeElement) {
|
|
17870
|
+
return null;
|
|
17871
|
+
}
|
|
17872
|
+
if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
|
|
17873
|
+
return _getActiveElement(activeElement.shadowRoot);
|
|
17874
|
+
}
|
|
17875
|
+
return activeElement;
|
|
17876
|
+
};
|
|
17820
17877
|
var getInitialFocusNode = function getInitialFocusNode() {
|
|
17821
17878
|
var node = getNodeForOption('initialFocus', {
|
|
17822
17879
|
hasFallback: true
|
|
@@ -17827,9 +17884,11 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
17827
17884
|
return false;
|
|
17828
17885
|
}
|
|
17829
17886
|
if (node === undefined || node && !isFocusable(node, config.tabbableOptions)) {
|
|
17887
|
+
var activeElement = _getActiveElement(doc);
|
|
17888
|
+
|
|
17830
17889
|
// option not specified nor focusable: use fallback options
|
|
17831
|
-
if (findContainerIndex(
|
|
17832
|
-
node =
|
|
17890
|
+
if (findContainerIndex(activeElement) >= 0) {
|
|
17891
|
+
node = activeElement;
|
|
17833
17892
|
} else {
|
|
17834
17893
|
var firstTabbableGroup = state.tabbableGroups[0];
|
|
17835
17894
|
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
|
|
@@ -17941,25 +18000,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
17941
18000
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
17942
18001
|
}
|
|
17943
18002
|
};
|
|
17944
|
-
|
|
17945
|
-
/**
|
|
17946
|
-
* Gets the current activeElement. If it's a web-component and has open shadow-root
|
|
17947
|
-
* it will recursively search inside shadow roots for the "true" activeElement.
|
|
17948
|
-
*
|
|
17949
|
-
* @param {Document | ShadowRoot} el
|
|
17950
|
-
*
|
|
17951
|
-
* @returns {HTMLElement} The element that currently has the focus
|
|
17952
|
-
**/
|
|
17953
|
-
var _getActiveElement = function getActiveElement(el) {
|
|
17954
|
-
var activeElement = el.activeElement;
|
|
17955
|
-
if (!activeElement) {
|
|
17956
|
-
return;
|
|
17957
|
-
}
|
|
17958
|
-
if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
|
|
17959
|
-
return _getActiveElement(activeElement.shadowRoot);
|
|
17960
|
-
}
|
|
17961
|
-
return activeElement;
|
|
17962
|
-
};
|
|
17963
18003
|
var _tryFocus = function tryFocus(node) {
|
|
17964
18004
|
if (node === false) {
|
|
17965
18005
|
return;
|
|
@@ -18094,7 +18134,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18094
18134
|
var checkPointerDown = function checkPointerDown(e) {
|
|
18095
18135
|
var target = getActualTarget(e);
|
|
18096
18136
|
if (findContainerIndex(target, e) >= 0) {
|
|
18097
|
-
// allow the click since it
|
|
18137
|
+
// allow the click since it occurred inside the trap
|
|
18098
18138
|
return;
|
|
18099
18139
|
}
|
|
18100
18140
|
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
@@ -18277,6 +18317,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18277
18317
|
// EVENT LISTENERS
|
|
18278
18318
|
//
|
|
18279
18319
|
|
|
18320
|
+
/**
|
|
18321
|
+
* Adds listeners to the document necessary for trapping focus and attempts to set focus
|
|
18322
|
+
* to the configured initial focus node. Does nothing if the trap isn't active.
|
|
18323
|
+
* @returns {Promise<void> | undefined} A promise resolved once the initial focus node has
|
|
18324
|
+
* been focused when `delayInitialFocus=true`; `undefined` when focus is set synchronously
|
|
18325
|
+
* or the trap isn't active.
|
|
18326
|
+
*/
|
|
18280
18327
|
var addListeners = function addListeners() {
|
|
18281
18328
|
if (!state.active) {
|
|
18282
18329
|
return;
|
|
@@ -18287,9 +18334,20 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18287
18334
|
|
|
18288
18335
|
// Delay ensures that the focused element doesn't capture the event
|
|
18289
18336
|
// that caused the focus trap activation.
|
|
18290
|
-
|
|
18337
|
+
/** @type {Promise<void> | undefined} */
|
|
18338
|
+
var promise;
|
|
18339
|
+
if (config.delayInitialFocus) {
|
|
18340
|
+
// NOTE: Promise constructor callback is called synchronously, which is what we want
|
|
18341
|
+
// since we need to capture the timer ID immediately
|
|
18342
|
+
promise = new Promise(function (resolve) {
|
|
18343
|
+
state.delayInitialFocusTimer = delay(function () {
|
|
18344
|
+
_tryFocus(getInitialFocusNode());
|
|
18345
|
+
resolve();
|
|
18346
|
+
});
|
|
18347
|
+
});
|
|
18348
|
+
} else {
|
|
18291
18349
|
_tryFocus(getInitialFocusNode());
|
|
18292
|
-
}
|
|
18350
|
+
}
|
|
18293
18351
|
doc.addEventListener('focusin', checkFocusIn, true);
|
|
18294
18352
|
doc.addEventListener('mousedown', checkPointerDown, {
|
|
18295
18353
|
capture: true,
|
|
@@ -18308,7 +18366,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18308
18366
|
passive: false
|
|
18309
18367
|
});
|
|
18310
18368
|
doc.addEventListener('keydown', checkEscapeKey);
|
|
18311
|
-
return
|
|
18369
|
+
return promise;
|
|
18312
18370
|
};
|
|
18313
18371
|
|
|
18314
18372
|
/**
|
|
@@ -18396,17 +18454,27 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18396
18454
|
//
|
|
18397
18455
|
|
|
18398
18456
|
var checkDomRemoval = function checkDomRemoval(mutations) {
|
|
18457
|
+
var focusedNode = state.mostRecentlyFocusedNode;
|
|
18458
|
+
if (!focusedNode) {
|
|
18459
|
+
return;
|
|
18460
|
+
}
|
|
18399
18461
|
var isFocusedNodeRemoved = mutations.some(function (mutation) {
|
|
18400
18462
|
var removedNodes = Array.from(mutation.removedNodes);
|
|
18401
18463
|
return removedNodes.some(function (node) {
|
|
18402
|
-
return node ===
|
|
18464
|
+
return node === focusedNode || typeof node.contains === 'function' && node.contains(focusedNode);
|
|
18403
18465
|
});
|
|
18404
18466
|
});
|
|
18405
18467
|
|
|
18406
|
-
// If the currently focused is removed then browsers will move focus to the
|
|
18468
|
+
// If the currently focused node is removed then browsers will move focus to the
|
|
18407
18469
|
// <body> element. If this happens, try to move focus back into the trap.
|
|
18408
|
-
if (isFocusedNodeRemoved) {
|
|
18409
|
-
|
|
18470
|
+
if (isFocusedNodeRemoved && state.containers.some(function (container) {
|
|
18471
|
+
return container === null || container === void 0 ? void 0 : container.isConnected;
|
|
18472
|
+
})) {
|
|
18473
|
+
// Refresh tabbable state before resolving initial focus because
|
|
18474
|
+
// getInitialFocusNode() may fall back to the first tabbable node in the trap.
|
|
18475
|
+
updateTabbableNodes();
|
|
18476
|
+
var initialFocusNode = getInitialFocusNode();
|
|
18477
|
+
_tryFocus(initialFocusNode);
|
|
18410
18478
|
}
|
|
18411
18479
|
};
|
|
18412
18480
|
|
|
@@ -18466,17 +18534,32 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18466
18534
|
state.active = true;
|
|
18467
18535
|
state.paused = false;
|
|
18468
18536
|
state.nodeFocusedBeforeActivation = _getActiveElement(doc);
|
|
18469
|
-
onActivate === null || onActivate === void 0 || onActivate(
|
|
18537
|
+
onActivate === null || onActivate === void 0 || onActivate({
|
|
18538
|
+
trap: trap
|
|
18539
|
+
});
|
|
18470
18540
|
var finishActivation = function finishActivation() {
|
|
18471
18541
|
if (checkCanFocusTrap) {
|
|
18472
18542
|
updateTabbableNodes();
|
|
18473
18543
|
}
|
|
18474
|
-
|
|
18475
|
-
updateObservedNodes();
|
|
18476
|
-
if (config.isolateSubtrees) {
|
|
18544
|
+
var afterListeners = function afterListeners() {
|
|
18477
18545
|
trap._setSubtreeIsolation(true);
|
|
18546
|
+
updateObservedNodes();
|
|
18547
|
+
onPostActivate === null || onPostActivate === void 0 || onPostActivate({
|
|
18548
|
+
trap: trap
|
|
18549
|
+
});
|
|
18550
|
+
};
|
|
18551
|
+
|
|
18552
|
+
// NOTE: wait for initial focus node to get focused (whether activation is fully,
|
|
18553
|
+
// partially, or not asynchronous) before we potentially isolate the subtrees
|
|
18554
|
+
// with aria-hidden while focus is still in some other subtree and not yet in
|
|
18555
|
+
// the trap, resulting in some browsers (e.g. Chrome) logging to the console that
|
|
18556
|
+
// they, "Blocked aria-hidden on an element because its descendant retained focus..."
|
|
18557
|
+
var listenersPromise = addListeners();
|
|
18558
|
+
if (listenersPromise) {
|
|
18559
|
+
listenersPromise.then(afterListeners);
|
|
18560
|
+
} else {
|
|
18561
|
+
afterListeners();
|
|
18478
18562
|
}
|
|
18479
|
-
onPostActivate === null || onPostActivate === void 0 || onPostActivate();
|
|
18480
18563
|
};
|
|
18481
18564
|
if (checkCanFocusTrap) {
|
|
18482
18565
|
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
@@ -18525,16 +18608,26 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18525
18608
|
var onDeactivate = getOption(options, 'onDeactivate');
|
|
18526
18609
|
var onPostDeactivate = getOption(options, 'onPostDeactivate');
|
|
18527
18610
|
var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
|
|
18611
|
+
var delayReturnFocus = getOption(options, 'delayReturnFocus');
|
|
18528
18612
|
var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
|
|
18529
|
-
onDeactivate === null || onDeactivate === void 0 || onDeactivate(
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
|
|
18535
|
-
|
|
18613
|
+
onDeactivate === null || onDeactivate === void 0 || onDeactivate({
|
|
18614
|
+
trap: trap
|
|
18615
|
+
});
|
|
18616
|
+
var completeDeactivation = function completeDeactivation() {
|
|
18617
|
+
if (returnFocus) {
|
|
18618
|
+
_tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
18619
|
+
}
|
|
18620
|
+
onPostDeactivate === null || onPostDeactivate === void 0 || onPostDeactivate({
|
|
18621
|
+
trap: trap
|
|
18536
18622
|
});
|
|
18537
18623
|
};
|
|
18624
|
+
var finishDeactivation = function finishDeactivation() {
|
|
18625
|
+
if (delayReturnFocus && returnFocus) {
|
|
18626
|
+
delay(completeDeactivation);
|
|
18627
|
+
} else {
|
|
18628
|
+
completeDeactivation();
|
|
18629
|
+
}
|
|
18630
|
+
};
|
|
18538
18631
|
if (returnFocus && checkCanReturnFocus) {
|
|
18539
18632
|
checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
|
|
18540
18633
|
return this;
|
|
@@ -18569,7 +18662,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18569
18662
|
}
|
|
18570
18663
|
if (state.active) {
|
|
18571
18664
|
updateTabbableNodes();
|
|
18572
|
-
if (
|
|
18665
|
+
if (!state.paused) {
|
|
18573
18666
|
trap._setSubtreeIsolation(true);
|
|
18574
18667
|
}
|
|
18575
18668
|
}
|
|
@@ -18592,20 +18685,44 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
18592
18685
|
if (paused) {
|
|
18593
18686
|
var onPause = getOption(options, 'onPause');
|
|
18594
18687
|
var onPostPause = getOption(options, 'onPostPause');
|
|
18595
|
-
onPause === null || onPause === void 0 || onPause(
|
|
18688
|
+
onPause === null || onPause === void 0 || onPause({
|
|
18689
|
+
trap: trap
|
|
18690
|
+
});
|
|
18596
18691
|
removeListeners();
|
|
18597
|
-
updateObservedNodes();
|
|
18598
18692
|
trap._setSubtreeIsolation(false);
|
|
18599
|
-
|
|
18693
|
+
updateObservedNodes();
|
|
18694
|
+
onPostPause === null || onPostPause === void 0 || onPostPause({
|
|
18695
|
+
trap: trap
|
|
18696
|
+
});
|
|
18600
18697
|
} else {
|
|
18601
18698
|
var onUnpause = getOption(options, 'onUnpause');
|
|
18602
18699
|
var onPostUnpause = getOption(options, 'onPostUnpause');
|
|
18603
|
-
onUnpause === null || onUnpause === void 0 || onUnpause(
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18700
|
+
onUnpause === null || onUnpause === void 0 || onUnpause({
|
|
18701
|
+
trap: trap
|
|
18702
|
+
});
|
|
18703
|
+
var finishUnpause = function finishUnpause() {
|
|
18704
|
+
updateTabbableNodes();
|
|
18705
|
+
var afterListeners = function afterListeners() {
|
|
18706
|
+
trap._setSubtreeIsolation(true);
|
|
18707
|
+
updateObservedNodes();
|
|
18708
|
+
onPostUnpause === null || onPostUnpause === void 0 || onPostUnpause({
|
|
18709
|
+
trap: trap
|
|
18710
|
+
});
|
|
18711
|
+
};
|
|
18712
|
+
|
|
18713
|
+
// NOTE: wait for initial focus node to get focused (whether activation is fully,
|
|
18714
|
+
// partially, or not asynchronous) before we potentially isolate the subtrees
|
|
18715
|
+
// with aria-hidden while focus is still in some other subtree and not yet in
|
|
18716
|
+
// the trap, resulting in some browsers (e.g. Chrome) logging to the console that
|
|
18717
|
+
// they, "Blocked aria-hidden on an element because its descendant retained focus..."
|
|
18718
|
+
var listenersPromise = addListeners();
|
|
18719
|
+
if (listenersPromise) {
|
|
18720
|
+
listenersPromise.then(afterListeners);
|
|
18721
|
+
} else {
|
|
18722
|
+
afterListeners();
|
|
18723
|
+
}
|
|
18724
|
+
};
|
|
18725
|
+
finishUnpause();
|
|
18609
18726
|
}
|
|
18610
18727
|
return this;
|
|
18611
18728
|
}
|
|
@@ -19359,7 +19476,7 @@ const SeamlyActivityMonitor = ({
|
|
|
19359
19476
|
sendActive();
|
|
19360
19477
|
stopCountdown();
|
|
19361
19478
|
}
|
|
19362
|
-
if (timeStamp - prevSendTimestamp.current > activitySendDelay) {
|
|
19479
|
+
if (timeStamp - prevSendTimestamp.current > (/* inlined export .activitySendDelay */15000)) {
|
|
19363
19480
|
sendActive();
|
|
19364
19481
|
}
|
|
19365
19482
|
}, [sendAction, hasCountdown, isActive, stopCountdown, isMinimized]);
|
|
@@ -20124,7 +20241,7 @@ const SeamlyReadState = () => {
|
|
|
20124
20241
|
const {
|
|
20125
20242
|
sendPolite
|
|
20126
20243
|
} = useLiveRegion();
|
|
20127
|
-
const sendLive = (0,hooks_.useMemo)(() => debounce(sendPolite, unreadScreenReaderWait), [sendPolite]);
|
|
20244
|
+
const sendLive = (0,hooks_.useMemo)(() => debounce(sendPolite, (/* inlined export .unreadScreenReaderWait */2000)), [sendPolite]);
|
|
20128
20245
|
const prevIsVisible = (0,hooks_.useRef)(null);
|
|
20129
20246
|
const cancelSend = (0,hooks_.useRef)(null);
|
|
20130
20247
|
(0,hooks_.useEffect)(() => {
|
|
@@ -20425,7 +20542,7 @@ function useCharacterLimit(controlName) {
|
|
|
20425
20542
|
hasLimit,
|
|
20426
20543
|
limit
|
|
20427
20544
|
} = useEntryTextLimit();
|
|
20428
|
-
const debouncedSendAssertive = (0,hooks_.useMemo)(() => debounce(sendAssertive, maxCharacterSrDebounceDelay), [sendAssertive]);
|
|
20545
|
+
const debouncedSendAssertive = (0,hooks_.useMemo)(() => debounce(sendAssertive, (/* inlined export .maxCharacterSrDebounceDelay */300)), [sendAssertive]);
|
|
20429
20546
|
const validateLimit = (0,hooks_.useMemo)(() => {
|
|
20430
20547
|
return debounce((_reachedCharacterWarning, _remainingChars) => {
|
|
20431
20548
|
if (_reachedCharacterWarning) {
|
|
@@ -20433,13 +20550,13 @@ function useCharacterLimit(controlName) {
|
|
|
20433
20550
|
limit: _remainingChars
|
|
20434
20551
|
}));
|
|
20435
20552
|
}
|
|
20436
|
-
}, maxCharacterSrDebounceDelay);
|
|
20553
|
+
}, (/* inlined export .maxCharacterSrDebounceDelay */300));
|
|
20437
20554
|
}, [debouncedSendAssertive, t]);
|
|
20438
20555
|
const [{
|
|
20439
20556
|
value
|
|
20440
20557
|
}] = useFormControl(controlName);
|
|
20441
20558
|
const remainingChars = typeof limit === 'number' && hasLimit && value ? limit - value.length : limit;
|
|
20442
|
-
const reachedCharacterWarning = hasLimit && typeof remainingChars == 'number' ? remainingChars <= maxCharacterWarningLimit : false;
|
|
20559
|
+
const reachedCharacterWarning = hasLimit && typeof remainingChars == 'number' ? remainingChars <= (/* inlined export .maxCharacterWarningLimit */50) : false;
|
|
20443
20560
|
const reachedCharacterLimit = hasLimit && typeof remainingChars === 'number' ? remainingChars < 0 : false;
|
|
20444
20561
|
(0,hooks_.useEffect)(() => {
|
|
20445
20562
|
validateLimit(reachedCharacterWarning, remainingChars);
|
|
@@ -20847,7 +20964,7 @@ const transitionStartStates = {
|
|
|
20847
20964
|
const InOutTransition = ({
|
|
20848
20965
|
children,
|
|
20849
20966
|
isActive,
|
|
20850
|
-
timeout = defaultTransitionTimeMs,
|
|
20967
|
+
timeout = (/* inlined export .defaultTransitionTimeMs */300),
|
|
20851
20968
|
transitionStartState = transitionStartStates.notRendered,
|
|
20852
20969
|
onInTransitionComplete = () => {},
|
|
20853
20970
|
onOutTransitionComplete = () => {},
|
|
@@ -21447,9 +21564,12 @@ const TranslationOptions = ({
|
|
|
21447
21564
|
/* harmony default export */ const translation_options = (TranslationOptions);
|
|
21448
21565
|
;// ./src/javascripts/core/ui/hooks/use-click-outside.ts
|
|
21449
21566
|
|
|
21450
|
-
const useClickOutside = callback => {
|
|
21567
|
+
const useClickOutside = (callback, enabled = true) => {
|
|
21451
21568
|
const ref = (0,hooks_.useRef)(null);
|
|
21452
21569
|
(0,hooks_.useEffect)(() => {
|
|
21570
|
+
if (!enabled) {
|
|
21571
|
+
return undefined;
|
|
21572
|
+
}
|
|
21453
21573
|
const handler = el => {
|
|
21454
21574
|
if (ref.current && el.target instanceof HTMLElement && !ref.current.contains(el.target)) {
|
|
21455
21575
|
el.preventDefault();
|
|
@@ -21463,7 +21583,7 @@ const useClickOutside = callback => {
|
|
|
21463
21583
|
document.removeEventListener('click', handler, true);
|
|
21464
21584
|
document.removeEventListener('touchstart', handler, true);
|
|
21465
21585
|
};
|
|
21466
|
-
}, [callback, ref]);
|
|
21586
|
+
}, [callback, enabled, ref]);
|
|
21467
21587
|
return ref;
|
|
21468
21588
|
};
|
|
21469
21589
|
/* harmony default export */ const use_click_outside = (useClickOutside);
|
|
@@ -21484,6 +21604,7 @@ const OptionsFrame = ({
|
|
|
21484
21604
|
descriptionId,
|
|
21485
21605
|
cancelButtonText,
|
|
21486
21606
|
cancelButtonRef,
|
|
21607
|
+
clickOutsideEnabled = true,
|
|
21487
21608
|
disableButtonFocusing,
|
|
21488
21609
|
position = {
|
|
21489
21610
|
horizontal: 'left',
|
|
@@ -21511,7 +21632,7 @@ const OptionsFrame = ({
|
|
|
21511
21632
|
}
|
|
21512
21633
|
closePanel();
|
|
21513
21634
|
}, [closePanel, onCancel]);
|
|
21514
|
-
const container = use_click_outside(onCancelHandler);
|
|
21635
|
+
const container = use_click_outside(onCancelHandler, clickOutsideEnabled);
|
|
21515
21636
|
(0,hooks_.useEffect)(() => {
|
|
21516
21637
|
focusElement(container.current);
|
|
21517
21638
|
}, [container]);
|
|
@@ -21567,6 +21688,7 @@ const OptionsFrame = ({
|
|
|
21567
21688
|
|
|
21568
21689
|
|
|
21569
21690
|
function TranslationsOptionsDialog({
|
|
21691
|
+
clickOutsideEnabled,
|
|
21570
21692
|
onClose,
|
|
21571
21693
|
position
|
|
21572
21694
|
}) {
|
|
@@ -21581,6 +21703,7 @@ function TranslationsOptionsDialog({
|
|
|
21581
21703
|
description: t('translations.menu.description'),
|
|
21582
21704
|
descriptionId: descriptionId,
|
|
21583
21705
|
position: position,
|
|
21706
|
+
clickOutsideEnabled: clickOutsideEnabled,
|
|
21584
21707
|
disableButtonFocusing: true,
|
|
21585
21708
|
children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(translation_options, {
|
|
21586
21709
|
describedById: descriptionId,
|
|
@@ -21621,7 +21744,7 @@ function TranslationsOptionsButton({
|
|
|
21621
21744
|
setMenuIsOpen(false);
|
|
21622
21745
|
};
|
|
21623
21746
|
const handleToggleClick = () => {
|
|
21624
|
-
setMenuIsOpen(!
|
|
21747
|
+
setMenuIsOpen(isOpen => !isOpen);
|
|
21625
21748
|
};
|
|
21626
21749
|
const handleToggleKeyDown = e => {
|
|
21627
21750
|
if (getKey(e) === keyNames.ArrowDown) {
|
|
@@ -21639,6 +21762,7 @@ function TranslationsOptionsButton({
|
|
|
21639
21762
|
className: css_className('options__dialog'),
|
|
21640
21763
|
role: "dialog",
|
|
21641
21764
|
children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(options_dialog, {
|
|
21765
|
+
clickOutsideEnabled: menuIsOpen,
|
|
21642
21766
|
onClose: handleDialogClose,
|
|
21643
21767
|
position: position
|
|
21644
21768
|
})
|
|
@@ -22711,7 +22835,7 @@ const useSeamlyTyping = () => {
|
|
|
22711
22835
|
} else if (typingPeekahead && typingPeekahead.enabled) {
|
|
22712
22836
|
sendTypingState(true, e.target.value);
|
|
22713
22837
|
}
|
|
22714
|
-
}, typingTimeout);
|
|
22838
|
+
}, (/* inlined export .typingTimeout */2000));
|
|
22715
22839
|
}
|
|
22716
22840
|
if (typingTimerId.current) clearTimeout(typingTimerId.current);
|
|
22717
22841
|
if (sendEndTypingTimerId.current) clearTimeout(sendEndTypingTimerId.current);
|
|
@@ -22720,7 +22844,7 @@ const useSeamlyTyping = () => {
|
|
|
22720
22844
|
}, 300);
|
|
22721
22845
|
sendEndTypingTimerId.current = setTimeout(() => {
|
|
22722
22846
|
sendTypingState(false, e.target.value);
|
|
22723
|
-
}, typingTimeout);
|
|
22847
|
+
}, (/* inlined export .typingTimeout */2000));
|
|
22724
22848
|
};
|
|
22725
22849
|
};
|
|
22726
22850
|
const useSeamlyEntry = () => {
|
|
@@ -24655,20 +24779,18 @@ function appStore() {
|
|
|
24655
24779
|
};
|
|
24656
24780
|
}
|
|
24657
24781
|
;// ./node_modules/js-cookie/dist/js.cookie.mjs
|
|
24658
|
-
/*! js-cookie v3.0.
|
|
24659
|
-
/* eslint-disable no-var */
|
|
24782
|
+
/*! js-cookie v3.0.8 | MIT */
|
|
24660
24783
|
function js_cookie_assign (target) {
|
|
24661
24784
|
for (var i = 1; i < arguments.length; i++) {
|
|
24662
24785
|
var source = arguments[i];
|
|
24663
24786
|
for (var key in source) {
|
|
24787
|
+
if (key === '__proto__') continue
|
|
24664
24788
|
target[key] = source[key];
|
|
24665
24789
|
}
|
|
24666
24790
|
}
|
|
24667
24791
|
return target
|
|
24668
24792
|
}
|
|
24669
|
-
/* eslint-enable no-var */
|
|
24670
24793
|
|
|
24671
|
-
/* eslint-disable no-var */
|
|
24672
24794
|
var defaultConverter = {
|
|
24673
24795
|
read: function (value) {
|
|
24674
24796
|
if (value[0] === '"') {
|
|
@@ -24683,12 +24805,9 @@ var defaultConverter = {
|
|
|
24683
24805
|
)
|
|
24684
24806
|
}
|
|
24685
24807
|
};
|
|
24686
|
-
/* eslint-enable no-var */
|
|
24687
24808
|
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
function init (converter, defaultAttributes) {
|
|
24691
|
-
function set (name, value, attributes) {
|
|
24809
|
+
function init(converter, defaultAttributes) {
|
|
24810
|
+
function set(name, value, attributes) {
|
|
24692
24811
|
if (typeof document === 'undefined') {
|
|
24693
24812
|
return
|
|
24694
24813
|
}
|
|
@@ -24732,7 +24851,7 @@ function init (converter, defaultAttributes) {
|
|
|
24732
24851
|
name + '=' + converter.write(value, name) + stringifiedAttributes)
|
|
24733
24852
|
}
|
|
24734
24853
|
|
|
24735
|
-
function get
|
|
24854
|
+
function get(name) {
|
|
24736
24855
|
if (typeof document === 'undefined' || (arguments.length && !name)) {
|
|
24737
24856
|
return
|
|
24738
24857
|
}
|
|
@@ -24747,12 +24866,13 @@ function init (converter, defaultAttributes) {
|
|
|
24747
24866
|
|
|
24748
24867
|
try {
|
|
24749
24868
|
var found = decodeURIComponent(parts[0]);
|
|
24750
|
-
jar[found] = converter.read(value, found);
|
|
24751
|
-
|
|
24869
|
+
if (!(found in jar)) jar[found] = converter.read(value, found);
|
|
24752
24870
|
if (name === found) {
|
|
24753
24871
|
break
|
|
24754
24872
|
}
|
|
24755
|
-
} catch (
|
|
24873
|
+
} catch (_e) {
|
|
24874
|
+
// Do nothing...
|
|
24875
|
+
}
|
|
24756
24876
|
}
|
|
24757
24877
|
|
|
24758
24878
|
return name ? jar[name] : jar
|
|
@@ -24760,8 +24880,8 @@ function init (converter, defaultAttributes) {
|
|
|
24760
24880
|
|
|
24761
24881
|
return Object.create(
|
|
24762
24882
|
{
|
|
24763
|
-
set,
|
|
24764
|
-
get,
|
|
24883
|
+
set: set,
|
|
24884
|
+
get: get,
|
|
24765
24885
|
remove: function (name, attributes) {
|
|
24766
24886
|
set(
|
|
24767
24887
|
name,
|
|
@@ -24786,7 +24906,6 @@ function init (converter, defaultAttributes) {
|
|
|
24786
24906
|
}
|
|
24787
24907
|
|
|
24788
24908
|
var api = init(defaultConverter, { path: '/' });
|
|
24789
|
-
/* eslint-enable no-var */
|
|
24790
24909
|
|
|
24791
24910
|
|
|
24792
24911
|
|