@mindly/ui-components 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
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?jx.exports=function(){if(bx)return Px;bx=1;var e=h.default,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 s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return Px.Fragment=n,Px.jsx=a,Px.jsxs=a,Px}():jx.exports=(Ox||(Ox=1,"production"!==process.env.NODE_ENV&&function(){var e,t=h.default,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"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,m=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(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=m.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 y(e){return e.displayName||"Context"}function b(e){if(null==e)return null;if("number"==typeof e.tag&&x("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 l:return y(e)+".Consumer";case s:return y(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 p:var t=e.displayName||null;return null!==t?t:b(e.type)||"Memo";case f:var n=e,h=n._payload,g=n._init;try{return b(g(h))}catch{return null}}return null}e=Symbol.for("react.module.reference");var A,w,C,j,P,O,B,D=Object.assign,k=0;function E(){}E.__reactDisabledLog=!0;var z,S=m.ReactCurrentDispatcher;function T(e,t,n){if(void 0===z)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);z=r&&r[1]||""}return"\n"+z+e}var H,L=!1,M="function"==typeof WeakMap?WeakMap:Map;function N(e,t){if(!e||L)return"";var n,r=H.get(e);if(void 0!==r)return r;L=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=S.current,S.current=null,function(){if(0===k){A=console.log,w=console.info,C=console.warn,j=console.error,P=console.group,O=console.groupCollapsed,B=console.groupEnd;var e={configurable:!0,enumerable:!0,value:E,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 s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&H.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{L=!1,S.current=i,function(){if(0===--k){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:A}),info:D({},e,{value:w}),warn:D({},e,{value:C}),error:D({},e,{value:j}),group:D({},e,{value:P}),groupCollapsed:D({},e,{value:O}),groupEnd:D({},e,{value:B})})}k<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var p=e?e.displayName||e.name:"",f=p?T(p):"";return"function"==typeof e&&H.set(e,f),f}function I(e,t,n){if(null==e)return"";if("function"==typeof e)return N(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return T(e);switch(e){case u:return T("Suspense");case d:return T("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e){return N(e,!1)}(e.render);case p:return I(e.type,t,n);case f:var r=e,i=r._payload,o=r._init;try{return I(o(i),t,n)}catch{}}return""}H=new M;var X=Object.prototype.hasOwnProperty,Q={},R=m.ReactDebugCurrentFrame;function F(e){if(e){var t=e._owner,n=I(e.type,e._source,t?t.type:null);R.setExtraStackFrame(n)}else R.setExtraStackFrame(null)}var V=Array.isArray;function G(e){return V(e)}function W(e){return""+e}function Y(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return x("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=m.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r,i,o){var a,s={},l=null,c=null;for(a in void 0!==r&&(Y(r),l=""+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),l=""+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=b(J.current.type);q[n]||(x('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',b(J.current.type),e.ref),q[n]=!0)}}(t,o)),t)X.call(t,a)&&!Z.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){U||(U=!0,x("%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})}(s,d),c&&function(e,t){var n=function(){K||(K=!0,x("%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})}(s,d)}return function(e,t,r,i,o,a,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,o,i,J.current,s)}q={};var $,ee=m.ReactCurrentOwner,te=m.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=I(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=b(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 "+b(e._owner.type)+"."),ne(e),x('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 se(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=v&&e[v]||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 le(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!==p)return;t=n.propTypes}if(t){var r=b(n);!function(e,t,n,r,i){var o=Function.call.bind(X);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=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 l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(F(i),x("%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 s),F(null)),s instanceof Error&&!(s.message in Q)&&(Q[s.message]=!0,F(i),x("Failed %s type: %s",n,s.message),F(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||$||($=!0,x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ce(t,r,h,v,m,y){var A=function(t){return!("string"!=typeof t&&"function"!=typeof t&&t!==i&&t!==a&&t!==o&&t!==u&&t!==d&&t!==g&&("object"!=typeof t||null===t||t.$$typeof!==f&&t.$$typeof!==p&&t.$$typeof!==s&&t.$$typeof!==l&&t.$$typeof!==c&&t.$$typeof!==e&&void 0===t.getModuleId))}(t);if(!A){var w="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(w+=" 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,j=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);w+=j||ie(),null===t?C="null":G(t)?C="array":void 0!==t&&t.$$typeof===n?(C="<"+(b(t.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,w)}var P=_(t,r,h,m,y);if(null==P)return P;if(A){var O=r.children;if(void 0!==O)if(v)if(G(O)){for(var B=0;B<O.length;B++)se(O[B],t);Object.freeze&&Object.freeze(O)}else x("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 se(O,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),x("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),x("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}(P):le(P),P}var ue=function(e,t,n){return ce(e,t,n,!1)},de=function(e,t,n){return ce(e,t,n,!0)};Bx.Fragment=i,Bx.jsx=ue,Bx.jsxs=de}()),Bx);var Dx=jx.exports;const kx=216,Ex=36,zx="off",Sx=r.createContext(null);function Tx(e){const t=r.useContext(Sx);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Tx),t}return t}Sx.displayName="PickerDataContext";const Hx=r.createContext(null);function Lx(e){const t=r.useContext(Hx);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Lx),t}return t}function Mx(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}`)}}Hx.displayName="PickerActionsContext";const Nx=r.createContext(null);function Ix(e){const t=r.useContext(Nx);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker.Column /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ix),t}return t}function Xx(e){return"function"==typeof e}Nx.displayName="PickerColumnDataContext";const Qx=Object.assign(function(e){const{style:t,children:n,value:i,onChange:o,height:a=kx,itemHeight:s=Ex,wheelMode:l=zx,...c}=e,u=r.useMemo(()=>({height:s,marginTop:-s/2,position:"absolute",top:"50%",left:0,width:"100%",pointerEvents:"none"}),[s]),d=r.useMemo(()=>({height:`${a}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)"}),[a]),[p,f]=r.useReducer(Mx,{}),h=r.useMemo(()=>({height:a,itemHeight:s,wheelMode:l,value:i,optionGroups:p}),[a,s,i,p,l]),g=r.useCallback((e,t)=>{if(i[e]===t)return!1;const n={...i,[e]:t};return o(n,e),!0},[o,i]),v=r.useCallback((e,t)=>(f({type:"REGISTER_OPTION",key:e,option:t}),()=>f({type:"UNREGISTER_OPTION",key:e,option:t})),[]),m=r.useMemo(()=>({registerOption:v,change:g}),[v,g]);return Dx.jsxs("div",{style:{...d,...t},...c,children:[Dx.jsx(Hx.Provider,{value:m,children:Dx.jsx(Sx.Provider,{value:h,children:n})}),Dx.jsxs("div",{style:u,children:[Dx.jsx("div",{style:{position:"absolute",top:0,bottom:"auto",left:0,right:"auto",width:"100%",height:"1px",background:"#d9d9d9",transform:"scaleY(0.5)"}}),Dx.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,...i}){const{height:o,itemHeight:a,wheelMode:s,value:l,optionGroups:c}=Tx("Picker.Column"),u=r.useMemo(()=>l[n],[l,n]),d=r.useMemo(()=>c[n]||[],[n,c]),p=r.useMemo(()=>{let e=d.findIndex(e=>e.value===u);return e<0&&(e=0),e},[d,u]),f=r.useMemo(()=>o/2-a*d.length+a/2,[o,a,d]),h=r.useMemo(()=>o/2-a/2,[o,a]),[g,v]=r.useState(0);r.useEffect(()=>{v(o/2-a/2-p*a)},[o,a,p]);const m=Lx("Picker.Column"),x=r.useRef(g);x.current=g;const y=r.useCallback(()=>{let e=0;const t=x.current;e=t>=h?0:t<=f?d.length-1:-Math.round((t-h)/a),m.change(n,d[e].value)||v(o/2-a/2-e*a)},[m,o,a,n,h,f,d]),[b,A]=r.useState(0),[w,C]=r.useState(!1),[j,P]=r.useState(0),O=r.useCallback(e=>{e<f?e=f-Math.pow(f-e,.8):e>h&&(e=h+Math.pow(e-h,.8)),v(e)},[h,f]),B=r.useCallback(e=>{P(e.targetTouches[0].pageY),A(g)},[g]),D=r.useCallback(e=>{e.cancelable&&e.preventDefault(),w||C(!0);const t=b+e.targetTouches[0].pageY-j;O(t)},[w,b,j,O]),k=r.useCallback(()=>{w&&(C(!1),P(0),A(0),y())},[y,w]),E=r.useCallback(()=>{w&&(C(!1),P(0),v(b),A(0))},[w,b]),z=r.useRef(null),S=r.useCallback(e=>{if(0===e.deltaY)return;let t=.1*e.deltaY;Math.abs(t)<a&&(t=a*Math.sign(t)),"normal"===s&&(t=-t);O(g+t)},[a,g,O,s]),T=r.useCallback(()=>{y()},[y]),H=r.useCallback(e=>{"off"!==s&&(e.cancelable&&e.preventDefault(),S(e),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{T()},200))},[T,S,z,s]),L=r.useRef(null);r.useEffect(()=>{const e=L.current;return e&&(e.addEventListener("touchmove",D,{passive:!1}),e.addEventListener("wheel",H,{passive:!1})),()=>{e&&(e.removeEventListener("touchmove",D),e.removeEventListener("wheel",H))}},[D,H]);const M=r.useMemo(()=>({flex:"1 1 0%",maxHeight:"100%",transitionProperty:"transform",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",transitionDuration:w?"0ms":"300ms",transform:`translate3d(0, ${g}px, 0)`}),[g,w]),N=r.useMemo(()=>({key:n}),[n]);return Dx.jsx("div",{style:{...M,...e},ref:L,onTouchStart:B,onTouchEnd:k,onTouchCancel:E,...i,children:Dx.jsx(Nx.Provider,{value:N,children:t})})},Item:function({style:e,children:t,value:n,...i}){const o=r.useRef(null),{itemHeight:a,value:s}=Tx("Picker.Item"),l=Lx("Picker.Item"),{key:c}=Ix("Picker.Item");r.useEffect(()=>l.registerOption(c,{value:n,element:o}),[c,l,n]);const u=r.useMemo(()=>({height:`${a}px`,display:"flex",justifyContent:"center",alignItems:"center"}),[a]),d=r.useCallback(()=>{l.change(c,n)},[l,c,n]);return Dx.jsx("div",{style:{...u,...e},ref:o,onClick:d,...i,children:Xx(t)?t({selected:s[c]===n}):t})}});var Rx={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}},Fx=function(e,t){return Rx[e]?Rx[e][t]:Rx.n[t]},Vx=function(t){var n=t.height,i=t.selections,o=t.defaults,a=void 0===o?{}:o,s=t.onChange,l=t.className,c=t.compareBy,u=void 0===c?"label":c,d=b(r.useState(a),2),p=d[0],f=d[1];return e.jsx(Qx,g({className:l,value:p,height:null!=n?n:216,onChange:function(e){var t={};Object.keys(e).forEach(function(n){var r=i[n].find(function(t){return t[u]===e[n]});r&&(t[n]=g({},r))}),f(e),s(t)}},{children:Object.keys(i).map(function(t){return e.jsx(Qx.Column,g({name:t},{children:i[t].map(function(n,r){return e.jsx(Qx.Item,g({value:n[u],className:pn({selected:n[u]===p[t]})},{children:function(){return e.jsx("div",g({style:{color:Fx(Math.abs(r-Object.values(i[t]).findIndex(function(e){return e[u]===p[t]})),"color"),fontSize:Fx(Math.abs(r-Object.values(i[t]).findIndex(function(e){return e[u]===p[t]})),"fontSize"),transition:"transform 200ms",cursor:"pointer"}},{children:n.label}))}}),t+n[u])})}),t)})}))},Gx=Cr({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 Wx(t){var n,r=t.state,i=v(t,["state"]),o=h.default.useRef(null),a=sp(i,r,o).tabPanelProps;return e.jsx("div",g({},a,{ref:o},{children:null===(n=r.selectedItem)||void 0===n?void 0:n.props.children}))}Wx.displayName="Mindly.TabPanel";var Yx=Cr({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"}]}),Ux=Yx(),Kx=Ux.tab,qx=Ux.tabText;function Jx(t){var n=t.item,i=t.state,o=n.key,a=n.rendered,s=n.props,l=h.default.useRef(null),c=function(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=e,{selectionManager:a,selectedKey:s}=t,l=r===s,c=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=Zd({selectionManager:a,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=ap(t,r,"tab"),f=ap(t,r,"tabpanel"),{tabIndex:h}=u,g=t.collection.getItem(r),v=lc(null==g?void 0:g.props,{labelable:!0});delete v.id;let m=Oc(null==g?void 0:g.props),{focusableProps:x}=_u({isDisabled:c},n);return{tabProps:tc(v,x,m,u,{id:p,"aria-selected":l,"aria-disabled":c||void 0,"aria-controls":l?f:void 0,tabIndex:c?void 0:h,role:"tab"}),isSelected:l,isDisabled:c,isPressed:d}}({key:o},i,l),u=c.tabProps,d=c.isSelected,p=c.isPressed,f=s.onClick,v=s.className,m=s.textTransform,x=void 0===m?"capitalize":m,y=r.useMemo(function(){return Kx({isPressed:p,isSelected:d,className:v})},[p,d,v]),b=r.useMemo(function(){return qx({textTransform:x})},[x]),A=up(function(e){(null==u?void 0:u.onClick)&&u.onClick(e),f&&f()});return e.jsx("button",g({},u,{onClick:A,ref:l,className:y},{children:e.jsx(mn,g({align:"center",variant:exports.TypographyVariantsEnum.Text14Semi,opacity:d?100:65,className:b},{children:a}))}))}var Zx=rl,_x=Yx(),$x=_x.tabList,ey=_x.tabs;function ty(t){var n,i=Pl(t),o=h.default.useRef(null),a=function(e,t,n){let{orientation:i="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:l}=t,{direction:c}=bd(),u=r.useMemo(()=>new lp(a,c,i,l),[a,l,i,c]),{collectionProps:d}=Jd({ref:n,selectionManager:s,keyboardDelegate:u,selectOnFocus:"automatic"===o,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),p=Gl();return op.set(t,p),{tabListProps:{...tc(d,Sc({...e,id:p})),role:"tablist","aria-orientation":i,tabIndex:void 0}}}(t,i,o).tabListProps,s=b(r.useState(function(){return{width:0,transform:"translateX(0)"}}),2)[1];r.useEffect(function(){var e,t=null===(e=o.current)||void 0===e?void 0:e.querySelector('[role="tab"][aria-selected="true"]');t&&s({width:t.offsetWidth,transform:"translateX(".concat(t.offsetLeft,"px)")})},[i.selectedKey]);var l=function(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,o=r.useRef({isFocused:!1,isFocusVisible:t||Gu()}),[a,s]=r.useState(!1),[l,c]=r.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=r.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=r.useCallback(e=>{o.current.isFocused=e,s(e),u()},[u]);Uu(e=>{o.current.isFocusVisible=e,u()},[],{isTextInput:n});let{focusProps:p}=qu({isDisabled:i,onFocusChange:d}),{focusWithinProps:f}=$u({isDisabled:!i,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:i?f:p}}({within:!0}).focusProps;return e.jsxs("div",g({className:pn(ey({orientation:t.orientation}),t.className)},{children:[e.jsx("div",g({className:$x()},{children:e.jsx("div",g({},tc(a,l),{className:"flex",ref:o},{children:A([],b(i.collection),!1).map(function(t){return e.jsx(Jx,{item:t,state:i},t.key)})}))})),e.jsx(Wx,{state:i},null===(n=i.selectedItem)||void 0===n?void 0:n.key)]}))}ty.displayName="Mindly.Tabs";var ny=Cr({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:exports.TypographyVariantsEnum.Text14Semi,titleVariant:exports.TypographyVariantsEnum.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-background-anti-flash-light",iconVariant:exports.TypographyVariantsEnum.Title24Semi,titleVariant:exports.TypographyVariantsEnum.Text15Semi},badge:{root:"gap-1",iconVariant:exports.TypographyVariantsEnum.Badge12Semi,titleVariant:exports.TypographyVariantsEnum.Badge12Semi}}}}),ry=function(t){var n=t.t,r=t.variant,i=void 0===r?"default":r,o=t.percent,a=t.className,s=t.onOpenArticle,l=ny({variant:i}),c=l.iconVariant,u=l.titleVariant,d=l.root;return"badge"===i?e.jsxs(bo,g({className:"whitespace-nowrap",variant:"success",size:"S"},{children:["🏆 ",null==n?void 0:n("therapist_list_item.super_specialist.title")]})):e.jsxs("div",g({className:pn(d(),a)},{children:[e.jsx(mn,g({variant:c()},{children:"🏆"})),e.jsxs("div",g({className:pn({"gap-0.5":"full"===i})},{children:[e.jsx(mn,g({variant:u()},{children:null==n?void 0:n("therapist_list_item.super_specialist.title")})),"full"===i&&e.jsxs(e.Fragment,{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text13Regular150},{children:null==n?void 0:n("therapist_list_item.super_specialist.description",{count:o})})),e.jsx(Or,g({fill:"outline",size:"small",className:"!mt-3",onClick:s},{children:null==n?void 0:n("therapist_list_item.super_specialist.button")}))]})]}))]}))},iy=h.default.memo(function(t){var n=t.className,i=t.percentMatch,o=t.children,a=r.useMemo(function(){return i>=80?"--color-info-green":"--color-info-orange"},[i]),s=r.useMemo(function(){return i>=80?"bg-badges-success-main":"bg-badges-attention-main"},[i]);return e.jsxs("div",g({className:pn("relative inline-flex justify-center items-center rounded-full p-[4px]",n),style:{background:"conic-gradient(rgba(var(".concat(a,")) ").concat(i,"%, #ffffff ").concat(i,"% 100%)")}},{children:[i>0&&e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Badge12Semi,className:pn("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",s)},{children:[i,"%"]})),e.jsx("div",g({className:"relative z-10 bg-color-white rounded-full"},{children:o}))]}))}),oy=h.default.memo(function(t){var n=t.className,r=t.title,i=t.children;return e.jsxs("div",g({className:pn("flex items-start gap-2 relative py-4 w-full border-color-black/10 border-b last:border-none",n)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,className:"text-typography-typography-tertiary w-[35%]"},{children:r})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,className:"w-[65%]"},{children:i}))]}))}),ay=h.default.memo(function(t){var n=t.children,r=t.className,i=v(t,["children","className"]);return e.jsx("button",g({className:pn("flex items-center gap-1 underline",r)},i,{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Semi},{children:n}))}))}),sy=Cr({slots:{textVariant:"",dot:"",icon:"-translate-y-0.5"},variants:{size:{default:{textVariant:exports.TypographyVariantsEnum.Title18Semi,icon:"w-6 h-6",dot:"w-5 h-5"},small:{textVariant:exports.TypographyVariantsEnum.Text14Regular,icon:"w-4 h-4",dot:"w-2 h-2"},large:{textVariant:exports.TypographyVariantsEnum.Title28Semi,icon:"w-6 h-6",dot:"w-5 h-5"}}}}),ly=function(t){var n=t.className,r=t.rating,i=t.reviews,o=t.t,a=t.size,s=void 0===a?"default":a,l=t.endAdornment,c=t.onClick,u=sy({size:s}),d=u.textVariant,p=u.icon,f=u.dot,h=d();return e.jsxs("div",g({className:pn("flex items-center gap-1",{"cursor-pointer":!!c},n),onClick:c},{children:[e.jsx(mn,g({variant:h},{children:e.jsxs("div",g({className:"flex items-center"},{children:[e.jsx(ui,{className:p()})," ",Number.isInteger(r)?r.toFixed(1):Mh(r)]}))})),e.jsx(Mi,{className:f()}),e.jsx(mn,g({variant:h},{children:null==o?void 0:o("therapist_list_item.number_of_reviews",{count:i})})),l]}))},cy=Cr({slots:{root:"border-b"},variants:{variant:{default:{root:"border-borders-divider"}}}}),uy=function(t){var n=t.className,r=t.variant,i=cy({variant:void 0===r?"default":r}).root;return e.jsx("div",{className:pn(i(),n)})},dy=function(t){var n=t.t,r=t.className;return e.jsxs("div",g({className:pn("flex flex-col gap-2 items-center",r)},{children:[e.jsx(Fi,{}),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi},{children:null==n?void 0:n("empty_list.title")}))]}))},py=Cr({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:exports.TypographyVariantsEnum.Text14Semi,titleVariant:exports.TypographyVariantsEnum.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-info-light-blue",iconVariant:exports.TypographyVariantsEnum.Title24Semi,titleVariant:exports.TypographyVariantsEnum.Text15Semi},badge:{root:"gap-1",iconVariant:exports.TypographyVariantsEnum.Badge12Semi,titleVariant:exports.TypographyVariantsEnum.Badge12Semi}}}}),fy=function(t){var n=t.variant,r=void 0===n?"badge":n,i=t.className,o=t.t,a=t.onOpenArticle,s=py({variant:r}),l=s.iconVariant,c=s.titleVariant,u=s.root;return"badge"===r?e.jsx(bo,g({className:pn("whitespace-nowrap",i),variant:"info",type:"default",size:"S"},{children:e.jsx("div",g({className:"text-badges-info-secondary"},{children:null==o?void 0:o("therapist_list_item.badge_new_speclialist")}))})):e.jsxs("div",g({className:pn(u(),i)},{children:[e.jsx(mn,g({variant:l()},{children:"👋"})),e.jsxs("div",g({className:pn({"gap-0.5":"full"===r})},{children:[e.jsx(mn,g({variant:c()},{children:null==o?void 0:o("therapist_list_item.badge_new_speclialist")})),"full"===r&&e.jsxs(e.Fragment,{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text13Regular150},{children:null==o?void 0:o("therapist_list_item.text_new_speclialist")})),e.jsx(Or,g({fill:"outline",size:"small",className:"!mt-3",onClick:a},{children:null==o?void 0:o("therapist_list_item.super_specialist.button")}))]})]}))]}))},hy="SolidInput-module_ionItem__YcaUP",gy="SolidInput-module_label__Ab6yt",vy="SolidInput-module_input__vo6I4";K(".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 my=r.forwardRef(function(t,i){var o=t.placeholder,a=t.value,s=t.name,l=t.type,c=void 0===l?"text":l,u=t.itemClassName,d=t.inputClassName,p=t.labelClassName,f=t.onChange,h=t.onKeyDown,v=t.errorText,m=t.isInvalid,x=b(r.useState(c),2),y=x[0],A=x[1];return e.jsxs(n.IonItem,g({className:pn(hy,{"ion-invalid":m||!!v},u),fill:"solid",lines:"none"},{children:[e.jsx(n.IonLabel,g({position:"floating",className:pn(gy,p)},{children:o})),e.jsx(n.IonInput,{type:y,name:s,className:pn(vy,d),placeholder:o,onIonChange:f,value:a,onKeyDown:h,ref:i}),v&&e.jsx(n.IonNote,g({slot:"error"},{children:v})),"password"===c&&e.jsx("span",g({slot:"end",onClick:function(){A(function(e){return"password"===e?"text":"password"})},className:"cursor-pointer text-typography-typography-primary/50 [&_path]:fill-[currentColor]"},{children:"password"===y?e.jsx(fi,{fill:"currentColor"}):e.jsx(hi,{fill:"currentColor"})}))]}))});my.displayName="SolidInput";var xy=Cr({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)]"}}}}),yy="CountryOfOriginModal-module_ionListItem__-Qb7F",by="CountryOfOriginModal-module_countryOfOriginContent__nQqkG";K(".CountryOfOriginModal-module_ionListItem__-Qb7F::part(native){padding:0}.CountryOfOriginModal-module_countryOfOriginContent__nQqkG::part(content){--width:100%;--height:100%}",{insertAt:"top"});var Ay=function(t){var i=t.onSearchChange,o=t.onItemClick,a=t.searchValue,s=t.countries,l=t.searchPlaceholder,c=t.t,u=v(t,["onSearchChange","onItemClick","searchValue","countries","searchPlaceholder","t"]),d=r.useRef(null),p=r.useCallback(function(){var e;null===(e=d.current)||void 0===e||e.dismiss()},[]);return e.jsxs(n.IonModal,g({},u,{ref:d,className:by},{children:[e.jsx(Oo,{children:e.jsx(px,{className:"pt-1.5 pb-3",onCancelClick:p,onIonChange:i,value:a,placeholder:l,t:c})}),e.jsx(Qr,{children:e.jsx(n.IonList,g({lines:"none",mode:"ios"},{children:null==s?void 0:s.map(function(t,r){return e.jsx(n.IonItem,g({onClick:function(){o&&o(t)},className:pn("h-[46px] cursor-pointer",yy)},{children:e.jsx(mn,g({className:"m-0"},{children:t}))}),"".concat(t,"_").concat(r))})}))})]}))},wy="ChangeLanguageModal-module_changeLanguageModal__C9qGV";K(".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 Cy={fullScreen:"CardModal-module_fullScreen__AWPlQ",toolbar:"CardModal-module_toolbar__cm7wd"};K(".CardModal-module_fullScreen__AWPlQ{--height:100vh;--width:100vw}.CardModal-module_toolbar__cm7wd{--padding-top:0}",{insertAt:"top"});var jy=h.default.forwardRef(function(t,r){var i,o=t.isOpen,a=t.presentingElement,s=t.onDidDismiss,l=t.children,c=t.backButton,u=t.renderHeader,d=t.canDismiss,p=void 0===d||d,f=t.isShowHandle,v=void 0===f?n.isPlatform("ios")&&!n.isPlatform("desktop"):f,m=t.isShowCloseButton,x=void 0===m||m,y=t.mode,b=t.title,A=t.subtitle,w=t.leftContent,C=t.onDidPresent,j=t.onCloseClick,P=cp(r),O=h.default.useCallback(function(){var e;null===(e=P.current)||void 0===e||e.dismiss(),null==j||j()},[P.current]),B=up(function(){document.body.style.backgroundColor="",null==s||s()}),D=up(function(){document.body.style.backgroundColor=""});return e.jsxs(n.IonModal,g({ref:P,mode:y,isOpen:o,canDismiss:p,presentingElement:a,onDidDismiss:B,onWillDismiss:D,className:pn((i={},i[Cy.fullScreen]=!n.isPlatform("hybrid"),i)),onDidPresent:C},{children:[u?u({backButton:c,onClose:O}):e.jsxs(Oo,g({className:pn("relative",Cy.header)},{children:[v&&e.jsx("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]"}),e.jsxs("div",g({className:pn("relative grid grid-cols-5 col-span-1",{"pt-[17.5px]":v,"pt-[7.5px]":!v})},{children:[e.jsx("div",g({slot:"start",className:pn({"order-first justify-self-start flex items-center":!c,"order-last justify-self-end flex items-center":c})},{children:w})),e.jsxs("div",g({className:"flex flex-col items-center self-center justify-center order-2 col-span-3"},{children:[b&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Semi,align:"center"},{children:b})),A&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text13Regular,align:"center",opacity:50},{children:A}))]})),e.jsx("div",g({className:pn("col-span-1",{"order-first justify-self-start flex items-center":c,"order-last justify-self-end flex items-center":!c})},{children:x&&e.jsx(Em,{className:"self-center",onClick:O,icon:c?e.jsx(si,{className:"!text-typography-typography-primary"}):e.jsx(ai,{className:"!text-typography-typography-primary"})})}))]}))]})),l]}))});jy.displayName="CardModal";var Py=Cr({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 Oy=f.memo(function(t){var n=t.isSelected,r=t.isDisabled,i=t.time,o=t.className,a=t.onSelectionChange,s=Py({isSelected:n,isDisabled:r}).listItem;return e.jsx("button",g({onClick:a,disabled:r},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:s({className:o})},{children:i}))}))});var By=h.default.memo(function(t){var n=t.times,i=void 0===n?[]:n,o=t.selectedKeys,a=t.onSelectionChange,s=t.classNameSlot,l=t.classNameList,c=t.isDisabled,u=void 0!==c&&c,d=r.useCallback(function(e){return o.has(e)},[o]),p=r.useMemo(function(){return Py()},[u,l]).list;return e.jsx("ul",g({className:p({isDisabled:u,className:l})},{children:i.map(function(t){return e.jsx(Oy,{time:t,className:s,isDisabled:u,isSelected:d(t),onSelectionChange:function(){return!u&&a(t)}},t)})}))});var Dy=function(t){var n=t.t,i=t.matchVariant,o=void 0===i?"badge":i,a=t.match,s=t.fullName,l=t.avatarLink,c=t.countryCode,u=t.yearsOfExperience,d=t.className,p=t.avatarProps,f=t.rating,h=t.reviews,v=t.isSpecialistUnAvailable,m=void 0!==v&&v,x=t.isAuth,y=void 0===x||x,b=t.variantFullName,A=t.isFavourite,w=t.onClickReview,C=t.onToggleFavourite,j=t.children,P=t.video_link,O=t.onVideoPlay,B=r.useMemo(function(){return e.jsx(Ir,g({alt:"avatar",round:"drop",variant:"xl",src:l},p))},[l,p]),D=r.useMemo(function(){return P?e.jsx(ux,g({src:P||"",hiddenVideo:!0,isWithPlay:!0,buttonPlacement:"bottom-right",buttonSize:"small",variant:ax.blue,onPlay:O},{children:B})):B},[B,P]);return e.jsxs("div",g({className:pn("container flex items-center",d)},{children:["avatar"===o&&!m&&y&&a?e.jsx(iy,g({percentMatch:a},{children:D})):D,e.jsxs("div",g({className:"flex-1 ml-4"},{children:[e.jsxs("div",g({className:pn("flex items-center",{"-mt-2":C})},{children:[e.jsxs(mn,g({variant:b||exports.TypographyVariantsEnum.Text20Semi,className:"[hyphenate-character:''] hyphens-auto [word-break:break-word]"},{children:[s,c&&e.jsx(Vr,{name:c,className:"mx-1 w-5 h-6 !inline"}),e.jsx(di,{size:20,className:"min-w-5 !inline -mt-2"})]})),C&&e.jsx("div",g({className:"flex-shrink-0 ml-auto mr-0"},{children:e.jsx(Em,{onClick:function(e){e.stopPropagation(),null==C||C()},icon:e.jsx(Ni,{filled:A}),className:"cursor-pointer w-4 p-2 relative"})}))]})),u&&e.jsx(mn,g({opacity:50,variant:exports.TypographyVariantsEnum.Text13Regular},{children:null==n?void 0:n("therapist_list_item.years_of_experience",{count:u})})),"number"==typeof f&&"number"==typeof h&&e.jsx(ly,{rating:f,reviews:h,size:"small",t:n,endAdornment:w&&e.jsx(ei,{}),onClick:w}),j]}))]}))},ky=function(t){var n=t.t,i=t.rating,o=void 0===i?0:i,a=t.reviews,s=void 0===a?0:a,l=t.yearsOfExperience,c=t.hoursOfPractice,u=t.sessionPrice,d=t.currentPriceType,p=t.sessionDurationMinutes,f=t.className,h=t.userBalance,v=void 0===h?0:h,m=t.locale,x="number"==typeof l?"w-1/3":"w-1/2",y=r.useMemo(function(){return v?v/100:0},[v]),b=r.useMemo(function(){return"number"==typeof y&&y>0?Math.max(u-y,0):u},[u,y]),A=r.useMemo(function(){return b<u},[b,u]);return e.jsxs("div",g({className:pn("flex flex-1 w-full gap-4",f)},{children:[e.jsxs("div",g({className:pn("flex flex-col",x)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:gg({price:b,locale:m,currency:d,roundingTo:0,extendedUsd:!0})})),A?e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:"line-through"},{children:[gg({price:u,locale:m,currency:d,roundingTo:0,mode:"sign",side:"left"}),"/",null==n?void 0:n("therapist_list_item.pre_session_short")]})):e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.session_duration",{value:p})}))]})),!!l&&e.jsxs("div",g({className:pn("flex flex-col",x)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:null==n?void 0:n("therapist_list_item.years_of_experience",{count:l})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.years_of_experience_label")}))]})),!!s&&!!o&&e.jsxs("div",g({className:pn("flex flex-col",x)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:e.jsxs("div",g({className:"flex items-center"},{children:[e.jsx(ui,{className:"w-4 h-4 mr-1"})," ",Mh(o)]}))})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.number_of_reviews",{count:s})}))]})),c&&e.jsxs("div",g({className:"flex flex-col w-1/2"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:c&&(null==n?void 0:n("therapist_list_item.hours_of_practice",{value:Lh(c),count:c}))})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.hours_of_practice_label")}))]}))]}))},Ey=function(t){return e.jsxs("svg",g({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t,{children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("rect",{x:"7",y:"11",width:"10",height:"2",fill:"#D9D9D9"})]}))},zy=function(t){var n=t.items,r=t.name,i=t.type,o=t.onChange,a=t.values,s=void 0===a?[]:a;return e.jsx("ul",{children:n.map(function(t,a){var l=t.value,c=t.label,u=t.id,d=l||c;return e.jsx("li",g({className:pn("flex p-0 cursor-pointer list-none outline-none",{"border-b border-borders-divider":a!==n.length-1})},{children:e.jsx(Ov,{checked:s.includes(d),type:i,name:r,value:d,label:c,id:u,onChange:function(e){if(i===exports.SelectItemType.Checkbox){var t=s.find(function(t){return t===e});o(t?s.filter(function(e){return e!==t}):A(A([],b(s),!1),[e],!1))}else o([e])}})}),a)})})};const Sy=l.registerPlugin("Share",{web:()=>Promise.resolve().then(function(){return Zce}).then(e=>new e.ShareWeb)});class Ty extends l.WebPlugin{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 Hy=l.registerPlugin("Clipboard",{web:()=>new Ty});var Ly="ShareModalFeature-module_container__sTTuu",My="ShareModalFeature-module_withShare__4PNgP";K(".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 Ny=r.memo(function(t){var n=t.t,r=t.name,o=t.date,a=t.avatar,s=t.locale,l=t.timezone,c=t.onUserClick;return e.jsxs("div",g({className:"flex flex-col justify-center items-center"},{children:[e.jsxs("div",g({onClick:null!=c?c:void 0,className:"cursor-pointer flex flex-col justify-center items-center"},{children:[e.jsx(Ir,{src:a,alt:r,variant:"medium"}),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"mt-3 mb-1"},{children:r}))]})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50},{children:i.DateTime.fromJSDate(o).setZone(l).setLocale(s).toFormat("dd MMMM yyyy HH:mm")})),e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"mb-4"},{children:[l," (",i.DateTime.local().setLocale(s).setZone(l).toFormat("ZZZZ"),")"]})),i.DateTime.now()<i.DateTime.fromJSDate(o)&&e.jsx(bo,g({variant:"success",type:"accent",className:"!bg-color-info-mint"},{children:null==n?void 0:n("payments.session_details.future_session.badge")}))]}))}),Iy=function(t){var n=t.className;return e.jsxs("div",g({className:n},{children:[e.jsx("div",g({className:"flex justify-center mb-14"},{children:e.jsx(Nr,{className:"rounded-[28px] w-[142px] h-[30px]"})})),e.jsxs(Co,g({variant:"neutral"},{children:[e.jsxs("div",g({className:"flex justify-between my-1 pb-4 border-b border-color-black border-opacity-10"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[102px] h-[14px]"}),e.jsx(Nr,{className:"rounded-[12px] w-[74px] h-[14px]"})]})),e.jsxs("div",g({className:"flex justify-between my-1 py-4 border-b border-color-black border-opacity-10"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[142px] h-[14px]"}),e.jsx(Nr,{className:"rounded-[12px] w-[50px] h-[14px]"})]})),e.jsxs("div",g({className:"flex justify-between my-1 pt-4"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[62px] h-[14px]"}),e.jsx(Nr,{className:"rounded-[12px] w-[97px] h-[14px]"})]}))]}))]}))},Xy=function(t){var n=t.className;return e.jsxs("div",g({className:"".concat(n," flex flex-col justify-center items-center")},{children:[e.jsx(Nr,{className:"rounded-full w-[72px] h-[72px] !mb-4"}),e.jsxs("div",g({className:"my-1 flex flex-col items-center"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[142px] h-[14px] !mb-2"}),e.jsx(Nr,{className:"rounded-[12px] w-[94px] h-[10px]"})]}))]}))},Qy=r.memo(function(t){var n,i,o,a,s,l,c=t.t,u=t.consultation,d=t.isLoading,p=t.locale,f=t.timezone,h=t.onUserClick,v=r.useMemo(function(){var e,t,n,r,i,o,a,s=function(e){return.01*(null!=e?e:0)},l=u.payment;if(!l)return{};var c=null!==(e=null==l?void 0:l.price_local_original_by_specialist_in_cents)&&void 0!==e?e:0,d=null!==(t=(null==l?void 0:l.promocode_discount)||(null==l?void 0:l.subscription_discount))&&void 0!==t?t:0,p=1-d,f=Math.round(c/p),h=0,g=0;(null==l?void 0:l.promocode_discount)&&(null==l?void 0:l.promocode_discount)>0?h=f-c:g=f-c;var v=u.subscriptionId?null!==(n=l.commission)&&void 0!==n?n:0:1,m=Math.round(c*v),x=c-m;return{localCurrency:null!==(r=null==l?void 0:l.currency_local)&&void 0!==r?r:exports.SupportedCurrency.UAH,discount:d,sessionsCount:null!==(i=null==l?void 0:l.subscription_sessions_count)&&void 0!==i?i:0,interval:null!==(o=null==l?void 0:l.subscription_interval_in_month)&&void 0!==o?o:0,sessionLocalPrice:s(f),promocodeLocalPrice:s(h),discountLocalPrice:s(g),sessionLocalPriceAfterDiscount:s(c),commissionLocalPrice:s(m),localSpecialistRevenue:s(x),commission:null!==(a=null==l?void 0:l.commission)&&void 0!==a?a:0}},[u]),m=[{text:null==c?void 0:c("payments.session_details.price.title"),localPrice:mg({price:null!==(n=v.sessionLocalPrice)&&void 0!==n?n:0,locale:p}),isBold:!1}];return(v.interval||v.promocodeLocalPrice)&&m.push({text:"".concat(null==c?void 0:c(v.promocodeLocalPrice?"payments.session_details.promocode.title":"payments.session_details.discount.title",{discount:(l=100*v.discount,Math.round(100*l)/100)}),"%"),localPrice:"-".concat(mg({price:v.promocodeLocalPrice||v.discountLocalPrice,locale:p})),isBold:!1},{text:null==c?void 0:c("payments.session_details.session_amount.title"),localPrice:mg({price:v.sessionLocalPriceAfterDiscount,locale:p}),isBold:!0}),m.push({text:"".concat(null==c?void 0:c("payments.session_details.fee.title",{fee:100*(null!==(i=v.commission)&&void 0!==i?i:0)}),"%"),localPrice:"-".concat(mg({price:null!==(o=v.commissionLocalPrice)&&void 0!==o?o:0,locale:p})),isBold:!1},{text:null==c?void 0:c("payments.session_details.total.title"),localPrice:mg({price:null!==(a=v.localSpecialistRevenue)&&void 0!==a?a:0,locale:p}),isBold:!0}),d?e.jsxs(e.Fragment,{children:[e.jsx(Xy,{className:"mb-14"}),e.jsx(Iy,{})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",g({className:"mb-8"},{children:e.jsx(Ny,{t:c,name:u.name,date:u.date,avatar:u.avatar,locale:p,timezone:f,onUserClick:h})})),e.jsx("div",g({className:"mb-8"},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title48Semi,className:"mb-2 text-center"},{children:mg({price:null!==(s=v.localSpecialistRevenue)&&void 0!==s?s:0,locale:p})}))})),e.jsxs(Co,g({className:"mb-5 !border-opacity-35 flex justify-between",variant:"neutral",size:"M"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center"},{children:null==c?void 0:c("payments.session_details.type.title")})),e.jsxs("div",{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:100,className:"text-typography-typography-secondary text-right"},{children:v.interval?null==c?void 0:c("payments.session_details.type.subscription"):null==c?void 0:c("payments.session_details.type.trial")})),!!v.interval&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:null==c?void 0:c("payments.session_details.type.subscription_item",{count:v.sessionsCount,period:v.interval})}))]})]})),e.jsx(Co,g({className:"mb-5 !border-opacity-35",variant:"neutral",size:"M"},{children:m.map(function(t,n){return e.jsxs("div",g({className:"flex justify-between border-color-black border-opacity-10 ".concat(n<m.length-1?"pb-10":"")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center w-2/3"},{children:t.text})),e.jsx("div",g({className:"flex flex-col items-end w-1/3"},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum[t.isBold?"Text16Semi":"Text16Regular"],opacity:100,className:"text-typography-typography-primary"},{children:t.localPrice}))}))]}),"item-".concat(n))})}))]})}),Ry=r.memo(function(t){var n,i=t.t,o=t.consultation,a=t.isLoading,s=t.locale,l=t.timezone,c=t.onUserClick,u=r.useMemo(function(){var e,t,n,r,i,a,s,l=function(e){return.01*(null!=e?e:0)},c=o.payment;return{localCurrency:null!==(e=null==c?void 0:c.currency_local)&&void 0!==e?e:exports.SupportedCurrency.UAH,mainCurrency:null!==(t=null==c?void 0:c.currency_default)&&void 0!==t?t:exports.SupportedCurrency.EUR,exchangeRate:null!==(n=null==c?void 0:c.exchange_rate)&&void 0!==n?n:1,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!==(a=null==c?void 0:c.subscription_interval_in_month)&&void 0!==a?a:0,sessionMainPrice:l(null==c?void 0:c.price_default_original_in_cents),sessionLocalPrice:l(null==c?void 0:c.price_local_original_by_exchange_rate_in_cents),discountMainPrice:l(null==c?void 0:c.price_default_discount_in_cents),discountLocalPrice:l(null==c?void 0:c.price_local_discount_by_exchange_rate_in_cents),promocodeMainPrice:l(null==c?void 0:c.price_default_promocode_in_cents),promocodeLocalPrice:l(null==c?void 0:c.price_local_promocode_by_exchange_rate_in_cents),sessionMainPriceAfterDiscount:l(null==c?void 0:c.price_default_in_cents),sessionLocalPriceAfterDiscount:l(null==c?void 0:c.price_local_by_exchange_rate_in_cents),commissionMainPrice:l(null==c?void 0:c.price_default_commission_in_cents),commissionLocalPrice:l(null==c?void 0:c.price_local_commission_by_exchange_rate_in_cents),mainSpecialistRevenue:l(null==c?void 0:c.price_default_after_commission_in_cents),localSpecialistRevenue:l(null==c?void 0:c.price_local_after_commission_by_exchange_rate_in_cents),commission:null!==(s=null==c?void 0:c.commission)&&void 0!==s?s:0}},[o]),d=[{text:null==i?void 0:i("payments.session_details.price.title"),mainPrice:mg({price:u.sessionMainPrice,locale:s}),localPrice:gg({price:u.sessionLocalPrice,locale:s}),isBold:!1}];return(u.interval||u.promocodeMainPrice)&&d.push({text:"".concat(null==i?void 0:i(u.promocodeMainPrice?"payments.session_details.promocode.title":"payments.session_details.discount.title",{discount:(n=100*u.discount,Math.round(100*n)/100)}),"%"),mainPrice:"-".concat(mg({price:u.promocodeMainPrice||u.discountMainPrice,locale:s})),localPrice:"-".concat(gg({price:u.promocodeLocalPrice||u.discountLocalPrice,locale:s})),isBold:!1},{text:null==i?void 0:i("payments.session_details.session_amount.title"),mainPrice:mg({price:u.sessionMainPriceAfterDiscount,locale:s}),localPrice:gg({price:u.sessionLocalPriceAfterDiscount,locale:s}),isBold:!0}),d.push({text:"".concat(null==i?void 0:i("payments.session_details.fee.title",{fee:100*u.commission}),"%"),mainPrice:"-".concat(mg({price:u.commissionMainPrice,locale:s})),localPrice:"-".concat(gg({price:u.commissionLocalPrice,locale:s})),isBold:!1},{text:null==i?void 0:i("payments.session_details.total.title"),mainPrice:mg({price:u.mainSpecialistRevenue,locale:s}),localPrice:gg({price:u.localSpecialistRevenue,locale:s}),isBold:!0}),a?e.jsxs(e.Fragment,{children:[e.jsx(Xy,{className:"mb-14"}),e.jsx(Iy,{})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",g({className:"mb-8"},{children:e.jsx(Ny,{t:i,name:o.name,date:o.date,avatar:o.avatar,locale:s,timezone:l,onUserClick:c})})),e.jsxs("div",g({className:"mb-8"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title48Semi,className:"mb-2 text-center"},{children:mg({price:u.mainSpecialistRevenue,locale:s})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-center"},{children:gg({price:u.localSpecialistRevenue,locale:s})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-center"},{children:null==i?void 0:i("payments.session_details.exchange_rate.subtitle",{rate:u.exchangeRate})}))]})),e.jsxs(Co,g({className:"mb-5 !border-opacity-35 flex justify-between",variant:"neutral",size:"M"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center"},{children:null==i?void 0:i("payments.session_details.type.title")})),e.jsxs("div",{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:100,className:"text-typography-typography-secondary text-right"},{children:u.interval?null==i?void 0:i("payments.session_details.type.subscription"):null==i?void 0:i("payments.session_details.type.trial")})),!!u.interval&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:null==i?void 0:i("payments.session_details.type.subscription_item",{count:u.sessionsCount,period:u.interval})}))]})]})),e.jsx(Co,g({className:"mb-5 !border-opacity-35",variant:"neutral",size:"M"},{children:d.map(function(t,n){return e.jsxs("div",g({className:"flex justify-between border-color-black border-opacity-10 ".concat(n<d.length-1?"pb-5":"")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center w-2/3"},{children:t.text})),e.jsxs("div",g({className:"flex flex-col items-end w-1/3"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum[t.isBold?"Text16Semi":"Text16Regular"],opacity:100,className:"text-typography-typography-primary"},{children:t.mainPrice})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:t.localPrice}))]}))]}),"item-".concat(n))})}))]})}),Fy=r.memo(function(t){return console.log("props",t),t.locale===exports.SupportedLocales.en?e.jsx(Qy,g({},t)):e.jsx(Ry,g({},t))});function Vy(e){var t=i.DateTime.fromJSDate(null!=e?e:"").month,n=i.DateTime.fromJSDate(null!=e?e:"").year,r=i.DateTime.now().day,o=i.DateTime.now().month,a=i.DateTime.now().year,s={isPreviousMonth:!1,isOldMonth:!1,isCurrentMonth:!1,isFutureMonth:!1};return a>=n&&(a>n||o>t+1?s.isOldMonth=!0:a===n&&o===t+1?r<=10?s.isPreviousMonth=!0:s.isOldMonth=!0:a===n&&o===t&&(s.isCurrentMonth=!0)),s.isFutureMonth=!s.isPreviousMonth&&!s.isOldMonth&&!s.isCurrentMonth,s}function Gy(e,t){var n=i.DateTime.utc(new Date(e).getUTCFullYear(),new Date(e).getUTCMonth()+1,2);return t&&(n=n.setLocale(t)),n.toFormat("LLLL yyyy")}function Wy(e){var t=e.date,n=e.locale,o=Vy(t),a=o.isOldMonth,s=o.isCurrentMonth;return r.useMemo(function(){var e=i.DateTime.fromObject({year:(a?i.DateTime.fromJSDate(t):i.DateTime.now()).year,month:(a?i.DateTime.fromJSDate(t):i.DateTime.now()).month,day:10});return(a||s)&&(e=e.plus({month:1})),n&&(e=e.setLocale(n)),e.toFormat("d MMMM yyyy")},[t,n,a])}var Yy={previous:"previous",future:"future"};var Uy=r.memo(function(t){var n=t.t,r=t.date,o=t.locale,a=t.className,s=new Date(r),l=Vy(s),c=l.isOldMonth,u=l.isPreviousMonth,d=Wy({date:i.DateTime.fromObject({year:i.DateTime.fromJSDate(s).year,month:i.DateTime.fromJSDate(s).month}).toJSDate(),locale:o}),p=Wy({date:s,locale:o});return c?e.jsx(bo,g({className:a,variant:"success"},{children:null==n?void 0:n("payments.payout_paid.badge",{date:d})})):u?e.jsx(bo,g({className:a,variant:"attention"},{children:null==n?void 0:n("payments.payout_in_progress.badge",{date:p})})):e.jsx(e.Fragment,{})}),Ky=Cr({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]"}}),qy=function(t){var n=t.className,r=Ky();return e.jsxs("div",g({className:"".concat(r.skeletonWrapper()," ").concat(n)},{children:[e.jsxs("div",g({className:"flex justify-start mb-9"},{children:[e.jsxs("div",g({className:"flex flex-col w-1/2"},{children:[e.jsx(Nr,{className:r.skeletonTLWTile()}),e.jsx(Nr,{className:r.skeletonTSWTile()})]})),e.jsxs("div",g({className:"flex flex-col w-1/2"},{children:[e.jsx(Nr,{className:r.skeletonTLWTile()}),e.jsx(Nr,{className:r.skeletonTSWTile()})]}))]})),e.jsxs("div",g({className:"flex justify-between"},{children:[e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(Nr,{className:r.skeletonBLNTile()}),e.jsx(Nr,{className:r.skeletonBSWTile()}),e.jsx(Nr,{className:r.skeletonBMWTile()})]})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(Nr,{className:r.skeletonBLNTile()}),e.jsx(Nr,{className:r.skeletonBSWTile()}),e.jsx(Nr,{className:r.skeletonBMWTile()})]})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(Nr,{className:r.skeletonBLNTile2()}),e.jsx(Nr,{className:r.skeletonBSWTile()}),e.jsx(Nr,{className:r.skeletonBMWTile2()})]}))]}))]}))},Jy=r.memo(function(t){var n,r=t.t,i=t.revenue,o=t.showRevenue,a=t.currencyProps,s=t.commissionRates,l=t.commissionValue,c=t.showCommission,u=t.calendarDate,d=t.totalSessionsCount,p=t.futureSessionsCount,f=t.isLoading,h=t.isInvoiceLoading,v=t.hideProgressBar,m=t.locale,x=t.onInvoiceClick,y=Object.keys(s).map(function(e,t,n){return{start:t-1>=0?parseInt(n[t-1],10)+1:1,end:parseInt(e,10),value:Number(s[Number(e)])}}),b=p;b>d&&(b=d);var A=d-b,w=Vy(u),C=w.isPreviousMonth,j=w.isOldMonth,P=w.isCurrentMonth,O=w.isFutureMonth,B=l||(null===(n=y[0])||void 0===n?void 0:n.value)||0;return e.jsxs(Co,g({variant:"neutral"},{children:[o&&e.jsxs("div",{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r(O||P?"payments.planned_income.title":"payments.income.title")})),e.jsxs("div",g({className:"flex justify-between items-center"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title48Semi,className:"text-typography-typography-secondary"},{children:mg(g({locale:m,price:Number(.01*(null!=i?i:0))},a||{}))})),j&&e.jsx(e.Fragment,{children:h?e.jsx(Wm,{}):e.jsx(xi,{className:"cursor-pointer",onClick:x})})]}))]}),f&&e.jsx("div",g({className:"mt-5"},{children:e.jsx(qy,{})})),!f&&e.jsxs(e.Fragment,{children:[o&&u&&e.jsx(Uy,{t:r,className:"mt-5 !block !w-fit",date:u,locale:m}),e.jsxs(e.Fragment,{children:[c&&e.jsxs("div",g({className:"inline-block w-1/2 ".concat(o?"mt-5":"")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r("payments.commission_rate.title")})),e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"text-typography-typography-secondary"},{children:[100*B,"%"]}))]})),e.jsxs("div",g({className:"\n ".concat(P?"w-full":""," \n ").concat(c&&P||o?"mt-5":""," \n inline-block\n ")},{children:[!O&&e.jsxs("div",g({className:"".concat(P?"w-1/2":""," inline-block")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r("payments.sessions_held.title")})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"text-typography-typography-secondary"},{children:A}))]})),!j&&!C&&e.jsxs("div",g({className:"".concat(O?"":"w-1/2"," inline-block")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r("payments.future_sessions.title")})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"text-typography-typography-secondary"},{children:b}))]}))]}))]}),!v&&e.jsx(Cx,{t:r,ranges:y,progress:A,maxValue:d,className:"mt-5"})]})]}))}),Zy=Cr({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"}}}}),_y=r.memo(function(t){var n,r,o,a,s=t.consultation,l=t.locale,c=t.consultationClick,u=Zy(),d=i.DateTime.fromJSDate(s.date).setLocale(null!=l?l:"uk").toFormat("dd MMMM yyyy");return s?e.jsxs("div",g({onClick:c?function(){return c(s)}:function(){return null},className:"".concat(u.consultationCard()," ").concat(c?"cursor-pointer":"")},{children:[e.jsxs("div",g({className:"flex flex-start items-center"},{children:[e.jsx("div",g({className:"mr-4"},{children:e.jsx(Ir,{src:s.avatar,alt:s.name})})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular},{children:s.name})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:d}))]}))]})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,className:"text-right"},{children:mg({locale:l,mode:"sign",price:.01*(null!==(r=null===(n=s.payment)||void 0===n?void 0:n.price_default_after_commission_in_cents)&&void 0!==r?r:0)})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:gg({locale:l,price:.01*(null!==(a=null===(o=s.payment)||void 0===o?void 0:o.price_local_after_commission_by_exchange_rate_in_cents)&&void 0!==a?a:0)})}))]}))]})):e.jsx(e.Fragment,{})}),$y=r.memo(function(t){var n,r,o=t.consultation,a=t.locale,s=t.consultationClick,l=Zy(),c=i.DateTime.fromJSDate(o.date).setLocale(null!=a?a:"uk").toFormat("dd MMMM yyyy");return o?e.jsxs("div",g({onClick:s?function(){return s(o)}:function(){return null},className:"".concat(l.consultationCard()," ").concat(s?"cursor-pointer":"")},{children:[e.jsxs("div",g({className:"flex flex-start items-center"},{children:[e.jsx("div",g({className:"mr-4"},{children:e.jsx(Ir,{src:o.avatar,alt:o.name})})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular},{children:o.name})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:c}))]}))]})),e.jsx("div",g({className:"flex flex-col"},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,className:"text-right"},{children:mg({locale:a,price:.01*(null!==(r=null===(n=o.payment)||void 0===n?void 0:n.price_local_after_commission_by_exchange_rate_in_cents)&&void 0!==r?r:0)})}))}))]})):e.jsx(e.Fragment,{})}),eb=r.memo(function(t){return t.locale===exports.SupportedLocales.en?e.jsx($y,g({},t)):e.jsx(_y,g({},t))}),tb=r.memo(function(t){var n=t.consultations,r=t.locale,i=t.consultationClick;return e.jsx(e.Fragment,{children:n.map(function(t){return e.jsx(eb,{consultationClick:i,consultation:t,locale:r},t.id)})})}),nb=r.memo(function(t){var n=t.t,i=t.calendarDate,o=t.consultations,a=t.locale,s=t.futureCount,l=t.previousCount,c=t.defaultTab,u=t.consultationsModeTrigger,d=t.consultationClick,p=Zy(),f=b(r.useState(""),2),h=f[0],v=f[1],m=function(e){var t=e.t,n=e.date,i=e.defaultTab,o=e.futureCount,a=e.previousCount;return r.useMemo(function(){var e=Vy(new Date(n)),r=e.isPreviousMonth,s=e.isOldMonth,l=e.isCurrentMonth;if(r||s)return{activeTab:Yy.previous,tabs:[{label:t("payments.held_sessions.subtitle"),value:Yy.previous}]};if(l){var c=[];return a&&c.push({label:t(o?"payments.balance_details.held_tab":"payments.held_sessions.subtitle"),value:Yy.previous}),o&&c.push({label:t(a?"payments.balance_details.future_tab":"payments.future_sessions.title"),value:Yy.future}),{activeTab:Object.values(Yy).includes(null!=i?i:"")?i:a?Yy.previous:Yy.future,tabs:c}}return{activeTab:Yy.future,tabs:[{label:t("payments.future_sessions.title"),value:Yy.future}]}},[n,o,a,i])}({t:n,date:i,futureCount:s,previousCount:l,defaultTab:c}),x=m.activeTab,y=m.tabs,A=y.length>1;r.useEffect(function(){h!==x&&(v(x),u(x))},[x]);return e.jsxs(e.Fragment,{children:[e.jsx("div",g({className:"mt-4 flex justify-between items-center"},{children:y.map(function(t,n){return e.jsx(mn,g({variant:exports.TypographyVariantsEnum[A?"Text14Semi":"Title18Semi"],onClick:function(){return function(e){e.value!==h&&(v(e.value),u(e.value))}(t)},className:p.tab({active:h===t.value,multiple:A})},{children:t.label}),"".concat(t.value,"-").concat(n))})})),e.jsx(tb,{consultationClick:d,consultations:o,locale:a})]})});var rb=r.memo(function(t){var n=t.t,o=t.date,a=t.locale,s=t.mode,l=void 0===s?"button":s,c=t.opened,u=t.lastDate,d=t.dateCallback,p=b(r.useState(new Date(o.setDate(2))),2),f=p[0],h=p[1],v=b(r.useState(c),2),m=v[0],x=v[1],y=function(e){for(var t=e.locale,n=e.lastDate,r=[],o=i.DateTime.fromISO("2022-01-01").toJSDate(),a=i.DateTime.local().toJSDate(),s=n||a;s>o;){var l=i.DateTime.fromJSDate(s);t&&(l=l.setLocale(t));var c=l.toFormat("LLLL yyyy");r.push({label:c,value:s}),s=i.DateTime.fromJSDate(s).minus({month:1}).toJSDate()}return r}({locale:a,lastDate:u});r.useEffect(function(){c!==m&&x(c)},[c]);return e.jsx(Um,g({isOpen:m,heightInPx:402,onIonModalDidDismiss:function(){d(f),x(!1)}},{children:e.jsxs(Qr,g({className:"pt-10 h-full flex flex-1 flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title24Semi,className:"mt-10 text-center"},{children:null==n?void 0:n("select_period.title")})),e.jsx(Vx,{className:"relative",selections:{calendarList:y},defaults:{calendarList:Gy(f,a)},onChange:function(e){h(e.calendarList.value),"button"!==l&&(d(f),x(!1))}}),"button"===l&&e.jsx(Or,g({onClick:function(){d(f),x(!1)},className:"w-full text-center !mt-3",size:"large"},{children:null==n?void 0:n("select_period.button")}))]}))}))}),ib=r.memo(function(t){var n=t.t,i=t.date,o=t.locale,a=t.lastDate,s=t.dateCallback,l=b(r.useState(i),2),c=l[0],u=l[1],d=b(r.useState(!1),2),p=d[0],f=d[1];r.useEffect(function(){i!==c&&u(i)},[i]);return e.jsxs(e.Fragment,{children:[e.jsx(ti,{onClick:function(){f(!0)},className:"cursor-pointer"}),e.jsx(rb,{t:n,date:i,locale:o,lastDate:a,mode:"button",opened:p,dateCallback:function(e){f(!1),u(e),s(e)}})]})});var ob=Cr({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:exports.TypographyVariantsEnum.Text15Regular,dateTextVariant:exports.TypographyVariantsEnum.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:exports.TypographyVariantsEnum.Text7Regular,dateTextVariant:exports.TypographyVariantsEnum.Text6Regular,ratingSize:8,avatarSize:"smaller"},large:{base:"p-5 rounded-3xl min-h-[313px]",userContainer:"mb-4",rating:"mb-2.5",mainTextVariant:exports.TypographyVariantsEnum.Text15Regular,dateTextVariant:exports.TypographyVariantsEnum.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"}}}}),ab=r.memo(function(t){var n=t.text,i=t.title,o=t.countLines,a=t.variant,s=void 0===a?exports.TypographyVariantsEnum.Text15Regular:a,l=t.expandType,c=t.classNameTitle,u=t.classNameReviewText,d=t.onExpand,p=t.t,f=t.presentingElement,h=t.onMoreClick,m=t.hideShowMore,x=v(t,["text","title","countLines","variant","expandType","classNameTitle","classNameReviewText","onExpand","t","presentingElement","onMoreClick","hideShowMore"]),y=b(r.useState(!1),2),A=y[0],w=y[1],C=b(r.useState(!1),2),j=C[0],P=C[1],O=r.useRef(null),B=r.useRef(null),D=function(t){return i&&e.jsx(mn,g({variant:t||exports.TypographyVariantsEnum.Title20Semi,className:pn("mt-6 mb-2",c)},{children:i}))},k=function(t){var r;return void 0===t&&(t=j),e.jsx(mn,g({variant:s,className:pn("overflow-hidden whitespace-pre-wrap",(r={},r["line-clamp-".concat(o)]=!t,r["line-clamp-none"]=t,r["pb-8"]=t&&"modal"===l,r),u),ref:O},x,{children:e.jsx("div",{dangerouslySetInnerHTML:{__html:n}})}))};r.useEffect(function(){requestAnimationFrame(function(){!function(){var e;if(O.current&&o){var t=parseFloat(getComputedStyle(O.current).lineHeight)*o;(null===(e=O.current)||void 0===e?void 0:e.scrollHeight)>t?w(!0):w(!1)}}()})},[n,o]);return e.jsxs(e.Fragment,{children:[D(),k(),A&&!m&&e.jsx(ay,g({onClick:"function"==typeof d?d:"inline"===l?function(){j||null==h||h(),P(!j)}:"modal"===l?function(){var e;null==h||h(),null===(e=B.current)||void 0===e||e.present()}:void 0,className:"mt-3"},{children:j?null==p?void 0:p("therapist_details.show_less"):null==p?void 0:p("therapist_details.show_more")})),e.jsx(Um,g({ref:B,presentingElement:f,withCloseButton:!0},{children:e.jsxs(Qr,{children:[D(exports.TypographyVariantsEnum.Title28Semi),k(!0)]})}))]})}),sb=r.forwardRef(function(t,n){var o=t.id,a=t.avatarSrc,s=t.name,l=t.date,c=t.rating,u=t.review,d=t.size,p=void 0===d?"default":d,f=t.variant,h=void 0===f?"default":f,v=t.reviewTextClamp,m=t.onExpandReview,x=t.t,y=t.className,b=t.locale,A=t.useDate,w=void 0!==A&&A,C=t.isEditable,j=void 0!==C&&C,P=t.onEditReview,O=ob({size:p,variant:h}),B=O.base,D=O.userContainer,k=O.user,E=O.editContainer,z=O.editIcon,S=O.rating,T=O.mainTextVariant,H=O.dateTextVariant,L=O.ratingSize,M=O.avatarSize,N=O.review,I=O.reviewText,X=O.name,Q=r.useMemo(function(){var e=i.DateTime.now().startOf("day"),t=i.DateTime.fromSeconds(l).startOf("day"),n=e.diff(t,"days").toObject();return n.days?Math.ceil(n.days):0},[l]),R=r.useMemo(function(){return Q<=0?null==x?void 0:x("reviews.today_subtitle"):w&&b?i.DateTime.fromSeconds(l).toLocaleString(i.DateTime.DATE_MED,{locale:b}):null==x?void 0:x("reviews.days_before_subtitle",{count:Q})},[Q,x,b,w,l]),F=T(),V=H(),G=L();return e.jsxs("div",g({className:pn(B(),y),ref:n},{children:[e.jsxs("div",g({className:D()},{children:[e.jsxs("div",g({className:k()},{children:["starFirst"!==h&&e.jsx(Ir,{src:a,variant:M()}),e.jsxs("div",{children:[e.jsx(mn,g({variant:F,className:X()},{children:s})),"starFirst"!==h&&e.jsx(mn,g({variant:V,opacity:50},{children:R}))]})]})),j&&e.jsx("div",g({onClick:function(){null==P||P({id:null!=o?o:"",review_rating:c,text_of_review:u})},className:E()},{children:e.jsx(Si,{className:z()})}))]})),e.jsx(ym,{readonly:!0,initialRating:c,size:G,className:S()}),e.jsx("div",g({className:N()},{children:e.jsx(ab,{variant:F,classNameReviewText:I(),countLines:v,text:u,onExpand:function(){null==m||m()},t:x})}))]}))});sb.displayName="ReviewCardFeature";var lb=r.memo(sb),cb=r.memo(function(){var t=new Array(6).fill(0),n=ob({size:"default"}),r=n.base,i=n.user;return e.jsx("ul",g({className:"flex flex-col gap-5"},{children:t.map(function(t,n){return e.jsxs("div",g({className:r(),style:{opacity:0===n?1:n>=3?.4:1-(n+n)/10}},{children:[e.jsxs("div",g({className:i()},{children:[e.jsx(Nr,{className:"w-10 h-10 rounded-full shrink-0"}),e.jsxs("div",g({className:"flex flex-col gap-2 w-full"},{children:[e.jsx(Nr,{className:"w-7/12 h-3.5 rounded-xl"}),e.jsx(Nr,{className:"w-5/12 h-2.5 rounded-xl"})]}))]})),e.jsx(Nr,{className:"w-7/12 h-3.5 rounded-xl"}),e.jsxs("div",g({className:"flex flex-col gap-2 w-full mt-[26px]"},{children:[e.jsx(Nr,{className:"w-full h-2.5 rounded-xl"}),e.jsx(Nr,{className:"w-8/12 h-2.5 rounded-xl"})]}))]}),n)})}))});K('.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 ub=function(t){var n=t.node,i=t.level,o=function(){switch(n.type){case"<h1>":return"h1";case"<p>":return"p";case"<li>":return"li";case"<ol>":return"ol";case"<ul>":return"ul";default:return r.Fragment}}();return e.jsxs(o,g({className:ec({"nested-list":"<ol>"===n.type,"pl-7":"<ol>"===n.type&&2===i,"pl-11":"<ol>"===n.type&&3===i,"pl-5":"<ol>"===n.type&&4===i,"pl-3":"<li>"===n.type&&1===i,"my-2":"<li>"===n.type,"mt-5 font-inter-tight text-[20px] font-semibold leading-[140%]":"<h1>"===n.type,"my-5 font-inter text-[14px] leading-[140%]":"<p>"===n.type})},{children:[n.title&&!["<h1>","<p>"].includes(n.type)&&e.jsx("span",g({className:"my-5 font-inter text-[14px] leading-[140%]"},{children:yg(n.title)})),"<h1>"===n.type?yg(n.title):null,"<p>"===n.type?yg(n.title):null,n.children&&n.children.length>0&&e.jsx(e.Fragment,{children:n.children.map(function(t,r){return e.jsx(ub,{node:t,level:"<ol>"===n.type?i+1:i},r)})})]}))},db=r.memo(r.forwardRef(function(t,n){var r=t.data,i=t.className;return e.jsx("div",g({ref:n,className:ec(i,"first-paragraph")},{children:r.map(function(t,n){return e.jsx(ub,{node:t,level:1},n)})}))}));db.displayName="ContentTree";var pb="ScreenInputForm-module_container__Eyh6-",fb="ScreenInputForm-module_input__Hj2X7";K(".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 hb=r.memo(function(t){var n=t.type,i=void 0===n?"text":n,o=t.title,a=t.subtitle,s=t.subtitleLink,l=t.onSubtitleLinkClick,c=t.placeholder,u=t.buttonText,d=void 0===u?"Зберегти":u,p=t.defaultValue,f=t.name,h=t.onSubmit,v=t.isLoading,m=t.resetButtonText,x=t.resetValue,y=t.autoComplete,A=t.required,w=t.isFocus,C=void 0!==w&&w,j=t.pattern,P=t.isAutoGrow,O=t.icon,B=t.isKeyboardShown,D=void 0!==B&&B,k=b(r.useState(p),2),E=k[0],z=k[1],S=r.useRef(null);r.useEffect(function(){C&&(null==S?void 0:S.current)&&S.current.focus()},[S,C]);var T=r.useCallback(function(){E&&(null==h||h(E,null!=f?f:""))},[E,f,h]),H=r.useCallback(function(){x&&(z(x),null==h||h(x,null!=f?f:""))},[x,h]),L=r.useCallback(function(e){e.preventDefault(),null==l||l()},[l]);return e.jsxs(e.Fragment,{children:[e.jsxs(Oo,g({toolbarClassName:"!p-0"},{children:[o&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title28Semi,className:"mb-1"},{children:o})),a&&e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50},{children:[a," ",s&&e.jsx("a",g({href:"#",className:"underline cursor-pointer text-sl opacity-50",onClick:L},{children:s}))]}))]})),e.jsx(Qr,g({className:pb},{children:e.jsx(Gm,{ref:S,type:i,placeholder:c,value:E,name:f,onChange:function(e){return z(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&T()},disabled:v,autoComplete:y,required:A,pattern:j,className:fb,isAutoGrow:P,icon:O})})),e.jsxs(Er,g({bottomSaveArea:!D},{children:[m&&e.jsx(Or,g({fullWidth:!0,type:"button",fill:"clear",className:"!mb-2",onClick:H},{children:m})),e.jsx(Or,g({type:"button",fullWidth:!0,size:"large",disabled:!E,isLoading:v,onClick:T},{children:d}))]}))]})}),gb=r.memo(function(t){var n=t.title,i=t.subtitle,o=t.buttonText,a=void 0===o?"Save":o,s=t.selections,l=t.defaults,c=t.onChange,u=t.compareBy,d=void 0===u?"label":u,p=t.isLoading,f=void 0!==p&&p,h=t.onTouchStart,v=t.onTouchEnd,m=b(r.useState(l),2),x=m[0],y=m[1],A=r.useCallback(function(){x&&c(x)},[x]);return e.jsxs(e.Fragment,{children:[e.jsxs(Oo,g({toolbarClassName:"!p-0"},{children:[n&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title28Semi,className:"mb-1"},{children:n})),i&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50},{children:i}))]})),e.jsx(Qr,g({isFlexContainer:!0},{children:e.jsx("div",g({className:"flex flex-col flex-1 justify-center",onTouchStart:h,onTouchEnd:v},{children:e.jsx(Vx,{selections:s,defaults:x,onChange:function(e){return y(Object.keys(e).reduce(function(t,n){return t[n]=e[n].value,t},{}))},compareBy:d})}))})),e.jsx(Er,{children:e.jsx(Or,g({fullWidth:!0,type:"button",size:"large",onClick:A,isLoading:f},{children:a}))})]})}),vb="TextAreaForm-module_container__Qd3HG";K(".TextAreaForm-module_container__Qd3HG{--keyboard-offset:0!important}",{insertAt:"top"});var mb=r.memo(function(t){var i=t.title,o=t.subtitle,a=t.placeholder,s=t.buttonText,l=void 0===s?"Зберегти":s,c=t.defaultValue,u=t.name,d=t.onSubmit,p=t.isLoading,f=t.isFocus,h=void 0!==f&&f,v=t.isKeyboardShown,m=void 0!==v&&v,x=t.maxlength,y=void 0===x?300:x,A=t.HeaderComponent,w=b(r.useState(c),2),C=w[0],j=w[1],P=r.useRef(null);r.useEffect(function(){var e;h&&(null==P?void 0:P.current)&&(null===(e=P.current)||void 0===e||e.setFocus())},[P,h]);var O=r.useCallback(function(e){e.preventDefault(),C&&(null==d||d(C,null!=u?u:""))},[C,u,d]);return e.jsxs(e.Fragment,{children:[!(!i&&!o)&&e.jsx(Oo,g({toolbarClassName:"!p-0",className:"mb-5"},{children:e.jsxs("div",g({className:"flex flex-col gap-1"},{children:[i&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title28Semi},{children:i})),o&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50},{children:o}))]}))})),e.jsxs(Qr,g({className:vb},{children:[!!A&&e.jsx(A,{}),e.jsx($v,{ref:P,placeholder:a,showCounter:!0,autoGrow:!0,maxlength:y,spellcheck:!0,value:C,name:u,onIonChange:function(e){return j(e.target.value)},onKeyPress:function(e){return!n.isPlatform("hybrid")&&"Enter"===e.key&&O(e)},disabled:p})]})),e.jsx(Er,g({bottomSaveArea:!m},{children:e.jsx(Or,g({type:"button",fullWidth:!0,size:"large",disabled:!C,isLoading:p,onClick:O},{children:l}))}))]})});function xb(t){var n=t.isAccepted,r=t.setIsAccepted,i=t.handlePressLink,o=t.translations;return e.jsxs("div",g({className:"flex gap-x-2 mb-[18px] !leading-[140%]",onClick:function(){r(!n)}},{children:[e.jsx("div",g({className:"flex items-center flex-shrink-0 text-typography-typography-primary"},{children:n?e.jsx(ii,{className:"!h-6 !w-6"}):e.jsx(oi,{className:"!h-6 !w-6"})})),e.jsxs("div",g({className:"inline"},{children:[e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:"inline"},{children:[o[0]," "]})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:"inline !text-badges-info-main underline cursor-pointer",onClick:function(e){e.stopPropagation(),i()}},{children:o[1]})),e.jsxs(mn,g({className:"inline",variant:exports.TypographyVariantsEnum.Text14Regular},{children:[" ",o[2]]}))]}))]}))}var yb=r.memo(function(t){var n=t.title,i=t.subTitle,o=t.items,a=t.defaultItems,s=t.selectedItems,l=t.onChange,c=t.isLoading,u=void 0!==c&&c,d=t.otherText,p=t.buttonLabel,f=t.enableSearch,h=void 0!==f&&f,m=t.searchPlaceholder,x=void 0===m?"":m,y=v(t,["title","subTitle","items","defaultItems","selectedItems","onChange","isLoading","otherText","buttonLabel","enableSearch","searchPlaceholder"]),w=b(r.useState(!1),2),C=w[0],j=w[1],P=b(r.useState(a),2),O=P[0],B=P[1],D=b(r.useState(null),2),k=D[0],E=D[1],z=b(r.useState(null),2),S=z[0],T=z[1],H=b(r.useState(null!=s?s:new Set([])),2),L=H[0],M=H[1],N=r.useMemo(function(){return o.filter(function(e){return!S||e.toLowerCase().includes(S.toLowerCase())})},[S,o]),I=r.useCallback(function(e){"all"!==e&&e.size&&(M(e),!p&&(null==l||l(A([],b(e.values()),!1)[0].toString())))},[l,p]),X=r.useCallback(function(e){var t=e.detail.value||"";E(t);var n=O.filter(function(e){return!t||e.toLowerCase().includes(t.toLowerCase())});B(n)},[]),Q=r.useCallback(function(e){B(function(t){return A([e],b(t.filter(function(t){return t!==e})),!1)}),T(null),j(!1),I(new Set([e]))},[I]),R=r.useCallback(function(){"all"!==L&&L.size&&(null==l||l(A([],b(L.values()),!1)[0].toString()))},[l,L]);return r.useEffect(function(){B(a)},[a]),r.useEffect(function(){M(null!=s?s:new Set([]))},[s]),e.jsxs(e.Fragment,{children:[e.jsxs(Oo,g({toolbarClassName:"!p-0"},{children:[n&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title24Semi,className:"mb-1"},{children:n})),i&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50,className:"mb-4"},{children:i})),h&&e.jsx(px,{onIonChange:X,value:null!=k?k:"",placeholder:x,className:"mb-2"})]})),e.jsxs(Qr,{children:[!p&&e.jsx(Zm,{isOpen:u}),e.jsx(bv,g({type:"radio",selectionMode:"single",selectedKeys:L,onSelectionChange:I},{children:O.map(function(t,n){return e.jsx(Tv,g({textValue:t,divider:!0},{children:t}),t)})})),d&&e.jsx(tx,{children:e.jsx(sx,g({className:"p-0",onClick:function(){return j(!0)}},{children:d}))})]}),p&&e.jsx(Er,{children:e.jsx(Or,g({fullWidth:!0,size:"large",isLoading:u,onClick:R,disabled:"all"!==L&&!L.size},{children:p}))}),e.jsx(Ay,g({countries:N,isOpen:C,onDidDismiss:function(){return j(!1)},onSearchChange:function(e){var t,n;return T(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:"")},onItemClick:Q,searchValue:null!=S?S:""},y))]})});function bb(){return bb=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},bb.apply(this,arguments)}const Ab=["children","options"],wb="0",Cb="1",jb="2",Pb="3",Ob="4",Bb="5",Db="6",kb="7",Eb="8",zb="9",Sb="10",Tb="11",Hb="12",Lb="13",Mb="14",Nb="15",Ib="16",Xb="17",Qb="18",Rb="19",Fb="20",Vb="21",Gb="22",Wb="23",Yb="24",Ub="25",Kb="26",qb="27",Jb="28",Zb="29",_b="30",$b="31",eA="32",tA="33";var nA;!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"}(nA||(nA={}));const rA=["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"}),iA={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},oA=["style","script"],aA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,sA=/mailto:/i,lA=/\n{2,}$/,cA=/^(\s*>[\s\S]*?)(?=\n{2,})/,uA=/^ *> ?/gm,dA=/^ {2,}\n/,pA=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,fA=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,hA=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,gA=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,vA=/^(?:\n *)*\n/,mA=/\r\n?/g,xA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,yA=/^\[\^([^\]]+)]/,bA=/\f/g,AA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,wA=/^\s*?\[(x|\s)\]/,CA=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jA=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,PA=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,OA=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,BA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,DA=/^<!--[\s\S]*?(?:-->)/,kA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,EA=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,zA=/^\{.*\}$/,SA=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,TA=/^<([^ >]+@[^ >]+)>/,HA=/^<([^ >]+:\/[^ >]+)>/,LA=/-([a-z])?/gi,MA=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,NA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,IA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,XA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,QA=/(\[|\])/g,RA=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,FA=/\t/g,VA=/(^ *\||\| *$)/g,GA=/^ *:-+: *$/,WA=/^ *:-+ *$/,YA=/^ *-+: *$/,UA="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",KA=new RegExp(`^([*_])\\1${UA}\\1\\1(?!\\1)`),qA=new RegExp(`^([*_])${UA}\\1(?!\\1|\\w)`),JA=new RegExp(`^==${UA}==`),ZA=new RegExp(`^~~${UA}~~`),_A=/^\\([^0-9A-Za-z\s])/,$A=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ew=/^\n+/,tw=/^([ \t]*)/,nw=/\\([^\\])/g,rw=/ *\n+$/,iw=/(?:^|\n)( *)$/,ow="(?:\\d+\\.)",aw="(?:[*+-])";function sw(e){return"( *)("+(1===e?ow:aw)+") +"}const lw=sw(1),cw=sw(2);function uw(e){return new RegExp("^"+(1===e?lw:cw))}const dw=uw(1),pw=uw(2);function fw(e){return new RegExp("^"+(1===e?lw:cw)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ow:aw)+" )[^\\n]*)*(\\n|$)","gm")}const hw=fw(1),gw=fw(2);function vw(e){const t=1===e?ow:aw;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const mw=vw(1),xw=vw(2);function yw(e,t){const n=1===t,r=n?mw:xw,i=n?hw:gw,o=n?dw:pw;return{match(e,t,n){const i=iw.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,s=e[0].replace(lA,"\n").match(i);let l=!1;return{items:s.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===s.length-1,d=-1!==c.indexOf("\n\n")||u&&l;l=d;const p=r.inline,f=r.list;let h;r.list=!0,d?(r.inline=!1,h=c.replace(rw,"\n\n")):(r.inline=!0,h=c.replace(rw,""));const g=t(h,r);return r.inline=p,r.list=f,g}),ordered:n,start:a}},render:(t,n,r)=>e(t.ordered?"ol":"ul",{key:r.key,start:t.type===Fb?t.start:void 0},t.items.map(function(t,i){return e("li",{key:i},n(t,r))}))}}const bw=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Aw=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ww=[cA,fA,hA,CA,PA,jA,DA,MA,hw,mw,gw,xw],Cw=[...ww,/^[^\n]+(?: \n|\n{2,})/,OA,EA];function jw(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 Pw(e){return YA.test(e)?"right":GA.test(e)?"center":WA.test(e)?"left":null}function Ow(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:Kb}:{type:qb,text:i}):""!==i&&e.push.apply(e,t(i,n)),e),[]);n.inTable=i;let a=[[]];return o.forEach(function(e,t){e.type===Kb?0!==t&&t!==o.length-1&&a.push([]):(e.type!==qb||null!=o[t+1]&&o[t+1].type!==Kb||(e.text=e.text.trimEnd()),a[a.length-1].push(e))}),a}function Bw(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(VA,"").split("|").map(Pw):[],i=e[3]?function(e,t,n){return e.trim().split("\n").map(function(e){return Ow(e,t,n,!0)})}(e[3],t,n):[],o=Ow(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:o,type:Ub}:{children:o,type:Vb}}function Dw(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function kw(e){return function(t,n){return n.inline?e.exec(t):null}}function Ew(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function zw(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Sw(e){return function(t){return e.exec(t)}}function Tw(e,t,n){if(t.inline||t.simple)return null;if(n&&!n.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!ww.some(t=>t.test(e))&&(r+=e+"\n",e.trim()));const i=r.trimEnd();return""==i?null:[r,i]}function Hw(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 Lw(e){return e.replace(nw,"$1")}function Mw(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 Nw(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 Iw(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const Xw=(e,t,n)=>({children:Mw(t,e[1],n)});function Qw(){return{}}function Rw(){return null}function Fw(...e){return e.filter(Boolean).join(" ")}function Vw(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 Gw=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,Ab);return f.cloneElement(function(e="",t={}){function n(e,n,...r){const i=Vw(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const n=Vw(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Vw(t,`${e}.component`,e):e}(e,t.overrides),bb({},n,i,{className:Fw(null==n?void 0:n.className,i.className)||void 0}),...r)}function r(e){e=e.replace(AA,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===RA.test(e));const i=c(l(r?e:`${e.trimEnd().replace(ew,"")}\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(aA);return i?i.reduce(function(n,i,o){const a=i.indexOf("=");if(-1!==a){const s=function(e){return-1!==e.indexOf("-")&&null===e.match(kA)&&(e=e.replace(LA,function(e,t){return t.toUpperCase()})),e}(i.slice(0,a)).trim(),l=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=rA[s]||s,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(zA)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,s,l,t.sanitizer);"string"==typeof u&&(OA.test(u)||EA.test(u))&&(n[c]=f.cloneElement(r(u.trim()),{key:o}))}else"style"!==i&&(n[rA[i]||i]=!0);return n},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||Hw,t.slugify=t.slugify||jw,t.namedCodesToUnicode=t.namedCodesToUnicode?bb({},iA,t.namedCodesToUnicode):iA,t.createElement=t.createElement||f.createElement;const o=[],a={},s={[wb]:{match:zw(cA),order:1,parse:(e,t,n)=>({children:t(e[0].replace(uA,""),n)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},[Cb]:{match:Sw(dA),order:1,parse:Qw,render:(e,t,r)=>n("br",{key:r.key})},[jb]:{match:zw(pA),order:1,parse:Qw,render:(e,t,r)=>n("hr",{key:r.key})},[Pb]:{match:zw(hA),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",bb({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[Ob]:{match:zw(fA),order:0,parse:e=>({attrs:i("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:Pb})},[Bb]:{match:Ew(gA),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},[Db]:{match:zw(xA),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:Rw},[kb]:{match:kw(yA),order:1,parse:e=>({target:`#${t.slugify(e[1],jw)}`,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))},[Eb]:{match:kw(wA),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"})},[zb]:{match:zw(t.enforceAtxHeadings?jA:CA),order:1,parse:(e,n,r)=>({children:Mw(n,e[2],r),id:t.slugify(e[2],jw),level:e[1].length}),render:(e,t,r)=>n(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},[Sb]:{match:zw(PA),order:0,parse:(e,t,n)=>({children:Mw(t,e[1],n),level:"="===e[2]?1:2,type:zb})},[Tb]:{match:Sw(OA),order:1,parse(e,t,n){const[,r]=e[3].match(tw),o=new RegExp(`^${r}`,"gm"),a=e[3].replace(o,""),s=(l=a,Cw.some(e=>e.test(l))?Iw:Mw);var l;const c=e[1].toLowerCase(),u=-1!==oA.indexOf(c),d=(u?c:e[1]).trim(),p={attrs:i(d,e[2]),noInnerParse:u,tag:d};return n.inAnchor=n.inAnchor||"a"===c,u?p.text=e[3]:p.children=s(t,a,n),n.inAnchor=!1,p},render:(e,t,r)=>n(e.tag,bb({key:r.key},e.attrs),e.text||t(e.children,r))},[Lb]:{match:Sw(EA),order:1,parse(e){const t=e[1].trim();return{attrs:i(t,e[2]||""),tag:t}},render:(e,t,r)=>n(e.tag,bb({},e.attrs,{key:r.key}))},[Hb]:{match:Sw(DA),order:1,parse:()=>({}),render:Rw},[Mb]:{match:Ew(Aw),order:1,parse:e=>({alt:e[1],target:Lw(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")})},[Nb]:{match:kw(bw),order:3,parse:(e,t,n)=>({children:Nw(t,e[1],n),target:Lw(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))},[Ib]:{match:kw(HA),order:0,parse:e=>({children:[{text:e[1],type:qb}],target:e[1],type:Nb})},[Xb]:{match:(e,t)=>t.inAnchor?null:kw(SA)(e,t),order:0,parse:e=>({children:[{text:e[1],type:qb}],target:e[1],title:void 0,type:Nb})},[Qb]:{match:kw(TA),order:0,parse(e){let t=e[1],n=e[1];return sA.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:qb}],target:n,type:Nb}}},[Fb]:yw(n,1),[tA]:yw(n,2),[Rb]:{match:zw(vA),order:3,parse:Qw,render:()=>"\n"},[Vb]:{match:Tw,order:3,parse:Xw,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},[Gb]:{match:kw(NA),order:0,parse:e=>(a[e[1]]={target:e[2],title:e[4]},{}),render:Rw},[Wb]:{match:Ew(IA),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},[Yb]:{match:kw(XA),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:t(e[0].replace(QA,"\\$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))},[Ub]:{match:zw(MA),order:1,parse:Bw,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:Dw(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:Dw(i,o)},t(e,r))}))})))}},[qb]:{match:Sw($A),order:4,parse:e=>({text:e[0].replace(BA,(e,n)=>t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e)}),render:e=>e.text},[Jb]:{match:Ew(KA),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("strong",{key:r.key},t(e.children,r))},[Zb]:{match:Ew(qA),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("em",{key:r.key},t(e.children,r))},[_b]:{match:Ew(_A),order:1,parse:e=>({text:e[1],type:qb})},[$b]:{match:Ew(JA),order:3,parse:Xw,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},[eA]:{match:Ew(ZA),order:3,parse:Xw,render:(e,t,r)=>n("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete s[Tb],delete s[Lb]);const l=function(e){let t=Object.keys(e);function n(r,i){let o=[],a="";for(;r;){let s=0;for(;s<t.length;){const l=t[s],c=e[l],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=l),o.push(t),a=e;break}s++}}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(mA,"\n").replace(bA,"").replace(FA," ")}(e),t)}}(s),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)}}(s,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),s="string"==typeof a;s&&o?i[i.length-1]+=a:null!==a&&i.push(a),o=s}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,jw),key:e.identifier},e.identifier,c(l(e.footnote,{inline:!0})))}))):d}(t,n),r)},Ww="MarkdownContainer-module_markdown__QNrrN";K(".MarkdownContainer-module_markdown__QNrrN div{white-space:pre-wrap}",{insertAt:"top"});var Yw=r.memo(function(t){var n=t.children,i=t.options,o=t.className,a=t.forceBlock,s=void 0===a||a,l=r.useMemo(function(){return g({overrides:g({p:{component:function(t){var n=t.children,r=v(t,["children"]);return e.jsx("p",g({},r,{children:n}))}},ul:{component:function(t){var n=t.children,r=v(t,["children"]);return e.jsx("ul",g({},r,{children:n}))},props:{className:"list-disc list-inside"}},ol:{component:function(t){var n=t.children,r=v(t,["children"]);return e.jsx("ol",g({},r,{children:n}))},props:{className:"list-decimal list-inside"}}},null==i?void 0:i.overrides),forceBlock:s,wrapper:function(t){var n=t.children;return s?e.jsx("div",g({className:pn("flex flex-col gap-4",Ww,o)},{children:n})):n}},i)},[i,o]);return n?e.jsx(Gw,g({options:l},{children:n})):null}),Uw=r.memo(function(t){var n,r,i=t.title,o=t.description,a=t.contentStyle,s=t.image,l=t.isPreview,c=b(cv(),2),u=c[0],d=c[1],p=a===exports.OnBoardingScreenStyleOptions.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e.jsx("div",g({className:"flex flex-col h-full justify-center items-center gap-6 px-2",ref:d},{children:!!u&&e.jsxs("div",g({className:pn("flex flex-col items-center",{"gap-1":l},{"gap-2":!l})},{children:[(null==s?void 0:s.file_url)&&e.jsx("div",g({className:pn("flex justify-center w-full",{"mb-4":l},{"mb-8":!l})},{children:e.jsx(Zr,{width:null!==(n=null==s?void 0:s.width)&&void 0!==n?n:0,height:null!==(r=null==s?void 0:s.height)&&void 0!==r?r:0,src:{src:s.file_url},srcType:"image/webp",responsive:!0,containerWidth:u})})),e.jsx(mn,g({variant:l?exports.TypographyVariantsEnum.Title14Semi:exports.TypographyVariantsEnum.Title24Semi,className:p,align:"center"},{children:i})),e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:l?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text14Regular,className:p,align:"center"}}}},className:l?"!gap-1":"!gap-4"},{children:o}))]}))}))}),Kw=r.memo(function(t){var n,r,i=t.title,o=t.description,a=t.image,s=t.contentStyle,l=t.isPreview,c=b(cv(),2),u=c[0],d=c[1],p=s===exports.OnBoardingScreenStyleOptions.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e.jsx("div",g({ref:d,className:"flex flex-col gap-4 h-full"},{children:!!u&&e.jsxs("div",g({className:pn("flex flex-col items-center",{"gap-1":l},{"gap-2":!l})},{children:[(null==a?void 0:a.file_url)&&e.jsx("div",g({className:pn("w-full flex justify-center items-center",{"mb-3":l},{"mb-6":!l})},{children:e.jsx(Zr,{width:null!==(n=null==a?void 0:a.width)&&void 0!==n?n:0,height:null!==(r=null==a?void 0:a.height)&&void 0!==r?r:0,src:{src:a.file_url},srcType:"image/webp",responsive:!0,containerWidth:u})})),e.jsx(mn,g({variant:l?exports.TypographyVariantsEnum.Title14Semi:exports.TypographyVariantsEnum.Title24Semi,className:p},{children:i})),e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:l?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text16Regular,className:p}}}},className:l?"!gap-1":"!gap-4"},{children:o}))]}))}))}),qw=function(t){var n=t.title,r=t.subTitle,i=t.description,o=t.isPreview,a="roundImage"===t.template;return e.jsxs("div",g({className:pn("flex flex-col",{"gap-0.5":o},{"gap-1":!o})},{children:[n&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:o?exports.TypographyVariantsEnum.Title14Semi:exports.TypographyVariantsEnum.Title24Semi,className:a?"mb-1":""}}}}},{children:n})),r&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:o?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text16Semi,className:a?"mb-2":""}}}}},{children:r})),i&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:o?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text15Regular,className:"!text-typography-typography-secondary"}}}}},{children:i}))]}))},Jw=r.memo(function(t){var n=t.options,i=t.title,o=t.description,a=t.isPreview,s=t.onChange,l=t.defaultValues,c=t.theme,u=t.template,d=void 0===u?"checkbox":u,p=b(r.useState(new Set(l)),2),f=p[0],h=p[1];r.useEffect(function(){h(new Set(l))},[l]);var v=r.useCallback(function(e){h(e),"all"!==e&&(null==s||s(Array.from(e)))},[s]),m=(null==c?void 0:c.template)===exports.OnboardingVariant.custom;return e.jsxs("div",g({className:pn("h-full flex flex-col",{"gap-2.5":a},{"gap-5":!a})},{children:[e.jsx(qw,{title:i,description:o,isPreview:a}),e.jsx(bv,g({"aria-label":"MultiSelect",selectedKeys:f,onSelectionChange:v,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:n.map(function(t,r){var i,o;return e.jsx(Tv,g({textValue:t.id,"aria-label":t.label,divider:n.length-1!==r,className:a?"!px-0 !py-2":"!px-0 !py-4",image:null!==(i=t.image)&&void 0!==i?i:null},{children:e.jsx(mn,g({variant:a?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Regular,style:m&&"all"!==f&&f.has(t.id)&&"checkbox"!==d?{color:null!==(o=null==c?void 0:c.customTextColor)&&void 0!==o?o:""}:{}},{children:t.label}))}),t.id)})}))]}))}),Zw=r.memo(function(t){var n=t.isPreview,r=t.minLabel,i=t.maxLabel;return e.jsxs("div",g({className:"w-full flex flex-row items-center justify-between gap-2 mt-3 px-0.5"},{children:[e.jsx(mn,g({variant:n?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Semi},{children:r})),e.jsx(mn,g({variant:n?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Semi},{children:i}))]}))}),_w=function(t){var n=t.isPreview,r=t.selectedOption,i=r&&"feedbackTitle"in r&&(null==r?void 0:r.feedbackTitle)&&"feedbackDescription"in r&&(null==r?void 0:r.feedbackDescription);return e.jsx("div",g({className:"flex items-end mt-[auto]"},{children:e.jsxs("div",g({className:pn("invisible w-full flex flex-row bg-color-background-anti-flash-light rounded-[30px] p-5 mb-[22px]",{"!visible":i,"!p-3 !rounded-[15px] !mb-[12px]":n})},{children:[e.jsx(mn,g({className:n?"mr-2":"mr-4",variant:n?exports.TypographyVariantsEnum.Text15Semi:exports.TypographyVariantsEnum.Title24Semi},{children:"🏆"})),e.jsxs("div",{children:[e.jsx(mn,g({variant:n?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text15Semi},{children:i?null==r?void 0:r.feedbackTitle:""})),e.jsx(mn,g({className:"mt-0.5",variant:n?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text13Regular150},{children:i?null==r?void 0:r.feedbackDescription:""}))]})]}))}))},$w=r.memo(function(t){var n,i,o=t.options,a=t.title,s=t.subTitle,l=t.description,c=t.legalText,u=t.minLabel,d=t.maxLabel,p=t.isPreview,f=t.onChange,h=t.defaultValues,v=t.theme,m=t.template,x=void 0===m?"radio":m,y=t.isRoundCorners,A=void 0!==y&&y,w=t.image,C=t.horizontalImageAlignment,j=void 0===C?"center":C,P=b(r.useState(new Set(h)),2),O=P[0],B=P[1];r.useEffect(function(){B(new Set(h))},[h]);var D=r.useCallback(function(e){B(e),("all"===e||e.size)&&(null==f||f(Array.from(e)[0]))},[f]),k=o.find(function(e){return e.id===Array.from(O)[0]}),E="roundImage"===x,z="image"===x,S="emoji"===x,T="radio"===x,H="icon"===x;return e.jsxs("div",g({className:pn("h-full flex flex-col",{"gap-2.5":p&&!E},{"gap-5":!p&&!E})},{children:[w&&e.jsx("div",g({className:pn("flex py-3 mb-2",{"justify-center":"center"===j,"justify-end":"right"===j,"justify-start":"left"===j,"!py-1 !mb-1":p})},{children:e.jsx(Zr,{src:{src:w.file_url},srcType:"image/webp",responsive:!0,width:null!==(n=w.width)&&void 0!==n?n:0,height:null!==(i=w.height)&&void 0!==i?i:0,containerWidth:p?40:80})})),e.jsx(qw,{title:a,subTitle:s,description:l,isPreview:p,template:x}),e.jsxs("div",g({className:pn("flex flex-col h-full justify-center items-center",{"!h-[60%]":S,"!h-[auto]":E})},{children:[e.jsx(bv,g({"aria-label":"SingleSelect",selectedKeys:O,onSelectionChange:D,selectionMode:"single",type:x,className:pn("!p-0",{"flex flex-wrap flex-row items-stretch":z||E,"h-full":T||H,"w-full flex flex-row gap-1":S,"mt-7 mb-2":E&&!A,"mt-7 mb-[-4px]":E&&A,"!mt-3 !mb-[-8px]":E&&p}),selectedIconProps:{className:p?"!h-3 !w-3":"!h-6 !w-6"},variant:null==v?void 0:v.template,onboardingTheme:v,isOnboardingPreview:p,isTransparent:!0,isRoundCorners:A},{children:o.map(function(t,n){var r;return e.jsx(Tv,g({textValue:t.id,"aria-label":t.label,divider:o.length-1!==n,className:p?"!px-0 !py-2":"!px-0 !py-4",image:null!==(r=t.image)&&void 0!==r?r:null},{children:"radio"===x?e.jsx(mn,g({variant:p?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Regular},{children:t.label})):t.label}),t.id)})})),u&&d&&e.jsx(Zw,{isPreview:p,minLabel:u,maxLabel:d})]})),S&&e.jsx(_w,{isPreview:p,selectedOption:k}),c&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:p?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Tabbar10Medium,className:"!text-typography-typography-secondary text-center"}}}}},{children:c}))]}))}),eC=function(t){var n=t.title,i=t.loadingItemDuration,o=void 0===i?1.5:i,a=t.answerScreenId,s=t.allScreens,l=t.selectedAnswers,c=t.isPreview,u=t.listItems,d=t.onProgressEnd,p=t.t,f=r.useRef(null);r.useEffect(function(){if(null==f?void 0:f.current){var e=f.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)}))}},[f]);var h=r.useMemo(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&&s&&l?(a.forEach(function(t){var n=s[t],r=l[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},[l,s,a,c,u]),v=r.useMemo(function(){return o*h.length},[h.length]);return e.jsx("div",g({className:"flex flex-col h-full items-center",ref:f},{children:e.jsxs("div",{children:[n&&e.jsx(mn,g({variant:c?exports.TypographyVariantsEnum.Title12Semi:exports.TypographyVariantsEnum.Title28Semi,className:pn("text-center")},{children:n})),e.jsx(Om,{className:pn("text-center",{"mt-4":c,"my-10":!c}),t:p,size:c?exports.CircleRatingSize.M:exports.CircleRatingSize.L,progress:100,animationSeconds:v,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.jsx(bv,g({"aria-label":"MultiSelect",className:pn({"!px-4":c,"!px-12":!c}),selectionMode:"none",enableSelection:!1,isTransparent:!0},{children:h.map(function(t){var n=t.map(function(e){return e.id}).join(","),r=t.map(function(e){return e.label}).join(", ");return e.jsx(Tv,g({className:"!px-0 !py-1"},{children:e.jsxs("div",g({className:"list--flow-items transition-opacity duration-[400ms] flex items-center ".concat(c?"gap-1":"gap-2"," opacity-30")},{children:[e.jsx(ii,{size:c?10:20,className:"text-[#02B286] flex-shrink-0"}),e.jsx(mn,g({variant:c?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text16Regular},{children:r}))]}))}),n)})}))]})}))},tC=function(t){var n,i=t.label,o=t.duration,a=t.isPreview,s=t.isActive,l=t.isCompleted,c=t.isDisabled,u=t.isPaused,d=t.handleProgressEnd,p=t.theme,f=(null==p?void 0:p.template)===exports.OnboardingVariant.custom,h=b(r.useState(0),2),v=h[0],m=h[1],x=r.useRef(null),y=r.useRef(!1),A=r.useRef(!1),w=r.useRef(0),C=r.useRef(0),j=function(e){if(!A.current){var t=e-w.current+C.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);m(r),n<1?x.current=requestAnimationFrame(j):y.current||(y.current=!0,d())}};r.useEffect(function(){if(A.current=u,s&&o)return u?(x.current&&(cancelAnimationFrame(x.current),x.current=null),C.current+=performance.now()-w.current):(w.current=performance.now(),x.current=requestAnimationFrame(j)),function(){x.current&&(cancelAnimationFrame(x.current),x.current=null)}},[u]),r.useEffect(function(){return s&&o?(u||(w.current=performance.now(),x.current=requestAnimationFrame(j)),function(){x.current&&(cancelAnimationFrame(x.current),x.current=null)}):(m(0),y.current=!1,C.current=0,A.current=!1,void(x.current&&(cancelAnimationFrame(x.current),x.current=null)))},[s]);var P=Math.round(100*v);return e.jsxs("div",g({className:pn("py-4",{"border-b border-borders-divider":l,"!py-1":c,"!py-2":a})},{children:[e.jsxs("div",g({className:"w-full flex items-center justify-between gap-4"},{children:[e.jsx(mn,g({variant:a?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text16Regular},{children:i})),e.jsxs("div",g({className:"min-w-[40px] flex items-center justify-end"},{children:[s&&e.jsxs(mn,g({variant:a?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text15Semi},{children:[P,"%"]})),l&&e.jsx(ii,{size:a?10:24,className:"text-badges-success-main flex-shrink-0"}),c&&e.jsx(mn,g({className:"text-typography-typography-secondary",variant:a?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text15Semi},{children:"0%"}))]}))]})),s&&e.jsx(qm,{className:pn("py-1 mt-3",{"!mt-1 !py-0.5":a}),variant:f?exports.OnboardingVariant.custom:exports.OnboardingVariant.blue,progress:v,style:f?{"--progress-background":null!==(n=p.customColor)&&void 0!==n?n:""}:{}})]}))},nC={},rC={},iC={},oC={};!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}}(oC);var aC=/^\s+|\s+$/g,sC=/^[-+]0x[0-9a-f]+$/i,lC=/^0b[01]+$/i,cC=/^0o[0-7]+$/i,uC=parseInt,dC="object"==typeof an&&an&&an.Object===Object&&an,pC="object"==typeof self&&self&&self.Object===Object&&self,fC=dC||pC||Function("return this")(),hC=Object.prototype.toString,gC=Math.max,vC=Math.min,mC=function(){return fC.Date.now()};function xC(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function yC(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hC.call(e)}(e))return NaN;if(xC(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xC(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(aC,"");var n=lC.test(e);return n||cC.test(e)?uC(e.slice(2),n?2:8):sC.test(e)?NaN:+e}var bC=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=mC();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?vC(n,o-(e-c)):n}(e))}function v(e){return s=void 0,p&&r?f(e):(r=i=void 0,a)}function m(){var e=mC(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(g,t),u?f(e):a}(l);if(d)return s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=yC(t)||0,xC(n)&&(u=!!n.leading,o=(d="maxWait"in n)?gC(yC(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},m.flush=function(){return void 0===s?a:v(mC())},m},AC={exports:{}};
|
|
24
|
+
*/"production"===process.env.NODE_ENV?jx.exports=function(){if(bx)return Px;bx=1;var e=h.default,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 s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return Px.Fragment=n,Px.jsx=a,Px.jsxs=a,Px}():jx.exports=(Ox||(Ox=1,"production"!==process.env.NODE_ENV&&function(){var e,t=h.default,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"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),v=Symbol.iterator,m=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(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=m.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 y(e){return e.displayName||"Context"}function b(e){if(null==e)return null;if("number"==typeof e.tag&&x("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 l:return y(e)+".Consumer";case s:return y(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 p:var t=e.displayName||null;return null!==t?t:b(e.type)||"Memo";case f:var n=e,h=n._payload,g=n._init;try{return b(g(h))}catch{return null}}return null}e=Symbol.for("react.module.reference");var A,w,C,j,P,O,B,D=Object.assign,k=0;function E(){}E.__reactDisabledLog=!0;var z,S=m.ReactCurrentDispatcher;function T(e,t,n){if(void 0===z)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);z=r&&r[1]||""}return"\n"+z+e}var H,L=!1,M="function"==typeof WeakMap?WeakMap:Map;function N(e,t){if(!e||L)return"";var n,r=H.get(e);if(void 0!==r)return r;L=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=S.current,S.current=null,function(){if(0===k){A=console.log,w=console.info,C=console.warn,j=console.error,P=console.group,O=console.groupCollapsed,B=console.groupEnd;var e={configurable:!0,enumerable:!0,value:E,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 s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&H.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{L=!1,S.current=i,function(){if(0===--k){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:A}),info:D({},e,{value:w}),warn:D({},e,{value:C}),error:D({},e,{value:j}),group:D({},e,{value:P}),groupCollapsed:D({},e,{value:O}),groupEnd:D({},e,{value:B})})}k<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var p=e?e.displayName||e.name:"",f=p?T(p):"";return"function"==typeof e&&H.set(e,f),f}function I(e,t,n){if(null==e)return"";if("function"==typeof e)return N(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return T(e);switch(e){case u:return T("Suspense");case d:return T("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return function(e){return N(e,!1)}(e.render);case p:return I(e.type,t,n);case f:var r=e,i=r._payload,o=r._init;try{return I(o(i),t,n)}catch{}}return""}H=new M;var X=Object.prototype.hasOwnProperty,Q={},R=m.ReactDebugCurrentFrame;function F(e){if(e){var t=e._owner,n=I(e.type,e._source,t?t.type:null);R.setExtraStackFrame(n)}else R.setExtraStackFrame(null)}var V=Array.isArray;function G(e){return V(e)}function W(e){return""+e}function Y(e){if(function(e){try{return W(e),!1}catch{return!0}}(e))return x("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=m.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r,i,o){var a,s={},l=null,c=null;for(a in void 0!==r&&(Y(r),l=""+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),l=""+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=b(J.current.type);q[n]||(x('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',b(J.current.type),e.ref),q[n]=!0)}}(t,o)),t)X.call(t,a)&&!Z.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){U||(U=!0,x("%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})}(s,d),c&&function(e,t){var n=function(){K||(K=!0,x("%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})}(s,d)}return function(e,t,r,i,o,a,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,o,i,J.current,s)}q={};var $,ee=m.ReactCurrentOwner,te=m.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=I(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=b(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 "+b(e._owner.type)+"."),ne(e),x('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 se(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=v&&e[v]||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 le(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!==p)return;t=n.propTypes}if(t){var r=b(n);!function(e,t,n,r,i){var o=Function.call.bind(X);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=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 l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(F(i),x("%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 s),F(null)),s instanceof Error&&!(s.message in Q)&&(Q[s.message]=!0,F(i),x("Failed %s type: %s",n,s.message),F(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||$||($=!0,x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ce(t,r,h,v,m,y){var A=function(t){return!("string"!=typeof t&&"function"!=typeof t&&t!==i&&t!==a&&t!==o&&t!==u&&t!==d&&t!==g&&("object"!=typeof t||null===t||t.$$typeof!==f&&t.$$typeof!==p&&t.$$typeof!==s&&t.$$typeof!==l&&t.$$typeof!==c&&t.$$typeof!==e&&void 0===t.getModuleId))}(t);if(!A){var w="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(w+=" 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,j=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);w+=j||ie(),null===t?C="null":G(t)?C="array":void 0!==t&&t.$$typeof===n?(C="<"+(b(t.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,w)}var P=_(t,r,h,m,y);if(null==P)return P;if(A){var O=r.children;if(void 0!==O)if(v)if(G(O)){for(var B=0;B<O.length;B++)se(O[B],t);Object.freeze&&Object.freeze(O)}else x("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 se(O,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),x("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),x("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}(P):le(P),P}var ue=function(e,t,n){return ce(e,t,n,!1)},de=function(e,t,n){return ce(e,t,n,!0)};Bx.Fragment=i,Bx.jsx=ue,Bx.jsxs=de}()),Bx);var Dx=jx.exports;const kx=216,Ex=36,zx="off",Sx=r.createContext(null);function Tx(e){const t=r.useContext(Sx);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Tx),t}return t}Sx.displayName="PickerDataContext";const Hx=r.createContext(null);function Lx(e){const t=r.useContext(Hx);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Lx),t}return t}function Mx(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}`)}}Hx.displayName="PickerActionsContext";const Nx=r.createContext(null);function Ix(e){const t=r.useContext(Nx);if(null===t){const t=new Error(`<${e} /> is missing a parent <Picker.Column /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ix),t}return t}function Xx(e){return"function"==typeof e}Nx.displayName="PickerColumnDataContext";const Qx=Object.assign(function(e){const{style:t,children:n,value:i,onChange:o,height:a=kx,itemHeight:s=Ex,wheelMode:l=zx,...c}=e,u=r.useMemo(()=>({height:s,marginTop:-s/2,position:"absolute",top:"50%",left:0,width:"100%",pointerEvents:"none"}),[s]),d=r.useMemo(()=>({height:`${a}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)"}),[a]),[p,f]=r.useReducer(Mx,{}),h=r.useMemo(()=>({height:a,itemHeight:s,wheelMode:l,value:i,optionGroups:p}),[a,s,i,p,l]),g=r.useCallback((e,t)=>{if(i[e]===t)return!1;const n={...i,[e]:t};return o(n,e),!0},[o,i]),v=r.useCallback((e,t)=>(f({type:"REGISTER_OPTION",key:e,option:t}),()=>f({type:"UNREGISTER_OPTION",key:e,option:t})),[]),m=r.useMemo(()=>({registerOption:v,change:g}),[v,g]);return Dx.jsxs("div",{style:{...d,...t},...c,children:[Dx.jsx(Hx.Provider,{value:m,children:Dx.jsx(Sx.Provider,{value:h,children:n})}),Dx.jsxs("div",{style:u,children:[Dx.jsx("div",{style:{position:"absolute",top:0,bottom:"auto",left:0,right:"auto",width:"100%",height:"1px",background:"#d9d9d9",transform:"scaleY(0.5)"}}),Dx.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,...i}){const{height:o,itemHeight:a,wheelMode:s,value:l,optionGroups:c}=Tx("Picker.Column"),u=r.useMemo(()=>l[n],[l,n]),d=r.useMemo(()=>c[n]||[],[n,c]),p=r.useMemo(()=>{let e=d.findIndex(e=>e.value===u);return e<0&&(e=0),e},[d,u]),f=r.useMemo(()=>o/2-a*d.length+a/2,[o,a,d]),h=r.useMemo(()=>o/2-a/2,[o,a]),[g,v]=r.useState(0);r.useEffect(()=>{v(o/2-a/2-p*a)},[o,a,p]);const m=Lx("Picker.Column"),x=r.useRef(g);x.current=g;const y=r.useCallback(()=>{let e=0;const t=x.current;e=t>=h?0:t<=f?d.length-1:-Math.round((t-h)/a),m.change(n,d[e].value)||v(o/2-a/2-e*a)},[m,o,a,n,h,f,d]),[b,A]=r.useState(0),[w,C]=r.useState(!1),[j,P]=r.useState(0),O=r.useCallback(e=>{e<f?e=f-Math.pow(f-e,.8):e>h&&(e=h+Math.pow(e-h,.8)),v(e)},[h,f]),B=r.useCallback(e=>{P(e.targetTouches[0].pageY),A(g)},[g]),D=r.useCallback(e=>{e.cancelable&&e.preventDefault(),w||C(!0);const t=b+e.targetTouches[0].pageY-j;O(t)},[w,b,j,O]),k=r.useCallback(()=>{w&&(C(!1),P(0),A(0),y())},[y,w]),E=r.useCallback(()=>{w&&(C(!1),P(0),v(b),A(0))},[w,b]),z=r.useRef(null),S=r.useCallback(e=>{if(0===e.deltaY)return;let t=.1*e.deltaY;Math.abs(t)<a&&(t=a*Math.sign(t)),"normal"===s&&(t=-t);O(g+t)},[a,g,O,s]),T=r.useCallback(()=>{y()},[y]),H=r.useCallback(e=>{"off"!==s&&(e.cancelable&&e.preventDefault(),S(e),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{T()},200))},[T,S,z,s]),L=r.useRef(null);r.useEffect(()=>{const e=L.current;return e&&(e.addEventListener("touchmove",D,{passive:!1}),e.addEventListener("wheel",H,{passive:!1})),()=>{e&&(e.removeEventListener("touchmove",D),e.removeEventListener("wheel",H))}},[D,H]);const M=r.useMemo(()=>({flex:"1 1 0%",maxHeight:"100%",transitionProperty:"transform",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",transitionDuration:w?"0ms":"300ms",transform:`translate3d(0, ${g}px, 0)`}),[g,w]),N=r.useMemo(()=>({key:n}),[n]);return Dx.jsx("div",{style:{...M,...e},ref:L,onTouchStart:B,onTouchEnd:k,onTouchCancel:E,...i,children:Dx.jsx(Nx.Provider,{value:N,children:t})})},Item:function({style:e,children:t,value:n,...i}){const o=r.useRef(null),{itemHeight:a,value:s}=Tx("Picker.Item"),l=Lx("Picker.Item"),{key:c}=Ix("Picker.Item");r.useEffect(()=>l.registerOption(c,{value:n,element:o}),[c,l,n]);const u=r.useMemo(()=>({height:`${a}px`,display:"flex",justifyContent:"center",alignItems:"center"}),[a]),d=r.useCallback(()=>{l.change(c,n)},[l,c,n]);return Dx.jsx("div",{style:{...u,...e},ref:o,onClick:d,...i,children:Xx(t)?t({selected:s[c]===n}):t})}});var Rx={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}},Fx=function(e,t){return Rx[e]?Rx[e][t]:Rx.n[t]},Vx=function(t){var n=t.height,i=t.selections,o=t.defaults,a=void 0===o?{}:o,s=t.onChange,l=t.className,c=t.compareBy,u=void 0===c?"label":c,d=b(r.useState(a),2),p=d[0],f=d[1];return e.jsx(Qx,g({className:l,value:p,height:null!=n?n:216,onChange:function(e){var t={};Object.keys(e).forEach(function(n){var r=i[n].find(function(t){return t[u]===e[n]});r&&(t[n]=g({},r))}),f(e),s(t)}},{children:Object.keys(i).map(function(t){return e.jsx(Qx.Column,g({name:t},{children:i[t].map(function(n,r){return e.jsx(Qx.Item,g({value:n[u],className:pn({selected:n[u]===p[t]})},{children:function(){return e.jsx("div",g({style:{color:Fx(Math.abs(r-Object.values(i[t]).findIndex(function(e){return e[u]===p[t]})),"color"),fontSize:Fx(Math.abs(r-Object.values(i[t]).findIndex(function(e){return e[u]===p[t]})),"fontSize"),transition:"transform 200ms",cursor:"pointer"}},{children:n.label}))}}),t+n[u])})}),t)})}))},Gx=Cr({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 Wx(t){var n,r=t.state,i=v(t,["state"]),o=h.default.useRef(null),a=sp(i,r,o).tabPanelProps;return e.jsx("div",g({},a,{ref:o},{children:null===(n=r.selectedItem)||void 0===n?void 0:n.props.children}))}Wx.displayName="Mindly.TabPanel";var Yx=Cr({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"}]}),Ux=Yx(),Kx=Ux.tab,qx=Ux.tabText;function Jx(t){var n=t.item,i=t.state,o=n.key,a=n.rendered,s=n.props,l=h.default.useRef(null),c=function(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:o}=e,{selectionManager:a,selectedKey:s}=t,l=r===s,c=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=Zd({selectionManager:a,key:r,ref:n,isDisabled:c,shouldSelectOnPressUp:o,linkBehavior:"selection"}),p=ap(t,r,"tab"),f=ap(t,r,"tabpanel"),{tabIndex:h}=u,g=t.collection.getItem(r),v=lc(null==g?void 0:g.props,{labelable:!0});delete v.id;let m=Oc(null==g?void 0:g.props),{focusableProps:x}=_u({isDisabled:c},n);return{tabProps:tc(v,x,m,u,{id:p,"aria-selected":l,"aria-disabled":c||void 0,"aria-controls":l?f:void 0,tabIndex:c?void 0:h,role:"tab"}),isSelected:l,isDisabled:c,isPressed:d}}({key:o},i,l),u=c.tabProps,d=c.isSelected,p=c.isPressed,f=s.onClick,v=s.className,m=s.textTransform,x=void 0===m?"capitalize":m,y=r.useMemo(function(){return Kx({isPressed:p,isSelected:d,className:v})},[p,d,v]),b=r.useMemo(function(){return qx({textTransform:x})},[x]),A=up(function(e){(null==u?void 0:u.onClick)&&u.onClick(e),f&&f()});return e.jsx("button",g({},u,{onClick:A,ref:l,className:y},{children:e.jsx(mn,g({align:"center",variant:exports.TypographyVariantsEnum.Text14Semi,opacity:d?100:65,className:b},{children:a}))}))}var Zx=rl,_x=Yx(),$x=_x.tabList,ey=_x.tabs;function ty(t){var n,i=Pl(t),o=h.default.useRef(null),a=function(e,t,n){let{orientation:i="horizontal",keyboardActivation:o="automatic"}=e,{collection:a,selectionManager:s,disabledKeys:l}=t,{direction:c}=bd(),u=r.useMemo(()=>new lp(a,c,i,l),[a,l,i,c]),{collectionProps:d}=Jd({ref:n,selectionManager:s,keyboardDelegate:u,selectOnFocus:"automatic"===o,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),p=Gl();return op.set(t,p),{tabListProps:{...tc(d,Sc({...e,id:p})),role:"tablist","aria-orientation":i,tabIndex:void 0}}}(t,i,o).tabListProps,s=b(r.useState(function(){return{width:0,transform:"translateX(0)"}}),2)[1];r.useEffect(function(){var e,t=null===(e=o.current)||void 0===e?void 0:e.querySelector('[role="tab"][aria-selected="true"]');t&&s({width:t.offsetWidth,transform:"translateX(".concat(t.offsetLeft,"px)")})},[i.selectedKey]);var l=function(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,o=r.useRef({isFocused:!1,isFocusVisible:t||Gu()}),[a,s]=r.useState(!1),[l,c]=r.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=r.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=r.useCallback(e=>{o.current.isFocused=e,s(e),u()},[u]);Uu(e=>{o.current.isFocusVisible=e,u()},[],{isTextInput:n});let{focusProps:p}=qu({isDisabled:i,onFocusChange:d}),{focusWithinProps:f}=$u({isDisabled:!i,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:i?f:p}}({within:!0}).focusProps;return e.jsxs("div",g({className:pn(ey({orientation:t.orientation}),t.className)},{children:[e.jsx("div",g({className:$x()},{children:e.jsx("div",g({},tc(a,l),{className:"flex",ref:o},{children:A([],b(i.collection),!1).map(function(t){return e.jsx(Jx,{item:t,state:i},t.key)})}))})),e.jsx(Wx,{state:i},null===(n=i.selectedItem)||void 0===n?void 0:n.key)]}))}ty.displayName="Mindly.Tabs";var ny=Cr({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:exports.TypographyVariantsEnum.Text14Semi,titleVariant:exports.TypographyVariantsEnum.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-background-anti-flash-light",iconVariant:exports.TypographyVariantsEnum.Title24Semi,titleVariant:exports.TypographyVariantsEnum.Text15Semi},badge:{root:"gap-1",iconVariant:exports.TypographyVariantsEnum.Badge12Semi,titleVariant:exports.TypographyVariantsEnum.Badge12Semi}}}}),ry=function(t){var n=t.t,r=t.variant,i=void 0===r?"default":r,o=t.percent,a=t.className,s=t.onOpenArticle,l=ny({variant:i}),c=l.iconVariant,u=l.titleVariant,d=l.root;return"badge"===i?e.jsxs(bo,g({className:"whitespace-nowrap",variant:"success",size:"S"},{children:["🏆 ",null==n?void 0:n("therapist_list_item.super_specialist.title")]})):e.jsxs("div",g({className:pn(d(),a)},{children:[e.jsx(mn,g({variant:c()},{children:"🏆"})),e.jsxs("div",g({className:pn({"gap-0.5":"full"===i})},{children:[e.jsx(mn,g({variant:u()},{children:null==n?void 0:n("therapist_list_item.super_specialist.title")})),"full"===i&&e.jsxs(e.Fragment,{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text13Regular150},{children:null==n?void 0:n("therapist_list_item.super_specialist.description",{count:o})})),e.jsx(Or,g({fill:"outline",size:"small",className:"!mt-3",onClick:s},{children:null==n?void 0:n("therapist_list_item.super_specialist.button")}))]})]}))]}))},iy=h.default.memo(function(t){var n=t.className,i=t.percentMatch,o=t.children,a=r.useMemo(function(){return i>=80?"--color-info-green":"--color-info-orange"},[i]),s=r.useMemo(function(){return i>=80?"bg-badges-success-main":"bg-badges-attention-main"},[i]);return e.jsxs("div",g({className:pn("relative inline-flex justify-center items-center rounded-full p-[4px]",n),style:{background:"conic-gradient(rgba(var(".concat(a,")) ").concat(i,"%, #ffffff ").concat(i,"% 100%)")}},{children:[i>0&&e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Badge12Semi,className:pn("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",s)},{children:[i,"%"]})),e.jsx("div",g({className:"relative z-10 bg-color-white rounded-full"},{children:o}))]}))}),oy=h.default.memo(function(t){var n=t.className,r=t.title,i=t.children;return e.jsxs("div",g({className:pn("flex items-start gap-2 relative py-4 w-full border-color-black/10 border-b last:border-none",n)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,className:"text-typography-typography-tertiary w-[35%]"},{children:r})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,className:"w-[65%]"},{children:i}))]}))}),ay=h.default.memo(function(t){var n=t.children,r=t.className,i=v(t,["children","className"]);return e.jsx("button",g({className:pn("flex items-center gap-1 underline",r)},i,{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Semi},{children:n}))}))}),sy=Cr({slots:{textVariant:"",dot:"",icon:"-translate-y-0.5"},variants:{size:{default:{textVariant:exports.TypographyVariantsEnum.Title18Semi,icon:"w-6 h-6",dot:"w-5 h-5"},small:{textVariant:exports.TypographyVariantsEnum.Text14Regular,icon:"w-4 h-4",dot:"w-2 h-2"},large:{textVariant:exports.TypographyVariantsEnum.Title28Semi,icon:"w-6 h-6",dot:"w-5 h-5"}}}}),ly=function(t){var n=t.className,r=t.rating,i=t.reviews,o=t.t,a=t.size,s=void 0===a?"default":a,l=t.endAdornment,c=t.onClick,u=sy({size:s}),d=u.textVariant,p=u.icon,f=u.dot,h=d();return e.jsxs("div",g({className:pn("flex items-center gap-1",{"cursor-pointer":!!c},n),onClick:c},{children:[e.jsx(mn,g({variant:h},{children:e.jsxs("div",g({className:"flex items-center"},{children:[e.jsx(ui,{className:p()})," ",Number.isInteger(r)?r.toFixed(1):Mh(r)]}))})),e.jsx(Mi,{className:f()}),e.jsx(mn,g({variant:h},{children:null==o?void 0:o("therapist_list_item.number_of_reviews",{count:i})})),l]}))},cy=Cr({slots:{root:"border-b"},variants:{variant:{default:{root:"border-borders-divider"}}}}),uy=function(t){var n=t.className,r=t.variant,i=cy({variant:void 0===r?"default":r}).root;return e.jsx("div",{className:pn(i(),n)})},dy=function(t){var n=t.t,r=t.className;return e.jsxs("div",g({className:pn("flex flex-col gap-2 items-center",r)},{children:[e.jsx(Fi,{}),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi},{children:null==n?void 0:n("empty_list.title")}))]}))},py=Cr({slots:{iconVariant:"",titleVariant:"",root:"flex items-center"},variants:{variant:{default:{root:"gap-2",iconVariant:exports.TypographyVariantsEnum.Text14Semi,titleVariant:exports.TypographyVariantsEnum.Text14Regular},full:{root:"gap-4 p-5 rounded-3xl bg-color-info-light-blue",iconVariant:exports.TypographyVariantsEnum.Title24Semi,titleVariant:exports.TypographyVariantsEnum.Text15Semi},badge:{root:"gap-1",iconVariant:exports.TypographyVariantsEnum.Badge12Semi,titleVariant:exports.TypographyVariantsEnum.Badge12Semi}}}}),fy=function(t){var n=t.variant,r=void 0===n?"badge":n,i=t.className,o=t.t,a=t.onOpenArticle,s=py({variant:r}),l=s.iconVariant,c=s.titleVariant,u=s.root;return"badge"===r?e.jsx(bo,g({className:pn("whitespace-nowrap",i),variant:"info",type:"default",size:"S"},{children:e.jsx("div",g({className:"text-badges-info-secondary"},{children:null==o?void 0:o("therapist_list_item.badge_new_speclialist")}))})):e.jsxs("div",g({className:pn(u(),i)},{children:[e.jsx(mn,g({variant:l()},{children:"👋"})),e.jsxs("div",g({className:pn({"gap-0.5":"full"===r})},{children:[e.jsx(mn,g({variant:c()},{children:null==o?void 0:o("therapist_list_item.badge_new_speclialist")})),"full"===r&&e.jsxs(e.Fragment,{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text13Regular150},{children:null==o?void 0:o("therapist_list_item.text_new_speclialist")})),e.jsx(Or,g({fill:"outline",size:"small",className:"!mt-3",onClick:a},{children:null==o?void 0:o("therapist_list_item.super_specialist.button")}))]})]}))]}))},hy="SolidInput-module_ionItem__YcaUP",gy="SolidInput-module_label__Ab6yt",vy="SolidInput-module_input__vo6I4";K(".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 my=r.forwardRef(function(t,i){var o=t.placeholder,a=t.value,s=t.name,l=t.type,c=void 0===l?"text":l,u=t.itemClassName,d=t.inputClassName,p=t.labelClassName,f=t.onChange,h=t.onKeyDown,v=t.errorText,m=t.isInvalid,x=b(r.useState(c),2),y=x[0],A=x[1];return e.jsxs(n.IonItem,g({className:pn(hy,{"ion-invalid":m||!!v},u),fill:"solid",lines:"none"},{children:[e.jsx(n.IonLabel,g({position:"floating",className:pn(gy,p)},{children:o})),e.jsx(n.IonInput,{type:y,name:s,className:pn(vy,d),placeholder:o,onIonChange:f,value:a,onKeyDown:h,ref:i}),v&&e.jsx(n.IonNote,g({slot:"error"},{children:v})),"password"===c&&e.jsx("span",g({slot:"end",onClick:function(){A(function(e){return"password"===e?"text":"password"})},className:"cursor-pointer text-typography-typography-primary/50 [&_path]:fill-[currentColor]"},{children:"password"===y?e.jsx(fi,{fill:"currentColor"}):e.jsx(hi,{fill:"currentColor"})}))]}))});my.displayName="SolidInput";var xy=Cr({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)]"}}}}),yy="CountryOfOriginModal-module_ionListItem__-Qb7F",by="CountryOfOriginModal-module_countryOfOriginContent__nQqkG";K(".CountryOfOriginModal-module_ionListItem__-Qb7F::part(native){padding:0}.CountryOfOriginModal-module_countryOfOriginContent__nQqkG::part(content){--width:100%;--height:100%}",{insertAt:"top"});var Ay=function(t){var i=t.onSearchChange,o=t.onItemClick,a=t.searchValue,s=t.countries,l=t.searchPlaceholder,c=t.t,u=v(t,["onSearchChange","onItemClick","searchValue","countries","searchPlaceholder","t"]),d=r.useRef(null),p=r.useCallback(function(){var e;null===(e=d.current)||void 0===e||e.dismiss()},[]);return e.jsxs(n.IonModal,g({},u,{ref:d,className:by},{children:[e.jsx(Oo,{children:e.jsx(px,{className:"pt-1.5 pb-3",onCancelClick:p,onIonChange:i,value:a,placeholder:l,t:c})}),e.jsx(Qr,{children:e.jsx(n.IonList,g({lines:"none",mode:"ios"},{children:null==s?void 0:s.map(function(t,r){return e.jsx(n.IonItem,g({onClick:function(){o&&o(t)},className:pn("h-[46px] cursor-pointer",yy)},{children:e.jsx(mn,g({className:"m-0"},{children:t}))}),"".concat(t,"_").concat(r))})}))})]}))},wy="ChangeLanguageModal-module_changeLanguageModal__C9qGV";K(".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 Cy={fullScreen:"CardModal-module_fullScreen__AWPlQ",toolbar:"CardModal-module_toolbar__cm7wd"};K(".CardModal-module_fullScreen__AWPlQ{--height:100vh;--width:100vw}.CardModal-module_toolbar__cm7wd{--padding-top:0}",{insertAt:"top"});var jy=h.default.forwardRef(function(t,r){var i,o=t.isOpen,a=t.presentingElement,s=t.onDidDismiss,l=t.children,c=t.backButton,u=t.renderHeader,d=t.canDismiss,p=void 0===d||d,f=t.isShowHandle,v=void 0===f?n.isPlatform("ios")&&!n.isPlatform("desktop"):f,m=t.isShowCloseButton,x=void 0===m||m,y=t.mode,b=t.title,A=t.subtitle,w=t.leftContent,C=t.onDidPresent,j=t.onCloseClick,P=cp(r),O=h.default.useCallback(function(){var e;null===(e=P.current)||void 0===e||e.dismiss(),null==j||j()},[P.current]),B=up(function(){document.body.style.backgroundColor="",null==s||s()}),D=up(function(){document.body.style.backgroundColor=""});return e.jsxs(n.IonModal,g({ref:P,mode:y,isOpen:o,canDismiss:p,presentingElement:a,onDidDismiss:B,onWillDismiss:D,className:pn((i={},i[Cy.fullScreen]=!n.isPlatform("hybrid"),i)),onDidPresent:C},{children:[u?u({backButton:c,onClose:O}):e.jsxs(Oo,g({className:pn("relative",Cy.header)},{children:[v&&e.jsx("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]"}),e.jsxs("div",g({className:pn("relative grid grid-cols-5 col-span-1",{"pt-[17.5px]":v,"pt-[7.5px]":!v})},{children:[e.jsx("div",g({slot:"start",className:pn({"order-first justify-self-start flex items-center":!c,"order-last justify-self-end flex items-center":c})},{children:w})),e.jsxs("div",g({className:"flex flex-col items-center self-center justify-center order-2 col-span-3"},{children:[b&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Semi,align:"center"},{children:b})),A&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text13Regular,align:"center",opacity:50},{children:A}))]})),e.jsx("div",g({className:pn("col-span-1",{"order-first justify-self-start flex items-center":c,"order-last justify-self-end flex items-center":!c})},{children:x&&e.jsx(Em,{className:"self-center",onClick:O,icon:c?e.jsx(si,{className:"!text-typography-typography-primary"}):e.jsx(ai,{className:"!text-typography-typography-primary"})})}))]}))]})),l]}))});jy.displayName="CardModal";var Py=Cr({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 Oy=f.memo(function(t){var n=t.isSelected,r=t.isDisabled,i=t.time,o=t.className,a=t.onSelectionChange,s=Py({isSelected:n,isDisabled:r}).listItem;return e.jsx("button",g({onClick:a,disabled:r},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:s({className:o})},{children:i}))}))});var By=h.default.memo(function(t){var n=t.times,i=void 0===n?[]:n,o=t.selectedKeys,a=t.onSelectionChange,s=t.classNameSlot,l=t.classNameList,c=t.isDisabled,u=void 0!==c&&c,d=r.useCallback(function(e){return o.has(e)},[o]),p=r.useMemo(function(){return Py()},[u,l]).list;return e.jsx("ul",g({className:p({isDisabled:u,className:l})},{children:i.map(function(t){return e.jsx(Oy,{time:t,className:s,isDisabled:u,isSelected:d(t),onSelectionChange:function(){return!u&&a(t)}},t)})}))});var Dy=function(t){var n=t.t,i=t.matchVariant,o=void 0===i?"badge":i,a=t.match,s=t.fullName,l=t.avatarLink,c=t.countryCode,u=t.yearsOfExperience,d=t.className,p=t.avatarProps,f=t.rating,h=t.reviews,v=t.isSpecialistUnAvailable,m=void 0!==v&&v,x=t.isAuth,y=void 0===x||x,b=t.variantFullName,A=t.isFavourite,w=t.onClickReview,C=t.onToggleFavourite,j=t.children,P=t.video_link,O=t.onVideoPlay,B=r.useMemo(function(){return e.jsx(Ir,g({alt:"avatar",round:"drop",variant:"xl",src:l},p))},[l,p]),D=r.useMemo(function(){return P?e.jsx(ux,g({src:P||"",hiddenVideo:!0,isWithPlay:!0,buttonPlacement:"bottom-right",buttonSize:"small",variant:ax.blue,onPlay:O},{children:B})):B},[B,P]);return e.jsxs("div",g({className:pn("container flex items-center",d)},{children:["avatar"===o&&!m&&y&&a?e.jsx(iy,g({percentMatch:a},{children:D})):D,e.jsxs("div",g({className:"flex-1 ml-4"},{children:[e.jsxs("div",g({className:pn("flex items-center",{"-mt-2":C})},{children:[e.jsxs(mn,g({variant:b||exports.TypographyVariantsEnum.Text20Semi,className:"[hyphenate-character:''] hyphens-auto [word-break:break-word]"},{children:[s,c&&e.jsx(Vr,{name:c,className:"mx-1 w-5 h-6 !inline"}),e.jsx(di,{size:20,className:"min-w-5 !inline -mt-2"})]})),C&&e.jsx("div",g({className:"flex-shrink-0 ml-auto mr-0"},{children:e.jsx(Em,{onClick:function(e){e.stopPropagation(),null==C||C()},icon:e.jsx(Ni,{filled:A}),className:"cursor-pointer w-4 p-2 relative"})}))]})),u&&e.jsx(mn,g({opacity:50,variant:exports.TypographyVariantsEnum.Text13Regular},{children:null==n?void 0:n("therapist_list_item.years_of_experience",{count:u})})),"number"==typeof f&&"number"==typeof h&&e.jsx(ly,{rating:f,reviews:h,size:"small",t:n,endAdornment:w&&e.jsx(ei,{}),onClick:w}),j]}))]}))},ky=function(t){var n=t.t,i=t.rating,o=void 0===i?0:i,a=t.reviews,s=void 0===a?0:a,l=t.yearsOfExperience,c=t.hoursOfPractice,u=t.sessionPrice,d=t.currentPriceType,p=t.sessionDurationMinutes,f=t.className,h=t.userBalance,v=void 0===h?0:h,m=t.locale,x="number"==typeof l?"w-1/3":"w-1/2",y=r.useMemo(function(){return v?v/100:0},[v]),b=r.useMemo(function(){return"number"==typeof y&&y>0?Math.max(u-y,0):u},[u,y]),A=r.useMemo(function(){return b<u},[b,u]);return e.jsxs("div",g({className:pn("flex flex-1 w-full gap-4",f)},{children:[e.jsxs("div",g({className:pn("flex flex-col",x)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:gg({price:b,locale:m,currency:d,roundingTo:0,extendedUsd:!0})})),A?e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:"line-through"},{children:[gg({price:u,locale:m,currency:d,roundingTo:0,mode:"sign",side:"left"}),"/",null==n?void 0:n("therapist_list_item.pre_session_short")]})):e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.session_duration",{value:p})}))]})),!!l&&e.jsxs("div",g({className:pn("flex flex-col",x)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:null==n?void 0:n("therapist_list_item.years_of_experience",{count:l})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.years_of_experience_label")}))]})),!!s&&!!o&&e.jsxs("div",g({className:pn("flex flex-col",x)},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:e.jsxs("div",g({className:"flex items-center"},{children:[e.jsx(ui,{className:"w-4 h-4 mr-1"})," ",Mh(o)]}))})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.number_of_reviews",{count:s})}))]})),c&&e.jsxs("div",g({className:"flex flex-col w-1/2"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Semi},{children:c&&(null==n?void 0:n("therapist_list_item.hours_of_practice",{value:Lh(c),count:c}))})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular},{children:null==n?void 0:n("therapist_list_item.hours_of_practice_label")}))]}))]}))},Ey=function(t){return e.jsxs("svg",g({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t,{children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("rect",{x:"7",y:"11",width:"10",height:"2",fill:"#D9D9D9"})]}))},zy=function(t){var n=t.items,r=t.name,i=t.type,o=t.onChange,a=t.values,s=void 0===a?[]:a;return e.jsx("ul",{children:n.map(function(t,a){var l=t.value,c=t.label,u=t.id,d=l||c;return e.jsx("li",g({className:pn("flex p-0 cursor-pointer list-none outline-none",{"border-b border-borders-divider":a!==n.length-1})},{children:e.jsx(Ov,{checked:s.includes(d),type:i,name:r,value:d,label:c,id:u,onChange:function(e){if(i===exports.SelectItemType.Checkbox){var t=s.find(function(t){return t===e});o(t?s.filter(function(e){return e!==t}):A(A([],b(s),!1),[e],!1))}else o([e])}})}),a)})})};const Sy=l.registerPlugin("Share",{web:()=>Promise.resolve().then(function(){return Zce}).then(e=>new e.ShareWeb)});class Ty extends l.WebPlugin{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 Hy=l.registerPlugin("Clipboard",{web:()=>new Ty});var Ly="ShareModalFeature-module_container__sTTuu",My="ShareModalFeature-module_withShare__4PNgP";K(".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 Ny=r.memo(function(t){var n=t.t,r=t.name,o=t.date,a=t.avatar,s=t.locale,l=t.timezone,c=t.onUserClick;return e.jsxs("div",g({className:"flex flex-col justify-center items-center"},{children:[e.jsxs("div",g({onClick:null!=c?c:void 0,className:"cursor-pointer flex flex-col justify-center items-center"},{children:[e.jsx(Ir,{src:a,alt:r,variant:"medium"}),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"mt-3 mb-1"},{children:r}))]})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50},{children:i.DateTime.fromJSDate(o).setZone(l).setLocale(s).toFormat("dd MMMM yyyy HH:mm")})),e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"mb-4"},{children:[l," (",i.DateTime.local().setLocale(s).setZone(l).toFormat("ZZZZ"),")"]})),i.DateTime.now()<i.DateTime.fromJSDate(o)&&e.jsx(bo,g({variant:"success",type:"accent",className:"!bg-color-info-mint"},{children:null==n?void 0:n("payments.session_details.future_session.badge")}))]}))}),Iy=function(t){var n=t.className;return e.jsxs("div",g({className:n},{children:[e.jsx("div",g({className:"flex justify-center mb-14"},{children:e.jsx(Nr,{className:"rounded-[28px] w-[142px] h-[30px]"})})),e.jsxs(Co,g({variant:"neutral"},{children:[e.jsxs("div",g({className:"flex justify-between my-1 pb-4 border-b border-color-black border-opacity-10"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[102px] h-[14px]"}),e.jsx(Nr,{className:"rounded-[12px] w-[74px] h-[14px]"})]})),e.jsxs("div",g({className:"flex justify-between my-1 py-4 border-b border-color-black border-opacity-10"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[142px] h-[14px]"}),e.jsx(Nr,{className:"rounded-[12px] w-[50px] h-[14px]"})]})),e.jsxs("div",g({className:"flex justify-between my-1 pt-4"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[62px] h-[14px]"}),e.jsx(Nr,{className:"rounded-[12px] w-[97px] h-[14px]"})]}))]}))]}))},Xy=function(t){var n=t.className;return e.jsxs("div",g({className:"".concat(n," flex flex-col justify-center items-center")},{children:[e.jsx(Nr,{className:"rounded-full w-[72px] h-[72px] !mb-4"}),e.jsxs("div",g({className:"my-1 flex flex-col items-center"},{children:[e.jsx(Nr,{className:"rounded-[12px] w-[142px] h-[14px] !mb-2"}),e.jsx(Nr,{className:"rounded-[12px] w-[94px] h-[10px]"})]}))]}))},Qy=r.memo(function(t){var n,i,o,a,s,l,c=t.t,u=t.consultation,d=t.isLoading,p=t.locale,f=t.timezone,h=t.onUserClick,v=r.useMemo(function(){var e,t,n,r,i,o,a,s=function(e){return.01*(null!=e?e:0)},l=u.payment;if(!l)return{};var c=null!==(e=null==l?void 0:l.price_local_original_by_specialist_in_cents)&&void 0!==e?e:0,d=null!==(t=(null==l?void 0:l.promocode_discount)||(null==l?void 0:l.subscription_discount))&&void 0!==t?t:0,p=1-d,f=Math.round(c/p),h=0,g=0;(null==l?void 0:l.promocode_discount)&&(null==l?void 0:l.promocode_discount)>0?h=f-c:g=f-c;var v=u.subscriptionId?null!==(n=l.commission)&&void 0!==n?n:0:1,m=Math.round(c*v),x=c-m;return{localCurrency:null!==(r=null==l?void 0:l.currency_local)&&void 0!==r?r:exports.SupportedCurrency.UAH,discount:d,sessionsCount:null!==(i=null==l?void 0:l.subscription_sessions_count)&&void 0!==i?i:0,interval:null!==(o=null==l?void 0:l.subscription_interval_in_month)&&void 0!==o?o:0,sessionLocalPrice:s(f),promocodeLocalPrice:s(h),discountLocalPrice:s(g),sessionLocalPriceAfterDiscount:s(c),commissionLocalPrice:s(m),localSpecialistRevenue:s(x),commission:null!==(a=null==l?void 0:l.commission)&&void 0!==a?a:0}},[u]),m=[{text:null==c?void 0:c("payments.session_details.price.title"),localPrice:mg({price:null!==(n=v.sessionLocalPrice)&&void 0!==n?n:0,locale:p}),isBold:!1}];return(v.interval||v.promocodeLocalPrice)&&m.push({text:"".concat(null==c?void 0:c(v.promocodeLocalPrice?"payments.session_details.promocode.title":"payments.session_details.discount.title",{discount:(l=100*v.discount,Math.round(100*l)/100)}),"%"),localPrice:"-".concat(mg({price:v.promocodeLocalPrice||v.discountLocalPrice,locale:p})),isBold:!1},{text:null==c?void 0:c("payments.session_details.session_amount.title"),localPrice:mg({price:v.sessionLocalPriceAfterDiscount,locale:p}),isBold:!0}),m.push({text:"".concat(null==c?void 0:c("payments.session_details.fee.title",{fee:100*(null!==(i=v.commission)&&void 0!==i?i:0)}),"%"),localPrice:"-".concat(mg({price:null!==(o=v.commissionLocalPrice)&&void 0!==o?o:0,locale:p})),isBold:!1},{text:null==c?void 0:c("payments.session_details.total.title"),localPrice:mg({price:null!==(a=v.localSpecialistRevenue)&&void 0!==a?a:0,locale:p}),isBold:!0}),d?e.jsxs(e.Fragment,{children:[e.jsx(Xy,{className:"mb-14"}),e.jsx(Iy,{})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",g({className:"mb-8"},{children:e.jsx(Ny,{t:c,name:u.name,date:u.date,avatar:u.avatar,locale:p,timezone:f,onUserClick:h})})),e.jsx("div",g({className:"mb-8"},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title48Semi,className:"mb-2 text-center"},{children:mg({price:null!==(s=v.localSpecialistRevenue)&&void 0!==s?s:0,locale:p})}))})),e.jsxs(Co,g({className:"mb-5 !border-opacity-35 flex justify-between",variant:"neutral",size:"M"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center"},{children:null==c?void 0:c("payments.session_details.type.title")})),e.jsxs("div",{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:100,className:"text-typography-typography-secondary text-right"},{children:v.interval?null==c?void 0:c("payments.session_details.type.subscription"):null==c?void 0:c("payments.session_details.type.trial")})),!!v.interval&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:null==c?void 0:c("payments.session_details.type.subscription_item",{count:v.sessionsCount,period:v.interval})}))]})]})),e.jsx(Co,g({className:"mb-5 !border-opacity-35",variant:"neutral",size:"M"},{children:m.map(function(t,n){return e.jsxs("div",g({className:"flex justify-between border-color-black border-opacity-10 ".concat(n<m.length-1?"pb-10":"")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center w-2/3"},{children:t.text})),e.jsx("div",g({className:"flex flex-col items-end w-1/3"},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum[t.isBold?"Text16Semi":"Text16Regular"],opacity:100,className:"text-typography-typography-primary"},{children:t.localPrice}))}))]}),"item-".concat(n))})}))]})}),Ry=r.memo(function(t){var n,i=t.t,o=t.consultation,a=t.isLoading,s=t.locale,l=t.timezone,c=t.onUserClick,u=r.useMemo(function(){var e,t,n,r,i,a,s,l=function(e){return.01*(null!=e?e:0)},c=o.payment;return{localCurrency:null!==(e=null==c?void 0:c.currency_local)&&void 0!==e?e:exports.SupportedCurrency.UAH,mainCurrency:null!==(t=null==c?void 0:c.currency_default)&&void 0!==t?t:exports.SupportedCurrency.EUR,exchangeRate:null!==(n=null==c?void 0:c.exchange_rate)&&void 0!==n?n:1,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!==(a=null==c?void 0:c.subscription_interval_in_month)&&void 0!==a?a:0,sessionMainPrice:l(null==c?void 0:c.price_default_original_in_cents),sessionLocalPrice:l(null==c?void 0:c.price_local_original_by_exchange_rate_in_cents),discountMainPrice:l(null==c?void 0:c.price_default_discount_in_cents),discountLocalPrice:l(null==c?void 0:c.price_local_discount_by_exchange_rate_in_cents),promocodeMainPrice:l(null==c?void 0:c.price_default_promocode_in_cents),promocodeLocalPrice:l(null==c?void 0:c.price_local_promocode_by_exchange_rate_in_cents),sessionMainPriceAfterDiscount:l(null==c?void 0:c.price_default_in_cents),sessionLocalPriceAfterDiscount:l(null==c?void 0:c.price_local_by_exchange_rate_in_cents),commissionMainPrice:l(null==c?void 0:c.price_default_commission_in_cents),commissionLocalPrice:l(null==c?void 0:c.price_local_commission_by_exchange_rate_in_cents),mainSpecialistRevenue:l(null==c?void 0:c.price_default_after_commission_in_cents),localSpecialistRevenue:l(null==c?void 0:c.price_local_after_commission_by_exchange_rate_in_cents),commission:null!==(s=null==c?void 0:c.commission)&&void 0!==s?s:0}},[o]),d=[{text:null==i?void 0:i("payments.session_details.price.title"),mainPrice:mg({price:u.sessionMainPrice,locale:s,mode:"sign"}),localPrice:gg({price:u.sessionLocalPrice,locale:s}),isBold:!1}];return(u.interval||u.promocodeMainPrice)&&d.push({text:"".concat(null==i?void 0:i(u.promocodeMainPrice?"payments.session_details.promocode.title":"payments.session_details.discount.title",{discount:(n=100*u.discount,Math.round(100*n)/100)}),"%"),mainPrice:"-".concat(mg({price:u.promocodeMainPrice||u.discountMainPrice,locale:s,mode:"sign"})),localPrice:"-".concat(gg({price:u.promocodeLocalPrice||u.discountLocalPrice,locale:s})),isBold:!1},{text:null==i?void 0:i("payments.session_details.session_amount.title"),mainPrice:mg({price:u.sessionMainPriceAfterDiscount,locale:s,mode:"sign"}),localPrice:gg({price:u.sessionLocalPriceAfterDiscount,locale:s}),isBold:!0}),d.push({text:"".concat(null==i?void 0:i("payments.session_details.fee.title",{fee:100*u.commission}),"%"),mainPrice:"-".concat(mg({price:u.commissionMainPrice,locale:s,mode:"sign"})),localPrice:"-".concat(gg({price:u.commissionLocalPrice,locale:s})),isBold:!1},{text:null==i?void 0:i("payments.session_details.total.title"),mainPrice:mg({price:u.mainSpecialistRevenue,locale:s,mode:"sign"}),localPrice:gg({price:u.localSpecialistRevenue,locale:s}),isBold:!0}),a?e.jsxs(e.Fragment,{children:[e.jsx(Xy,{className:"mb-14"}),e.jsx(Iy,{})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",g({className:"mb-8"},{children:e.jsx(Ny,{t:i,name:o.name,date:o.date,avatar:o.avatar,locale:s,timezone:l,onUserClick:c})})),e.jsxs("div",g({className:"mb-8"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title48Semi,className:"mb-2 text-center"},{children:mg({price:u.mainSpecialistRevenue,locale:s,mode:"sign"})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-center"},{children:gg({price:u.localSpecialistRevenue,locale:s})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-center"},{children:null==i?void 0:i("payments.session_details.exchange_rate.subtitle",{rate:u.exchangeRate})}))]})),e.jsxs(Co,g({className:"mb-5 !border-opacity-35 flex justify-between",variant:"neutral",size:"M"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center"},{children:null==i?void 0:i("payments.session_details.type.title")})),e.jsxs("div",{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:100,className:"text-typography-typography-secondary text-right"},{children:u.interval?null==i?void 0:i("payments.session_details.type.subscription"):null==i?void 0:i("payments.session_details.type.trial")})),!!u.interval&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:null==i?void 0:i("payments.session_details.type.subscription_item",{count:u.sessionsCount,period:u.interval})}))]})]})),e.jsx(Co,g({className:"mb-5 !border-opacity-35",variant:"neutral",size:"M"},{children:d.map(function(t,n){return e.jsxs("div",g({className:"flex justify-between border-color-black border-opacity-10 ".concat(n<d.length-1?"pb-5":"")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,opacity:50,className:"text-typography-typography-secondary flex items-center w-2/3"},{children:t.text})),e.jsxs("div",g({className:"flex flex-col items-end w-1/3"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum[t.isBold?"Text16Semi":"Text16Regular"],opacity:100,className:"text-typography-typography-primary"},{children:t.mainPrice})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:t.localPrice}))]}))]}),"item-".concat(n))})}))]})}),Fy=r.memo(function(t){return t.locale===exports.SupportedLocales.en?e.jsx(Qy,g({},t)):e.jsx(Ry,g({},t))});function Vy(e){var t=i.DateTime.fromJSDate(null!=e?e:"").month,n=i.DateTime.fromJSDate(null!=e?e:"").year,r=i.DateTime.now().day,o=i.DateTime.now().month,a=i.DateTime.now().year,s={isPreviousMonth:!1,isOldMonth:!1,isCurrentMonth:!1,isFutureMonth:!1};return a>=n&&(a>n||o>t+1?s.isOldMonth=!0:a===n&&o===t+1?r<=10?s.isPreviousMonth=!0:s.isOldMonth=!0:a===n&&o===t&&(s.isCurrentMonth=!0)),s.isFutureMonth=!s.isPreviousMonth&&!s.isOldMonth&&!s.isCurrentMonth,s}function Gy(e,t){var n=i.DateTime.utc(new Date(e).getUTCFullYear(),new Date(e).getUTCMonth()+1,2);return t&&(n=n.setLocale(t)),n.toFormat("LLLL yyyy")}function Wy(e){var t=e.date,n=e.locale,o=Vy(t),a=o.isOldMonth,s=o.isCurrentMonth;return r.useMemo(function(){var e=i.DateTime.fromObject({year:(a?i.DateTime.fromJSDate(t):i.DateTime.now()).year,month:(a?i.DateTime.fromJSDate(t):i.DateTime.now()).month,day:10});return(a||s)&&(e=e.plus({month:1})),n&&(e=e.setLocale(n)),e.toFormat("d MMMM yyyy")},[t,n,a])}var Yy={previous:"previous",future:"future"};var Uy=r.memo(function(t){var n=t.t,r=t.date,o=t.locale,a=t.className,s=new Date(r),l=Vy(s),c=l.isOldMonth,u=l.isPreviousMonth,d=Wy({date:i.DateTime.fromObject({year:i.DateTime.fromJSDate(s).year,month:i.DateTime.fromJSDate(s).month}).toJSDate(),locale:o}),p=Wy({date:s,locale:o});return c?e.jsx(bo,g({className:a,variant:"success"},{children:null==n?void 0:n("payments.payout_paid.badge",{date:d})})):u?e.jsx(bo,g({className:a,variant:"attention"},{children:null==n?void 0:n("payments.payout_in_progress.badge",{date:p})})):e.jsx(e.Fragment,{})}),Ky=Cr({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]"}}),qy=function(t){var n=t.className,r=Ky();return e.jsxs("div",g({className:"".concat(r.skeletonWrapper()," ").concat(n)},{children:[e.jsxs("div",g({className:"flex justify-start mb-9"},{children:[e.jsxs("div",g({className:"flex flex-col w-1/2"},{children:[e.jsx(Nr,{className:r.skeletonTLWTile()}),e.jsx(Nr,{className:r.skeletonTSWTile()})]})),e.jsxs("div",g({className:"flex flex-col w-1/2"},{children:[e.jsx(Nr,{className:r.skeletonTLWTile()}),e.jsx(Nr,{className:r.skeletonTSWTile()})]}))]})),e.jsxs("div",g({className:"flex justify-between"},{children:[e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(Nr,{className:r.skeletonBLNTile()}),e.jsx(Nr,{className:r.skeletonBSWTile()}),e.jsx(Nr,{className:r.skeletonBMWTile()})]})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(Nr,{className:r.skeletonBLNTile()}),e.jsx(Nr,{className:r.skeletonBSWTile()}),e.jsx(Nr,{className:r.skeletonBMWTile()})]})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(Nr,{className:r.skeletonBLNTile2()}),e.jsx(Nr,{className:r.skeletonBSWTile()}),e.jsx(Nr,{className:r.skeletonBMWTile2()})]}))]}))]}))},Jy=r.memo(function(t){var n,r=t.t,i=t.revenue,o=t.showRevenue,a=t.currencyProps,s=t.commissionRates,l=t.commissionValue,c=t.showCommission,u=t.calendarDate,d=t.totalSessionsCount,p=t.futureSessionsCount,f=t.isLoading,h=t.isInvoiceLoading,v=t.hideProgressBar,m=t.locale,x=t.onInvoiceClick,y=Object.keys(s).map(function(e,t,n){return{start:t-1>=0?parseInt(n[t-1],10)+1:1,end:parseInt(e,10),value:Number(s[Number(e)])}}),b=p;b>d&&(b=d);var A=d-b,w=Vy(u),C=w.isPreviousMonth,j=w.isOldMonth,P=w.isCurrentMonth,O=w.isFutureMonth,B=l||(null===(n=y[0])||void 0===n?void 0:n.value)||0;return e.jsxs(Co,g({variant:"neutral"},{children:[o&&e.jsxs("div",{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r(O||P?"payments.planned_income.title":"payments.income.title")})),e.jsxs("div",g({className:"flex justify-between items-center"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title48Semi,className:"text-typography-typography-secondary"},{children:mg(g({locale:m,price:Number(.01*(null!=i?i:0))},a||{}))})),j&&e.jsx(e.Fragment,{children:h?e.jsx(Wm,{}):e.jsx(xi,{className:"cursor-pointer",onClick:x})})]}))]}),f&&e.jsx("div",g({className:"mt-5"},{children:e.jsx(qy,{})})),!f&&e.jsxs(e.Fragment,{children:[o&&u&&e.jsx(Uy,{t:r,className:"mt-5 !block !w-fit",date:u,locale:m}),e.jsxs(e.Fragment,{children:[c&&e.jsxs("div",g({className:"inline-block w-1/2 ".concat(o?"mt-5":"")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r("payments.commission_rate.title")})),e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"text-typography-typography-secondary"},{children:[100*B,"%"]}))]})),e.jsxs("div",g({className:"\n ".concat(P?"w-full":""," \n ").concat(c&&P||o?"mt-5":""," \n inline-block\n ")},{children:[!O&&e.jsxs("div",g({className:"".concat(P?"w-1/2":""," inline-block")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r("payments.sessions_held.title")})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"text-typography-typography-secondary"},{children:A}))]})),!j&&!C&&e.jsxs("div",g({className:"".concat(O?"":"w-1/2"," inline-block")},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:null==r?void 0:r("payments.future_sessions.title")})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title20Semi,className:"text-typography-typography-secondary"},{children:b}))]}))]}))]}),!v&&e.jsx(Cx,{t:r,ranges:y,progress:A,maxValue:d,className:"mt-5"})]})]}))}),Zy=Cr({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"}}}}),_y=r.memo(function(t){var n,r,o,a,s=t.consultation,l=t.locale,c=t.consultationClick,u=Zy(),d=i.DateTime.fromJSDate(s.date).setLocale(null!=l?l:"uk").toFormat("dd MMMM yyyy");return s?e.jsxs("div",g({onClick:c?function(){return c(s)}:function(){return null},className:"".concat(u.consultationCard()," ").concat(c?"cursor-pointer":"")},{children:[e.jsxs("div",g({className:"flex flex-start items-center"},{children:[e.jsx("div",g({className:"mr-4"},{children:e.jsx(Ir,{src:s.avatar,alt:s.name})})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular},{children:s.name})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:d}))]}))]})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,className:"text-right"},{children:mg({locale:l,mode:"sign",price:.01*(null!==(r=null===(n=s.payment)||void 0===n?void 0:n.price_default_after_commission_in_cents)&&void 0!==r?r:0)})})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary text-right"},{children:gg({locale:l,price:.01*(null!==(a=null===(o=s.payment)||void 0===o?void 0:o.price_local_after_commission_by_exchange_rate_in_cents)&&void 0!==a?a:0)})}))]}))]})):e.jsx(e.Fragment,{})}),$y=r.memo(function(t){var n,r,o=t.consultation,a=t.locale,s=t.consultationClick,l=Zy(),c=i.DateTime.fromJSDate(o.date).setLocale(null!=a?a:"uk").toFormat("dd MMMM yyyy");return o?e.jsxs("div",g({onClick:s?function(){return s(o)}:function(){return null},className:"".concat(l.consultationCard()," ").concat(s?"cursor-pointer":"")},{children:[e.jsxs("div",g({className:"flex flex-start items-center"},{children:[e.jsx("div",g({className:"mr-4"},{children:e.jsx(Ir,{src:o.avatar,alt:o.name})})),e.jsxs("div",g({className:"flex flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular},{children:o.name})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,opacity:50,className:"text-typography-typography-secondary"},{children:c}))]}))]})),e.jsx("div",g({className:"flex flex-col"},{children:e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text16Regular,className:"text-right"},{children:mg({locale:a,price:.01*(null!==(r=null===(n=o.payment)||void 0===n?void 0:n.price_local_after_commission_by_exchange_rate_in_cents)&&void 0!==r?r:0)})}))}))]})):e.jsx(e.Fragment,{})}),eb=r.memo(function(t){return t.locale===exports.SupportedLocales.en?e.jsx($y,g({},t)):e.jsx(_y,g({},t))}),tb=r.memo(function(t){var n=t.consultations,r=t.locale,i=t.consultationClick;return e.jsx(e.Fragment,{children:n.map(function(t){return e.jsx(eb,{consultationClick:i,consultation:t,locale:r},t.id)})})}),nb=r.memo(function(t){var n=t.t,i=t.calendarDate,o=t.consultations,a=t.locale,s=t.futureCount,l=t.previousCount,c=t.defaultTab,u=t.consultationsModeTrigger,d=t.consultationClick,p=Zy(),f=b(r.useState(""),2),h=f[0],v=f[1],m=function(e){var t=e.t,n=e.date,i=e.defaultTab,o=e.futureCount,a=e.previousCount;return r.useMemo(function(){var e=Vy(new Date(n)),r=e.isPreviousMonth,s=e.isOldMonth,l=e.isCurrentMonth;if(r||s)return{activeTab:Yy.previous,tabs:[{label:t("payments.held_sessions.subtitle"),value:Yy.previous}]};if(l){var c=[];return a&&c.push({label:t(o?"payments.balance_details.held_tab":"payments.held_sessions.subtitle"),value:Yy.previous}),o&&c.push({label:t(a?"payments.balance_details.future_tab":"payments.future_sessions.title"),value:Yy.future}),{activeTab:Object.values(Yy).includes(null!=i?i:"")?i:a?Yy.previous:Yy.future,tabs:c}}return{activeTab:Yy.future,tabs:[{label:t("payments.future_sessions.title"),value:Yy.future}]}},[n,o,a,i])}({t:n,date:i,futureCount:s,previousCount:l,defaultTab:c}),x=m.activeTab,y=m.tabs,A=y.length>1;r.useEffect(function(){h!==x&&(v(x),u(x))},[x]);return e.jsxs(e.Fragment,{children:[e.jsx("div",g({className:"mt-4 flex justify-between items-center"},{children:y.map(function(t,n){return e.jsx(mn,g({variant:exports.TypographyVariantsEnum[A?"Text14Semi":"Title18Semi"],onClick:function(){return function(e){e.value!==h&&(v(e.value),u(e.value))}(t)},className:p.tab({active:h===t.value,multiple:A})},{children:t.label}),"".concat(t.value,"-").concat(n))})})),e.jsx(tb,{consultationClick:d,consultations:o,locale:a})]})});var rb=r.memo(function(t){var n=t.t,o=t.date,a=t.locale,s=t.mode,l=void 0===s?"button":s,c=t.opened,u=t.lastDate,d=t.dateCallback,p=b(r.useState(new Date(o.setDate(2))),2),f=p[0],h=p[1],v=b(r.useState(c),2),m=v[0],x=v[1],y=function(e){for(var t=e.locale,n=e.lastDate,r=[],o=i.DateTime.fromISO("2022-01-01").toJSDate(),a=i.DateTime.local().toJSDate(),s=n||a;s>o;){var l=i.DateTime.fromJSDate(s);t&&(l=l.setLocale(t));var c=l.toFormat("LLLL yyyy");r.push({label:c,value:s}),s=i.DateTime.fromJSDate(s).minus({month:1}).toJSDate()}return r}({locale:a,lastDate:u});r.useEffect(function(){c!==m&&x(c)},[c]);return e.jsx(Um,g({isOpen:m,heightInPx:402,onIonModalDidDismiss:function(){d(f),x(!1)}},{children:e.jsxs(Qr,g({className:"pt-10 h-full flex flex-1 flex-col"},{children:[e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title24Semi,className:"mt-10 text-center"},{children:null==n?void 0:n("select_period.title")})),e.jsx(Vx,{className:"relative",selections:{calendarList:y},defaults:{calendarList:Gy(f,a)},onChange:function(e){h(e.calendarList.value),"button"!==l&&(d(f),x(!1))}}),"button"===l&&e.jsx(Or,g({onClick:function(){d(f),x(!1)},className:"w-full text-center !mt-3",size:"large"},{children:null==n?void 0:n("select_period.button")}))]}))}))}),ib=r.memo(function(t){var n=t.t,i=t.date,o=t.locale,a=t.lastDate,s=t.dateCallback,l=b(r.useState(i),2),c=l[0],u=l[1],d=b(r.useState(!1),2),p=d[0],f=d[1];r.useEffect(function(){i!==c&&u(i)},[i]);return e.jsxs(e.Fragment,{children:[e.jsx(ti,{onClick:function(){f(!0)},className:"cursor-pointer"}),e.jsx(rb,{t:n,date:i,locale:o,lastDate:a,mode:"button",opened:p,dateCallback:function(e){f(!1),u(e),s(e)}})]})});var ob=Cr({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:exports.TypographyVariantsEnum.Text15Regular,dateTextVariant:exports.TypographyVariantsEnum.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:exports.TypographyVariantsEnum.Text7Regular,dateTextVariant:exports.TypographyVariantsEnum.Text6Regular,ratingSize:8,avatarSize:"smaller"},large:{base:"p-5 rounded-3xl min-h-[313px]",userContainer:"mb-4",rating:"mb-2.5",mainTextVariant:exports.TypographyVariantsEnum.Text15Regular,dateTextVariant:exports.TypographyVariantsEnum.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"}}}}),ab=r.memo(function(t){var n=t.text,i=t.title,o=t.countLines,a=t.variant,s=void 0===a?exports.TypographyVariantsEnum.Text15Regular:a,l=t.expandType,c=t.classNameTitle,u=t.classNameReviewText,d=t.onExpand,p=t.t,f=t.presentingElement,h=t.onMoreClick,m=t.hideShowMore,x=v(t,["text","title","countLines","variant","expandType","classNameTitle","classNameReviewText","onExpand","t","presentingElement","onMoreClick","hideShowMore"]),y=b(r.useState(!1),2),A=y[0],w=y[1],C=b(r.useState(!1),2),j=C[0],P=C[1],O=r.useRef(null),B=r.useRef(null),D=function(t){return i&&e.jsx(mn,g({variant:t||exports.TypographyVariantsEnum.Title20Semi,className:pn("mt-6 mb-2",c)},{children:i}))},k=function(t){var r;return void 0===t&&(t=j),e.jsx(mn,g({variant:s,className:pn("overflow-hidden whitespace-pre-wrap",(r={},r["line-clamp-".concat(o)]=!t,r["line-clamp-none"]=t,r["pb-8"]=t&&"modal"===l,r),u),ref:O},x,{children:e.jsx("div",{dangerouslySetInnerHTML:{__html:n}})}))};r.useEffect(function(){requestAnimationFrame(function(){!function(){var e;if(O.current&&o){var t=parseFloat(getComputedStyle(O.current).lineHeight)*o;(null===(e=O.current)||void 0===e?void 0:e.scrollHeight)>t?w(!0):w(!1)}}()})},[n,o]);return e.jsxs(e.Fragment,{children:[D(),k(),A&&!m&&e.jsx(ay,g({onClick:"function"==typeof d?d:"inline"===l?function(){j||null==h||h(),P(!j)}:"modal"===l?function(){var e;null==h||h(),null===(e=B.current)||void 0===e||e.present()}:void 0,className:"mt-3"},{children:j?null==p?void 0:p("therapist_details.show_less"):null==p?void 0:p("therapist_details.show_more")})),e.jsx(Um,g({ref:B,presentingElement:f,withCloseButton:!0},{children:e.jsxs(Qr,{children:[D(exports.TypographyVariantsEnum.Title28Semi),k(!0)]})}))]})}),sb=r.forwardRef(function(t,n){var o=t.id,a=t.avatarSrc,s=t.name,l=t.date,c=t.rating,u=t.review,d=t.size,p=void 0===d?"default":d,f=t.variant,h=void 0===f?"default":f,v=t.reviewTextClamp,m=t.onExpandReview,x=t.t,y=t.className,b=t.locale,A=t.useDate,w=void 0!==A&&A,C=t.isEditable,j=void 0!==C&&C,P=t.onEditReview,O=ob({size:p,variant:h}),B=O.base,D=O.userContainer,k=O.user,E=O.editContainer,z=O.editIcon,S=O.rating,T=O.mainTextVariant,H=O.dateTextVariant,L=O.ratingSize,M=O.avatarSize,N=O.review,I=O.reviewText,X=O.name,Q=r.useMemo(function(){var e=i.DateTime.now().startOf("day"),t=i.DateTime.fromSeconds(l).startOf("day"),n=e.diff(t,"days").toObject();return n.days?Math.ceil(n.days):0},[l]),R=r.useMemo(function(){return Q<=0?null==x?void 0:x("reviews.today_subtitle"):w&&b?i.DateTime.fromSeconds(l).toLocaleString(i.DateTime.DATE_MED,{locale:b}):null==x?void 0:x("reviews.days_before_subtitle",{count:Q})},[Q,x,b,w,l]),F=T(),V=H(),G=L();return e.jsxs("div",g({className:pn(B(),y),ref:n},{children:[e.jsxs("div",g({className:D()},{children:[e.jsxs("div",g({className:k()},{children:["starFirst"!==h&&e.jsx(Ir,{src:a,variant:M()}),e.jsxs("div",{children:[e.jsx(mn,g({variant:F,className:X()},{children:s})),"starFirst"!==h&&e.jsx(mn,g({variant:V,opacity:50},{children:R}))]})]})),j&&e.jsx("div",g({onClick:function(){null==P||P({id:null!=o?o:"",review_rating:c,text_of_review:u})},className:E()},{children:e.jsx(Si,{className:z()})}))]})),e.jsx(ym,{readonly:!0,initialRating:c,size:G,className:S()}),e.jsx("div",g({className:N()},{children:e.jsx(ab,{variant:F,classNameReviewText:I(),countLines:v,text:u,onExpand:function(){null==m||m()},t:x})}))]}))});sb.displayName="ReviewCardFeature";var lb=r.memo(sb),cb=r.memo(function(){var t=new Array(6).fill(0),n=ob({size:"default"}),r=n.base,i=n.user;return e.jsx("ul",g({className:"flex flex-col gap-5"},{children:t.map(function(t,n){return e.jsxs("div",g({className:r(),style:{opacity:0===n?1:n>=3?.4:1-(n+n)/10}},{children:[e.jsxs("div",g({className:i()},{children:[e.jsx(Nr,{className:"w-10 h-10 rounded-full shrink-0"}),e.jsxs("div",g({className:"flex flex-col gap-2 w-full"},{children:[e.jsx(Nr,{className:"w-7/12 h-3.5 rounded-xl"}),e.jsx(Nr,{className:"w-5/12 h-2.5 rounded-xl"})]}))]})),e.jsx(Nr,{className:"w-7/12 h-3.5 rounded-xl"}),e.jsxs("div",g({className:"flex flex-col gap-2 w-full mt-[26px]"},{children:[e.jsx(Nr,{className:"w-full h-2.5 rounded-xl"}),e.jsx(Nr,{className:"w-8/12 h-2.5 rounded-xl"})]}))]}),n)})}))});K('.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 ub=function(t){var n=t.node,i=t.level,o=function(){switch(n.type){case"<h1>":return"h1";case"<p>":return"p";case"<li>":return"li";case"<ol>":return"ol";case"<ul>":return"ul";default:return r.Fragment}}();return e.jsxs(o,g({className:ec({"nested-list":"<ol>"===n.type,"pl-7":"<ol>"===n.type&&2===i,"pl-11":"<ol>"===n.type&&3===i,"pl-5":"<ol>"===n.type&&4===i,"pl-3":"<li>"===n.type&&1===i,"my-2":"<li>"===n.type,"mt-5 font-inter-tight text-[20px] font-semibold leading-[140%]":"<h1>"===n.type,"my-5 font-inter text-[14px] leading-[140%]":"<p>"===n.type})},{children:[n.title&&!["<h1>","<p>"].includes(n.type)&&e.jsx("span",g({className:"my-5 font-inter text-[14px] leading-[140%]"},{children:yg(n.title)})),"<h1>"===n.type?yg(n.title):null,"<p>"===n.type?yg(n.title):null,n.children&&n.children.length>0&&e.jsx(e.Fragment,{children:n.children.map(function(t,r){return e.jsx(ub,{node:t,level:"<ol>"===n.type?i+1:i},r)})})]}))},db=r.memo(r.forwardRef(function(t,n){var r=t.data,i=t.className;return e.jsx("div",g({ref:n,className:ec(i,"first-paragraph")},{children:r.map(function(t,n){return e.jsx(ub,{node:t,level:1},n)})}))}));db.displayName="ContentTree";var pb="ScreenInputForm-module_container__Eyh6-",fb="ScreenInputForm-module_input__Hj2X7";K(".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 hb=r.memo(function(t){var n=t.type,i=void 0===n?"text":n,o=t.title,a=t.subtitle,s=t.subtitleLink,l=t.onSubtitleLinkClick,c=t.placeholder,u=t.buttonText,d=void 0===u?"Зберегти":u,p=t.defaultValue,f=t.name,h=t.onSubmit,v=t.isLoading,m=t.resetButtonText,x=t.resetValue,y=t.autoComplete,A=t.required,w=t.isFocus,C=void 0!==w&&w,j=t.pattern,P=t.isAutoGrow,O=t.icon,B=t.isKeyboardShown,D=void 0!==B&&B,k=b(r.useState(p),2),E=k[0],z=k[1],S=r.useRef(null);r.useEffect(function(){C&&(null==S?void 0:S.current)&&S.current.focus()},[S,C]);var T=r.useCallback(function(){E&&(null==h||h(E,null!=f?f:""))},[E,f,h]),H=r.useCallback(function(){x&&(z(x),null==h||h(x,null!=f?f:""))},[x,h]),L=r.useCallback(function(e){e.preventDefault(),null==l||l()},[l]);return e.jsxs(e.Fragment,{children:[e.jsxs(Oo,g({toolbarClassName:"!p-0"},{children:[o&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title28Semi,className:"mb-1"},{children:o})),a&&e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50},{children:[a," ",s&&e.jsx("a",g({href:"#",className:"underline cursor-pointer text-sl opacity-50",onClick:L},{children:s}))]}))]})),e.jsx(Qr,g({className:pb},{children:e.jsx(Gm,{ref:S,type:i,placeholder:c,value:E,name:f,onChange:function(e){return z(e.target.value)},onKeyDown:function(e){return"Enter"===e.key&&T()},disabled:v,autoComplete:y,required:A,pattern:j,className:fb,isAutoGrow:P,icon:O})})),e.jsxs(Er,g({bottomSaveArea:!D},{children:[m&&e.jsx(Or,g({fullWidth:!0,type:"button",fill:"clear",className:"!mb-2",onClick:H},{children:m})),e.jsx(Or,g({type:"button",fullWidth:!0,size:"large",disabled:!E,isLoading:v,onClick:T},{children:d}))]}))]})}),gb=r.memo(function(t){var n=t.title,i=t.subtitle,o=t.buttonText,a=void 0===o?"Save":o,s=t.selections,l=t.defaults,c=t.onChange,u=t.compareBy,d=void 0===u?"label":u,p=t.isLoading,f=void 0!==p&&p,h=t.onTouchStart,v=t.onTouchEnd,m=b(r.useState(l),2),x=m[0],y=m[1],A=r.useCallback(function(){x&&c(x)},[x]);return e.jsxs(e.Fragment,{children:[e.jsxs(Oo,g({toolbarClassName:"!p-0"},{children:[n&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title28Semi,className:"mb-1"},{children:n})),i&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50},{children:i}))]})),e.jsx(Qr,g({isFlexContainer:!0},{children:e.jsx("div",g({className:"flex flex-col flex-1 justify-center",onTouchStart:h,onTouchEnd:v},{children:e.jsx(Vx,{selections:s,defaults:x,onChange:function(e){return y(Object.keys(e).reduce(function(t,n){return t[n]=e[n].value,t},{}))},compareBy:d})}))})),e.jsx(Er,{children:e.jsx(Or,g({fullWidth:!0,type:"button",size:"large",onClick:A,isLoading:f},{children:a}))})]})}),vb="TextAreaForm-module_container__Qd3HG";K(".TextAreaForm-module_container__Qd3HG{--keyboard-offset:0!important}",{insertAt:"top"});var mb=r.memo(function(t){var i=t.title,o=t.subtitle,a=t.placeholder,s=t.buttonText,l=void 0===s?"Зберегти":s,c=t.defaultValue,u=t.name,d=t.onSubmit,p=t.isLoading,f=t.isFocus,h=void 0!==f&&f,v=t.isKeyboardShown,m=void 0!==v&&v,x=t.maxlength,y=void 0===x?300:x,A=t.HeaderComponent,w=b(r.useState(c),2),C=w[0],j=w[1],P=r.useRef(null);r.useEffect(function(){var e;h&&(null==P?void 0:P.current)&&(null===(e=P.current)||void 0===e||e.setFocus())},[P,h]);var O=r.useCallback(function(e){e.preventDefault(),C&&(null==d||d(C,null!=u?u:""))},[C,u,d]);return e.jsxs(e.Fragment,{children:[!(!i&&!o)&&e.jsx(Oo,g({toolbarClassName:"!p-0",className:"mb-5"},{children:e.jsxs("div",g({className:"flex flex-col gap-1"},{children:[i&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title28Semi},{children:i})),o&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50},{children:o}))]}))})),e.jsxs(Qr,g({className:vb},{children:[!!A&&e.jsx(A,{}),e.jsx($v,{ref:P,placeholder:a,showCounter:!0,autoGrow:!0,maxlength:y,spellcheck:!0,value:C,name:u,onIonChange:function(e){return j(e.target.value)},onKeyPress:function(e){return!n.isPlatform("hybrid")&&"Enter"===e.key&&O(e)},disabled:p})]})),e.jsx(Er,g({bottomSaveArea:!m},{children:e.jsx(Or,g({type:"button",fullWidth:!0,size:"large",disabled:!C,isLoading:p,onClick:O},{children:l}))}))]})});function xb(t){var n=t.isAccepted,r=t.setIsAccepted,i=t.handlePressLink,o=t.translations;return e.jsxs("div",g({className:"flex gap-x-2 mb-[18px] !leading-[140%]",onClick:function(){r(!n)}},{children:[e.jsx("div",g({className:"flex items-center flex-shrink-0 text-typography-typography-primary"},{children:n?e.jsx(ii,{className:"!h-6 !w-6"}):e.jsx(oi,{className:"!h-6 !w-6"})})),e.jsxs("div",g({className:"inline"},{children:[e.jsxs(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:"inline"},{children:[o[0]," "]})),e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text14Regular,className:"inline !text-badges-info-main underline cursor-pointer",onClick:function(e){e.stopPropagation(),i()}},{children:o[1]})),e.jsxs(mn,g({className:"inline",variant:exports.TypographyVariantsEnum.Text14Regular},{children:[" ",o[2]]}))]}))]}))}var yb=r.memo(function(t){var n=t.title,i=t.subTitle,o=t.items,a=t.defaultItems,s=t.selectedItems,l=t.onChange,c=t.isLoading,u=void 0!==c&&c,d=t.otherText,p=t.buttonLabel,f=t.enableSearch,h=void 0!==f&&f,m=t.searchPlaceholder,x=void 0===m?"":m,y=v(t,["title","subTitle","items","defaultItems","selectedItems","onChange","isLoading","otherText","buttonLabel","enableSearch","searchPlaceholder"]),w=b(r.useState(!1),2),C=w[0],j=w[1],P=b(r.useState(a),2),O=P[0],B=P[1],D=b(r.useState(null),2),k=D[0],E=D[1],z=b(r.useState(null),2),S=z[0],T=z[1],H=b(r.useState(null!=s?s:new Set([])),2),L=H[0],M=H[1],N=r.useMemo(function(){return o.filter(function(e){return!S||e.toLowerCase().includes(S.toLowerCase())})},[S,o]),I=r.useCallback(function(e){"all"!==e&&e.size&&(M(e),!p&&(null==l||l(A([],b(e.values()),!1)[0].toString())))},[l,p]),X=r.useCallback(function(e){var t=e.detail.value||"";E(t);var n=O.filter(function(e){return!t||e.toLowerCase().includes(t.toLowerCase())});B(n)},[]),Q=r.useCallback(function(e){B(function(t){return A([e],b(t.filter(function(t){return t!==e})),!1)}),T(null),j(!1),I(new Set([e]))},[I]),R=r.useCallback(function(){"all"!==L&&L.size&&(null==l||l(A([],b(L.values()),!1)[0].toString()))},[l,L]);return r.useEffect(function(){B(a)},[a]),r.useEffect(function(){M(null!=s?s:new Set([]))},[s]),e.jsxs(e.Fragment,{children:[e.jsxs(Oo,g({toolbarClassName:"!p-0"},{children:[n&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Title24Semi,className:"mb-1"},{children:n})),i&&e.jsx(mn,g({variant:exports.TypographyVariantsEnum.Text15Regular,opacity:50,className:"mb-4"},{children:i})),h&&e.jsx(px,{onIonChange:X,value:null!=k?k:"",placeholder:x,className:"mb-2"})]})),e.jsxs(Qr,{children:[!p&&e.jsx(Zm,{isOpen:u}),e.jsx(bv,g({type:"radio",selectionMode:"single",selectedKeys:L,onSelectionChange:I},{children:O.map(function(t,n){return e.jsx(Tv,g({textValue:t,divider:!0},{children:t}),t)})})),d&&e.jsx(tx,{children:e.jsx(sx,g({className:"p-0",onClick:function(){return j(!0)}},{children:d}))})]}),p&&e.jsx(Er,{children:e.jsx(Or,g({fullWidth:!0,size:"large",isLoading:u,onClick:R,disabled:"all"!==L&&!L.size},{children:p}))}),e.jsx(Ay,g({countries:N,isOpen:C,onDidDismiss:function(){return j(!1)},onSearchChange:function(e){var t,n;return T(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:"")},onItemClick:Q,searchValue:null!=S?S:""},y))]})});function bb(){return bb=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},bb.apply(this,arguments)}const Ab=["children","options"],wb="0",Cb="1",jb="2",Pb="3",Ob="4",Bb="5",Db="6",kb="7",Eb="8",zb="9",Sb="10",Tb="11",Hb="12",Lb="13",Mb="14",Nb="15",Ib="16",Xb="17",Qb="18",Rb="19",Fb="20",Vb="21",Gb="22",Wb="23",Yb="24",Ub="25",Kb="26",qb="27",Jb="28",Zb="29",_b="30",$b="31",eA="32",tA="33";var nA;!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"}(nA||(nA={}));const rA=["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"}),iA={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},oA=["style","script"],aA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,sA=/mailto:/i,lA=/\n{2,}$/,cA=/^(\s*>[\s\S]*?)(?=\n{2,})/,uA=/^ *> ?/gm,dA=/^ {2,}\n/,pA=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,fA=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,hA=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,gA=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,vA=/^(?:\n *)*\n/,mA=/\r\n?/g,xA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,yA=/^\[\^([^\]]+)]/,bA=/\f/g,AA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,wA=/^\s*?\[(x|\s)\]/,CA=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,jA=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,PA=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,OA=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,BA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,DA=/^<!--[\s\S]*?(?:-->)/,kA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,EA=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,zA=/^\{.*\}$/,SA=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,TA=/^<([^ >]+@[^ >]+)>/,HA=/^<([^ >]+:\/[^ >]+)>/,LA=/-([a-z])?/gi,MA=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,NA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,IA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,XA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,QA=/(\[|\])/g,RA=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,FA=/\t/g,VA=/(^ *\||\| *$)/g,GA=/^ *:-+: *$/,WA=/^ *:-+ *$/,YA=/^ *-+: *$/,UA="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",KA=new RegExp(`^([*_])\\1${UA}\\1\\1(?!\\1)`),qA=new RegExp(`^([*_])${UA}\\1(?!\\1|\\w)`),JA=new RegExp(`^==${UA}==`),ZA=new RegExp(`^~~${UA}~~`),_A=/^\\([^0-9A-Za-z\s])/,$A=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ew=/^\n+/,tw=/^([ \t]*)/,nw=/\\([^\\])/g,rw=/ *\n+$/,iw=/(?:^|\n)( *)$/,ow="(?:\\d+\\.)",aw="(?:[*+-])";function sw(e){return"( *)("+(1===e?ow:aw)+") +"}const lw=sw(1),cw=sw(2);function uw(e){return new RegExp("^"+(1===e?lw:cw))}const dw=uw(1),pw=uw(2);function fw(e){return new RegExp("^"+(1===e?lw:cw)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ow:aw)+" )[^\\n]*)*(\\n|$)","gm")}const hw=fw(1),gw=fw(2);function vw(e){const t=1===e?ow:aw;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const mw=vw(1),xw=vw(2);function yw(e,t){const n=1===t,r=n?mw:xw,i=n?hw:gw,o=n?dw:pw;return{match(e,t,n){const i=iw.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,s=e[0].replace(lA,"\n").match(i);let l=!1;return{items:s.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===s.length-1,d=-1!==c.indexOf("\n\n")||u&&l;l=d;const p=r.inline,f=r.list;let h;r.list=!0,d?(r.inline=!1,h=c.replace(rw,"\n\n")):(r.inline=!0,h=c.replace(rw,""));const g=t(h,r);return r.inline=p,r.list=f,g}),ordered:n,start:a}},render:(t,n,r)=>e(t.ordered?"ol":"ul",{key:r.key,start:t.type===Fb?t.start:void 0},t.items.map(function(t,i){return e("li",{key:i},n(t,r))}))}}const bw=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Aw=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ww=[cA,fA,hA,CA,PA,jA,DA,MA,hw,mw,gw,xw],Cw=[...ww,/^[^\n]+(?: \n|\n{2,})/,OA,EA];function jw(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 Pw(e){return YA.test(e)?"right":GA.test(e)?"center":WA.test(e)?"left":null}function Ow(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:Kb}:{type:qb,text:i}):""!==i&&e.push.apply(e,t(i,n)),e),[]);n.inTable=i;let a=[[]];return o.forEach(function(e,t){e.type===Kb?0!==t&&t!==o.length-1&&a.push([]):(e.type!==qb||null!=o[t+1]&&o[t+1].type!==Kb||(e.text=e.text.trimEnd()),a[a.length-1].push(e))}),a}function Bw(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(VA,"").split("|").map(Pw):[],i=e[3]?function(e,t,n){return e.trim().split("\n").map(function(e){return Ow(e,t,n,!0)})}(e[3],t,n):[],o=Ow(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:o,type:Ub}:{children:o,type:Vb}}function Dw(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function kw(e){return function(t,n){return n.inline?e.exec(t):null}}function Ew(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function zw(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Sw(e){return function(t){return e.exec(t)}}function Tw(e,t,n){if(t.inline||t.simple)return null;if(n&&!n.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!ww.some(t=>t.test(e))&&(r+=e+"\n",e.trim()));const i=r.trimEnd();return""==i?null:[r,i]}function Hw(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 Lw(e){return e.replace(nw,"$1")}function Mw(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 Nw(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 Iw(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const Xw=(e,t,n)=>({children:Mw(t,e[1],n)});function Qw(){return{}}function Rw(){return null}function Fw(...e){return e.filter(Boolean).join(" ")}function Vw(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 Gw=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,Ab);return f.cloneElement(function(e="",t={}){function n(e,n,...r){const i=Vw(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const n=Vw(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Vw(t,`${e}.component`,e):e}(e,t.overrides),bb({},n,i,{className:Fw(null==n?void 0:n.className,i.className)||void 0}),...r)}function r(e){e=e.replace(AA,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===RA.test(e));const i=c(l(r?e:`${e.trimEnd().replace(ew,"")}\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(aA);return i?i.reduce(function(n,i,o){const a=i.indexOf("=");if(-1!==a){const s=function(e){return-1!==e.indexOf("-")&&null===e.match(kA)&&(e=e.replace(LA,function(e,t){return t.toUpperCase()})),e}(i.slice(0,a)).trim(),l=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=rA[s]||s,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(zA)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(e,s,l,t.sanitizer);"string"==typeof u&&(OA.test(u)||EA.test(u))&&(n[c]=f.cloneElement(r(u.trim()),{key:o}))}else"style"!==i&&(n[rA[i]||i]=!0);return n},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||Hw,t.slugify=t.slugify||jw,t.namedCodesToUnicode=t.namedCodesToUnicode?bb({},iA,t.namedCodesToUnicode):iA,t.createElement=t.createElement||f.createElement;const o=[],a={},s={[wb]:{match:zw(cA),order:1,parse:(e,t,n)=>({children:t(e[0].replace(uA,""),n)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},[Cb]:{match:Sw(dA),order:1,parse:Qw,render:(e,t,r)=>n("br",{key:r.key})},[jb]:{match:zw(pA),order:1,parse:Qw,render:(e,t,r)=>n("hr",{key:r.key})},[Pb]:{match:zw(hA),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",bb({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[Ob]:{match:zw(fA),order:0,parse:e=>({attrs:i("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:Pb})},[Bb]:{match:Ew(gA),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},[Db]:{match:zw(xA),order:0,parse:e=>(o.push({footnote:e[2],identifier:e[1]}),{}),render:Rw},[kb]:{match:kw(yA),order:1,parse:e=>({target:`#${t.slugify(e[1],jw)}`,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))},[Eb]:{match:kw(wA),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"})},[zb]:{match:zw(t.enforceAtxHeadings?jA:CA),order:1,parse:(e,n,r)=>({children:Mw(n,e[2],r),id:t.slugify(e[2],jw),level:e[1].length}),render:(e,t,r)=>n(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},[Sb]:{match:zw(PA),order:0,parse:(e,t,n)=>({children:Mw(t,e[1],n),level:"="===e[2]?1:2,type:zb})},[Tb]:{match:Sw(OA),order:1,parse(e,t,n){const[,r]=e[3].match(tw),o=new RegExp(`^${r}`,"gm"),a=e[3].replace(o,""),s=(l=a,Cw.some(e=>e.test(l))?Iw:Mw);var l;const c=e[1].toLowerCase(),u=-1!==oA.indexOf(c),d=(u?c:e[1]).trim(),p={attrs:i(d,e[2]),noInnerParse:u,tag:d};return n.inAnchor=n.inAnchor||"a"===c,u?p.text=e[3]:p.children=s(t,a,n),n.inAnchor=!1,p},render:(e,t,r)=>n(e.tag,bb({key:r.key},e.attrs),e.text||t(e.children,r))},[Lb]:{match:Sw(EA),order:1,parse(e){const t=e[1].trim();return{attrs:i(t,e[2]||""),tag:t}},render:(e,t,r)=>n(e.tag,bb({},e.attrs,{key:r.key}))},[Hb]:{match:Sw(DA),order:1,parse:()=>({}),render:Rw},[Mb]:{match:Ew(Aw),order:1,parse:e=>({alt:e[1],target:Lw(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")})},[Nb]:{match:kw(bw),order:3,parse:(e,t,n)=>({children:Nw(t,e[1],n),target:Lw(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))},[Ib]:{match:kw(HA),order:0,parse:e=>({children:[{text:e[1],type:qb}],target:e[1],type:Nb})},[Xb]:{match:(e,t)=>t.inAnchor?null:kw(SA)(e,t),order:0,parse:e=>({children:[{text:e[1],type:qb}],target:e[1],title:void 0,type:Nb})},[Qb]:{match:kw(TA),order:0,parse(e){let t=e[1],n=e[1];return sA.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:qb}],target:n,type:Nb}}},[Fb]:yw(n,1),[tA]:yw(n,2),[Rb]:{match:zw(vA),order:3,parse:Qw,render:()=>"\n"},[Vb]:{match:Tw,order:3,parse:Xw,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},[Gb]:{match:kw(NA),order:0,parse:e=>(a[e[1]]={target:e[2],title:e[4]},{}),render:Rw},[Wb]:{match:Ew(IA),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},[Yb]:{match:kw(XA),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:t(e[0].replace(QA,"\\$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))},[Ub]:{match:zw(MA),order:1,parse:Bw,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:Dw(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:Dw(i,o)},t(e,r))}))})))}},[qb]:{match:Sw($A),order:4,parse:e=>({text:e[0].replace(BA,(e,n)=>t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e)}),render:e=>e.text},[Jb]:{match:Ew(KA),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("strong",{key:r.key},t(e.children,r))},[Zb]:{match:Ew(qA),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,r)=>n("em",{key:r.key},t(e.children,r))},[_b]:{match:Ew(_A),order:1,parse:e=>({text:e[1],type:qb})},[$b]:{match:Ew(JA),order:3,parse:Xw,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},[eA]:{match:Ew(ZA),order:3,parse:Xw,render:(e,t,r)=>n("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete s[Tb],delete s[Lb]);const l=function(e){let t=Object.keys(e);function n(r,i){let o=[],a="";for(;r;){let s=0;for(;s<t.length;){const l=t[s],c=e[l],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=l),o.push(t),a=e;break}s++}}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(mA,"\n").replace(bA,"").replace(FA," ")}(e),t)}}(s),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)}}(s,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),s="string"==typeof a;s&&o?i[i.length-1]+=a:null!==a&&i.push(a),o=s}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,jw),key:e.identifier},e.identifier,c(l(e.footnote,{inline:!0})))}))):d}(t,n),r)},Ww="MarkdownContainer-module_markdown__QNrrN";K(".MarkdownContainer-module_markdown__QNrrN div{white-space:pre-wrap}",{insertAt:"top"});var Yw=r.memo(function(t){var n=t.children,i=t.options,o=t.className,a=t.forceBlock,s=void 0===a||a,l=r.useMemo(function(){return g({overrides:g({p:{component:function(t){var n=t.children,r=v(t,["children"]);return e.jsx("p",g({},r,{children:n}))}},ul:{component:function(t){var n=t.children,r=v(t,["children"]);return e.jsx("ul",g({},r,{children:n}))},props:{className:"list-disc list-inside"}},ol:{component:function(t){var n=t.children,r=v(t,["children"]);return e.jsx("ol",g({},r,{children:n}))},props:{className:"list-decimal list-inside"}}},null==i?void 0:i.overrides),forceBlock:s,wrapper:function(t){var n=t.children;return s?e.jsx("div",g({className:pn("flex flex-col gap-4",Ww,o)},{children:n})):n}},i)},[i,o]);return n?e.jsx(Gw,g({options:l},{children:n})):null}),Uw=r.memo(function(t){var n,r,i=t.title,o=t.description,a=t.contentStyle,s=t.image,l=t.isPreview,c=b(cv(),2),u=c[0],d=c[1],p=a===exports.OnBoardingScreenStyleOptions.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e.jsx("div",g({className:"flex flex-col h-full justify-center items-center gap-6 px-2",ref:d},{children:!!u&&e.jsxs("div",g({className:pn("flex flex-col items-center",{"gap-1":l},{"gap-2":!l})},{children:[(null==s?void 0:s.file_url)&&e.jsx("div",g({className:pn("flex justify-center w-full",{"mb-4":l},{"mb-8":!l})},{children:e.jsx(Zr,{width:null!==(n=null==s?void 0:s.width)&&void 0!==n?n:0,height:null!==(r=null==s?void 0:s.height)&&void 0!==r?r:0,src:{src:s.file_url},srcType:"image/webp",responsive:!0,containerWidth:u})})),e.jsx(mn,g({variant:l?exports.TypographyVariantsEnum.Title14Semi:exports.TypographyVariantsEnum.Title24Semi,className:p,align:"center"},{children:i})),e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:l?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text14Regular,className:p,align:"center"}}}},className:l?"!gap-1":"!gap-4"},{children:o}))]}))}))}),Kw=r.memo(function(t){var n,r,i=t.title,o=t.description,a=t.image,s=t.contentStyle,l=t.isPreview,c=b(cv(),2),u=c[0],d=c[1],p=s===exports.OnBoardingScreenStyleOptions.DARK?"!text-[#212121]":"!text-[#FFFFFF]";return e.jsx("div",g({ref:d,className:"flex flex-col gap-4 h-full"},{children:!!u&&e.jsxs("div",g({className:pn("flex flex-col items-center",{"gap-1":l},{"gap-2":!l})},{children:[(null==a?void 0:a.file_url)&&e.jsx("div",g({className:pn("w-full flex justify-center items-center",{"mb-3":l},{"mb-6":!l})},{children:e.jsx(Zr,{width:null!==(n=null==a?void 0:a.width)&&void 0!==n?n:0,height:null!==(r=null==a?void 0:a.height)&&void 0!==r?r:0,src:{src:a.file_url},srcType:"image/webp",responsive:!0,containerWidth:u})})),e.jsx(mn,g({variant:l?exports.TypographyVariantsEnum.Title14Semi:exports.TypographyVariantsEnum.Title24Semi,className:p},{children:i})),e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:l?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text16Regular,className:p}}}},className:l?"!gap-1":"!gap-4"},{children:o}))]}))}))}),qw=function(t){var n=t.title,r=t.subTitle,i=t.description,o=t.isPreview,a="roundImage"===t.template;return e.jsxs("div",g({className:pn("flex flex-col",{"gap-0.5":o},{"gap-1":!o})},{children:[n&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:o?exports.TypographyVariantsEnum.Title14Semi:exports.TypographyVariantsEnum.Title24Semi,className:a?"mb-1":""}}}}},{children:n})),r&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:o?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text16Semi,className:a?"mb-2":""}}}}},{children:r})),i&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:o?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text15Regular,className:"!text-typography-typography-secondary"}}}}},{children:i}))]}))},Jw=r.memo(function(t){var n=t.options,i=t.title,o=t.description,a=t.isPreview,s=t.onChange,l=t.defaultValues,c=t.theme,u=t.template,d=void 0===u?"checkbox":u,p=b(r.useState(new Set(l)),2),f=p[0],h=p[1];r.useEffect(function(){h(new Set(l))},[l]);var v=r.useCallback(function(e){h(e),"all"!==e&&(null==s||s(Array.from(e)))},[s]),m=(null==c?void 0:c.template)===exports.OnboardingVariant.custom;return e.jsxs("div",g({className:pn("h-full flex flex-col",{"gap-2.5":a},{"gap-5":!a})},{children:[e.jsx(qw,{title:i,description:o,isPreview:a}),e.jsx(bv,g({"aria-label":"MultiSelect",selectedKeys:f,onSelectionChange:v,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:n.map(function(t,r){var i,o;return e.jsx(Tv,g({textValue:t.id,"aria-label":t.label,divider:n.length-1!==r,className:a?"!px-0 !py-2":"!px-0 !py-4",image:null!==(i=t.image)&&void 0!==i?i:null},{children:e.jsx(mn,g({variant:a?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Regular,style:m&&"all"!==f&&f.has(t.id)&&"checkbox"!==d?{color:null!==(o=null==c?void 0:c.customTextColor)&&void 0!==o?o:""}:{}},{children:t.label}))}),t.id)})}))]}))}),Zw=r.memo(function(t){var n=t.isPreview,r=t.minLabel,i=t.maxLabel;return e.jsxs("div",g({className:"w-full flex flex-row items-center justify-between gap-2 mt-3 px-0.5"},{children:[e.jsx(mn,g({variant:n?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Semi},{children:r})),e.jsx(mn,g({variant:n?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Semi},{children:i}))]}))}),_w=function(t){var n=t.isPreview,r=t.selectedOption,i=r&&"feedbackTitle"in r&&(null==r?void 0:r.feedbackTitle)&&"feedbackDescription"in r&&(null==r?void 0:r.feedbackDescription);return e.jsx("div",g({className:"flex items-end mt-[auto]"},{children:e.jsxs("div",g({className:pn("invisible w-full flex flex-row bg-color-background-anti-flash-light rounded-[30px] p-5 mb-[22px]",{"!visible":i,"!p-3 !rounded-[15px] !mb-[12px]":n})},{children:[e.jsx(mn,g({className:n?"mr-2":"mr-4",variant:n?exports.TypographyVariantsEnum.Text15Semi:exports.TypographyVariantsEnum.Title24Semi},{children:"🏆"})),e.jsxs("div",{children:[e.jsx(mn,g({variant:n?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text15Semi},{children:i?null==r?void 0:r.feedbackTitle:""})),e.jsx(mn,g({className:"mt-0.5",variant:n?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Text13Regular150},{children:i?null==r?void 0:r.feedbackDescription:""}))]})]}))}))},$w=r.memo(function(t){var n,i,o=t.options,a=t.title,s=t.subTitle,l=t.description,c=t.legalText,u=t.minLabel,d=t.maxLabel,p=t.isPreview,f=t.onChange,h=t.defaultValues,v=t.theme,m=t.template,x=void 0===m?"radio":m,y=t.isRoundCorners,A=void 0!==y&&y,w=t.image,C=t.horizontalImageAlignment,j=void 0===C?"center":C,P=b(r.useState(new Set(h)),2),O=P[0],B=P[1];r.useEffect(function(){B(new Set(h))},[h]);var D=r.useCallback(function(e){B(e),("all"===e||e.size)&&(null==f||f(Array.from(e)[0]))},[f]),k=o.find(function(e){return e.id===Array.from(O)[0]}),E="roundImage"===x,z="image"===x,S="emoji"===x,T="radio"===x,H="icon"===x;return e.jsxs("div",g({className:pn("h-full flex flex-col",{"gap-2.5":p&&!E},{"gap-5":!p&&!E})},{children:[w&&e.jsx("div",g({className:pn("flex py-3 mb-2",{"justify-center":"center"===j,"justify-end":"right"===j,"justify-start":"left"===j,"!py-1 !mb-1":p})},{children:e.jsx(Zr,{src:{src:w.file_url},srcType:"image/webp",responsive:!0,width:null!==(n=w.width)&&void 0!==n?n:0,height:null!==(i=w.height)&&void 0!==i?i:0,containerWidth:p?40:80})})),e.jsx(qw,{title:a,subTitle:s,description:l,isPreview:p,template:x}),e.jsxs("div",g({className:pn("flex flex-col h-full justify-center items-center",{"!h-[60%]":S,"!h-[auto]":E})},{children:[e.jsx(bv,g({"aria-label":"SingleSelect",selectedKeys:O,onSelectionChange:D,selectionMode:"single",type:x,className:pn("!p-0",{"flex flex-wrap flex-row items-stretch":z||E,"h-full":T||H,"w-full flex flex-row gap-1":S,"mt-7 mb-2":E&&!A,"mt-7 mb-[-4px]":E&&A,"!mt-3 !mb-[-8px]":E&&p}),selectedIconProps:{className:p?"!h-3 !w-3":"!h-6 !w-6"},variant:null==v?void 0:v.template,onboardingTheme:v,isOnboardingPreview:p,isTransparent:!0,isRoundCorners:A},{children:o.map(function(t,n){var r;return e.jsx(Tv,g({textValue:t.id,"aria-label":t.label,divider:o.length-1!==n,className:p?"!px-0 !py-2":"!px-0 !py-4",image:null!==(r=t.image)&&void 0!==r?r:null},{children:"radio"===x?e.jsx(mn,g({variant:p?exports.TypographyVariantsEnum.Text12Regular:exports.TypographyVariantsEnum.Text16Regular},{children:t.label})):t.label}),t.id)})})),u&&d&&e.jsx(Zw,{isPreview:p,minLabel:u,maxLabel:d})]})),S&&e.jsx(_w,{isPreview:p,selectedOption:k}),c&&e.jsx(Yw,g({options:{overrides:{p:{component:mn,props:{variant:p?exports.TypographyVariantsEnum.Text7Regular:exports.TypographyVariantsEnum.Tabbar10Medium,className:"!text-typography-typography-secondary text-center"}}}}},{children:c}))]}))}),eC=function(t){var n=t.title,i=t.loadingItemDuration,o=void 0===i?1.5:i,a=t.answerScreenId,s=t.allScreens,l=t.selectedAnswers,c=t.isPreview,u=t.listItems,d=t.onProgressEnd,p=t.t,f=r.useRef(null);r.useEffect(function(){if(null==f?void 0:f.current){var e=f.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)}))}},[f]);var h=r.useMemo(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&&s&&l?(a.forEach(function(t){var n=s[t],r=l[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},[l,s,a,c,u]),v=r.useMemo(function(){return o*h.length},[h.length]);return e.jsx("div",g({className:"flex flex-col h-full items-center",ref:f},{children:e.jsxs("div",{children:[n&&e.jsx(mn,g({variant:c?exports.TypographyVariantsEnum.Title12Semi:exports.TypographyVariantsEnum.Title28Semi,className:pn("text-center")},{children:n})),e.jsx(Om,{className:pn("text-center",{"mt-4":c,"my-10":!c}),t:p,size:c?exports.CircleRatingSize.M:exports.CircleRatingSize.L,progress:100,animationSeconds:v,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.jsx(bv,g({"aria-label":"MultiSelect",className:pn({"!px-4":c,"!px-12":!c}),selectionMode:"none",enableSelection:!1,isTransparent:!0},{children:h.map(function(t){var n=t.map(function(e){return e.id}).join(","),r=t.map(function(e){return e.label}).join(", ");return e.jsx(Tv,g({className:"!px-0 !py-1"},{children:e.jsxs("div",g({className:"list--flow-items transition-opacity duration-[400ms] flex items-center ".concat(c?"gap-1":"gap-2"," opacity-30")},{children:[e.jsx(ii,{size:c?10:20,className:"text-[#02B286] flex-shrink-0"}),e.jsx(mn,g({variant:c?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text16Regular},{children:r}))]}))}),n)})}))]})}))},tC=function(t){var n,i=t.label,o=t.duration,a=t.isPreview,s=t.isActive,l=t.isCompleted,c=t.isDisabled,u=t.isPaused,d=t.handleProgressEnd,p=t.theme,f=(null==p?void 0:p.template)===exports.OnboardingVariant.custom,h=b(r.useState(0),2),v=h[0],m=h[1],x=r.useRef(null),y=r.useRef(!1),A=r.useRef(!1),w=r.useRef(0),C=r.useRef(0),j=function(e){if(!A.current){var t=e-w.current+C.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);m(r),n<1?x.current=requestAnimationFrame(j):y.current||(y.current=!0,d())}};r.useEffect(function(){if(A.current=u,s&&o)return u?(x.current&&(cancelAnimationFrame(x.current),x.current=null),C.current+=performance.now()-w.current):(w.current=performance.now(),x.current=requestAnimationFrame(j)),function(){x.current&&(cancelAnimationFrame(x.current),x.current=null)}},[u]),r.useEffect(function(){return s&&o?(u||(w.current=performance.now(),x.current=requestAnimationFrame(j)),function(){x.current&&(cancelAnimationFrame(x.current),x.current=null)}):(m(0),y.current=!1,C.current=0,A.current=!1,void(x.current&&(cancelAnimationFrame(x.current),x.current=null)))},[s]);var P=Math.round(100*v);return e.jsxs("div",g({className:pn("py-4",{"border-b border-borders-divider":l,"!py-1":c,"!py-2":a})},{children:[e.jsxs("div",g({className:"w-full flex items-center justify-between gap-4"},{children:[e.jsx(mn,g({variant:a?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text16Regular},{children:i})),e.jsxs("div",g({className:"min-w-[40px] flex items-center justify-end"},{children:[s&&e.jsxs(mn,g({variant:a?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text15Semi},{children:[P,"%"]})),l&&e.jsx(ii,{size:a?10:24,className:"text-badges-success-main flex-shrink-0"}),c&&e.jsx(mn,g({className:"text-typography-typography-secondary",variant:a?exports.TypographyVariantsEnum.Text8Regular:exports.TypographyVariantsEnum.Text15Semi},{children:"0%"}))]}))]})),s&&e.jsx(qm,{className:pn("py-1 mt-3",{"!mt-1 !py-0.5":a}),variant:f?exports.OnboardingVariant.custom:exports.OnboardingVariant.blue,progress:v,style:f?{"--progress-background":null!==(n=p.customColor)&&void 0!==n?n:""}:{}})]}))},nC={},rC={},iC={},oC={};!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}}(oC);var aC=/^\s+|\s+$/g,sC=/^[-+]0x[0-9a-f]+$/i,lC=/^0b[01]+$/i,cC=/^0o[0-7]+$/i,uC=parseInt,dC="object"==typeof an&&an&&an.Object===Object&&an,pC="object"==typeof self&&self&&self.Object===Object&&self,fC=dC||pC||Function("return this")(),hC=Object.prototype.toString,gC=Math.max,vC=Math.min,mC=function(){return fC.Date.now()};function xC(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function yC(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hC.call(e)}(e))return NaN;if(xC(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xC(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(aC,"");var n=lC.test(e);return n||cC.test(e)?uC(e.slice(2),n?2:8):sC.test(e)?NaN:+e}var bC=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=mC();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?vC(n,o-(e-c)):n}(e))}function v(e){return s=void 0,p&&r?f(e):(r=i=void 0,a)}function m(){var e=mC(),n=h(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(g,t),u?f(e):a}(l);if(d)return s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=yC(t)||0,xC(n)&&(u=!!n.leading,o=(d="maxWait"in n)?gC(yC(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},m.flush=function(){return void 0===s?a:v(mC())},m},AC={exports:{}};
|
|
25
25
|
/*!
|
|
26
26
|
Copyright (c) 2018 Jed Watson.
|
|
27
27
|
Licensed under the MIT License (MIT), see
|