@mindly/ui-components 6.7.6-dev.1 → 6.7.6-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/lib2/features/SelectWithSearchFormFeature/SelectWithSearchFormFeature.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib2/features/SelectWithSearchFormFeature/SelectWithSearchFormFeature.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import r,{css as
|
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the MIT license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/"production"===process.env.NODE_ENV?Pw.exports=function(){if(yw)return Ow;yw=1;var e=V,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},c=null,u=null;for(l in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!o.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:c,ref:u,props:s,_owner:i.current}}return Ow.Fragment=n,Ow.jsx=a,Ow.jsxs=a,Ow}():Pw.exports=(Bw||(Bw=1,"production"!==process.env.NODE_ENV&&function(){var e,t=V,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=v.ReactDebugCurrentFrame,i=r.getStackAddendum();""!==i&&(t+="%s",n=n.concat([i]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}function b(e){return e.displayName||"Context"}function A(e){if(null==e)return null;if("number"==typeof e.tag&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return b(e)+".Consumer";case l:return b(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:A(e.type)||"Memo";case p:var n=e,h=n._payload,g=n._init;try{return A(g(h))}catch{return null}}return null}e=Symbol.for("react.module.reference");var y,w,x,C,P,O,B,D=Object.assign,k=0;function z(){}z.__reactDisabledLog=!0;var E,H=v.ReactCurrentDispatcher;function S(e,t,n){if(void 0===E)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);E=r&&r[1]||""}return"\n"+E+e}var T,L=!1,M="function"==typeof WeakMap?WeakMap:Map;function j(e,t){if(!e||L)return"";var n,r=T.get(e);if(void 0!==r)return r;L=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=H.current,H.current=null,function(){if(0===k){y=console.log,w=console.info,x=console.warn,C=console.error,P=console.group,O=console.groupCollapsed,B=console.groupEnd;var e={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}k++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),c=l.length-1,u=s.length-1;c>=1&&u>=0&&l[c]!==s[u];)u--;for(;c>=1&&u>=0;c--,u--)if(l[c]!==s[u]){if(1!==c||1!==u)do{if(c--,--u<0||l[c]!==s[u]){var d="\n"+l[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&T.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{L=!1,H.current=i,function(){if(0===--k){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:y}),info:D({},e,{value:w}),warn:D({},e,{value:x}),error:D({},e,{value:C}),group:D({},e,{value:P}),groupCollapsed:D({},e,{value:O}),groupEnd:D({},e,{value:B})})}k<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?S(f):"";return"function"==typeof e&&T.set(e,p),p}function N(e,t,n){if(null==e)return"";if("function"==typeof e)return j(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return S(e);switch(e){case u:return S("Suspense");case d:return S("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e){return j(e,!1)}(e.render);case f:return N(e.type,t,n);case p:var r=e,i=r._payload,o=r._init;try{return N(o(i),t,n)}catch{}}return""}T=new M;var X=Object.prototype.hasOwnProperty,Q={},I=v.ReactDebugCurrentFrame;function R(e){if(e){var t=e._owner,n=N(e.type,e._source,t?t.type:null);I.setExtraStackFrame(n)}else I.setExtraStackFrame(null)}var F=Array.isArray;function G(e){return F(e)}function W(e){return""+e}function Y(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}var U,K,q,J=v.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r,i,o){var a,l={},s=null,c=null;for(a in void 0!==r&&(Y(r),s=""+r),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Y(t.key),s=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&J.current&&t&&J.current.stateNode!==t){var n=A(J.current.type);q[n]||(m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(J.current.type),e.ref),q[n]=!0)}}(t,o)),t)X.call(t,a)&&!Z.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===l[a]&&(l[a]=u[a])}if(s||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){U||(U=!0,m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(l,d),c&&function(e,t){var n=function(){K||(K=!0,m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(l,d)}return function(e,t,r,i,o,a,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,c,o,i,J.current,l)}q={};var $,ee=v.ReactCurrentOwner,te=v.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=N(e.type,e._source,t?t.type:null);te.setExtraStackFrame(n)}else te.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function ie(){if(ee.current){var e=A(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}$=!1;var oe={};function ae(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!oe[n]){oe[n]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+A(e._owner.type)+"."),ne(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ne(null)}}}function le(e,t){if("object"==typeof e)if(G(e))for(var n=0;n<e.length;n++){var r=e[n];re(r)&&ae(r,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var i=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)re(o.value)&&ae(o.value,t)}}function se(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=A(n);!function(e,t,n,r,i){var o=Function.call.bind(X);for(var a in e)if(o(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(R(i),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),R(null)),l instanceof Error&&!(l.message in Q)&&(Q[l.message]=!0,R(i),m("Failed %s type: %s",n,l.message),R(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||$||($=!0,m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ce(t,r,g,v,b,y){var w=function(t){return!("string"!=typeof t&&"function"!=typeof t&&t!==i&&t!==a&&t!==o&&t!==u&&t!==d&&t!==h&&("object"!=typeof t||null===t||t.$$typeof!==p&&t.$$typeof!==f&&t.$$typeof!==l&&t.$$typeof!==s&&t.$$typeof!==c&&t.$$typeof!==e&&void 0===t.getModuleId))}(t);if(!w){var x="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C,P=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(b);x+=P||ie(),null===t?C="null":G(t)?C="array":void 0!==t&&t.$$typeof===n?(C="<"+(A(t.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,x)}var O=_(t,r,g,b,y);if(null==O)return O;if(w){var B=r.children;if(void 0!==B)if(v)if(G(B)){for(var D=0;D<B.length;D++)le(B[D],t);Object.freeze&&Object.freeze(B)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(B,t)}return t===i?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ne(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ne(null);break}}null!==e.ref&&(ne(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}(O):se(O),O}var ue=function(e,t,n){return ce(e,t,n,!1)},de=function(e,t,n){return ce(e,t,n,!0)};Dw.Fragment=i,Dw.jsx=ue,Dw.jsxs=de}()),Dw);var kw=Pw.exports;const zw=216,Ew=36,Hw="off",Sw=$(null);function Tw(e){const t=_(Sw);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Tw),t}return t}Sw.displayName="PickerDataContext";const Lw=$(null);function Mw(e){const t=_(Lw);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mw),t}return t}function jw(e,t){switch(t.type){case"REGISTER_OPTION":{const{key:n,option:r}=t;let i=[...e[n]||[],r];return i=function(e,t=e=>e){return e.slice().sort((e,n)=>{const r=t(e),i=t(n);if(null===r||null===i)return 0;const o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(i,e=>e.element.current),{...e,[n]:i}}case"UNREGISTER_OPTION":{const{key:n,option:r}=t;return{...e,[n]:(e[n]||[]).filter(e=>e!==r)}}default:throw Error(`Unknown action: ${t.type}`)}}Lw.displayName="PickerActionsContext";const Nw=$(null);function Xw(e){const t=_(Nw);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker.Column /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Xw),t}return t}function Qw(e){return"function"==typeof e}Nw.displayName="PickerColumnDataContext";const Iw=Object.assign(function(e){const{style:t,children:n,value:r,onChange:i,height:o=zw,itemHeight:a=Ew,wheelMode:l=Hw,...s}=e,c=Z(()=>({height:a,marginTop:-a/2,position:"absolute",top:"50%",left:0,width:"100%",pointerEvents:"none"}),[a]),u=Z(()=>({height:`${o}px`,position:"relative",display:"flex",justifyContent:"center",overflow:"hidden",maskImage:"linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent)",WebkitMaskImage:"linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent)"}),[o]),[d,f]=re(jw,{}),p=Z(()=>({height:o,itemHeight:a,wheelMode:l,value:r,optionGroups:d}),[o,a,r,d,l]),h=Y((e,t)=>{if(r[e]===t)return!1;const n={...r,[e]:t};return i(n,e),!0},[i,r]),g=Y((e,t)=>(f({type:"REGISTER_OPTION",key:e,option:t}),()=>f({type:"UNREGISTER_OPTION",key:e,option:t})),[]),v=Z(()=>({registerOption:g,change:h}),[g,h]);return kw.jsxs("div",{style:{...u,...t},...s,children:[kw.jsx(Lw.Provider,{value:v,children:kw.jsx(Sw.Provider,{value:p,children:n})}),kw.jsxs("div",{style:c,children:[kw.jsx("div",{style:{position:"absolute",top:0,bottom:"auto",left:0,right:"auto",width:"100%",height:"1px",background:"#d9d9d9",transform:"scaleY(0.5)"}}),kw.jsx("div",{style:{position:"absolute",top:"auto",bottom:0,left:0,right:"auto",width:"100%",height:"1px",background:"#d9d9d9",transform:"scaleY(0.5)"}})]})]})},{Column:function({style:e,children:t,name:n,...r}){const{height:i,itemHeight:o,wheelMode:a,value:l,optionGroups:s}=Tw("Picker.Column"),c=Z(()=>l[n],[l,n]),u=Z(()=>s[n]||[],[n,s]),d=Z(()=>{let e=u.findIndex(e=>e.value===c);return e<0&&(e=0),e},[u,c]),f=Z(()=>i/2-o*u.length+o/2,[i,o,u]),p=Z(()=>i/2-o/2,[i,o]),[h,g]=G(0);W(()=>{g(i/2-o/2-d*o)},[i,o,d]);const v=Mw("Picker.Column"),m=K(h);m.current=h;const b=Y(()=>{let e=0;const t=m.current;e=t>=p?0:t<=f?u.length-1:-Math.round((t-p)/o),v.change(n,u[e].value)||g(i/2-o/2-e*o)},[v,i,o,n,p,f,u]),[A,y]=G(0),[w,x]=G(!1),[C,P]=G(0),O=Y(e=>{e<f?e=f-Math.pow(f-e,.8):e>p&&(e=p+Math.pow(e-p,.8)),g(e)},[p,f]),B=Y(e=>{P(e.targetTouches[0].pageY),y(h)},[h]),D=Y(e=>{e.cancelable&&e.preventDefault(),w||x(!0);const t=A+e.targetTouches[0].pageY-C;O(t)},[w,A,C,O]),k=Y(()=>{w&&(x(!1),P(0),y(0),b())},[b,w]),z=Y(()=>{w&&(x(!1),P(0),g(A),y(0))},[w,A]),E=K(null),H=Y(e=>{if(0===e.deltaY)return;let t=.1*e.deltaY;Math.abs(t)<o&&(t=o*Math.sign(t)),"normal"===a&&(t=-t);O(h+t)},[o,h,O,a]),S=Y(()=>{b()},[b]),T=Y(e=>{"off"!==a&&(e.cancelable&&e.preventDefault(),H(e),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{S()},200))},[S,H,E,a]),L=K(null);W(()=>{const e=L.current;return e&&(e.addEventListener("touchmove",D,{passive:!1}),e.addEventListener("wheel",T,{passive:!1})),()=>{e&&(e.removeEventListener("touchmove",D),e.removeEventListener("wheel",T))}},[D,T]);const M=Z(()=>({flex:"1 1 0%",maxHeight:"100%",transitionProperty:"transform",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",transitionDuration:w?"0ms":"300ms",transform:`translate3d(0, ${h}px, 0)`}),[h,w]),j=Z(()=>({key:n}),[n]);return kw.jsx("div",{style:{...M,...e},ref:L,onTouchStart:B,onTouchEnd:k,onTouchCancel:z,...r,children:kw.jsx(Nw.Provider,{value:j,children:t})})},Item:function({style:e,children:t,value:n,...r}){const i=K(null),{itemHeight:o,value:a}=Tw("Picker.Item"),l=Mw("Picker.Item"),{key:s}=Xw("Picker.Item");W(()=>l.registerOption(s,{value:n,element:i}),[s,l,n]);const c=Z(()=>({height:`${o}px`,display:"flex",justifyContent:"center",alignItems:"center"}),[o]),u=Y(()=>{l.change(s,n)},[l,s,n]);return kw.jsx("div",{style:{...c,...e},ref:i,onClick:u,...r,children:Qw(t)?t({selected:a[s]===n}):t})}});var Rw={0:{color:"#16191C",fontSize:23},1:{color:"#AEAEAE",fontSize:18},2:{color:"#C2C2C2",fontSize:14},3:{color:"#D7D7D7",fontSize:12},n:{color:"#D7D7D7",fontSize:12}},Fw=function(e,t){return Rw[e]?Rw[e][t]:Rw.n[t]},Vw=function(t){var n=t.height,r=t.selections,i=t.defaults,o=void 0===i?{}:i,a=t.onChange,l=t.className,s=t.compareBy,c=void 0===s?"label":s,u=De(G(o),2),d=u[0],f=u[1];return e(Iw,xe({className:l,value:d,height:null!=n?n:216,onChange:function(e){var t={};Object.keys(e).forEach(function(n){var i=r[n].find(function(t){return t[c]===e[n]});i&&(t[n]=xe({},i))}),f(e),a(t)}},{children:Object.keys(r).map(function(t){return e(Iw.Column,xe({name:t},{children:r[t].map(function(n,i){return e(Iw.Item,xe({value:n[c],className:kr({selected:n[c]===d[t]})},{children:function(){return e("div",xe({style:{color:Fw(Math.abs(i-Object.values(r[t]).findIndex(function(e){return e[c]===d[t]})),"color"),fontSize:Fw(Math.abs(i-Object.values(r[t]).findIndex(function(e){return e[c]===d[t]})),"fontSize"),transition:"transform 200ms",cursor:"pointer"}},{children:n.label}))}}),t+n[c])})}),t)})}))},Gw=Qi({slots:{contentWrap:"text-typography-typography-primary !leading-none mb-1",contentText:"text-sm/[140%] opacity-50",collapsing:"text-sm/[140%] text-color-info-blue cursor-pointer"},variants:{collapsed:{true:{contentWrap:"!line-clamp-2 !overflow-hidden",contentText:"whitespace-no-wrap overflow-hidden"}}}});function Ww(n){var r=n.t,i=n.text,o=n.size,a=void 0===o?14:o,l=n.fontWeight,s=void 0===l?"Regular":l,c=K(null),u=K(null),d=De(G(!1),2),f=d[0],p=d[1],h=De(G(!0),2),g=h[0],v=h[1];W(function(){var e,t,n,r;p((null!==(t=null===(e=c.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0)<(null!==(r=null===(n=u.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==r?r:0))},[i]);var m=Gw({collapsed:g});return t("div",xe({className:""},{children:[e("div",xe({ref:c},{children:e(Tr,xe({className:m.contentWrap(),variant:nr["Title".concat(a).concat(s)]},{children:e("span",xe({className:m.contentText(),ref:u},{children:i}))}))})),f&&e("p",xe({className:m.collapsing(),onClick:function(){return v(!g)}},{children:r(g?"details.more.link":"details.less.link")}))]}))}function Yw(t){var n,r=t.state,i=Ce(t,["state"]),o=V.useRef(null),a=Fh(i,r,o).tabPanelProps;return e("div",xe({},a,{ref:o},{children:null===(n=r.selectedItem)||void 0===n?void 0:n.props.children}))}Yw.displayName="Mindly.TabPanel";var Uw=Qi({slots:{tab:"relative flex-1 py-3.5 cursor-pointer appearance-none focus-within:outline-none transition-opacity duration-200",tabText:"",tabs:"tabs",tabList:"relative",activeTab:"absolute bottom-0 !bg-typography-typography-primary duration-200 will-change-transform transition-transform"},variants:{textTransform:{uppercase:{tabText:"uppercase"},capitalize:{tabText:"capitalize"},lowercase:{tabText:"lowercase"},none:{tabText:"normal-case"}},isPressed:{true:{}},isFocusVisible:{true:{}},isSelected:{true:{}},orientation:{vertical:{tabs:""},horizontal:{tabs:""}}},compoundSlots:[{slots:["tab"],isSelected:!0,className:"after:content-[''] after:absolute after:bottom-0 after:left-0 after:w-full after:border-b-2 after:border-solid after:border-typography-typography-primary"},{slots:["tab"],isPressed:!0,className:"opacity-50"},{slots:["activeTab"],isFocusVisible:!0,className:"focused"}]}),Kw=Uw(),qw=Kw.tab,Jw=Kw.tabText;function Zw(t){var n=t.item,r=t.state,i=n.key,o=n.rendered,a=n.props,l=V.useRef(null),s=function(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=e,{selectionManager:a,selectedKey:l}=t,s=r===l,c=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=Sh({selectionManager:a,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),f=Rh(t,r,"tab"),p=Rh(t,r,"tabpanel"),{tabIndex:h}=u,g=t.collection.getItem(r),v=Fd(null==g?void 0:g.props,{labelable:!0});delete v.id;let m=lf(null==g?void 0:g.props),{focusableProps:b}=Tp({isDisabled:c},n);return{tabProps:Md(v,b,m,u,{id:f,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?p:void 0,tabIndex:c?void 0:h,role:"tab"}),isSelected:s,isDisabled:c,isPressed:d}}({key:i},r,l),c=s.tabProps,u=s.isSelected,d=s.isPressed,f=a.onClick,p=a.className,h=a.textTransform,g=void 0===h?"capitalize":h,v=Z(function(){return qw({isPressed:d,isSelected:u,className:p})},[d,u,p]),m=Z(function(){return Jw({textTransform:g})},[g]),b=Wh(function(e){(null==c?void 0:c.onClick)&&c.onClick(e),f&&f()});return e("button",xe({},c,{onClick:b,ref:l,className:v},{children:e(Tr,xe({align:"center",variant:nr.Text14Semi,opacity:u?100:65,className:m},{children:o}))}))}var _w=Nu,$w=Uw(),ex=$w.tabList,tx=$w.tabs;function nx(n){var r,i=od(n),o=V.useRef(null),a=function(e,t,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=e,{collection:o,selectionManager:a,disabledKeys:l}=t,{direction:s}=th(),c=Z(()=>new Vh(o,s,r,l),[o,l,r,s]),{collectionProps:u}=Hh({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:"automatic"===i,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),d=Pd();return Ih.set(t,d),{tabListProps:{...Md(u,pf({...e,id:d})),role:"tablist","aria-orientation":r,tabIndex:void 0}}}(n,i,o).tabListProps,l=De(G(function(){return{width:0,transform:"translateX(0)"}}),2)[1];W(function(){var e,t=null===(e=o.current)||void 0===e?void 0:e.querySelector('[role="tab"][aria-selected="true"]');t&&l({width:t.offsetWidth,transform:"translateX(".concat(t.offsetLeft,"px)")})},[i.selectedKey]);var s=function(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=K({isFocused:!1,isFocusVisible:t||Op()}),[o,a]=G(!1),[l,s]=G(()=>i.current.isFocused&&i.current.isFocusVisible),c=Y(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),u=Y(e=>{i.current.isFocused=e,a(e),c()},[c]);kp(e=>{i.current.isFocusVisible=e,c()},[],{isTextInput:n});let{focusProps:d}=Ep({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=Lp({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:l,focusProps:r?f:d}}({within:!0}).focusProps;return t("div",xe({className:kr(tx({orientation:n.orientation}),n.className)},{children:[e("div",xe({className:ex()},{children:e("div",xe({},Md(a,s),{className:"flex",ref:o},{children:ke([],De(i.collection),!1).map(function(t){return e(Zw,{item:t,state:i},t.key)})}))})),e(Yw,{state:i},null===(r=i.selectedItem)||void 0===r?void 0:r.key)]}))}nx.displayName="Mindly.Tabs";var rx=Qi({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:nr.Text14Semi,titleVariant:nr.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-background-anti-flash-light",iconVariant:nr.Title24Semi,titleVariant:nr.Text15Semi},badge:{root:"gap-1",iconVariant:nr.Badge12Semi,titleVariant:nr.Badge12Semi}}}}),ix=function(r){var i=r.t,o=r.variant,a=void 0===o?"default":o,l=r.percent,s=r.className,c=r.onOpenArticle,u=rx({variant:a}),d=u.iconVariant,f=u.titleVariant,p=u.root;return"badge"===a?t(es,xe({className:"whitespace-nowrap",variant:"success",size:"S"},{children:["🏆 ",null==i?void 0:i("therapist_list_item.super_specialist.title")]})):t("div",xe({className:kr(p(),s)},{children:[e(Tr,xe({variant:d()},{children:"🏆"})),t("div",xe({className:kr({"gap-0.5":"full"===a})},{children:[e(Tr,xe({variant:f()},{children:null==i?void 0:i("therapist_list_item.super_specialist.title")})),"full"===a&&t(n,{children:[e(Tr,xe({variant:nr.Text13Regular150},{children:null==i?void 0:i("therapist_list_item.super_specialist.description",{count:l})})),e(Fi,xe({fill:"outline",size:"small",className:"!mt-3",onClick:c},{children:null==i?void 0:i("therapist_list_item.super_specialist.button")}))]})]}))]}))},ox=V.memo(function(n){var r=n.className,i=n.percentMatch,o=n.children,a=Z(function(){return i>=80?"--color-info-green":"--color-info-orange"},[i]),l=Z(function(){return i>=80?"bg-badges-success-main":"bg-badges-attention-main"},[i]);return t("div",xe({className:kr("relative inline-flex justify-center items-center rounded-full p-[4px]",r),style:{background:"conic-gradient(rgba(var(".concat(a,")) ").concat(i,"%, #ffffff ").concat(i,"% 100%)")}},{children:[i>0&&t(Tr,xe({variant:nr.Badge12Semi,className:kr("py-1 px-2 !text-color-white rounded-2xl absolute top-full -translate-y-1/2 left-1/2 -translate-x-1/2 -mt-1 z-20",l)},{children:[i,"%"]})),e("div",xe({className:"relative z-10 bg-color-white rounded-full"},{children:o}))]}))}),ax=V.memo(function(n){var r=n.className,i=n.title,o=n.children;return t("div",xe({className:kr("flex items-start gap-2 relative py-4 w-full border-color-black/10 border-b last:border-none",r)},{children:[e(Tr,xe({variant:nr.Text15Regular,className:"text-typography-typography-tertiary w-[35%]"},{children:i})),e(Tr,xe({variant:nr.Text15Regular,className:"w-[65%]"},{children:o}))]}))}),lx=V.memo(function(t){var n=t.children,r=t.className,i=Ce(t,["children","className"]);return e("button",xe({className:kr("flex items-center gap-1 underline",r)},i,{children:e(Tr,xe({variant:nr.Text15Semi},{children:n}))}))}),sx=Qi({slots:{textVariant:"",dot:"",icon:"-translate-y-0.5"},variants:{size:{default:{textVariant:nr.Title18Semi,icon:"w-6 h-6",dot:"w-5 h-5"},small:{textVariant:nr.Text14Regular,icon:"w-4 h-4",dot:"w-2 h-2"},large:{textVariant:nr.Title28Semi,icon:"w-6 h-6",dot:"w-5 h-5"}}}}),cx=function(n){var r=n.className,i=n.rating,o=n.reviews,a=n.t,l=n.size,s=void 0===l?"default":l,c=n.endAdornment,u=n.onClick,d=sx({size:s}),f=d.textVariant,p=d.icon,h=d.dot,g=f();return t("div",xe({className:kr("flex items-center gap-1",{"cursor-pointer":!!u},r),onClick:u},{children:[e(Tr,xe({variant:g},{children:t("div",xe({className:"flex items-center"},{children:[e(Go,{className:p()})," ",Number.isInteger(i)?i.toFixed(1):ym(i)]}))})),e(ol,{className:h()}),e(Tr,xe({variant:g},{children:null==a?void 0:a("therapist_list_item.number_of_reviews",{count:o})})),c]}))},ux=Qi({slots:{root:"border-b"},variants:{variant:{default:{root:"border-borders-divider"}}}}),dx=function(t){var n=t.className,r=t.variant,i=ux({variant:void 0===r?"default":r}).root;return e("div",{className:kr(i(),n)})},fx=function(n){var r=n.t,i=n.className;return t("div",xe({className:kr("flex flex-col gap-2 items-center",i)},{children:[e(pl,{}),e(Tr,xe({variant:nr.Title20Semi},{children:null==r?void 0:r("empty_list.title")}))]}))},px=function(n){var r=n.t,i=n.className,o=n.isAuth;return t("div",xe({className:kr("flex flex-col items-center",i)},{children:[e("div",xe({className:"text-[104px]/[120%]"},{children:"😕"})),e(Tr,xe({variant:nr.Title24Semi,className:"my-2 text-center"},{children:null==r?void 0:r("specialist_profile_not_found.title")})),e(Tr,xe({variant:nr.Text14Regular,className:"text-typography-typography-primary/50 text-center"},{children:o?null==r?void 0:r("specialist_profile_not_found.subtitle.is_auth"):null==r?void 0:r("specialist_profile_not_found.subtitle.is_not_auth")}))]}))},hx=Qi({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:nr.Text14Semi,titleVariant:nr.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-info-light-blue",iconVariant:nr.Title24Semi,titleVariant:nr.Text15Semi},badge:{root:"gap-1",iconVariant:nr.Badge12Semi,titleVariant:nr.Badge12Semi}}}}),gx=function(r){var i=r.variant,o=void 0===i?"badge":i,a=r.className,l=r.t,s=r.onOpenArticle,c=hx({variant:o}),u=c.iconVariant,d=c.titleVariant,f=c.root;return"badge"===o?e(es,xe({className:kr("whitespace-nowrap",a),variant:"info",type:"default",size:"S"},{children:e("div",xe({className:"text-badges-info-secondary"},{children:null==l?void 0:l("therapist_list_item.badge_new_speclialist")}))})):t("div",xe({className:kr(f(),a)},{children:[e(Tr,xe({variant:u()},{children:"👋"})),t("div",xe({className:kr({"gap-0.5":"full"===o})},{children:[e(Tr,xe({variant:d()},{children:null==l?void 0:l("therapist_list_item.badge_new_speclialist")})),"full"===o&&t(n,{children:[e(Tr,xe({variant:nr.Text13Regular150},{children:null==l?void 0:l("therapist_list_item.text_new_speclialist")})),e(Fi,xe({fill:"outline",size:"small",className:"!mt-3",onClick:s},{children:null==l?void 0:l("therapist_list_item.super_specialist.button")}))]})]}))]}))},vx="SolidInput-module_ionItem__YcaUP",mx="SolidInput-module_label__Ab6yt",bx="SolidInput-module_input__vo6I4";tt(".SolidInput-module_ionItem__YcaUP{--background:rgb(var(--typography-typography-primary)/0.06);--background-focused:rgb(var(--typography-typography-primary)/0.06)!important;--background-hover:rgb(var(--typography-typography-primary)/0.06)!important;--color:rgb(var(--typography-typography-primary))!important;--border-width:0;--full-highlight-height:0;--border-radius:18px;--ion-color-base:rgb(var(--typography-typography-primary))!important;--ion-color-primary:rgb(var(--typography-typography-primary))!important;--min-height:26px}.SolidInput-module_ionItem__YcaUP.item-has-focus .label-floating,.SolidInput-module_ionItem__YcaUP.item-has-value .label-floating{transform:translateY(50%) scale(.75)!important}.SolidInput-module_label__Ab6yt{--color:rgb(var(--typography-typography-primary)/0.35)!important;line-height:1;margin:0;position:relative;transform:translateY(20px)!important;z-index:3}.SolidInput-module_input__vo6I4{--placeholder-color:rgb(var(--typography-typography-primary)/0.35);--color:rgb(var(--typography-typography-primary));outline:none;position:relative;z-index:1}.SolidInput-module_input__vo6I4 input:-webkit-autofill,.SolidInput-module_input__vo6I4 input:-webkit-autofill:focus,.SolidInput-module_input__vo6I4 input:-webkit-autofill:hover{-webkit-text-fill-color:rgb(var(--typography-typography-primary));-webkit-box-shadow:inset 0 0 0 1000px #f2f2f1}.SolidInput-module_ionItem__YcaUP.ion-invalid{--background:rgb(var(--badges-warning-bg)/1)!important;--background-hover:rgb(var(--badges-warning-bg)/1)!important;--background-focused:rgb(var(--badges-warning-bg)/1)!important}.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4{--color:rgb(var(--badges-warning-main)/1)}.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4 input:-webkit-autofill,.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4 input:-webkit-autofill:focus,.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4 input:-webkit-autofill:hover{-webkit-text-fill-color:rgb(var(--badges-warning-main)/1);-webkit-box-shadow:inset 0 0 0 1000px #feece7}",{insertAt:"top"});var Ax=q(function(n,r){var i=n.placeholder,o=n.value,a=n.name,s=n.type,c=void 0===s?"text":s,u=n.itemClassName,d=n.inputClassName,f=n.labelClassName,p=n.onChange,g=n.onKeyDown,v=n.errorText,m=n.isInvalid,b=De(G(c),2),A=b[0],y=b[1];return t(x,xe({className:kr(vx,{"ion-invalid":m||!!v},u),fill:"solid",lines:"none"},{children:[e(h,xe({position:"floating",className:kr(mx,f)},{children:i})),e(l,{type:A,name:a,className:kr(bx,d),placeholder:i,onIonChange:p,value:o,onKeyDown:g,ref:r}),v&&e(k,xe({slot:"error"},{children:v})),"password"===c&&e("span",xe({slot:"end",onClick:function(){y(function(e){return"password"===e?"text":"password"})},className:"cursor-pointer text-typography-typography-primary/50 [&_path]:fill-[currentColor]"},{children:e("password"===A?$o:ea,{fill:"currentColor"})}))]}))});Ax.displayName="SolidInput";var yx=Qi({slots:{root:"border-2 rounded-full flex items-center justify-center inline-flex",text:"!text-color-background-white"},variants:{variant:{default:{root:"bg-badges-warning-main border-color-background-white"}},size:{xs:{root:"h-4 px-0.5 min-w-4 min-w-[theme(width.4)]"}}}}),wx=function(t){var n=t.className,r=t.variant,i=void 0===r?"default":r,o=t.size,a=void 0===o?"xs":o,l=t.children,s=yx({variant:i,size:a}),c=s.root,u=s.text;return e("div",xe({className:kr(c(),n)},{children:e(Tr,xe({variant:nr.Text8Semi,className:u()},{children:l}))}))},xx="CountryOfOriginModal-module_ionListItem__-Qb7F",Cx="CountryOfOriginModal-module_countryOfOriginContent__nQqkG";tt(".CountryOfOriginModal-module_ionListItem__-Qb7F::part(native){padding:0}.CountryOfOriginModal-module_countryOfOriginContent__nQqkG::part(content){--width:100%;--height:100%}",{insertAt:"top"});var Px=function(n){var r=n.onSearchChange,i=n.onItemClick,o=n.searchValue,a=n.countries,l=n.searchPlaceholder,s=n.t,c=Ce(n,["onSearchChange","onItemClick","searchValue","countries","searchPlaceholder","t"]),u=K(null),d=Y(function(){var e;null===(e=u.current)||void 0===e||e.dismiss()},[]);return t(P,xe({},c,{ref:u,className:Cx},{children:[e(as,{children:e(fw,{className:"pt-1.5 pb-3",onCancelClick:d,onIonChange:r,value:o,placeholder:l,t:s})}),e(oo,{children:e(w,xe({lines:"none",mode:"ios"},{children:null==a?void 0:a.map(function(t,n){return e(x,xe({onClick:function(){i&&i(t)},className:kr("h-[46px] cursor-pointer",xx)},{children:e(Tr,xe({className:"m-0"},{children:t}))}),"".concat(t,"_").concat(n))})}))})]}))},Ox="ChangeLanguageModal-module_changeLanguageModal__C9qGV";function Bx(n){var r=n.title,i=n.onModalClose,o=n.onSelect,a=n.selected,l=n.languages,s=Ce(n,["title","onModalClose","onSelect","selected","languages"]),c=K(null),u=De(G(new Set([a])),2),d=u[0],f=u[1];W(function(){f(new Set([a]))},[a]);var p=Y(function(e){"all"!==e&&(e.size?(f(e),o(ke([],De(e),!1).toString())):o(ke([],De(d),!1).toString()))},[o,d]);return W(function(){var e,t="".concat(65*l.length+155,"px");(null==c?void 0:c.current)&&(null===(e=null==c?void 0:c.current)||void 0===e||e.style.setProperty("--dynamic-modal-height",t))},[l,null==c?void 0:c.current]),t(P,xe({ref:c},s,{onDidDismiss:function(){null==i||i(),f(new Set([a]))},initialBreakpoint:1,breakpoints:[0,1],className:Ox},{children:[e("div",xe({className:"pt-5 pb-2 mt-7 w-full flex flex-col items-center justify-center px-4"},{children:e(Tr,xe({align:"center",variant:nr.Title24Semi},{children:r}))})),e(oo,{children:e("div",xe({className:"flex flex-col flex-grow"},{children:e(vA,xe({"aria-label":"Change language",selectionMode:"single",selectedKeys:d,onSelectionChange:p},{children:null==l?void 0:l.map(function(t,n,r){return e(zA,xe({textValue:t.code,"aria-label":t.code,divider:n!==r.length-1},{children:t.name}),t.code)})}))}))})]}))}tt(".ChangeLanguageModal-module_changeLanguageModal__C9qGV::part(content){border-top-left-radius:32px;border-top-right-radius:32px;height:var(--dynamic-modal-height,350px);max-width:450px;z-index:20023}.ChangeLanguageModal-module_changeLanguageModal__C9qGV::part(backdrop){z-index:20022}",{insertAt:"top"});var Dx={fullScreen:"CardModal-module_fullScreen__AWPlQ",toolbar:"CardModal-module_toolbar__cm7wd"};tt(".CardModal-module_fullScreen__AWPlQ{--height:100vh;--width:100vw}.CardModal-module_toolbar__cm7wd{--padding-top:0}",{insertAt:"top"});var kx=V.forwardRef(function(n,r){var i,a=n.isOpen,l=n.presentingElement,s=n.onDidDismiss,c=n.children,u=n.backButton,d=n.renderHeader,f=n.canDismiss,p=void 0===f||f,h=n.isShowHandle,g=void 0===h?o("ios")&&!o("desktop"):h,v=n.isShowCloseButton,m=void 0===v||v,b=n.mode,A=n.title,y=n.subtitle,w=n.leftContent,x=n.onDidPresent,C=n.onCloseClick,O=Gh(r),B=V.useCallback(function(){var e;null===(e=O.current)||void 0===e||e.dismiss(),null==C||C()},[O.current]),D=Wh(function(){document.body.style.backgroundColor="",null==s||s()}),k=Wh(function(){document.body.style.backgroundColor=""});return t(P,xe({ref:O,mode:b,isOpen:a,canDismiss:p,presentingElement:l,onDidDismiss:D,onWillDismiss:k,className:kr((i={},i[Dx.fullScreen]=!o("hybrid"),i)),onDidPresent:x},{children:[d?d({backButton:u,onClose:B}):t(as,xe({className:kr("relative",Dx.header)},{children:[g&&e("div",{className:"absolute top-1 left-2/4 w-[36px] h-[5px] rounded-sm z-20 -translate-x-2/4 bg-color-background-gray-black opacity-[0.15]"}),t("div",xe({className:kr("relative grid grid-cols-5 col-span-1",{"pt-[17.5px]":g,"pt-[7.5px]":!g})},{children:[e("div",xe({slot:"start",className:kr({"order-first justify-self-start flex items-center":!u,"order-last justify-self-end flex items-center":u})},{children:w})),t("div",xe({className:"flex flex-col items-center self-center justify-center order-2 col-span-3"},{children:[A&&e(Tr,xe({variant:nr.Text15Semi,align:"center"},{children:A})),y&&e(Tr,xe({variant:nr.Text13Regular,align:"center",opacity:50},{children:y}))]})),e("div",xe({className:kr("col-span-1",{"order-first justify-self-start flex items-center":u,"order-last justify-self-end flex items-center":!u})},{children:m&&e(zy,{className:"self-center",onClick:B,icon:e(u?So:ko,{className:"!text-typography-typography-primary"})})}))]}))]})),c]}))});kx.displayName="CardModal";var zx=Qi({slots:{list:"grid grid-cols-4 gap-x-2 gap-y-3",listItem:"border border-solid border-typography-typography-primary/10 p-2 rounded-[18px] text-center cursor-pointer"},variants:{isSelected:{true:{}},isDisabled:{true:{}}},compoundSlots:[{slots:["list"],isDisabled:!0,className:""},{slots:["listItem"],isSelected:!0,className:"bg-typography-typography-primary !text-color-background-white"},{slots:["listItem"],isDisabled:!0,isSelected:!0,className:"!opacity-30 !cursor-default"},{slots:["listItem"],isDisabled:!0,isSelected:!1,className:"!cursor-default !text-typography-typography-primary/30 !border-typography-typography-primary/6"}]});var Ex=F.memo(function(t){var n=t.isSelected,r=t.isDisabled,i=t.time,o=t.className,a=t.onSelectionChange,l=zx({isSelected:n,isDisabled:r}).listItem;return e("button",xe({onClick:a,disabled:r},{children:e(Tr,xe({variant:nr.Text14Regular,className:l({className:o})},{children:i}))}))});var Hx=V.memo(function(t){var n=t.times,r=void 0===n?[]:n,i=t.selectedKeys,o=t.onSelectionChange,a=t.classNameSlot,l=t.classNameList,s=t.isDisabled,c=void 0!==s&&s,u=Y(function(e){return i.has(e)},[i]),d=Z(function(){return zx()},[c,l]).list;return e("ul",xe({className:d({isDisabled:c,className:l})},{children:r.map(function(t){return e(Ex,{time:t,className:a,isDisabled:c,isSelected:u(t),onSelectionChange:function(){return!c&&o(t)}},t)})}))});function Sx(n){var r=n.onApplyPermission,i=n.isOpen,o=n.title,a=n.description,l=n.image,s=n.applyPermissionText,c=Ce(n,["onApplyPermission","isOpen","title","description","image","applyPermissionText"]);return t(kx,xe({isShowCloseButton:!1,isShowHandle:!1,isOpen:i},c,{children:[e(oo,{children:t("div",xe({className:"mb-5"},{children:[e("div",xe({className:"mt-[88px] w-full height-[296px] flex justify-center"},{children:e(A,{src:l})})),e(Tr,xe({align:"center",variant:nr.Title24Semi,className:"mt-6 !whitespace-pre-wrap"},{children:o})),e(Tr,xe({align:"center",variant:nr.Text14Regular,className:"mt-3 !text-typography-typography-primary/50 !whitespace-pre-wrap"},{children:a}))]}))}),e(Yi,{children:e("div",xe({className:"flex flex-col gay-2"},{children:e(Fi,xe({size:"large",fullWidth:!0,onClick:r},{children:s}))}))})]}))}function Tx(n){var r=n.onOpenNativeSettings,i=n.className,o=n.title,a=n.description,l=n.buttonText;return e("div",xe({className:kr("bg-badges-attention-bg px-5 py-4 rounded-[30px]",i)},{children:t("div",xe({className:"flex gap-x-5"},{children:[e("div",xe({className:"flex flex-col justify-center"},{children:e(Tr,xe({variant:nr.Title24Semi},{children:"🔕"}))})),t("div",xe({className:"flex flex-col items-start"},{children:[e(Tr,xe({variant:nr.Text15Semi},{children:o})),e(Tr,xe({className:"mb-3 !leading-[150%]",variant:nr.Text13Regular},{children:a})),e(Fi,xe({fill:"outline",size:"small",onClick:r},{children:l}))]}))]}))}))}var Lx=function(n){var r=n.t,i=n.matchVariant,o=void 0===i?"badge":i,a=n.match,l=n.fullName,s=n.avatarLink,c=n.countryCode,u=n.yearsOfExperience,d=n.className,f=n.avatarProps,p=n.rating,h=n.reviews,g=n.isSpecialistUnAvailable,v=void 0!==g&&g,m=n.isAuth,b=void 0===m||m,A=n.variantFullName,y=n.isFavourite,w=n.onClickReview,x=n.onToggleFavourite,C=n.children,P=n.video_link,O=n.onVideoPlay,B=Z(function(){return e(ro,xe({alt:"avatar",round:"drop",variant:"xl",src:s},f))},[s,f]),D=Z(function(){return P?e(cw,xe({src:P||"",hiddenVideo:!0,isWithPlay:!0,buttonPlacement:"bottom-right",buttonSize:"small",variant:ow.blue,onPlay:O},{children:B})):B},[B,P]);return t("div",xe({className:kr("container flex items-center",d)},{children:["avatar"===o&&!v&&b&&a?e(ox,xe({percentMatch:a},{children:D})):D,t("div",xe({className:"flex-1 ml-4"},{children:[t("div",xe({className:kr("flex items-center",{"-mt-2":x})},{children:[t(Tr,xe({variant:A||nr.Text20Semi,className:"[hyphenate-character:''] hyphens-auto [word-break:break-word]"},{children:[l,c&&e(so,{name:c,className:"mx-1 w-5 h-6 !inline"}),e(Uo,{size:20,className:"min-w-5 !inline -mt-2"})]})),x&&e("div",xe({className:"flex-shrink-0 ml-auto mr-0"},{children:e(zy,{onClick:function(e){e.stopPropagation(),null==x||x()},icon:e(al,{filled:y}),className:"cursor-pointer w-4 p-2 relative"})}))]})),u&&e(Tr,xe({opacity:50,variant:nr.Text13Regular},{children:null==r?void 0:r("therapist_list_item.years_of_experience",{count:u})})),"number"==typeof p&&"number"==typeof h&&e(cx,{rating:p,reviews:h,size:"small",t:r,endAdornment:w&&e(yo,{}),onClick:w}),C]}))]}))},Mx=function(n){var r=n.t,i=n.rating,o=void 0===i?0:i,a=n.reviews,l=void 0===a?0:a,s=n.yearsOfExperience,c=n.hoursOfPractice,u=n.sessionPrice,d=n.currentPriceType,f=n.sessionDurationMinutes,p=n.className,h=n.userBalance,g=void 0===h?0:h,v="number"==typeof s?"w-1/3":"w-1/2",m=Z(function(){return g?g/100:0},[g]),b=Z(function(){return"number"==typeof m&&m>0?Math.max(u-m,0):u},[u,m]),A=Z(function(){return b<u},[b,u]);return t("div",xe({className:kr("flex flex-1 w-full gap-4",p)},{children:[t("div",xe({className:kr("flex flex-col",v)},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:Jm({price:b,currency:d,roundingTo:0,extendedUsd:!0})})),A?t(Tr,xe({variant:nr.Text14Regular,className:"line-through"},{children:[Jm({price:u,currency:d,roundingTo:0,mode:"sign",side:"left"}),"/",null==r?void 0:r("therapist_list_item.pre_session_short")]})):e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.session_duration",{value:f})}))]})),!!s&&t("div",xe({className:kr("flex flex-col",v)},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:null==r?void 0:r("therapist_list_item.years_of_experience",{count:s})})),e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.years_of_experience_label")}))]})),!!l&&!!o&&t("div",xe({className:kr("flex flex-col",v)},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:t("div",xe({className:"flex items-center"},{children:[e(Go,{className:"w-4 h-4 mr-1"})," ",ym(o)]}))})),e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.number_of_reviews",{count:l})}))]})),c&&t("div",xe({className:"flex flex-col w-1/2"},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:c&&(null==r?void 0:r("therapist_list_item.hours_of_practice",{value:Am(c),count:c}))})),e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.hours_of_practice_label")}))]}))]}))},jx=function(n){var r=n.minutes,i=n.seconds,o=n.onCompleted,a=n.t,l=60*r+i,s=1e3*l,c=De(G(l),2),u=c[0],d=c[1],f=De(G(s),2),p=f[0],h=f[1];W(function(){var e=setInterval(function(){h(function(t){return t<=0?(clearInterval(e),0):t-100})},100);return function(){return clearInterval(e)}},[r,i]),W(function(){var e=setInterval(function(){d(function(t){return t<=0?(clearInterval(e),null==o||o(),0):t-1})},1e3);return function(){return clearInterval(e)}},[r,i,o]);var g=Math.floor(u/60),v=u%60;return t("div",xe({className:"flex flex-col gap-5 items-center"},{children:[e(Ky,{progress:p/s,reversed:!0,variant:"success"}),e(Tr,xe({variant:nr.Text16Regular},{children:null==a?void 0:a("timer.time_left_hint",{minutes:g,seconds:v})}))]}))},Nx=function(n){return t("svg",xe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},n,{children:[e("circle",{cx:"12",cy:"12",r:"10"}),e("rect",{x:"7",y:"11",width:"10",height:"2",fill:"#D9D9D9"})]}))},Xx=function(t){var n=t.items,r=t.name,i=t.type,o=t.onChange,a=t.values,l=void 0===a?[]:a;return e("ul",{children:n.map(function(t,a){var s=t.value,c=t.label,u=t.id,d=s||c;return e("li",xe({className:kr("flex p-0 cursor-pointer list-none outline-none",{"border-b border-borders-divider":a!==n.length-1})},{children:e(xA,{checked:l.includes(d),type:i,name:r,value:d,label:c,id:u,onChange:function(e){if(i===mA.Checkbox){var t=l.find(function(t){return t===e});o(t?l.filter(function(e){return e!==t}):ke(ke([],De(l),!1),[e],!1))}else o([e])}})}),a)})})},Qx=function(n){var r=n.sections,i=n.name,o=n.defaultChecked,a=void 0===o?[]:o,l=n.onChange,s=De(G([]),2),c=s[0],u=s[1];return W(function(){l(c)},[c]),W(function(){u(a)},[]),e("ul",{children:r.map(function(n,r){var o=n.name,a=n.items,l=a.map(function(e){var t=e.value,n=e.label;return t||n}),s=l.every(function(e){return c.includes(e)}),d=l.some(function(e){return c.includes(e)})&&!s,f=!d&&!s;return t("li",{children:[t(z,xe({onClick:function(){if(f&&u(Array.from(new Set(ke(ke([],De(c),!1),De(l),!1)))),d||s){var e=c.filter(function(e){return!l.includes(e)});u(e)}},className:"left-1/2 right-1/2 relative w-[100vw] p-4 mx-[-50vw] justify-between bg-color-background-anti-flash-light flex items-center gap-4"},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:o})),f&&e(Do,{className:"w-6 h-6 rigth-24"}),d&&e(Nx,{className:"w-6 h-6 rigth-24"}),s&&e(Bo,{className:"w-6 h-6 rigth-24"})]})),e(Xx,{values:c,items:a,name:i,onChange:function(e){var t=c.filter(function(e){return!l.includes(e)});u(Array.from(new Set(ke(ke([],De(t),!1),De(e),!1))))},type:mA.Checkbox})]},r)})})};const Ix=Ae("Share",{web:()=>Promise.resolve().then(function(){return Xpe}).then(e=>new e.ShareWeb)});class Rx extends ye{async write(e){if("undefined"==typeof navigator||!navigator.clipboard)throw this.unavailable("Clipboard API not available in this browser");if(void 0!==e.string)await this.writeText(e.string);else if(e.url)await this.writeText(e.url);else{if(!e.image)throw new Error("Nothing to write");if("undefined"==typeof ClipboardItem)throw this.unavailable("Writing images to the clipboard is not supported in this browser");try{const t=await(await fetch(e.image)).blob(),n=new ClipboardItem({[t.type]:t});await navigator.clipboard.write([n])}catch(e){throw new Error("Failed to write image")}}}async read(){if("undefined"==typeof navigator||!navigator.clipboard)throw this.unavailable("Clipboard API not available in this browser");if("undefined"==typeof ClipboardItem)return this.readText();try{const e=await navigator.clipboard.read(),t=e[0].types[0],n=await e[0].getType(t);return{value:await this._getBlobData(n,t),type:t}}catch(e){return this.readText()}}async readText(){if("undefined"==typeof navigator||!navigator.clipboard||!navigator.clipboard.readText)throw this.unavailable("Reading from clipboard not supported in this browser");return{value:await navigator.clipboard.readText(),type:"text/plain"}}async writeText(e){if("undefined"==typeof navigator||!navigator.clipboard||!navigator.clipboard.writeText)throw this.unavailable("Writting to clipboard not supported in this browser");await navigator.clipboard.writeText(e)}_getBlobData(e,t){return new Promise((n,r)=>{const i=new FileReader;t.includes("image")?i.readAsDataURL(e):i.readAsText(e),i.onloadend=()=>{const e=i.result;n(e)},i.onerror=e=>{r(e)}})}}const Fx=Ae("Clipboard",{web:()=>new Rx});var Vx="ShareModalFeature-module_container__sTTuu",Gx="ShareModalFeature-module_withShare__4PNgP";tt(".ShareModalFeature-module_container__sTTuu{--max-width:450px;--height:136px;--border-radius:32px;--backdrop-opacity:0.6}.ShareModalFeature-module_withShare__4PNgP{--height:200px}.ShareModalFeature-module_container__sTTuu::part(content){border-bottom-left-radius:0;border-bottom-right-radius:0}",{insertAt:"top"});var Wx=function(n){var r,i=n.isOpen,a=n.shareUrl,l=n.shareTitle,s=n.shareText,c=n.onDidDismiss,u=n.onLinkCopied,d=n.onShare,f=n.t,p=De(G(!1),2),h=p[0],g=p[1];W(function(){Pe(void 0,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return[4,Ix.canShare()];case 1:return e.sent().value&&g(!0),[2]}})})},[Ix]);var v=Y(function(){return Pe(void 0,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return[4,Fx.write({string:a})];case 1:return e.sent(),null==u||u(),[2]}})})},[a,u]),m=Y(function(){return Pe(void 0,void 0,void 0,function(){var e;return Oe(this,function(t){switch(t.label){case 0:return null==d||d(),e={title:l,text:s,url:a},o("android")?[4,Ix.share(xe(xe({},e),{dialogTitle:l}))]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,navigator.share(e)];case 3:t.sent(),t.label=4;case 4:return[2]}})})},[a,s,l,d]);return t(P,xe({isOpen:i,onDidDismiss:c,initialBreakpoint:1,breakpoints:[0,1],className:kr(Vx,(r={},r[Gx]=h,r))},{children:[e("div",{className:"h-6"}),e(y,{children:e("div",xe({className:"px-5 pb-6"},{children:t("ul",xe({className:"flex flex-col divide-y divide-solid divide-borders-divider text-color-black"},{children:[t("li",xe({className:"flex items-center gap-4 py-5 cursor-pointer",onClick:v},{children:[e(Ea,{}),e(Tr,{children:null==f?void 0:f("therapist_details.copy_profile_link")})]})),h&&t("li",xe({className:"flex items-center gap-4 py-5 cursor-pointer",onClick:m},{children:[e(za,{})," ",e(Tr,{children:null==f?void 0:f("therapist_details.share_profile")})]}))]}))}))})]}))},Yx=U(function(n){var r=n.t,i=n.name,o=n.date,a=n.avatar,l=n.locale,s=n.timezone,c=n.onUserClick;return t("div",xe({className:"flex flex-col justify-center items-center"},{children:[t("div",xe({onClick:null!=c?c:void 0,className:"cursor-pointer flex flex-col justify-center items-center"},{children:[e(ro,{src:a,alt:i,variant:"medium"}),e(Tr,xe({variant:nr.Title20Semi,className:"mt-3 mb-1"},{children:i}))]})),e(Tr,xe({variant:nr.Text14Regular,opacity:50},{children:de.fromJSDate(o).setZone(s).setLocale(l).toFormat("dd MMMM yyyy HH:mm")})),t(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"mb-4"},{children:[s," (",de.local().setLocale(l).setZone(s).toFormat("ZZZZ"),")"]})),de.now()<de.fromJSDate(o)&&e(es,xe({variant:"success",type:"accent",className:"!bg-color-info-mint"},{children:null==r?void 0:r("payments.session_details.future_session.badge")}))]}))}),Ux=function(n){var r=n.className;return t("div",xe({className:r},{children:[e("div",xe({className:"flex justify-center mb-14"},{children:e(no,{className:"rounded-[28px] w-[142px] h-[30px]"})})),t(rs,xe({variant:"neutral"},{children:[t("div",xe({className:"flex justify-between my-1 pb-4 border-b border-color-black border-opacity-10"},{children:[e(no,{className:"rounded-[12px] w-[102px] h-[14px]"}),e(no,{className:"rounded-[12px] w-[74px] h-[14px]"})]})),t("div",xe({className:"flex justify-between my-1 py-4 border-b border-color-black border-opacity-10"},{children:[e(no,{className:"rounded-[12px] w-[142px] h-[14px]"}),e(no,{className:"rounded-[12px] w-[50px] h-[14px]"})]})),t("div",xe({className:"flex justify-between my-1 pt-4"},{children:[e(no,{className:"rounded-[12px] w-[62px] h-[14px]"}),e(no,{className:"rounded-[12px] w-[97px] h-[14px]"})]}))]}))]}))},Kx=function(n){var r=n.className;return t("div",xe({className:"".concat(r," flex flex-col justify-center items-center")},{children:[e(no,{className:"rounded-full w-[72px] h-[72px] !mb-4"}),t("div",xe({className:"my-1 flex flex-col items-center"},{children:[e(no,{className:"rounded-[12px] w-[142px] h-[14px] !mb-2"}),e(no,{className:"rounded-[12px] w-[94px] h-[10px]"})]}))]}))},qx=U(function(r){var i,o=r.t,a=r.consultation,l=r.isLoading,s=r.locale,c=r.timezone,u=r.onUserClick,d=Z(function(){var e,t,n,r,i,o,l,s=function(e){return.01*(null!=e?e:0)},c=a.payment;return{localCurrency:null!==(e=null==c?void 0:c.currency_local)&&void 0!==e?e:Bm.UAH,mainCurrency:null!==(t=null==c?void 0:c.currency_default)&&void 0!==t?t:Bm.EUR,exchangeRate:null!==(n=null==c?void 0:c.exchange_rate)&&void 0!==n?n:0,discount:null!==(r=(null==c?void 0:c.promocode_discount)||(null==c?void 0:c.subscription_discount))&&void 0!==r?r:0,sessionsCount:null!==(i=null==c?void 0:c.subscription_sessions_count)&&void 0!==i?i:0,interval:null!==(o=null==c?void 0:c.subscription_interval_in_month)&&void 0!==o?o:0,sessionMainPrice:s(null==c?void 0:c.price_default_original_in_cents),sessionLocalPrice:s(null==c?void 0:c.price_local_original_by_exchange_rate_in_cents),discountMainPrice:s(null==c?void 0:c.price_default_discount_in_cents),discountLocalPrice:s(null==c?void 0:c.price_local_discount_by_exchange_rate_in_cents),promocodeMainPrice:s(null==c?void 0:c.price_default_promocode_in_cents),promocodeLocalPrice:s(null==c?void 0:c.price_local_promocode_by_exchange_rate_in_cents),sessionMainPriceAfterDiscount:s(null==c?void 0:c.price_default_in_cents),sessionLocalPriceAfterDiscount:s(null==c?void 0:c.price_local_by_exchange_rate_in_cents),commissionMainPrice:s(null==c?void 0:c.price_default_commission_in_cents),commissionLocalPrice:s(null==c?void 0:c.price_local_commission_by_exchange_rate_in_cents),mainSpecialistRevenue:s(null==c?void 0:c.price_default_after_commission_in_cents),localSpecialistRevenue:s(null==c?void 0:c.price_local_after_commission_by_exchange_rate_in_cents),commission:null!==(l=null==c?void 0:c.commission)&&void 0!==l?l:0}},[a]),f=[{text:null==o?void 0:o("payments.session_details.price.title"),mainPrice:Jm({price:d.sessionMainPrice,currency:d.mainCurrency}),localPrice:Jm({price:d.sessionLocalPrice,currency:d.localCurrency}),isBold:!1}];return(d.interval||d.promocodeMainPrice)&&f.push({text:"".concat(null==o?void 0:o(d.promocodeMainPrice?"payments.session_details.promocode.title":"payments.session_details.discount.title",{discount:(i=100*d.discount,Math.round(100*i)/100)}),"%"),mainPrice:"-".concat(Jm({price:d.promocodeMainPrice||d.discountMainPrice,currency:d.mainCurrency})),localPrice:"-".concat(Jm({price:d.promocodeLocalPrice||d.discountLocalPrice,currency:d.localCurrency})),isBold:!1},{text:null==o?void 0:o("payments.session_details.session_amount.title"),mainPrice:Jm({price:d.sessionMainPriceAfterDiscount,currency:d.mainCurrency}),localPrice:Jm({price:d.sessionLocalPriceAfterDiscount,currency:d.localCurrency}),isBold:!0}),f.push({text:"".concat(null==o?void 0:o("payments.session_details.fee.title",{fee:100*d.commission}),"%"),mainPrice:"-".concat(Jm({price:d.commissionMainPrice,currency:d.mainCurrency})),localPrice:"-".concat(Jm({price:d.commissionLocalPrice,currency:d.localCurrency})),isBold:!1},{text:null==o?void 0:o("payments.session_details.total.title"),mainPrice:Jm({price:d.mainSpecialistRevenue,currency:d.mainCurrency}),localPrice:Jm({price:d.localSpecialistRevenue,currency:d.localCurrency}),isBold:!0}),t(n,l?{children:[e(Kx,{className:"mb-14"}),e(Ux,{})]}:{children:[e("div",xe({className:"mb-8"},{children:e(Yx,{t:o,name:a.name,date:a.date,avatar:a.avatar,locale:s,timezone:c,onUserClick:u})})),t("div",xe({className:"mb-8"},{children:[e(Tr,xe({variant:nr.Title48Semi,className:"mb-2 text-center"},{children:Jm({price:d.mainSpecialistRevenue,currency:d.mainCurrency})})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-center"},{children:Jm({price:d.localSpecialistRevenue,currency:d.localCurrency})})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-center"},{children:null==o?void 0:o("payments.session_details.exchange_rate.subtitle",{rate:d.exchangeRate})}))]})),t(rs,xe({className:"mb-5 !border-opacity-35 flex justify-between",variant:"neutral",size:"M"},{children:[e(Tr,xe({variant:nr.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center"},{children:null==o?void 0:o("payments.session_details.type.title")})),t("div",{children:[e(Tr,xe({variant:nr.Text16Regular,opacity:100,className:"text-typography-typography-secondary text-right"},{children:d.interval?null==o?void 0:o("payments.session_details.type.subscription"):null==o?void 0:o("payments.session_details.type.trial")})),!!d.interval&&e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:null==o?void 0:o("payments.session_details.type.subscription_item",{count:d.sessionsCount,period:d.interval})}))]})]})),e(rs,xe({className:"mb-5 !border-opacity-35",variant:"neutral",size:"M"},{children:f.map(function(n,r){return t("div",xe({className:"flex justify-between border-color-black border-opacity-10 ".concat(r<f.length-1?"pb-5":"")},{children:[e(Tr,xe({variant:nr.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center w-2/3"},{children:n.text})),t("div",xe({className:"flex flex-col items-end w-1/3"},{children:[e(Tr,xe({variant:nr[n.isBold?"Text16Semi":"Text16Regular"],opacity:100,className:"text-typography-typography-primary"},{children:n.mainPrice})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:n.localPrice}))]}))]}),"item-".concat(r))})}))]})});function Jx(e){var t=de.fromJSDate(null!=e?e:"").month,n=de.fromJSDate(null!=e?e:"").year,r=de.now().day,i=de.now().month,o=de.now().year,a={isPreviousMonth:!1,isOldMonth:!1,isCurrentMonth:!1,isFutureMonth:!1};return o>=n&&(o>n||i>t+1?a.isOldMonth=!0:o===n&&i===t+1?r<=10?a.isPreviousMonth=!0:a.isOldMonth=!0:o===n&&i===t&&(a.isCurrentMonth=!0)),a.isFutureMonth=!a.isPreviousMonth&&!a.isOldMonth&&!a.isCurrentMonth,a}function Zx(e,t){var n=de.utc(new Date(e).getUTCFullYear(),new Date(e).getUTCMonth()+1,2);return t&&(n=n.setLocale(t)),n.toFormat("LLLL yyyy")}function _x(e){var t=e.date,n=e.locale,r=Jx(t),i=r.isOldMonth,o=r.isCurrentMonth;return Z(function(){var e=de.fromObject({year:(i?de.fromJSDate(t):de.now()).year,month:(i?de.fromJSDate(t):de.now()).month,day:10});return(i||o)&&(e=e.plus({month:1})),n&&(e=e.setLocale(n)),e.toFormat("d MMMM yyyy")},[t,n,i])}var $x={previous:"previous",future:"future"};var eC=U(function(t){var r=t.t,i=t.date,o=t.locale,a=t.className,l=new Date(i),s=Jx(l),c=s.isOldMonth,u=s.isPreviousMonth,d=_x({date:de.fromObject({year:de.fromJSDate(l).year,month:de.fromJSDate(l).month}).toJSDate(),locale:o}),f=_x({date:l,locale:o});return c?e(es,xe({className:a,variant:"success"},{children:null==r?void 0:r("payments.payout_paid.badge",{date:d})})):u?e(es,xe({className:a,variant:"attention"},{children:null==r?void 0:r("payments.payout_in_progress.badge",{date:f})})):e(n,{})}),tC=Qi({slots:{sessionsLabel:"text-color-text-primary font-bold text-[16px]",skeletonWrapper:"bg-color-background-anti-flash-light rounded-[30px]",skeletonTLWTile:"rounded-[12px] w-[118px] h-[12px] !mb-2",skeletonTSWTile:"rounded-[12px] w-[62px] h-[18px]",skeletonBLNTile:"rounded-[20px] w-[104px] h-[8px] !mb-2",skeletonBLNTile2:"rounded-[20px] w-[83px] h-[8px] !mb-2",skeletonBSWTile:"rounded-[12px] w-[38px] h-[12px] !mb-3",skeletonBMWTile:"rounded-[12px] w-[70px] h-[10px]",skeletonBMWTile2:"rounded-[12px] w-[62px] h-[10px]"}}),nC=function(n){var r=n.className,i=tC();return t("div",xe({className:"".concat(i.skeletonWrapper()," ").concat(r)},{children:[t("div",xe({className:"flex justify-start mb-9"},{children:[t("div",xe({className:"flex flex-col w-1/2"},{children:[e(no,{className:i.skeletonTLWTile()}),e(no,{className:i.skeletonTSWTile()})]})),t("div",xe({className:"flex flex-col w-1/2"},{children:[e(no,{className:i.skeletonTLWTile()}),e(no,{className:i.skeletonTSWTile()})]}))]})),t("div",xe({className:"flex justify-between"},{children:[t("div",xe({className:"flex flex-col"},{children:[e(no,{className:i.skeletonBLNTile()}),e(no,{className:i.skeletonBSWTile()}),e(no,{className:i.skeletonBMWTile()})]})),t("div",xe({className:"flex flex-col"},{children:[e(no,{className:i.skeletonBLNTile()}),e(no,{className:i.skeletonBSWTile()}),e(no,{className:i.skeletonBMWTile()})]})),t("div",xe({className:"flex flex-col"},{children:[e(no,{className:i.skeletonBLNTile2()}),e(no,{className:i.skeletonBSWTile()}),e(no,{className:i.skeletonBMWTile2()})]}))]}))]}))},rC=U(function(r){var i,o=r.t,a=r.revenue,l=r.currency,s=r.showRevenue,c=r.currencyProps,u=r.commissionRates,d=r.commissionValue,f=r.showCommission,p=r.calendarDate,h=r.totalSessionsCount,g=r.futureSessionsCount,v=r.isLoading,m=r.isInvoiceLoading,b=r.hideProgressBar,A=r.locale,y=r.onInvoiceClick,w=Object.keys(u).map(function(e,t,n){return{start:t-1>=0?parseInt(n[t-1],10)+1:1,end:parseInt(e,10),value:Number(u[Number(e)])}}),x=g;x>h&&(x=h);var C=h-x,P=Jx(p),O=P.isPreviousMonth,B=P.isOldMonth,D=P.isCurrentMonth,k=P.isFutureMonth,z=d||(null===(i=w[0])||void 0===i?void 0:i.value)||0;return t(rs,xe({variant:"neutral"},{children:[s&&l&&t("div",{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o(k||D?"payments.planned_income.title":"payments.income.title")})),t("div",xe({className:"flex justify-between items-center"},{children:[e(Tr,xe({variant:nr.Title48Semi,className:"text-typography-typography-secondary"},{children:Jm(xe({price:Number(.01*(null!=a?a:0)),currency:l},c||{}))})),B&&e(n,{children:m?e(Gy,{}):e(aa,{className:"cursor-pointer",onClick:y})})]}))]}),v&&e("div",xe({className:"mt-5"},{children:e(nC,{})})),!v&&t(n,{children:[s&&p&&e(eC,{t:o,className:"mt-5 !block !w-fit",date:p,locale:A}),t(n,{children:[f&&t("div",xe({className:"inline-block w-1/2 ".concat(s?"mt-5":"")},{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o("payments.commission_rate.title")})),t(Tr,xe({variant:nr.Title20Semi,className:"text-typography-typography-secondary"},{children:[100*z,"%"]}))]})),t("div",xe({className:"\n ".concat(D?"w-full":""," \n ").concat(f&&D||s?"mt-5":""," \n inline-block\n ")},{children:[!k&&t("div",xe({className:"".concat(D?"w-1/2":""," inline-block")},{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o("payments.sessions_held.title")})),e(Tr,xe({variant:nr.Title20Semi,className:"text-typography-typography-secondary"},{children:C}))]})),!B&&!O&&t("div",xe({className:"".concat(k?"":"w-1/2"," inline-block")},{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o("payments.future_sessions.title")})),e(Tr,xe({variant:nr.Title20Semi,className:"text-typography-typography-secondary"},{children:x}))]}))]}))]}),!b&&e(Cw,{t:o,ranges:w,progress:C,maxValue:h,className:"mt-5"})]})]}))}),iC=Qi({slots:{tab:"p-4 w-1/2 text-center cursor-pointer opacity-65",consultationCard:"flex justify-between items-center w-full mt-4 pb-4 border-b border-typography-typography-primary/10 cursor-pointer"},variants:{multiple:{false:{tab:"!border-b-0 text-left pl-0 !w-full"}},active:{true:{tab:"border-b-2 font-semibold opacity-100"}}}}),oC=U(function(r){var i,o,a,l,s,c,u=r.consultation,d=r.locale,f=r.consultationClick,p=iC(),h=de.fromJSDate(u.date).setLocale(null!=d?d:"uk").toFormat("dd MMMM yyyy");return u?t("div",xe({onClick:f?function(){return f(u)}:function(){return null},className:"".concat(p.consultationCard()," ").concat(f?"cursor-pointer":"")},{children:[t("div",xe({className:"flex flex-start items-center"},{children:[e("div",xe({className:"mr-4"},{children:e(ro,{src:u.avatar,alt:u.name})})),t("div",xe({className:"flex flex-col"},{children:[e(Tr,xe({variant:nr.Text16Regular},{children:u.name})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:h}))]}))]})),t("div",xe({className:"flex flex-col"},{children:[e(Tr,xe({variant:nr.Text16Regular,className:"text-right"},{children:Jm({price:.01*(null!==(o=null===(i=u.payment)||void 0===i?void 0:i.price_default_after_commission_in_cents)&&void 0!==o?o:0),currency:null===(a=u.payment)||void 0===a?void 0:a.currency_default})})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:Jm({price:.01*(null!==(s=null===(l=u.payment)||void 0===l?void 0:l.price_local_after_commission_by_exchange_rate_in_cents)&&void 0!==s?s:0),currency:null===(c=u.payment)||void 0===c?void 0:c.currency_local})}))]}))]})):e(n,{})}),aC=U(function(t){var r=t.consultations,i=t.locale,o=t.consultationClick;return e(n,{children:r.map(function(t){return e(oC,{consultationClick:o,consultation:t,locale:i},t.id)})})}),lC=U(function(r){var i=r.t,o=r.calendarDate,a=r.consultations,l=r.locale,s=r.futureCount,c=r.previousCount,u=r.defaultTab,d=r.consultationsModeTrigger,f=r.consultationClick,p=iC(),h=De(G(""),2),g=h[0],v=h[1],m=function(e){var t=e.t,n=e.date,r=e.defaultTab,i=e.futureCount,o=e.previousCount;return Z(function(){var e=Jx(new Date(n)),a=e.isPreviousMonth,l=e.isOldMonth,s=e.isCurrentMonth;if(a||l)return{activeTab:$x.previous,tabs:[{label:t("payments.held_sessions.subtitle"),value:$x.previous}]};if(s){var c=[];return o&&c.push({label:t(i?"payments.balance_details.held_tab":"payments.held_sessions.subtitle"),value:$x.previous}),i&&c.push({label:t(o?"payments.balance_details.future_tab":"payments.future_sessions.title"),value:$x.future}),{activeTab:Object.values($x).includes(null!=r?r:"")?r:o?$x.previous:$x.future,tabs:c}}return{activeTab:$x.future,tabs:[{label:t("payments.future_sessions.title"),value:$x.future}]}},[n,i,o,r])}({t:i,date:o,futureCount:s,previousCount:c,defaultTab:u}),b=m.activeTab,A=m.tabs,y=A.length>1;W(function(){g!==b&&(v(b),d(b))},[b]);return t(n,{children:[e("div",xe({className:"mt-4 flex justify-between items-center"},{children:A.map(function(t,n){return e(Tr,xe({variant:nr[y?"Text14Semi":"Title18Semi"],onClick:function(){return function(e){e.value!==g&&(v(e.value),d(e.value))}(t)},className:p.tab({active:g===t.value,multiple:y})},{children:t.label}),"".concat(t.value,"-").concat(n))})})),e(aC,{consultationClick:f,consultations:a,locale:l})]})}),sC=function(r){var i=r.className;return e(n,{children:[1,.8,.6,.4,.2].map(function(n,r){return t("div",xe({className:"flex justify-between items-center w-full mt-3 pb-3 border-b border-color-black border-opacity-10 ".concat(i),style:{opacity:n}},{children:[t("div",xe({className:"flex flex-start items-center"},{children:[e("div",xe({className:"mr-4"},{children:e(no,{className:"w-10 h-10 rounded-full"})})),t("div",xe({className:"flex flex-col"},{children:[e(no,{className:"w-[142px] h-[14px] rounded-[12px] !mb-2"}),e(no,{className:"w-[94px] h-[10px] rounded-[12px]"})]}))]})),t("div",xe({className:"flex flex-col items-end"},{children:[e(no,{className:"w-[64px] h-[14px] rounded-[12px] !mb-2"}),e(no,{className:"w-[32px] h-[10px] rounded-[12px]"})]}))]}),r)})})};var cC=U(function(n){var r=n.t,i=n.date,o=n.locale,a=n.mode,l=void 0===a?"button":a,s=n.opened,c=n.lastDate,u=n.dateCallback,d=De(G(new Date(i.setDate(2))),2),f=d[0],p=d[1],h=De(G(s),2),g=h[0],v=h[1],m=function(e){for(var t=e.locale,n=e.lastDate,r=[],i=de.fromISO("2022-01-01").toJSDate(),o=de.local().toJSDate(),a=n||o;a>i;){var l=de.fromJSDate(a);t&&(l=l.setLocale(t));var s=l.toFormat("LLLL yyyy");r.push({label:s,value:a}),a=de.fromJSDate(a).minus({month:1}).toJSDate()}return r}({locale:o,lastDate:c});W(function(){s!==g&&v(s)},[s]);return e(Yy,xe({isOpen:g,heightInPx:402,onIonModalDidDismiss:function(){u(f),v(!1)}},{children:t(oo,xe({className:"pt-10 h-full flex flex-1 flex-col"},{children:[e(Tr,xe({variant:nr.Title24Semi,className:"mt-10 text-center"},{children:null==r?void 0:r("select_period.title")})),e(Vw,{className:"relative",selections:{calendarList:m},defaults:{calendarList:Zx(f,o)},onChange:function(e){p(e.calendarList.value),"button"!==l&&(u(f),v(!1))}}),"button"===l&&e(Fi,xe({onClick:function(){u(f),v(!1)},className:"w-full text-center !mt-3",size:"large"},{children:null==r?void 0:r("select_period.button")}))]}))}))}),uC=U(function(r){var i=r.t,o=r.date,a=r.locale,l=r.lastDate,s=r.dateCallback,c=De(G(o),2),u=c[0],d=c[1],f=De(G(!1),2),p=f[0],h=f[1];W(function(){o!==u&&d(o)},[o]);return t(n,{children:[e(xo,{onClick:function(){h(!0)},className:"cursor-pointer"}),e(cC,{t:i,date:o,locale:a,lastDate:l,mode:"button",opened:p,dateCallback:function(e){h(!1),d(e),s(e)}})]})});function dC(n){var r=n.status,i=n.isOpen,o=n.onSync,a=n.isLoading,l=n.presentingElement,s=n.imageUrl,c=n.onDidDismiss,u=n.t;return t(kx,xe({presentingElement:l,isOpen:i,onDidDismiss:c},{children:[t(oo,xe({className:"h-full"},{children:[e("div",xe({className:"flex justify-center mt-3"},{children:e(mo,{width:335,height:292,src:{src:s},srcType:"image/webp"})})),t(Tr,xe({variant:nr.Title24Semi,className:"mt-6",align:"center"},{children:["inactive"===r&&u("google_sync.title"),"access_denied"===r&&u("google_calendar.no_permission.title")]})),t(Tr,xe({variant:nr.Text14Regular,className:"!text-typography-typography-primary/50 mt-3",align:"center"},{children:["inactive"===r&&u("google_sync.description"),"access_denied"===r&&u("google_calendar.no_permission.description")]}))]})),e(Yi,{children:t(Fi,xe({size:"large",fullWidth:!0,isLoading:a,onClick:o},{children:["inactive"===r&&u("google_sync.next_button"),"access_denied"===r&&u("google_calendar.no_permission.button")]}))})]}))}var fC=Qi({slots:{base:"w-full flex flex-col",userContainer:"flex flex-row items-center justify-between min-h-0 w-full",user:"flex items-center gap-4",editContainer:"ml-2 p-3 w-[max-content] h-[max-content] cursor-pointer rounded-[40px] border border-borders-divider",editIcon:"w-3 h-3",rating:"!gap-1",review:"",reviewText:"",name:"",mainTextVariant:"",dateTextVariant:"",ratingSize:null,avatarSize:null},variants:{size:{default:{base:"p-4 rounded-3xl",userContainer:"mb-4",rating:"mb-2.5",mainTextVariant:nr.Text15Regular,dateTextVariant:nr.Text13Regular,ratingSize:16,avatarSize:"small"},small:{base:"p-2 rounded-xl",userContainer:"mb-3",rating:"mb-1",editContainer:"p-1",editIcon:"w-2 h-2",mainTextVariant:nr.Text7Regular,dateTextVariant:nr.Text6Regular,ratingSize:8,avatarSize:"smaller"},large:{base:"p-5 rounded-3xl min-h-[313px]",userContainer:"mb-4",rating:"mb-2.5",mainTextVariant:nr.Text15Regular,dateTextVariant:nr.Text13Regular,ratingSize:20,avatarSize:"small"}},variant:{default:{base:"bg-color-background-anti-flash-light"},outlined:{base:"border border-borders-divider",rating:"mb-0",review:"mt-3"},full:{base:"p-0 flex flex-row flex-wrap justify-between min-h-0",user:"flex-shirnk-0",userContainer:"mb-2",review:"flex-grow-0 flex-shrink-0 basis-full"},store:{base:"bg-color-background-anti-flash-light min-h-0 [&_.text-controls-element-selected]:text-color-info-orange",name:"font-[600]",rating:"order-2 mb-0",review:"order-1 mt-3 mb-2",userContainer:"order-1 mb-0"},starFirst:{base:"border border-borders-divider flex p-5 min-h-[auto] [&_.text-controls-element-selected]:text-color-info-orange",name:"font-[400] leading-[120%] text-typography-typography-secondary",rating:"order-1 mb-0 !flex justify-center text-color-info-orange",review:"order-2 mt-2 mb-1",reviewText:"text-center font-[600]",userContainer:"order-3 mb-0 flex justify-center"}}}}),pC=U(function(r){var i=r.text,o=r.title,a=r.countLines,l=r.variant,s=void 0===l?nr.Text15Regular:l,c=r.expandType,u=r.classNameTitle,d=r.classNameReviewText,f=r.onExpand,p=r.t,h=r.presentingElement,g=r.onMoreClick,v=r.hideShowMore,m=Ce(r,["text","title","countLines","variant","expandType","classNameTitle","classNameReviewText","onExpand","t","presentingElement","onMoreClick","hideShowMore"]),b=De(G(!1),2),A=b[0],y=b[1],w=De(G(!1),2),x=w[0],C=w[1],P=K(null),O=K(null),B=function(t){return o&&e(Tr,xe({variant:t||nr.Title20Semi,className:kr("mt-6 mb-2",u)},{children:o}))},D=function(t){var n;return void 0===t&&(t=x),e(Tr,xe({variant:s,className:kr("overflow-hidden whitespace-pre-wrap",(n={},n["line-clamp-".concat(a)]=!t,n["line-clamp-none"]=t,n["pb-8"]=t&&"modal"===c,n),d),ref:P},m,{children:e("div",{dangerouslySetInnerHTML:{__html:i}})}))};W(function(){requestAnimationFrame(function(){!function(){var e;if(P.current&&a){var t=parseFloat(getComputedStyle(P.current).lineHeight)*a;(null===(e=P.current)||void 0===e?void 0:e.scrollHeight)>t?y(!0):y(!1)}}()})},[i,a]);return t(n,{children:[B(),D(),A&&!v&&e(lx,xe({onClick:"function"==typeof f?f:"inline"===c?function(){x||null==g||g(),C(!x)}:"modal"===c?function(){var e;null==g||g(),null===(e=O.current)||void 0===e||e.present()}:void 0,className:"mt-3"},{children:x?null==p?void 0:p("therapist_details.show_less"):null==p?void 0:p("therapist_details.show_more")})),e(Yy,xe({ref:O,presentingElement:h,withCloseButton:!0},{children:t(oo,{children:[B(nr.Title28Semi),D(!0)]})}))]})}),hC=q(function(n,r){var i=n.id,o=n.avatarSrc,a=n.name,l=n.date,s=n.rating,c=n.review,u=n.size,d=void 0===u?"default":u,f=n.variant,p=void 0===f?"default":f,h=n.reviewTextClamp,g=n.onExpandReview,v=n.t,m=n.className,b=n.locale,A=n.useDate,y=void 0!==A&&A,w=n.isEditable,x=void 0!==w&&w,C=n.onEditReview,P=fC({size:d,variant:p}),O=P.base,B=P.userContainer,D=P.user,k=P.editContainer,z=P.editIcon,E=P.rating,H=P.mainTextVariant,S=P.dateTextVariant,T=P.ratingSize,L=P.avatarSize,M=P.review,j=P.reviewText,N=P.name,X=Z(function(){var e=de.now().startOf("day"),t=de.fromSeconds(l).startOf("day"),n=e.diff(t,"days").toObject();return n.days?Math.ceil(n.days):0},[l]),Q=Z(function(){return X<=0?null==v?void 0:v("reviews.today_subtitle"):y&&b?de.fromSeconds(l).toLocaleString(de.DATE_MED,{locale:b}):null==v?void 0:v("reviews.days_before_subtitle",{count:X})},[X,v,b,y,l]),I=H(),R=S(),F=T();return t("div",xe({className:kr(O(),m),ref:r},{children:[t("div",xe({className:B()},{children:[t("div",xe({className:D()},{children:["starFirst"!==p&&e(ro,{src:o,variant:L()}),t("div",{children:[e(Tr,xe({variant:I,className:N()},{children:a})),"starFirst"!==p&&e(Tr,xe({variant:R,opacity:50},{children:Q}))]})]})),x&&e("div",xe({onClick:function(){null==C||C({id:null!=i?i:"",review_rating:s,text_of_review:c})},className:k()},{children:e(Ia,{className:z()})}))]})),e(by,{readonly:!0,initialRating:s,size:F,className:E()}),e("div",xe({className:M()},{children:e(pC,{variant:I,classNameReviewText:j(),countLines:h,text:c,onExpand:function(){null==g||g()},t:v})}))]}))});hC.displayName="ReviewCardFeature";var gC=U(hC),vC=U(function(){var n=new Array(6).fill(0),r=fC({size:"default"}),i=r.base,o=r.user;return e("ul",xe({className:"flex flex-col gap-5"},{children:n.map(function(n,r){return t("div",xe({className:i(),style:{opacity:0===r?1:r>=3?.4:1-(r+r)/10}},{children:[t("div",xe({className:o()},{children:[e(no,{className:"w-10 h-10 rounded-full shrink-0"}),t("div",xe({className:"flex flex-col gap-2 w-full"},{children:[e(no,{className:"w-7/12 h-3.5 rounded-xl"}),e(no,{className:"w-5/12 h-2.5 rounded-xl"})]}))]})),e(no,{className:"w-7/12 h-3.5 rounded-xl"}),t("div",xe({className:"flex flex-col gap-2 w-full mt-[26px]"},{children:[e(no,{className:"w-full h-2.5 rounded-xl"}),e(no,{className:"w-8/12 h-2.5 rounded-xl"})]}))]}),r)})}))});function mC(n){var r=n.isOpen,i=n.showMessenger,o=n.t,a=n.children;return t(Yy,xe({heightInPx:490,isOpen:r,canDismiss:!1},{children:[t(oo,{children:[e("div",xe({className:"mt-5 text-center text-[86px]"},{children:"🥺"})),e(Tr,xe({variant:nr.Title24Semi,align:"center"},{children:null==o?void 0:o("old_device.title")})),e(Tr,xe({variant:nr.Text14Regular,align:"center",className:"mt-3",opacity:50},{children:null==o?void 0:o("old_device.description")}))]}),t(Yi,{children:[a,e(Fi,xe({size:"large",fullWidth:!0,onClick:function(){return i()}},{children:null==o?void 0:o("old_device.button")}))]})]}))}var bC=function(n){var r=n.children,i=n.title,o=n.warnLabel,a=n.btnLabel,l=n.defaultValue,s=n.name,c=n.type,u=n.placeholder,d=n.autocomplete,f=n.handleSubmit,p=n.isLoading,h=n.isDisabled,g=n.isKeyboardShown,v=K(null),m=De(G(null!=l?l:""),2),b=m[0],A=m[1];W(function(){l&&b!==l&&A(l)},[l]),E(function(){v.current&&v.current.focus()},[v]);var y=function(){f(b)};return t(H,{children:[e(as,{children:r}),t(oo,xe({isFlexContainer:!0},{children:[t("div",xe({className:"flex flex-col gap-1"},{children:[e(Tr,xe({variant:nr.Title28Semi},{children:i})),e(Tr,xe({variant:nr.Text15Regular},{children:o}))]})),e(Vy,{ref:v,type:c,name:s,placeholder:u,value:b,autoComplete:d,onChange:function(e){return A(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&y()},required:!0})]})),e(Yi,xe({transparent:!0,bottomSaveArea:!g},{children:e(Fi,xe({isLoading:p,disabled:h,fullWidth:!0,size:"large",onClick:function(){return y()}},{children:a}))}))]})},AC=function(n){var r=n.title,i=n.description,o=n.errorTitle,a=n.stackTrace;return t("div",xe({className:"h-full flex flex-col items-center justify-center gap-2"},{children:[e("div",xe({className:"text-[88px]"},{children:"🙁"})),r&&e(Tr,xe({variant:nr.Title28Semi,align:"center"},{children:r})),i&&e(Tr,xe({variant:nr.Text14Regular,align:"center",opacity:50},{children:i})),t("div",xe({className:"w-full max-h-48 overflow-y-auto whitespace-pre-wrap bg-[#f7f7f9] border border-[#e1e1e8] text-[#333] text-sm p-2"},{children:[o,e("br",{}),e("br",{}),a]}))]}))};tt('.first-paragraph p:first-child{font-style:italic}.nested-list,.nested-list ol{counter-reset:item;list-style:none}.nested-list>li{counter-increment:item}.nested-list>li:before{content:counters(item,".") ". "}.nested-list ol{counter-reset:subitem}.nested-list ol>li{counter-increment:subitem}.nested-list ol>li:before{content:counters(item,".") "." counters(subitem,".") ". "}.nested-list ol ol{counter-reset:subsubitem}.nested-list ol ol>li{counter-increment:subsubitem}.nested-list ol ol>li:before{content:counters(item,".") "." counters(subitem,".") "." counters(subsubitem,".") " "}',{insertAt:"top"});var yC=function(r){var i=r.node,o=r.level,a=function(){switch(i.type){case"<h1>":return"h1";case"<p>":return"p";case"<li>":return"li";case"<ol>":return"ol";case"<ul>":return"ul";default:return te}}();return t(a,xe({className:Ld({"nested-list":"<ol>"===i.type,"pl-7":"<ol>"===i.type&&2===o,"pl-11":"<ol>"===i.type&&3===o,"pl-5":"<ol>"===i.type&&4===o,"pl-3":"<li>"===i.type&&1===o,"my-2":"<li>"===i.type,"mt-5 font-inter-tight text-[20px] font-semibold leading-[140%]":"<h1>"===i.type,"my-5 font-inter text-[14px] leading-[140%]":"<p>"===i.type})},{children:[i.title&&!["<h1>","<p>"].includes(i.type)&&e("span",xe({className:"my-5 font-inter text-[14px] leading-[140%]"},{children:_m(i.title)})),"<h1>"===i.type?_m(i.title):null,"<p>"===i.type?_m(i.title):null,i.children&&i.children.length>0&&e(n,{children:i.children.map(function(t,n){return e(yC,{node:t,level:"<ol>"===i.type?o+1:o},n)})})]}))},wC=U(q(function(t,n){var r=t.data,i=t.className;return e("div",xe({ref:n,className:Ld(i,"first-paragraph")},{children:r.map(function(t,n){return e(yC,{node:t,level:1},n)})}))}));function xC(n){var r=n.isOpen,i=n.presentingElement,o=n.onApply,a=n.onDismiss,l=n.subtitle,s=n.title,c=n.applyText;return t(kx,xe({isOpen:r,presentingElement:i,onDidDismiss:a},{children:[t(oo,{children:[e(Tr,xe({className:"text-8xl mt-12",align:"center"},{children:"☝️"})),e(Tr,xe({className:"mt-5",variant:nr.Title24Semi,align:"center"},{children:s})),e(Tr,xe({className:"mt-2",variant:nr.Text14Regular,align:"center",opacity:50},{children:l}))]}),e(Yi,{children:e(Fi,xe({size:"large",fullWidth:!0,onClick:o},{children:c}))})]}))}wC.displayName="ContentTree";var CC="ScreenInputForm-module_container__Eyh6-",PC="ScreenInputForm-module_input__Hj2X7";tt(".ScreenInputForm-module_container__Eyh6-{--keyboard-offset:0!important}.ScreenInputForm-module_input__Hj2X7::-webkit-inner-spin-button,.ScreenInputForm-module_input__Hj2X7::-webkit-outer-spin-button,.ScreenInputForm-module_input__Hj2X7[type=number]{-webkit-appearance:none;-moz-appearance:textfield;margin:0}",{insertAt:"top"});var OC=U(function(r){var i=r.type,o=void 0===i?"text":i,a=r.title,l=r.subtitle,s=r.subtitleLink,c=r.onSubtitleLinkClick,u=r.placeholder,d=r.buttonText,f=void 0===d?"Зберегти":d,p=r.defaultValue,h=r.name,g=r.onSubmit,v=r.isLoading,m=r.resetButtonText,b=r.resetValue,A=r.autoComplete,y=r.required,w=r.isFocus,x=void 0!==w&&w,C=r.pattern,P=r.isAutoGrow,O=r.icon,B=r.isKeyboardShown,D=void 0!==B&&B,k=De(G(p),2),z=k[0],E=k[1],H=K(null);W(function(){x&&(null==H?void 0:H.current)&&H.current.focus()},[H,x]);var S=Y(function(){z&&(null==g||g(z,null!=h?h:""))},[z,h,g]),T=Y(function(){b&&(E(b),null==g||g(b,null!=h?h:""))},[b,g]),L=Y(function(e){e.preventDefault(),null==c||c()},[c]);return t(n,{children:[t(as,xe({toolbarClassName:"!p-0"},{children:[a&&e(Tr,xe({variant:nr.Title28Semi,className:"mb-1"},{children:a})),l&&t(Tr,xe({variant:nr.Text15Regular,opacity:50},{children:[l," ",s&&e("a",xe({href:"#",className:"underline cursor-pointer text-sl opacity-50",onClick:L},{children:s}))]}))]})),e(oo,xe({className:CC},{children:e(Vy,{ref:H,type:o,placeholder:u,value:z,name:h,onChange:function(e){return E(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&S()},disabled:v,autoComplete:A,required:y,pattern:C,className:PC,isAutoGrow:P,icon:O})})),t(Yi,xe({bottomSaveArea:!D},{children:[m&&e(Fi,xe({fullWidth:!0,type:"button",fill:"clear",className:"!mb-2",onClick:T},{children:m})),e(Fi,xe({type:"button",fullWidth:!0,size:"large",disabled:!z,isLoading:v,onClick:S},{children:f}))]}))]})}),BC=U(function(r){var i=r.title,o=r.subtitle,a=r.buttonText,l=void 0===a?"Save":a,s=r.selections,c=r.defaults,u=r.onChange,d=r.compareBy,f=void 0===d?"label":d,p=r.isLoading,h=void 0!==p&&p,g=r.onTouchStart,v=r.onTouchEnd,m=De(G(c),2),b=m[0],A=m[1],y=Y(function(){b&&u(b)},[b]);return t(n,{children:[t(as,xe({toolbarClassName:"!p-0"},{children:[i&&e(Tr,xe({variant:nr.Title28Semi,className:"mb-1"},{children:i})),o&&e(Tr,xe({variant:nr.Text15Regular,opacity:50},{children:o}))]})),e(oo,xe({isFlexContainer:!0},{children:e("div",xe({className:"flex flex-col flex-1 justify-center",onTouchStart:g,onTouchEnd:v},{children:e(Vw,{selections:s,defaults:b,onChange:function(e){return A(Object.keys(e).reduce(function(t,n){return t[n]=e[n].value,t},{}))},compareBy:f})}))})),e(Yi,{children:e(Fi,xe({fullWidth:!0,type:"button",size:"large",onClick:y,isLoading:h},{children:l}))})]})}),DC="TextAreaForm-module_container__Qd3HG";tt(".TextAreaForm-module_container__Qd3HG{--keyboard-offset:0!important}",{insertAt:"top"});var kC=U(function(r){var i=r.title,a=r.subtitle,l=r.placeholder,s=r.buttonText,c=void 0===s?"Зберегти":s,u=r.defaultValue,d=r.name,f=r.onSubmit,p=r.isLoading,h=r.isFocus,g=void 0!==h&&h,v=r.isKeyboardShown,m=void 0!==v&&v,b=r.maxlength,A=void 0===b?300:b,y=r.HeaderComponent,w=De(G(u),2),x=w[0],C=w[1],P=K(null);W(function(){var e;g&&(null==P?void 0:P.current)&&(null===(e=P.current)||void 0===e||e.setFocus())},[P,g]);var O=Y(function(e){e.preventDefault(),x&&(null==f||f(x,null!=d?d:""))},[x,d,f]);return t(n,{children:[!(!i&&!a)&&e(as,xe({toolbarClassName:"!p-0",className:"mb-5"},{children:t("div",xe({className:"flex flex-col gap-1"},{children:[i&&e(Tr,xe({variant:nr.Title28Semi},{children:i})),a&&e(Tr,xe({variant:nr.Text15Regular,opacity:50},{children:a}))]}))})),t(oo,xe({className:DC},{children:[!!y&&e(y,{}),e(_A,{ref:P,placeholder:l,showCounter:!0,autoGrow:!0,maxlength:A,spellcheck:!0,value:x,name:d,onIonChange:function(e){return C(e.target.value)},onKeyPress:function(e){return!o("hybrid")&&"Enter"===e.key&&O(e)},disabled:p})]})),e(Yi,xe({bottomSaveArea:!m},{children:e(Fi,xe({type:"button",fullWidth:!0,size:"large",disabled:!x,isLoading:p,onClick:O},{children:c}))}))]})});function zC(n){var r=n.isAccepted,i=n.setIsAccepted,o=n.handlePressLink,a=n.translations;return t("div",xe({className:"flex gap-x-2 mb-[18px] !leading-[140%]",onClick:function(){i(!r)}},{children:[e("div",xe({className:"flex items-center flex-shrink-0 text-typography-typography-primary"},{children:e(r?Bo:Do,{className:"!h-6 !w-6"})})),t("div",xe({className:"inline"},{children:[t(Tr,xe({variant:nr.Text14Regular,className:"inline"},{children:[a[0]," "]})),e(Tr,xe({variant:nr.Text14Regular,className:"inline !text-badges-info-main underline cursor-pointer",onClick:function(e){e.stopPropagation(),o()}},{children:a[1]})),t(Tr,xe({className:"inline",variant:nr.Text14Regular},{children:[" ",a[2]]}))]}))]}))}var EC=U(function(r){var i=r.title,o=r.subTitle,a=r.items,l=r.defaultItems,s=r.selectedItems,c=r.onChange,u=r.isLoading,d=void 0!==u&&u,f=r.otherText,p=void 0===f?"Інша":f,h=r.buttonLabel,g=r.enableSearch,v=void 0!==g&&g,m=r.searchPlaceholder,b=void 0===m?"":m,A=Ce(r,["title","subTitle","items","defaultItems","selectedItems","onChange","isLoading","otherText","buttonLabel","enableSearch","searchPlaceholder"]),y=De(G(!1),2),w=y[0],x=y[1],C=De(G(l),2),P=C[0],O=C[1],B=De(G(null),2),D=B[0],k=B[1],z=De(G(null),2),E=z[0],H=z[1],S=De(G(null),2),T=S[0],L=S[1],M=De(G(null!=s?s:new Set([])),2),j=M[0],N=M[1],X=Z(function(){return a.filter(function(e){return!T||e.toLowerCase().includes(T.toLowerCase())})},[T,a]),Q=Y(function(e){"all"!==e&&e.size&&(console.log("selected",e),console.log("defaultItems",l),console.log("selected.values()",ke([],De(e.values()),!1)[0].toString()),l.includes(ke([],De(e.values()),!1)[0].toString())&&(console.log("selected.values()",ke([],De(e.values()),!1)[0].toString()),k(null)),N(e),!h&&(null==c||c(ke([],De(e.values()),!1)[0].toString())))},[c,h]),I=Y(function(e){var t=e.detail.value||"";H(t);var n=P.filter(function(e){return!t||e.toLowerCase().includes(t.toLowerCase())});O(n)},[]),R=Y(function(e){k(e),L(null),x(!1),Q(new Set([e]))},[Q]),F=Y(function(){"all"!==j&&j.size&&(null==c||c(ke([],De(j.values()),!1)[0].toString()))},[c,j]);return t(n,{children:[t(as,xe({toolbarClassName:"!p-0"},{children:[i&&e(Tr,xe({variant:nr.Title24Semi,className:"mb-1"},{children:i})),o&&e(Tr,xe({variant:nr.Text15Regular,opacity:50,className:"mb-4"},{children:o})),v&&e(fw,{onIonChange:I,value:null!=E?E:"",placeholder:b,className:"mb-2"})]})),t(oo,{children:[!h&&e(Jy,{isOpen:d}),e(vA,xe({type:"radio",selectionMode:"single",selectedKeys:j,onSelectionChange:Q},{children:(D?ke([D],De(P),!1):P).map(function(t,n){return e(zA,xe({textValue:t,divider:!0},{children:t}),t)})})),e(ew,{children:e(aw,xe({className:"p-0",onClick:function(){return x(!0)}},{children:p}))})]}),h&&e(Yi,{children:e(Fi,xe({fullWidth:!0,size:"large",isLoading:d,onClick:F,disabled:"all"!==j&&!j.size},{children:h}))}),e(Px,xe({countries:X,isOpen:w,onDidDismiss:function(){return x(!1)},onSearchChange:function(e){var t,n;return L(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:"")},onItemClick:R,searchValue:null!=T?T:""},A))]})});function HC(){return HC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HC.apply(this,arguments)}const SC=["children","options"],TC="0",LC="1",MC="2",jC="3",NC="4",XC="5",QC="6",IC="7",RC="8",FC="9",VC="10",GC="11",WC="12",YC="13",UC="14",KC="15",qC="16",JC="17",ZC="18",_C="19",$C="20",eP="21",tP="22",nP="23",rP="24",iP="25",oP="26",aP="27",lP="28",sP="29",cP="30",uP="31",dP="32",fP="33";var pP;!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(pP||(pP={}));const hP=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),gP={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},vP=["style","script"],mP=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,bP=/mailto:/i,AP=/\n{2,}$/,yP=/^(\s*>[\s\S]*?)(?=\n{2,})/,wP=/^ *> ?/gm,xP=/^ {2,}\n/,CP=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,PP=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,OP=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,BP=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,DP=/^(?:\n *)*\n/,kP=/\r\n?/g,zP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,EP=/^\[\^([^\]]+)]/,HP=/\f/g,SP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,TP=/^\s*?\[(x|\s)\]/,LP=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,MP=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jP=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,NP=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,XP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,QP=/^<!--[\s\S]*?(?:-->)/,IP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,RP=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,FP=/^\{.*\}$/,VP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,GP=/^<([^ >]+@[^ >]+)>/,WP=/^<([^ >]+:\/[^ >]+)>/,YP=/-([a-z])?/gi,UP=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,KP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,qP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,JP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ZP=/(\[|\])/g,_P=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,$P=/\t/g,eO=/(^ *\||\| *$)/g,tO=/^ *:-+: *$/,nO=/^ *:-+ *$/,rO=/^ *-+: *$/,iO="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",oO=new RegExp(`^([*_])\\1${iO}\\1\\1(?!\\1)`),aO=new RegExp(`^([*_])${iO}\\1(?!\\1|\\w)`),lO=new RegExp(`^==${iO}==`),sO=new RegExp(`^~~${iO}~~`),cO=/^\\([^0-9A-Za-z\s])/,uO=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,dO=/^\n+/,fO=/^([ \t]*)/,pO=/\\([^\\])/g,hO=/ *\n+$/,gO=/(?:^|\n)( *)$/,vO="(?:\\d+\\.)",mO="(?:[*+-])";function bO(e){return"( *)("+(1===e?vO:mO)+") +"}const AO=bO(1),yO=bO(2);function wO(e){return new RegExp("^"+(1===e?AO:yO))}const xO=wO(1),CO=wO(2);function PO(e){return new RegExp("^"+(1===e?AO:yO)+"[^\\n]*(?:\\n(?!\\1"+(1===e?vO:mO)+" )[^\\n]*)*(\\n|$)","gm")}const OO=PO(1),BO=PO(2);function DO(e){const t=1===e?vO:mO;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const kO=DO(1),zO=DO(2);function EO(e,t){const n=1===t,r=n?kO:zO,i=n?OO:BO,o=n?xO:CO;return{match(e,t,n){const i=gO.exec(n);return i&&(t.list||!t.inline&&!t.simple)?r.exec(e=i[1]+e):null},order:1,parse(e,t,r){const a=n?+e[2]:void 0,l=e[0].replace(AP,"\n").match(i);let s=!1;return{items:l.map(function(e,n){const i=o.exec(e)[0].length,a=new RegExp("^ {1,"+i+"}","gm"),c=e.replace(a,"").replace(o,""),u=n===l.length-1,d=-1!==c.indexOf("\n\n")||u&&s;s=d;const f=r.inline,p=r.list;let h;r.list=!0,d?(r.inline=!1,h=c.replace(hO,"\n\n")):(r.inline=!0,h=c.replace(hO,""));const g=t(h,r);return r.inline=f,r.list=p,g}),ordered:n,start:a}},render:(t,n,r)=>e(t.ordered?"ol":"ul",{key:r.key,start:t.type===$C?t.start:void 0},t.items.map(function(t,i){return e("li",{key:i},n(t,r))}))}}const HO=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),SO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,TO=[yP,PP,OP,LP,jP,MP,QP,UP,OO,kO,BO,zO],LO=[...TO,/^[^\n]+(?: \n|\n{2,})/,NP,RP];function MO(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jO(e){return rO.test(e)?"right":tO.test(e)?"center":nO.test(e)?"left":null}function NO(e,t,n,r){const i=n.inTable;n.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((e,i)=>("|"===i.trim()?e.push(r?{type:oP}:{type:aP,text:i}):""!==i&&e.push.apply(e,t(i,n)),e),[]);n.inTable=i;let a=[[]];return o.forEach(function(e,t){e.type===oP?0!==t&&t!==o.length-1&&a.push([]):(e.type!==aP||null!=o[t+1]&&o[t+1].type!==oP||(e.text=e.text.trimEnd()),a[a.length-1].push(e))}),a}function XO(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(eO,"").split("|").map(jO):[],i=e[3]?function(e,t,n){return e.trim().split("\n").map(function(e){return NO(e,t,n,!0)})}(e[3],t,n):[],o=NO(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:o,type:iP}:{children:o,type:eP}}function QO(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function IO(e){return function(t,n){return n.inline?e.exec(t):null}}function RO(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function FO(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function VO(e){return function(t){return e.exec(t)}}function GO(e,t,n){if(t.inline||t.simple)return null;if(n&&!n.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!TO.some(t=>t.test(e))&&(r+=e+"\n",e.trim()));const i=r.trimEnd();return""==i?null:[r,i]}function WO(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function YO(e){return e.replace(pO,"$1")}function UO(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=i,o}function KO(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=i,o}function qO(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const JO=(e,t,n)=>({children:UO(t,e[1],n)});function ZO(){return{}}function _O(){return null}function $O(...e){return e.filter(Boolean).join(" ")}function eB(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],void 0!==r);)i.shift();return r||n}var tB=e=>{let{children:t="",options:n}=e,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,SC);return F.cloneElement(function(e="",t={}){function n(e,n,...r){const i=eB(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const n=eB(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:eB(t,`${e}.component`,e):e}(e,t.overrides),HC({},n,i,{className:$O(null==n?void 0:n.className,i.className)||void 0}),...r)}function r(e){e=e.replace(SP,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===_P.test(e));const i=c(s(r?e:`${e.trimEnd().replace(dO,"")}\n\n`,{inline:r}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;const o=t.wrapper||(r?"span":"div");let a;if(i.length>1||t.forceWrapper)a=i;else{if(1===i.length)return a=i[0],"string"==typeof a?n("span",{key:"outer"},a):a;a=null}return F.createElement(o,{key:"outer"},a)}function i(e,n){const i=n.match(mP);return i?i.reduce(function(n,i,o){const a=i.indexOf("=");if(-1!==a){const l=function(e){return-1!==e.indexOf("-")&&null===e.match(IP)&&(e=e.replace(YP,function(e,t){return t.toUpperCase()})),e}(i.slice(0,a)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(i.slice(a+1).trim()),c=hP[l]||l,u=n[c]=function(e,t,n,r){return"style"===t?n.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===t||"src"===t?r(n,e,t):(n.match(FP)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,l,s,t.sanitizer);"string"==typeof u&&(NP.test(u)||RP.test(u))&&(n[c]=F.cloneElement(r(u.trim()),{key:o}))}else"style"!==i&&(n[hP[i]||i]=!0);return n},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||WO,t.slugify=t.slugify||MO,t.namedCodesToUnicode=t.namedCodesToUnicode?HC({},gP,t.namedCodesToUnicode):gP,t.createElement=t.createElement||F.createElement;const o=[],a={},l={[TC]:{match:FO(yP),order:1,parse:(e,t,n)=>({children:t(e[0].replace(wP,""),n)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},[LC]:{match:VO(xP),order:1,parse:ZO,render:(e,t,r)=>n("br",{key:r.key})},[MC]:{match:FO(CP),order:1,parse:ZO,render:(e,t,r)=>n("hr",{key:r.key})},[jC]:{match:FO(OP),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>n("pre",{key:r.key},n("code",HC({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[NC]:{match:FO(PP),order:0,parse:e=>({attrs:i("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:jC})},[XC]:{match:RO(BP),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},[QC]:{match:FO(zP),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:_O},[IC]:{match:IO(EP),order:1,parse:e=>({target:`#${t.slugify(e[1],MO)}`,text:e[1]}),render:(e,r,i)=>n("a",{key:i.key,href:t.sanitizer(e.target,"a","href")},n("sup",{key:i.key},e.text))},[RC]:{match:IO(TP),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,r)=>n("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},[FC]:{match:FO(t.enforceAtxHeadings?MP:LP),order:1,parse:(e,n,r)=>({children:UO(n,e[2],r),id:t.slugify(e[2],MO),level:e[1].length}),render:(e,t,r)=>n(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},[VC]:{match:FO(jP),order:0,parse:(e,t,n)=>({children:UO(t,e[1],n),level:"="===e[2]?1:2,type:FC})},[GC]:{match:VO(NP),order:1,parse(e,t,n){const[,r]=e[3].match(fO),o=new RegExp(`^${r}`,"gm"),a=e[3].replace(o,""),l=(s=a,LO.some(e=>e.test(s))?qO:UO);var s;const c=e[1].toLowerCase(),u=-1!==vP.indexOf(c),d=(u?c:e[1]).trim(),f={attrs:i(d,e[2]),noInnerParse:u,tag:d};return n.inAnchor=n.inAnchor||"a"===c,u?f.text=e[3]:f.children=l(t,a,n),n.inAnchor=!1,f},render:(e,t,r)=>n(e.tag,HC({key:r.key},e.attrs),e.text||t(e.children,r))},[YC]:{match:VO(RP),order:1,parse(e){const t=e[1].trim();return{attrs:i(t,e[2]||""),tag:t}},render:(e,t,r)=>n(e.tag,HC({},e.attrs,{key:r.key}))},[WC]:{match:VO(QP),order:1,parse:()=>({}),render:_O},[UC]:{match:RO(SO),order:1,parse:e=>({alt:e[1],target:YO(e[2]),title:e[3]}),render:(e,r,i)=>n("img",{key:i.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})},[KC]:{match:IO(HO),order:3,parse:(e,t,n)=>({children:KO(t,e[1],n),target:YO(e[2]),title:e[3]}),render:(e,r,i)=>n("a",{key:i.key,href:t.sanitizer(e.target,"a","href"),title:e.title},r(e.children,i))},[qC]:{match:IO(WP),order:0,parse:e=>({children:[{text:e[1],type:aP}],target:e[1],type:KC})},[JC]:{match:(e,t)=>t.inAnchor?null:IO(VP)(e,t),order:0,parse:e=>({children:[{text:e[1],type:aP}],target:e[1],title:void 0,type:KC})},[ZC]:{match:IO(GP),order:0,parse(e){let t=e[1],n=e[1];return bP.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:aP}],target:n,type:KC}}},[$C]:EO(n,1),[fP]:EO(n,2),[_C]:{match:FO(DP),order:3,parse:ZO,render:()=>"\n"},[eP]:{match:GO,order:3,parse:JO,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},[tP]:{match:IO(KP),order:0,parse:e=>(a[e[1]]={target:e[2],title:e[4]},{}),render:_O},[nP]:{match:RO(qP),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,r,i)=>a[e.ref]?n("img",{key:i.key,alt:e.alt,src:t.sanitizer(a[e.ref].target,"img","src"),title:a[e.ref].title}):null},[rP]:{match:IO(JP),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:t(e[0].replace(ZP,"\\$1"),n),ref:e[2]}),render:(e,r,i)=>a[e.ref]?n("a",{key:i.key,href:t.sanitizer(a[e.ref].target,"a","href"),title:a[e.ref].title},r(e.children,i)):n("span",{key:i.key},r(e.fallbackChildren,i))},[iP]:{match:FO(UP),order:1,parse:XO,render(e,t,r){const i=e;return n("table",{key:r.key},n("thead",null,n("tr",null,i.header.map(function(e,o){return n("th",{key:o,style:QO(i,o)},t(e,r))}))),n("tbody",null,i.cells.map(function(e,o){return n("tr",{key:o},e.map(function(e,o){return n("td",{key:o,style:QO(i,o)},t(e,r))}))})))}},[aP]:{match:VO(uO),order:4,parse:e=>({text:e[0].replace(XP,(e,n)=>t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e)}),render:e=>e.text},[lP]:{match:RO(oO),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("strong",{key:r.key},t(e.children,r))},[sP]:{match:RO(aO),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("em",{key:r.key},t(e.children,r))},[cP]:{match:RO(cO),order:1,parse:e=>({text:e[1],type:aP})},[uP]:{match:RO(lO),order:3,parse:JO,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},[dP]:{match:RO(sO),order:3,parse:JO,render:(e,t,r)=>n("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete l[GC],delete l[YC]);const s=function(e){let t=Object.keys(e);function n(r,i){let o=[],a="";for(;r;){let l=0;for(;l<t.length;){const s=t[l],c=e[s],u=c.match(r,i,a);if(u){const e=u[0];r=r.substring(e.length);const t=c.parse(u,n,i);null==t.type&&(t.type=s),o.push(t),a=e;break}l++}}return o}return t.sort(function(t,n){let r=e[t].order,i=e[n].order;return r!==i?r-i:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(kP,"\n").replace(HP,"").replace($P," ")}(e),t)}}(l),c=(u=function(e,t){return function(n,r,i){const o=e[n.type].render;return t?t(()=>o(n,r,i),n,r,i):o(n,r,i)}}(l,t.renderRule),function e(t,n={}){if(Array.isArray(t)){const r=n.key,i=[];let o=!1;for(let r=0;r<t.length;r++){n.key=r;const a=e(t[r],n),l="string"==typeof a;l&&o?i[i.length-1]+=a:null!==a&&i.push(a),o=l}return n.key=r,i}return u(t,e,n)});var u;const d=r(e);return o.length?n("div",null,d,n("footer",{key:"footer"},o.map(function(e){return n("div",{id:t.slugify(e.identifier,MO),key:e.identifier},e.identifier,c(s(e.footnote,{inline:!0})))}))):d}(t,n),r)},nB="MarkdownContainer-module_markdown__QNrrN";tt(".MarkdownContainer-module_markdown__QNrrN div{white-space:pre-wrap}",{insertAt:"top"});var rB=U(function(t){var n=t.children,r=t.options,i=t.className,o=t.forceBlock,a=void 0===o||o,l=Z(function(){return xe({overrides:xe({p:{component:function(t){var n=t.children,r=Ce(t,["children"]);return e("p",xe({},r,{children:n}))}},ul:{component:function(t){var n=t.children,r=Ce(t,["children"]);return e("ul",xe({},r,{children:n}))},props:{className:"list-disc list-inside"}},ol:{component:function(t){var n=t.children,r=Ce(t,["children"]);return e("ol",xe({},r,{children:n}))},props:{className:"list-decimal list-inside"}}},null==r?void 0:r.overrides),forceBlock:a,wrapper:function(t){var n=t.children;return a?e("div",xe({className:kr("flex flex-col gap-4",nB,i)},{children:n})):n}},r)},[r,i]);return n?e(tB,xe({options:l},{children:n})):null}),iB=U(function(n){var r,i,o=n.title,a=n.description,l=n.contentStyle,s=n.image,c=n.isPreview,u=De(oA(),2),d=u[0],f=u[1],p=l===jm.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e("div",xe({className:"flex flex-col h-full justify-center items-center gap-6 px-2",ref:f},{children:!!d&&t("div",xe({className:kr("flex flex-col items-center",{"gap-1":c},{"gap-2":!c})},{children:[(null==s?void 0:s.file_url)&&e("div",xe({className:kr("flex justify-center w-full",{"mb-4":c},{"mb-8":!c})},{children:e(mo,{width:null!==(r=null==s?void 0:s.width)&&void 0!==r?r:0,height:null!==(i=null==s?void 0:s.height)&&void 0!==i?i:0,src:{src:s.file_url},srcType:"image/webp",responsive:!0,containerWidth:d})})),e(Tr,xe({variant:c?nr.Title14Semi:nr.Title24Semi,className:p,align:"center"},{children:o})),e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:c?nr.Text7Regular:nr.Text14Regular,className:p,align:"center"}}}},className:c?"!gap-1":"!gap-4"},{children:a}))]}))}))}),oB=U(function(n){var r,i,o=n.title,a=n.description,l=n.image,s=n.contentStyle,c=n.isPreview,u=De(oA(),2),d=u[0],f=u[1],p=s===jm.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e("div",xe({ref:f,className:"flex flex-col gap-4 h-full"},{children:!!d&&t("div",xe({className:kr("flex flex-col items-center",{"gap-1":c},{"gap-2":!c})},{children:[(null==l?void 0:l.file_url)&&e("div",xe({className:kr("w-full flex justify-center items-center",{"mb-3":c},{"mb-6":!c})},{children:e(mo,{width:null!==(r=null==l?void 0:l.width)&&void 0!==r?r:0,height:null!==(i=null==l?void 0:l.height)&&void 0!==i?i:0,src:{src:l.file_url},srcType:"image/webp",responsive:!0,containerWidth:d})})),e(Tr,xe({variant:c?nr.Title14Semi:nr.Title24Semi,className:p},{children:o})),e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:c?nr.Text7Regular:nr.Text16Regular,className:p}}}},className:c?"!gap-1":"!gap-4"},{children:a}))]}))}))}),aB=function(n){var r=n.title,i=n.subTitle,o=n.description,a=n.isPreview,l="roundImage"===n.template;return t("div",xe({className:kr("flex flex-col",{"gap-0.5":a},{"gap-1":!a})},{children:[r&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:a?nr.Title14Semi:nr.Title24Semi,className:l?"mb-1":""}}}}},{children:r})),i&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:a?nr.Text8Regular:nr.Text16Semi,className:l?"mb-2":""}}}}},{children:i})),o&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:a?nr.Text7Regular:nr.Text15Regular,className:"!text-typography-typography-secondary"}}}}},{children:o}))]}))},lB=U(function(n){var r=n.options,i=n.title,o=n.description,a=n.isPreview,l=n.onChange,s=n.defaultValues,c=n.theme,u=n.template,d=void 0===u?"checkbox":u,f=De(G(new Set(s)),2),p=f[0],h=f[1];W(function(){h(new Set(s))},[s]);var g=Y(function(e){h(e),"all"!==e&&(null==l||l(Array.from(e)))},[l]),v=(null==c?void 0:c.template)===Xm.custom;return t("div",xe({className:kr("h-full flex flex-col",{"gap-2.5":a},{"gap-5":!a})},{children:[e(aB,{title:i,description:o,isPreview:a}),e(vA,xe({"aria-label":"MultiSelect",selectedKeys:p,onSelectionChange:g,selectionMode:"multiple",type:d,className:"!p-0",selectedIconProps:{className:a?"!h-3 !w-3":"!h-6 !w-6"},variant:null==c?void 0:c.template,onboardingTheme:c,isOnboardingPreview:a,isTransparent:!0},{children:r.map(function(t,n){var i,o;return e(zA,xe({textValue:t.id,"aria-label":t.label,divider:r.length-1!==n,className:a?"!px-0 !py-2":"!px-0 !py-4",image:null!==(i=t.image)&&void 0!==i?i:null},{children:e(Tr,xe({variant:a?nr.Text12Regular:nr.Text16Regular,style:v&&"all"!==p&&p.has(t.id)&&"checkbox"!==d?{color:null!==(o=null==c?void 0:c.customTextColor)&&void 0!==o?o:""}:{}},{children:t.label}))}),t.id)})}))]}))}),sB=U(function(n){var r=n.isPreview,i=n.minLabel,o=n.maxLabel;return t("div",xe({className:"w-full flex flex-row items-center justify-between gap-2 mt-3 px-0.5"},{children:[e(Tr,xe({variant:r?nr.Text12Regular:nr.Text16Semi},{children:i})),e(Tr,xe({variant:r?nr.Text12Regular:nr.Text16Semi},{children:o}))]}))}),cB=function(n){var r=n.isPreview,i=n.selectedOption,o=i&&"feedbackTitle"in i&&(null==i?void 0:i.feedbackTitle)&&"feedbackDescription"in i&&(null==i?void 0:i.feedbackDescription);return e("div",xe({className:"flex items-end mt-[auto]"},{children:t("div",xe({className:kr("invisible w-full flex flex-row bg-color-background-anti-flash-light rounded-[30px] p-5 mb-[22px]",{"!visible":o,"!p-3 !rounded-[15px] !mb-[12px]":r})},{children:[e(Tr,xe({className:r?"mr-2":"mr-4",variant:r?nr.Text15Semi:nr.Title24Semi},{children:"🏆"})),t("div",{children:[e(Tr,xe({variant:r?nr.Text12Regular:nr.Text15Semi},{children:o?null==i?void 0:i.feedbackTitle:""})),e(Tr,xe({className:"mt-0.5",variant:r?nr.Text7Regular:nr.Text13Regular150},{children:o?null==i?void 0:i.feedbackDescription:""}))]})]}))}))},uB=U(function(n){var r,i,o=n.options,a=n.title,l=n.subTitle,s=n.description,c=n.legalText,u=n.minLabel,d=n.maxLabel,f=n.isPreview,p=n.onChange,h=n.defaultValues,g=n.theme,v=n.template,m=void 0===v?"radio":v,b=n.isRoundCorners,A=void 0!==b&&b,y=n.image,w=n.horizontalImageAlignment,x=void 0===w?"center":w,C=De(G(new Set(h)),2),P=C[0],O=C[1];W(function(){O(new Set(h))},[h]);var B=Y(function(e){O(e),("all"===e||e.size)&&(null==p||p(Array.from(e)[0]))},[p]),D=o.find(function(e){return e.id===Array.from(P)[0]}),k="roundImage"===m,z="image"===m,E="emoji"===m,H="radio"===m,S="icon"===m;return t("div",xe({className:kr("h-full flex flex-col",{"gap-2.5":f&&!k},{"gap-5":!f&&!k})},{children:[y&&e("div",xe({className:kr("flex py-3 mb-2",{"justify-center":"center"===x,"justify-end":"right"===x,"justify-start":"left"===x,"!py-1 !mb-1":f})},{children:e(mo,{src:{src:y.file_url},srcType:"image/webp",responsive:!0,width:null!==(r=y.width)&&void 0!==r?r:0,height:null!==(i=y.height)&&void 0!==i?i:0,containerWidth:f?40:80})})),e(aB,{title:a,subTitle:l,description:s,isPreview:f,template:m}),t("div",xe({className:kr("flex flex-col h-full justify-center items-center",{"!h-[60%]":E,"!h-[auto]":k})},{children:[e(vA,xe({"aria-label":"SingleSelect",selectedKeys:P,onSelectionChange:B,selectionMode:"single",type:m,className:kr("!p-0",{"flex flex-wrap flex-row items-stretch":z||k,"h-full":H||S,"w-full flex flex-row gap-1":E,"mt-7 mb-2":k&&!A,"mt-7 mb-[-4px]":k&&A,"!mt-3 !mb-[-8px]":k&&f}),selectedIconProps:{className:f?"!h-3 !w-3":"!h-6 !w-6"},variant:null==g?void 0:g.template,onboardingTheme:g,isOnboardingPreview:f,isTransparent:!0,isRoundCorners:A},{children:o.map(function(t,n){var r;return e(zA,xe({textValue:t.id,"aria-label":t.label,divider:o.length-1!==n,className:f?"!px-0 !py-2":"!px-0 !py-4",image:null!==(r=t.image)&&void 0!==r?r:null},{children:"radio"===m?e(Tr,xe({variant:f?nr.Text12Regular:nr.Text16Regular},{children:t.label})):t.label}),t.id)})})),u&&d&&e(sB,{isPreview:f,minLabel:u,maxLabel:d})]})),E&&e(cB,{isPreview:f,selectedOption:D}),c&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:f?nr.Text7Regular:nr.Tabbar10Medium,className:"!text-typography-typography-secondary text-center"}}}}},{children:c}))]}))}),dB=function(n){var r=n.title,i=n.loadingItemDuration,o=void 0===i?1.5:i,a=n.answerScreenId,l=n.allScreens,s=n.selectedAnswers,c=n.isPreview,u=n.listItems,d=n.onProgressEnd,f=n.t,p=K(null);W(function(){if(null==p?void 0:p.current){var e=p.current.querySelectorAll(".list--flow-items");(null==e?void 0:e.length)&&(null==e||e.forEach(function(e,t){setTimeout(function(){e.classList.replace("opacity-30","opacity-1")},1e3*o*t)}))}},[p]);var h=Z(function(){if(Array.isArray(u)&&u.length>0)return u.map(function(e){return[e]});if(c)return new Array(5).fill(0).map(function(e,t){return[{id:t+1,label:"{{selected_screen_".concat(t+1,"}}")}]});var e=[];return a&&l&&s?(a.forEach(function(t){var n=l[t],r=s[t];if(n&&r&&"options"in n){var i=r.map(function(e){var t=n.options.find(function(t){return t.filtrationAnswerId===e||t.id===e});return t?{id:t.id,label:t.label}:null}).filter(function(e){return null!==e});i.length>0&&e.push(i)}}),e):e},[s,l,a,c,u]),g=Z(function(){return o*h.length},[h.length]);return e("div",xe({className:"flex flex-col h-full items-center",ref:p},{children:t("div",{children:[r&&e(Tr,xe({variant:c?nr.Title12Semi:nr.Title28Semi,className:kr("text-center")},{children:r})),e(Oy,{className:kr("text-center",{"mt-4":c,"my-10":!c}),t:f,size:c?Om.M:Om.L,progress:100,animationSeconds:g,isWithAnimation:!0,isShowLegend:!1,isZeroTransparent:!0,isWithOverlap:!0,isPrimaryColor:!0,isProgressWithAnimation:!0,onProgressEnd:d,content:{isPercentage:!0},ranges:[{min:0,max:50},{min:51,max:100}]}),e(vA,xe({"aria-label":"MultiSelect",className:kr({"!px-4":c,"!px-12":!c}),selectionMode:"none",enableSelection:!1,isTransparent:!0},{children:h.map(function(n){var r=n.map(function(e){return e.id}).join(","),i=n.map(function(e){return e.label}).join(", ");return e(zA,xe({className:"!px-0 !py-1"},{children:t("div",xe({className:"list--flow-items transition-opacity duration-[400ms] flex items-center ".concat(c?"gap-1":"gap-2"," opacity-30")},{children:[e(Bo,{size:c?10:20,className:"text-[#02B286] flex-shrink-0"}),e(Tr,xe({variant:c?nr.Text8Regular:nr.Text16Regular},{children:i}))]}))}),r)})}))]})}))},fB=function(n){var r,i=n.label,o=n.duration,a=n.isPreview,l=n.isActive,s=n.isCompleted,c=n.isDisabled,u=n.isPaused,d=n.handleProgressEnd,f=n.theme,p=(null==f?void 0:f.template)===Xm.custom,h=De(G(0),2),g=h[0],v=h[1],m=K(null),b=K(!1),A=K(!1),y=K(0),w=K(0),x=function(e){if(!A.current){var t=e-y.current+w.current,n=Math.min(t/(1e3*o),1),r=function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}(n);v(r),n<1?m.current=requestAnimationFrame(x):b.current||(b.current=!0,d())}};W(function(){if(A.current=u,l&&o)return u?(m.current&&(cancelAnimationFrame(m.current),m.current=null),w.current+=performance.now()-y.current):(y.current=performance.now(),m.current=requestAnimationFrame(x)),function(){m.current&&(cancelAnimationFrame(m.current),m.current=null)}},[u]),W(function(){return l&&o?(u||(y.current=performance.now(),m.current=requestAnimationFrame(x)),function(){m.current&&(cancelAnimationFrame(m.current),m.current=null)}):(v(0),b.current=!1,w.current=0,A.current=!1,void(m.current&&(cancelAnimationFrame(m.current),m.current=null)))},[l]);var C=Math.round(100*g);return t("div",xe({className:kr("py-4",{"border-b border-borders-divider":s,"!py-1":c,"!py-2":a})},{children:[t("div",xe({className:"w-full flex items-center justify-between gap-4"},{children:[e(Tr,xe({variant:a?nr.Text8Regular:nr.Text16Regular},{children:i})),t("div",xe({className:"min-w-[40px] flex items-center justify-end"},{children:[l&&t(Tr,xe({variant:a?nr.Text8Regular:nr.Text15Semi},{children:[C,"%"]})),s&&e(Bo,{size:a?10:24,className:"text-badges-success-main flex-shrink-0"}),c&&e(Tr,xe({className:"text-typography-typography-secondary",variant:a?nr.Text8Regular:nr.Text15Semi},{children:"0%"}))]}))]})),l&&e(Ky,{className:kr("py-1 mt-3",{"!mt-1 !py-0.5":a}),variant:p?Xm.custom:Xm.blue,progress:g,style:p?{"--progress-background":null!==(r=f.customColor)&&void 0!==r?r:""}:{}})]}))},pB={},hB={},gB={},vB={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}}(vB);var mB=/^\s+|\s+$/g,bB=/^[-+]0x[0-9a-f]+$/i,AB=/^0b[01]+$/i,yB=/^0o[0-7]+$/i,wB=parseInt,xB="object"==typeof xr&&xr&&xr.Object===Object&&xr,CB="object"==typeof self&&self&&self.Object===Object&&self,PB=xB||CB||Function("return this")(),OB=Object.prototype.toString,BB=Math.max,DB=Math.min,kB=function(){return PB.Date.now()};function zB(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function EB(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==OB.call(e)}(e))return NaN;if(zB(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zB(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(mB,"");var n=AB.test(e);return n||yB.test(e)?wB(e.slice(2),n?2:8):bB.test(e)?NaN:+e}var HB=function(e,t,n){var r,i,o,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=o}function g(){var e=kB();if(h(e))return v(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?DB(n,o-(e-c)):n}(e))}function v(e){return l=void 0,f&&r?p(e):(r=i=void 0,a)}function m(){var e=kB(),n=h(e);if(r=arguments,i=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(g,t),u?p(e):a}(s);if(d)return l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=EB(t)||0,zB(n)&&(u=!!n.leading,o=(d="maxWait"in n)?BB(EB(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=i=l=void 0},m.flush=function(){return void 0===l?a:v(kB())},m},SB={exports:{}};
|
|
24
|
+
*/"production"===process.env.NODE_ENV?Pw.exports=function(){if(yw)return Ow;yw=1;var e=V,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var l,s={},c=null,u=null;for(l in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!o.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:c,ref:u,props:s,_owner:i.current}}return Ow.Fragment=n,Ow.jsx=a,Ow.jsxs=a,Ow}():Pw.exports=(Bw||(Bw=1,"production"!==process.env.NODE_ENV&&function(){var e,t=V,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=v.ReactDebugCurrentFrame,i=r.getStackAddendum();""!==i&&(t+="%s",n=n.concat([i]));var o=n.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}function b(e){return e.displayName||"Context"}function A(e){if(null==e)return null;if("number"==typeof e.tag&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return b(e)+".Consumer";case l:return b(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:A(e.type)||"Memo";case p:var n=e,h=n._payload,g=n._init;try{return A(g(h))}catch{return null}}return null}e=Symbol.for("react.module.reference");var y,w,x,C,P,O,B,D=Object.assign,k=0;function z(){}z.__reactDisabledLog=!0;var E,H=v.ReactCurrentDispatcher;function S(e,t,n){if(void 0===E)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);E=r&&r[1]||""}return"\n"+E+e}var T,L=!1,M="function"==typeof WeakMap?WeakMap:Map;function j(e,t){if(!e||L)return"";var n,r=T.get(e);if(void 0!==r)return r;L=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=H.current,H.current=null,function(){if(0===k){y=console.log,w=console.info,x=console.warn,C=console.error,P=console.group,O=console.groupCollapsed,B=console.groupEnd;var e={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}k++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),c=l.length-1,u=s.length-1;c>=1&&u>=0&&l[c]!==s[u];)u--;for(;c>=1&&u>=0;c--,u--)if(l[c]!==s[u]){if(1!==c||1!==u)do{if(c--,--u<0||l[c]!==s[u]){var d="\n"+l[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&T.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{L=!1,H.current=i,function(){if(0===--k){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:y}),info:D({},e,{value:w}),warn:D({},e,{value:x}),error:D({},e,{value:C}),group:D({},e,{value:P}),groupCollapsed:D({},e,{value:O}),groupEnd:D({},e,{value:B})})}k<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var f=e?e.displayName||e.name:"",p=f?S(f):"";return"function"==typeof e&&T.set(e,p),p}function N(e,t,n){if(null==e)return"";if("function"==typeof e)return j(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return S(e);switch(e){case u:return S("Suspense");case d:return S("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e){return j(e,!1)}(e.render);case f:return N(e.type,t,n);case p:var r=e,i=r._payload,o=r._init;try{return N(o(i),t,n)}catch{}}return""}T=new M;var X=Object.prototype.hasOwnProperty,Q={},I=v.ReactDebugCurrentFrame;function R(e){if(e){var t=e._owner,n=N(e.type,e._source,t?t.type:null);I.setExtraStackFrame(n)}else I.setExtraStackFrame(null)}var F=Array.isArray;function G(e){return F(e)}function W(e){return""+e}function Y(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}var U,K,q,J=v.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r,i,o){var a,l={},s=null,c=null;for(a in void 0!==r&&(Y(r),s=""+r),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Y(t.key),s=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&J.current&&t&&J.current.stateNode!==t){var n=A(J.current.type);q[n]||(m('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(J.current.type),e.ref),q[n]=!0)}}(t,o)),t)X.call(t,a)&&!Z.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===l[a]&&(l[a]=u[a])}if(s||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){U||(U=!0,m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(l,d),c&&function(e,t){var n=function(){K||(K=!0,m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(l,d)}return function(e,t,r,i,o,a,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,c,o,i,J.current,l)}q={};var $,ee=v.ReactCurrentOwner,te=v.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=N(e.type,e._source,t?t.type:null);te.setExtraStackFrame(n)}else te.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function ie(){if(ee.current){var e=A(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}$=!1;var oe={};function ae(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!oe[n]){oe[n]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+A(e._owner.type)+"."),ne(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ne(null)}}}function le(e,t){if("object"==typeof e)if(G(e))for(var n=0;n<e.length;n++){var r=e[n];re(r)&&ae(r,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var i=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)re(o.value)&&ae(o.value,t)}}function se(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=A(n);!function(e,t,n,r,i){var o=Function.call.bind(X);for(var a in e)if(o(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}l&&!(l instanceof Error)&&(R(i),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),R(null)),l instanceof Error&&!(l.message in Q)&&(Q[l.message]=!0,R(i),m("Failed %s type: %s",n,l.message),R(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||$||($=!0,m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ce(t,r,g,v,b,y){var w=function(t){return!("string"!=typeof t&&"function"!=typeof t&&t!==i&&t!==a&&t!==o&&t!==u&&t!==d&&t!==h&&("object"!=typeof t||null===t||t.$$typeof!==p&&t.$$typeof!==f&&t.$$typeof!==l&&t.$$typeof!==s&&t.$$typeof!==c&&t.$$typeof!==e&&void 0===t.getModuleId))}(t);if(!w){var x="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C,P=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(b);x+=P||ie(),null===t?C="null":G(t)?C="array":void 0!==t&&t.$$typeof===n?(C="<"+(A(t.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,x)}var O=_(t,r,g,b,y);if(null==O)return O;if(w){var B=r.children;if(void 0!==B)if(v)if(G(B)){for(var D=0;D<B.length;D++)le(B[D],t);Object.freeze&&Object.freeze(B)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(B,t)}return t===i?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ne(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ne(null);break}}null!==e.ref&&(ne(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}(O):se(O),O}var ue=function(e,t,n){return ce(e,t,n,!1)},de=function(e,t,n){return ce(e,t,n,!0)};Dw.Fragment=i,Dw.jsx=ue,Dw.jsxs=de}()),Dw);var kw=Pw.exports;const zw=216,Ew=36,Hw="off",Sw=$(null);function Tw(e){const t=_(Sw);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Tw),t}return t}Sw.displayName="PickerDataContext";const Lw=$(null);function Mw(e){const t=_(Lw);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mw),t}return t}function jw(e,t){switch(t.type){case"REGISTER_OPTION":{const{key:n,option:r}=t;let i=[...e[n]||[],r];return i=function(e,t=e=>e){return e.slice().sort((e,n)=>{const r=t(e),i=t(n);if(null===r||null===i)return 0;const o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(i,e=>e.element.current),{...e,[n]:i}}case"UNREGISTER_OPTION":{const{key:n,option:r}=t;return{...e,[n]:(e[n]||[]).filter(e=>e!==r)}}default:throw Error(`Unknown action: ${t.type}`)}}Lw.displayName="PickerActionsContext";const Nw=$(null);function Xw(e){const t=_(Nw);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker.Column /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Xw),t}return t}function Qw(e){return"function"==typeof e}Nw.displayName="PickerColumnDataContext";const Iw=Object.assign(function(e){const{style:t,children:n,value:r,onChange:i,height:o=zw,itemHeight:a=Ew,wheelMode:l=Hw,...s}=e,c=Z(()=>({height:a,marginTop:-a/2,position:"absolute",top:"50%",left:0,width:"100%",pointerEvents:"none"}),[a]),u=Z(()=>({height:`${o}px`,position:"relative",display:"flex",justifyContent:"center",overflow:"hidden",maskImage:"linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent)",WebkitMaskImage:"linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent)"}),[o]),[d,f]=re(jw,{}),p=Z(()=>({height:o,itemHeight:a,wheelMode:l,value:r,optionGroups:d}),[o,a,r,d,l]),h=Y((e,t)=>{if(r[e]===t)return!1;const n={...r,[e]:t};return i(n,e),!0},[i,r]),g=Y((e,t)=>(f({type:"REGISTER_OPTION",key:e,option:t}),()=>f({type:"UNREGISTER_OPTION",key:e,option:t})),[]),v=Z(()=>({registerOption:g,change:h}),[g,h]);return kw.jsxs("div",{style:{...u,...t},...s,children:[kw.jsx(Lw.Provider,{value:v,children:kw.jsx(Sw.Provider,{value:p,children:n})}),kw.jsxs("div",{style:c,children:[kw.jsx("div",{style:{position:"absolute",top:0,bottom:"auto",left:0,right:"auto",width:"100%",height:"1px",background:"#d9d9d9",transform:"scaleY(0.5)"}}),kw.jsx("div",{style:{position:"absolute",top:"auto",bottom:0,left:0,right:"auto",width:"100%",height:"1px",background:"#d9d9d9",transform:"scaleY(0.5)"}})]})]})},{Column:function({style:e,children:t,name:n,...r}){const{height:i,itemHeight:o,wheelMode:a,value:l,optionGroups:s}=Tw("Picker.Column"),c=Z(()=>l[n],[l,n]),u=Z(()=>s[n]||[],[n,s]),d=Z(()=>{let e=u.findIndex(e=>e.value===c);return e<0&&(e=0),e},[u,c]),f=Z(()=>i/2-o*u.length+o/2,[i,o,u]),p=Z(()=>i/2-o/2,[i,o]),[h,g]=G(0);W(()=>{g(i/2-o/2-d*o)},[i,o,d]);const v=Mw("Picker.Column"),m=K(h);m.current=h;const b=Y(()=>{let e=0;const t=m.current;e=t>=p?0:t<=f?u.length-1:-Math.round((t-p)/o),v.change(n,u[e].value)||g(i/2-o/2-e*o)},[v,i,o,n,p,f,u]),[A,y]=G(0),[w,x]=G(!1),[C,P]=G(0),O=Y(e=>{e<f?e=f-Math.pow(f-e,.8):e>p&&(e=p+Math.pow(e-p,.8)),g(e)},[p,f]),B=Y(e=>{P(e.targetTouches[0].pageY),y(h)},[h]),D=Y(e=>{e.cancelable&&e.preventDefault(),w||x(!0);const t=A+e.targetTouches[0].pageY-C;O(t)},[w,A,C,O]),k=Y(()=>{w&&(x(!1),P(0),y(0),b())},[b,w]),z=Y(()=>{w&&(x(!1),P(0),g(A),y(0))},[w,A]),E=K(null),H=Y(e=>{if(0===e.deltaY)return;let t=.1*e.deltaY;Math.abs(t)<o&&(t=o*Math.sign(t)),"normal"===a&&(t=-t);O(h+t)},[o,h,O,a]),S=Y(()=>{b()},[b]),T=Y(e=>{"off"!==a&&(e.cancelable&&e.preventDefault(),H(e),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{S()},200))},[S,H,E,a]),L=K(null);W(()=>{const e=L.current;return e&&(e.addEventListener("touchmove",D,{passive:!1}),e.addEventListener("wheel",T,{passive:!1})),()=>{e&&(e.removeEventListener("touchmove",D),e.removeEventListener("wheel",T))}},[D,T]);const M=Z(()=>({flex:"1 1 0%",maxHeight:"100%",transitionProperty:"transform",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",transitionDuration:w?"0ms":"300ms",transform:`translate3d(0, ${h}px, 0)`}),[h,w]),j=Z(()=>({key:n}),[n]);return kw.jsx("div",{style:{...M,...e},ref:L,onTouchStart:B,onTouchEnd:k,onTouchCancel:z,...r,children:kw.jsx(Nw.Provider,{value:j,children:t})})},Item:function({style:e,children:t,value:n,...r}){const i=K(null),{itemHeight:o,value:a}=Tw("Picker.Item"),l=Mw("Picker.Item"),{key:s}=Xw("Picker.Item");W(()=>l.registerOption(s,{value:n,element:i}),[s,l,n]);const c=Z(()=>({height:`${o}px`,display:"flex",justifyContent:"center",alignItems:"center"}),[o]),u=Y(()=>{l.change(s,n)},[l,s,n]);return kw.jsx("div",{style:{...c,...e},ref:i,onClick:u,...r,children:Qw(t)?t({selected:a[s]===n}):t})}});var Rw={0:{color:"#16191C",fontSize:23},1:{color:"#AEAEAE",fontSize:18},2:{color:"#C2C2C2",fontSize:14},3:{color:"#D7D7D7",fontSize:12},n:{color:"#D7D7D7",fontSize:12}},Fw=function(e,t){return Rw[e]?Rw[e][t]:Rw.n[t]},Vw=function(t){var n=t.height,r=t.selections,i=t.defaults,o=void 0===i?{}:i,a=t.onChange,l=t.className,s=t.compareBy,c=void 0===s?"label":s,u=De(G(o),2),d=u[0],f=u[1];return e(Iw,xe({className:l,value:d,height:null!=n?n:216,onChange:function(e){var t={};Object.keys(e).forEach(function(n){var i=r[n].find(function(t){return t[c]===e[n]});i&&(t[n]=xe({},i))}),f(e),a(t)}},{children:Object.keys(r).map(function(t){return e(Iw.Column,xe({name:t},{children:r[t].map(function(n,i){return e(Iw.Item,xe({value:n[c],className:kr({selected:n[c]===d[t]})},{children:function(){return e("div",xe({style:{color:Fw(Math.abs(i-Object.values(r[t]).findIndex(function(e){return e[c]===d[t]})),"color"),fontSize:Fw(Math.abs(i-Object.values(r[t]).findIndex(function(e){return e[c]===d[t]})),"fontSize"),transition:"transform 200ms",cursor:"pointer"}},{children:n.label}))}}),t+n[c])})}),t)})}))},Gw=Qi({slots:{contentWrap:"text-typography-typography-primary !leading-none mb-1",contentText:"text-sm/[140%] opacity-50",collapsing:"text-sm/[140%] text-color-info-blue cursor-pointer"},variants:{collapsed:{true:{contentWrap:"!line-clamp-2 !overflow-hidden",contentText:"whitespace-no-wrap overflow-hidden"}}}});function Ww(n){var r=n.t,i=n.text,o=n.size,a=void 0===o?14:o,l=n.fontWeight,s=void 0===l?"Regular":l,c=K(null),u=K(null),d=De(G(!1),2),f=d[0],p=d[1],h=De(G(!0),2),g=h[0],v=h[1];W(function(){var e,t,n,r;p((null!==(t=null===(e=c.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0)<(null!==(r=null===(n=u.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==r?r:0))},[i]);var m=Gw({collapsed:g});return t("div",xe({className:""},{children:[e("div",xe({ref:c},{children:e(Tr,xe({className:m.contentWrap(),variant:nr["Title".concat(a).concat(s)]},{children:e("span",xe({className:m.contentText(),ref:u},{children:i}))}))})),f&&e("p",xe({className:m.collapsing(),onClick:function(){return v(!g)}},{children:r(g?"details.more.link":"details.less.link")}))]}))}function Yw(t){var n,r=t.state,i=Ce(t,["state"]),o=V.useRef(null),a=Fh(i,r,o).tabPanelProps;return e("div",xe({},a,{ref:o},{children:null===(n=r.selectedItem)||void 0===n?void 0:n.props.children}))}Yw.displayName="Mindly.TabPanel";var Uw=Qi({slots:{tab:"relative flex-1 py-3.5 cursor-pointer appearance-none focus-within:outline-none transition-opacity duration-200",tabText:"",tabs:"tabs",tabList:"relative",activeTab:"absolute bottom-0 !bg-typography-typography-primary duration-200 will-change-transform transition-transform"},variants:{textTransform:{uppercase:{tabText:"uppercase"},capitalize:{tabText:"capitalize"},lowercase:{tabText:"lowercase"},none:{tabText:"normal-case"}},isPressed:{true:{}},isFocusVisible:{true:{}},isSelected:{true:{}},orientation:{vertical:{tabs:""},horizontal:{tabs:""}}},compoundSlots:[{slots:["tab"],isSelected:!0,className:"after:content-[''] after:absolute after:bottom-0 after:left-0 after:w-full after:border-b-2 after:border-solid after:border-typography-typography-primary"},{slots:["tab"],isPressed:!0,className:"opacity-50"},{slots:["activeTab"],isFocusVisible:!0,className:"focused"}]}),Kw=Uw(),qw=Kw.tab,Jw=Kw.tabText;function Zw(t){var n=t.item,r=t.state,i=n.key,o=n.rendered,a=n.props,l=V.useRef(null),s=function(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=e,{selectionManager:a,selectedKey:l}=t,s=r===l,c=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=Sh({selectionManager:a,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),f=Rh(t,r,"tab"),p=Rh(t,r,"tabpanel"),{tabIndex:h}=u,g=t.collection.getItem(r),v=Fd(null==g?void 0:g.props,{labelable:!0});delete v.id;let m=lf(null==g?void 0:g.props),{focusableProps:b}=Tp({isDisabled:c},n);return{tabProps:Md(v,b,m,u,{id:f,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?p:void 0,tabIndex:c?void 0:h,role:"tab"}),isSelected:s,isDisabled:c,isPressed:d}}({key:i},r,l),c=s.tabProps,u=s.isSelected,d=s.isPressed,f=a.onClick,p=a.className,h=a.textTransform,g=void 0===h?"capitalize":h,v=Z(function(){return qw({isPressed:d,isSelected:u,className:p})},[d,u,p]),m=Z(function(){return Jw({textTransform:g})},[g]),b=Wh(function(e){(null==c?void 0:c.onClick)&&c.onClick(e),f&&f()});return e("button",xe({},c,{onClick:b,ref:l,className:v},{children:e(Tr,xe({align:"center",variant:nr.Text14Semi,opacity:u?100:65,className:m},{children:o}))}))}var _w=Nu,$w=Uw(),ex=$w.tabList,tx=$w.tabs;function nx(n){var r,i=od(n),o=V.useRef(null),a=function(e,t,n){let{orientation:r="horizontal",keyboardActivation:i="automatic"}=e,{collection:o,selectionManager:a,disabledKeys:l}=t,{direction:s}=th(),c=Z(()=>new Vh(o,s,r,l),[o,l,r,s]),{collectionProps:u}=Hh({ref:n,selectionManager:a,keyboardDelegate:c,selectOnFocus:"automatic"===i,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),d=Pd();return Ih.set(t,d),{tabListProps:{...Md(u,pf({...e,id:d})),role:"tablist","aria-orientation":r,tabIndex:void 0}}}(n,i,o).tabListProps,l=De(G(function(){return{width:0,transform:"translateX(0)"}}),2)[1];W(function(){var e,t=null===(e=o.current)||void 0===e?void 0:e.querySelector('[role="tab"][aria-selected="true"]');t&&l({width:t.offsetWidth,transform:"translateX(".concat(t.offsetLeft,"px)")})},[i.selectedKey]);var s=function(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=K({isFocused:!1,isFocusVisible:t||Op()}),[o,a]=G(!1),[l,s]=G(()=>i.current.isFocused&&i.current.isFocusVisible),c=Y(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),u=Y(e=>{i.current.isFocused=e,a(e),c()},[c]);kp(e=>{i.current.isFocusVisible=e,c()},[],{isTextInput:n});let{focusProps:d}=Ep({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=Lp({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:l,focusProps:r?f:d}}({within:!0}).focusProps;return t("div",xe({className:kr(tx({orientation:n.orientation}),n.className)},{children:[e("div",xe({className:ex()},{children:e("div",xe({},Md(a,s),{className:"flex",ref:o},{children:ke([],De(i.collection),!1).map(function(t){return e(Zw,{item:t,state:i},t.key)})}))})),e(Yw,{state:i},null===(r=i.selectedItem)||void 0===r?void 0:r.key)]}))}nx.displayName="Mindly.Tabs";var rx=Qi({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:nr.Text14Semi,titleVariant:nr.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-background-anti-flash-light",iconVariant:nr.Title24Semi,titleVariant:nr.Text15Semi},badge:{root:"gap-1",iconVariant:nr.Badge12Semi,titleVariant:nr.Badge12Semi}}}}),ix=function(r){var i=r.t,o=r.variant,a=void 0===o?"default":o,l=r.percent,s=r.className,c=r.onOpenArticle,u=rx({variant:a}),d=u.iconVariant,f=u.titleVariant,p=u.root;return"badge"===a?t(es,xe({className:"whitespace-nowrap",variant:"success",size:"S"},{children:["🏆 ",null==i?void 0:i("therapist_list_item.super_specialist.title")]})):t("div",xe({className:kr(p(),s)},{children:[e(Tr,xe({variant:d()},{children:"🏆"})),t("div",xe({className:kr({"gap-0.5":"full"===a})},{children:[e(Tr,xe({variant:f()},{children:null==i?void 0:i("therapist_list_item.super_specialist.title")})),"full"===a&&t(n,{children:[e(Tr,xe({variant:nr.Text13Regular150},{children:null==i?void 0:i("therapist_list_item.super_specialist.description",{count:l})})),e(Fi,xe({fill:"outline",size:"small",className:"!mt-3",onClick:c},{children:null==i?void 0:i("therapist_list_item.super_specialist.button")}))]})]}))]}))},ox=V.memo(function(n){var r=n.className,i=n.percentMatch,o=n.children,a=Z(function(){return i>=80?"--color-info-green":"--color-info-orange"},[i]),l=Z(function(){return i>=80?"bg-badges-success-main":"bg-badges-attention-main"},[i]);return t("div",xe({className:kr("relative inline-flex justify-center items-center rounded-full p-[4px]",r),style:{background:"conic-gradient(rgba(var(".concat(a,")) ").concat(i,"%, #ffffff ").concat(i,"% 100%)")}},{children:[i>0&&t(Tr,xe({variant:nr.Badge12Semi,className:kr("py-1 px-2 !text-color-white rounded-2xl absolute top-full -translate-y-1/2 left-1/2 -translate-x-1/2 -mt-1 z-20",l)},{children:[i,"%"]})),e("div",xe({className:"relative z-10 bg-color-white rounded-full"},{children:o}))]}))}),ax=V.memo(function(n){var r=n.className,i=n.title,o=n.children;return t("div",xe({className:kr("flex items-start gap-2 relative py-4 w-full border-color-black/10 border-b last:border-none",r)},{children:[e(Tr,xe({variant:nr.Text15Regular,className:"text-typography-typography-tertiary w-[35%]"},{children:i})),e(Tr,xe({variant:nr.Text15Regular,className:"w-[65%]"},{children:o}))]}))}),lx=V.memo(function(t){var n=t.children,r=t.className,i=Ce(t,["children","className"]);return e("button",xe({className:kr("flex items-center gap-1 underline",r)},i,{children:e(Tr,xe({variant:nr.Text15Semi},{children:n}))}))}),sx=Qi({slots:{textVariant:"",dot:"",icon:"-translate-y-0.5"},variants:{size:{default:{textVariant:nr.Title18Semi,icon:"w-6 h-6",dot:"w-5 h-5"},small:{textVariant:nr.Text14Regular,icon:"w-4 h-4",dot:"w-2 h-2"},large:{textVariant:nr.Title28Semi,icon:"w-6 h-6",dot:"w-5 h-5"}}}}),cx=function(n){var r=n.className,i=n.rating,o=n.reviews,a=n.t,l=n.size,s=void 0===l?"default":l,c=n.endAdornment,u=n.onClick,d=sx({size:s}),f=d.textVariant,p=d.icon,h=d.dot,g=f();return t("div",xe({className:kr("flex items-center gap-1",{"cursor-pointer":!!u},r),onClick:u},{children:[e(Tr,xe({variant:g},{children:t("div",xe({className:"flex items-center"},{children:[e(Go,{className:p()})," ",Number.isInteger(i)?i.toFixed(1):ym(i)]}))})),e(ol,{className:h()}),e(Tr,xe({variant:g},{children:null==a?void 0:a("therapist_list_item.number_of_reviews",{count:o})})),c]}))},ux=Qi({slots:{root:"border-b"},variants:{variant:{default:{root:"border-borders-divider"}}}}),dx=function(t){var n=t.className,r=t.variant,i=ux({variant:void 0===r?"default":r}).root;return e("div",{className:kr(i(),n)})},fx=function(n){var r=n.t,i=n.className;return t("div",xe({className:kr("flex flex-col gap-2 items-center",i)},{children:[e(pl,{}),e(Tr,xe({variant:nr.Title20Semi},{children:null==r?void 0:r("empty_list.title")}))]}))},px=function(n){var r=n.t,i=n.className,o=n.isAuth;return t("div",xe({className:kr("flex flex-col items-center",i)},{children:[e("div",xe({className:"text-[104px]/[120%]"},{children:"😕"})),e(Tr,xe({variant:nr.Title24Semi,className:"my-2 text-center"},{children:null==r?void 0:r("specialist_profile_not_found.title")})),e(Tr,xe({variant:nr.Text14Regular,className:"text-typography-typography-primary/50 text-center"},{children:o?null==r?void 0:r("specialist_profile_not_found.subtitle.is_auth"):null==r?void 0:r("specialist_profile_not_found.subtitle.is_not_auth")}))]}))},hx=Qi({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:nr.Text14Semi,titleVariant:nr.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-info-light-blue",iconVariant:nr.Title24Semi,titleVariant:nr.Text15Semi},badge:{root:"gap-1",iconVariant:nr.Badge12Semi,titleVariant:nr.Badge12Semi}}}}),gx=function(r){var i=r.variant,o=void 0===i?"badge":i,a=r.className,l=r.t,s=r.onOpenArticle,c=hx({variant:o}),u=c.iconVariant,d=c.titleVariant,f=c.root;return"badge"===o?e(es,xe({className:kr("whitespace-nowrap",a),variant:"info",type:"default",size:"S"},{children:e("div",xe({className:"text-badges-info-secondary"},{children:null==l?void 0:l("therapist_list_item.badge_new_speclialist")}))})):t("div",xe({className:kr(f(),a)},{children:[e(Tr,xe({variant:u()},{children:"👋"})),t("div",xe({className:kr({"gap-0.5":"full"===o})},{children:[e(Tr,xe({variant:d()},{children:null==l?void 0:l("therapist_list_item.badge_new_speclialist")})),"full"===o&&t(n,{children:[e(Tr,xe({variant:nr.Text13Regular150},{children:null==l?void 0:l("therapist_list_item.text_new_speclialist")})),e(Fi,xe({fill:"outline",size:"small",className:"!mt-3",onClick:s},{children:null==l?void 0:l("therapist_list_item.super_specialist.button")}))]})]}))]}))},vx="SolidInput-module_ionItem__YcaUP",mx="SolidInput-module_label__Ab6yt",bx="SolidInput-module_input__vo6I4";tt(".SolidInput-module_ionItem__YcaUP{--background:rgb(var(--typography-typography-primary)/0.06);--background-focused:rgb(var(--typography-typography-primary)/0.06)!important;--background-hover:rgb(var(--typography-typography-primary)/0.06)!important;--color:rgb(var(--typography-typography-primary))!important;--border-width:0;--full-highlight-height:0;--border-radius:18px;--ion-color-base:rgb(var(--typography-typography-primary))!important;--ion-color-primary:rgb(var(--typography-typography-primary))!important;--min-height:26px}.SolidInput-module_ionItem__YcaUP.item-has-focus .label-floating,.SolidInput-module_ionItem__YcaUP.item-has-value .label-floating{transform:translateY(50%) scale(.75)!important}.SolidInput-module_label__Ab6yt{--color:rgb(var(--typography-typography-primary)/0.35)!important;line-height:1;margin:0;position:relative;transform:translateY(20px)!important;z-index:3}.SolidInput-module_input__vo6I4{--placeholder-color:rgb(var(--typography-typography-primary)/0.35);--color:rgb(var(--typography-typography-primary));outline:none;position:relative;z-index:1}.SolidInput-module_input__vo6I4 input:-webkit-autofill,.SolidInput-module_input__vo6I4 input:-webkit-autofill:focus,.SolidInput-module_input__vo6I4 input:-webkit-autofill:hover{-webkit-text-fill-color:rgb(var(--typography-typography-primary));-webkit-box-shadow:inset 0 0 0 1000px #f2f2f1}.SolidInput-module_ionItem__YcaUP.ion-invalid{--background:rgb(var(--badges-warning-bg)/1)!important;--background-hover:rgb(var(--badges-warning-bg)/1)!important;--background-focused:rgb(var(--badges-warning-bg)/1)!important}.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4{--color:rgb(var(--badges-warning-main)/1)}.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4 input:-webkit-autofill,.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4 input:-webkit-autofill:focus,.SolidInput-module_ionItem__YcaUP.ion-invalid .SolidInput-module_input__vo6I4 input:-webkit-autofill:hover{-webkit-text-fill-color:rgb(var(--badges-warning-main)/1);-webkit-box-shadow:inset 0 0 0 1000px #feece7}",{insertAt:"top"});var Ax=q(function(n,r){var i=n.placeholder,o=n.value,a=n.name,s=n.type,c=void 0===s?"text":s,u=n.itemClassName,d=n.inputClassName,f=n.labelClassName,p=n.onChange,g=n.onKeyDown,v=n.errorText,m=n.isInvalid,b=De(G(c),2),A=b[0],y=b[1];return t(x,xe({className:kr(vx,{"ion-invalid":m||!!v},u),fill:"solid",lines:"none"},{children:[e(h,xe({position:"floating",className:kr(mx,f)},{children:i})),e(l,{type:A,name:a,className:kr(bx,d),placeholder:i,onIonChange:p,value:o,onKeyDown:g,ref:r}),v&&e(k,xe({slot:"error"},{children:v})),"password"===c&&e("span",xe({slot:"end",onClick:function(){y(function(e){return"password"===e?"text":"password"})},className:"cursor-pointer text-typography-typography-primary/50 [&_path]:fill-[currentColor]"},{children:e("password"===A?$o:ea,{fill:"currentColor"})}))]}))});Ax.displayName="SolidInput";var yx=Qi({slots:{root:"border-2 rounded-full flex items-center justify-center inline-flex",text:"!text-color-background-white"},variants:{variant:{default:{root:"bg-badges-warning-main border-color-background-white"}},size:{xs:{root:"h-4 px-0.5 min-w-4 min-w-[theme(width.4)]"}}}}),wx=function(t){var n=t.className,r=t.variant,i=void 0===r?"default":r,o=t.size,a=void 0===o?"xs":o,l=t.children,s=yx({variant:i,size:a}),c=s.root,u=s.text;return e("div",xe({className:kr(c(),n)},{children:e(Tr,xe({variant:nr.Text8Semi,className:u()},{children:l}))}))},xx="CountryOfOriginModal-module_ionListItem__-Qb7F",Cx="CountryOfOriginModal-module_countryOfOriginContent__nQqkG";tt(".CountryOfOriginModal-module_ionListItem__-Qb7F::part(native){padding:0}.CountryOfOriginModal-module_countryOfOriginContent__nQqkG::part(content){--width:100%;--height:100%}",{insertAt:"top"});var Px=function(n){var r=n.onSearchChange,i=n.onItemClick,o=n.searchValue,a=n.countries,l=n.searchPlaceholder,s=n.t,c=Ce(n,["onSearchChange","onItemClick","searchValue","countries","searchPlaceholder","t"]),u=K(null),d=Y(function(){var e;null===(e=u.current)||void 0===e||e.dismiss()},[]);return t(P,xe({},c,{ref:u,className:Cx},{children:[e(as,{children:e(fw,{className:"pt-1.5 pb-3",onCancelClick:d,onIonChange:r,value:o,placeholder:l,t:s})}),e(oo,{children:e(w,xe({lines:"none",mode:"ios"},{children:null==a?void 0:a.map(function(t,n){return e(x,xe({onClick:function(){i&&i(t)},className:kr("h-[46px] cursor-pointer",xx)},{children:e(Tr,xe({className:"m-0"},{children:t}))}),"".concat(t,"_").concat(n))})}))})]}))},Ox="ChangeLanguageModal-module_changeLanguageModal__C9qGV";function Bx(n){var r=n.title,i=n.onModalClose,o=n.onSelect,a=n.selected,l=n.languages,s=Ce(n,["title","onModalClose","onSelect","selected","languages"]),c=K(null),u=De(G(new Set([a])),2),d=u[0],f=u[1];W(function(){f(new Set([a]))},[a]);var p=Y(function(e){"all"!==e&&(e.size?(f(e),o(ke([],De(e),!1).toString())):o(ke([],De(d),!1).toString()))},[o,d]);return W(function(){var e,t="".concat(65*l.length+155,"px");(null==c?void 0:c.current)&&(null===(e=null==c?void 0:c.current)||void 0===e||e.style.setProperty("--dynamic-modal-height",t))},[l,null==c?void 0:c.current]),t(P,xe({ref:c},s,{onDidDismiss:function(){null==i||i(),f(new Set([a]))},initialBreakpoint:1,breakpoints:[0,1],className:Ox},{children:[e("div",xe({className:"pt-5 pb-2 mt-7 w-full flex flex-col items-center justify-center px-5"},{children:e(Tr,xe({align:"center",variant:nr.Title24Semi},{children:r}))})),e(oo,{children:e("div",xe({className:"flex flex-col flex-grow"},{children:e(vA,xe({"aria-label":"Change language",selectionMode:"single",selectedKeys:d,onSelectionChange:p},{children:null==l?void 0:l.map(function(t,n,r){return e(zA,xe({textValue:t.code,"aria-label":t.code,divider:n!==r.length-1},{children:t.name}),t.code)})}))}))})]}))}tt(".ChangeLanguageModal-module_changeLanguageModal__C9qGV::part(content){border-top-left-radius:32px;border-top-right-radius:32px;height:var(--dynamic-modal-height,350px);max-width:450px;z-index:20023}.ChangeLanguageModal-module_changeLanguageModal__C9qGV::part(backdrop){z-index:20022}",{insertAt:"top"});var Dx={fullScreen:"CardModal-module_fullScreen__AWPlQ",toolbar:"CardModal-module_toolbar__cm7wd"};tt(".CardModal-module_fullScreen__AWPlQ{--height:100vh;--width:100vw}.CardModal-module_toolbar__cm7wd{--padding-top:0}",{insertAt:"top"});var kx=V.forwardRef(function(n,r){var i,a=n.isOpen,l=n.presentingElement,s=n.onDidDismiss,c=n.children,u=n.backButton,d=n.renderHeader,f=n.canDismiss,p=void 0===f||f,h=n.isShowHandle,g=void 0===h?o("ios")&&!o("desktop"):h,v=n.isShowCloseButton,m=void 0===v||v,b=n.mode,A=n.title,y=n.subtitle,w=n.leftContent,x=n.onDidPresent,C=n.onCloseClick,O=Gh(r),B=V.useCallback(function(){var e;null===(e=O.current)||void 0===e||e.dismiss(),null==C||C()},[O.current]),D=Wh(function(){document.body.style.backgroundColor="",null==s||s()}),k=Wh(function(){document.body.style.backgroundColor=""});return t(P,xe({ref:O,mode:b,isOpen:a,canDismiss:p,presentingElement:l,onDidDismiss:D,onWillDismiss:k,className:kr((i={},i[Dx.fullScreen]=!o("hybrid"),i)),onDidPresent:x},{children:[d?d({backButton:u,onClose:B}):t(as,xe({className:kr("relative",Dx.header)},{children:[g&&e("div",{className:"absolute top-1 left-2/4 w-[36px] h-[5px] rounded-sm z-20 -translate-x-2/4 bg-color-background-gray-black opacity-[0.15]"}),t("div",xe({className:kr("relative grid grid-cols-5 col-span-1",{"pt-[17.5px]":g,"pt-[7.5px]":!g})},{children:[e("div",xe({slot:"start",className:kr({"order-first justify-self-start flex items-center":!u,"order-last justify-self-end flex items-center":u})},{children:w})),t("div",xe({className:"flex flex-col items-center self-center justify-center order-2 col-span-3"},{children:[A&&e(Tr,xe({variant:nr.Text15Semi,align:"center"},{children:A})),y&&e(Tr,xe({variant:nr.Text13Regular,align:"center",opacity:50},{children:y}))]})),e("div",xe({className:kr("col-span-1",{"order-first justify-self-start flex items-center":u,"order-last justify-self-end flex items-center":!u})},{children:m&&e(zy,{className:"self-center",onClick:B,icon:e(u?So:ko,{className:"!text-typography-typography-primary"})})}))]}))]})),c]}))});kx.displayName="CardModal";var zx=Qi({slots:{list:"grid grid-cols-4 gap-x-2 gap-y-3",listItem:"border border-solid border-typography-typography-primary/10 p-2 rounded-[18px] text-center cursor-pointer"},variants:{isSelected:{true:{}},isDisabled:{true:{}}},compoundSlots:[{slots:["list"],isDisabled:!0,className:""},{slots:["listItem"],isSelected:!0,className:"bg-typography-typography-primary !text-color-background-white"},{slots:["listItem"],isDisabled:!0,isSelected:!0,className:"!opacity-30 !cursor-default"},{slots:["listItem"],isDisabled:!0,isSelected:!1,className:"!cursor-default !text-typography-typography-primary/30 !border-typography-typography-primary/6"}]});var Ex=F.memo(function(t){var n=t.isSelected,r=t.isDisabled,i=t.time,o=t.className,a=t.onSelectionChange,l=zx({isSelected:n,isDisabled:r}).listItem;return e("button",xe({onClick:a,disabled:r},{children:e(Tr,xe({variant:nr.Text14Regular,className:l({className:o})},{children:i}))}))});var Hx=V.memo(function(t){var n=t.times,r=void 0===n?[]:n,i=t.selectedKeys,o=t.onSelectionChange,a=t.classNameSlot,l=t.classNameList,s=t.isDisabled,c=void 0!==s&&s,u=Y(function(e){return i.has(e)},[i]),d=Z(function(){return zx()},[c,l]).list;return e("ul",xe({className:d({isDisabled:c,className:l})},{children:r.map(function(t){return e(Ex,{time:t,className:a,isDisabled:c,isSelected:u(t),onSelectionChange:function(){return!c&&o(t)}},t)})}))});function Sx(n){var r=n.onApplyPermission,i=n.isOpen,o=n.title,a=n.description,l=n.image,s=n.applyPermissionText,c=Ce(n,["onApplyPermission","isOpen","title","description","image","applyPermissionText"]);return t(kx,xe({isShowCloseButton:!1,isShowHandle:!1,isOpen:i},c,{children:[e(oo,{children:t("div",xe({className:"mb-5"},{children:[e("div",xe({className:"mt-[88px] w-full height-[296px] flex justify-center"},{children:e(A,{src:l})})),e(Tr,xe({align:"center",variant:nr.Title24Semi,className:"mt-6 !whitespace-pre-wrap"},{children:o})),e(Tr,xe({align:"center",variant:nr.Text14Regular,className:"mt-3 !text-typography-typography-primary/50 !whitespace-pre-wrap"},{children:a}))]}))}),e(Yi,{children:e("div",xe({className:"flex flex-col gay-2"},{children:e(Fi,xe({size:"large",fullWidth:!0,onClick:r},{children:s}))}))})]}))}function Tx(n){var r=n.onOpenNativeSettings,i=n.className,o=n.title,a=n.description,l=n.buttonText;return e("div",xe({className:kr("bg-badges-attention-bg px-5 py-4 rounded-[30px]",i)},{children:t("div",xe({className:"flex gap-x-5"},{children:[e("div",xe({className:"flex flex-col justify-center"},{children:e(Tr,xe({variant:nr.Title24Semi},{children:"🔕"}))})),t("div",xe({className:"flex flex-col items-start"},{children:[e(Tr,xe({variant:nr.Text15Semi},{children:o})),e(Tr,xe({className:"mb-3 !leading-[150%]",variant:nr.Text13Regular},{children:a})),e(Fi,xe({fill:"outline",size:"small",onClick:r},{children:l}))]}))]}))}))}var Lx=function(n){var r=n.t,i=n.matchVariant,o=void 0===i?"badge":i,a=n.match,l=n.fullName,s=n.avatarLink,c=n.countryCode,u=n.yearsOfExperience,d=n.className,f=n.avatarProps,p=n.rating,h=n.reviews,g=n.isSpecialistUnAvailable,v=void 0!==g&&g,m=n.isAuth,b=void 0===m||m,A=n.variantFullName,y=n.isFavourite,w=n.onClickReview,x=n.onToggleFavourite,C=n.children,P=n.video_link,O=n.onVideoPlay,B=Z(function(){return e(ro,xe({alt:"avatar",round:"drop",variant:"xl",src:s},f))},[s,f]),D=Z(function(){return P?e(cw,xe({src:P||"",hiddenVideo:!0,isWithPlay:!0,buttonPlacement:"bottom-right",buttonSize:"small",variant:ow.blue,onPlay:O},{children:B})):B},[B,P]);return t("div",xe({className:kr("container flex items-center",d)},{children:["avatar"===o&&!v&&b&&a?e(ox,xe({percentMatch:a},{children:D})):D,t("div",xe({className:"flex-1 ml-4"},{children:[t("div",xe({className:kr("flex items-center",{"-mt-2":x})},{children:[t(Tr,xe({variant:A||nr.Text20Semi,className:"[hyphenate-character:''] hyphens-auto [word-break:break-word]"},{children:[l,c&&e(so,{name:c,className:"mx-1 w-5 h-6 !inline"}),e(Uo,{size:20,className:"min-w-5 !inline -mt-2"})]})),x&&e("div",xe({className:"flex-shrink-0 ml-auto mr-0"},{children:e(zy,{onClick:function(e){e.stopPropagation(),null==x||x()},icon:e(al,{filled:y}),className:"cursor-pointer w-4 p-2 relative"})}))]})),u&&e(Tr,xe({opacity:50,variant:nr.Text13Regular},{children:null==r?void 0:r("therapist_list_item.years_of_experience",{count:u})})),"number"==typeof p&&"number"==typeof h&&e(cx,{rating:p,reviews:h,size:"small",t:r,endAdornment:w&&e(yo,{}),onClick:w}),C]}))]}))},Mx=function(n){var r=n.t,i=n.rating,o=void 0===i?0:i,a=n.reviews,l=void 0===a?0:a,s=n.yearsOfExperience,c=n.hoursOfPractice,u=n.sessionPrice,d=n.currentPriceType,f=n.sessionDurationMinutes,p=n.className,h=n.userBalance,g=void 0===h?0:h,v="number"==typeof s?"w-1/3":"w-1/2",m=Z(function(){return g?g/100:0},[g]),b=Z(function(){return"number"==typeof m&&m>0?Math.max(u-m,0):u},[u,m]),A=Z(function(){return b<u},[b,u]);return t("div",xe({className:kr("flex flex-1 w-full gap-4",p)},{children:[t("div",xe({className:kr("flex flex-col",v)},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:Jm({price:b,currency:d,roundingTo:0,extendedUsd:!0})})),A?t(Tr,xe({variant:nr.Text14Regular,className:"line-through"},{children:[Jm({price:u,currency:d,roundingTo:0,mode:"sign",side:"left"}),"/",null==r?void 0:r("therapist_list_item.pre_session_short")]})):e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.session_duration",{value:f})}))]})),!!s&&t("div",xe({className:kr("flex flex-col",v)},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:null==r?void 0:r("therapist_list_item.years_of_experience",{count:s})})),e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.years_of_experience_label")}))]})),!!l&&!!o&&t("div",xe({className:kr("flex flex-col",v)},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:t("div",xe({className:"flex items-center"},{children:[e(Go,{className:"w-4 h-4 mr-1"})," ",ym(o)]}))})),e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.number_of_reviews",{count:l})}))]})),c&&t("div",xe({className:"flex flex-col w-1/2"},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:c&&(null==r?void 0:r("therapist_list_item.hours_of_practice",{value:Am(c),count:c}))})),e(Tr,xe({variant:nr.Text14Regular},{children:null==r?void 0:r("therapist_list_item.hours_of_practice_label")}))]}))]}))},jx=function(n){var r=n.minutes,i=n.seconds,o=n.onCompleted,a=n.t,l=60*r+i,s=1e3*l,c=De(G(l),2),u=c[0],d=c[1],f=De(G(s),2),p=f[0],h=f[1];W(function(){var e=setInterval(function(){h(function(t){return t<=0?(clearInterval(e),0):t-100})},100);return function(){return clearInterval(e)}},[r,i]),W(function(){var e=setInterval(function(){d(function(t){return t<=0?(clearInterval(e),null==o||o(),0):t-1})},1e3);return function(){return clearInterval(e)}},[r,i,o]);var g=Math.floor(u/60),v=u%60;return t("div",xe({className:"flex flex-col gap-5 items-center"},{children:[e(Ky,{progress:p/s,reversed:!0,variant:"success"}),e(Tr,xe({variant:nr.Text16Regular},{children:null==a?void 0:a("timer.time_left_hint",{minutes:g,seconds:v})}))]}))},Nx=function(n){return t("svg",xe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},n,{children:[e("circle",{cx:"12",cy:"12",r:"10"}),e("rect",{x:"7",y:"11",width:"10",height:"2",fill:"#D9D9D9"})]}))},Xx=function(t){var n=t.items,r=t.name,i=t.type,o=t.onChange,a=t.values,l=void 0===a?[]:a;return e("ul",{children:n.map(function(t,a){var s=t.value,c=t.label,u=t.id,d=s||c;return e("li",xe({className:kr("flex p-0 cursor-pointer list-none outline-none",{"border-b border-borders-divider":a!==n.length-1})},{children:e(xA,{checked:l.includes(d),type:i,name:r,value:d,label:c,id:u,onChange:function(e){if(i===mA.Checkbox){var t=l.find(function(t){return t===e});o(t?l.filter(function(e){return e!==t}):ke(ke([],De(l),!1),[e],!1))}else o([e])}})}),a)})})},Qx=function(n){var r=n.sections,i=n.name,o=n.defaultChecked,a=void 0===o?[]:o,l=n.onChange,s=De(G([]),2),c=s[0],u=s[1];return W(function(){l(c)},[c]),W(function(){u(a)},[]),e("ul",{children:r.map(function(n,r){var o=n.name,a=n.items,l=a.map(function(e){var t=e.value,n=e.label;return t||n}),s=l.every(function(e){return c.includes(e)}),d=l.some(function(e){return c.includes(e)})&&!s,f=!d&&!s;return t("li",{children:[t(z,xe({onClick:function(){if(f&&u(Array.from(new Set(ke(ke([],De(c),!1),De(l),!1)))),d||s){var e=c.filter(function(e){return!l.includes(e)});u(e)}},className:"left-1/2 right-1/2 relative w-[100vw] p-4 mx-[-50vw] justify-between bg-color-background-anti-flash-light flex items-center gap-4"},{children:[e(Tr,xe({variant:nr.Text16Semi},{children:o})),f&&e(Do,{className:"w-6 h-6 rigth-24"}),d&&e(Nx,{className:"w-6 h-6 rigth-24"}),s&&e(Bo,{className:"w-6 h-6 rigth-24"})]})),e(Xx,{values:c,items:a,name:i,onChange:function(e){var t=c.filter(function(e){return!l.includes(e)});u(Array.from(new Set(ke(ke([],De(t),!1),De(e),!1))))},type:mA.Checkbox})]},r)})})};const Ix=Ae("Share",{web:()=>Promise.resolve().then(function(){return Xpe}).then(e=>new e.ShareWeb)});class Rx extends ye{async write(e){if("undefined"==typeof navigator||!navigator.clipboard)throw this.unavailable("Clipboard API not available in this browser");if(void 0!==e.string)await this.writeText(e.string);else if(e.url)await this.writeText(e.url);else{if(!e.image)throw new Error("Nothing to write");if("undefined"==typeof ClipboardItem)throw this.unavailable("Writing images to the clipboard is not supported in this browser");try{const t=await(await fetch(e.image)).blob(),n=new ClipboardItem({[t.type]:t});await navigator.clipboard.write([n])}catch(e){throw new Error("Failed to write image")}}}async read(){if("undefined"==typeof navigator||!navigator.clipboard)throw this.unavailable("Clipboard API not available in this browser");if("undefined"==typeof ClipboardItem)return this.readText();try{const e=await navigator.clipboard.read(),t=e[0].types[0],n=await e[0].getType(t);return{value:await this._getBlobData(n,t),type:t}}catch(e){return this.readText()}}async readText(){if("undefined"==typeof navigator||!navigator.clipboard||!navigator.clipboard.readText)throw this.unavailable("Reading from clipboard not supported in this browser");return{value:await navigator.clipboard.readText(),type:"text/plain"}}async writeText(e){if("undefined"==typeof navigator||!navigator.clipboard||!navigator.clipboard.writeText)throw this.unavailable("Writting to clipboard not supported in this browser");await navigator.clipboard.writeText(e)}_getBlobData(e,t){return new Promise((n,r)=>{const i=new FileReader;t.includes("image")?i.readAsDataURL(e):i.readAsText(e),i.onloadend=()=>{const e=i.result;n(e)},i.onerror=e=>{r(e)}})}}const Fx=Ae("Clipboard",{web:()=>new Rx});var Vx="ShareModalFeature-module_container__sTTuu",Gx="ShareModalFeature-module_withShare__4PNgP";tt(".ShareModalFeature-module_container__sTTuu{--max-width:450px;--height:136px;--border-radius:32px;--backdrop-opacity:0.6}.ShareModalFeature-module_withShare__4PNgP{--height:200px}.ShareModalFeature-module_container__sTTuu::part(content){border-bottom-left-radius:0;border-bottom-right-radius:0}",{insertAt:"top"});var Wx=function(n){var r,i=n.isOpen,a=n.shareUrl,l=n.shareTitle,s=n.shareText,c=n.onDidDismiss,u=n.onLinkCopied,d=n.onShare,f=n.t,p=De(G(!1),2),h=p[0],g=p[1];W(function(){Pe(void 0,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return[4,Ix.canShare()];case 1:return e.sent().value&&g(!0),[2]}})})},[Ix]);var v=Y(function(){return Pe(void 0,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return[4,Fx.write({string:a})];case 1:return e.sent(),null==u||u(),[2]}})})},[a,u]),m=Y(function(){return Pe(void 0,void 0,void 0,function(){var e;return Oe(this,function(t){switch(t.label){case 0:return null==d||d(),e={title:l,text:s,url:a},o("android")?[4,Ix.share(xe(xe({},e),{dialogTitle:l}))]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,navigator.share(e)];case 3:t.sent(),t.label=4;case 4:return[2]}})})},[a,s,l,d]);return t(P,xe({isOpen:i,onDidDismiss:c,initialBreakpoint:1,breakpoints:[0,1],className:kr(Vx,(r={},r[Gx]=h,r))},{children:[e("div",{className:"h-6"}),e(y,{children:e("div",xe({className:"px-5 pb-6"},{children:t("ul",xe({className:"flex flex-col divide-y divide-solid divide-borders-divider text-color-black"},{children:[t("li",xe({className:"flex items-center gap-4 py-5 cursor-pointer",onClick:v},{children:[e(Ea,{}),e(Tr,{children:null==f?void 0:f("therapist_details.copy_profile_link")})]})),h&&t("li",xe({className:"flex items-center gap-4 py-5 cursor-pointer",onClick:m},{children:[e(za,{})," ",e(Tr,{children:null==f?void 0:f("therapist_details.share_profile")})]}))]}))}))})]}))},Yx=U(function(n){var r=n.t,i=n.name,o=n.date,a=n.avatar,l=n.locale,s=n.timezone,c=n.onUserClick;return t("div",xe({className:"flex flex-col justify-center items-center"},{children:[t("div",xe({onClick:null!=c?c:void 0,className:"cursor-pointer flex flex-col justify-center items-center"},{children:[e(ro,{src:a,alt:i,variant:"medium"}),e(Tr,xe({variant:nr.Title20Semi,className:"mt-3 mb-1"},{children:i}))]})),e(Tr,xe({variant:nr.Text14Regular,opacity:50},{children:de.fromJSDate(o).setZone(s).setLocale(l).toFormat("dd MMMM yyyy HH:mm")})),t(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"mb-4"},{children:[s," (",de.local().setLocale(l).setZone(s).toFormat("ZZZZ"),")"]})),de.now()<de.fromJSDate(o)&&e(es,xe({variant:"success",type:"accent",className:"!bg-color-info-mint"},{children:null==r?void 0:r("payments.session_details.future_session.badge")}))]}))}),Ux=function(n){var r=n.className;return t("div",xe({className:r},{children:[e("div",xe({className:"flex justify-center mb-14"},{children:e(no,{className:"rounded-[28px] w-[142px] h-[30px]"})})),t(rs,xe({variant:"neutral"},{children:[t("div",xe({className:"flex justify-between my-1 pb-4 border-b border-color-black border-opacity-10"},{children:[e(no,{className:"rounded-[12px] w-[102px] h-[14px]"}),e(no,{className:"rounded-[12px] w-[74px] h-[14px]"})]})),t("div",xe({className:"flex justify-between my-1 py-4 border-b border-color-black border-opacity-10"},{children:[e(no,{className:"rounded-[12px] w-[142px] h-[14px]"}),e(no,{className:"rounded-[12px] w-[50px] h-[14px]"})]})),t("div",xe({className:"flex justify-between my-1 pt-4"},{children:[e(no,{className:"rounded-[12px] w-[62px] h-[14px]"}),e(no,{className:"rounded-[12px] w-[97px] h-[14px]"})]}))]}))]}))},Kx=function(n){var r=n.className;return t("div",xe({className:"".concat(r," flex flex-col justify-center items-center")},{children:[e(no,{className:"rounded-full w-[72px] h-[72px] !mb-4"}),t("div",xe({className:"my-1 flex flex-col items-center"},{children:[e(no,{className:"rounded-[12px] w-[142px] h-[14px] !mb-2"}),e(no,{className:"rounded-[12px] w-[94px] h-[10px]"})]}))]}))},qx=U(function(r){var i,o=r.t,a=r.consultation,l=r.isLoading,s=r.locale,c=r.timezone,u=r.onUserClick,d=Z(function(){var e,t,n,r,i,o,l,s=function(e){return.01*(null!=e?e:0)},c=a.payment;return{localCurrency:null!==(e=null==c?void 0:c.currency_local)&&void 0!==e?e:Bm.UAH,mainCurrency:null!==(t=null==c?void 0:c.currency_default)&&void 0!==t?t:Bm.EUR,exchangeRate:null!==(n=null==c?void 0:c.exchange_rate)&&void 0!==n?n:0,discount:null!==(r=(null==c?void 0:c.promocode_discount)||(null==c?void 0:c.subscription_discount))&&void 0!==r?r:0,sessionsCount:null!==(i=null==c?void 0:c.subscription_sessions_count)&&void 0!==i?i:0,interval:null!==(o=null==c?void 0:c.subscription_interval_in_month)&&void 0!==o?o:0,sessionMainPrice:s(null==c?void 0:c.price_default_original_in_cents),sessionLocalPrice:s(null==c?void 0:c.price_local_original_by_exchange_rate_in_cents),discountMainPrice:s(null==c?void 0:c.price_default_discount_in_cents),discountLocalPrice:s(null==c?void 0:c.price_local_discount_by_exchange_rate_in_cents),promocodeMainPrice:s(null==c?void 0:c.price_default_promocode_in_cents),promocodeLocalPrice:s(null==c?void 0:c.price_local_promocode_by_exchange_rate_in_cents),sessionMainPriceAfterDiscount:s(null==c?void 0:c.price_default_in_cents),sessionLocalPriceAfterDiscount:s(null==c?void 0:c.price_local_by_exchange_rate_in_cents),commissionMainPrice:s(null==c?void 0:c.price_default_commission_in_cents),commissionLocalPrice:s(null==c?void 0:c.price_local_commission_by_exchange_rate_in_cents),mainSpecialistRevenue:s(null==c?void 0:c.price_default_after_commission_in_cents),localSpecialistRevenue:s(null==c?void 0:c.price_local_after_commission_by_exchange_rate_in_cents),commission:null!==(l=null==c?void 0:c.commission)&&void 0!==l?l:0}},[a]),f=[{text:null==o?void 0:o("payments.session_details.price.title"),mainPrice:Jm({price:d.sessionMainPrice,currency:d.mainCurrency}),localPrice:Jm({price:d.sessionLocalPrice,currency:d.localCurrency}),isBold:!1}];return(d.interval||d.promocodeMainPrice)&&f.push({text:"".concat(null==o?void 0:o(d.promocodeMainPrice?"payments.session_details.promocode.title":"payments.session_details.discount.title",{discount:(i=100*d.discount,Math.round(100*i)/100)}),"%"),mainPrice:"-".concat(Jm({price:d.promocodeMainPrice||d.discountMainPrice,currency:d.mainCurrency})),localPrice:"-".concat(Jm({price:d.promocodeLocalPrice||d.discountLocalPrice,currency:d.localCurrency})),isBold:!1},{text:null==o?void 0:o("payments.session_details.session_amount.title"),mainPrice:Jm({price:d.sessionMainPriceAfterDiscount,currency:d.mainCurrency}),localPrice:Jm({price:d.sessionLocalPriceAfterDiscount,currency:d.localCurrency}),isBold:!0}),f.push({text:"".concat(null==o?void 0:o("payments.session_details.fee.title",{fee:100*d.commission}),"%"),mainPrice:"-".concat(Jm({price:d.commissionMainPrice,currency:d.mainCurrency})),localPrice:"-".concat(Jm({price:d.commissionLocalPrice,currency:d.localCurrency})),isBold:!1},{text:null==o?void 0:o("payments.session_details.total.title"),mainPrice:Jm({price:d.mainSpecialistRevenue,currency:d.mainCurrency}),localPrice:Jm({price:d.localSpecialistRevenue,currency:d.localCurrency}),isBold:!0}),t(n,l?{children:[e(Kx,{className:"mb-14"}),e(Ux,{})]}:{children:[e("div",xe({className:"mb-8"},{children:e(Yx,{t:o,name:a.name,date:a.date,avatar:a.avatar,locale:s,timezone:c,onUserClick:u})})),t("div",xe({className:"mb-8"},{children:[e(Tr,xe({variant:nr.Title48Semi,className:"mb-2 text-center"},{children:Jm({price:d.mainSpecialistRevenue,currency:d.mainCurrency})})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-center"},{children:Jm({price:d.localSpecialistRevenue,currency:d.localCurrency})})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-center"},{children:null==o?void 0:o("payments.session_details.exchange_rate.subtitle",{rate:d.exchangeRate})}))]})),t(rs,xe({className:"mb-5 !border-opacity-35 flex justify-between",variant:"neutral",size:"M"},{children:[e(Tr,xe({variant:nr.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center"},{children:null==o?void 0:o("payments.session_details.type.title")})),t("div",{children:[e(Tr,xe({variant:nr.Text16Regular,opacity:100,className:"text-typography-typography-secondary text-right"},{children:d.interval?null==o?void 0:o("payments.session_details.type.subscription"):null==o?void 0:o("payments.session_details.type.trial")})),!!d.interval&&e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:null==o?void 0:o("payments.session_details.type.subscription_item",{count:d.sessionsCount,period:d.interval})}))]})]})),e(rs,xe({className:"mb-5 !border-opacity-35",variant:"neutral",size:"M"},{children:f.map(function(n,r){return t("div",xe({className:"flex justify-between border-color-black border-opacity-10 ".concat(r<f.length-1?"pb-5":"")},{children:[e(Tr,xe({variant:nr.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center w-2/3"},{children:n.text})),t("div",xe({className:"flex flex-col items-end w-1/3"},{children:[e(Tr,xe({variant:nr[n.isBold?"Text16Semi":"Text16Regular"],opacity:100,className:"text-typography-typography-primary"},{children:n.mainPrice})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:n.localPrice}))]}))]}),"item-".concat(r))})}))]})});function Jx(e){var t=de.fromJSDate(null!=e?e:"").month,n=de.fromJSDate(null!=e?e:"").year,r=de.now().day,i=de.now().month,o=de.now().year,a={isPreviousMonth:!1,isOldMonth:!1,isCurrentMonth:!1,isFutureMonth:!1};return o>=n&&(o>n||i>t+1?a.isOldMonth=!0:o===n&&i===t+1?r<=10?a.isPreviousMonth=!0:a.isOldMonth=!0:o===n&&i===t&&(a.isCurrentMonth=!0)),a.isFutureMonth=!a.isPreviousMonth&&!a.isOldMonth&&!a.isCurrentMonth,a}function Zx(e,t){var n=de.utc(new Date(e).getUTCFullYear(),new Date(e).getUTCMonth()+1,2);return t&&(n=n.setLocale(t)),n.toFormat("LLLL yyyy")}function _x(e){var t=e.date,n=e.locale,r=Jx(t),i=r.isOldMonth,o=r.isCurrentMonth;return Z(function(){var e=de.fromObject({year:(i?de.fromJSDate(t):de.now()).year,month:(i?de.fromJSDate(t):de.now()).month,day:10});return(i||o)&&(e=e.plus({month:1})),n&&(e=e.setLocale(n)),e.toFormat("d MMMM yyyy")},[t,n,i])}var $x={previous:"previous",future:"future"};var eC=U(function(t){var r=t.t,i=t.date,o=t.locale,a=t.className,l=new Date(i),s=Jx(l),c=s.isOldMonth,u=s.isPreviousMonth,d=_x({date:de.fromObject({year:de.fromJSDate(l).year,month:de.fromJSDate(l).month}).toJSDate(),locale:o}),f=_x({date:l,locale:o});return c?e(es,xe({className:a,variant:"success"},{children:null==r?void 0:r("payments.payout_paid.badge",{date:d})})):u?e(es,xe({className:a,variant:"attention"},{children:null==r?void 0:r("payments.payout_in_progress.badge",{date:f})})):e(n,{})}),tC=Qi({slots:{sessionsLabel:"text-color-text-primary font-bold text-[16px]",skeletonWrapper:"bg-color-background-anti-flash-light rounded-[30px]",skeletonTLWTile:"rounded-[12px] w-[118px] h-[12px] !mb-2",skeletonTSWTile:"rounded-[12px] w-[62px] h-[18px]",skeletonBLNTile:"rounded-[20px] w-[104px] h-[8px] !mb-2",skeletonBLNTile2:"rounded-[20px] w-[83px] h-[8px] !mb-2",skeletonBSWTile:"rounded-[12px] w-[38px] h-[12px] !mb-3",skeletonBMWTile:"rounded-[12px] w-[70px] h-[10px]",skeletonBMWTile2:"rounded-[12px] w-[62px] h-[10px]"}}),nC=function(n){var r=n.className,i=tC();return t("div",xe({className:"".concat(i.skeletonWrapper()," ").concat(r)},{children:[t("div",xe({className:"flex justify-start mb-9"},{children:[t("div",xe({className:"flex flex-col w-1/2"},{children:[e(no,{className:i.skeletonTLWTile()}),e(no,{className:i.skeletonTSWTile()})]})),t("div",xe({className:"flex flex-col w-1/2"},{children:[e(no,{className:i.skeletonTLWTile()}),e(no,{className:i.skeletonTSWTile()})]}))]})),t("div",xe({className:"flex justify-between"},{children:[t("div",xe({className:"flex flex-col"},{children:[e(no,{className:i.skeletonBLNTile()}),e(no,{className:i.skeletonBSWTile()}),e(no,{className:i.skeletonBMWTile()})]})),t("div",xe({className:"flex flex-col"},{children:[e(no,{className:i.skeletonBLNTile()}),e(no,{className:i.skeletonBSWTile()}),e(no,{className:i.skeletonBMWTile()})]})),t("div",xe({className:"flex flex-col"},{children:[e(no,{className:i.skeletonBLNTile2()}),e(no,{className:i.skeletonBSWTile()}),e(no,{className:i.skeletonBMWTile2()})]}))]}))]}))},rC=U(function(r){var i,o=r.t,a=r.revenue,l=r.currency,s=r.showRevenue,c=r.currencyProps,u=r.commissionRates,d=r.commissionValue,f=r.showCommission,p=r.calendarDate,h=r.totalSessionsCount,g=r.futureSessionsCount,v=r.isLoading,m=r.isInvoiceLoading,b=r.hideProgressBar,A=r.locale,y=r.onInvoiceClick,w=Object.keys(u).map(function(e,t,n){return{start:t-1>=0?parseInt(n[t-1],10)+1:1,end:parseInt(e,10),value:Number(u[Number(e)])}}),x=g;x>h&&(x=h);var C=h-x,P=Jx(p),O=P.isPreviousMonth,B=P.isOldMonth,D=P.isCurrentMonth,k=P.isFutureMonth,z=d||(null===(i=w[0])||void 0===i?void 0:i.value)||0;return t(rs,xe({variant:"neutral"},{children:[s&&l&&t("div",{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o(k||D?"payments.planned_income.title":"payments.income.title")})),t("div",xe({className:"flex justify-between items-center"},{children:[e(Tr,xe({variant:nr.Title48Semi,className:"text-typography-typography-secondary"},{children:Jm(xe({price:Number(.01*(null!=a?a:0)),currency:l},c||{}))})),B&&e(n,{children:m?e(Gy,{}):e(aa,{className:"cursor-pointer",onClick:y})})]}))]}),v&&e("div",xe({className:"mt-5"},{children:e(nC,{})})),!v&&t(n,{children:[s&&p&&e(eC,{t:o,className:"mt-5 !block !w-fit",date:p,locale:A}),t(n,{children:[f&&t("div",xe({className:"inline-block w-1/2 ".concat(s?"mt-5":"")},{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o("payments.commission_rate.title")})),t(Tr,xe({variant:nr.Title20Semi,className:"text-typography-typography-secondary"},{children:[100*z,"%"]}))]})),t("div",xe({className:"\n ".concat(D?"w-full":""," \n ").concat(f&&D||s?"mt-5":""," \n inline-block\n ")},{children:[!k&&t("div",xe({className:"".concat(D?"w-1/2":""," inline-block")},{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o("payments.sessions_held.title")})),e(Tr,xe({variant:nr.Title20Semi,className:"text-typography-typography-secondary"},{children:C}))]})),!B&&!O&&t("div",xe({className:"".concat(k?"":"w-1/2"," inline-block")},{children:[e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==o?void 0:o("payments.future_sessions.title")})),e(Tr,xe({variant:nr.Title20Semi,className:"text-typography-typography-secondary"},{children:x}))]}))]}))]}),!b&&e(Cw,{t:o,ranges:w,progress:C,maxValue:h,className:"mt-5"})]})]}))}),iC=Qi({slots:{tab:"p-4 w-1/2 text-center cursor-pointer opacity-65",consultationCard:"flex justify-between items-center w-full mt-4 pb-4 border-b border-typography-typography-primary/10 cursor-pointer"},variants:{multiple:{false:{tab:"!border-b-0 text-left pl-0 !w-full"}},active:{true:{tab:"border-b-2 font-semibold opacity-100"}}}}),oC=U(function(r){var i,o,a,l,s,c,u=r.consultation,d=r.locale,f=r.consultationClick,p=iC(),h=de.fromJSDate(u.date).setLocale(null!=d?d:"uk").toFormat("dd MMMM yyyy");return u?t("div",xe({onClick:f?function(){return f(u)}:function(){return null},className:"".concat(p.consultationCard()," ").concat(f?"cursor-pointer":"")},{children:[t("div",xe({className:"flex flex-start items-center"},{children:[e("div",xe({className:"mr-4"},{children:e(ro,{src:u.avatar,alt:u.name})})),t("div",xe({className:"flex flex-col"},{children:[e(Tr,xe({variant:nr.Text16Regular},{children:u.name})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:h}))]}))]})),t("div",xe({className:"flex flex-col"},{children:[e(Tr,xe({variant:nr.Text16Regular,className:"text-right"},{children:Jm({price:.01*(null!==(o=null===(i=u.payment)||void 0===i?void 0:i.price_default_after_commission_in_cents)&&void 0!==o?o:0),currency:null===(a=u.payment)||void 0===a?void 0:a.currency_default})})),e(Tr,xe({variant:nr.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:Jm({price:.01*(null!==(s=null===(l=u.payment)||void 0===l?void 0:l.price_local_after_commission_by_exchange_rate_in_cents)&&void 0!==s?s:0),currency:null===(c=u.payment)||void 0===c?void 0:c.currency_local})}))]}))]})):e(n,{})}),aC=U(function(t){var r=t.consultations,i=t.locale,o=t.consultationClick;return e(n,{children:r.map(function(t){return e(oC,{consultationClick:o,consultation:t,locale:i},t.id)})})}),lC=U(function(r){var i=r.t,o=r.calendarDate,a=r.consultations,l=r.locale,s=r.futureCount,c=r.previousCount,u=r.defaultTab,d=r.consultationsModeTrigger,f=r.consultationClick,p=iC(),h=De(G(""),2),g=h[0],v=h[1],m=function(e){var t=e.t,n=e.date,r=e.defaultTab,i=e.futureCount,o=e.previousCount;return Z(function(){var e=Jx(new Date(n)),a=e.isPreviousMonth,l=e.isOldMonth,s=e.isCurrentMonth;if(a||l)return{activeTab:$x.previous,tabs:[{label:t("payments.held_sessions.subtitle"),value:$x.previous}]};if(s){var c=[];return o&&c.push({label:t(i?"payments.balance_details.held_tab":"payments.held_sessions.subtitle"),value:$x.previous}),i&&c.push({label:t(o?"payments.balance_details.future_tab":"payments.future_sessions.title"),value:$x.future}),{activeTab:Object.values($x).includes(null!=r?r:"")?r:o?$x.previous:$x.future,tabs:c}}return{activeTab:$x.future,tabs:[{label:t("payments.future_sessions.title"),value:$x.future}]}},[n,i,o,r])}({t:i,date:o,futureCount:s,previousCount:c,defaultTab:u}),b=m.activeTab,A=m.tabs,y=A.length>1;W(function(){g!==b&&(v(b),d(b))},[b]);return t(n,{children:[e("div",xe({className:"mt-4 flex justify-between items-center"},{children:A.map(function(t,n){return e(Tr,xe({variant:nr[y?"Text14Semi":"Title18Semi"],onClick:function(){return function(e){e.value!==g&&(v(e.value),d(e.value))}(t)},className:p.tab({active:g===t.value,multiple:y})},{children:t.label}),"".concat(t.value,"-").concat(n))})})),e(aC,{consultationClick:f,consultations:a,locale:l})]})}),sC=function(r){var i=r.className;return e(n,{children:[1,.8,.6,.4,.2].map(function(n,r){return t("div",xe({className:"flex justify-between items-center w-full mt-3 pb-3 border-b border-color-black border-opacity-10 ".concat(i),style:{opacity:n}},{children:[t("div",xe({className:"flex flex-start items-center"},{children:[e("div",xe({className:"mr-4"},{children:e(no,{className:"w-10 h-10 rounded-full"})})),t("div",xe({className:"flex flex-col"},{children:[e(no,{className:"w-[142px] h-[14px] rounded-[12px] !mb-2"}),e(no,{className:"w-[94px] h-[10px] rounded-[12px]"})]}))]})),t("div",xe({className:"flex flex-col items-end"},{children:[e(no,{className:"w-[64px] h-[14px] rounded-[12px] !mb-2"}),e(no,{className:"w-[32px] h-[10px] rounded-[12px]"})]}))]}),r)})})};var cC=U(function(n){var r=n.t,i=n.date,o=n.locale,a=n.mode,l=void 0===a?"button":a,s=n.opened,c=n.lastDate,u=n.dateCallback,d=De(G(new Date(i.setDate(2))),2),f=d[0],p=d[1],h=De(G(s),2),g=h[0],v=h[1],m=function(e){for(var t=e.locale,n=e.lastDate,r=[],i=de.fromISO("2022-01-01").toJSDate(),o=de.local().toJSDate(),a=n||o;a>i;){var l=de.fromJSDate(a);t&&(l=l.setLocale(t));var s=l.toFormat("LLLL yyyy");r.push({label:s,value:a}),a=de.fromJSDate(a).minus({month:1}).toJSDate()}return r}({locale:o,lastDate:c});W(function(){s!==g&&v(s)},[s]);return e(Yy,xe({isOpen:g,heightInPx:402,onIonModalDidDismiss:function(){u(f),v(!1)}},{children:t(oo,xe({className:"pt-10 h-full flex flex-1 flex-col"},{children:[e(Tr,xe({variant:nr.Title24Semi,className:"mt-10 text-center"},{children:null==r?void 0:r("select_period.title")})),e(Vw,{className:"relative",selections:{calendarList:m},defaults:{calendarList:Zx(f,o)},onChange:function(e){p(e.calendarList.value),"button"!==l&&(u(f),v(!1))}}),"button"===l&&e(Fi,xe({onClick:function(){u(f),v(!1)},className:"w-full text-center !mt-3",size:"large"},{children:null==r?void 0:r("select_period.button")}))]}))}))}),uC=U(function(r){var i=r.t,o=r.date,a=r.locale,l=r.lastDate,s=r.dateCallback,c=De(G(o),2),u=c[0],d=c[1],f=De(G(!1),2),p=f[0],h=f[1];W(function(){o!==u&&d(o)},[o]);return t(n,{children:[e(xo,{onClick:function(){h(!0)},className:"cursor-pointer"}),e(cC,{t:i,date:o,locale:a,lastDate:l,mode:"button",opened:p,dateCallback:function(e){h(!1),d(e),s(e)}})]})});function dC(n){var r=n.status,i=n.isOpen,o=n.onSync,a=n.isLoading,l=n.presentingElement,s=n.imageUrl,c=n.onDidDismiss,u=n.t;return t(kx,xe({presentingElement:l,isOpen:i,onDidDismiss:c},{children:[t(oo,xe({className:"h-full"},{children:[e("div",xe({className:"flex justify-center mt-3"},{children:e(mo,{width:335,height:292,src:{src:s},srcType:"image/webp"})})),t(Tr,xe({variant:nr.Title24Semi,className:"mt-6",align:"center"},{children:["inactive"===r&&u("google_sync.title"),"access_denied"===r&&u("google_calendar.no_permission.title")]})),t(Tr,xe({variant:nr.Text14Regular,className:"!text-typography-typography-primary/50 mt-3",align:"center"},{children:["inactive"===r&&u("google_sync.description"),"access_denied"===r&&u("google_calendar.no_permission.description")]}))]})),e(Yi,{children:t(Fi,xe({size:"large",fullWidth:!0,isLoading:a,onClick:o},{children:["inactive"===r&&u("google_sync.next_button"),"access_denied"===r&&u("google_calendar.no_permission.button")]}))})]}))}var fC=Qi({slots:{base:"w-full flex flex-col",userContainer:"flex flex-row items-center justify-between min-h-0 w-full",user:"flex items-center gap-4",editContainer:"ml-2 p-3 w-[max-content] h-[max-content] cursor-pointer rounded-[40px] border border-borders-divider",editIcon:"w-3 h-3",rating:"!gap-1",review:"",reviewText:"",name:"",mainTextVariant:"",dateTextVariant:"",ratingSize:null,avatarSize:null},variants:{size:{default:{base:"p-4 rounded-3xl",userContainer:"mb-4",rating:"mb-2.5",mainTextVariant:nr.Text15Regular,dateTextVariant:nr.Text13Regular,ratingSize:16,avatarSize:"small"},small:{base:"p-2 rounded-xl",userContainer:"mb-3",rating:"mb-1",editContainer:"p-1",editIcon:"w-2 h-2",mainTextVariant:nr.Text7Regular,dateTextVariant:nr.Text6Regular,ratingSize:8,avatarSize:"smaller"},large:{base:"p-5 rounded-3xl min-h-[313px]",userContainer:"mb-4",rating:"mb-2.5",mainTextVariant:nr.Text15Regular,dateTextVariant:nr.Text13Regular,ratingSize:20,avatarSize:"small"}},variant:{default:{base:"bg-color-background-anti-flash-light"},outlined:{base:"border border-borders-divider",rating:"mb-0",review:"mt-3"},full:{base:"p-0 flex flex-row flex-wrap justify-between min-h-0",user:"flex-shirnk-0",userContainer:"mb-2",review:"flex-grow-0 flex-shrink-0 basis-full"},store:{base:"bg-color-background-anti-flash-light min-h-0 [&_.text-controls-element-selected]:text-color-info-orange",name:"font-[600]",rating:"order-2 mb-0",review:"order-1 mt-3 mb-2",userContainer:"order-1 mb-0"},starFirst:{base:"border border-borders-divider flex p-5 min-h-[auto] [&_.text-controls-element-selected]:text-color-info-orange",name:"font-[400] leading-[120%] text-typography-typography-secondary",rating:"order-1 mb-0 !flex justify-center text-color-info-orange",review:"order-2 mt-2 mb-1",reviewText:"text-center font-[600]",userContainer:"order-3 mb-0 flex justify-center"}}}}),pC=U(function(r){var i=r.text,o=r.title,a=r.countLines,l=r.variant,s=void 0===l?nr.Text15Regular:l,c=r.expandType,u=r.classNameTitle,d=r.classNameReviewText,f=r.onExpand,p=r.t,h=r.presentingElement,g=r.onMoreClick,v=r.hideShowMore,m=Ce(r,["text","title","countLines","variant","expandType","classNameTitle","classNameReviewText","onExpand","t","presentingElement","onMoreClick","hideShowMore"]),b=De(G(!1),2),A=b[0],y=b[1],w=De(G(!1),2),x=w[0],C=w[1],P=K(null),O=K(null),B=function(t){return o&&e(Tr,xe({variant:t||nr.Title20Semi,className:kr("mt-6 mb-2",u)},{children:o}))},D=function(t){var n;return void 0===t&&(t=x),e(Tr,xe({variant:s,className:kr("overflow-hidden whitespace-pre-wrap",(n={},n["line-clamp-".concat(a)]=!t,n["line-clamp-none"]=t,n["pb-8"]=t&&"modal"===c,n),d),ref:P},m,{children:e("div",{dangerouslySetInnerHTML:{__html:i}})}))};W(function(){requestAnimationFrame(function(){!function(){var e;if(P.current&&a){var t=parseFloat(getComputedStyle(P.current).lineHeight)*a;(null===(e=P.current)||void 0===e?void 0:e.scrollHeight)>t?y(!0):y(!1)}}()})},[i,a]);return t(n,{children:[B(),D(),A&&!v&&e(lx,xe({onClick:"function"==typeof f?f:"inline"===c?function(){x||null==g||g(),C(!x)}:"modal"===c?function(){var e;null==g||g(),null===(e=O.current)||void 0===e||e.present()}:void 0,className:"mt-3"},{children:x?null==p?void 0:p("therapist_details.show_less"):null==p?void 0:p("therapist_details.show_more")})),e(Yy,xe({ref:O,presentingElement:h,withCloseButton:!0},{children:t(oo,{children:[B(nr.Title28Semi),D(!0)]})}))]})}),hC=q(function(n,r){var i=n.id,o=n.avatarSrc,a=n.name,l=n.date,s=n.rating,c=n.review,u=n.size,d=void 0===u?"default":u,f=n.variant,p=void 0===f?"default":f,h=n.reviewTextClamp,g=n.onExpandReview,v=n.t,m=n.className,b=n.locale,A=n.useDate,y=void 0!==A&&A,w=n.isEditable,x=void 0!==w&&w,C=n.onEditReview,P=fC({size:d,variant:p}),O=P.base,B=P.userContainer,D=P.user,k=P.editContainer,z=P.editIcon,E=P.rating,H=P.mainTextVariant,S=P.dateTextVariant,T=P.ratingSize,L=P.avatarSize,M=P.review,j=P.reviewText,N=P.name,X=Z(function(){var e=de.now().startOf("day"),t=de.fromSeconds(l).startOf("day"),n=e.diff(t,"days").toObject();return n.days?Math.ceil(n.days):0},[l]),Q=Z(function(){return X<=0?null==v?void 0:v("reviews.today_subtitle"):y&&b?de.fromSeconds(l).toLocaleString(de.DATE_MED,{locale:b}):null==v?void 0:v("reviews.days_before_subtitle",{count:X})},[X,v,b,y,l]),I=H(),R=S(),F=T();return t("div",xe({className:kr(O(),m),ref:r},{children:[t("div",xe({className:B()},{children:[t("div",xe({className:D()},{children:["starFirst"!==p&&e(ro,{src:o,variant:L()}),t("div",{children:[e(Tr,xe({variant:I,className:N()},{children:a})),"starFirst"!==p&&e(Tr,xe({variant:R,opacity:50},{children:Q}))]})]})),x&&e("div",xe({onClick:function(){null==C||C({id:null!=i?i:"",review_rating:s,text_of_review:c})},className:k()},{children:e(Ia,{className:z()})}))]})),e(by,{readonly:!0,initialRating:s,size:F,className:E()}),e("div",xe({className:M()},{children:e(pC,{variant:I,classNameReviewText:j(),countLines:h,text:c,onExpand:function(){null==g||g()},t:v})}))]}))});hC.displayName="ReviewCardFeature";var gC=U(hC),vC=U(function(){var n=new Array(6).fill(0),r=fC({size:"default"}),i=r.base,o=r.user;return e("ul",xe({className:"flex flex-col gap-5"},{children:n.map(function(n,r){return t("div",xe({className:i(),style:{opacity:0===r?1:r>=3?.4:1-(r+r)/10}},{children:[t("div",xe({className:o()},{children:[e(no,{className:"w-10 h-10 rounded-full shrink-0"}),t("div",xe({className:"flex flex-col gap-2 w-full"},{children:[e(no,{className:"w-7/12 h-3.5 rounded-xl"}),e(no,{className:"w-5/12 h-2.5 rounded-xl"})]}))]})),e(no,{className:"w-7/12 h-3.5 rounded-xl"}),t("div",xe({className:"flex flex-col gap-2 w-full mt-[26px]"},{children:[e(no,{className:"w-full h-2.5 rounded-xl"}),e(no,{className:"w-8/12 h-2.5 rounded-xl"})]}))]}),r)})}))});function mC(n){var r=n.isOpen,i=n.showMessenger,o=n.t,a=n.children;return t(Yy,xe({heightInPx:490,isOpen:r,canDismiss:!1},{children:[t(oo,{children:[e("div",xe({className:"mt-5 text-center text-[86px]"},{children:"🥺"})),e(Tr,xe({variant:nr.Title24Semi,align:"center"},{children:null==o?void 0:o("old_device.title")})),e(Tr,xe({variant:nr.Text14Regular,align:"center",className:"mt-3",opacity:50},{children:null==o?void 0:o("old_device.description")}))]}),t(Yi,{children:[a,e(Fi,xe({size:"large",fullWidth:!0,onClick:function(){return i()}},{children:null==o?void 0:o("old_device.button")}))]})]}))}var bC=function(n){var r=n.children,i=n.title,o=n.warnLabel,a=n.btnLabel,l=n.defaultValue,s=n.name,c=n.type,u=n.placeholder,d=n.autocomplete,f=n.handleSubmit,p=n.isLoading,h=n.isDisabled,g=n.isKeyboardShown,v=K(null),m=De(G(null!=l?l:""),2),b=m[0],A=m[1];W(function(){l&&b!==l&&A(l)},[l]),E(function(){v.current&&v.current.focus()},[v]);var y=function(){f(b)};return t(H,{children:[e(as,{children:r}),t(oo,xe({isFlexContainer:!0},{children:[t("div",xe({className:"flex flex-col gap-1"},{children:[e(Tr,xe({variant:nr.Title28Semi},{children:i})),e(Tr,xe({variant:nr.Text15Regular},{children:o}))]})),e(Vy,{ref:v,type:c,name:s,placeholder:u,value:b,autoComplete:d,onChange:function(e){return A(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&y()},required:!0})]})),e(Yi,xe({transparent:!0,bottomSaveArea:!g},{children:e(Fi,xe({isLoading:p,disabled:h,fullWidth:!0,size:"large",onClick:function(){return y()}},{children:a}))}))]})},AC=function(n){var r=n.title,i=n.description,o=n.errorTitle,a=n.stackTrace;return t("div",xe({className:"h-full flex flex-col items-center justify-center gap-2"},{children:[e("div",xe({className:"text-[88px]"},{children:"🙁"})),r&&e(Tr,xe({variant:nr.Title28Semi,align:"center"},{children:r})),i&&e(Tr,xe({variant:nr.Text14Regular,align:"center",opacity:50},{children:i})),t("div",xe({className:"w-full max-h-48 overflow-y-auto whitespace-pre-wrap bg-[#f7f7f9] border border-[#e1e1e8] text-[#333] text-sm p-2"},{children:[o,e("br",{}),e("br",{}),a]}))]}))};tt('.first-paragraph p:first-child{font-style:italic}.nested-list,.nested-list ol{counter-reset:item;list-style:none}.nested-list>li{counter-increment:item}.nested-list>li:before{content:counters(item,".") ". "}.nested-list ol{counter-reset:subitem}.nested-list ol>li{counter-increment:subitem}.nested-list ol>li:before{content:counters(item,".") "." counters(subitem,".") ". "}.nested-list ol ol{counter-reset:subsubitem}.nested-list ol ol>li{counter-increment:subsubitem}.nested-list ol ol>li:before{content:counters(item,".") "." counters(subitem,".") "." counters(subsubitem,".") " "}',{insertAt:"top"});var yC=function(r){var i=r.node,o=r.level,a=function(){switch(i.type){case"<h1>":return"h1";case"<p>":return"p";case"<li>":return"li";case"<ol>":return"ol";case"<ul>":return"ul";default:return te}}();return t(a,xe({className:Ld({"nested-list":"<ol>"===i.type,"pl-7":"<ol>"===i.type&&2===o,"pl-11":"<ol>"===i.type&&3===o,"pl-5":"<ol>"===i.type&&4===o,"pl-3":"<li>"===i.type&&1===o,"my-2":"<li>"===i.type,"mt-5 font-inter-tight text-[20px] font-semibold leading-[140%]":"<h1>"===i.type,"my-5 font-inter text-[14px] leading-[140%]":"<p>"===i.type})},{children:[i.title&&!["<h1>","<p>"].includes(i.type)&&e("span",xe({className:"my-5 font-inter text-[14px] leading-[140%]"},{children:_m(i.title)})),"<h1>"===i.type?_m(i.title):null,"<p>"===i.type?_m(i.title):null,i.children&&i.children.length>0&&e(n,{children:i.children.map(function(t,n){return e(yC,{node:t,level:"<ol>"===i.type?o+1:o},n)})})]}))},wC=U(q(function(t,n){var r=t.data,i=t.className;return e("div",xe({ref:n,className:Ld(i,"first-paragraph")},{children:r.map(function(t,n){return e(yC,{node:t,level:1},n)})}))}));function xC(n){var r=n.isOpen,i=n.presentingElement,o=n.onApply,a=n.onDismiss,l=n.subtitle,s=n.title,c=n.applyText;return t(kx,xe({isOpen:r,presentingElement:i,onDidDismiss:a},{children:[t(oo,{children:[e(Tr,xe({className:"text-8xl mt-12",align:"center"},{children:"☝️"})),e(Tr,xe({className:"mt-5",variant:nr.Title24Semi,align:"center"},{children:s})),e(Tr,xe({className:"mt-2",variant:nr.Text14Regular,align:"center",opacity:50},{children:l}))]}),e(Yi,{children:e(Fi,xe({size:"large",fullWidth:!0,onClick:o},{children:c}))})]}))}wC.displayName="ContentTree";var CC="ScreenInputForm-module_container__Eyh6-",PC="ScreenInputForm-module_input__Hj2X7";tt(".ScreenInputForm-module_container__Eyh6-{--keyboard-offset:0!important}.ScreenInputForm-module_input__Hj2X7::-webkit-inner-spin-button,.ScreenInputForm-module_input__Hj2X7::-webkit-outer-spin-button,.ScreenInputForm-module_input__Hj2X7[type=number]{-webkit-appearance:none;-moz-appearance:textfield;margin:0}",{insertAt:"top"});var OC=U(function(r){var i=r.type,o=void 0===i?"text":i,a=r.title,l=r.subtitle,s=r.subtitleLink,c=r.onSubtitleLinkClick,u=r.placeholder,d=r.buttonText,f=void 0===d?"Зберегти":d,p=r.defaultValue,h=r.name,g=r.onSubmit,v=r.isLoading,m=r.resetButtonText,b=r.resetValue,A=r.autoComplete,y=r.required,w=r.isFocus,x=void 0!==w&&w,C=r.pattern,P=r.isAutoGrow,O=r.icon,B=r.isKeyboardShown,D=void 0!==B&&B,k=De(G(p),2),z=k[0],E=k[1],H=K(null);W(function(){x&&(null==H?void 0:H.current)&&H.current.focus()},[H,x]);var S=Y(function(){z&&(null==g||g(z,null!=h?h:""))},[z,h,g]),T=Y(function(){b&&(E(b),null==g||g(b,null!=h?h:""))},[b,g]),L=Y(function(e){e.preventDefault(),null==c||c()},[c]);return t(n,{children:[t(as,xe({toolbarClassName:"!p-0"},{children:[a&&e(Tr,xe({variant:nr.Title28Semi,className:"mb-1"},{children:a})),l&&t(Tr,xe({variant:nr.Text15Regular,opacity:50},{children:[l," ",s&&e("a",xe({href:"#",className:"underline cursor-pointer text-sl opacity-50",onClick:L},{children:s}))]}))]})),e(oo,xe({className:CC},{children:e(Vy,{ref:H,type:o,placeholder:u,value:z,name:h,onChange:function(e){return E(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&S()},disabled:v,autoComplete:A,required:y,pattern:C,className:PC,isAutoGrow:P,icon:O})})),t(Yi,xe({bottomSaveArea:!D},{children:[m&&e(Fi,xe({fullWidth:!0,type:"button",fill:"clear",className:"!mb-2",onClick:T},{children:m})),e(Fi,xe({type:"button",fullWidth:!0,size:"large",disabled:!z,isLoading:v,onClick:S},{children:f}))]}))]})}),BC=U(function(r){var i=r.title,o=r.subtitle,a=r.buttonText,l=void 0===a?"Save":a,s=r.selections,c=r.defaults,u=r.onChange,d=r.compareBy,f=void 0===d?"label":d,p=r.isLoading,h=void 0!==p&&p,g=r.onTouchStart,v=r.onTouchEnd,m=De(G(c),2),b=m[0],A=m[1],y=Y(function(){b&&u(b)},[b]);return t(n,{children:[t(as,xe({toolbarClassName:"!p-0"},{children:[i&&e(Tr,xe({variant:nr.Title28Semi,className:"mb-1"},{children:i})),o&&e(Tr,xe({variant:nr.Text15Regular,opacity:50},{children:o}))]})),e(oo,xe({isFlexContainer:!0},{children:e("div",xe({className:"flex flex-col flex-1 justify-center",onTouchStart:g,onTouchEnd:v},{children:e(Vw,{selections:s,defaults:b,onChange:function(e){return A(Object.keys(e).reduce(function(t,n){return t[n]=e[n].value,t},{}))},compareBy:f})}))})),e(Yi,{children:e(Fi,xe({fullWidth:!0,type:"button",size:"large",onClick:y,isLoading:h},{children:l}))})]})}),DC="TextAreaForm-module_container__Qd3HG";tt(".TextAreaForm-module_container__Qd3HG{--keyboard-offset:0!important}",{insertAt:"top"});var kC=U(function(r){var i=r.title,a=r.subtitle,l=r.placeholder,s=r.buttonText,c=void 0===s?"Зберегти":s,u=r.defaultValue,d=r.name,f=r.onSubmit,p=r.isLoading,h=r.isFocus,g=void 0!==h&&h,v=r.isKeyboardShown,m=void 0!==v&&v,b=r.maxlength,A=void 0===b?300:b,y=r.HeaderComponent,w=De(G(u),2),x=w[0],C=w[1],P=K(null);W(function(){var e;g&&(null==P?void 0:P.current)&&(null===(e=P.current)||void 0===e||e.setFocus())},[P,g]);var O=Y(function(e){e.preventDefault(),x&&(null==f||f(x,null!=d?d:""))},[x,d,f]);return t(n,{children:[!(!i&&!a)&&e(as,xe({toolbarClassName:"!p-0",className:"mb-5"},{children:t("div",xe({className:"flex flex-col gap-1"},{children:[i&&e(Tr,xe({variant:nr.Title28Semi},{children:i})),a&&e(Tr,xe({variant:nr.Text15Regular,opacity:50},{children:a}))]}))})),t(oo,xe({className:DC},{children:[!!y&&e(y,{}),e(_A,{ref:P,placeholder:l,showCounter:!0,autoGrow:!0,maxlength:A,spellcheck:!0,value:x,name:d,onIonChange:function(e){return C(e.target.value)},onKeyPress:function(e){return!o("hybrid")&&"Enter"===e.key&&O(e)},disabled:p})]})),e(Yi,xe({bottomSaveArea:!m},{children:e(Fi,xe({type:"button",fullWidth:!0,size:"large",disabled:!x,isLoading:p,onClick:O},{children:c}))}))]})});function zC(n){var r=n.isAccepted,i=n.setIsAccepted,o=n.handlePressLink,a=n.translations;return t("div",xe({className:"flex gap-x-2 mb-[18px] !leading-[140%]",onClick:function(){i(!r)}},{children:[e("div",xe({className:"flex items-center flex-shrink-0 text-typography-typography-primary"},{children:e(r?Bo:Do,{className:"!h-6 !w-6"})})),t("div",xe({className:"inline"},{children:[t(Tr,xe({variant:nr.Text14Regular,className:"inline"},{children:[a[0]," "]})),e(Tr,xe({variant:nr.Text14Regular,className:"inline !text-badges-info-main underline cursor-pointer",onClick:function(e){e.stopPropagation(),o()}},{children:a[1]})),t(Tr,xe({className:"inline",variant:nr.Text14Regular},{children:[" ",a[2]]}))]}))]}))}var EC=U(function(r){var i=r.title,o=r.subTitle,a=r.items,l=r.defaultItems,s=r.selectedItems,c=r.onChange,u=r.onSubmit,d=r.isLoading,f=void 0!==d&&d,p=r.otherText,h=r.buttonLabel,g=r.enableSearch,v=void 0!==g&&g,m=r.searchPlaceholder,b=void 0===m?"":m,A=Ce(r,["title","subTitle","items","defaultItems","selectedItems","onChange","onSubmit","isLoading","otherText","buttonLabel","enableSearch","searchPlaceholder"]),y=De(G(!1),2),w=y[0],x=y[1],C=De(G(l),2),P=C[0],O=C[1],B=De(G(null),2),D=B[0],k=B[1],z=De(G(null),2),E=z[0],H=z[1],S=De(G(null!=s?s:new Set([])),2),T=S[0],L=S[1],M=Z(function(){return a.filter(function(e){return!E||e.toLowerCase().includes(E.toLowerCase())})},[E,a]),j=Y(function(e){"all"!==e&&e.size&&(L(e),null==c||c(ke([],De(e.values()),!1)[0].toString()),!h&&(null==u||u(ke([],De(e.values()),!1)[0].toString())))},[u,h]),N=Y(function(e){var t=e.detail.value||"";k(t);var n=P.filter(function(e){return!t||e.toLowerCase().includes(t.toLowerCase())});O(n)},[]),X=Y(function(e){O(function(t){return ke([e],De(t.filter(function(t){return t!==e})),!1)}),H(null),x(!1),j(new Set([e]))},[j]),Q=Y(function(){"all"!==T&&T.size&&(null==u||u(ke([],De(T.values()),!1)[0].toString()))},[u,T]);return t(n,{children:[t(as,xe({toolbarClassName:"!p-0"},{children:[i&&e(Tr,xe({variant:nr.Title24Semi,className:"mb-1"},{children:i})),o&&e(Tr,xe({variant:nr.Text15Regular,opacity:50,className:"mb-4"},{children:o})),v&&e(fw,{onIonChange:N,value:null!=D?D:"",placeholder:b,className:"mb-2"})]})),t(oo,{children:[!h&&e(Jy,{isOpen:f}),e(vA,xe({type:"radio",selectionMode:"single",selectedKeys:T,onSelectionChange:j},{children:P.map(function(t,n){return e(zA,xe({textValue:t,divider:!0},{children:t}),t)})})),p&&e(ew,{children:e(aw,xe({className:"p-0",onClick:function(){return x(!0)}},{children:p}))})]}),h&&e(Yi,{children:e(Fi,xe({fullWidth:!0,size:"large",isLoading:f,onClick:Q,disabled:"all"!==T&&!T.size},{children:h}))}),e(Px,xe({countries:M,isOpen:w,onDidDismiss:function(){return x(!1)},onSearchChange:function(e){var t,n;return H(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:"")},onItemClick:X,searchValue:null!=E?E:""},A))]})});function HC(){return HC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HC.apply(this,arguments)}const SC=["children","options"],TC="0",LC="1",MC="2",jC="3",NC="4",XC="5",QC="6",IC="7",RC="8",FC="9",VC="10",GC="11",WC="12",YC="13",UC="14",KC="15",qC="16",JC="17",ZC="18",_C="19",$C="20",eP="21",tP="22",nP="23",rP="24",iP="25",oP="26",aP="27",lP="28",sP="29",cP="30",uP="31",dP="32",fP="33";var pP;!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(pP||(pP={}));const hP=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),gP={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},vP=["style","script"],mP=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,bP=/mailto:/i,AP=/\n{2,}$/,yP=/^(\s*>[\s\S]*?)(?=\n{2,})/,wP=/^ *> ?/gm,xP=/^ {2,}\n/,CP=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,PP=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,OP=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,BP=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,DP=/^(?:\n *)*\n/,kP=/\r\n?/g,zP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,EP=/^\[\^([^\]]+)]/,HP=/\f/g,SP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,TP=/^\s*?\[(x|\s)\]/,LP=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,MP=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jP=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,NP=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,XP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,QP=/^<!--[\s\S]*?(?:-->)/,IP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,RP=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,FP=/^\{.*\}$/,VP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,GP=/^<([^ >]+@[^ >]+)>/,WP=/^<([^ >]+:\/[^ >]+)>/,YP=/-([a-z])?/gi,UP=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,KP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,qP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,JP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ZP=/(\[|\])/g,_P=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,$P=/\t/g,eO=/(^ *\||\| *$)/g,tO=/^ *:-+: *$/,nO=/^ *:-+ *$/,rO=/^ *-+: *$/,iO="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",oO=new RegExp(`^([*_])\\1${iO}\\1\\1(?!\\1)`),aO=new RegExp(`^([*_])${iO}\\1(?!\\1|\\w)`),lO=new RegExp(`^==${iO}==`),sO=new RegExp(`^~~${iO}~~`),cO=/^\\([^0-9A-Za-z\s])/,uO=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,dO=/^\n+/,fO=/^([ \t]*)/,pO=/\\([^\\])/g,hO=/ *\n+$/,gO=/(?:^|\n)( *)$/,vO="(?:\\d+\\.)",mO="(?:[*+-])";function bO(e){return"( *)("+(1===e?vO:mO)+") +"}const AO=bO(1),yO=bO(2);function wO(e){return new RegExp("^"+(1===e?AO:yO))}const xO=wO(1),CO=wO(2);function PO(e){return new RegExp("^"+(1===e?AO:yO)+"[^\\n]*(?:\\n(?!\\1"+(1===e?vO:mO)+" )[^\\n]*)*(\\n|$)","gm")}const OO=PO(1),BO=PO(2);function DO(e){const t=1===e?vO:mO;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const kO=DO(1),zO=DO(2);function EO(e,t){const n=1===t,r=n?kO:zO,i=n?OO:BO,o=n?xO:CO;return{match(e,t,n){const i=gO.exec(n);return i&&(t.list||!t.inline&&!t.simple)?r.exec(e=i[1]+e):null},order:1,parse(e,t,r){const a=n?+e[2]:void 0,l=e[0].replace(AP,"\n").match(i);let s=!1;return{items:l.map(function(e,n){const i=o.exec(e)[0].length,a=new RegExp("^ {1,"+i+"}","gm"),c=e.replace(a,"").replace(o,""),u=n===l.length-1,d=-1!==c.indexOf("\n\n")||u&&s;s=d;const f=r.inline,p=r.list;let h;r.list=!0,d?(r.inline=!1,h=c.replace(hO,"\n\n")):(r.inline=!0,h=c.replace(hO,""));const g=t(h,r);return r.inline=f,r.list=p,g}),ordered:n,start:a}},render:(t,n,r)=>e(t.ordered?"ol":"ul",{key:r.key,start:t.type===$C?t.start:void 0},t.items.map(function(t,i){return e("li",{key:i},n(t,r))}))}}const HO=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),SO=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,TO=[yP,PP,OP,LP,jP,MP,QP,UP,OO,kO,BO,zO],LO=[...TO,/^[^\n]+(?: \n|\n{2,})/,NP,RP];function MO(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jO(e){return rO.test(e)?"right":tO.test(e)?"center":nO.test(e)?"left":null}function NO(e,t,n,r){const i=n.inTable;n.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((e,i)=>("|"===i.trim()?e.push(r?{type:oP}:{type:aP,text:i}):""!==i&&e.push.apply(e,t(i,n)),e),[]);n.inTable=i;let a=[[]];return o.forEach(function(e,t){e.type===oP?0!==t&&t!==o.length-1&&a.push([]):(e.type!==aP||null!=o[t+1]&&o[t+1].type!==oP||(e.text=e.text.trimEnd()),a[a.length-1].push(e))}),a}function XO(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(eO,"").split("|").map(jO):[],i=e[3]?function(e,t,n){return e.trim().split("\n").map(function(e){return NO(e,t,n,!0)})}(e[3],t,n):[],o=NO(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:o,type:iP}:{children:o,type:eP}}function QO(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function IO(e){return function(t,n){return n.inline?e.exec(t):null}}function RO(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function FO(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function VO(e){return function(t){return e.exec(t)}}function GO(e,t,n){if(t.inline||t.simple)return null;if(n&&!n.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!TO.some(t=>t.test(e))&&(r+=e+"\n",e.trim()));const i=r.trimEnd();return""==i?null:[r,i]}function WO(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function YO(e){return e.replace(pO,"$1")}function UO(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=i,o}function KO(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=i,o}function qO(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const JO=(e,t,n)=>({children:UO(t,e[1],n)});function ZO(){return{}}function _O(){return null}function $O(...e){return e.filter(Boolean).join(" ")}function eB(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],void 0!==r);)i.shift();return r||n}var tB=e=>{let{children:t="",options:n}=e,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,SC);return F.cloneElement(function(e="",t={}){function n(e,n,...r){const i=eB(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const n=eB(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:eB(t,`${e}.component`,e):e}(e,t.overrides),HC({},n,i,{className:$O(null==n?void 0:n.className,i.className)||void 0}),...r)}function r(e){e=e.replace(SP,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===_P.test(e));const i=c(s(r?e:`${e.trimEnd().replace(dO,"")}\n\n`,{inline:r}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;const o=t.wrapper||(r?"span":"div");let a;if(i.length>1||t.forceWrapper)a=i;else{if(1===i.length)return a=i[0],"string"==typeof a?n("span",{key:"outer"},a):a;a=null}return F.createElement(o,{key:"outer"},a)}function i(e,n){const i=n.match(mP);return i?i.reduce(function(n,i,o){const a=i.indexOf("=");if(-1!==a){const l=function(e){return-1!==e.indexOf("-")&&null===e.match(IP)&&(e=e.replace(YP,function(e,t){return t.toUpperCase()})),e}(i.slice(0,a)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(i.slice(a+1).trim()),c=hP[l]||l,u=n[c]=function(e,t,n,r){return"style"===t?n.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===t||"src"===t?r(n,e,t):(n.match(FP)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,l,s,t.sanitizer);"string"==typeof u&&(NP.test(u)||RP.test(u))&&(n[c]=F.cloneElement(r(u.trim()),{key:o}))}else"style"!==i&&(n[hP[i]||i]=!0);return n},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||WO,t.slugify=t.slugify||MO,t.namedCodesToUnicode=t.namedCodesToUnicode?HC({},gP,t.namedCodesToUnicode):gP,t.createElement=t.createElement||F.createElement;const o=[],a={},l={[TC]:{match:FO(yP),order:1,parse:(e,t,n)=>({children:t(e[0].replace(wP,""),n)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},[LC]:{match:VO(xP),order:1,parse:ZO,render:(e,t,r)=>n("br",{key:r.key})},[MC]:{match:FO(CP),order:1,parse:ZO,render:(e,t,r)=>n("hr",{key:r.key})},[jC]:{match:FO(OP),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>n("pre",{key:r.key},n("code",HC({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[NC]:{match:FO(PP),order:0,parse:e=>({attrs:i("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:jC})},[XC]:{match:RO(BP),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},[QC]:{match:FO(zP),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:_O},[IC]:{match:IO(EP),order:1,parse:e=>({target:`#${t.slugify(e[1],MO)}`,text:e[1]}),render:(e,r,i)=>n("a",{key:i.key,href:t.sanitizer(e.target,"a","href")},n("sup",{key:i.key},e.text))},[RC]:{match:IO(TP),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,r)=>n("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},[FC]:{match:FO(t.enforceAtxHeadings?MP:LP),order:1,parse:(e,n,r)=>({children:UO(n,e[2],r),id:t.slugify(e[2],MO),level:e[1].length}),render:(e,t,r)=>n(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},[VC]:{match:FO(jP),order:0,parse:(e,t,n)=>({children:UO(t,e[1],n),level:"="===e[2]?1:2,type:FC})},[GC]:{match:VO(NP),order:1,parse(e,t,n){const[,r]=e[3].match(fO),o=new RegExp(`^${r}`,"gm"),a=e[3].replace(o,""),l=(s=a,LO.some(e=>e.test(s))?qO:UO);var s;const c=e[1].toLowerCase(),u=-1!==vP.indexOf(c),d=(u?c:e[1]).trim(),f={attrs:i(d,e[2]),noInnerParse:u,tag:d};return n.inAnchor=n.inAnchor||"a"===c,u?f.text=e[3]:f.children=l(t,a,n),n.inAnchor=!1,f},render:(e,t,r)=>n(e.tag,HC({key:r.key},e.attrs),e.text||t(e.children,r))},[YC]:{match:VO(RP),order:1,parse(e){const t=e[1].trim();return{attrs:i(t,e[2]||""),tag:t}},render:(e,t,r)=>n(e.tag,HC({},e.attrs,{key:r.key}))},[WC]:{match:VO(QP),order:1,parse:()=>({}),render:_O},[UC]:{match:RO(SO),order:1,parse:e=>({alt:e[1],target:YO(e[2]),title:e[3]}),render:(e,r,i)=>n("img",{key:i.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})},[KC]:{match:IO(HO),order:3,parse:(e,t,n)=>({children:KO(t,e[1],n),target:YO(e[2]),title:e[3]}),render:(e,r,i)=>n("a",{key:i.key,href:t.sanitizer(e.target,"a","href"),title:e.title},r(e.children,i))},[qC]:{match:IO(WP),order:0,parse:e=>({children:[{text:e[1],type:aP}],target:e[1],type:KC})},[JC]:{match:(e,t)=>t.inAnchor?null:IO(VP)(e,t),order:0,parse:e=>({children:[{text:e[1],type:aP}],target:e[1],title:void 0,type:KC})},[ZC]:{match:IO(GP),order:0,parse(e){let t=e[1],n=e[1];return bP.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:aP}],target:n,type:KC}}},[$C]:EO(n,1),[fP]:EO(n,2),[_C]:{match:FO(DP),order:3,parse:ZO,render:()=>"\n"},[eP]:{match:GO,order:3,parse:JO,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},[tP]:{match:IO(KP),order:0,parse:e=>(a[e[1]]={target:e[2],title:e[4]},{}),render:_O},[nP]:{match:RO(qP),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,r,i)=>a[e.ref]?n("img",{key:i.key,alt:e.alt,src:t.sanitizer(a[e.ref].target,"img","src"),title:a[e.ref].title}):null},[rP]:{match:IO(JP),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:t(e[0].replace(ZP,"\\$1"),n),ref:e[2]}),render:(e,r,i)=>a[e.ref]?n("a",{key:i.key,href:t.sanitizer(a[e.ref].target,"a","href"),title:a[e.ref].title},r(e.children,i)):n("span",{key:i.key},r(e.fallbackChildren,i))},[iP]:{match:FO(UP),order:1,parse:XO,render(e,t,r){const i=e;return n("table",{key:r.key},n("thead",null,n("tr",null,i.header.map(function(e,o){return n("th",{key:o,style:QO(i,o)},t(e,r))}))),n("tbody",null,i.cells.map(function(e,o){return n("tr",{key:o},e.map(function(e,o){return n("td",{key:o,style:QO(i,o)},t(e,r))}))})))}},[aP]:{match:VO(uO),order:4,parse:e=>({text:e[0].replace(XP,(e,n)=>t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e)}),render:e=>e.text},[lP]:{match:RO(oO),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("strong",{key:r.key},t(e.children,r))},[sP]:{match:RO(aO),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("em",{key:r.key},t(e.children,r))},[cP]:{match:RO(cO),order:1,parse:e=>({text:e[1],type:aP})},[uP]:{match:RO(lO),order:3,parse:JO,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},[dP]:{match:RO(sO),order:3,parse:JO,render:(e,t,r)=>n("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete l[GC],delete l[YC]);const s=function(e){let t=Object.keys(e);function n(r,i){let o=[],a="";for(;r;){let l=0;for(;l<t.length;){const s=t[l],c=e[s],u=c.match(r,i,a);if(u){const e=u[0];r=r.substring(e.length);const t=c.parse(u,n,i);null==t.type&&(t.type=s),o.push(t),a=e;break}l++}}return o}return t.sort(function(t,n){let r=e[t].order,i=e[n].order;return r!==i?r-i:t<n?-1:1}),function(e,t){return n(function(e){return e.replace(kP,"\n").replace(HP,"").replace($P," ")}(e),t)}}(l),c=(u=function(e,t){return function(n,r,i){const o=e[n.type].render;return t?t(()=>o(n,r,i),n,r,i):o(n,r,i)}}(l,t.renderRule),function e(t,n={}){if(Array.isArray(t)){const r=n.key,i=[];let o=!1;for(let r=0;r<t.length;r++){n.key=r;const a=e(t[r],n),l="string"==typeof a;l&&o?i[i.length-1]+=a:null!==a&&i.push(a),o=l}return n.key=r,i}return u(t,e,n)});var u;const d=r(e);return o.length?n("div",null,d,n("footer",{key:"footer"},o.map(function(e){return n("div",{id:t.slugify(e.identifier,MO),key:e.identifier},e.identifier,c(s(e.footnote,{inline:!0})))}))):d}(t,n),r)},nB="MarkdownContainer-module_markdown__QNrrN";tt(".MarkdownContainer-module_markdown__QNrrN div{white-space:pre-wrap}",{insertAt:"top"});var rB=U(function(t){var n=t.children,r=t.options,i=t.className,o=t.forceBlock,a=void 0===o||o,l=Z(function(){return xe({overrides:xe({p:{component:function(t){var n=t.children,r=Ce(t,["children"]);return e("p",xe({},r,{children:n}))}},ul:{component:function(t){var n=t.children,r=Ce(t,["children"]);return e("ul",xe({},r,{children:n}))},props:{className:"list-disc list-inside"}},ol:{component:function(t){var n=t.children,r=Ce(t,["children"]);return e("ol",xe({},r,{children:n}))},props:{className:"list-decimal list-inside"}}},null==r?void 0:r.overrides),forceBlock:a,wrapper:function(t){var n=t.children;return a?e("div",xe({className:kr("flex flex-col gap-4",nB,i)},{children:n})):n}},r)},[r,i]);return n?e(tB,xe({options:l},{children:n})):null}),iB=U(function(n){var r,i,o=n.title,a=n.description,l=n.contentStyle,s=n.image,c=n.isPreview,u=De(oA(),2),d=u[0],f=u[1],p=l===jm.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e("div",xe({className:"flex flex-col h-full justify-center items-center gap-6 px-2",ref:f},{children:!!d&&t("div",xe({className:kr("flex flex-col items-center",{"gap-1":c},{"gap-2":!c})},{children:[(null==s?void 0:s.file_url)&&e("div",xe({className:kr("flex justify-center w-full",{"mb-4":c},{"mb-8":!c})},{children:e(mo,{width:null!==(r=null==s?void 0:s.width)&&void 0!==r?r:0,height:null!==(i=null==s?void 0:s.height)&&void 0!==i?i:0,src:{src:s.file_url},srcType:"image/webp",responsive:!0,containerWidth:d})})),e(Tr,xe({variant:c?nr.Title14Semi:nr.Title24Semi,className:p,align:"center"},{children:o})),e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:c?nr.Text7Regular:nr.Text14Regular,className:p,align:"center"}}}},className:c?"!gap-1":"!gap-4"},{children:a}))]}))}))}),oB=U(function(n){var r,i,o=n.title,a=n.description,l=n.image,s=n.contentStyle,c=n.isPreview,u=De(oA(),2),d=u[0],f=u[1],p=s===jm.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e("div",xe({ref:f,className:"flex flex-col gap-4 h-full"},{children:!!d&&t("div",xe({className:kr("flex flex-col items-center",{"gap-1":c},{"gap-2":!c})},{children:[(null==l?void 0:l.file_url)&&e("div",xe({className:kr("w-full flex justify-center items-center",{"mb-3":c},{"mb-6":!c})},{children:e(mo,{width:null!==(r=null==l?void 0:l.width)&&void 0!==r?r:0,height:null!==(i=null==l?void 0:l.height)&&void 0!==i?i:0,src:{src:l.file_url},srcType:"image/webp",responsive:!0,containerWidth:d})})),e(Tr,xe({variant:c?nr.Title14Semi:nr.Title24Semi,className:p},{children:o})),e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:c?nr.Text7Regular:nr.Text16Regular,className:p}}}},className:c?"!gap-1":"!gap-4"},{children:a}))]}))}))}),aB=function(n){var r=n.title,i=n.subTitle,o=n.description,a=n.isPreview,l="roundImage"===n.template;return t("div",xe({className:kr("flex flex-col",{"gap-0.5":a},{"gap-1":!a})},{children:[r&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:a?nr.Title14Semi:nr.Title24Semi,className:l?"mb-1":""}}}}},{children:r})),i&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:a?nr.Text8Regular:nr.Text16Semi,className:l?"mb-2":""}}}}},{children:i})),o&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:a?nr.Text7Regular:nr.Text15Regular,className:"!text-typography-typography-secondary"}}}}},{children:o}))]}))},lB=U(function(n){var r=n.options,i=n.title,o=n.description,a=n.isPreview,l=n.onChange,s=n.defaultValues,c=n.theme,u=n.template,d=void 0===u?"checkbox":u,f=De(G(new Set(s)),2),p=f[0],h=f[1];W(function(){h(new Set(s))},[s]);var g=Y(function(e){h(e),"all"!==e&&(null==l||l(Array.from(e)))},[l]),v=(null==c?void 0:c.template)===Xm.custom;return t("div",xe({className:kr("h-full flex flex-col",{"gap-2.5":a},{"gap-5":!a})},{children:[e(aB,{title:i,description:o,isPreview:a}),e(vA,xe({"aria-label":"MultiSelect",selectedKeys:p,onSelectionChange:g,selectionMode:"multiple",type:d,className:"!p-0",selectedIconProps:{className:a?"!h-3 !w-3":"!h-6 !w-6"},variant:null==c?void 0:c.template,onboardingTheme:c,isOnboardingPreview:a,isTransparent:!0},{children:r.map(function(t,n){var i,o;return e(zA,xe({textValue:t.id,"aria-label":t.label,divider:r.length-1!==n,className:a?"!px-0 !py-2":"!px-0 !py-4",image:null!==(i=t.image)&&void 0!==i?i:null},{children:e(Tr,xe({variant:a?nr.Text12Regular:nr.Text16Regular,style:v&&"all"!==p&&p.has(t.id)&&"checkbox"!==d?{color:null!==(o=null==c?void 0:c.customTextColor)&&void 0!==o?o:""}:{}},{children:t.label}))}),t.id)})}))]}))}),sB=U(function(n){var r=n.isPreview,i=n.minLabel,o=n.maxLabel;return t("div",xe({className:"w-full flex flex-row items-center justify-between gap-2 mt-3 px-0.5"},{children:[e(Tr,xe({variant:r?nr.Text12Regular:nr.Text16Semi},{children:i})),e(Tr,xe({variant:r?nr.Text12Regular:nr.Text16Semi},{children:o}))]}))}),cB=function(n){var r=n.isPreview,i=n.selectedOption,o=i&&"feedbackTitle"in i&&(null==i?void 0:i.feedbackTitle)&&"feedbackDescription"in i&&(null==i?void 0:i.feedbackDescription);return e("div",xe({className:"flex items-end mt-[auto]"},{children:t("div",xe({className:kr("invisible w-full flex flex-row bg-color-background-anti-flash-light rounded-[30px] p-5 mb-[22px]",{"!visible":o,"!p-3 !rounded-[15px] !mb-[12px]":r})},{children:[e(Tr,xe({className:r?"mr-2":"mr-4",variant:r?nr.Text15Semi:nr.Title24Semi},{children:"🏆"})),t("div",{children:[e(Tr,xe({variant:r?nr.Text12Regular:nr.Text15Semi},{children:o?null==i?void 0:i.feedbackTitle:""})),e(Tr,xe({className:"mt-0.5",variant:r?nr.Text7Regular:nr.Text13Regular150},{children:o?null==i?void 0:i.feedbackDescription:""}))]})]}))}))},uB=U(function(n){var r,i,o=n.options,a=n.title,l=n.subTitle,s=n.description,c=n.legalText,u=n.minLabel,d=n.maxLabel,f=n.isPreview,p=n.onChange,h=n.defaultValues,g=n.theme,v=n.template,m=void 0===v?"radio":v,b=n.isRoundCorners,A=void 0!==b&&b,y=n.image,w=n.horizontalImageAlignment,x=void 0===w?"center":w,C=De(G(new Set(h)),2),P=C[0],O=C[1];W(function(){O(new Set(h))},[h]);var B=Y(function(e){O(e),("all"===e||e.size)&&(null==p||p(Array.from(e)[0]))},[p]),D=o.find(function(e){return e.id===Array.from(P)[0]}),k="roundImage"===m,z="image"===m,E="emoji"===m,H="radio"===m,S="icon"===m;return t("div",xe({className:kr("h-full flex flex-col",{"gap-2.5":f&&!k},{"gap-5":!f&&!k})},{children:[y&&e("div",xe({className:kr("flex py-3 mb-2",{"justify-center":"center"===x,"justify-end":"right"===x,"justify-start":"left"===x,"!py-1 !mb-1":f})},{children:e(mo,{src:{src:y.file_url},srcType:"image/webp",responsive:!0,width:null!==(r=y.width)&&void 0!==r?r:0,height:null!==(i=y.height)&&void 0!==i?i:0,containerWidth:f?40:80})})),e(aB,{title:a,subTitle:l,description:s,isPreview:f,template:m}),t("div",xe({className:kr("flex flex-col h-full justify-center items-center",{"!h-[60%]":E,"!h-[auto]":k})},{children:[e(vA,xe({"aria-label":"SingleSelect",selectedKeys:P,onSelectionChange:B,selectionMode:"single",type:m,className:kr("!p-0",{"flex flex-wrap flex-row items-stretch":z||k,"h-full":H||S,"w-full flex flex-row gap-1":E,"mt-7 mb-2":k&&!A,"mt-7 mb-[-4px]":k&&A,"!mt-3 !mb-[-8px]":k&&f}),selectedIconProps:{className:f?"!h-3 !w-3":"!h-6 !w-6"},variant:null==g?void 0:g.template,onboardingTheme:g,isOnboardingPreview:f,isTransparent:!0,isRoundCorners:A},{children:o.map(function(t,n){var r;return e(zA,xe({textValue:t.id,"aria-label":t.label,divider:o.length-1!==n,className:f?"!px-0 !py-2":"!px-0 !py-4",image:null!==(r=t.image)&&void 0!==r?r:null},{children:"radio"===m?e(Tr,xe({variant:f?nr.Text12Regular:nr.Text16Regular},{children:t.label})):t.label}),t.id)})})),u&&d&&e(sB,{isPreview:f,minLabel:u,maxLabel:d})]})),E&&e(cB,{isPreview:f,selectedOption:D}),c&&e(rB,xe({options:{overrides:{p:{component:Tr,props:{variant:f?nr.Text7Regular:nr.Tabbar10Medium,className:"!text-typography-typography-secondary text-center"}}}}},{children:c}))]}))}),dB=function(n){var r=n.title,i=n.loadingItemDuration,o=void 0===i?1.5:i,a=n.answerScreenId,l=n.allScreens,s=n.selectedAnswers,c=n.isPreview,u=n.listItems,d=n.onProgressEnd,f=n.t,p=K(null);W(function(){if(null==p?void 0:p.current){var e=p.current.querySelectorAll(".list--flow-items");(null==e?void 0:e.length)&&(null==e||e.forEach(function(e,t){setTimeout(function(){e.classList.replace("opacity-30","opacity-1")},1e3*o*t)}))}},[p]);var h=Z(function(){if(Array.isArray(u)&&u.length>0)return u.map(function(e){return[e]});if(c)return new Array(5).fill(0).map(function(e,t){return[{id:t+1,label:"{{selected_screen_".concat(t+1,"}}")}]});var e=[];return a&&l&&s?(a.forEach(function(t){var n=l[t],r=s[t];if(n&&r&&"options"in n){var i=r.map(function(e){var t=n.options.find(function(t){return t.filtrationAnswerId===e||t.id===e});return t?{id:t.id,label:t.label}:null}).filter(function(e){return null!==e});i.length>0&&e.push(i)}}),e):e},[s,l,a,c,u]),g=Z(function(){return o*h.length},[h.length]);return e("div",xe({className:"flex flex-col h-full items-center",ref:p},{children:t("div",{children:[r&&e(Tr,xe({variant:c?nr.Title12Semi:nr.Title28Semi,className:kr("text-center")},{children:r})),e(Oy,{className:kr("text-center",{"mt-4":c,"my-10":!c}),t:f,size:c?Om.M:Om.L,progress:100,animationSeconds:g,isWithAnimation:!0,isShowLegend:!1,isZeroTransparent:!0,isWithOverlap:!0,isPrimaryColor:!0,isProgressWithAnimation:!0,onProgressEnd:d,content:{isPercentage:!0},ranges:[{min:0,max:50},{min:51,max:100}]}),e(vA,xe({"aria-label":"MultiSelect",className:kr({"!px-4":c,"!px-12":!c}),selectionMode:"none",enableSelection:!1,isTransparent:!0},{children:h.map(function(n){var r=n.map(function(e){return e.id}).join(","),i=n.map(function(e){return e.label}).join(", ");return e(zA,xe({className:"!px-0 !py-1"},{children:t("div",xe({className:"list--flow-items transition-opacity duration-[400ms] flex items-center ".concat(c?"gap-1":"gap-2"," opacity-30")},{children:[e(Bo,{size:c?10:20,className:"text-[#02B286] flex-shrink-0"}),e(Tr,xe({variant:c?nr.Text8Regular:nr.Text16Regular},{children:i}))]}))}),r)})}))]})}))},fB=function(n){var r,i=n.label,o=n.duration,a=n.isPreview,l=n.isActive,s=n.isCompleted,c=n.isDisabled,u=n.isPaused,d=n.handleProgressEnd,f=n.theme,p=(null==f?void 0:f.template)===Xm.custom,h=De(G(0),2),g=h[0],v=h[1],m=K(null),b=K(!1),A=K(!1),y=K(0),w=K(0),x=function(e){if(!A.current){var t=e-y.current+w.current,n=Math.min(t/(1e3*o),1),r=function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}(n);v(r),n<1?m.current=requestAnimationFrame(x):b.current||(b.current=!0,d())}};W(function(){if(A.current=u,l&&o)return u?(m.current&&(cancelAnimationFrame(m.current),m.current=null),w.current+=performance.now()-y.current):(y.current=performance.now(),m.current=requestAnimationFrame(x)),function(){m.current&&(cancelAnimationFrame(m.current),m.current=null)}},[u]),W(function(){return l&&o?(u||(y.current=performance.now(),m.current=requestAnimationFrame(x)),function(){m.current&&(cancelAnimationFrame(m.current),m.current=null)}):(v(0),b.current=!1,w.current=0,A.current=!1,void(m.current&&(cancelAnimationFrame(m.current),m.current=null)))},[l]);var C=Math.round(100*g);return t("div",xe({className:kr("py-4",{"border-b border-borders-divider":s,"!py-1":c,"!py-2":a})},{children:[t("div",xe({className:"w-full flex items-center justify-between gap-4"},{children:[e(Tr,xe({variant:a?nr.Text8Regular:nr.Text16Regular},{children:i})),t("div",xe({className:"min-w-[40px] flex items-center justify-end"},{children:[l&&t(Tr,xe({variant:a?nr.Text8Regular:nr.Text15Semi},{children:[C,"%"]})),s&&e(Bo,{size:a?10:24,className:"text-badges-success-main flex-shrink-0"}),c&&e(Tr,xe({className:"text-typography-typography-secondary",variant:a?nr.Text8Regular:nr.Text15Semi},{children:"0%"}))]}))]})),l&&e(Ky,{className:kr("py-1 mt-3",{"!mt-1 !py-0.5":a}),variant:p?Xm.custom:Xm.blue,progress:g,style:p?{"--progress-background":null!==(r=f.customColor)&&void 0!==r?r:""}:{}})]}))},pB={},hB={},gB={},vB={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}}(vB);var mB=/^\s+|\s+$/g,bB=/^[-+]0x[0-9a-f]+$/i,AB=/^0b[01]+$/i,yB=/^0o[0-7]+$/i,wB=parseInt,xB="object"==typeof xr&&xr&&xr.Object===Object&&xr,CB="object"==typeof self&&self&&self.Object===Object&&self,PB=xB||CB||Function("return this")(),OB=Object.prototype.toString,BB=Math.max,DB=Math.min,kB=function(){return PB.Date.now()};function zB(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function EB(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==OB.call(e)}(e))return NaN;if(zB(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zB(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(mB,"");var n=AB.test(e);return n||yB.test(e)?wB(e.slice(2),n?2:8):bB.test(e)?NaN:+e}var HB=function(e,t,n){var r,i,o,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=o}function g(){var e=kB();if(h(e))return v(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?DB(n,o-(e-c)):n}(e))}function v(e){return l=void 0,f&&r?p(e):(r=i=void 0,a)}function m(){var e=kB(),n=h(e);if(r=arguments,i=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(g,t),u?p(e):a}(s);if(d)return l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=EB(t)||0,zB(n)&&(u=!!n.leading,o=(d="maxWait"in n)?BB(EB(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=i=l=void 0},m.flush=function(){return void 0===l?a:v(kB())},m},SB={exports:{}};
|
|
25
25
|
/*!
|
|
26
26
|
Copyright (c) 2018 Jed Watson.
|
|
27
27
|
Licensed under the MIT License (MIT), see
|