@seamly/web-ui 21.0.1 → 21.0.2-beta.3

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.
@@ -3826,37 +3826,37 @@ function arrObjKeys(obj, inspect) {
3826
3826
  "use strict";
3827
3827
  __webpack_require__.r(__webpack_exports__);
3828
3828
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3829
- /* harmony export */ "Children": () => (/* binding */ O),
3829
+ /* harmony export */ "Children": () => (/* binding */ A),
3830
3830
  /* harmony export */ "Component": () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Component),
3831
3831
  /* harmony export */ "Fragment": () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
3832
- /* harmony export */ "PureComponent": () => (/* binding */ w),
3833
- /* harmony export */ "StrictMode": () => (/* binding */ vn),
3834
- /* harmony export */ "Suspense": () => (/* binding */ D),
3835
- /* harmony export */ "SuspenseList": () => (/* binding */ V),
3836
- /* harmony export */ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED": () => (/* binding */ rn),
3837
- /* harmony export */ "cloneElement": () => (/* binding */ cn),
3832
+ /* harmony export */ "PureComponent": () => (/* binding */ E),
3833
+ /* harmony export */ "StrictMode": () => (/* binding */ hn),
3834
+ /* harmony export */ "Suspense": () => (/* binding */ U),
3835
+ /* harmony export */ "SuspenseList": () => (/* binding */ M),
3836
+ /* harmony export */ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED": () => (/* binding */ en),
3837
+ /* harmony export */ "cloneElement": () => (/* binding */ ln),
3838
3838
  /* harmony export */ "createContext": () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
3839
3839
  /* harmony export */ "createElement": () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
3840
- /* harmony export */ "createFactory": () => (/* binding */ on),
3841
- /* harmony export */ "createPortal": () => (/* binding */ j),
3840
+ /* harmony export */ "createFactory": () => (/* binding */ un),
3841
+ /* harmony export */ "createPortal": () => (/* binding */ $),
3842
3842
  /* harmony export */ "createRef": () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createRef),
3843
- /* harmony export */ "default": () => (/* binding */ bn),
3844
- /* harmony export */ "findDOMNode": () => (/* binding */ an),
3845
- /* harmony export */ "flushSync": () => (/* binding */ hn),
3846
- /* harmony export */ "forwardRef": () => (/* binding */ k),
3847
- /* harmony export */ "hydrate": () => (/* binding */ q),
3848
- /* harmony export */ "isValidElement": () => (/* binding */ ln),
3849
- /* harmony export */ "lazy": () => (/* binding */ M),
3850
- /* harmony export */ "memo": () => (/* binding */ R),
3851
- /* harmony export */ "render": () => (/* binding */ Y),
3852
- /* harmony export */ "startTransition": () => (/* binding */ dn),
3853
- /* harmony export */ "unmountComponentAtNode": () => (/* binding */ fn),
3854
- /* harmony export */ "unstable_batchedUpdates": () => (/* binding */ sn),
3855
- /* harmony export */ "useDeferredValue": () => (/* binding */ pn),
3856
- /* harmony export */ "useInsertionEffect": () => (/* binding */ yn),
3857
- /* harmony export */ "useSyncExternalStore": () => (/* binding */ _n),
3858
- /* harmony export */ "useTransition": () => (/* binding */ mn),
3859
- /* harmony export */ "version": () => (/* binding */ un)
3843
+ /* harmony export */ "default": () => (/* binding */ _n),
3844
+ /* harmony export */ "findDOMNode": () => (/* binding */ fn),
3845
+ /* harmony export */ "flushSync": () => (/* binding */ sn),
3846
+ /* harmony export */ "forwardRef": () => (/* binding */ N),
3847
+ /* harmony export */ "hydrate": () => (/* binding */ Y),
3848
+ /* harmony export */ "isValidElement": () => (/* binding */ on),
3849
+ /* harmony export */ "lazy": () => (/* binding */ F),
3850
+ /* harmony export */ "memo": () => (/* binding */ w),
3851
+ /* harmony export */ "render": () => (/* binding */ Z),
3852
+ /* harmony export */ "startTransition": () => (/* binding */ vn),
3853
+ /* harmony export */ "unmountComponentAtNode": () => (/* binding */ cn),
3854
+ /* harmony export */ "unstable_batchedUpdates": () => (/* binding */ an),
3855
+ /* harmony export */ "useDeferredValue": () => (/* binding */ dn),
3856
+ /* harmony export */ "useInsertionEffect": () => (/* binding */ mn),
3857
+ /* harmony export */ "useSyncExternalStore": () => (/* binding */ yn),
3858
+ /* harmony export */ "useTransition": () => (/* binding */ pn),
3859
+ /* harmony export */ "version": () => (/* binding */ rn)
3860
3860
  /* harmony export */ });
3861
3861
  /* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(210);
3862
3862
  /* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(preact__WEBPACK_IMPORTED_MODULE_0__);
@@ -3865,7 +3865,7 @@ __webpack_require__.r(__webpack_exports__);
3865
3865
  /* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
3866
3866
  /* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","createContext","createElement","createRef","Children","PureComponent","StrictMode","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","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__]
3867
3867
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
3868
- function g(n,t){for(var e in t)n[e]=t[e];return n}function C(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 E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n}function R(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(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.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var x=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),x&&x(n)};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},O={map:A,forEach:A,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},T=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);T(n,t,e,r)};var I=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function L(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=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n)},(D.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},D.prototype.componentWillUnmount=function(){this.t=[]},D.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]=L(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.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function P(n){return this.getChildContext=function(){return n.context},n.children}function $(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function j(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)($,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u()};e?e(o):o()}},V.prototype.render=function(n){this.u=null,this.o=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.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t)})};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,B=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,H="undefined"!=typeof document,Z=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Y(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 q(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={},["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 G=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return G&&(n=G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={configurable:!0,get:function(){return this.class}},tn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];H&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Z(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&B.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l)}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==t&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),n.props=u,e.class!=e.className&&(nn.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",nn))}n.$$typeof=z,tn&&tn(n)};var en=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){en&&en(n),X=n.__c};var rn={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value}}}},un="17.0.2";function on(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function ln(n){return!!n&&n.$$typeof===z}function cn(n){return ln(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function fn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function an(n){return n&&(n.base||1===n.nodeType&&n)||null}var sn=function(n,t){return n(t)},hn=function(n,t){return n(t)},vn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;function dn(n){n()}function pn(n){return n}function mn(){return[!1,dn]}var yn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function _n(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var bn={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:yn,useTransition:mn,useDeferredValue:pn,useSyncExternalStore:_n,startTransition:dn,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:"17.0.2",Children:O,render:Y,hydrate:q,unmountComponentAtNode:fn,createPortal:j,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:on,cloneElement:cn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:ln,findDOMNode:an,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:w,memo:R,forwardRef:k,flushSync:hn,unstable_batchedUpdates:sn,StrictMode:vn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:rn};
3868
+ function g(n,t){for(var e in t)n[e]=t[e];return n}function C(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 E(n){this.props=n}function w(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(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.prototype.isReactComponent=!0,u.__f=!0,u}(E.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var R=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),R&&R(n)};var x="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function N(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=x,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var k=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},A={map:k,forEach:k,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 T=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function I(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=null),n.__k=n.__k&&n.__k.map(function(n){return I(n,t,e)})),n}function L(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function U(){this.__u=0,this.t=null,this.__b=null}function D(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function F(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function M(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),T&&T(n)},(U.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=D(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=L(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},U.prototype.componentWillUnmount=function(){this.t=[]},U.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]=I(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.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var V=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function W(n){return this.getChildContext=function(){return n.context},n.children}function P(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(W,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function $(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(P,{__v:n,i:e});return r.containerInfo=e,r}(M.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=D(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),V(t,n,r)):u()};e?e(o):o()}},M.prototype.render=function(n){this.u=null,this.o=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.o.set(t[e],this.u=[1,0,this.u]);return n.children},M.prototype.componentDidUpdate=M.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){V(n,e,t)})};var j="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,z=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|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]/,B="undefined"!=typeof document,H=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function Z(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 Y(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={},["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 q=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function G(){}function J(){return this.cancelBubble}function K(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return q&&(n=q(n)),n.persist=G,n.isPropagationStopped=J,n.isDefaultPrevented=K,n.nativeEvent=n};var Q,X={configurable:!0,get:function(){return this.class}},nn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){var t=n.type,e=n.props,u=e;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in u={},e){var l=e[i];B&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in e&&null==l||("defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===l?l="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!H(e.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&z.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),u[i]&&(i="oninputCapture")),u[i]=l)}"select"==t&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==t&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),n.props=u,e.class!=e.className&&(X.enumerable="className"in e,null!=e.className&&(u.class=e.className),Object.defineProperty(u,"className",X))}n.$$typeof=j,nn&&nn(n)};var tn=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){tn&&tn(n),Q=n.__c};var en={ReactCurrentDispatcher:{current:{readContext:function(n){return Q.__n[n.__c].props.value}}}},rn="17.0.2";function un(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function on(n){return!!n&&n.$$typeof===j}function ln(n){return on(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function cn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function fn(n){return n&&(n.base||1===n.nodeType&&n)||null}var an=function(n,t){return n(t)},sn=function(n,t){return n(t)},hn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;function vn(n){n()}function dn(n){return n}function pn(){return[!1,vn]}var mn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function yn(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.v=t,u.__!==t()&&o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return u.__!==u.v()&&o({h:u}),n(function(){u.__!==u.v()&&o({h:u})})},[n]),e}var _n={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:mn,useTransition:pn,useDeferredValue:dn,useSyncExternalStore:yn,startTransition:vn,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:"17.0.2",Children:A,render:Z,hydrate:Y,unmountComponentAtNode:cn,createPortal:$,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:un,cloneElement:ln,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:on,findDOMNode:fn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:E,memo:w,forwardRef:N,flushSync:sn,unstable_batchedUpdates:an,StrictMode:hn,Suspense:U,SuspenseList:M,lazy:F,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:en};
3869
3869
  //# sourceMappingURL=compat.module.js.map
3870
3870
 
3871
3871
 
@@ -7257,7 +7257,7 @@ class API {
7257
7257
  (_a = this.conversation) === null || _a === void 0 ? void 0 : _a.onConnection(connectionState => {
7258
7258
  const connected = connectionState === 'join_channel_succeeded';
7259
7259
  const ready = connectionState === 'attach_channel_succeeded';
7260
- if (waitForReady ? ready : connected || ready) {
7260
+ if (connected || ready) {
7261
7261
  this.send(command, payload, waitForReady);
7262
7262
  }
7263
7263
  });
@@ -7355,7 +7355,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_layoutMode = n
7355
7355
  return {
7356
7356
  clientName: "@seamly/web-ui",
7357
7357
  clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
7358
- clientVersion: "21.0.1",
7358
+ clientVersion: "21.0.2-beta.2",
7359
7359
  currentUrl: window.location.toString(),
7360
7360
  screenResolution: `${window.screen.width}x${window.screen.height}`,
7361
7361
  timezone: getTimeZone(),
@@ -16448,21 +16448,24 @@ var isFocusable = function isFocusable(node, options) {
16448
16448
 
16449
16449
  ;// CONCATENATED MODULE: ./node_modules/focus-trap/dist/focus-trap.esm.js
16450
16450
  /*!
16451
- * focus-trap 7.1.0
16451
+ * focus-trap 7.0.0
16452
16452
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
16453
16453
  */
16454
16454
 
16455
16455
 
16456
16456
  function focus_trap_esm_ownKeys(object, enumerableOnly) {
16457
16457
  var keys = Object.keys(object);
16458
+
16458
16459
  if (Object.getOwnPropertySymbols) {
16459
16460
  var symbols = Object.getOwnPropertySymbols(object);
16460
16461
  enumerableOnly && (symbols = symbols.filter(function (sym) {
16461
16462
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
16462
16463
  })), keys.push.apply(keys, symbols);
16463
16464
  }
16465
+
16464
16466
  return keys;
16465
16467
  }
16468
+
16466
16469
  function focus_trap_esm_objectSpread2(target) {
16467
16470
  for (var i = 1; i < arguments.length; i++) {
16468
16471
  var source = null != arguments[i] ? arguments[i] : {};
@@ -16472,8 +16475,10 @@ function focus_trap_esm_objectSpread2(target) {
16472
16475
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
16473
16476
  });
16474
16477
  }
16478
+
16475
16479
  return target;
16476
16480
  }
16481
+
16477
16482
  function focus_trap_esm_defineProperty(obj, key, value) {
16478
16483
  if (key in obj) {
16479
16484
  Object.defineProperty(obj, key, {
@@ -16485,52 +16490,64 @@ function focus_trap_esm_defineProperty(obj, key, value) {
16485
16490
  } else {
16486
16491
  obj[key] = value;
16487
16492
  }
16493
+
16488
16494
  return obj;
16489
16495
  }
16490
16496
 
16491
- var rooTrapStack = [];
16492
- var activeFocusTraps = {
16493
- activateTrap: function activateTrap(trapStack, trap) {
16494
- if (trapStack.length > 0) {
16495
- var activeTrap = trapStack[trapStack.length - 1];
16496
- if (activeTrap !== trap) {
16497
- activeTrap.pause();
16497
+ var activeFocusTraps = function () {
16498
+ var trapQueue = [];
16499
+ return {
16500
+ activateTrap: function activateTrap(trap) {
16501
+ if (trapQueue.length > 0) {
16502
+ var activeTrap = trapQueue[trapQueue.length - 1];
16503
+
16504
+ if (activeTrap !== trap) {
16505
+ activeTrap.pause();
16506
+ }
16507
+ }
16508
+
16509
+ var trapIndex = trapQueue.indexOf(trap);
16510
+
16511
+ if (trapIndex === -1) {
16512
+ trapQueue.push(trap);
16513
+ } else {
16514
+ // move this existing trap to the front of the queue
16515
+ trapQueue.splice(trapIndex, 1);
16516
+ trapQueue.push(trap);
16517
+ }
16518
+ },
16519
+ deactivateTrap: function deactivateTrap(trap) {
16520
+ var trapIndex = trapQueue.indexOf(trap);
16521
+
16522
+ if (trapIndex !== -1) {
16523
+ trapQueue.splice(trapIndex, 1);
16524
+ }
16525
+
16526
+ if (trapQueue.length > 0) {
16527
+ trapQueue[trapQueue.length - 1].unpause();
16498
16528
  }
16499
16529
  }
16500
- var trapIndex = trapStack.indexOf(trap);
16501
- if (trapIndex === -1) {
16502
- trapStack.push(trap);
16503
- } else {
16504
- // move this existing trap to the front of the queue
16505
- trapStack.splice(trapIndex, 1);
16506
- trapStack.push(trap);
16507
- }
16508
- },
16509
- deactivateTrap: function deactivateTrap(trapStack, trap) {
16510
- var trapIndex = trapStack.indexOf(trap);
16511
- if (trapIndex !== -1) {
16512
- trapStack.splice(trapIndex, 1);
16513
- }
16514
- if (trapStack.length > 0) {
16515
- trapStack[trapStack.length - 1].unpause();
16516
- }
16517
- }
16518
- };
16530
+ };
16531
+ }();
16532
+
16519
16533
  var isSelectableInput = function isSelectableInput(node) {
16520
16534
  return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
16521
16535
  };
16536
+
16522
16537
  var isEscapeEvent = function isEscapeEvent(e) {
16523
16538
  return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
16524
16539
  };
16540
+
16525
16541
  var isTabEvent = function isTabEvent(e) {
16526
16542
  return e.key === 'Tab' || e.keyCode === 9;
16527
16543
  };
16544
+
16528
16545
  var delay = function delay(fn) {
16529
16546
  return setTimeout(fn, 0);
16530
- };
16531
-
16532
- // Array.find/findIndex() are not supported on IE; this replicates enough
16547
+ }; // Array.find/findIndex() are not supported on IE; this replicates enough
16533
16548
  // of Array.findIndex() for our needs
16549
+
16550
+
16534
16551
  var findIndex = function findIndex(arr, fn) {
16535
16552
  var idx = -1;
16536
16553
  arr.every(function (value, i) {
@@ -16541,10 +16558,8 @@ var findIndex = function findIndex(arr, fn) {
16541
16558
 
16542
16559
  return true; // next
16543
16560
  });
16544
-
16545
16561
  return idx;
16546
16562
  };
16547
-
16548
16563
  /**
16549
16564
  * Get an option's value when it could be a plain value, or a handler that provides
16550
16565
  * the value.
@@ -16552,12 +16567,16 @@ var findIndex = function findIndex(arr, fn) {
16552
16567
  * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
16553
16568
  * @returns {*} The `value`, or the handler's returned value.
16554
16569
  */
16570
+
16571
+
16555
16572
  var valueOrHandler = function valueOrHandler(value) {
16556
16573
  for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
16557
16574
  params[_key - 1] = arguments[_key];
16558
16575
  }
16576
+
16559
16577
  return typeof value === 'function' ? value.apply(void 0, params) : value;
16560
16578
  };
16579
+
16561
16580
  var getActualTarget = function getActualTarget(event) {
16562
16581
  // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
16563
16582
  // shadow host. However, event.target.composedPath() will be an array of
@@ -16568,16 +16587,18 @@ var getActualTarget = function getActualTarget(event) {
16568
16587
  // composedPath()[0] === event.target always).
16569
16588
  return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
16570
16589
  };
16590
+
16571
16591
  var createFocusTrap = function createFocusTrap(elements, userOptions) {
16572
16592
  // SSR: a live trap shouldn't be created in this type of environment so this
16573
16593
  // should be safe code to execute if the `document` option isn't specified
16574
16594
  var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
16575
- var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || rooTrapStack;
16595
+
16576
16596
  var config = focus_trap_esm_objectSpread2({
16577
16597
  returnFocusOnDeactivate: true,
16578
16598
  escapeDeactivates: true,
16579
16599
  delayInitialFocus: true
16580
16600
  }, userOptions);
16601
+
16581
16602
  var state = {
16582
16603
  // containers given to createFocusTrap()
16583
16604
  // @type {Array<HTMLElement>}
@@ -16597,7 +16618,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16597
16618
  // }>}
16598
16619
  containerGroups: [],
16599
16620
  // same order/length as `containers` list
16600
-
16601
16621
  // references to objects in `containerGroups`, but only those that actually have
16602
16622
  // tabbable nodes in them
16603
16623
  // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
@@ -16621,10 +16641,10 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16621
16641
  * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
16622
16642
  * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
16623
16643
  */
16644
+
16624
16645
  var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
16625
16646
  return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
16626
16647
  };
16627
-
16628
16648
  /**
16629
16649
  * Finds the index of the container that contains the element.
16630
16650
  * @param {HTMLElement} element
@@ -16632,15 +16652,16 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16632
16652
  * `state.containerGroups` (the order/length of these lists are the same); -1
16633
16653
  * if the element isn't found.
16634
16654
  */
16655
+
16656
+
16635
16657
  var findContainerIndex = function findContainerIndex(element) {
16636
16658
  // NOTE: search `containerGroups` because it's possible a group contains no tabbable
16637
16659
  // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
16638
16660
  // and we still need to find the element in there
16639
16661
  return state.containerGroups.findIndex(function (_ref) {
16640
16662
  var container = _ref.container,
16641
- tabbableNodes = _ref.tabbableNodes;
16642
- return container.contains(element) ||
16643
- // fall back to explicit tabbable search which will take into consideration any
16663
+ tabbableNodes = _ref.tabbableNodes;
16664
+ return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any
16644
16665
  // web components if the `tabbableOptions.getShadowRoot` option was used for
16645
16666
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
16646
16667
  // look inside web components even if open)
@@ -16649,7 +16670,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16649
16670
  });
16650
16671
  });
16651
16672
  };
16652
-
16653
16673
  /**
16654
16674
  * Gets the node for the given option, which is expected to be an option that
16655
16675
  * can be either a DOM node, a string that is a selector to get a node, `false`
@@ -16663,14 +16683,19 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16663
16683
  * @throws {Error} If the option is set, not `false`, and is not, or does not
16664
16684
  * resolve to a node.
16665
16685
  */
16686
+
16687
+
16666
16688
  var getNodeForOption = function getNodeForOption(optionName) {
16667
16689
  var optionValue = config[optionName];
16690
+
16668
16691
  if (typeof optionValue === 'function') {
16669
16692
  for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
16670
16693
  params[_key2 - 1] = arguments[_key2];
16671
16694
  }
16695
+
16672
16696
  optionValue = optionValue.apply(void 0, params);
16673
16697
  }
16698
+
16674
16699
  if (optionValue === true) {
16675
16700
  optionValue = undefined; // use default value
16676
16701
  }
@@ -16678,51 +16703,56 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16678
16703
  if (!optionValue) {
16679
16704
  if (optionValue === undefined || optionValue === false) {
16680
16705
  return optionValue;
16681
- }
16682
- // else, empty string (invalid), null (invalid), 0 (invalid)
16706
+ } // else, empty string (invalid), null (invalid), 0 (invalid)
16707
+
16683
16708
 
16684
16709
  throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
16685
16710
  }
16711
+
16686
16712
  var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
16687
16713
 
16688
16714
  if (typeof optionValue === 'string') {
16689
16715
  node = doc.querySelector(optionValue); // resolve to node, or null if fails
16716
+
16690
16717
  if (!node) {
16691
16718
  throw new Error("`".concat(optionName, "` as selector refers to no known node"));
16692
16719
  }
16693
16720
  }
16721
+
16694
16722
  return node;
16695
16723
  };
16724
+
16696
16725
  var getInitialFocusNode = function getInitialFocusNode() {
16697
- var node = getNodeForOption('initialFocus');
16726
+ var node = getNodeForOption('initialFocus'); // false explicitly indicates we want no initialFocus at all
16698
16727
 
16699
- // false explicitly indicates we want no initialFocus at all
16700
16728
  if (node === false) {
16701
16729
  return false;
16702
16730
  }
16731
+
16703
16732
  if (node === undefined) {
16704
16733
  // option not specified: use fallback options
16705
16734
  if (findContainerIndex(doc.activeElement) >= 0) {
16706
16735
  node = doc.activeElement;
16707
16736
  } else {
16708
16737
  var firstTabbableGroup = state.tabbableGroups[0];
16709
- var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
16738
+ var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode; // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
16710
16739
 
16711
- // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
16712
16740
  node = firstTabbableNode || getNodeForOption('fallbackFocus');
16713
16741
  }
16714
16742
  }
16743
+
16715
16744
  if (!node) {
16716
16745
  throw new Error('Your focus-trap needs to have at least one focusable element');
16717
16746
  }
16747
+
16718
16748
  return node;
16719
16749
  };
16750
+
16720
16751
  var updateTabbableNodes = function updateTabbableNodes() {
16721
16752
  state.containerGroups = state.containers.map(function (container) {
16722
- var tabbableNodes = tabbable(container, config.tabbableOptions);
16723
-
16724
- // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
16753
+ var tabbableNodes = tabbable(container, config.tabbableOptions); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
16725
16754
  // are a superset of tabbable nodes
16755
+
16726
16756
  var focusableNodes = focusable(container, config.tabbableOptions);
16727
16757
  return {
16728
16758
  container: container,
@@ -16730,6 +16760,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16730
16760
  focusableNodes: focusableNodes,
16731
16761
  firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
16732
16762
  lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
16763
+
16733
16764
  /**
16734
16765
  * Finds the __tabbable__ node that follows the given node in the specified direction,
16735
16766
  * in this container, if any.
@@ -16753,14 +16784,17 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16753
16784
  var nodeIdx = focusableNodes.findIndex(function (n) {
16754
16785
  return n === node;
16755
16786
  });
16787
+
16756
16788
  if (nodeIdx < 0) {
16757
16789
  return undefined;
16758
16790
  }
16791
+
16759
16792
  if (forward) {
16760
16793
  return focusableNodes.slice(nodeIdx + 1).find(function (n) {
16761
16794
  return isTabbable(n, config.tabbableOptions);
16762
16795
  });
16763
16796
  }
16797
+
16764
16798
  return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
16765
16799
  return isTabbable(n, config.tabbableOptions);
16766
16800
  });
@@ -16769,46 +16803,53 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16769
16803
  });
16770
16804
  state.tabbableGroups = state.containerGroups.filter(function (group) {
16771
16805
  return group.tabbableNodes.length > 0;
16772
- });
16806
+ }); // throw if no groups have tabbable nodes and we don't have a fallback focus node either
16773
16807
 
16774
- // throw if no groups have tabbable nodes and we don't have a fallback focus node either
16775
16808
  if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
16776
16809
  ) {
16777
16810
  throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
16778
16811
  }
16779
16812
  };
16813
+
16780
16814
  var tryFocus = function tryFocus(node) {
16781
16815
  if (node === false) {
16782
16816
  return;
16783
16817
  }
16818
+
16784
16819
  if (node === doc.activeElement) {
16785
16820
  return;
16786
16821
  }
16822
+
16787
16823
  if (!node || !node.focus) {
16788
16824
  tryFocus(getInitialFocusNode());
16789
16825
  return;
16790
16826
  }
16827
+
16791
16828
  node.focus({
16792
16829
  preventScroll: !!config.preventScroll
16793
16830
  });
16794
16831
  state.mostRecentlyFocusedNode = node;
16832
+
16795
16833
  if (isSelectableInput(node)) {
16796
16834
  node.select();
16797
16835
  }
16798
16836
  };
16837
+
16799
16838
  var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
16800
16839
  var node = getNodeForOption('setReturnFocus', previousActiveElement);
16801
16840
  return node ? node : node === false ? false : previousActiveElement;
16802
- };
16803
-
16804
- // This needs to be done on mousedown and touchstart instead of click
16841
+ }; // This needs to be done on mousedown and touchstart instead of click
16805
16842
  // so that it precedes the focus event.
16843
+
16844
+
16806
16845
  var checkPointerDown = function checkPointerDown(e) {
16807
16846
  var target = getActualTarget(e);
16847
+
16808
16848
  if (findContainerIndex(target) >= 0) {
16809
16849
  // allow the click since it ocurred inside the trap
16810
16850
  return;
16811
16851
  }
16852
+
16812
16853
  if (valueOrHandler(config.clickOutsideDeactivates, e)) {
16813
16854
  // immediately deactivate the trap
16814
16855
  trap.deactivate({
@@ -16826,26 +16867,25 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16826
16867
  returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
16827
16868
  });
16828
16869
  return;
16829
- }
16830
-
16831
- // This is needed for mobile devices.
16870
+ } // This is needed for mobile devices.
16832
16871
  // (If we'll only let `click` events through,
16833
16872
  // then on mobile they will be blocked anyways if `touchstart` is blocked.)
16873
+
16874
+
16834
16875
  if (valueOrHandler(config.allowOutsideClick, e)) {
16835
16876
  // allow the click outside the trap to take place
16836
16877
  return;
16837
- }
16878
+ } // otherwise, prevent the click
16879
+
16838
16880
 
16839
- // otherwise, prevent the click
16840
16881
  e.preventDefault();
16841
- };
16882
+ }; // In case focus escapes the trap for some strange reason, pull it back in.
16883
+
16842
16884
 
16843
- // In case focus escapes the trap for some strange reason, pull it back in.
16844
16885
  var checkFocusIn = function checkFocusIn(e) {
16845
16886
  var target = getActualTarget(e);
16846
- var targetContained = findContainerIndex(target) >= 0;
16887
+ var targetContained = findContainerIndex(target) >= 0; // In Firefox when you Tab out of an iframe the Document is briefly focused.
16847
16888
 
16848
- // In Firefox when you Tab out of an iframe the Document is briefly focused.
16849
16889
  if (targetContained || target instanceof Document) {
16850
16890
  if (targetContained) {
16851
16891
  state.mostRecentlyFocusedNode = target;
@@ -16855,22 +16895,24 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16855
16895
  e.stopImmediatePropagation();
16856
16896
  tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
16857
16897
  }
16858
- };
16859
-
16860
- // Hijack Tab events on the first and last focusable nodes of the trap,
16898
+ }; // Hijack Tab events on the first and last focusable nodes of the trap,
16861
16899
  // in order to prevent focus from escaping. If it escapes for even a
16862
16900
  // moment it can end up scrolling the page and causing confusion so we
16863
16901
  // kind of need to capture the action at the keydown phase.
16902
+
16903
+
16864
16904
  var checkTab = function checkTab(e) {
16865
16905
  var target = getActualTarget(e);
16866
16906
  updateTabbableNodes();
16867
16907
  var destinationNode = null;
16908
+
16868
16909
  if (state.tabbableGroups.length > 0) {
16869
16910
  // make sure the target is actually contained in a group
16870
16911
  // NOTE: the target may also be the container itself if it's focusable
16871
16912
  // with tabIndex='-1' and was given initial focus
16872
16913
  var containerIndex = findContainerIndex(target);
16873
16914
  var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
16915
+
16874
16916
  if (containerIndex < 0) {
16875
16917
  // target not found in any group: quite possible focus has escaped the trap,
16876
16918
  // so bring it back in to...
@@ -16883,12 +16925,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16883
16925
  }
16884
16926
  } else if (e.shiftKey) {
16885
16927
  // REVERSE
16886
-
16887
16928
  // is the target the first tabbable node in a group?
16888
16929
  var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
16889
16930
  var firstTabbableNode = _ref2.firstTabbableNode;
16890
16931
  return target === firstTabbableNode;
16891
16932
  });
16933
+
16892
16934
  if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
16893
16935
  // an exception case where the target is either the container itself, or
16894
16936
  // a non-tabbable node that was given focus (i.e. tabindex is negative
@@ -16898,6 +16940,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16898
16940
  // first tabbable node, and go to the last tabbable node of the LAST group
16899
16941
  startOfGroupIndex = containerIndex;
16900
16942
  }
16943
+
16901
16944
  if (startOfGroupIndex >= 0) {
16902
16945
  // YES: then shift+tab should go to the last tabbable node in the
16903
16946
  // previous group (and wrap around to the last tabbable node of
@@ -16908,12 +16951,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16908
16951
  }
16909
16952
  } else {
16910
16953
  // FORWARD
16911
-
16912
16954
  // is the target the last tabbable node in a group?
16913
16955
  var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
16914
16956
  var lastTabbableNode = _ref3.lastTabbableNode;
16915
16957
  return target === lastTabbableNode;
16916
16958
  });
16959
+
16917
16960
  if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
16918
16961
  // an exception case where the target is the container itself, or
16919
16962
  // a non-tabbable node that was given focus (i.e. tabindex is negative
@@ -16923,11 +16966,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16923
16966
  // last tabbable node, and go to the first tabbable node of the FIRST group
16924
16967
  lastOfGroupIndex = containerIndex;
16925
16968
  }
16969
+
16926
16970
  if (lastOfGroupIndex >= 0) {
16927
16971
  // YES: then tab should go to the first tabbable node in the next
16928
16972
  // group (and wrap around to the first tabbable node of the FIRST
16929
16973
  // group if it's the last tabbable node of the LAST group)
16930
16974
  var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
16975
+
16931
16976
  var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
16932
16977
  destinationNode = _destinationGroup.firstTabbableNode;
16933
16978
  }
@@ -16936,11 +16981,12 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16936
16981
  // NOTE: the fallbackFocus option does not support returning false to opt-out
16937
16982
  destinationNode = getNodeForOption('fallbackFocus');
16938
16983
  }
16984
+
16939
16985
  if (destinationNode) {
16940
16986
  e.preventDefault();
16941
16987
  tryFocus(destinationNode);
16942
- }
16943
- // else, let the browser take care of [shift+]tab and move the focus
16988
+ } // else, let the browser take care of [shift+]tab and move the focus
16989
+
16944
16990
  };
16945
16991
 
16946
16992
  var checkKey = function checkKey(e) {
@@ -16949,40 +16995,44 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
16949
16995
  trap.deactivate();
16950
16996
  return;
16951
16997
  }
16998
+
16952
16999
  if (isTabEvent(e)) {
16953
17000
  checkTab(e);
16954
17001
  return;
16955
17002
  }
16956
17003
  };
17004
+
16957
17005
  var checkClick = function checkClick(e) {
16958
17006
  var target = getActualTarget(e);
17007
+
16959
17008
  if (findContainerIndex(target) >= 0) {
16960
17009
  return;
16961
17010
  }
17011
+
16962
17012
  if (valueOrHandler(config.clickOutsideDeactivates, e)) {
16963
17013
  return;
16964
17014
  }
17015
+
16965
17016
  if (valueOrHandler(config.allowOutsideClick, e)) {
16966
17017
  return;
16967
17018
  }
17019
+
16968
17020
  e.preventDefault();
16969
17021
  e.stopImmediatePropagation();
16970
- };
16971
-
16972
- //
17022
+ }; //
16973
17023
  // EVENT LISTENERS
16974
17024
  //
16975
17025
 
17026
+
16976
17027
  var addListeners = function addListeners() {
16977
17028
  if (!state.active) {
16978
17029
  return;
16979
- }
17030
+ } // There can be only one listening focus trap at a time
16980
17031
 
16981
- // There can be only one listening focus trap at a time
16982
- activeFocusTraps.activateTrap(trapStack, trap);
16983
17032
 
16984
- // Delay ensures that the focused element doesn't capture the event
17033
+ activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
16985
17034
  // that caused the focus trap activation.
17035
+
16986
17036
  state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
16987
17037
  tryFocus(getInitialFocusNode());
16988
17038
  }) : tryFocus(getInitialFocusNode());
@@ -17005,58 +17055,70 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17005
17055
  });
17006
17056
  return trap;
17007
17057
  };
17058
+
17008
17059
  var removeListeners = function removeListeners() {
17009
17060
  if (!state.active) {
17010
17061
  return;
17011
17062
  }
17063
+
17012
17064
  doc.removeEventListener('focusin', checkFocusIn, true);
17013
17065
  doc.removeEventListener('mousedown', checkPointerDown, true);
17014
17066
  doc.removeEventListener('touchstart', checkPointerDown, true);
17015
17067
  doc.removeEventListener('click', checkClick, true);
17016
17068
  doc.removeEventListener('keydown', checkKey, true);
17017
17069
  return trap;
17018
- };
17019
-
17020
- //
17070
+ }; //
17021
17071
  // TRAP DEFINITION
17022
17072
  //
17023
17073
 
17074
+
17024
17075
  trap = {
17025
17076
  get active() {
17026
17077
  return state.active;
17027
17078
  },
17079
+
17028
17080
  get paused() {
17029
17081
  return state.paused;
17030
17082
  },
17083
+
17031
17084
  activate: function activate(activateOptions) {
17032
17085
  if (state.active) {
17033
17086
  return this;
17034
17087
  }
17088
+
17035
17089
  var onActivate = getOption(activateOptions, 'onActivate');
17036
17090
  var onPostActivate = getOption(activateOptions, 'onPostActivate');
17037
17091
  var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
17092
+
17038
17093
  if (!checkCanFocusTrap) {
17039
17094
  updateTabbableNodes();
17040
17095
  }
17096
+
17041
17097
  state.active = true;
17042
17098
  state.paused = false;
17043
17099
  state.nodeFocusedBeforeActivation = doc.activeElement;
17100
+
17044
17101
  if (onActivate) {
17045
17102
  onActivate();
17046
17103
  }
17104
+
17047
17105
  var finishActivation = function finishActivation() {
17048
17106
  if (checkCanFocusTrap) {
17049
17107
  updateTabbableNodes();
17050
17108
  }
17109
+
17051
17110
  addListeners();
17111
+
17052
17112
  if (onPostActivate) {
17053
17113
  onPostActivate();
17054
17114
  }
17055
17115
  };
17116
+
17056
17117
  if (checkCanFocusTrap) {
17057
17118
  checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
17058
17119
  return this;
17059
17120
  }
17121
+
17060
17122
  finishActivation();
17061
17123
  return this;
17062
17124
  },
@@ -17064,38 +17126,46 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17064
17126
  if (!state.active) {
17065
17127
  return this;
17066
17128
  }
17129
+
17067
17130
  var options = focus_trap_esm_objectSpread2({
17068
17131
  onDeactivate: config.onDeactivate,
17069
17132
  onPostDeactivate: config.onPostDeactivate,
17070
17133
  checkCanReturnFocus: config.checkCanReturnFocus
17071
17134
  }, deactivateOptions);
17135
+
17072
17136
  clearTimeout(state.delayInitialFocusTimer); // noop if undefined
17137
+
17073
17138
  state.delayInitialFocusTimer = undefined;
17074
17139
  removeListeners();
17075
17140
  state.active = false;
17076
17141
  state.paused = false;
17077
- activeFocusTraps.deactivateTrap(trapStack, trap);
17142
+ activeFocusTraps.deactivateTrap(trap);
17078
17143
  var onDeactivate = getOption(options, 'onDeactivate');
17079
17144
  var onPostDeactivate = getOption(options, 'onPostDeactivate');
17080
17145
  var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
17081
17146
  var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
17147
+
17082
17148
  if (onDeactivate) {
17083
17149
  onDeactivate();
17084
17150
  }
17151
+
17085
17152
  var finishDeactivation = function finishDeactivation() {
17086
17153
  delay(function () {
17087
17154
  if (returnFocus) {
17088
17155
  tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
17089
17156
  }
17157
+
17090
17158
  if (onPostDeactivate) {
17091
17159
  onPostDeactivate();
17092
17160
  }
17093
17161
  });
17094
17162
  };
17163
+
17095
17164
  if (returnFocus && checkCanReturnFocus) {
17096
17165
  checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
17097
17166
  return this;
17098
17167
  }
17168
+
17099
17169
  finishDeactivation();
17100
17170
  return this;
17101
17171
  },
@@ -17103,6 +17173,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17103
17173
  if (state.paused || !state.active) {
17104
17174
  return this;
17105
17175
  }
17176
+
17106
17177
  state.paused = true;
17107
17178
  removeListeners();
17108
17179
  return this;
@@ -17111,6 +17182,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17111
17182
  if (!state.paused || !state.active) {
17112
17183
  return this;
17113
17184
  }
17185
+
17114
17186
  state.paused = false;
17115
17187
  updateTabbableNodes();
17116
17188
  addListeners();
@@ -17121,14 +17193,15 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
17121
17193
  state.containers = elementsAsArray.map(function (element) {
17122
17194
  return typeof element === 'string' ? doc.querySelector(element) : element;
17123
17195
  });
17196
+
17124
17197
  if (state.active) {
17125
17198
  updateTabbableNodes();
17126
17199
  }
17200
+
17127
17201
  return this;
17128
17202
  }
17129
- };
17203
+ }; // initialize container elements
17130
17204
 
17131
- // initialize container elements
17132
17205
  trap.updateContainerElements(elements);
17133
17206
  return trap;
17134
17207
  };
@@ -21266,23 +21339,28 @@ const EntryContainer = () => {
21266
21339
 
21267
21340
 
21268
21341
 
21269
- const CollapseButton = ({
21270
- onClick
21271
- }) => {
21342
+
21343
+ const CollapseButton = () => {
21272
21344
  const {
21273
21345
  t
21274
21346
  } = useI18n();
21275
- const handleClick = (0,hooks_.useCallback)(() => onClick(), [onClick]);
21276
- return (0,jsx_runtime_namespaceObject.jsx)("button", {
21347
+ const {
21348
+ isOpen,
21349
+ closeChat
21350
+ } = useVisibility();
21351
+ const {
21352
+ isWindow
21353
+ } = useSeamlyLayoutMode();
21354
+ return isOpen && isWindow ? (0,jsx_runtime_namespaceObject.jsx)("button", {
21277
21355
  type: "button",
21278
21356
  className: css_className('button', 'collapse-button'),
21279
- onClick: handleClick,
21357
+ onClick: closeChat,
21280
21358
  children: (0,jsx_runtime_namespaceObject.jsx)(layout_icon, {
21281
21359
  name: "chevronDown",
21282
21360
  size: "32",
21283
21361
  alt: t('window.srCollapseButton')
21284
21362
  })
21285
- });
21363
+ }) : null;
21286
21364
  };
21287
21365
  /* harmony default export */ const collapse_button = (CollapseButton);
21288
21366
  ;// CONCATENATED MODULE: ./src/javascripts/ui/components/chat-status/index.tsx
@@ -21373,7 +21451,6 @@ function chat_frame_defineProperty(obj, key, value) { if (key in obj) { Object.d
21373
21451
 
21374
21452
 
21375
21453
 
21376
-
21377
21454
  function ChatFrame({
21378
21455
  children,
21379
21456
  interruptComponent: InterruptComponent
@@ -21383,12 +21460,8 @@ function ChatFrame({
21383
21460
  meta
21384
21461
  } = useInterrupt();
21385
21462
  const {
21386
- isOpen,
21387
- closeChat
21463
+ isOpen
21388
21464
  } = useVisibility();
21389
- const {
21390
- isWindow
21391
- } = useSeamlyLayoutMode();
21392
21465
  if (hasInterrupt) {
21393
21466
  if (isOpen) {
21394
21467
  return (0,jsx_runtime_namespaceObject.jsx)(InterruptComponent, chat_frame_objectSpread({}, meta));
@@ -21399,9 +21472,7 @@ function ChatFrame({
21399
21472
  children: [(0,jsx_runtime_namespaceObject.jsxs)(chat_scroll_provider, {
21400
21473
  children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
21401
21474
  className: css_className('chat__container__header'),
21402
- children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}), isOpen && isWindow && (0,jsx_runtime_namespaceObject.jsx)(collapse_button, {
21403
- onClick: closeChat
21404
- })]
21475
+ children: [(0,jsx_runtime_namespaceObject.jsx)(TranslationStatus, {}), (0,jsx_runtime_namespaceObject.jsx)(collapse_button, {})]
21405
21476
  }), children]
21406
21477
  }), (0,jsx_runtime_namespaceObject.jsx)(entry_container, {}), isOpen && (0,jsx_runtime_namespaceObject.jsx)(AppOptions, {})]
21407
21478
  });
@@ -21414,6 +21485,7 @@ function ChatFrame({
21414
21485
 
21415
21486
 
21416
21487
 
21488
+
21417
21489
  const Interrupt = ({
21418
21490
  originalError,
21419
21491
  title,
@@ -21449,10 +21521,10 @@ const Interrupt = ({
21449
21521
  }
21450
21522
  focusSkiplinkTarget();
21451
21523
  };
21452
- return !isExpiredError ? (0,jsx_runtime_namespaceObject.jsx)("section", {
21524
+ return !isExpiredError ? (0,jsx_runtime_namespaceObject.jsxs)("section", {
21453
21525
  className: css_className('interrupt'),
21454
21526
  "aria-labelledby": headingId,
21455
- children: (0,jsx_runtime_namespaceObject.jsxs)("div", {
21527
+ children: [(0,jsx_runtime_namespaceObject.jsx)(collapse_button, {}), (0,jsx_runtime_namespaceObject.jsxs)("div", {
21456
21528
  className: css_className('interrupt__body'),
21457
21529
  children: [(0,jsx_runtime_namespaceObject.jsx)("h2", {
21458
21530
  id: headingId,
@@ -21470,7 +21542,7 @@ const Interrupt = ({
21470
21542
  children: buttonText
21471
21543
  })
21472
21544
  })]
21473
- })
21545
+ })]
21474
21546
  }) : (0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {});
21475
21547
  };
21476
21548
  /* harmony default export */ const interrupt = (Interrupt);