@kroo-web/design-system 1.1.76 → 1.1.78

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/esm/index.js CHANGED
@@ -88,4 +88,4 @@ object-assign
88
88
  * focus-trap 7.5.4
89
89
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
90
90
  */
91
- function em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?em(Object(n),!0).forEach((function(t){nm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var om=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)},rm=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},im=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},am=function(e){return im(e)&&!e.shiftKey},sm=function(e){return im(e)&&e.shiftKey},lm=function(e){return setTimeout(e,0)},um=function(e,t){var n=-1;return e.every((function(e,o){return!t(e)||(n=o,!1)})),n},cm=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},dm=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},pm=[],fm=Object.freeze({__proto__:null,createFocusTrap:function(e,t){var n,o=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||pm,i=tm({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:am,isKeyBackward:sm},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return a.containerGroups.findIndex((function(t){var o=t.container,r=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||r.find((function(t){return t===e}))}))},u=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=o.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=u("initialFocus");if(!1===e)return!1;if(void 0===e||!Jf(e,i.tabbableOptions))if(l(o.activeElement)>=0)e=o.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||u("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(a.containerGroups=a.containers.map((function(e){var t=Gf(e,i.tabbableOptions),n=Zf(e,i.tabbableOptions),o=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return Xf(e)})),s=n.slice().reverse().find((function(e){return Xf(e)})),l=!!t.find((function(e){return Lf(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:o,lastTabbableNode:r,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?o?n.slice(n.indexOf(e)+1).find((function(e){return Xf(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return Xf(e)})):t[r+(o?1:-1)]}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find((function(e){return e.posTabIndexesFound}))&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},f=function e(t){!1!==t&&t!==p(document)&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},m=function(e){var t=u("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,o=e.isBackward,r=void 0!==o&&o;t=t||dm(n),d();var s=null;if(a.tabbableGroups.length>0){var c=l(t,n),p=c>=0?a.containerGroups[c]:void 0;if(c<0)s=r?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(r){var f=um(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(p.container===t||Jf(t,i.tabbableOptions)&&!Xf(t,i.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(f=c),f>=0){var m=0===f?a.tabbableGroups.length-1:f-1,h=a.tabbableGroups[m];s=Lf(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else im(n)||(s=p.nextTabbableNode(t,!1))}else{var g=um(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(g<0&&(p.container===t||Jf(t,i.tabbableOptions)&&!Xf(t,i.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=c),g>=0){var v=g===a.tabbableGroups.length-1?0:g+1,y=a.tabbableGroups[v];s=Lf(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else im(n)||(s=p.nextTabbableNode(t))}}else s=u("fallbackFocus");return s},g=function(e){var t=dm(e);l(t,e)>=0||(cm(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):cm(i.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=dm(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var r=!0;if(a.mostRecentlyFocusedNode)if(Lf(a.mostRecentlyFocusedNode)>0){var s=l(a.mostRecentlyFocusedNode),u=a.containerGroups[s].tabbableNodes;if(u.length>0){var d=u.findIndex((function(e){return e===a.mostRecentlyFocusedNode}));d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<u.length&&(o=u[d+1],r=!1):d-1>=0&&(o=u[d-1],r=!1))}}else a.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return Lf(e)>0}))}))||(r=!1);else r=!1;r&&(o=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),f(o||(a.mostRecentlyFocusedNode||c()))}a.recentNavEvent=void 0},y=function(e){if(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)}(e)&&!1!==cm(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(i.isKeyForward(e)||i.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(im(e)&&e.preventDefault(),f(n))}(e,i.isKeyBackward(e))},A=function(e){var t=dm(e);l(t,e)>=0||cm(i.clickOutsideDeactivates,e)||cm(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(a.active)return om(r,n),a.delayInitialFocusTimer=i.delayInitialFocus?lm((function(){f(c())})):f(c()),o.addEventListener("focusin",v,!0),o.addEventListener("mousedown",g,{capture:!0,passive:!1}),o.addEventListener("touchstart",g,{capture:!0,passive:!1}),o.addEventListener("click",A,{capture:!0,passive:!1}),o.addEventListener("keydown",y,{capture:!0,passive:!1}),n},w=function(){if(a.active)return o.removeEventListener("focusin",v,!0),o.removeEventListener("mousedown",g,!0),o.removeEventListener("touchstart",g,!0),o.removeEventListener("click",A,!0),o.removeEventListener("keydown",y,!0),n},x="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===a.mostRecentlyFocusedNode}))}))&&f(c())})):void 0,E=function(){x&&(x.disconnect(),a.active&&!a.paused&&a.containers.map((function(e){x.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),r=s(e,"checkCanFocusTrap");r||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=o.activeElement,null==t||t();var i=function(){r&&d(),b(),E(),null==n||n()};return r?(r(a.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!a.active)return this;var t=tm({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,w(),a.active=!1,a.paused=!1,E(),rm(r,n);var o=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),u=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var d=function(){lm((function(){c&&f(m(a.nodeFocusedBeforeActivation)),null==l||l()}))};return c&&u?(u(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(a.paused||!a.active)return this;var t=s(e,"onPause"),n=s(e,"onPostPause");return a.paused=!0,null==t||t(),w(),E(),null==n||n(),this},unpause:function(e){if(!a.paused||!a.active)return this;var t=s(e,"onUnpause"),n=s(e,"onPostUnpause");return a.paused=!1,null==t||t(),d(),b(),E(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?o.querySelector(e):e})),a.active&&d(),E(),this}},n.updateContainerElements(e),n}}),mm=nn(fm),hm=nn($f);function gm(e){return gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gm(e)}function vm(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xm(o.key),o)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ym(e,t){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ym(e,t)}function Am(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=wm(e);if(t){var r=wm(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===gm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bm(e)}(this,n)}}function bm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wm(e){return wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wm(e)}function xm(e){var t=function(e,t){if("object"!==gm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==gm(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gm(t)?t:String(t)}var Em=t,Sm=On,km=mm.createFocusTrap,Cm=hm.isFocusable,Pm=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ym(e,t)}(t,Em.Component);var e=Am(t);function t(n){var o,r,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=e.call(this,n),r=bm(o),a=function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a,s=n;if("string"==typeof n&&!(s=null===(a=this.getDocument())||void 0===a?void 0:a.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},(i=xm(i="getNodeForOption"))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,o.handleDeactivate=o.handleDeactivate.bind(bm(o)),o.handlePostDeactivate=o.handlePostDeactivate.bind(bm(o)),o.handleClickOutsideDeactivates=o.handleClickOutsideDeactivates.bind(bm(o)),o.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:o.handleDeactivate,onPostDeactivate:o.handlePostDeactivate,clickOutsideDeactivates:o.handleClickOutsideDeactivates},o.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var s=n.focusTrapOptions;for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&("returnFocusOnDeactivate"!==l&&"onDeactivate"!==l&&"onPostDeactivate"!==l&&"checkCanReturnFocus"!==l&&"clickOutsideDeactivates"!==l?o.internalOptions[l]=s[l]:o.originalOptions[l]=s[l]);return o.outsideClick=null,o.focusTrapElements=n.containerElements||[],o.updatePreviousElement(),o}return vm(t,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||Cm(e.outsideClick.target,e.internalOptions.tabbableOptions))),o=e.internalOptions.preventScroll,r=void 0!==o&&o;n&&t.focus({preventScroll:r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,o=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();o&&this.focusTrap.pause(),r&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?Em.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===Em.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return Em.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}]),t}(),Im="undefined"==typeof Element?Function:Element;Pm.propTypes={active:Sm.bool,paused:Sm.bool,focusTrapOptions:Sm.shape({document:Sm.object,onActivate:Sm.func,onPostActivate:Sm.func,checkCanFocusTrap:Sm.func,onPause:Sm.func,onPostPause:Sm.func,onUnpause:Sm.func,onPostUnpause:Sm.func,onDeactivate:Sm.func,onPostDeactivate:Sm.func,checkCanReturnFocus:Sm.func,initialFocus:Sm.oneOfType([Sm.instanceOf(Im),Sm.string,Sm.bool,Sm.func]),fallbackFocus:Sm.oneOfType([Sm.instanceOf(Im),Sm.string,Sm.func]),escapeDeactivates:Sm.oneOfType([Sm.bool,Sm.func]),clickOutsideDeactivates:Sm.oneOfType([Sm.bool,Sm.func]),returnFocusOnDeactivate:Sm.bool,setReturnFocus:Sm.oneOfType([Sm.instanceOf(Im),Sm.string,Sm.bool,Sm.func]),allowOutsideClick:Sm.oneOfType([Sm.bool,Sm.func]),preventScroll:Sm.bool,tabbableOptions:Sm.shape({displayCheck:Sm.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:Sm.oneOfType([Sm.bool,Sm.func])}),trapStack:Sm.array,isKeyForward:Sm.func,isKeyBackward:Sm.func}),containerElements:Sm.arrayOf(Sm.instanceOf(Im)),children:Sm.oneOfType([Sm.element,Sm.instanceOf(Im)])},Pm.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:km};var Om=tn(Pm),Dm="modal-module_modal__RJmct",Tm="modal-module_modal-header__Io9gR",Nm="modal-module_buttons__A9VMO";Ke(".modal-module_modal__RJmct {\n position: fixed;\n inset: 0;\n width: calc(100% - 2rem);\n margin: 1rem;\n border-radius: 24px;\n border: none;\n padding: 2rem;\n background-color: var(--product-ghost-white);\n top: calc(50% - 1rem);\n left: calc(50% - 1rem);\n transform: translate(-50%, -50%);\n z-index: 1000;\n}\n\n.modal-module_modal__RJmct::backdrop {\n background-color: rgba(0, 0, 0, 0.75);\n z-index: 998;\n}\n\n.modal-module_backdrop-close__ICMET {\n position: fixed;\n inset: 0;\n background: orange;\n opacity: 0.3;\n z-index: 999;\n}\n\n.modal-module_modal-header__Io9gR {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid var(--product-border);\n margin-bottom: 1.5rem;\n}\n\n.modal-module_buttons__A9VMO {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n margin-top: 1.5rem;\n}\n\n.modal-module_buttons__A9VMO button {\n width: auto;\n display: flex;\n justify-content: center;\n}\n\n@media (min-width: 768px) {\n .modal-module_modal__RJmct {\n width: 720px;\n margin: 0;\n }\n\n .modal-module_buttons__A9VMO {\n flex-direction: row;\n justify-content: flex-end;\n margin-top: 2.5rem;\n gap: 1rem;\n }\n\n .modal-module_buttons__A9VMO button {\n width: -moz-fit-content;\n width: fit-content;\n }\n}\n");var Bm=hf((function(e){return{activeModal:"",isOpen:!1,open:function(t){return e({activeModal:t,isOpen:!0})},close:function(){return e({activeModal:"",isOpen:!1})}}})),Rm=function(e){var n=e.children;return t.createElement("footer",{className:Nm},n)},Mm={Content:function(e){var n=e.value,o=e.children,r=e.focusTrap,a=e.closeOnBackdropClick,s=Bm(),l=s.isOpen,u=n===s.activeModal&&l,c=i(null),d=function(){var e;(null==c?void 0:c.current)&&(If(null==c?void 0:c.current),null===(e=c.current)||void 0===e||e.close())};return u?function(){var e;(null==c?void 0:c.current)&&(Pf(null==c?void 0:c.current),null===(e=c.current)||void 0===e||e.showModal())}():d(),t.createElement(Om,{active:u&&!0===r},t.createElement("dialog",{ref:c,className:Dm,onClick:function(e){a&&e.target===e.currentTarget&&d()}},o))},Control:function(e){var n=e.value,o=e.children,r=P(e,["value","children"]),i=Bm().open;return t.createElement(Ct,C({onClick:function(){return i(n)},autoFocus:!0},r),o)},Header:function(e){var n=e.title,o=e.variant,r=e.onClick,i=Bm().close;return t.createElement("header",{className:Tm},t.createElement(vt,{variant:"content-title-semi-bold"},n),"action"===o&&t.createElement(Ct,{visualType:"action",variant:"standard",type:"submit",onClick:function(){r&&r()}},"Done"),"action"!==o&&t.createElement(Ct,{autoFocus:!0,onlyIcon:!0,variant:"tertiary",onClick:function(){return i()}},t.createElement(ht,{icon:"close"})))},Buttons:Rm},Fm="numberField-module_container__DPRfq",Vm="numberField-module_fake-input__OepBg",Lm="numberField-module_spinbutton-container__u6eZo",jm="numberField-module_spinbutton-container--error__e4hYD",zm="numberField-module_control__hZdOA";Ke(".numberField-module_container__DPRfq {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__OepBg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__u6eZo {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__e4hYD {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__5qWGD {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__GeUsR {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__vjhWU {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__hZdOA {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n");var Qm=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],Um=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(Hm,C({},s,{field:C({},n)}))}})},Hm=function(e){var n=e.name,o=e.label,r=e.min,i=void 0===r?0:r,a=e.max,s=void 0===a?100:a,l=e.width,u=void 0===l?3:l,c=e.error,d=e.helper,p=e.field,f=p.value,m=p.onChange,h=p.onBlur,g=function(e){f<=i||m(f-e)},v=function(e){f>=s||m(f+e)};return t.createElement(Lp,{id:"".concat(n,"-label"),label:o,error:null==c?void 0:c.message,helper:null==d?void 0:d.message},t.createElement("div",{className:Fm},t.createElement("div",{className:qe(Lm,c&&jm)},t.createElement("button",{className:zm,type:"button",tabIndex:-1,onClick:function(){return g(1)},"aria-label":"decrease"},t.createElement(ht,{size:"large",icon:"remove"})),t.createElement(vt,{as:"div",className:Vm,role:"spinbutton",tabIndex:0,onKeyDown:function(e){Qm.includes(e.key)&&(e.preventDefault(),function(e){"ArrowUp"===e.key&&v(1),"ArrowDown"===e.key&&g(1)}(e),function(e){"PageUp"===e.key&&v(5),"PageDown"===e.key&&g(5)}(e),function(e){"Home"===e.key&&m(i),"End"===e.key&&m(s)}(e))},onBlur:h,"aria-valuenow":f,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==c?void 0:c.message),"aria-errormessage":c?"".concat(n,"-error"):void 0,style:{width:"".concat(u,"ch")}},f),t.createElement("button",{className:zm,type:"button",tabIndex:-1,onClick:function(){return v(1)},"aria-label":"increase"},t.createElement(ht,{size:"large",icon:"add"})))))},_m=[{country:"Afghanistan",code:"93",iso:"AF"},{country:"Albania",code:"355",iso:"AL"},{country:"Algeria",code:"213",iso:"DZ"},{country:"American Samoa",code:"1-684",iso:"AS"},{country:"Andorra",code:"376",iso:"AD"},{country:"Angola",code:"244",iso:"AO"},{country:"Anguilla",code:"1-264",iso:"AI"},{country:"Antarctica",code:"672",iso:"AQ"},{country:"Antigua and Barbuda",code:"1-268",iso:"AG"},{country:"Argentina",code:"54",iso:"AR"},{country:"Armenia",code:"374",iso:"AM"},{country:"Aruba",code:"297",iso:"AW"},{country:"Australia",code:"61",iso:"AU"},{country:"Austria",code:"43",iso:"AT"},{country:"Azerbaijan",code:"994",iso:"AZ"},{country:"Bahamas",code:"1-242",iso:"BS"},{country:"Bahrain",code:"973",iso:"BH"},{country:"Bangladesh",code:"880",iso:"BD"},{country:"Barbados",code:"1-246",iso:"BB"},{country:"Belarus",code:"375",iso:"BY"},{country:"Belgium",code:"32",iso:"BE"},{country:"Belize",code:"501",iso:"BZ"},{country:"Benin",code:"229",iso:"BJ"},{country:"Bermuda",code:"1-441",iso:"BM"},{country:"Bhutan",code:"975",iso:"BT"},{country:"Bolivia",code:"591",iso:"BO"},{country:"Bosnia and Herzegovina",code:"387",iso:"BA"},{country:"Botswana",code:"267",iso:"BW"},{country:"Brazil",code:"55",iso:"BR"},{country:"British Indian Ocean Territory",code:"246",iso:"IO"},{country:"British Virgin Islands",code:"1-284",iso:"VG"},{country:"Brunei",code:"673",iso:"BN"},{country:"Bulgaria",code:"359",iso:"BG"},{country:"Burkina Faso",code:"226",iso:"BF"},{country:"Burundi",code:"257",iso:"BI"},{country:"Cambodia",code:"855",iso:"KH"},{country:"Cameroon",code:"237",iso:"CM"},{country:"Canada",code:"1",iso:"CA"},{country:"Cape Verde",code:"238",iso:"CV"},{country:"Cayman Islands",code:"1-345",iso:"KY"},{country:"Central African Republic",code:"236",iso:"CF"},{country:"Chad",code:"235",iso:"TD"},{country:"Chile",code:"56",iso:"CL"},{country:"China",code:"86",iso:"CN"},{country:"Christmas Island",code:"61",iso:"CX"},{country:"Cocos Islands",code:"61",iso:"CC"},{country:"Colombia",code:"57",iso:"CO"},{country:"Comoros",code:"269",iso:"KM"},{country:"Cook Islands",code:"682",iso:"CK"},{country:"Costa Rica",code:"506",iso:"CR"},{country:"Croatia",code:"385",iso:"HR"},{country:"Cuba",code:"53",iso:"CU"},{country:"Curacao",code:"599",iso:"CW"},{country:"Cyprus",code:"357",iso:"CY"},{country:"Czech Republic",code:"420",iso:"CZ"},{country:"Democratic Republic of the Congo",code:"243",iso:"CD"},{country:"Denmark",code:"45",iso:"DK"},{country:"Djibouti",code:"253",iso:"DJ"},{country:"Dominica",code:"1-767",iso:"DM"},{country:"Dominican Republic",code:"1-809, 1-829, 1-849",iso:"DO"},{country:"East Timor",code:"670",iso:"TL"},{country:"Ecuador",code:"593",iso:"EC"},{country:"Egypt",code:"20",iso:"EG"},{country:"El Salvador",code:"503",iso:"SV"},{country:"Equatorial Guinea",code:"240",iso:"GQ"},{country:"Eritrea",code:"291",iso:"ER"},{country:"Estonia",code:"372",iso:"EE"},{country:"Ethiopia",code:"251",iso:"ET"},{country:"Falkland Islands",code:"500",iso:"FK"},{country:"Faroe Islands",code:"298",iso:"FO"},{country:"Fiji",code:"679",iso:"FJ"},{country:"Finland",code:"358",iso:"FI"},{country:"France",code:"33",iso:"FR"},{country:"French Polynesia",code:"689",iso:"PF"},{country:"Gabon",code:"241",iso:"GA"},{country:"Gambia",code:"220",iso:"GM"},{country:"Georgia",code:"995",iso:"GE"},{country:"Germany",code:"49",iso:"DE"},{country:"Ghana",code:"233",iso:"GH"},{country:"Gibraltar",code:"350",iso:"GI"},{country:"Greece",code:"30",iso:"GR"},{country:"Greenland",code:"299",iso:"GL"},{country:"Grenada",code:"1-473",iso:"GD"},{country:"Guam",code:"1-671",iso:"GU"},{country:"Guatemala",code:"502",iso:"GT"},{country:"Guernsey",code:"44-1481",iso:"GG"},{country:"Guinea",code:"224",iso:"GN"},{country:"Guinea-Bissau",code:"245",iso:"GW"},{country:"Guyana",code:"592",iso:"GY"},{country:"Haiti",code:"509",iso:"HT"},{country:"Honduras",code:"504",iso:"HN"},{country:"Hong Kong",code:"852",iso:"HK"},{country:"Hungary",code:"36",iso:"HU"},{country:"Iceland",code:"354",iso:"IS"},{country:"India",code:"91",iso:"IN"},{country:"Indonesia",code:"62",iso:"ID"},{country:"Iran",code:"98",iso:"IR"},{country:"Iraq",code:"964",iso:"IQ"},{country:"Ireland",code:"353",iso:"IE"},{country:"Isle of Man",code:"44-1624",iso:"IM"},{country:"Israel",code:"972",iso:"IL"},{country:"Italy",code:"39",iso:"IT"},{country:"Ivory Coast",code:"225",iso:"CI"},{country:"Jamaica",code:"1-876",iso:"JM"},{country:"Japan",code:"81",iso:"JP"},{country:"Jersey",code:"44-1534",iso:"JE"},{country:"Jordan",code:"962",iso:"JO"},{country:"Kazakhstan",code:"7",iso:"KZ"},{country:"Kenya",code:"254",iso:"KE"},{country:"Kiribati",code:"686",iso:"KI"},{country:"Kosovo",code:"383",iso:"XK"},{country:"Kuwait",code:"965",iso:"KW"},{country:"Kyrgyzstan",code:"996",iso:"KG"},{country:"Laos",code:"856",iso:"LA"},{country:"Latvia",code:"371",iso:"LV"},{country:"Lebanon",code:"961",iso:"LB"},{country:"Lesotho",code:"266",iso:"LS"},{country:"Liberia",code:"231",iso:"LR"},{country:"Libya",code:"218",iso:"LY"},{country:"Liechtenstein",code:"423",iso:"LI"},{country:"Lithuania",code:"370",iso:"LT"},{country:"Luxembourg",code:"352",iso:"LU"},{country:"Macao",code:"853",iso:"MO"},{country:"Macedonia",code:"389",iso:"MK"},{country:"Madagascar",code:"261",iso:"MG"},{country:"Malawi",code:"265",iso:"MW"},{country:"Malaysia",code:"60",iso:"MY"},{country:"Maldives",code:"960",iso:"MV"},{country:"Mali",code:"223",iso:"ML"},{country:"Malta",code:"356",iso:"MT"},{country:"Marshall Islands",code:"692",iso:"MH"},{country:"Mauritania",code:"222",iso:"MR"},{country:"Mauritius",code:"230",iso:"MU"},{country:"Mayotte",code:"262",iso:"YT"},{country:"Mexico",code:"52",iso:"MX"},{country:"Micronesia",code:"691",iso:"FM"},{country:"Moldova",code:"373",iso:"MD"},{country:"Monaco",code:"377",iso:"MC"},{country:"Mongolia",code:"976",iso:"MN"},{country:"Montenegro",code:"382",iso:"ME"},{country:"Montserrat",code:"1-664",iso:"MS"},{country:"Morocco",code:"212",iso:"MA"},{country:"Mozambique",code:"258",iso:"MZ"},{country:"Myanmar",code:"95",iso:"MM"},{country:"Namibia",code:"264",iso:"NA"},{country:"Nauru",code:"674",iso:"NR"},{country:"Nepal",code:"977",iso:"NP"},{country:"Netherlands",code:"31",iso:"NL"},{country:"Netherlands Antilles",code:"599",iso:"AN"},{country:"New Caledonia",code:"687",iso:"NC"},{country:"New Zealand",code:"64",iso:"NZ"},{country:"Nicaragua",code:"505",iso:"NI"},{country:"Niger",code:"227",iso:"NE"},{country:"Nigeria",code:"234",iso:"NG"},{country:"Niue",code:"683",iso:"NU"},{country:"North Korea",code:"850",iso:"KP"},{country:"Northern Mariana Islands",code:"1-670",iso:"MP"},{country:"Norway",code:"47",iso:"NO"},{country:"Oman",code:"968",iso:"OM"},{country:"Pakistan",code:"92",iso:"PK"},{country:"Palau",code:"680",iso:"PW"},{country:"Palestine",code:"970",iso:"PS"},{country:"Panama",code:"507",iso:"PA"},{country:"Papua New Guinea",code:"675",iso:"PG"},{country:"Paraguay",code:"595",iso:"PY"},{country:"Peru",code:"51",iso:"PE"},{country:"Philippines",code:"63",iso:"PH"},{country:"Pitcairn",code:"64",iso:"PN"},{country:"Poland",code:"48",iso:"PL"},{country:"Portugal",code:"351",iso:"PT"},{country:"Puerto Rico",code:"1-787, 1-939",iso:"PR"},{country:"Qatar",code:"974",iso:"QA"},{country:"Republic of the Congo",code:"242",iso:"CG"},{country:"Reunion",code:"262",iso:"RE"},{country:"Romania",code:"40",iso:"RO"},{country:"Russia",code:"7",iso:"RU"},{country:"Rwanda",code:"250",iso:"RW"},{country:"Saint Barthelemy",code:"590",iso:"BL"},{country:"Saint Helena",code:"290",iso:"SH"},{country:"Saint Kitts and Nevis",code:"1-869",iso:"KN"},{country:"Saint Lucia",code:"1-758",iso:"LC"},{country:"Saint Martin",code:"590",iso:"MF"},{country:"Saint Pierre and Miquelon",code:"508",iso:"PM"},{country:"Saint Vincent and the Grenadines",code:"1-784",iso:"VC"},{country:"Samoa",code:"685",iso:"WS"},{country:"San Marino",code:"378",iso:"SM"},{country:"Sao Tome and Principe",code:"239",iso:"ST"},{country:"Saudi Arabia",code:"966",iso:"SA"},{country:"Senegal",code:"221",iso:"SN"},{country:"Serbia",code:"381",iso:"RS"},{country:"Seychelles",code:"248",iso:"SC"},{country:"Sierra Leone",code:"232",iso:"SL"},{country:"Singapore",code:"65",iso:"SG"},{country:"Sint Maarten",code:"1-721",iso:"SX"},{country:"Slovakia",code:"421",iso:"SK"},{country:"Slovenia",code:"386",iso:"SI"},{country:"Solomon Islands",code:"677",iso:"SB"},{country:"Somalia",code:"252",iso:"SO"},{country:"South Africa",code:"27",iso:"ZA"},{country:"South Korea",code:"82",iso:"KR"},{country:"South Sudan",code:"211",iso:"SS"},{country:"Spain",code:"34",iso:"ES"},{country:"Sri Lanka",code:"94",iso:"LK"},{country:"Sudan",code:"249",iso:"SD"},{country:"Suriname",code:"597",iso:"SR"},{country:"Svalbard and Jan Mayen",code:"47",iso:"SJ"},{country:"Swaziland",code:"268",iso:"SZ"},{country:"Sweden",code:"46",iso:"SE"},{country:"Switzerland",code:"41",iso:"CH"},{country:"Syria",code:"963",iso:"SY"},{country:"Taiwan",code:"886",iso:"TW"},{country:"Tajikistan",code:"992",iso:"TJ"},{country:"Tanzania",code:"255",iso:"TZ"},{country:"Thailand",code:"66",iso:"TH"},{country:"Togo",code:"228",iso:"TG"},{country:"Tokelau",code:"690",iso:"TK"},{country:"Tonga",code:"676",iso:"TO"},{country:"Trinidad and Tobago",code:"1-868",iso:"TT"},{country:"Tunisia",code:"216",iso:"TN"},{country:"Turkey",code:"90",iso:"TR"},{country:"Turkmenistan",code:"993",iso:"TM"},{country:"Turks and Caicos Islands",code:"1-649",iso:"TC"},{country:"Tuvalu",code:"688",iso:"TV"},{country:"U.S. Virgin Islands",code:"1-340",iso:"VI"},{country:"Uganda",code:"256",iso:"UG"},{country:"Ukraine",code:"380",iso:"UA"},{country:"United Arab Emirates",code:"971",iso:"AE"},{country:"United Kingdom",code:"44",iso:"GB"},{country:"United States",code:"1",iso:"US"},{country:"Uruguay",code:"598",iso:"UY"},{country:"Uzbekistan",code:"998",iso:"UZ"},{country:"Vanuatu",code:"678",iso:"VU"},{country:"Vatican",code:"379",iso:"VA"},{country:"Venezuela",code:"58",iso:"VE"},{country:"Vietnam",code:"84",iso:"VN"},{country:"Wallis and Futuna",code:"681",iso:"WF"},{country:"Western Sahara",code:"212",iso:"EH"},{country:"Yemen",code:"967",iso:"YE"},{country:"Zambia",code:"260",iso:"ZM"},{country:"Zimbabwe",code:"263",iso:"ZW"}],qm="phoneField-module_container__O2nj3",Km="phoneField-module_select__gwMva",Wm="phoneField-module_flag__p2BYn",Gm="phoneField-module_input-container__qyzH8",Zm="phoneField-module_phone-input__vQV2U",Xm="phoneField-module_error__HQhja",Ym="phoneField-module_error-icon__ASrep",Jm="phoneField-module_helper__rnbGq",$m="phoneField-module_input-helper-outer__DkMld";Ke(".phoneField-module_container__O2nj3 {\n display: flex;\n gap: 0.25rem;\n}\n\n.phoneField-module_select__gwMva {\n position: relative;\n display: flex;\n height: -moz-fit-content;\n height: fit-content;\n}\n\n.phoneField-module_select__gwMva select {\n padding-top: 1rem;\n padding-bottom: 1rem;\n padding-left: 1.75rem;\n width: 10.5ch;\n font-size: 1.125rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1.5rem;\n border-radius: 0.5rem 0.125rem 0.125rem 0.5rem;\n border: 4px solid var(--product-greyscale-0);\n text-overflow: ellipsis;\n min-width: 10ch;\n color: var(--product-greyscale-100);\n height: -moz-fit-content;\n height: fit-content;\n}\n\n.phoneField-module_select__gwMva select:hover {\n background: var(--product-greyscale-20);\n}\n\n.phoneField-module_select__gwMva select:focus {\n outline: none;\n outline: 2px solid var(--product-greyscale-100);\n}\n\n.phoneField-module_flag__p2BYn {\n position: absolute;\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-family: Inter;\n font-size: 1.125rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1.5rem;\n}\n\n.phoneField-module_input-container__qyzH8 {\n position: relative;\n width: 100%;\n height: -moz-fit-content;\n height: fit-content;\n}\n\n.phoneField-module_phone-input__vQV2U {\n width: 100%;\n font-size: 1.125rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1.5rem;\n padding: 1.25rem 1rem;\n border-radius: 0.125rem 0.5rem 0.5rem 0.125rem;\n border: 2px solid transparent;\n caret-color: var(--product-love-pink-100);\n color: var(--product-greyscale-100);\n height: 100%;\n}\n\n.phoneField-module_phone-input__vQV2U.phoneField-module_error__HQhja {\n border-color: var(--product-error);\n}\n\n.phoneField-module_phone-input__vQV2U.phoneField-module_error__HQhja:hover {\n border-color: var(--product-error);\n}\n\n.phoneField-module_phone-input__vQV2U.phoneField-module_error__HQhja:placeholder {\n color: var(--product-error);\n}\n\n.phoneField-module_phone-input__vQV2U:placeholder {\n color: var(--product-greyscale-60);\n}\n\n.phoneField-module_phone-input__vQV2U:hover {\n border-color: var(--product-greyscale-20);\n}\n\n.phoneField-module_phone-input__vQV2U:focus-visible {\n outline: none;\n outline: 2px solid var(--product-greyscale-100);\n}\n\n.phoneField-module_error-icon__ASrep {\n position: absolute;\n top: 50%;\n right: 1rem;\n transform: translateY(-50%);\n color: var(--product-error);\n}\n\n.phoneField-module_helper__rnbGq {\n color: var(--product-error);\n padding: 0.5rem 1rem;\n}\n\n.phoneField-module_input-helper-outer__DkMld {\n width: 100%;\n display: flex;\n flex-direction: column;\n}\n");var eh=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(th,C({},s,{field:C({},n)}))}})},th=function(e){var o,r=e.id,i=e.placeholder,a=e.error,s=e.field,l=n("44"),u=l[0],c=l[1],d=E().setValue,p=a;d("".concat(r,".phone.code"),"+".concat(u)),d("".concat(r,".phone.formatted"),"+".concat(u).concat(s.value));var f,m;return t.createElement("div",{className:qm},t.createElement("div",{className:Km},t.createElement("div",{className:Wm},(f=(null===(o=_m.find((function(e){return e.code===u})))||void 0===o?void 0:o.iso)||"",m=f.toUpperCase().split("").map((function(e){return 127397+e.charCodeAt()})),String.fromCodePoint.apply(String,m))),t.createElement("label",{className:"sr-only",htmlFor:"".concat(r,"-call-code-select")},"Call code"),t.createElement("select",{id:"".concat(r,"-call-code-select"),defaultValue:"44",onChange:function(e){var t=e.target.value;c(t)}},_m.filter((function(e){return"44"===e.code})).map((function(e){var n=e.code,o=e.country;return t.createElement("option",{key:o,value:n},"+",n," (",o,")")})),t.createElement("optgroup",{label:"Other countries"},_m.filter((function(e){return"44"!==e.code})).map((function(e){var n=e.code,o=e.country;return t.createElement("option",{key:o,value:n},"+",n," (",o,")")}))))),t.createElement("div",{className:$m},t.createElement("div",{className:Gm},t.createElement("label",{className:"sr-only",htmlFor:"".concat(r,"-phone-input")},"Mobile phone number without callcode"),t.createElement("input",C({id:"".concat(r,"-phone-input"),className:qe(Zm,p&&Xm),type:"tel",placeholder:i,"aria-describedby":"".concat(r,"-phone-field-error")},s)),p&&t.createElement("div",{className:Ym},t.createElement(ht,{icon:"error"}))),t.createElement(vt,{className:qe("".concat(r,"-phone-field-error"),Jm),variant:"form-helper"},null==a?void 0:a.message)))},nh="pinInput-module_inputContainer__bzkiK",oh="pinInput-module_inputWrapper__Rsd-3",rh="pinInput-module_input__SL8JP";Ke(".pinInput-module_inputContainer__bzkiK {\n list-style: none;\n display: flex;\n justify-content: center;\n gap: 1rem;\n}\n\n.pinInput-module_inputWrapper__Rsd-3 {\n width: 3.5rem;\n height: 4.5rem;\n border: 2px solid transparent;\n border-radius: 6px;\n}\n\n\n.pinInput-module_input__SL8JP {\n height: 100%;\n width: 100%;\n font-size: 2rem;\n font-weight: 600;\n text-align: center;\n background: var(--primary-ghost-white);\n color: var(--primary-trust-blue-100);\n caret-color: var(--product-love-pink-100);\n border: none;\n border: 0.25rem solid white;\n border-radius: 6px;\n outline: none;\n overflow: hidden;\n}\n\n.pinInput-module_input__SL8JP:hover {\n outline: 2px solid var(--product-greyscale-20);\n}\n\n.pinInput-module_input__SL8JP:not(:-moz-placeholder-shown) {\n background: var(--secondary-blue-20);\n outline: 2px solid var(--product-greyscale-100);\n\n}\n\n.pinInput-module_input__SL8JP:not(:placeholder-shown) {\n background: var(--secondary-blue-20);\n outline: 2px solid var(--product-greyscale-100);\n\n}\n\n.pinInput-module_input__SL8JP+error {\n border: 2px solid var(--product-error);\n}\n");var ih=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"],ah=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(sh,C({},s,{field:C({},n)}))}})},sh=function(e){var r=e.length,a=void 0===r?6:r,s=e.label,l=e.isOTP,u=void 0===l||l,c=e.isPassword,d=void 0!==c&&c,p=e.isNumeric,f=void 0===p||p,m=e.field,h=i([]),g=n(Array.from({length:a},(function(){return null}))),v=g[0],y=g[1],A=function(e){var t=e.target,n=h.current.indexOf(t),o=h.current[n+1];!f||/^\d+$/.test(t.value)?(y((function(e){var o=I([],e,!0);return o[n]=t.value,o})),o&&o.focus()):t.value=""},b=function(e){e.preventDefault();var t=e.clipboardData;if(t){var n=t.getData("text").split("");y((function(e){var t=I([],e,!0);return n.slice(0,a).forEach((function(e,n){t[n]=e})),t}))}};return o((function(){m.onChange(v.join(""))}),[m,v]),t.createElement("label",null,t.createElement("span",{className:"sr-only"},s),t.createElement("ul",{className:nh},Array.from({length:a},(function(e,n){return t.createElement("li",{className:oh},t.createElement("input",{key:"otp-".concat(n),ref:function(e){e&&(h.current[n]=e)},value:v[n]||"",placeholder:" ",className:rh,type:d?"password":"text",inputMode:f?"numeric":"text",maxLength:1,pattern:f?"[0-9]*":"",autoComplete:u?"one-time-code":"false",autoCapitalize:"none","aria-label":"pin input ".concat(n+1," of ").concat(a),onInput:A,onKeyDown:function(e){"Backspace"===e.key&&function(e){null==e||e.preventDefault();var t=e.target,n=h.current.indexOf(t),o=h.current[n-1];t.value="",y((function(e){var t=I([],e,!0);return t[n]=null,t})),o&&o.focus()}(e),"Delete"===e.key&&function(e){null==e||e.preventDefault();var t=e.target,n=h.current.indexOf(t);t.value="",y((function(e){var t=I([],e,!0);return t[n]=null,t}))}(e),ih.includes(e.key)&&function(e){e.preventDefault();var t=e.target,n=h.current.indexOf(t),o=h.current[n-1];if("Home"===e.key&&h.current[0].focus(),"End"===e.key&&h.current[a-1].focus(),"ArrowLeft"===e.key&&o&&o.focus(),"ArrowRight"===e.key){var r=h.current[n+1];r&&r.focus()}}(e)},onPaste:b}))}))),t.createElement("input",C({className:"sr-only","aria-hidden":"true",tabIndex:-1},m)))};var lh,uh="dismissableLayer.update",ch="dismissableLayer.pointerDownOutside",dh="dismissableLayer.focusOutside",ph=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fh=e.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=t,c=e.useContext(ph),[d,p]=e.useState(null),f=d?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=N(n,(e=>p(e))),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=g.indexOf(v),b=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=A,E=function(t,n=globalThis?.document){const o=z(t),r=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let t=function(){hh(ch,o,r,{discrete:!0})};const r={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);r.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,o]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));x&&!n&&(i?.(e),s?.(e),e.defaultPrevented||l?.())}),f),S=function(t,n=globalThis?.document){const o=z(t),r=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!r.current){hh(dh,o,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(a?.(e),s?.(e),e.defaultPrevented||l?.())}),f);return function(t,n=globalThis?.document){const o=z(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&o(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[o,n])}((e=>{b===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),f),e.useEffect((()=>{if(d)return o&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(lh=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),mh(),()=>{o&&1===c.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=lh)}}),[d,f,o,c]),e.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),mh())}),[d,c]),e.useEffect((()=>{const e=()=>m({});return document.addEventListener(uh,e),()=>document.removeEventListener(uh,e)}),[]),y(U.div,{...u,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...t.style},onFocusCapture:j(t.onFocusCapture,S.onFocusCapture),onBlurCapture:j(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:j(t.onPointerDownCapture,E.onPointerDownCapture)})}));fh.displayName="DismissableLayer";function mh(){const e=new CustomEvent(uh);document.dispatchEvent(e)}function hh(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?function(e,t){e&&w.flushSync((()=>e.dispatchEvent(t)))}(r,i):r.dispatchEvent(i)}e.forwardRef(((t,n)=>{const o=e.useContext(ph),r=e.useRef(null),i=N(n,r);return e.useEffect((()=>{const e=r.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}}),[o.branches]),y(U.div,{...t,ref:i})})).displayName="DismissableLayerBranch";var gh=0;function vh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var yh="focusScope.autoFocusOnMount",Ah="focusScope.autoFocusOnUnmount",bh={bubbles:!1,cancelable:!0},wh=e.forwardRef(((t,n)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[l,u]=e.useState(null),c=z(i),d=z(a),p=e.useRef(null),f=N(n,(e=>u(e))),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(r){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:kh(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||kh(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&kh(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return l&&o.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,l,m.paused]),e.useEffect((()=>{if(l){Ch.add(m);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(yh,bh);l.addEventListener(yh,c),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(kh(o,{select:t}),document.activeElement!==n)return}((e=xh(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&kh(l))}return()=>{l.removeEventListener(yh,c),setTimeout((()=>{const e=new CustomEvent(Ah,bh);l.addEventListener(Ah,d),l.dispatchEvent(e),e.defaultPrevented||kh(t??document.body,{select:!0}),l.removeEventListener(Ah,d),Ch.remove(m)}),0)}}var e}),[l,c,d,m]);const h=e.useCallback((e=>{if(!o&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,i]=function(e){const t=xh(e),n=Eh(t,e),o=Eh(t.reverse(),e);return[n,o]}(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&kh(i,{select:!0})):(e.preventDefault(),o&&kh(r,{select:!0})):n===t&&e.preventDefault()}}),[o,r,m.paused]);return y(U.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})}));function xh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Eh(e,t){for(const n of e)if(!Sh(n,{upTo:t}))return n}function Sh(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function kh(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}wh.displayName="FocusScope";var Ch=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ph(e,t),e.unshift(t)},remove(t){e=Ph(e,t),e[0]?.resume()}}}();function Ph(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}const Ih=["top","right","bottom","left"],Oh=Math.min,Dh=Math.max,Th=Math.round,Nh=Math.floor,Bh=e=>({x:e,y:e}),Rh={left:"right",right:"left",bottom:"top",top:"bottom"},Mh={start:"end",end:"start"};function Fh(e,t,n){return Dh(e,Oh(t,n))}function Vh(e,t){return"function"==typeof e?e(t):e}function Lh(e){return e.split("-")[0]}function jh(e){return e.split("-")[1]}function zh(e){return"x"===e?"y":"x"}function Qh(e){return"y"===e?"height":"width"}function Uh(e){return["top","bottom"].includes(Lh(e))?"y":"x"}function Hh(e){return zh(Uh(e))}function _h(e){return e.replace(/start|end/g,(e=>Mh[e]))}function qh(e){return e.replace(/left|right|bottom|top/g,(e=>Rh[e]))}function Kh(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Wh(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Gh(e,t,n){let{reference:o,floating:r}=e;const i=Uh(t),a=Hh(t),s=Qh(a),l=Lh(t),u="y"===i,c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(l){case"top":f={x:c,y:o.y-r.height};break;case"bottom":f={x:c,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(jh(t)){case"start":f[a]-=p*(n&&u?-1:1);break;case"end":f[a]+=p*(n&&u?-1:1)}return f}async function Zh(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Vh(t,e),m=Kh(f),h=s[p?"floating"===d?"reference":"floating":d],g=Wh(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),A=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=Wh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+m.top)/A.y,bottom:(b.bottom-g.bottom+m.bottom)/A.y,left:(g.left-b.left+m.left)/A.x,right:(b.right-g.right+m.right)/A.x}}function Xh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yh(e){return Ih.some((t=>e[t]>=0))}function Jh(e){return tg(e)?(e.nodeName||"").toLowerCase():"#document"}function $h(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eg(e){var t;return null==(t=(tg(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tg(e){return e instanceof Node||e instanceof $h(e).Node}function ng(e){return e instanceof Element||e instanceof $h(e).Element}function og(e){return e instanceof HTMLElement||e instanceof $h(e).HTMLElement}function rg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof $h(e).ShadowRoot)}function ig(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=dg(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ag(e){return["table","td","th"].includes(Jh(e))}function sg(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function lg(e){const t=ug(),n=ng(e)?dg(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ug(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function cg(e){return["html","body","#document"].includes(Jh(e))}function dg(e){return $h(e).getComputedStyle(e)}function pg(e){return ng(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fg(e){if("html"===Jh(e))return e;const t=e.assignedSlot||e.parentNode||rg(e)&&e.host||eg(e);return rg(t)?t.host:t}function mg(e){const t=fg(e);return cg(t)?e.ownerDocument?e.ownerDocument.body:e.body:og(t)&&ig(t)?t:mg(t)}function hg(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=mg(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=$h(r);return i?t.concat(a,a.visualViewport||[],ig(r)?r:[],a.frameElement&&n?hg(a.frameElement):[]):t.concat(r,hg(r,[],n))}function gg(e){const t=dg(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=og(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Th(n)!==i||Th(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function vg(e){return ng(e)?e:e.contextElement}function yg(e){const t=vg(e);if(!og(t))return Bh(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=gg(t);let a=(i?Th(n.width):n.width)/o,s=(i?Th(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ag=Bh(0);function bg(e){const t=$h(e);return ug()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ag}function wg(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=vg(e);let a=Bh(1);t&&(o?ng(o)&&(a=yg(o)):a=yg(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$h(e))&&t}(i,n,o)?bg(i):Bh(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,c=r.width/a.x,d=r.height/a.y;if(i){const e=$h(i),t=o&&ng(o)?$h(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=yg(r),t=r.getBoundingClientRect(),o=dg(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=$h(r),r=n.frameElement}}return Wh({width:c,height:d,x:l,y:u})}function xg(e){return wg(eg(e)).left+pg(e).scrollLeft}function Eg(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=$h(e),o=eg(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=ug();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)o=function(e){const t=eg(e),n=pg(e),o=e.ownerDocument.body,r=Dh(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Dh(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+xg(e);const s=-n.scrollTop;return"rtl"===dg(o).direction&&(a+=Dh(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(eg(e));else if(ng(t))o=function(e,t){const n=wg(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=og(e)?yg(e):Bh(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=bg(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return Wh(o)}function Sg(e,t){const n=fg(e);return!(n===t||!ng(n)||cg(n))&&("fixed"===dg(n).position||Sg(n,t))}function kg(e,t,n){const o=og(t),r=eg(t),i="fixed"===n,a=wg(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Bh(0);if(o||!o&&!i)if(("body"!==Jh(t)||ig(r))&&(s=pg(t)),o){const e=wg(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=xg(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Cg(e){return"static"===dg(e).position}function Pg(e,t){return og(e)&&"fixed"!==dg(e).position?t?t(e):e.offsetParent:null}function Ig(e,t){const n=$h(e);if(sg(e))return n;if(!og(e)){let t=fg(e);for(;t&&!cg(t);){if(ng(t)&&!Cg(t))return t;t=fg(t)}return n}let o=Pg(e,t);for(;o&&ag(o)&&Cg(o);)o=Pg(o,t);return o&&cg(o)&&Cg(o)&&!lg(o)?n:o||function(e){let t=fg(e);for(;og(t)&&!cg(t);){if(lg(t))return t;if(sg(t))return null;t=fg(t)}return null}(e)||n}const Og={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=eg(o),s=!!t&&sg(t.floating);if(o===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Bh(1);const c=Bh(0),d=og(o);if((d||!d&&!i)&&(("body"!==Jh(o)||ig(a))&&(l=pg(o)),og(o))){const e=wg(o);u=yg(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:eg,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?sg(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=hg(e,[],!1).filter((e=>ng(e)&&"body"!==Jh(e))),r=null;const i="fixed"===dg(e).position;let a=i?fg(e):e;for(;ng(a)&&!cg(a);){const t=dg(a),n=lg(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ig(a)&&!n&&Sg(e,a))?o=o.filter((e=>e!==a)):r=t,a=fg(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Eg(t,n,r);return e.top=Dh(o.top,e.top),e.right=Oh(o.right,e.right),e.bottom=Oh(o.bottom,e.bottom),e.left=Dh(o.left,e.left),e}),Eg(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ig,getElementRects:async function(e){const t=this.getOffsetParent||Ig,n=this.getDimensions,o=await n(e.floating);return{reference:kg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=gg(e);return{width:t,height:n}},getScale:yg,isElement:ng,isRTL:function(e){return"rtl"===dg(e).direction}};function Dg(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,u=vg(e),c=r||i?[...u?hg(u):[],...hg(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,o=null;const r=eg(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Nh(c)+"px "+-Nh(r.clientWidth-(u+d))+"px "+-Nh(r.clientHeight-(c+p))+"px "+-Nh(u)+"px",threshold:Dh(0,Oh(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{o=new IntersectionObserver(h,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(h,f)}o.observe(e)}(!0),i}(u,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),u&&!l&&m.observe(u),m.observe(t));let h=l?wg(e):null;return l&&function t(){const o=wg(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n();h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const Tg=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=Lh(n),s=jh(n),l="y"===Uh(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=Vh(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},Ng=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Vh(e,t),u={x:n,y:o},c=await Zh(t,l),d=Uh(Lh(r)),p=zh(d);let f=u[p],m=u[d];if(i){const e="y"===p?"bottom":"right";f=Fh(f+c["y"===p?"top":"left"],f,f-c[e])}if(a){const e="y"===d?"bottom":"right";m=Fh(m+c["y"===d?"top":"left"],m,m-c[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},Bg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Vh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Lh(r),y=Uh(s),A=Lh(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(u.floating)),w=p||(A||!h?[qh(s)]:function(e){const t=qh(e);return[_h(e),t,_h(t)]}(s)),x="none"!==m;!p&&x&&w.push(...function(e,t,n,o){const r=jh(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(Lh(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(_h)))),i}(s,h,m,b));const E=[s,...w],S=await Zh(t,g),k=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&k.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=jh(e),r=Hh(e),i=Qh(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=qh(a)),[a,qh(a)]}(r,a,b);k.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:r,overflows:k}],!k.every((e=>e<=0))){var P,I;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=C.filter((e=>{if(x){const t=Uh(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},Rg=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:a=()=>{},...s}=Vh(e,t),l=await Zh(t,s),u=Lh(n),c=jh(n),d="y"===Uh(n),{width:p,height:f}=o.floating;let m,h;"top"===u||"bottom"===u?(m=u,h=c===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,m="end"===c?"top":"bottom");const g=f-l.top-l.bottom,v=p-l.left-l.right,y=Oh(f-l[m],g),A=Oh(p-l[h],v),b=!t.middlewareData.shift;let w=y,x=A;if(d?x=c||b?Oh(A,v):v:w=c||b?Oh(y,g):g,b&&!c){const e=Dh(l.left,0),t=Dh(l.right,0),n=Dh(l.top,0),o=Dh(l.bottom,0);d?x=p-2*(0!==e||0!==t?e+t:Dh(l.left,l.right)):w=f-2*(0!==n||0!==o?n+o:Dh(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:w});const E=await r.getDimensions(i.floating);return p!==E.width||f!==E.height?{reset:{rects:!0}}:{}}}},Mg=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Vh(e,t);switch(o){case"referenceHidden":{const e=Xh(await Zh(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Yh(e)}}}case"escaped":{const e=Xh(await Zh(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Yh(e)}}}default:return{}}}}},Fg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Vh(e,t)||{};if(null==u)return{};const d=Kh(c),p={x:n,y:o},f=Hh(r),m=Qh(f),h=await a.getDimensions(u),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",A=g?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let E=x?x[A]:0;E&&await(null==a.isElement?void 0:a.isElement(x))||(E=s.floating[A]||i.floating[m]);const S=b/2-w/2,k=E/2-h[m]/2-1,C=Oh(d[v],k),P=Oh(d[y],k),I=C,O=E-h[m]-P,D=E/2-h[m]/2+S,T=Fh(I,D,O),N=!l.arrow&&null!=jh(r)&&D!==T&&i.reference[m]/2-(D<I?C:P)-h[m]/2<0,B=N?D<I?D-I:D-O:0;return{[f]:p[f]+B,data:{[f]:T,centerOffset:D-T-B,...N&&{alignmentOffset:B}},reset:N}}}),Vg=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Vh(e,t),c={x:n,y:o},d=Uh(r),p=zh(d);let f=c[p],m=c[d];const h=Vh(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var v,y;const e="y"===p?"width":"height",t=["top","left"].includes(Lh(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:f,[d]:m}}}},Lg=(e,t,n)=>{const o=new Map,r={platform:Og,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=Gh(u,o,l),p=o,f={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:y,reset:A}=await h({x:c,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[i]:{...f[i],...y}},A&&m<=50&&(m++,"object"==typeof A&&(A.placement&&(p=A.placement),A.rects&&(u=!0===A.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):A.rects),({x:c,y:d}=Gh(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:r,middlewareData:f}})(e,t,{...r,platform:i})};var jg="undefined"!=typeof document?u:o;function zg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!zg(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!zg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Qg(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ug(e,t){const n=Qg(e);return Math.round(t*n)/n}function Hg(t){const n=e.useRef(t);return jg((()=>{n.current=t})),n}const _g=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?Fg({element:n.current,padding:o}).fn(t):{}:n?Fg({element:n,padding:o}).fn(t):{};var r}}),qg=(e,t)=>({...Tg(e),options:[e,t]}),Kg=(e,t)=>({...Ng(e),options:[e,t]}),Wg=(e,t)=>({...Vg(e),options:[e,t]}),Gg=(e,t)=>({...Bg(e),options:[e,t]}),Zg=(e,t)=>({...Rg(e),options:[e,t]}),Xg=(e,t)=>({...Mg(e),options:[e,t]}),Yg=(e,t)=>({..._g(e),options:[e,t]});var Jg=e.forwardRef(((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return y(U.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y("polygon",{points:"0,0 30,0 15,10"})})}));Jg.displayName="Arrow";var $g=Jg,ev="Popper",[tv,nv]=O(ev),[ov,rv]=tv(ev),iv=t=>{const{__scopePopper:n,children:o}=t,[r,i]=e.useState(null);return y(ov,{scope:n,anchor:r,onAnchorChange:i,children:o})};iv.displayName=ev;var av="PopperAnchor",sv=e.forwardRef(((t,n)=>{const{__scopePopper:o,virtualRef:r,...i}=t,a=rv(av,o),s=e.useRef(null),l=N(n,s);return e.useEffect((()=>{a.onAnchorChange(r?.current||s.current)})),r?null:y(U.div,{...i,ref:l})}));sv.displayName=av;var lv="PopperContent",[uv,cv]=tv(lv),dv=e.forwardRef(((t,n)=>{const{__scopePopper:o,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=t,v=rv(lv,o),[A,b]=e.useState(null),x=N(n,(e=>b(e))),[E,S]=e.useState(null),k=Nt(E),C=k?.width??0,P=k?.height??0,I=r+("center"!==a?"-"+a:""),O="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(c)?c:[c],T=D.length>0,B={padding:O,boundary:D.filter(hv),altBoundary:T},{refs:R,floatingStyles:M,placement:F,isPositioned:V,middlewareData:L}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=t,[d,p]=e.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(r);zg(f,r)||m(r);const[h,g]=e.useState(null),[v,y]=e.useState(null),A=e.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),b=e.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),x=a||h,E=s||v,S=e.useRef(null),k=e.useRef(null),C=e.useRef(d),P=null!=u,I=Hg(u),O=Hg(i),D=e.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:n,strategy:o,middleware:f};O.current&&(e.platform=O.current),Lg(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!zg(C.current,t)&&(C.current=t,w.flushSync((()=>{p(t)})))}))}),[f,n,o,O]);jg((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[c]);const T=e.useRef(!1);jg((()=>(T.current=!0,()=>{T.current=!1})),[]),jg((()=>{if(x&&(S.current=x),E&&(k.current=E),x&&E){if(I.current)return I.current(x,E,D);D()}}),[x,E,D,I,P]);const N=e.useMemo((()=>({reference:S,floating:k,setReference:A,setFloating:b})),[A,b]),B=e.useMemo((()=>({reference:x,floating:E})),[x,E]),R=e.useMemo((()=>{const e={position:o,left:0,top:0};if(!B.floating)return e;const t=Ug(B.floating,d.x),n=Ug(B.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Qg(B.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}}),[o,l,B.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:D,refs:N,elements:B,floatingStyles:R})),[d,D,N,B,R])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>Dg(...e,{animationFrame:"always"===m}),elements:{reference:v.anchor},middleware:[qg({mainAxis:i+P,alignmentAxis:s}),u&&Kg({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Wg():void 0,...B}),u&&Gg({...B}),Zg({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),E&&Yg({element:E,padding:l}),gv({arrowWidth:C,arrowHeight:P}),f&&Xg({strategy:"referenceHidden",...B})]}),[j,Q]=vv(F),_=z(h);H((()=>{V&&_?.()}),[V,_]);const q=L.arrow?.x,K=L.arrow?.y,W=0!==L.arrow?.centerOffset,[G,Z]=e.useState();return H((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]),y("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:V?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:y(uv,{scope:o,placedSide:j,onArrowChange:S,arrowX:q,arrowY:K,shouldHideArrow:W,children:y(U.div,{"data-side":j,"data-align":Q,...g,ref:x,style:{...g.style,animation:V?void 0:"none"}})})})}));dv.displayName=lv;var pv="PopperArrow",fv={top:"bottom",right:"left",bottom:"top",left:"right"},mv=e.forwardRef((function(e,t){const{__scopePopper:n,...o}=e,r=cv(pv,n),i=fv[r.placedSide];return y("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:y($g,{...o,ref:t,style:{...o.style,display:"block"}})})}));function hv(e){return null!==e}mv.displayName=pv;var gv=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=0!==r.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,u]=vv(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,p=(r.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=i?c:`${d}px`,m=-s+"px"):"top"===l?(f=i?c:`${d}px`,m=`${o.floating.height+s}px`):"right"===l?(f=-s+"px",m=i?c:`${p}px`):"left"===l&&(f=`${o.floating.width+s}px`,m=i?c:`${p}px`),{data:{x:f,y:m}}}});function vv(e){const[t,n="center"]=e.split("-");return[t,n]}var yv=iv,Av=sv,bv=dv,wv=mv,xv=e.forwardRef(((t,n)=>{const{container:o,...r}=t,[i,a]=e.useState(!1);H((()=>a(!0)),[]);const s=o||i&&globalThis?.document?.body;return s?x.createPortal(y(U.div,{...r,ref:n}),s):null}));xv.displayName="Portal";var Ev=new WeakMap,Sv=new WeakMap,kv={},Cv=0,Pv=function(e){return e&&(e.host||Pv(e.parentNode))},Iv=function(e,t,n,o){var r=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Pv(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);kv[n]||(kv[n]=new WeakMap);var i=kv[n],a=[],s=new Set,l=new Set(r),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};r.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(o),r=null!==t&&"false"!==t,l=(Ev.get(e)||0)+1,u=(i.get(e)||0)+1;Ev.set(e,l),i.set(e,u),a.push(e),1===l&&r&&Sv.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute(o,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),Cv++,function(){a.forEach((function(e){var t=Ev.get(e)-1,r=i.get(e)-1;Ev.set(e,t),i.set(e,r),t||(Sv.has(e)||e.removeAttribute(o),Sv.delete(e)),r||e.removeAttribute(n)})),--Cv||(Ev=new WeakMap,Ev=new WeakMap,Sv=new WeakMap,kv={})}},Ov=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Iv(o,r,n,"aria-hidden")):function(){return null}},Dv="right-scroll-bar-position",Tv="width-before-scroll-bar";function Nv(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Bv="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Rv=new WeakMap;function Mv(e,t){var o,r,i,a=(o=null,r=function(t){return e.forEach((function(e){return Nv(e,t)}))},(i=n((function(){return{value:o,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=r,i.facade);return Bv((function(){var t=Rv.get(a);if(t){var n=new Set(t),o=new Set(e),r=a.current;n.forEach((function(e){o.has(e)||Nv(e,null)})),o.forEach((function(e){n.has(e)||Nv(e,r)}))}Rv.set(a,e)}),[e]),a}function Fv(e){return e}var Vv=function(t){var n=t.sideCar,o=P(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return e.createElement(r,C({},o))};Vv.isSideCarExport=!0;var Lv=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Fv);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter((function(e){return e!==r}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return r}(null);return t.options=C({async:!0,ssr:!1},e),t}(),jv=function(){},zv=e.forwardRef((function(t,n){var o=e.useRef(null),r=e.useState({onScrollCapture:jv,onWheelCapture:jv,onTouchMoveCapture:jv}),i=r[0],a=r[1],s=t.forwardProps,l=t.children,u=t.className,c=t.removeScrollBar,d=t.enabled,p=t.shards,f=t.sideCar,m=t.noIsolation,h=t.inert,g=t.allowPinchZoom,v=t.as,y=void 0===v?"div":v,A=t.gapMode,b=P(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=Mv([o,n]),E=C(C({},b),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:Lv,removeScrollBar:c,shards:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:A}),s?e.cloneElement(e.Children.only(l),C(C({},E),{ref:x})):e.createElement(y,C({},E,{className:u,ref:x}),l))}));zv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zv.classNames={fullWidth:Tv,zeroRight:Dv};function Qv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Uv=function(){var e=0,t=null;return{add:function(n){var o,r;0==e&&(t=Qv())&&(r=n,(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hv=function(){var t,n=(t=Uv(),function(n,o){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&o])});return function(e){var t=e.styles,o=e.dynamic;return n(t,o),null}},_v={left:0,top:0,right:0,gap:0},qv=function(e){return parseInt(e||"",10)||0},Kv=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _v;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[qv(n),qv(o),qv(r)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Wv=Hv(),Gv="data-scroll-locked",Zv=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(s,"px ").concat(o,";\n }\n body[").concat(Gv,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Dv," {\n right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Tv," {\n margin-right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Dv," .").concat(Dv," {\n right: 0 ").concat(o,";\n }\n \n .").concat(Tv," .").concat(Tv," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(Gv,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Xv=function(){var e=parseInt(document.body.getAttribute(Gv)||"0",10);return isFinite(e)?e:0},Yv=function(t){var n=t.noRelative,o=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r;e.useEffect((function(){return document.body.setAttribute(Gv,(Xv()+1).toString()),function(){var e=Xv()-1;e<=0?document.body.removeAttribute(Gv):document.body.setAttribute(Gv,e.toString())}}),[]);var a=e.useMemo((function(){return Kv(i)}),[i]);return e.createElement(Wv,{styles:Zv(a,!n,i,o?"":"!important")})},Jv=!1;if("undefined"!=typeof window)try{var $v=Object.defineProperty({},"passive",{get:function(){return Jv=!0,!0}});window.addEventListener("test",$v,$v),window.removeEventListener("test",$v,$v)}catch(e){Jv=!1}var ey=!!Jv&&{passive:!1},ty=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ny=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),oy(e,o)){var r=ry(e,o);if(r[1]>r[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},oy=function(e,t){return"v"===e?function(e){return ty(e,"overflowY")}(t):function(e){return ty(e,"overflowX")}(t)},ry=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},iy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ay=function(e){return[e.deltaX,e.deltaY]},sy=function(e){return e&&"current"in e?e.current:e},ly=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},uy=0,cy=[];function dy(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var py,fy=(py=function(t){var n=e.useRef([]),o=e.useRef([0,0]),r=e.useRef(),i=e.useState(uy++)[0],a=e.useState(Hv)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=I([t.lockRef.current],(t.shards||[]).map(sy),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,i=iy(e),a=o.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var p=ny(d,c);if(!p)return!0;if(p?n=d:(n="v"===d?"h":"v",p=ny(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=n),!n)return!0;var f=r.current||n;return function(e,t,n,o,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*o,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,p=0;do{var f=ry(e,s),m=f[0],h=f[1]-f[2]-i*m;(m||h)&&oy(e,s)&&(d+=h,p+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return c&&(Math.abs(d)<1||!r)?u=!0:c||!(Math.abs(p)<1)&&r||(u=!0),u}(f,t,e,"h"===f?l:u,!0)}),[]),u=e.useCallback((function(e){var t=e;if(cy.length&&cy[cy.length-1]===a){var o="deltaY"in t?ay(t):iy(t),r=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,r=o,n[0]===r[0]&&n[1]===r[1]);var n,r}))[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var i=(s.current.shards||[]).map(sy).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),c=e.useCallback((function(e,t,o,r){var i={name:e,delta:t,target:o,should:r,shadowParent:dy(o)};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){o.current=iy(e),r.current=void 0}),[]),p=e.useCallback((function(e){c(e.type,ay(e),e.target,l(e,t.lockRef.current))}),[]),f=e.useCallback((function(e){c(e.type,iy(e),e.target,l(e,t.lockRef.current))}),[]);e.useEffect((function(){return cy.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",u,ey),document.addEventListener("touchmove",u,ey),document.addEventListener("touchstart",d,ey),function(){cy=cy.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,ey),document.removeEventListener("touchmove",u,ey),document.removeEventListener("touchstart",d,ey)}}),[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:ly(i)}):null,m?e.createElement(Yv,{gapMode:t.gapMode}):null)},Lv.useMedium(py),Vv),my=e.forwardRef((function(t,n){return e.createElement(zv,C({},t,{ref:n,sideCar:fy}))}));my.classNames=zv.classNames;var hy="Popover",[gy,vy]=O(hy,[nv]),yy=nv(),[Ay,by]=gy(hy),wy=t=>{const{__scopePopover:n,children:o,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,l=yy(n),u=e.useRef(null),[c,d]=e.useState(!1),[p=!1,f]=Q({prop:r,defaultProp:i,onChange:a});return y(yv,{...l,children:y(Ay,{scope:n,contentId:G(),triggerRef:u,open:p,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:c,onCustomAnchorAdd:e.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>d(!1)),[]),modal:s,children:o})})};wy.displayName=hy;var xy="PopoverAnchor";e.forwardRef(((t,n)=>{const{__scopePopover:o,...r}=t,i=by(xy,o),a=yy(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return e.useEffect((()=>(s(),()=>l())),[s,l]),y(Av,{...a,...r,ref:n})})).displayName=xy;var Ey="PopoverTrigger",Sy=e.forwardRef(((e,t)=>{const{__scopePopover:n,...o}=e,r=by(Ey,n),i=yy(n),a=N(t,r.triggerRef),s=y(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vy(r.open),...o,ref:a,onClick:j(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?s:y(Av,{asChild:!0,...i,children:s})}));Sy.displayName=Ey;var ky="PopoverPortal",[Cy,Py]=gy(ky,{forceMount:void 0}),Iy=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,i=by(ky,t);return y(Cy,{scope:t,forceMount:n,children:y(_,{present:n||i.open,children:y(xv,{asChild:!0,container:r,children:o})})})};Iy.displayName=ky;var Oy="PopoverContent",Dy=e.forwardRef(((e,t)=>{const n=Py(Oy,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,i=by(Oy,e.__scopePopover);return y(_,{present:o||i.open,children:i.modal?y(Ty,{...r,ref:t}):y(Ny,{...r,ref:t})})}));Dy.displayName=Oy;var Ty=e.forwardRef(((t,n)=>{const o=by(Oy,t.__scopePopover),r=e.useRef(null),i=N(n,r),a=e.useRef(!1);return e.useEffect((()=>{const e=r.current;if(e)return Ov(e)}),[]),y(my,{as:B,allowPinchZoom:!0,children:y(By,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(t.onCloseAutoFocus,(e=>{e.preventDefault(),a.current||o.triggerRef.current?.focus()})),onPointerDownOutside:j(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;a.current=o}),{checkForDefaultPrevented:!1}),onFocusOutside:j(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),Ny=e.forwardRef(((t,n)=>{const o=by(Oy,t.__scopePopover),r=e.useRef(!1),i=e.useRef(!1);return y(By,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(r.current||o.triggerRef.current?.focus(),e.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(r.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=o.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),By=e.forwardRef(((t,n)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=t,f=by(Oy,o),m=yy(o);return e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vh()),document.body.insertAdjacentElement("beforeend",e[1]??vh()),gh++,()=>{1===gh&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),gh--}}),[]),y(wh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:y(fh,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:y(bv,{"data-state":Vy(f.open),role:"dialog",id:f.contentId,...m,...p,ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),Ry="PopoverClose",My=e.forwardRef(((e,t)=>{const{__scopePopover:n,...o}=e,r=by(Ry,n);return y(U.button,{type:"button",...o,ref:t,onClick:j(e.onClick,(()=>r.onOpenChange(!1)))})}));My.displayName=Ry;var Fy=e.forwardRef(((e,t)=>{const{__scopePopover:n,...o}=e,r=yy(n);return y(wv,{...r,...o,ref:t})}));function Vy(e){return e?"open":"closed"}Fy.displayName="PopoverArrow";var Ly=wy,jy=Sy,zy=Iy,Qy=Dy,Uy=My,Hy=Fy,_y="popover-module_popoverContent__PIQxs",qy="popover-module_popoverClose__B-VLf",Ky="popover-module_popoverArrow__TR3-g";Ke(".popover-module_popoverContent__PIQxs {\n border-radius: 12px;\n padding: 20px;\n width: 260px;\n background-color: white;\n box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;\n animation-duration: 400ms;\n animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n will-change: transform, opacity;\n}\n\n.popover-module_popoverClose__B-VLf {\n all: unset;\n cursor: pointer;\n font-family: inherit;\n border-radius: 100%;\n height: 25px;\n width: 25px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 5px;\n right: 5px;\n}\n\n.popover-module_popoverArrow__TR3-g {\n fill: white;\n}\n");var Wy={Root:function(e){return t.createElement(Ly,C({},e))},Trigger:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(jy,C({asChild:!0},o),n)},Content:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(zy,null,t.createElement(Qy,C({className:_y},o),t.createElement("div",null,n),t.createElement(Uy,{className:qy,"aria-label":"Close"},t.createElement(ht,{icon:"close"})),t.createElement(Hy,{className:Ky})))}},Gy={container:"progress-indicator-module_container__Q5btZ","container--full-width":"progress-indicator-module_container--full-width__QEQ02","container--medium":"progress-indicator-module_container--medium__bGFSg","container--small":"progress-indicator-module_container--small__gj6-6",progress:"progress-indicator-module_progress__r9GtM","progress-bar":"progress-indicator-module_progress-bar__NKEuA",label:"progress-indicator-module_label__nASe1"};Ke(".progress-indicator-module_container__Q5btZ {\n}\n\n.progress-indicator-module_container--full-width__QEQ02 {\n width: 100%;\n}\n\n.progress-indicator-module_container--medium__bGFSg {\n width: 265px;\n}\n\n.progress-indicator-module_container--small__gj6-6 {\n width: 100px;\n}\n\n.progress-indicator-module_progress__r9GtM {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 0.25rem;\n background: var(--product-greyscale-0);\n border-radius: 0.125rem;\n}\n\n.progress-indicator-module_progress-bar__NKEuA {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n background: var(--product-success);\n border-radius: 0.125rem;\n}\n\n.progress-indicator-module_label__nASe1 {\n margin-top: var(--product-spacing-1);\n}\n");var Zy=function(e){var n=e.label,o=e.size,r=void 0===o?"full-width":o,i=e.current,a=void 0===i?1:i,s=e.max,l=void 0===s?10:s;return t.createElement("div",{className:qe(Gy.container,r&&Gy["container--".concat(r)])},t.createElement("div",{className:Gy.progress},t.createElement("div",{className:Gy["progress-bar"],style:{width:"".concat(a/l*100,"%")}})),n&&t.createElement(vt,{className:Gy.label,variant:"form-helper"},n),t.createElement(vt,{className:"sr-only"},"Step ",a," of ",l))},Xy="rovingFocusGroup.onEntryFocus",Yy={bubbles:!1,cancelable:!0},Jy="RovingFocusGroup",[$y,eA,tA]=L(Jy),[nA,oA]=O(Jy,[tA]),[rA,iA]=nA(Jy),aA=e.forwardRef(((e,t)=>y($y.Provider,{scope:e.__scopeRovingFocusGroup,children:y($y.Slot,{scope:e.__scopeRovingFocusGroup,children:y(sA,{...e,ref:t})})})));aA.displayName=Jy;var sA=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=t,f=e.useRef(null),m=N(n,f),h=de(a),[g=null,v]=Q({prop:s,defaultProp:l,onChange:u}),[A,b]=e.useState(!1),w=z(c),x=eA(o),E=e.useRef(!1),[S,k]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(Xy,w),()=>e.removeEventListener(Xy,w)}),[w]),y(rA,{scope:o,orientation:r,dir:h,loop:i,currentTabStopId:g,onItemFocus:e.useCallback((e=>v(e)),[v]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>k((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>k((e=>e-1))),[]),children:y(U.div,{tabIndex:A||0===S?-1:0,"data-orientation":r,...p,ref:m,style:{outline:"none",...t.style},onMouseDown:j(t.onMouseDown,(()=>{E.current=!0})),onFocus:j(t.onFocus,(e=>{const t=!E.current;if(e.target===e.currentTarget&&t&&!A){const t=new CustomEvent(Xy,Yy);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));dA([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}E.current=!1})),onBlur:j(t.onBlur,(()=>b(!1)))})})})),lA="RovingFocusGroupItem",uA=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,focusable:r=!0,active:i=!1,tabStopId:a,...s}=t,l=G(),u=a||l,c=iA(lA,o),d=c.currentTabStopId===u,p=eA(o),{onFocusableItemAdd:f,onFocusableItemRemove:m}=c;return e.useEffect((()=>{if(r)return f(),()=>m()}),[r,f,m]),y($y.ItemSlot,{scope:o,id:u,focusable:r,active:i,children:y(U.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:n,onMouseDown:j(t.onMouseDown,(e=>{r?c.onItemFocus(u):e.preventDefault()})),onFocus:j(t.onFocus,(()=>c.onItemFocus(u))),onKeyDown:j(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const o=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(o)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)?void 0:cA[o]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const i=r.indexOf(e.currentTarget);r=c.loop?(o=i+1,(n=r).map(((e,t)=>n[(o+t)%n.length]))):r.slice(i+1)}setTimeout((()=>dA(r)))}var n,o}))})})}));uA.displayName=lA;var cA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dA(e,t=!1){const n=document.activeElement;for(const o of e){if(o===n)return;if(o.focus({preventScroll:t}),document.activeElement!==n)return}}var pA=aA,fA=uA,mA="Radio",[hA,gA]=O(mA),[vA,yA]=hA(mA),AA=e.forwardRef(((t,n)=>{const{__scopeRadio:o,name:r,checked:i=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=t,[d,p]=e.useState(null),f=N(n,(e=>p(e))),m=e.useRef(!1),h=!d||Boolean(d.closest("form"));return b(vA,{scope:o,checked:i,disabled:s,children:[y(U.button,{type:"button",role:"radio","aria-checked":i,"data-state":EA(i),"data-disabled":s?"":void 0,disabled:s,value:l,...c,ref:f,onClick:j(t.onClick,(e=>{i||u?.(),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),h&&y(xA,{control:d,bubbles:!m.current,name:r,value:l,checked:i,required:a,disabled:s,style:{transform:"translateX(-100%)"}})]})}));AA.displayName=mA;var bA="RadioIndicator",wA=e.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,i=yA(bA,n);return y(_,{present:o||i.checked,children:y(U.span,{"data-state":EA(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})})}));wA.displayName=bA;var xA=t=>{const{control:n,checked:o,bubbles:r=!0,...i}=t,a=e.useRef(null),s=Tt(o),l=Nt(n);return e.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==o&&n){const t=new Event("click",{bubbles:r});n.call(e,o),e.dispatchEvent(t)}}),[s,o,r]),y("input",{type:"radio","aria-hidden":!0,defaultChecked:o,...i,tabIndex:-1,ref:a,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function EA(e){return e?"checked":"unchecked"}var SA=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],kA="RadioGroup",[CA,PA]=O(kA,[oA,gA]),IA=oA(),OA=gA(),[DA,TA]=CA(kA),NA=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...p}=e,f=IA(n),m=de(u),[h,g]=Q({prop:i,defaultProp:r,onChange:d});return y(DA,{scope:n,name:o,required:a,disabled:s,value:h,onValueChange:g,children:y(pA,{asChild:!0,...f,orientation:l,dir:m,loop:c,children:y(U.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m,...p,ref:t})})})}));NA.displayName=kA;var BA="RadioGroupItem",RA=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:o,disabled:r,...i}=t,a=TA(BA,o),s=a.disabled||r,l=IA(o),u=OA(o),c=e.useRef(null),d=N(n,c),p=a.value===i.value,f=e.useRef(!1);return e.useEffect((()=>{const e=e=>{SA.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),y(fA,{asChild:!0,...l,focusable:!s,active:p,children:y(AA,{disabled:s,required:a.required,checked:p,...u,...i,name:a.name,ref:d,onCheck:()=>a.onValueChange(i.value),onKeyDown:j((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:j(i.onFocus,(()=>{f.current&&c.current?.click()}))})})}));RA.displayName=BA;var MA=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=OA(n);return y(wA,{...r,...o,ref:t})}));MA.displayName="RadioGroupIndicator";var FA=NA,VA=RA,LA=MA,jA={legend:"radioGroup-module_legend__W5JW2","radio-root":"radioGroup-module_radio-root__neUc4","radio-root--horizontal":"radioGroup-module_radio-root--horizontal__M3cUz","radio-root--vertical":"radioGroup-module_radio-root--vertical__4Fc9i","radio-root--error":"radioGroup-module_radio-root--error__ScELD","radio-root-label--error":"radioGroup-module_radio-root-label--error__PrwOr","radio-item":"radioGroup-module_radio-item__zw2CV","radio-indicator":"radioGroup-module_radio-indicator__wJEwS",circle:"radioGroup-module_circle__yJl7K","radio-circle-container":"radioGroup-module_radio-circle-container__VTvrD"};Ke(".radioGroup-module_legend__W5JW2 {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__neUc4 {\n display: flex;\n gap: var(--product-spacing-2);\n}\n\n.radioGroup-module_radio-root--horizontal__M3cUz {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__4Fc9i {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__ScELD {\n border: var(--product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__PrwOr {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__zw2CV {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n.radioGroup-module_radio-item__zw2CV:focus {\n outline: 2px solid var(--product-focus);\n}\n\n/* ! The Circle */\n.radioGroup-module_radio-item__zw2CV::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4));\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__wJEwS::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: '';\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__zw2CV:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__zw2CV:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n/* Circle variant */\n\n.radioGroup-module_circle__yJl7K.radioGroup-module_radio-root__neUc4 {\n display: flex;\n flex-direction: column;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV {\n background: none;\n padding: 0;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:hover::after {\n background: var(--product-greyscale-20);\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:focus {\n outline: none;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:focus-visible {\n position: relative;\n outline: 2px solid var(--product-focus);\n outline-offset: 3px;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV::after {\n left: -2px;\n right: auto;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-indicator__wJEwS::after {\n left: calc(0.5rem - 2px);\n right: auto;\n z-index: 2;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:disabled::after {\n border-color: var(--product-greyscale-60);\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:disabled:hover::after {\n background: transparent;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:disabled ~ p {\n color: var(--product-greyscale-60);\n}\n\n.radioGroup-module_radio-circle-container__VTvrD {\n display: flex;\n gap: 0.75rem;\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__zw2CV {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__neUc4 {\n gap: var(--product-spacing-2);\n }\n\n .radioGroup-module_radio-item__zw2CV::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__wJEwS::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n");var zA=function(e){var n=e.className,o=P(e,["className"]);return t.createElement(LA,C({className:qe(n,jA["radio-indicator"])},o))},QA={Root:function(e){var n=e.children,o=e.className,r=e.name,i=e.label,a=e.variant,s=P(e,["children","className","name","label","variant"]),l=E(),u=l.control,c=l.formState.errors,d=void 0===c?{}:c,p=d&&d[r];return t.createElement(S,{name:r,control:u,render:function(e){var r=e.field,l=r.onChange,u=P(r,["onChange"]);return t.createElement("fieldset",null,t.createElement(vt,{className:jA.legend,as:"legend",variant:"form-input-normal"},i),t.createElement(FA,C({className:qe(o,a&&jA[a],jA["radio-root"],p&&jA["radio-root--error"]),onValueChange:l},s,u,{"aria-required":void 0}),n),p&&t.createElement("p",{className:jA["radio-root-label--error"]},null==p?void 0:p.message))}})},Item:function(e){var n=e.children,o=e.className,r=e.variant,i=P(e,["children","className","variant"]);return"circle"===r?t.createElement("div",{className:jA["radio-circle-container"]},t.createElement(VA,C({className:qe(o,jA["radio-item"])},i),t.createElement(zA,null)),t.createElement(vt,{variant:"form-input-normal"},n)):t.createElement(VA,C({className:qe(o,jA["radio-item"])},i),t.createElement(vt,{variant:"form-input-normal"},n))},Indicator:zA},UA="range-module_container__ajA6j",HA="range-module_range-container__jdaY9",_A="range-module_slider__wO6mF",qA="range-module_notches__F4sLq",KA="range-module_notch__5XVJI",WA="range-module_progress__99Nu5",GA="range-module_value-container__jOc3H";Ke(".range-module_container__ajA6j {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var(--product-radius-2);\n}\n\n.range-module_container__ajA6j > div {\n width: 70%;\n}\n\n.range-module_container__ajA6j > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__jdaY9 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__wO6mF {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n accent-color: var(--product-light-blue-80);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__wO6mF::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_slider__wO6mF::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__F4sLq {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__5XVJI {\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__99Nu5 {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__jOc3H {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n");var ZA=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(YA,C({},s,{field:C({},n)}))}})},XA=function(e,t,n){return(t-e)/n},YA=function(e){var n=e.id,o=e.min,r=void 0===o?0:o,i=e.max,a=void 0===i?1e3:i,s=e.step,l=void 0===s?100:s,u=e.name,c=e.label,d=e.helper,p=e.error,f=e.field,m=f.value,h=(m-r)/(a-r)*100;return t.createElement(Lp,{id:n,label:c,error:null==p?void 0:p.message,helper:null==d?void 0:d.message},t.createElement("div",{className:UA},t.createElement("div",{className:HA},t.createElement("div",{className:qA},Array.from({length:XA(r,a,l)}).map((function(e,n){return t.createElement("div",{key:n,className:KA,style:{left:"".concat(n/XA(r,a,l)*100,"%")}})}))),t.createElement("div",{className:WA,style:{width:"calc(".concat(h||0,"%)")}}),t.createElement("input",C({id:"".concat(u,"-range"),className:_A,type:"range",min:r,max:a,step:l},f))),t.createElement(vt,{className:GA,variant:"content-title-semi-bold"},"£",m)))},JA="select-module_container__U4BrV",$A="select-module_input__3CwCK",eb="select-module_icon__jZoEd",tb="select-module_input--error__sOEBq",nb="select-module_input--disabled__nCJZ8",ob="select-module_input--missing__CjrkZ",rb="select-module_input--has-value__gGlN7",ib="select-module_input--placeholder-visible__xUxNC",ab="select-module_select-label__U0xnf",sb="select-module_select-label--with-value__CJmTr",lb="select-module_error-message__vVcNa",ub="select-module_helper-message__lU-8Q";Ke(".select-module_container__U4BrV {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__3CwCK {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n padding-left: 1rem;\n padding-right: 3.88rem;\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__3CwCK:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__jZoEd {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__3CwCK:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__3CwCK:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__sOEBq {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__nCJZ8 {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_input--missing__CjrkZ {\n border: var(--product-border-width-1) solid var(--product-yellow);\n}\n\n.select-module_input--missing__CjrkZ:focus,\n.select-module_input--missing__CjrkZ:hover {\n border: var(--product-border-width-1) solid var(--product-yellow);\n}\n\n.select-module_input--has-value__gGlN7 {\n padding-top: 1.88rem;\n padding-bottom: 0.63rem;\n}\n\n.select-module_input--placeholder-visible__xUxNC {\n color: #0000;\n}\n\n.select-module_select-label__U0xnf {\n position: absolute;\n color: var(--product-greyscale-60);\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n padding-left: 1rem;\n padding-right: 3.88rem;\n}\n\n.select-module_select-label--with-value__CJmTr {\n color: var(--product-greyscale-40);\n}\n\n.select-module_error-message__vVcNa {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__lU-8Q {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n@media screen and (min-width: 768px) {\n .select-module_input__3CwCK {\n padding-top: 1.5rem;\n padding-left: 1.5rem;\n padding-bottom: 1.5rem;\n padding-right: 4.75rem;\n }\n\n .select-module_select-label__U0xnf {\n padding-top: 1.5rem;\n padding-left: 1.5rem;\n padding-bottom: 1.5rem;\n padding-right: 4.75rem;\n }\n\n .select-module_input--has-value__gGlN7 {\n padding-top: 2.25rem;\n padding-bottom: 0.75rem;\n }\n}\n");var cb=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(pb,C({},s,{field:C({},n)}))}})},db={value:{fontSize:"1rem",top:"-10px",fontWeight:"600"},noValue:{fontSize:"1.25rem",top:0}},pb=function(e){var n=e.id,o=e.error,r=e.helper,i=e.label,a=e.items,s=e.placeholder,l=e.disabled,u=e.field,c=e.missing,d="placeholder"===u.value;return t.createElement("div",{className:JA},t.createElement(vt,{as:bp.p,initial:{fontSize:"1.25rem"},variants:db,animate:d?"noValue":"value",variant:"form-input-normal",className:qe("select-label-".concat(n),ab,!d&&sb),id:"".concat(n,"-label")},i),t.createElement("svg",{className:eb,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),t.createElement("select",C({className:qe($A,(null==o?void 0:o.message)&&tb,l&&nb,c&&ob,d&&ib,!d&&rb),"aria-labelledby":"select-label-".concat(n)},u),s&&t.createElement("option",{value:"placeholder"},s),a&&a.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.title)}))),(null==r?void 0:r.message)&&t.createElement(vt,{className:ub,as:"span",variant:"form-helper"},r.message),(null==o?void 0:o.message)&&t.createElement(vt,{className:lb,as:"p",variant:"form-helper"},o.message))},fb="skeleton-module_skeleton__ws0BG";Ke("@keyframes skeleton-module_place-holder-shimmer__NCfI5 {\n from {\n background-position: -1000px 0;\n }\n\n to {\n background-position: 1000px 0;\n }\n}\n\n.skeleton-module_skeleton__ws0BG {\n display: block;\n animation-duration: 2s;\n animation-fill-mode: backwards;\n animation-iteration-count: infinite;\n animation-name: skeleton-module_place-holder-shimmer__NCfI5;\n animation-timing-function: linear;\n background-color: var(--greyscale-0);\n background-image: linear-gradient(\n to right,\n var(--greyscale-0) 10%,\n rgba(172, 197, 213, 0.5) 40%,\n var(--greyscale-0) 60%\n );\n background-repeat: no-repeat;\n background-size: 1000px 100%;\n}\n");var mb=function(e){var n=e.width,o=void 0===n?"100%":n,r=e.height,i=void 0===r?"50px":r,a=e.rounded;return t.createElement("div",{className:fb,style:{width:o,height:i,borderRadius:a?"9999px":"0"}})},hb="table-module_table__OGgJX";Ke('.table-module_table__OGgJX {\n border: 1px solid;\n padding: 1rem;\n margin-bottom: 2rem;\n width: 100%;\n text-align: left;\n}\n\n.table-module_table__OGgJX td {\n padding: 1rem;\n}\n\n.table-module_table__OGgJX td:first-child {\n min-width: 125px;\n}\n\n.table-module_table__OGgJX th {\n padding: 1rem;\n}\n\n.table-module_table__OGgJX thead {\n position: relative;\n}\n\n.table-module_table__OGgJX thead::after {\n position: absolute;\n content: "";\n width: 100%;\n height: 1px;\n background: var(--greyscale-100);\n}\n\n.table-module_table__OGgJX tbody > tr:last-child {\n border-bottom: none;\n margin-bottom: 0;\n}\n\n@media (min-width: 768px) {\n .table-module_table__OGgJX tr {\n padding: 2rem;\n }\n}\n\n@media (min-width: 1280px) {\n .table-module_table__OGgJX {\n padding: 1rem;\n margin-bottom: 3rem;\n }\n}\n');var gb=function(e){var n=e.children;return t.createElement("table",{className:hb},n)},vb=function(e){var n=e.children;return t.createElement("th",null,n)},yb=function(e){var n=e.children;return t.createElement("thead",null,n)},Ab=function(e){var n=e.children;return t.createElement("tbody",null,n)},bb=function(e){var n=e.children;return t.createElement("tr",null,n)},wb=function(e){var n=e.children;return t.createElement("td",null,n)},xb=function(e){var n=e.children;return t.createElement("tfoot",null,n)},Eb={Root:gb,Head:vb,Header:yb,Body:Ab,Row:bb,Data:wb,Footer:xb},Sb="Tabs",[kb,Cb]=O(Sb,[oA]),Pb=oA(),[Ib,Ob]=kb(Sb),Db=e.forwardRef(((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=de(s),[d,p]=Q({prop:o,onChange:r,defaultProp:i});return y(Ib,{scope:n,baseId:G(),value:d,onValueChange:p,orientation:a,dir:c,activationMode:l,children:y(U.div,{dir:c,"data-orientation":a,...u,ref:t})})}));Db.displayName=Sb;var Tb="TabsList",Nb=e.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,i=Ob(Tb,n),a=Pb(n);return y(pA,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:o,children:y(U.div,{role:"tablist","aria-orientation":i.orientation,...r,ref:t})})}));Nb.displayName=Tb;var Bb="TabsTrigger",Rb=e.forwardRef(((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...i}=e,a=Ob(Bb,n),s=Pb(n),l=Vb(a.baseId,o),u=Lb(a.baseId,o),c=o===a.value;return y(fA,{asChild:!0,...s,focusable:!r,active:c,children:y(U.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...i,ref:t,onMouseDown:j(e.onMouseDown,(e=>{r||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(o)})),onKeyDown:j(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(o)})),onFocus:j(e.onFocus,(()=>{const e="manual"!==a.activationMode;c||r||!e||a.onValueChange(o)}))})})}));Rb.displayName=Bb;var Mb="TabsContent",Fb=e.forwardRef(((t,n)=>{const{__scopeTabs:o,value:r,forceMount:i,children:a,...s}=t,l=Ob(Mb,o),u=Vb(l.baseId,r),c=Lb(l.baseId,r),d=r===l.value,p=e.useRef(d);return e.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),y(_,{present:i||d,children:({present:e})=>y(U.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!e,id:c,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:p.current?"0s":void 0},children:e&&a})})}));function Vb(e,t){return`${e}-trigger-${t}`}function Lb(e,t){return`${e}-content-${t}`}Fb.displayName=Mb;var jb=Db,zb=Nb,Qb=Rb,Ub=Fb,Hb={Root:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(jb,C({},o),n)},List:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(zb,C({},o)," ",n," ")},Trigger:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(Qb,C({asChild:!0},o),n)},Content:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(Ub,C({},o),n)}},_b={tag:"tag-module_tag__04JA1",primary:"tag-module_primary__0LcgD",secondary:"tag-module_secondary__nNa-v",tertiary:"tag-module_tertiary__i580l",positive:"tag-module_positive__A6gYr",warning:"tag-module_warning__n-gPV",danger:"tag-module_danger__zY8uP",night:"tag-module_night__TNfyq","with-icon":"tag-module_with-icon__ByDLB","circular-icon":"tag-module_circular-icon__05IvA"};Ke(".tag-module_tag__04JA1 {\n display: flex;\n place-items: center;\n gap: 0.25rem;\n padding: 0.625rem 0.75rem;\n border-radius: 9999px;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n/* Variants */\n\n.tag-module_primary__0LcgD {\n background: var(--product-info);\n color: var(--product-greyscale-0);\n}\n\n.tag-module_secondary__nNa-v {\n background: var(--primary-trust-blue-20);\n color: var(--primary-trust-blue-100);\n}\n\n.tag-module_tertiary__i580l {\n background: var(--product-greyscale-20);\n color: var(--product-greyscale-80);\n}\n\n.tag-module_positive__A6gYr {\n background: var(--product-success);\n color: var(--product-greyscale-0);\n}\n\n.tag-module_warning__n-gPV {\n background: var(--product-yellow-20);\n color: var(--product-greyscale-100);\n}\n\n.tag-module_danger__zY8uP {\n background: var(--product-error);\n color: var(--product-greyscale-0);\n}\n\n.tag-module_night__TNfyq {\n background: transparent;\n border: 1px solid var(--product-greyscale-0);\n color: var(--product-greyscale-0);\n}\n\n/* END Variants */\n\n/* Modifiers */\n\n.tag-module_with-icon__ByDLB {\n padding: 0.625rem 0.75rem 0.625rem 0.5rem;\n}\n\n.tag-module_circular-icon__05IvA {\n padding: 0.625rem 0.75rem 0.625rem 0.25rem;\n}\n");var qb={Root:function(e){var n=e.variant,o=void 0===n?"primary":n,r=e.children,i=e.className,a=e.icon,s=e.circularIcon,l=P(e,["variant","children","className","icon","circularIcon"]);return t.createElement("div",C({className:qe(i,_b.tag,_b[o],a&&_b["with-icon"],s&&_b["circular-icon"])},l),r)},Icon:ht,Content:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(vt,C({variant:"tag"},o),n)}},Kb={container:"textField-module_container__Txn58",label:"textField-module_label__VwDxG","label--with-value":"textField-module_label--with-value__L233-",input:"textField-module_input__UUjTT","input--with-value":"textField-module_input--with-value__tIa-4","input--prefix":"textField-module_input--prefix__J9hsm","input--missing":"textField-module_input--missing__WLG2z",prefix:"textField-module_prefix__osD-S",inputDescription:"textField-module_inputDescription__DK-Sy","container--error":"textField-module_container--error__8zkIF",error:"textField-module_error__cJR5Z",helper:"textField-module_helper__GnkHD",rightContent:"textField-module_rightContent__Lqpnh",leftContent:"textField-module_leftContent__jjHHa","input--focus":"textField-module_input--focus__BaFyH","input--hover":"textField-module_input--hover__YAj7R"};Ke(".textField-module_container__Txn58 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__VwDxG {\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n position: absolute;\n z-index: 3;\n color: var(--product-greyscale-40);\n pointer-events: none;\n left: 1.1rem;\n}\n\n.textField-module_label--with-value__L233- {\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-mobile-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.textField-module_input__UUjTT {\n --BORDER_TOTAL: calc(var(--product-border-width-1) * 2);\n all: unset;\n box-sizing: border-box;\n background: var(--greyscale-0);\n display: block;\n border: var(--product-border-width-1) solid transparent;\n padding: var(--product-spacing-5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n z-index: 1;\n height: 64px;\n}\n\n.textField-module_input--with-value__tIa-4 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 2rem;\n}\n\n.textField-module_input--prefix__J9hsm {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.7rem;\n padding-left: 2rem;\n}\n\n.textField-module_input--missing__WLG2z {\n border: var(--product-border-width-1) solid var(--product-yellow);\n}\n\n.textField-module_prefix__osD-S {\n position: absolute;\n left: var(--product-spacing-5);\n top: 63%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__DK-Sy {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-bottom: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__8zkIF > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__8zkIF > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__cJR5Z {\n color: var(--product-error);\n}\n\n.textField-module_helper__GnkHD {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__Lqpnh {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__jjHHa {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_input__UUjTT:focus {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__BaFyH {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input__UUjTT:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__YAj7R {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__UUjTT:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__UUjTT:disabled:hover {\n outline: none;\n}\n\n@media (min-width: 768px) {\n .textField-module_input__UUjTT {\n padding: var(--product-spacing-6);\n font-size: var(--product-font-form-input-desktop-size);\n height: 72px;\n }\n\n .textField-module_input--with-value__tIa-4 {\n padding: var(--product-spacing-3) var(--product-spacing-6);\n padding-top: 2rem;\n }\n\n .textField-module_input--prefix__J9hsm {\n\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__osD-S {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 64%;\n }\n\n .textField-module_label__VwDxG {\n left: 25px;\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .textField-module_label--with-value__L233- {\n font-size: var(--product-font-form-label-desktop-size);\n }\n}\n");var Wb=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(Gb,C({},s,{field:C({},n)}))}})},Gb=function(e){var o=e.id,r=e.label,i=e.helper,a=e.error,s=e.type,l=e.prefix,u=e.suffix,c=e.disabled,d=e.className,p=e.rightContent,f=e.leftContent,m=e.field,h=m.value,g=m.onBlur,v=P(m,["value","onBlur"]),y=e.missing,A=pt().width,b=n(!1),w=b[0],x=b[1],E=""!==h||w,S=A>768,k=i||a,I={focused:{top:S?"20px":"23px",fontSize:S?"1rem":".875rem"},notFocused:{transform:"translateY(-50%)",top:"50%",fontSize:S?"1.25rem":"1.125rem"}};return t.createElement("div",null,t.createElement("div",{className:qe(Kb.container,a&&Kb["container--error"])},t.createElement(bp.label,{className:qe(Kb.label,E&&Kb["label--with-value"]),initial:"notFocused",variants:I,htmlFor:"input-".concat(o),animate:E?"focused":"notFocused"},r," ",u&&t.createElement("span",null,u)),t.createElement("input",C({id:"input-".concat(o),className:qe(d,Kb["input--".concat(d)],Kb.input,l&&Kb["input--prefix"],E&&Kb["input--with-value"],y&&Kb["input--missing"]),type:s,"aria-describedby":"error-".concat(o),disabled:c,onFocus:function(){return x(!0)},onBlur:function(){g(),x(!1)},value:h},v)),l&&E&&t.createElement("span",{className:Kb.prefix},l),t.createElement("div",null,p&&t.createElement("div",{className:Kb.rightContent},p),f&&t.createElement("div",{className:Kb.leftContent},f))),k&&t.createElement("div",{className:Kb.inputDescription},i&&t.createElement("span",{id:"feedback-".concat(o),className:Kb.helper},i.message),a&&t.createElement("span",{id:"error-".concat(o),className:Kb.error},a.message)))},Zb="Toast-module_title__-H6R2",Xb="Toast-module_icon-position__t33rU";Ke(".Toast-module_title__-H6R2 {\n font-weight: 600;\n margin-bottom: 0.375rem;\n}\n\n.Toast-module_icon-position__t33rU {\n position: absolute;\n top: 1.25rem;\n left: 1rem;\n}\n\n.Toast-module_icon-position__t33rU svg {\n fill: var(--product-greyscale-0);\n}\n");var Yb={Root:function(e){var n=e.children;return t.createElement("div",null,n)},Title:function(e){var n=e.className,o=e.children;return t.createElement(vt,{className:qe(n,Zb),variant:"form-helper"},o)},Description:function(e){var n=e.children;return t.createElement(vt,{variant:"form-helper"},n)},Icon:function(e){return t.createElement("div",{className:Xb},t.createElement(ht,C({},e)))}},Jb=e.forwardRef(((e,t)=>y(U.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));Jb.displayName="VisuallyHidden";var $b=Jb,[ew,tw]=O("Tooltip",[nv]),nw=nv(),ow="TooltipProvider",rw=700,iw="tooltip.open",[aw,sw]=ew(ow),lw=t=>{const{__scopeTooltip:n,delayDuration:o=rw,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=t,[s,l]=e.useState(!0),u=e.useRef(!1),c=e.useRef(0);return e.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),y(aw,{scope:n,isOpenDelayed:s,delayDuration:o,onOpen:e.useCallback((()=>{window.clearTimeout(c.current),l(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:e.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i,children:a})};lw.displayName=ow;var uw="Tooltip",[cw,dw]=ew(uw),pw=t=>{const{__scopeTooltip:n,children:o,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=t,u=sw(uw,t.__scopeTooltip),c=nw(n),[d,p]=e.useState(null),f=G(),m=e.useRef(0),h=s??u.disableHoverableContent,g=l??u.delayDuration,v=e.useRef(!1),[A=!1,b]=Q({prop:r,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(iw))):u.onClose(),a?.(e)}}),w=e.useMemo((()=>A?v.current?"delayed-open":"instant-open":"closed"),[A]),x=e.useCallback((()=>{window.clearTimeout(m.current),v.current=!1,b(!0)}),[b]),E=e.useCallback((()=>{window.clearTimeout(m.current),b(!1)}),[b]),S=e.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{v.current=!0,b(!0)}),g)}),[g,b]);return e.useEffect((()=>()=>window.clearTimeout(m.current)),[]),y(yv,{...c,children:y(cw,{scope:n,contentId:f,open:A,stateAttribute:w,trigger:d,onTriggerChange:p,onTriggerEnter:e.useCallback((()=>{u.isOpenDelayed?S():x()}),[u.isOpenDelayed,S,x]),onTriggerLeave:e.useCallback((()=>{h?E():window.clearTimeout(m.current)}),[E,h]),onOpen:x,onClose:E,disableHoverableContent:h,children:o})})};pw.displayName=uw;var fw="TooltipTrigger",mw=e.forwardRef(((t,n)=>{const{__scopeTooltip:o,...r}=t,i=dw(fw,o),a=sw(fw,o),s=nw(o),l=N(n,e.useRef(null),i.onTriggerChange),u=e.useRef(!1),c=e.useRef(!1),d=e.useCallback((()=>u.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),y(Av,{asChild:!0,...s,children:y(U.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:j(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))})),onPointerLeave:j(t.onPointerLeave,(()=>{i.onTriggerLeave(),c.current=!1})),onPointerDown:j(t.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:j(t.onFocus,(()=>{u.current||i.onOpen()})),onBlur:j(t.onBlur,i.onClose),onClick:j(t.onClick,i.onClose)})})}));mw.displayName=fw;var hw="TooltipPortal",[gw,vw]=ew(hw,{forceMount:void 0}),yw=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=dw(hw,t);return y(gw,{scope:t,forceMount:n,children:y(_,{present:n||i.open,children:y(xv,{asChild:!0,container:r,children:o})})})};yw.displayName=hw;var Aw="TooltipContent",bw=e.forwardRef(((e,t)=>{const n=vw(Aw,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,a=dw(Aw,e.__scopeTooltip);return y(_,{present:o||a.open,children:a.disableHoverableContent?y(Sw,{side:r,...i,ref:t}):y(ww,{side:r,...i,ref:t})})})),ww=e.forwardRef(((t,n)=>{const o=dw(Aw,t.__scopeTooltip),r=sw(Aw,t.__scopeTooltip),i=e.useRef(null),a=N(n,i),[s,l]=e.useState(null),{trigger:u,onClose:c}=o,d=i.current,{onPointerInTransitChange:p}=r,f=e.useCallback((()=>{l(null),p(!1)}),[p]),m=e.useCallback(((e,t)=>{const n=e.currentTarget,o={x:e.clientX,y:e.clientY},r=function(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return o}(o,function(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}(o,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(o.y-n.y)>=(e.y-n.y)*(o.x-n.x)))break;t.pop()}t.push(o)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const o=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x)))break;n.pop()}n.push(o)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...r,...function(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}(t.getBoundingClientRect())]);l(i),p(!0)}),[p]);return e.useEffect((()=>()=>f()),[f]),e.useEffect((()=>{if(u&&d){const e=e=>m(e,d),t=e=>m(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[u,d,m,f]),e.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},o=u?.contains(t)||d?.contains(t),r=!function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>o!=u>o&&n<(l-a)*(o-s)/(u-s)+a&&(r=!r)}return r}(n,s);o?f():r&&(f(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,d,s,c,f]),y(Sw,{...t,ref:a})})),[xw,Ew]=ew(uw,{isInside:!1}),Sw=e.forwardRef(((t,n)=>{const{__scopeTooltip:o,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,u=dw(Aw,o),c=nw(o),{onClose:d}=u;return e.useEffect((()=>(document.addEventListener(iw,d),()=>document.removeEventListener(iw,d))),[d]),e.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),y(fh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:b(bv,{"data-state":u.stateAttribute,...c,...l,ref:n,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y(M,{children:r}),y(xw,{scope:o,isInside:!0,children:y($b,{id:u.contentId,role:"tooltip",children:i||r})})]})})}));bw.displayName=Aw;var kw="TooltipArrow",Cw=e.forwardRef(((e,t)=>{const{__scopeTooltip:n,...o}=e,r=nw(n);return Ew(kw,n).isInside?null:y(wv,{...r,...o,ref:t})}));Cw.displayName=kw;var Pw=lw,Iw=pw,Ow=mw,Dw=yw,Tw=bw,Nw=Cw,Bw="Tooltip-module_control__vE3qi",Rw="Tooltip-module_tooltip__UA7H9",Mw="Tooltip-module_beak__LxgAN";Ke(".Tooltip-module_control__vE3qi {\n all: unset;\n display: flex;\n background: black;\n color: white;\n border-radius: 1000px;\n height: -moz-fit-content;\n height: fit-content;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.Tooltip-module_tooltip__UA7H9 {\n padding: 1rem;\n padding-right: 0.5rem;\n background: white;\n max-width: 400px;\n border-radius: 1rem;\n}\n\n.Tooltip-module_beak__LxgAN {\n fill: white;\n}\n");var Fw={Root:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(Pw,null,t.createElement(Iw,C({},o),n))},Trigger:function(e){var n=e.className,o=e.children,r=P(e,["className","children"]);return t.createElement(Ow,C({className:qe(n,Bw)},r),o)},Content:function(e){var n=e.className,o=e.children,r=P(e,["className","children"]);return t.createElement(Dw,null,t.createElement(Tw,C({className:qe(n,Rw)},r),o,t.createElement(Nw,{className:Mw})))}},Vw={"visual--paper":"wrapper-module_visual--paper__SOeqI","visual--bento":"wrapper-module_visual--bento__RzAYJ","visual--bento-icon":"wrapper-module_visual--bento-icon__Bj-F3","orientation--center":"wrapper-module_orientation--center__1tqbT","type--trust-pilot":"wrapper-module_type--trust-pilot__UwSbT"};Ke(".wrapper-module_visual--paper__SOeqI {\n display: block;\n background: var(--greyscale-0);\n padding: 1.5rem;\n border-radius: 0.25rem;\n height: 100%;\n transition: all 0.5s ease-in-out;\n}\n\n.wrapper-module_visual--paper__SOeqI:hover {\n box-shadow:\n 0px 204px 82px rgba(16, 24, 32, 0.05),\n 0px 115px 69px rgba(16, 24, 32, 0.18),\n 0px 51px 51px rgba(16, 24, 32, 0.31),\n 0px 13px 28px rgba(16, 24, 32, 0.36);\n}\n\n.wrapper-module_visual--bento__RzAYJ {\n color: var(--primary-deep-black);\n display: flex;\n align-items: center;\n gap: 1rem;\n width: 100%;\n background: var(--greyscale-0);\n padding: 1rem;\n border-radius: 0.5rem;\n}\n\n.wrapper-module_visual--bento-icon__Bj-F3 {\n color: var(--primary-deep-black);\n display: flex;\n flex-direction: column;\n gap: 1rem;\n background: var(--greyscale-0);\n padding: 1rem;\n border-radius: 0.5rem;\n width: 100%;\n}\n\n.wrapper-module_orientation--center__1tqbT {\n display: flex;\n flex-direction: column;\n align-items: center;\n align-items: center;\n}\n\n@media (min-width: 768px) {\n .wrapper-module_visual--bento__RzAYJ {\n flex-direction: column;\n align-items: flex-start;\n }\n\n .wrapper-module_visual--paper__SOeqI {\n padding: 2rem;\n }\n\n .wrapper-module_type--trust-pilot__UwSbT {\n max-height: 8.75rem;\n }\n}\n\n@media (min-width: 1280px) {\n .wrapper-module_visual--paper__SOeqI {\n padding: 2.5rem;\n }\n}\n");var Lw=function(e){var n=e.as,o=e.className,r=e.variants,i=e.children,a=C({visual:"paper"},r),s=n||"div";return t.createElement(s,{className:qe(o,Vw["visual--".concat(a.visual)],a.orientation&&Vw["orientation--".concat(a.orientation)],a.type&&Vw["type--".concat(a.type)])},i)};export{St as Accordion,Ct as Button,Rm as Buttons,It as Callout,Ze as Card,Dt as Cards,Wt as Checkbox,Xt as Columns,Op as ComboBox,jp as DatePicker,Up as Disclosure,Dp as Field,_p as Form,ht as Icon,Kp as Link,Gp as Loading,Mm as Modal,Um as NumberField,eh as PhoneField,ah as PinInput,Wy as Popover,Zy as ProgressIndicator,QA as RadioGroup,ZA as Range,cb as Select,mb as Skeleton,Eb as Table,Ab as TableBody,wb as TableData,xb as TableFooter,vb as TableHead,yb as TableHeader,gb as TableRoot,bb as TableRow,Hb as Tabs,qb as Tag,Wb as TextField,Yb as Toast,Fw as Tooltip,vt as Typography,Lw as Wrapper,Bm as useModal};
91
+ function em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?em(Object(n),!0).forEach((function(t){nm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var om=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)},rm=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},im=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},am=function(e){return im(e)&&!e.shiftKey},sm=function(e){return im(e)&&e.shiftKey},lm=function(e){return setTimeout(e,0)},um=function(e,t){var n=-1;return e.every((function(e,o){return!t(e)||(n=o,!1)})),n},cm=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},dm=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},pm=[],fm=Object.freeze({__proto__:null,createFocusTrap:function(e,t){var n,o=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||pm,i=tm({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:am,isKeyBackward:sm},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return a.containerGroups.findIndex((function(t){var o=t.container,r=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||r.find((function(t){return t===e}))}))},u=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t=t.apply(void 0,r)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=o.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=u("initialFocus");if(!1===e)return!1;if(void 0===e||!Jf(e,i.tabbableOptions))if(l(o.activeElement)>=0)e=o.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||u("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(a.containerGroups=a.containers.map((function(e){var t=Gf(e,i.tabbableOptions),n=Zf(e,i.tabbableOptions),o=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return Xf(e)})),s=n.slice().reverse().find((function(e){return Xf(e)})),l=!!t.find((function(e){return Lf(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:o,lastTabbableNode:r,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?o?n.slice(n.indexOf(e)+1).find((function(e){return Xf(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return Xf(e)})):t[r+(o?1:-1)]}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find((function(e){return e.posTabIndexesFound}))&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},f=function e(t){!1!==t&&t!==p(document)&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},m=function(e){var t=u("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,o=e.isBackward,r=void 0!==o&&o;t=t||dm(n),d();var s=null;if(a.tabbableGroups.length>0){var c=l(t,n),p=c>=0?a.containerGroups[c]:void 0;if(c<0)s=r?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(r){var f=um(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(p.container===t||Jf(t,i.tabbableOptions)&&!Xf(t,i.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(f=c),f>=0){var m=0===f?a.tabbableGroups.length-1:f-1,h=a.tabbableGroups[m];s=Lf(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else im(n)||(s=p.nextTabbableNode(t,!1))}else{var g=um(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(g<0&&(p.container===t||Jf(t,i.tabbableOptions)&&!Xf(t,i.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=c),g>=0){var v=g===a.tabbableGroups.length-1?0:g+1,y=a.tabbableGroups[v];s=Lf(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else im(n)||(s=p.nextTabbableNode(t))}}else s=u("fallbackFocus");return s},g=function(e){var t=dm(e);l(t,e)>=0||(cm(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):cm(i.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=dm(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var r=!0;if(a.mostRecentlyFocusedNode)if(Lf(a.mostRecentlyFocusedNode)>0){var s=l(a.mostRecentlyFocusedNode),u=a.containerGroups[s].tabbableNodes;if(u.length>0){var d=u.findIndex((function(e){return e===a.mostRecentlyFocusedNode}));d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<u.length&&(o=u[d+1],r=!1):d-1>=0&&(o=u[d-1],r=!1))}}else a.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return Lf(e)>0}))}))||(r=!1);else r=!1;r&&(o=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),f(o||(a.mostRecentlyFocusedNode||c()))}a.recentNavEvent=void 0},y=function(e){if(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)}(e)&&!1!==cm(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(i.isKeyForward(e)||i.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(im(e)&&e.preventDefault(),f(n))}(e,i.isKeyBackward(e))},A=function(e){var t=dm(e);l(t,e)>=0||cm(i.clickOutsideDeactivates,e)||cm(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(a.active)return om(r,n),a.delayInitialFocusTimer=i.delayInitialFocus?lm((function(){f(c())})):f(c()),o.addEventListener("focusin",v,!0),o.addEventListener("mousedown",g,{capture:!0,passive:!1}),o.addEventListener("touchstart",g,{capture:!0,passive:!1}),o.addEventListener("click",A,{capture:!0,passive:!1}),o.addEventListener("keydown",y,{capture:!0,passive:!1}),n},w=function(){if(a.active)return o.removeEventListener("focusin",v,!0),o.removeEventListener("mousedown",g,!0),o.removeEventListener("touchstart",g,!0),o.removeEventListener("click",A,!0),o.removeEventListener("keydown",y,!0),n},x="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===a.mostRecentlyFocusedNode}))}))&&f(c())})):void 0,E=function(){x&&(x.disconnect(),a.active&&!a.paused&&a.containers.map((function(e){x.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),r=s(e,"checkCanFocusTrap");r||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=o.activeElement,null==t||t();var i=function(){r&&d(),b(),E(),null==n||n()};return r?(r(a.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!a.active)return this;var t=tm({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,w(),a.active=!1,a.paused=!1,E(),rm(r,n);var o=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),u=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var d=function(){lm((function(){c&&f(m(a.nodeFocusedBeforeActivation)),null==l||l()}))};return c&&u?(u(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(a.paused||!a.active)return this;var t=s(e,"onPause"),n=s(e,"onPostPause");return a.paused=!0,null==t||t(),w(),E(),null==n||n(),this},unpause:function(e){if(!a.paused||!a.active)return this;var t=s(e,"onUnpause"),n=s(e,"onPostUnpause");return a.paused=!1,null==t||t(),d(),b(),E(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?o.querySelector(e):e})),a.active&&d(),E(),this}},n.updateContainerElements(e),n}}),mm=nn(fm),hm=nn($f);function gm(e){return gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gm(e)}function vm(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xm(o.key),o)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ym(e,t){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ym(e,t)}function Am(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=wm(e);if(t){var r=wm(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===gm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bm(e)}(this,n)}}function bm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wm(e){return wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wm(e)}function xm(e){var t=function(e,t){if("object"!==gm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==gm(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gm(t)?t:String(t)}var Em=t,Sm=On,km=mm.createFocusTrap,Cm=hm.isFocusable,Pm=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ym(e,t)}(t,Em.Component);var e=Am(t);function t(n){var o,r,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=e.call(this,n),r=bm(o),a=function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a,s=n;if("string"==typeof n&&!(s=null===(a=this.getDocument())||void 0===a?void 0:a.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},(i=xm(i="getNodeForOption"))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,o.handleDeactivate=o.handleDeactivate.bind(bm(o)),o.handlePostDeactivate=o.handlePostDeactivate.bind(bm(o)),o.handleClickOutsideDeactivates=o.handleClickOutsideDeactivates.bind(bm(o)),o.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:o.handleDeactivate,onPostDeactivate:o.handlePostDeactivate,clickOutsideDeactivates:o.handleClickOutsideDeactivates},o.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var s=n.focusTrapOptions;for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&("returnFocusOnDeactivate"!==l&&"onDeactivate"!==l&&"onPostDeactivate"!==l&&"checkCanReturnFocus"!==l&&"clickOutsideDeactivates"!==l?o.internalOptions[l]=s[l]:o.originalOptions[l]=s[l]);return o.outsideClick=null,o.focusTrapElements=n.containerElements||[],o.updatePreviousElement(),o}return vm(t,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||Cm(e.outsideClick.target,e.internalOptions.tabbableOptions))),o=e.internalOptions.preventScroll,r=void 0!==o&&o;n&&t.focus({preventScroll:r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,o=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();o&&this.focusTrap.pause(),r&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?Em.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===Em.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return Em.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}]),t}(),Im="undefined"==typeof Element?Function:Element;Pm.propTypes={active:Sm.bool,paused:Sm.bool,focusTrapOptions:Sm.shape({document:Sm.object,onActivate:Sm.func,onPostActivate:Sm.func,checkCanFocusTrap:Sm.func,onPause:Sm.func,onPostPause:Sm.func,onUnpause:Sm.func,onPostUnpause:Sm.func,onDeactivate:Sm.func,onPostDeactivate:Sm.func,checkCanReturnFocus:Sm.func,initialFocus:Sm.oneOfType([Sm.instanceOf(Im),Sm.string,Sm.bool,Sm.func]),fallbackFocus:Sm.oneOfType([Sm.instanceOf(Im),Sm.string,Sm.func]),escapeDeactivates:Sm.oneOfType([Sm.bool,Sm.func]),clickOutsideDeactivates:Sm.oneOfType([Sm.bool,Sm.func]),returnFocusOnDeactivate:Sm.bool,setReturnFocus:Sm.oneOfType([Sm.instanceOf(Im),Sm.string,Sm.bool,Sm.func]),allowOutsideClick:Sm.oneOfType([Sm.bool,Sm.func]),preventScroll:Sm.bool,tabbableOptions:Sm.shape({displayCheck:Sm.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:Sm.oneOfType([Sm.bool,Sm.func])}),trapStack:Sm.array,isKeyForward:Sm.func,isKeyBackward:Sm.func}),containerElements:Sm.arrayOf(Sm.instanceOf(Im)),children:Sm.oneOfType([Sm.element,Sm.instanceOf(Im)])},Pm.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:km};var Om=tn(Pm),Dm="modal-module_modal__RJmct",Tm="modal-module_modal-header__Io9gR",Nm="modal-module_buttons__A9VMO";Ke(".modal-module_modal__RJmct {\n position: fixed;\n inset: 0;\n width: calc(100% - 2rem);\n margin: 1rem;\n border-radius: 24px;\n border: none;\n padding: 2rem;\n background-color: var(--product-ghost-white);\n top: calc(50% - 1rem);\n left: calc(50% - 1rem);\n transform: translate(-50%, -50%);\n z-index: 1000;\n}\n\n.modal-module_modal__RJmct::backdrop {\n background-color: rgba(0, 0, 0, 0.75);\n z-index: 998;\n}\n\n.modal-module_backdrop-close__ICMET {\n position: fixed;\n inset: 0;\n background: orange;\n opacity: 0.3;\n z-index: 999;\n}\n\n.modal-module_modal-header__Io9gR {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid var(--product-border);\n margin-bottom: 1.5rem;\n}\n\n.modal-module_buttons__A9VMO {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n margin-top: 1.5rem;\n}\n\n.modal-module_buttons__A9VMO button {\n width: auto;\n display: flex;\n justify-content: center;\n}\n\n@media (min-width: 768px) {\n .modal-module_modal__RJmct {\n width: 720px;\n margin: 0;\n }\n\n .modal-module_buttons__A9VMO {\n flex-direction: row;\n justify-content: flex-end;\n margin-top: 2.5rem;\n gap: 1rem;\n }\n\n .modal-module_buttons__A9VMO button {\n width: -moz-fit-content;\n width: fit-content;\n }\n}\n");var Bm=hf((function(e){return{activeModal:"",isOpen:!1,open:function(t){return e({activeModal:t,isOpen:!0})},close:function(){return e({activeModal:"",isOpen:!1})}}})),Rm=function(e){var n=e.children;return t.createElement("footer",{className:Nm},n)},Mm={Content:function(e){var n=e.value,o=e.children,r=e.focusTrap,a=e.closeOnBackdropClick,s=Bm(),l=s.isOpen,u=n===s.activeModal&&l,c=i(null),d=function(){var e;(null==c?void 0:c.current)&&(If(null==c?void 0:c.current),null===(e=c.current)||void 0===e||e.close())};return u?function(){var e;(null==c?void 0:c.current)&&(Pf(null==c?void 0:c.current),null===(e=c.current)||void 0===e||e.showModal())}():d(),t.createElement(Om,{active:u&&!0===r},t.createElement("dialog",{ref:c,className:Dm,onClick:function(e){a&&e.target===e.currentTarget&&d()}},o))},Control:function(e){var n=e.value,o=e.children,r=P(e,["value","children"]),i=Bm().open;return t.createElement(Ct,C({onClick:function(){return i(n)},autoFocus:!0},r),o)},Header:function(e){var n=e.title,o=e.variant,r=e.onClick,i=Bm().close;return t.createElement("header",{className:Tm},t.createElement(vt,{variant:"content-title-semi-bold"},n),"action"===o&&t.createElement(Ct,{visualType:"action",variant:"standard",type:"submit",onClick:function(){r&&r()}},"Done"),"action"!==o&&t.createElement(Ct,{autoFocus:!0,onlyIcon:!0,variant:"tertiary",onClick:function(){return i()}},t.createElement(ht,{icon:"close"})))},Buttons:Rm},Fm="numberField-module_container__DPRfq",Vm="numberField-module_fake-input__OepBg",Lm="numberField-module_spinbutton-container__u6eZo",jm="numberField-module_spinbutton-container--error__e4hYD",zm="numberField-module_control__hZdOA";Ke(".numberField-module_container__DPRfq {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__OepBg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__u6eZo {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__e4hYD {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__5qWGD {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__GeUsR {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__vjhWU {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__hZdOA {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n");var Qm=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],Um=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(Hm,C({},s,{field:C({},n)}))}})},Hm=function(e){var n=e.name,o=e.label,r=e.min,i=void 0===r?0:r,a=e.max,s=void 0===a?100:a,l=e.width,u=void 0===l?3:l,c=e.error,d=e.helper,p=e.field,f=p.value,m=p.onChange,h=p.onBlur,g=function(e){f<=i||m(f-e)},v=function(e){f>=s||m(f+e)};return t.createElement(Lp,{id:"".concat(n,"-label"),label:o,error:null==c?void 0:c.message,helper:null==d?void 0:d.message},t.createElement("div",{className:Fm},t.createElement("div",{className:qe(Lm,c&&jm)},t.createElement("button",{className:zm,type:"button",tabIndex:-1,onClick:function(){return g(1)},"aria-label":"decrease"},t.createElement(ht,{size:"large",icon:"remove"})),t.createElement(vt,{as:"div",className:Vm,role:"spinbutton",tabIndex:0,onKeyDown:function(e){Qm.includes(e.key)&&(e.preventDefault(),function(e){"ArrowUp"===e.key&&v(1),"ArrowDown"===e.key&&g(1)}(e),function(e){"PageUp"===e.key&&v(5),"PageDown"===e.key&&g(5)}(e),function(e){"Home"===e.key&&m(i),"End"===e.key&&m(s)}(e))},onBlur:h,"aria-valuenow":f,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==c?void 0:c.message),"aria-errormessage":c?"".concat(n,"-error"):void 0,style:{width:"".concat(u,"ch")}},f),t.createElement("button",{className:zm,type:"button",tabIndex:-1,onClick:function(){return v(1)},"aria-label":"increase"},t.createElement(ht,{size:"large",icon:"add"})))))},_m=[{country:"Afghanistan",code:"93",iso:"AF"},{country:"Albania",code:"355",iso:"AL"},{country:"Algeria",code:"213",iso:"DZ"},{country:"American Samoa",code:"1-684",iso:"AS"},{country:"Andorra",code:"376",iso:"AD"},{country:"Angola",code:"244",iso:"AO"},{country:"Anguilla",code:"1-264",iso:"AI"},{country:"Antarctica",code:"672",iso:"AQ"},{country:"Antigua and Barbuda",code:"1-268",iso:"AG"},{country:"Argentina",code:"54",iso:"AR"},{country:"Armenia",code:"374",iso:"AM"},{country:"Aruba",code:"297",iso:"AW"},{country:"Australia",code:"61",iso:"AU"},{country:"Austria",code:"43",iso:"AT"},{country:"Azerbaijan",code:"994",iso:"AZ"},{country:"Bahamas",code:"1-242",iso:"BS"},{country:"Bahrain",code:"973",iso:"BH"},{country:"Bangladesh",code:"880",iso:"BD"},{country:"Barbados",code:"1-246",iso:"BB"},{country:"Belarus",code:"375",iso:"BY"},{country:"Belgium",code:"32",iso:"BE"},{country:"Belize",code:"501",iso:"BZ"},{country:"Benin",code:"229",iso:"BJ"},{country:"Bermuda",code:"1-441",iso:"BM"},{country:"Bhutan",code:"975",iso:"BT"},{country:"Bolivia",code:"591",iso:"BO"},{country:"Bosnia and Herzegovina",code:"387",iso:"BA"},{country:"Botswana",code:"267",iso:"BW"},{country:"Brazil",code:"55",iso:"BR"},{country:"British Indian Ocean Territory",code:"246",iso:"IO"},{country:"British Virgin Islands",code:"1-284",iso:"VG"},{country:"Brunei",code:"673",iso:"BN"},{country:"Bulgaria",code:"359",iso:"BG"},{country:"Burkina Faso",code:"226",iso:"BF"},{country:"Burundi",code:"257",iso:"BI"},{country:"Cambodia",code:"855",iso:"KH"},{country:"Cameroon",code:"237",iso:"CM"},{country:"Canada",code:"1",iso:"CA"},{country:"Cape Verde",code:"238",iso:"CV"},{country:"Cayman Islands",code:"1-345",iso:"KY"},{country:"Central African Republic",code:"236",iso:"CF"},{country:"Chad",code:"235",iso:"TD"},{country:"Chile",code:"56",iso:"CL"},{country:"China",code:"86",iso:"CN"},{country:"Christmas Island",code:"61",iso:"CX"},{country:"Cocos Islands",code:"61",iso:"CC"},{country:"Colombia",code:"57",iso:"CO"},{country:"Comoros",code:"269",iso:"KM"},{country:"Cook Islands",code:"682",iso:"CK"},{country:"Costa Rica",code:"506",iso:"CR"},{country:"Croatia",code:"385",iso:"HR"},{country:"Cuba",code:"53",iso:"CU"},{country:"Curacao",code:"599",iso:"CW"},{country:"Cyprus",code:"357",iso:"CY"},{country:"Czech Republic",code:"420",iso:"CZ"},{country:"Democratic Republic of the Congo",code:"243",iso:"CD"},{country:"Denmark",code:"45",iso:"DK"},{country:"Djibouti",code:"253",iso:"DJ"},{country:"Dominica",code:"1-767",iso:"DM"},{country:"Dominican Republic",code:"1-809, 1-829, 1-849",iso:"DO"},{country:"East Timor",code:"670",iso:"TL"},{country:"Ecuador",code:"593",iso:"EC"},{country:"Egypt",code:"20",iso:"EG"},{country:"El Salvador",code:"503",iso:"SV"},{country:"Equatorial Guinea",code:"240",iso:"GQ"},{country:"Eritrea",code:"291",iso:"ER"},{country:"Estonia",code:"372",iso:"EE"},{country:"Ethiopia",code:"251",iso:"ET"},{country:"Falkland Islands",code:"500",iso:"FK"},{country:"Faroe Islands",code:"298",iso:"FO"},{country:"Fiji",code:"679",iso:"FJ"},{country:"Finland",code:"358",iso:"FI"},{country:"France",code:"33",iso:"FR"},{country:"French Polynesia",code:"689",iso:"PF"},{country:"Gabon",code:"241",iso:"GA"},{country:"Gambia",code:"220",iso:"GM"},{country:"Georgia",code:"995",iso:"GE"},{country:"Germany",code:"49",iso:"DE"},{country:"Ghana",code:"233",iso:"GH"},{country:"Gibraltar",code:"350",iso:"GI"},{country:"Greece",code:"30",iso:"GR"},{country:"Greenland",code:"299",iso:"GL"},{country:"Grenada",code:"1-473",iso:"GD"},{country:"Guam",code:"1-671",iso:"GU"},{country:"Guatemala",code:"502",iso:"GT"},{country:"Guernsey",code:"44-1481",iso:"GG"},{country:"Guinea",code:"224",iso:"GN"},{country:"Guinea-Bissau",code:"245",iso:"GW"},{country:"Guyana",code:"592",iso:"GY"},{country:"Haiti",code:"509",iso:"HT"},{country:"Honduras",code:"504",iso:"HN"},{country:"Hong Kong",code:"852",iso:"HK"},{country:"Hungary",code:"36",iso:"HU"},{country:"Iceland",code:"354",iso:"IS"},{country:"India",code:"91",iso:"IN"},{country:"Indonesia",code:"62",iso:"ID"},{country:"Iran",code:"98",iso:"IR"},{country:"Iraq",code:"964",iso:"IQ"},{country:"Ireland",code:"353",iso:"IE"},{country:"Isle of Man",code:"44-1624",iso:"IM"},{country:"Israel",code:"972",iso:"IL"},{country:"Italy",code:"39",iso:"IT"},{country:"Ivory Coast",code:"225",iso:"CI"},{country:"Jamaica",code:"1-876",iso:"JM"},{country:"Japan",code:"81",iso:"JP"},{country:"Jersey",code:"44-1534",iso:"JE"},{country:"Jordan",code:"962",iso:"JO"},{country:"Kazakhstan",code:"7",iso:"KZ"},{country:"Kenya",code:"254",iso:"KE"},{country:"Kiribati",code:"686",iso:"KI"},{country:"Kosovo",code:"383",iso:"XK"},{country:"Kuwait",code:"965",iso:"KW"},{country:"Kyrgyzstan",code:"996",iso:"KG"},{country:"Laos",code:"856",iso:"LA"},{country:"Latvia",code:"371",iso:"LV"},{country:"Lebanon",code:"961",iso:"LB"},{country:"Lesotho",code:"266",iso:"LS"},{country:"Liberia",code:"231",iso:"LR"},{country:"Libya",code:"218",iso:"LY"},{country:"Liechtenstein",code:"423",iso:"LI"},{country:"Lithuania",code:"370",iso:"LT"},{country:"Luxembourg",code:"352",iso:"LU"},{country:"Macao",code:"853",iso:"MO"},{country:"Macedonia",code:"389",iso:"MK"},{country:"Madagascar",code:"261",iso:"MG"},{country:"Malawi",code:"265",iso:"MW"},{country:"Malaysia",code:"60",iso:"MY"},{country:"Maldives",code:"960",iso:"MV"},{country:"Mali",code:"223",iso:"ML"},{country:"Malta",code:"356",iso:"MT"},{country:"Marshall Islands",code:"692",iso:"MH"},{country:"Mauritania",code:"222",iso:"MR"},{country:"Mauritius",code:"230",iso:"MU"},{country:"Mayotte",code:"262",iso:"YT"},{country:"Mexico",code:"52",iso:"MX"},{country:"Micronesia",code:"691",iso:"FM"},{country:"Moldova",code:"373",iso:"MD"},{country:"Monaco",code:"377",iso:"MC"},{country:"Mongolia",code:"976",iso:"MN"},{country:"Montenegro",code:"382",iso:"ME"},{country:"Montserrat",code:"1-664",iso:"MS"},{country:"Morocco",code:"212",iso:"MA"},{country:"Mozambique",code:"258",iso:"MZ"},{country:"Myanmar",code:"95",iso:"MM"},{country:"Namibia",code:"264",iso:"NA"},{country:"Nauru",code:"674",iso:"NR"},{country:"Nepal",code:"977",iso:"NP"},{country:"Netherlands",code:"31",iso:"NL"},{country:"Netherlands Antilles",code:"599",iso:"AN"},{country:"New Caledonia",code:"687",iso:"NC"},{country:"New Zealand",code:"64",iso:"NZ"},{country:"Nicaragua",code:"505",iso:"NI"},{country:"Niger",code:"227",iso:"NE"},{country:"Nigeria",code:"234",iso:"NG"},{country:"Niue",code:"683",iso:"NU"},{country:"North Korea",code:"850",iso:"KP"},{country:"Northern Mariana Islands",code:"1-670",iso:"MP"},{country:"Norway",code:"47",iso:"NO"},{country:"Oman",code:"968",iso:"OM"},{country:"Pakistan",code:"92",iso:"PK"},{country:"Palau",code:"680",iso:"PW"},{country:"Palestine",code:"970",iso:"PS"},{country:"Panama",code:"507",iso:"PA"},{country:"Papua New Guinea",code:"675",iso:"PG"},{country:"Paraguay",code:"595",iso:"PY"},{country:"Peru",code:"51",iso:"PE"},{country:"Philippines",code:"63",iso:"PH"},{country:"Pitcairn",code:"64",iso:"PN"},{country:"Poland",code:"48",iso:"PL"},{country:"Portugal",code:"351",iso:"PT"},{country:"Puerto Rico",code:"1-787, 1-939",iso:"PR"},{country:"Qatar",code:"974",iso:"QA"},{country:"Republic of the Congo",code:"242",iso:"CG"},{country:"Reunion",code:"262",iso:"RE"},{country:"Romania",code:"40",iso:"RO"},{country:"Russia",code:"7",iso:"RU"},{country:"Rwanda",code:"250",iso:"RW"},{country:"Saint Barthelemy",code:"590",iso:"BL"},{country:"Saint Helena",code:"290",iso:"SH"},{country:"Saint Kitts and Nevis",code:"1-869",iso:"KN"},{country:"Saint Lucia",code:"1-758",iso:"LC"},{country:"Saint Martin",code:"590",iso:"MF"},{country:"Saint Pierre and Miquelon",code:"508",iso:"PM"},{country:"Saint Vincent and the Grenadines",code:"1-784",iso:"VC"},{country:"Samoa",code:"685",iso:"WS"},{country:"San Marino",code:"378",iso:"SM"},{country:"Sao Tome and Principe",code:"239",iso:"ST"},{country:"Saudi Arabia",code:"966",iso:"SA"},{country:"Senegal",code:"221",iso:"SN"},{country:"Serbia",code:"381",iso:"RS"},{country:"Seychelles",code:"248",iso:"SC"},{country:"Sierra Leone",code:"232",iso:"SL"},{country:"Singapore",code:"65",iso:"SG"},{country:"Sint Maarten",code:"1-721",iso:"SX"},{country:"Slovakia",code:"421",iso:"SK"},{country:"Slovenia",code:"386",iso:"SI"},{country:"Solomon Islands",code:"677",iso:"SB"},{country:"Somalia",code:"252",iso:"SO"},{country:"South Africa",code:"27",iso:"ZA"},{country:"South Korea",code:"82",iso:"KR"},{country:"South Sudan",code:"211",iso:"SS"},{country:"Spain",code:"34",iso:"ES"},{country:"Sri Lanka",code:"94",iso:"LK"},{country:"Sudan",code:"249",iso:"SD"},{country:"Suriname",code:"597",iso:"SR"},{country:"Svalbard and Jan Mayen",code:"47",iso:"SJ"},{country:"Swaziland",code:"268",iso:"SZ"},{country:"Sweden",code:"46",iso:"SE"},{country:"Switzerland",code:"41",iso:"CH"},{country:"Syria",code:"963",iso:"SY"},{country:"Taiwan",code:"886",iso:"TW"},{country:"Tajikistan",code:"992",iso:"TJ"},{country:"Tanzania",code:"255",iso:"TZ"},{country:"Thailand",code:"66",iso:"TH"},{country:"Togo",code:"228",iso:"TG"},{country:"Tokelau",code:"690",iso:"TK"},{country:"Tonga",code:"676",iso:"TO"},{country:"Trinidad and Tobago",code:"1-868",iso:"TT"},{country:"Tunisia",code:"216",iso:"TN"},{country:"Turkey",code:"90",iso:"TR"},{country:"Turkmenistan",code:"993",iso:"TM"},{country:"Turks and Caicos Islands",code:"1-649",iso:"TC"},{country:"Tuvalu",code:"688",iso:"TV"},{country:"U.S. Virgin Islands",code:"1-340",iso:"VI"},{country:"Uganda",code:"256",iso:"UG"},{country:"Ukraine",code:"380",iso:"UA"},{country:"United Arab Emirates",code:"971",iso:"AE"},{country:"United Kingdom",code:"44",iso:"GB"},{country:"United States",code:"1",iso:"US"},{country:"Uruguay",code:"598",iso:"UY"},{country:"Uzbekistan",code:"998",iso:"UZ"},{country:"Vanuatu",code:"678",iso:"VU"},{country:"Vatican",code:"379",iso:"VA"},{country:"Venezuela",code:"58",iso:"VE"},{country:"Vietnam",code:"84",iso:"VN"},{country:"Wallis and Futuna",code:"681",iso:"WF"},{country:"Western Sahara",code:"212",iso:"EH"},{country:"Yemen",code:"967",iso:"YE"},{country:"Zambia",code:"260",iso:"ZM"},{country:"Zimbabwe",code:"263",iso:"ZW"}],qm="phoneField-module_container__O2nj3",Km="phoneField-module_select__gwMva",Wm="phoneField-module_flag__p2BYn",Gm="phoneField-module_input-container__qyzH8",Zm="phoneField-module_phone-input__vQV2U",Xm="phoneField-module_error__HQhja",Ym="phoneField-module_error-icon__ASrep",Jm="phoneField-module_helper__rnbGq",$m="phoneField-module_input-helper-outer__DkMld";Ke(".phoneField-module_container__O2nj3 {\n display: flex;\n gap: 0.25rem;\n}\n\n.phoneField-module_select__gwMva {\n position: relative;\n display: flex;\n height: -moz-fit-content;\n height: fit-content;\n}\n\n.phoneField-module_select__gwMva select {\n padding-top: 1rem;\n padding-bottom: 1rem;\n padding-left: 1.75rem;\n width: 10.5ch;\n font-size: 1.125rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1.5rem;\n border-radius: 0.5rem 0.125rem 0.125rem 0.5rem;\n border: 4px solid var(--product-greyscale-0);\n text-overflow: ellipsis;\n min-width: 10ch;\n color: var(--product-greyscale-100);\n height: -moz-fit-content;\n height: fit-content;\n}\n\n.phoneField-module_select__gwMva select:hover {\n background: var(--product-greyscale-20);\n}\n\n.phoneField-module_select__gwMva select:focus {\n outline: none;\n outline: 2px solid var(--product-greyscale-100);\n}\n\n.phoneField-module_flag__p2BYn {\n position: absolute;\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-family: Inter;\n font-size: 1.125rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1.5rem;\n}\n\n.phoneField-module_input-container__qyzH8 {\n position: relative;\n width: 100%;\n height: -moz-fit-content;\n height: fit-content;\n}\n\n.phoneField-module_phone-input__vQV2U {\n width: 100%;\n font-size: 1.125rem;\n font-style: normal;\n font-weight: 400;\n line-height: 1.5rem;\n padding: 1.25rem 1rem;\n border-radius: 0.125rem 0.5rem 0.5rem 0.125rem;\n border: 2px solid transparent;\n caret-color: var(--product-love-pink-100);\n color: var(--product-greyscale-100);\n height: 100%;\n}\n\n.phoneField-module_phone-input__vQV2U.phoneField-module_error__HQhja {\n border-color: var(--product-error);\n}\n\n.phoneField-module_phone-input__vQV2U.phoneField-module_error__HQhja:hover {\n border-color: var(--product-error);\n}\n\n.phoneField-module_phone-input__vQV2U.phoneField-module_error__HQhja:placeholder {\n color: var(--product-error);\n}\n\n.phoneField-module_phone-input__vQV2U:placeholder {\n color: var(--product-greyscale-60);\n}\n\n.phoneField-module_phone-input__vQV2U:hover {\n border-color: var(--product-greyscale-20);\n}\n\n.phoneField-module_phone-input__vQV2U:focus-visible {\n outline: none;\n outline: 2px solid var(--product-greyscale-100);\n}\n\n.phoneField-module_error-icon__ASrep {\n position: absolute;\n top: 50%;\n right: 1rem;\n transform: translateY(-50%);\n color: var(--product-error);\n}\n\n.phoneField-module_helper__rnbGq {\n color: var(--product-error);\n padding: 0.5rem 1rem;\n}\n\n.phoneField-module_input-helper-outer__DkMld {\n width: 100%;\n display: flex;\n flex-direction: column;\n}\n");var eh=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(th,C({},s,{field:C({},n)}))}})},th=function(e){var o,r=e.id,i=e.placeholder,a=e.error,s=e.field,l=n("44"),u=l[0],c=l[1],d=E().setValue,p=a;d("".concat(r,".phone.code"),"+".concat(u)),d("".concat(r,".phone.formatted"),"+".concat(u).concat(s.value));var f,m;return t.createElement("div",{className:qm},t.createElement("div",{className:Km},t.createElement("div",{className:Wm},(f=(null===(o=_m.find((function(e){return e.code===u})))||void 0===o?void 0:o.iso)||"",m=f.toUpperCase().split("").map((function(e){return 127397+e.charCodeAt()})),String.fromCodePoint.apply(String,m))),t.createElement("label",{className:"sr-only",htmlFor:"".concat(r,"-call-code-select")},"Call code"),t.createElement("select",{id:"".concat(r,"-call-code-select"),defaultValue:"44",onChange:function(e){var t=e.target.value;c(t)}},_m.filter((function(e){return"44"===e.code})).map((function(e){var n=e.code,o=e.country;return t.createElement("option",{key:o,value:n},"+",n," (",o,")")})),t.createElement("optgroup",{label:"Other countries"},_m.filter((function(e){return"44"!==e.code})).map((function(e){var n=e.code,o=e.country;return t.createElement("option",{key:o,value:n},"+",n," (",o,")")}))))),t.createElement("div",{className:$m},t.createElement("div",{className:Gm},t.createElement("label",{className:"sr-only",htmlFor:"".concat(r,"-phone-input")},"Mobile phone number without callcode"),t.createElement("input",C({id:"".concat(r,"-phone-input"),className:qe(Zm,p&&Xm),type:"tel",placeholder:i,"aria-describedby":"".concat(r,"-phone-field-error")},s)),p&&t.createElement("div",{className:Ym},t.createElement(ht,{icon:"error"}))),t.createElement(vt,{className:qe("".concat(r,"-phone-field-error"),Jm),variant:"form-helper"},null==a?void 0:a.message)))},nh="pinInput-module_inputContainer__bzkiK",oh="pinInput-module_inputWrapper__Rsd-3",rh="pinInput-module_input__SL8JP";Ke(".pinInput-module_inputContainer__bzkiK {\n list-style: none;\n display: flex;\n justify-content: center;\n gap: 1rem;\n}\n\n.pinInput-module_inputWrapper__Rsd-3 {\n width: 3.5rem;\n height: 4.5rem;\n border: 2px solid transparent;\n border-radius: 6px;\n}\n\n\n.pinInput-module_input__SL8JP {\n height: 100%;\n width: 100%;\n font-size: 2rem;\n font-weight: 600;\n text-align: center;\n background: var(--primary-ghost-white);\n color: var(--primary-trust-blue-100);\n caret-color: var(--product-love-pink-100);\n border: none;\n border: 0.25rem solid white;\n border-radius: 6px;\n outline: none;\n overflow: hidden;\n}\n\n.pinInput-module_input__SL8JP:hover {\n outline: 2px solid var(--product-greyscale-20);\n}\n\n.pinInput-module_input__SL8JP:not(:-moz-placeholder-shown) {\n background: var(--secondary-blue-20);\n outline: 2px solid var(--product-greyscale-100);\n\n}\n\n.pinInput-module_input__SL8JP:not(:placeholder-shown) {\n background: var(--secondary-blue-20);\n outline: 2px solid var(--product-greyscale-100);\n\n}\n\n.pinInput-module_input__SL8JP+error {\n border: 2px solid var(--product-error);\n}\n");var ih=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"],ah=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(sh,C({},s,{field:C({},n)}))}})},sh=function(e){var r=e.length,a=void 0===r?6:r,s=e.label,l=e.isOTP,u=void 0===l||l,c=e.isPassword,d=void 0!==c&&c,p=e.isNumeric,f=void 0===p||p,m=e.field,h=i([]),g=n(Array.from({length:a},(function(){return null}))),v=g[0],y=g[1],A=function(e){var t=e.target,n=h.current.indexOf(t),o=h.current[n+1];!f||/^\d+$/.test(t.value)?(y((function(e){var o=I([],e,!0);return o[n]=t.value,o})),o&&o.focus()):t.value=""},b=function(e){e.preventDefault();var t=e.clipboardData;if(t){var n=t.getData("text").split("");y((function(e){var t=I([],e,!0);return n.slice(0,a).forEach((function(e,n){t[n]=e})),t}))}};return o((function(){m.onChange(v.join(""))}),[m,v]),t.createElement("label",null,t.createElement("span",{className:"sr-only"},s),t.createElement("ul",{className:nh},Array.from({length:a}).map((function(e,n){return t.createElement("li",{className:oh,key:"otp-".concat(n,"$")},t.createElement("input",{ref:function(e){e&&(h.current[n]=e)},value:v[n]||"",placeholder:" ",className:rh,type:d?"password":"text",inputMode:f?"numeric":"text",maxLength:1,pattern:f?"[0-9]*":"",autoComplete:u?"one-time-code":"false",autoCapitalize:"none","aria-label":"pin input ".concat(n+1," of ").concat(a),onInput:A,onKeyDown:function(e){"Backspace"===e.key&&function(e){null==e||e.preventDefault();var t=e.target,n=h.current.indexOf(t),o=h.current[n-1];t.value="",y((function(e){var t=I([],e,!0);return t[n]=null,t})),o&&o.focus()}(e),"Delete"===e.key&&function(e){null==e||e.preventDefault();var t=e.target,n=h.current.indexOf(t);t.value="",y((function(e){var t=I([],e,!0);return t[n]=null,t}))}(e),ih.includes(e.key)&&function(e){e.preventDefault();var t=e.target,n=h.current.indexOf(t),o=h.current[n-1];if("Home"===e.key&&h.current[0].focus(),"End"===e.key&&h.current[a-1].focus(),"ArrowLeft"===e.key&&o&&o.focus(),"ArrowRight"===e.key){var r=h.current[n+1];r&&r.focus()}}(e)},onPaste:b}))}))),t.createElement("input",C({className:"sr-only","aria-hidden":"true",tabIndex:-1},m)))};var lh,uh="dismissableLayer.update",ch="dismissableLayer.pointerDownOutside",dh="dismissableLayer.focusOutside",ph=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fh=e.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=t,c=e.useContext(ph),[d,p]=e.useState(null),f=d?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=N(n,(e=>p(e))),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=g.indexOf(v),b=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,x=b>=A,E=function(t,n=globalThis?.document){const o=z(t),r=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let t=function(){hh(ch,o,r,{discrete:!0})};const r={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);r.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,o]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));x&&!n&&(i?.(e),s?.(e),e.defaultPrevented||l?.())}),f),S=function(t,n=globalThis?.document){const o=z(t),r=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!r.current){hh(dh,o,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(a?.(e),s?.(e),e.defaultPrevented||l?.())}),f);return function(t,n=globalThis?.document){const o=z(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&o(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[o,n])}((e=>{b===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),f),e.useEffect((()=>{if(d)return o&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(lh=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),mh(),()=>{o&&1===c.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=lh)}}),[d,f,o,c]),e.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),mh())}),[d,c]),e.useEffect((()=>{const e=()=>m({});return document.addEventListener(uh,e),()=>document.removeEventListener(uh,e)}),[]),y(U.div,{...u,ref:h,style:{pointerEvents:w?x?"auto":"none":void 0,...t.style},onFocusCapture:j(t.onFocusCapture,S.onFocusCapture),onBlurCapture:j(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:j(t.onPointerDownCapture,E.onPointerDownCapture)})}));fh.displayName="DismissableLayer";function mh(){const e=new CustomEvent(uh);document.dispatchEvent(e)}function hh(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?function(e,t){e&&w.flushSync((()=>e.dispatchEvent(t)))}(r,i):r.dispatchEvent(i)}e.forwardRef(((t,n)=>{const o=e.useContext(ph),r=e.useRef(null),i=N(n,r);return e.useEffect((()=>{const e=r.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}}),[o.branches]),y(U.div,{...t,ref:i})})).displayName="DismissableLayerBranch";var gh=0;function vh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var yh="focusScope.autoFocusOnMount",Ah="focusScope.autoFocusOnUnmount",bh={bubbles:!1,cancelable:!0},wh=e.forwardRef(((t,n)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[l,u]=e.useState(null),c=z(i),d=z(a),p=e.useRef(null),f=N(n,(e=>u(e))),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(r){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:kh(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||kh(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&kh(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return l&&o.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,l,m.paused]),e.useEffect((()=>{if(l){Ch.add(m);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(yh,bh);l.addEventListener(yh,c),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(kh(o,{select:t}),document.activeElement!==n)return}((e=xh(l),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&kh(l))}return()=>{l.removeEventListener(yh,c),setTimeout((()=>{const e=new CustomEvent(Ah,bh);l.addEventListener(Ah,d),l.dispatchEvent(e),e.defaultPrevented||kh(t??document.body,{select:!0}),l.removeEventListener(Ah,d),Ch.remove(m)}),0)}}var e}),[l,c,d,m]);const h=e.useCallback((e=>{if(!o&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,i]=function(e){const t=xh(e),n=Eh(t,e),o=Eh(t.reverse(),e);return[n,o]}(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&kh(i,{select:!0})):(e.preventDefault(),o&&kh(r,{select:!0})):n===t&&e.preventDefault()}}),[o,r,m.paused]);return y(U.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})}));function xh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Eh(e,t){for(const n of e)if(!Sh(n,{upTo:t}))return n}function Sh(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function kh(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}wh.displayName="FocusScope";var Ch=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ph(e,t),e.unshift(t)},remove(t){e=Ph(e,t),e[0]?.resume()}}}();function Ph(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}const Ih=["top","right","bottom","left"],Oh=Math.min,Dh=Math.max,Th=Math.round,Nh=Math.floor,Bh=e=>({x:e,y:e}),Rh={left:"right",right:"left",bottom:"top",top:"bottom"},Mh={start:"end",end:"start"};function Fh(e,t,n){return Dh(e,Oh(t,n))}function Vh(e,t){return"function"==typeof e?e(t):e}function Lh(e){return e.split("-")[0]}function jh(e){return e.split("-")[1]}function zh(e){return"x"===e?"y":"x"}function Qh(e){return"y"===e?"height":"width"}function Uh(e){return["top","bottom"].includes(Lh(e))?"y":"x"}function Hh(e){return zh(Uh(e))}function _h(e){return e.replace(/start|end/g,(e=>Mh[e]))}function qh(e){return e.replace(/left|right|bottom|top/g,(e=>Rh[e]))}function Kh(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Wh(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Gh(e,t,n){let{reference:o,floating:r}=e;const i=Uh(t),a=Hh(t),s=Qh(a),l=Lh(t),u="y"===i,c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(l){case"top":f={x:c,y:o.y-r.height};break;case"bottom":f={x:c,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(jh(t)){case"start":f[a]-=p*(n&&u?-1:1);break;case"end":f[a]+=p*(n&&u?-1:1)}return f}async function Zh(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Vh(t,e),m=Kh(f),h=s[p?"floating"===d?"reference":"floating":d],g=Wh(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),A=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=Wh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+m.top)/A.y,bottom:(b.bottom-g.bottom+m.bottom)/A.y,left:(g.left-b.left+m.left)/A.x,right:(b.right-g.right+m.right)/A.x}}function Xh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yh(e){return Ih.some((t=>e[t]>=0))}function Jh(e){return tg(e)?(e.nodeName||"").toLowerCase():"#document"}function $h(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eg(e){var t;return null==(t=(tg(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function tg(e){return e instanceof Node||e instanceof $h(e).Node}function ng(e){return e instanceof Element||e instanceof $h(e).Element}function og(e){return e instanceof HTMLElement||e instanceof $h(e).HTMLElement}function rg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof $h(e).ShadowRoot)}function ig(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=dg(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ag(e){return["table","td","th"].includes(Jh(e))}function sg(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function lg(e){const t=ug(),n=ng(e)?dg(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ug(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function cg(e){return["html","body","#document"].includes(Jh(e))}function dg(e){return $h(e).getComputedStyle(e)}function pg(e){return ng(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fg(e){if("html"===Jh(e))return e;const t=e.assignedSlot||e.parentNode||rg(e)&&e.host||eg(e);return rg(t)?t.host:t}function mg(e){const t=fg(e);return cg(t)?e.ownerDocument?e.ownerDocument.body:e.body:og(t)&&ig(t)?t:mg(t)}function hg(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=mg(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=$h(r);return i?t.concat(a,a.visualViewport||[],ig(r)?r:[],a.frameElement&&n?hg(a.frameElement):[]):t.concat(r,hg(r,[],n))}function gg(e){const t=dg(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=og(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=Th(n)!==i||Th(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function vg(e){return ng(e)?e:e.contextElement}function yg(e){const t=vg(e);if(!og(t))return Bh(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=gg(t);let a=(i?Th(n.width):n.width)/o,s=(i?Th(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ag=Bh(0);function bg(e){const t=$h(e);return ug()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ag}function wg(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=vg(e);let a=Bh(1);t&&(o?ng(o)&&(a=yg(o)):a=yg(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$h(e))&&t}(i,n,o)?bg(i):Bh(0);let l=(r.left+s.x)/a.x,u=(r.top+s.y)/a.y,c=r.width/a.x,d=r.height/a.y;if(i){const e=$h(i),t=o&&ng(o)?$h(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=yg(r),t=r.getBoundingClientRect(),o=dg(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=$h(r),r=n.frameElement}}return Wh({width:c,height:d,x:l,y:u})}function xg(e){return wg(eg(e)).left+pg(e).scrollLeft}function Eg(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=$h(e),o=eg(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=ug();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)o=function(e){const t=eg(e),n=pg(e),o=e.ownerDocument.body,r=Dh(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Dh(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+xg(e);const s=-n.scrollTop;return"rtl"===dg(o).direction&&(a+=Dh(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(eg(e));else if(ng(t))o=function(e,t){const n=wg(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=og(e)?yg(e):Bh(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=bg(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return Wh(o)}function Sg(e,t){const n=fg(e);return!(n===t||!ng(n)||cg(n))&&("fixed"===dg(n).position||Sg(n,t))}function kg(e,t,n){const o=og(t),r=eg(t),i="fixed"===n,a=wg(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Bh(0);if(o||!o&&!i)if(("body"!==Jh(t)||ig(r))&&(s=pg(t)),o){const e=wg(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=xg(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Cg(e){return"static"===dg(e).position}function Pg(e,t){return og(e)&&"fixed"!==dg(e).position?t?t(e):e.offsetParent:null}function Ig(e,t){const n=$h(e);if(sg(e))return n;if(!og(e)){let t=fg(e);for(;t&&!cg(t);){if(ng(t)&&!Cg(t))return t;t=fg(t)}return n}let o=Pg(e,t);for(;o&&ag(o)&&Cg(o);)o=Pg(o,t);return o&&cg(o)&&Cg(o)&&!lg(o)?n:o||function(e){let t=fg(e);for(;og(t)&&!cg(t);){if(lg(t))return t;if(sg(t))return null;t=fg(t)}return null}(e)||n}const Og={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=eg(o),s=!!t&&sg(t.floating);if(o===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Bh(1);const c=Bh(0),d=og(o);if((d||!d&&!i)&&(("body"!==Jh(o)||ig(a))&&(l=pg(o)),og(o))){const e=wg(o);u=yg(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:eg,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?sg(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=hg(e,[],!1).filter((e=>ng(e)&&"body"!==Jh(e))),r=null;const i="fixed"===dg(e).position;let a=i?fg(e):e;for(;ng(a)&&!cg(a);){const t=dg(a),n=lg(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||ig(a)&&!n&&Sg(e,a))?o=o.filter((e=>e!==a)):r=t,a=fg(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=Eg(t,n,r);return e.top=Dh(o.top,e.top),e.right=Oh(o.right,e.right),e.bottom=Oh(o.bottom,e.bottom),e.left=Dh(o.left,e.left),e}),Eg(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ig,getElementRects:async function(e){const t=this.getOffsetParent||Ig,n=this.getDimensions,o=await n(e.floating);return{reference:kg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=gg(e);return{width:t,height:n}},getScale:yg,isElement:ng,isRTL:function(e){return"rtl"===dg(e).direction}};function Dg(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,u=vg(e),c=r||i?[...u?hg(u):[],...hg(t)]:[];c.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,o=null;const r=eg(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Nh(c)+"px "+-Nh(r.clientWidth-(u+d))+"px "+-Nh(r.clientHeight-(c+p))+"px "+-Nh(u)+"px",threshold:Dh(0,Oh(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{o=new IntersectionObserver(h,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(h,f)}o.observe(e)}(!0),i}(u,n):null;let p,f=-1,m=null;a&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),u&&!l&&m.observe(u),m.observe(t));let h=l?wg(e):null;return l&&function t(){const o=wg(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n();h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const Tg=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=Lh(n),s=jh(n),l="y"===Uh(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=Vh(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},Ng=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Vh(e,t),u={x:n,y:o},c=await Zh(t,l),d=Uh(Lh(r)),p=zh(d);let f=u[p],m=u[d];if(i){const e="y"===p?"bottom":"right";f=Fh(f+c["y"===p?"top":"left"],f,f-c[e])}if(a){const e="y"===d?"bottom":"right";m=Fh(m+c["y"===d?"top":"left"],m,m-c[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},Bg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Vh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Lh(r),y=Uh(s),A=Lh(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(u.floating)),w=p||(A||!h?[qh(s)]:function(e){const t=qh(e);return[_h(e),t,_h(t)]}(s)),x="none"!==m;!p&&x&&w.push(...function(e,t,n,o){const r=jh(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(Lh(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(_h)))),i}(s,h,m,b));const E=[s,...w],S=await Zh(t,g),k=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&k.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=jh(e),r=Hh(e),i=Qh(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=qh(a)),[a,qh(a)]}(r,a,b);k.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:r,overflows:k}],!k.every((e=>e<=0))){var P,I;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=C.filter((e=>{if(x){const t=Uh(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},Rg=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:a=()=>{},...s}=Vh(e,t),l=await Zh(t,s),u=Lh(n),c=jh(n),d="y"===Uh(n),{width:p,height:f}=o.floating;let m,h;"top"===u||"bottom"===u?(m=u,h=c===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,m="end"===c?"top":"bottom");const g=f-l.top-l.bottom,v=p-l.left-l.right,y=Oh(f-l[m],g),A=Oh(p-l[h],v),b=!t.middlewareData.shift;let w=y,x=A;if(d?x=c||b?Oh(A,v):v:w=c||b?Oh(y,g):g,b&&!c){const e=Dh(l.left,0),t=Dh(l.right,0),n=Dh(l.top,0),o=Dh(l.bottom,0);d?x=p-2*(0!==e||0!==t?e+t:Dh(l.left,l.right)):w=f-2*(0!==n||0!==o?n+o:Dh(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:w});const E=await r.getDimensions(i.floating);return p!==E.width||f!==E.height?{reset:{rects:!0}}:{}}}},Mg=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Vh(e,t);switch(o){case"referenceHidden":{const e=Xh(await Zh(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Yh(e)}}}case"escaped":{const e=Xh(await Zh(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Yh(e)}}}default:return{}}}}},Fg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Vh(e,t)||{};if(null==u)return{};const d=Kh(c),p={x:n,y:o},f=Hh(r),m=Qh(f),h=await a.getDimensions(u),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",A=g?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let E=x?x[A]:0;E&&await(null==a.isElement?void 0:a.isElement(x))||(E=s.floating[A]||i.floating[m]);const S=b/2-w/2,k=E/2-h[m]/2-1,C=Oh(d[v],k),P=Oh(d[y],k),I=C,O=E-h[m]-P,D=E/2-h[m]/2+S,T=Fh(I,D,O),N=!l.arrow&&null!=jh(r)&&D!==T&&i.reference[m]/2-(D<I?C:P)-h[m]/2<0,B=N?D<I?D-I:D-O:0;return{[f]:p[f]+B,data:{[f]:T,centerOffset:D-T-B,...N&&{alignmentOffset:B}},reset:N}}}),Vg=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Vh(e,t),c={x:n,y:o},d=Uh(r),p=zh(d);let f=c[p],m=c[d];const h=Vh(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var v,y;const e="y"===p?"width":"height",t=["top","left"].includes(Lh(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:f,[d]:m}}}},Lg=(e,t,n)=>{const o=new Map,r={platform:Og,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=Gh(u,o,l),p=o,f={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:y,reset:A}=await h({x:c,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[i]:{...f[i],...y}},A&&m<=50&&(m++,"object"==typeof A&&(A.placement&&(p=A.placement),A.rects&&(u=!0===A.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):A.rects),({x:c,y:d}=Gh(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:r,middlewareData:f}})(e,t,{...r,platform:i})};var jg="undefined"!=typeof document?u:o;function zg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!zg(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!zg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Qg(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ug(e,t){const n=Qg(e);return Math.round(t*n)/n}function Hg(t){const n=e.useRef(t);return jg((()=>{n.current=t})),n}const _g=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?Fg({element:n.current,padding:o}).fn(t):{}:n?Fg({element:n,padding:o}).fn(t):{};var r}}),qg=(e,t)=>({...Tg(e),options:[e,t]}),Kg=(e,t)=>({...Ng(e),options:[e,t]}),Wg=(e,t)=>({...Vg(e),options:[e,t]}),Gg=(e,t)=>({...Bg(e),options:[e,t]}),Zg=(e,t)=>({...Rg(e),options:[e,t]}),Xg=(e,t)=>({...Mg(e),options:[e,t]}),Yg=(e,t)=>({..._g(e),options:[e,t]});var Jg=e.forwardRef(((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return y(U.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y("polygon",{points:"0,0 30,0 15,10"})})}));Jg.displayName="Arrow";var $g=Jg,ev="Popper",[tv,nv]=O(ev),[ov,rv]=tv(ev),iv=t=>{const{__scopePopper:n,children:o}=t,[r,i]=e.useState(null);return y(ov,{scope:n,anchor:r,onAnchorChange:i,children:o})};iv.displayName=ev;var av="PopperAnchor",sv=e.forwardRef(((t,n)=>{const{__scopePopper:o,virtualRef:r,...i}=t,a=rv(av,o),s=e.useRef(null),l=N(n,s);return e.useEffect((()=>{a.onAnchorChange(r?.current||s.current)})),r?null:y(U.div,{...i,ref:l})}));sv.displayName=av;var lv="PopperContent",[uv,cv]=tv(lv),dv=e.forwardRef(((t,n)=>{const{__scopePopper:o,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=t,v=rv(lv,o),[A,b]=e.useState(null),x=N(n,(e=>b(e))),[E,S]=e.useState(null),k=Nt(E),C=k?.width??0,P=k?.height??0,I=r+("center"!==a?"-"+a:""),O="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(c)?c:[c],T=D.length>0,B={padding:O,boundary:D.filter(hv),altBoundary:T},{refs:R,floatingStyles:M,placement:F,isPositioned:V,middlewareData:L}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=t,[d,p]=e.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(r);zg(f,r)||m(r);const[h,g]=e.useState(null),[v,y]=e.useState(null),A=e.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),b=e.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),x=a||h,E=s||v,S=e.useRef(null),k=e.useRef(null),C=e.useRef(d),P=null!=u,I=Hg(u),O=Hg(i),D=e.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:n,strategy:o,middleware:f};O.current&&(e.platform=O.current),Lg(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!zg(C.current,t)&&(C.current=t,w.flushSync((()=>{p(t)})))}))}),[f,n,o,O]);jg((()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[c]);const T=e.useRef(!1);jg((()=>(T.current=!0,()=>{T.current=!1})),[]),jg((()=>{if(x&&(S.current=x),E&&(k.current=E),x&&E){if(I.current)return I.current(x,E,D);D()}}),[x,E,D,I,P]);const N=e.useMemo((()=>({reference:S,floating:k,setReference:A,setFloating:b})),[A,b]),B=e.useMemo((()=>({reference:x,floating:E})),[x,E]),R=e.useMemo((()=>{const e={position:o,left:0,top:0};if(!B.floating)return e;const t=Ug(B.floating,d.x),n=Ug(B.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Qg(B.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}}),[o,l,B.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:D,refs:N,elements:B,floatingStyles:R})),[d,D,N,B,R])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>Dg(...e,{animationFrame:"always"===m}),elements:{reference:v.anchor},middleware:[qg({mainAxis:i+P,alignmentAxis:s}),u&&Kg({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Wg():void 0,...B}),u&&Gg({...B}),Zg({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),E&&Yg({element:E,padding:l}),gv({arrowWidth:C,arrowHeight:P}),f&&Xg({strategy:"referenceHidden",...B})]}),[j,Q]=vv(F),_=z(h);H((()=>{V&&_?.()}),[V,_]);const q=L.arrow?.x,K=L.arrow?.y,W=0!==L.arrow?.centerOffset,[G,Z]=e.useState();return H((()=>{A&&Z(window.getComputedStyle(A).zIndex)}),[A]),y("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:V?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:y(uv,{scope:o,placedSide:j,onArrowChange:S,arrowX:q,arrowY:K,shouldHideArrow:W,children:y(U.div,{"data-side":j,"data-align":Q,...g,ref:x,style:{...g.style,animation:V?void 0:"none"}})})})}));dv.displayName=lv;var pv="PopperArrow",fv={top:"bottom",right:"left",bottom:"top",left:"right"},mv=e.forwardRef((function(e,t){const{__scopePopper:n,...o}=e,r=cv(pv,n),i=fv[r.placedSide];return y("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:y($g,{...o,ref:t,style:{...o.style,display:"block"}})})}));function hv(e){return null!==e}mv.displayName=pv;var gv=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=0!==r.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,u]=vv(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,p=(r.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=i?c:`${d}px`,m=-s+"px"):"top"===l?(f=i?c:`${d}px`,m=`${o.floating.height+s}px`):"right"===l?(f=-s+"px",m=i?c:`${p}px`):"left"===l&&(f=`${o.floating.width+s}px`,m=i?c:`${p}px`),{data:{x:f,y:m}}}});function vv(e){const[t,n="center"]=e.split("-");return[t,n]}var yv=iv,Av=sv,bv=dv,wv=mv,xv=e.forwardRef(((t,n)=>{const{container:o,...r}=t,[i,a]=e.useState(!1);H((()=>a(!0)),[]);const s=o||i&&globalThis?.document?.body;return s?x.createPortal(y(U.div,{...r,ref:n}),s):null}));xv.displayName="Portal";var Ev=new WeakMap,Sv=new WeakMap,kv={},Cv=0,Pv=function(e){return e&&(e.host||Pv(e.parentNode))},Iv=function(e,t,n,o){var r=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Pv(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);kv[n]||(kv[n]=new WeakMap);var i=kv[n],a=[],s=new Set,l=new Set(r),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};r.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(o),r=null!==t&&"false"!==t,l=(Ev.get(e)||0)+1,u=(i.get(e)||0)+1;Ev.set(e,l),i.set(e,u),a.push(e),1===l&&r&&Sv.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute(o,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return c(t),s.clear(),Cv++,function(){a.forEach((function(e){var t=Ev.get(e)-1,r=i.get(e)-1;Ev.set(e,t),i.set(e,r),t||(Sv.has(e)||e.removeAttribute(o),Sv.delete(e)),r||e.removeAttribute(n)})),--Cv||(Ev=new WeakMap,Ev=new WeakMap,Sv=new WeakMap,kv={})}},Ov=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Iv(o,r,n,"aria-hidden")):function(){return null}},Dv="right-scroll-bar-position",Tv="width-before-scroll-bar";function Nv(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Bv="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Rv=new WeakMap;function Mv(e,t){var o,r,i,a=(o=null,r=function(t){return e.forEach((function(e){return Nv(e,t)}))},(i=n((function(){return{value:o,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=r,i.facade);return Bv((function(){var t=Rv.get(a);if(t){var n=new Set(t),o=new Set(e),r=a.current;n.forEach((function(e){o.has(e)||Nv(e,null)})),o.forEach((function(e){n.has(e)||Nv(e,r)}))}Rv.set(a,e)}),[e]),a}function Fv(e){return e}var Vv=function(t){var n=t.sideCar,o=P(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return e.createElement(r,C({},o))};Vv.isSideCarExport=!0;var Lv=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Fv);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter((function(e){return e!==r}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return r}(null);return t.options=C({async:!0,ssr:!1},e),t}(),jv=function(){},zv=e.forwardRef((function(t,n){var o=e.useRef(null),r=e.useState({onScrollCapture:jv,onWheelCapture:jv,onTouchMoveCapture:jv}),i=r[0],a=r[1],s=t.forwardProps,l=t.children,u=t.className,c=t.removeScrollBar,d=t.enabled,p=t.shards,f=t.sideCar,m=t.noIsolation,h=t.inert,g=t.allowPinchZoom,v=t.as,y=void 0===v?"div":v,A=t.gapMode,b=P(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,x=Mv([o,n]),E=C(C({},b),i);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:Lv,removeScrollBar:c,shards:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:o,gapMode:A}),s?e.cloneElement(e.Children.only(l),C(C({},E),{ref:x})):e.createElement(y,C({},E,{className:u,ref:x}),l))}));zv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zv.classNames={fullWidth:Tv,zeroRight:Dv};function Qv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Uv=function(){var e=0,t=null;return{add:function(n){var o,r;0==e&&(t=Qv())&&(r=n,(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hv=function(){var t,n=(t=Uv(),function(n,o){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&o])});return function(e){var t=e.styles,o=e.dynamic;return n(t,o),null}},_v={left:0,top:0,right:0,gap:0},qv=function(e){return parseInt(e||"",10)||0},Kv=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return _v;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[qv(n),qv(o),qv(r)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Wv=Hv(),Gv="data-scroll-locked",Zv=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(s,"px ").concat(o,";\n }\n body[").concat(Gv,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Dv," {\n right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Tv," {\n margin-right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Dv," .").concat(Dv," {\n right: 0 ").concat(o,";\n }\n \n .").concat(Tv," .").concat(Tv," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(Gv,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Xv=function(){var e=parseInt(document.body.getAttribute(Gv)||"0",10);return isFinite(e)?e:0},Yv=function(t){var n=t.noRelative,o=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r;e.useEffect((function(){return document.body.setAttribute(Gv,(Xv()+1).toString()),function(){var e=Xv()-1;e<=0?document.body.removeAttribute(Gv):document.body.setAttribute(Gv,e.toString())}}),[]);var a=e.useMemo((function(){return Kv(i)}),[i]);return e.createElement(Wv,{styles:Zv(a,!n,i,o?"":"!important")})},Jv=!1;if("undefined"!=typeof window)try{var $v=Object.defineProperty({},"passive",{get:function(){return Jv=!0,!0}});window.addEventListener("test",$v,$v),window.removeEventListener("test",$v,$v)}catch(e){Jv=!1}var ey=!!Jv&&{passive:!1},ty=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ny=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),oy(e,o)){var r=ry(e,o);if(r[1]>r[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},oy=function(e,t){return"v"===e?function(e){return ty(e,"overflowY")}(t):function(e){return ty(e,"overflowX")}(t)},ry=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},iy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ay=function(e){return[e.deltaX,e.deltaY]},sy=function(e){return e&&"current"in e?e.current:e},ly=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},uy=0,cy=[];function dy(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var py,fy=(py=function(t){var n=e.useRef([]),o=e.useRef([0,0]),r=e.useRef(),i=e.useState(uy++)[0],a=e.useState(Hv)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=I([t.lockRef.current],(t.shards||[]).map(sy),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,i=iy(e),a=o.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var p=ny(d,c);if(!p)return!0;if(p?n=d:(n="v"===d?"h":"v",p=ny(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=n),!n)return!0;var f=r.current||n;return function(e,t,n,o,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*o,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,p=0;do{var f=ry(e,s),m=f[0],h=f[1]-f[2]-i*m;(m||h)&&oy(e,s)&&(d+=h,p+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return c&&(Math.abs(d)<1||!r)?u=!0:c||!(Math.abs(p)<1)&&r||(u=!0),u}(f,t,e,"h"===f?l:u,!0)}),[]),u=e.useCallback((function(e){var t=e;if(cy.length&&cy[cy.length-1]===a){var o="deltaY"in t?ay(t):iy(t),r=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,r=o,n[0]===r[0]&&n[1]===r[1]);var n,r}))[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var i=(s.current.shards||[]).map(sy).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),c=e.useCallback((function(e,t,o,r){var i={name:e,delta:t,target:o,should:r,shadowParent:dy(o)};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){o.current=iy(e),r.current=void 0}),[]),p=e.useCallback((function(e){c(e.type,ay(e),e.target,l(e,t.lockRef.current))}),[]),f=e.useCallback((function(e){c(e.type,iy(e),e.target,l(e,t.lockRef.current))}),[]);e.useEffect((function(){return cy.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",u,ey),document.addEventListener("touchmove",u,ey),document.addEventListener("touchstart",d,ey),function(){cy=cy.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,ey),document.removeEventListener("touchmove",u,ey),document.removeEventListener("touchstart",d,ey)}}),[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:ly(i)}):null,m?e.createElement(Yv,{gapMode:t.gapMode}):null)},Lv.useMedium(py),Vv),my=e.forwardRef((function(t,n){return e.createElement(zv,C({},t,{ref:n,sideCar:fy}))}));my.classNames=zv.classNames;var hy="Popover",[gy,vy]=O(hy,[nv]),yy=nv(),[Ay,by]=gy(hy),wy=t=>{const{__scopePopover:n,children:o,open:r,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,l=yy(n),u=e.useRef(null),[c,d]=e.useState(!1),[p=!1,f]=Q({prop:r,defaultProp:i,onChange:a});return y(yv,{...l,children:y(Ay,{scope:n,contentId:G(),triggerRef:u,open:p,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:c,onCustomAnchorAdd:e.useCallback((()=>d(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>d(!1)),[]),modal:s,children:o})})};wy.displayName=hy;var xy="PopoverAnchor";e.forwardRef(((t,n)=>{const{__scopePopover:o,...r}=t,i=by(xy,o),a=yy(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=i;return e.useEffect((()=>(s(),()=>l())),[s,l]),y(Av,{...a,...r,ref:n})})).displayName=xy;var Ey="PopoverTrigger",Sy=e.forwardRef(((e,t)=>{const{__scopePopover:n,...o}=e,r=by(Ey,n),i=yy(n),a=N(t,r.triggerRef),s=y(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vy(r.open),...o,ref:a,onClick:j(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?s:y(Av,{asChild:!0,...i,children:s})}));Sy.displayName=Ey;var ky="PopoverPortal",[Cy,Py]=gy(ky,{forceMount:void 0}),Iy=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,i=by(ky,t);return y(Cy,{scope:t,forceMount:n,children:y(_,{present:n||i.open,children:y(xv,{asChild:!0,container:r,children:o})})})};Iy.displayName=ky;var Oy="PopoverContent",Dy=e.forwardRef(((e,t)=>{const n=Py(Oy,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,i=by(Oy,e.__scopePopover);return y(_,{present:o||i.open,children:i.modal?y(Ty,{...r,ref:t}):y(Ny,{...r,ref:t})})}));Dy.displayName=Oy;var Ty=e.forwardRef(((t,n)=>{const o=by(Oy,t.__scopePopover),r=e.useRef(null),i=N(n,r),a=e.useRef(!1);return e.useEffect((()=>{const e=r.current;if(e)return Ov(e)}),[]),y(my,{as:B,allowPinchZoom:!0,children:y(By,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(t.onCloseAutoFocus,(e=>{e.preventDefault(),a.current||o.triggerRef.current?.focus()})),onPointerDownOutside:j(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;a.current=o}),{checkForDefaultPrevented:!1}),onFocusOutside:j(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),Ny=e.forwardRef(((t,n)=>{const o=by(Oy,t.__scopePopover),r=e.useRef(!1),i=e.useRef(!1);return y(By,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(r.current||o.triggerRef.current?.focus(),e.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(r.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=o.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),By=e.forwardRef(((t,n)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=t,f=by(Oy,o),m=yy(o);return e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vh()),document.body.insertAdjacentElement("beforeend",e[1]??vh()),gh++,()=>{1===gh&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),gh--}}),[]),y(wh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:y(fh,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:y(bv,{"data-state":Vy(f.open),role:"dialog",id:f.contentId,...m,...p,ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),Ry="PopoverClose",My=e.forwardRef(((e,t)=>{const{__scopePopover:n,...o}=e,r=by(Ry,n);return y(U.button,{type:"button",...o,ref:t,onClick:j(e.onClick,(()=>r.onOpenChange(!1)))})}));My.displayName=Ry;var Fy=e.forwardRef(((e,t)=>{const{__scopePopover:n,...o}=e,r=yy(n);return y(wv,{...r,...o,ref:t})}));function Vy(e){return e?"open":"closed"}Fy.displayName="PopoverArrow";var Ly=wy,jy=Sy,zy=Iy,Qy=Dy,Uy=My,Hy=Fy,_y="popover-module_popoverContent__PIQxs",qy="popover-module_popoverClose__B-VLf",Ky="popover-module_popoverArrow__TR3-g";Ke(".popover-module_popoverContent__PIQxs {\n border-radius: 12px;\n padding: 20px;\n width: 260px;\n background-color: white;\n box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px;\n animation-duration: 400ms;\n animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\n will-change: transform, opacity;\n}\n\n.popover-module_popoverClose__B-VLf {\n all: unset;\n cursor: pointer;\n font-family: inherit;\n border-radius: 100%;\n height: 25px;\n width: 25px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 5px;\n right: 5px;\n}\n\n.popover-module_popoverArrow__TR3-g {\n fill: white;\n}\n");var Wy={Root:function(e){return t.createElement(Ly,C({},e))},Trigger:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(jy,C({asChild:!0},o),n)},Content:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(zy,null,t.createElement(Qy,C({className:_y},o),t.createElement("div",null,n),t.createElement(Uy,{className:qy,"aria-label":"Close"},t.createElement(ht,{icon:"close"})),t.createElement(Hy,{className:Ky})))}},Gy={container:"progress-indicator-module_container__Q5btZ","container--full-width":"progress-indicator-module_container--full-width__QEQ02","container--medium":"progress-indicator-module_container--medium__bGFSg","container--small":"progress-indicator-module_container--small__gj6-6",progress:"progress-indicator-module_progress__r9GtM","progress-bar":"progress-indicator-module_progress-bar__NKEuA",label:"progress-indicator-module_label__nASe1"};Ke(".progress-indicator-module_container__Q5btZ {\n}\n\n.progress-indicator-module_container--full-width__QEQ02 {\n width: 100%;\n}\n\n.progress-indicator-module_container--medium__bGFSg {\n width: 265px;\n}\n\n.progress-indicator-module_container--small__gj6-6 {\n width: 100px;\n}\n\n.progress-indicator-module_progress__r9GtM {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 0.25rem;\n background: var(--product-greyscale-0);\n border-radius: 0.125rem;\n}\n\n.progress-indicator-module_progress-bar__NKEuA {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n background: var(--product-success);\n border-radius: 0.125rem;\n}\n\n.progress-indicator-module_label__nASe1 {\n margin-top: var(--product-spacing-1);\n}\n");var Zy=function(e){var n=e.label,o=e.size,r=void 0===o?"full-width":o,i=e.current,a=void 0===i?1:i,s=e.max,l=void 0===s?10:s;return t.createElement("div",{className:qe(Gy.container,r&&Gy["container--".concat(r)])},t.createElement("div",{className:Gy.progress},t.createElement("div",{className:Gy["progress-bar"],style:{width:"".concat(a/l*100,"%")}})),n&&t.createElement(vt,{className:Gy.label,variant:"form-helper"},n),t.createElement(vt,{className:"sr-only"},"Step ",a," of ",l))},Xy="rovingFocusGroup.onEntryFocus",Yy={bubbles:!1,cancelable:!0},Jy="RovingFocusGroup",[$y,eA,tA]=L(Jy),[nA,oA]=O(Jy,[tA]),[rA,iA]=nA(Jy),aA=e.forwardRef(((e,t)=>y($y.Provider,{scope:e.__scopeRovingFocusGroup,children:y($y.Slot,{scope:e.__scopeRovingFocusGroup,children:y(sA,{...e,ref:t})})})));aA.displayName=Jy;var sA=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=t,f=e.useRef(null),m=N(n,f),h=de(a),[g=null,v]=Q({prop:s,defaultProp:l,onChange:u}),[A,b]=e.useState(!1),w=z(c),x=eA(o),E=e.useRef(!1),[S,k]=e.useState(0);return e.useEffect((()=>{const e=f.current;if(e)return e.addEventListener(Xy,w),()=>e.removeEventListener(Xy,w)}),[w]),y(rA,{scope:o,orientation:r,dir:h,loop:i,currentTabStopId:g,onItemFocus:e.useCallback((e=>v(e)),[v]),onItemShiftTab:e.useCallback((()=>b(!0)),[]),onFocusableItemAdd:e.useCallback((()=>k((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>k((e=>e-1))),[]),children:y(U.div,{tabIndex:A||0===S?-1:0,"data-orientation":r,...p,ref:m,style:{outline:"none",...t.style},onMouseDown:j(t.onMouseDown,(()=>{E.current=!0})),onFocus:j(t.onFocus,(e=>{const t=!E.current;if(e.target===e.currentTarget&&t&&!A){const t=new CustomEvent(Xy,Yy);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=x().filter((e=>e.focusable));dA([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}E.current=!1})),onBlur:j(t.onBlur,(()=>b(!1)))})})})),lA="RovingFocusGroupItem",uA=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:o,focusable:r=!0,active:i=!1,tabStopId:a,...s}=t,l=G(),u=a||l,c=iA(lA,o),d=c.currentTabStopId===u,p=eA(o),{onFocusableItemAdd:f,onFocusableItemRemove:m}=c;return e.useEffect((()=>{if(r)return f(),()=>m()}),[r,f,m]),y($y.ItemSlot,{scope:o,id:u,focusable:r,active:i,children:y(U.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:n,onMouseDown:j(t.onMouseDown,(e=>{r?c.onItemFocus(u):e.preventDefault()})),onFocus:j(t.onFocus,(()=>c.onItemFocus(u))),onKeyDown:j(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const o=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(o)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)?void 0:cA[o]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();const i=r.indexOf(e.currentTarget);r=c.loop?(o=i+1,(n=r).map(((e,t)=>n[(o+t)%n.length]))):r.slice(i+1)}setTimeout((()=>dA(r)))}var n,o}))})})}));uA.displayName=lA;var cA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function dA(e,t=!1){const n=document.activeElement;for(const o of e){if(o===n)return;if(o.focus({preventScroll:t}),document.activeElement!==n)return}}var pA=aA,fA=uA,mA="Radio",[hA,gA]=O(mA),[vA,yA]=hA(mA),AA=e.forwardRef(((t,n)=>{const{__scopeRadio:o,name:r,checked:i=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=t,[d,p]=e.useState(null),f=N(n,(e=>p(e))),m=e.useRef(!1),h=!d||Boolean(d.closest("form"));return b(vA,{scope:o,checked:i,disabled:s,children:[y(U.button,{type:"button",role:"radio","aria-checked":i,"data-state":EA(i),"data-disabled":s?"":void 0,disabled:s,value:l,...c,ref:f,onClick:j(t.onClick,(e=>{i||u?.(),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))}),h&&y(xA,{control:d,bubbles:!m.current,name:r,value:l,checked:i,required:a,disabled:s,style:{transform:"translateX(-100%)"}})]})}));AA.displayName=mA;var bA="RadioIndicator",wA=e.forwardRef(((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,i=yA(bA,n);return y(_,{present:o||i.checked,children:y(U.span,{"data-state":EA(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})})}));wA.displayName=bA;var xA=t=>{const{control:n,checked:o,bubbles:r=!0,...i}=t,a=e.useRef(null),s=Tt(o),l=Nt(n);return e.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==o&&n){const t=new Event("click",{bubbles:r});n.call(e,o),e.dispatchEvent(t)}}),[s,o,r]),y("input",{type:"radio","aria-hidden":!0,defaultChecked:o,...i,tabIndex:-1,ref:a,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function EA(e){return e?"checked":"unchecked"}var SA=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],kA="RadioGroup",[CA,PA]=O(kA,[oA,gA]),IA=oA(),OA=gA(),[DA,TA]=CA(kA),NA=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...p}=e,f=IA(n),m=de(u),[h,g]=Q({prop:i,defaultProp:r,onChange:d});return y(DA,{scope:n,name:o,required:a,disabled:s,value:h,onValueChange:g,children:y(pA,{asChild:!0,...f,orientation:l,dir:m,loop:c,children:y(U.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m,...p,ref:t})})})}));NA.displayName=kA;var BA="RadioGroupItem",RA=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:o,disabled:r,...i}=t,a=TA(BA,o),s=a.disabled||r,l=IA(o),u=OA(o),c=e.useRef(null),d=N(n,c),p=a.value===i.value,f=e.useRef(!1);return e.useEffect((()=>{const e=e=>{SA.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),y(fA,{asChild:!0,...l,focusable:!s,active:p,children:y(AA,{disabled:s,required:a.required,checked:p,...u,...i,name:a.name,ref:d,onCheck:()=>a.onValueChange(i.value),onKeyDown:j((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:j(i.onFocus,(()=>{f.current&&c.current?.click()}))})})}));RA.displayName=BA;var MA=e.forwardRef(((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=OA(n);return y(wA,{...r,...o,ref:t})}));MA.displayName="RadioGroupIndicator";var FA=NA,VA=RA,LA=MA,jA={legend:"radioGroup-module_legend__W5JW2","radio-root":"radioGroup-module_radio-root__neUc4","radio-root--horizontal":"radioGroup-module_radio-root--horizontal__M3cUz","radio-root--vertical":"radioGroup-module_radio-root--vertical__4Fc9i","radio-root--error":"radioGroup-module_radio-root--error__ScELD","radio-root-label--error":"radioGroup-module_radio-root-label--error__PrwOr","radio-item":"radioGroup-module_radio-item__zw2CV","radio-indicator":"radioGroup-module_radio-indicator__wJEwS",circle:"radioGroup-module_circle__yJl7K","radio-circle-container":"radioGroup-module_radio-circle-container__VTvrD"};Ke(".radioGroup-module_legend__W5JW2 {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__neUc4 {\n display: flex;\n gap: var(--product-spacing-2);\n}\n\n.radioGroup-module_radio-root--horizontal__M3cUz {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__4Fc9i {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__ScELD {\n border: var(--product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__PrwOr {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__zw2CV {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n.radioGroup-module_radio-item__zw2CV:focus {\n outline: 2px solid var(--product-focus);\n}\n\n/* ! The Circle */\n.radioGroup-module_radio-item__zw2CV::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4));\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__wJEwS::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: '';\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__zw2CV:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__zw2CV:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n/* Circle variant */\n\n.radioGroup-module_circle__yJl7K.radioGroup-module_radio-root__neUc4 {\n display: flex;\n flex-direction: column;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV {\n background: none;\n padding: 0;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:hover::after {\n background: var(--product-greyscale-20);\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:focus {\n outline: none;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:focus-visible {\n position: relative;\n outline: 2px solid var(--product-focus);\n outline-offset: 3px;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV::after {\n left: -2px;\n right: auto;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-indicator__wJEwS::after {\n left: calc(0.5rem - 2px);\n right: auto;\n z-index: 2;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:disabled::after {\n border-color: var(--product-greyscale-60);\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:disabled:hover::after {\n background: transparent;\n}\n\n.radioGroup-module_circle__yJl7K .radioGroup-module_radio-item__zw2CV:disabled ~ p {\n color: var(--product-greyscale-60);\n}\n\n.radioGroup-module_radio-circle-container__VTvrD {\n display: flex;\n gap: 0.75rem;\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__zw2CV {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__neUc4 {\n gap: var(--product-spacing-2);\n }\n\n .radioGroup-module_radio-item__zw2CV::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__wJEwS::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n");var zA=function(e){var n=e.className,o=P(e,["className"]);return t.createElement(LA,C({className:qe(n,jA["radio-indicator"])},o))},QA={Root:function(e){var n=e.children,o=e.className,r=e.name,i=e.label,a=e.variant,s=P(e,["children","className","name","label","variant"]),l=E(),u=l.control,c=l.formState.errors,d=void 0===c?{}:c,p=d&&d[r];return t.createElement(S,{name:r,control:u,render:function(e){var r=e.field,l=r.onChange,u=P(r,["onChange"]);return t.createElement("fieldset",null,t.createElement(vt,{className:jA.legend,as:"legend",variant:"form-input-normal"},i),t.createElement(FA,C({className:qe(o,a&&jA[a],jA["radio-root"],p&&jA["radio-root--error"]),onValueChange:l},s,u,{"aria-required":void 0}),n),p&&t.createElement("p",{className:jA["radio-root-label--error"]},null==p?void 0:p.message))}})},Item:function(e){var n=e.children,o=e.className,r=e.variant,i=P(e,["children","className","variant"]);return"circle"===r?t.createElement("div",{className:jA["radio-circle-container"]},t.createElement(VA,C({className:qe(o,jA["radio-item"])},i),t.createElement(zA,null)),t.createElement(vt,{variant:"form-input-normal"},n)):t.createElement(VA,C({className:qe(o,jA["radio-item"])},i),t.createElement(vt,{variant:"form-input-normal"},n))},Indicator:zA},UA="range-module_container__ajA6j",HA="range-module_range-container__jdaY9",_A="range-module_slider__wO6mF",qA="range-module_notches__F4sLq",KA="range-module_notch__5XVJI",WA="range-module_progress__99Nu5",GA="range-module_value-container__jOc3H";Ke(".range-module_container__ajA6j {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var(--product-radius-2);\n}\n\n.range-module_container__ajA6j > div {\n width: 70%;\n}\n\n.range-module_container__ajA6j > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__jdaY9 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__wO6mF {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n accent-color: var(--product-light-blue-80);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__wO6mF::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_slider__wO6mF::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__F4sLq {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__5XVJI {\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__99Nu5 {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__jOc3H {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n");var ZA=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(YA,C({},s,{field:C({},n)}))}})},XA=function(e,t,n){return(t-e)/n},YA=function(e){var n=e.id,o=e.min,r=void 0===o?0:o,i=e.max,a=void 0===i?1e3:i,s=e.step,l=void 0===s?100:s,u=e.name,c=e.label,d=e.helper,p=e.error,f=e.field,m=f.value,h=(m-r)/(a-r)*100;return t.createElement(Lp,{id:n,label:c,error:null==p?void 0:p.message,helper:null==d?void 0:d.message},t.createElement("div",{className:UA},t.createElement("div",{className:HA},t.createElement("div",{className:qA},Array.from({length:XA(r,a,l)}).map((function(e,n){return t.createElement("div",{key:n,className:KA,style:{left:"".concat(n/XA(r,a,l)*100,"%")}})}))),t.createElement("div",{className:WA,style:{width:"calc(".concat(h||0,"%)")}}),t.createElement("input",C({id:"".concat(u,"-range"),className:_A,type:"range",min:r,max:a,step:l},f))),t.createElement(vt,{className:GA,variant:"content-title-semi-bold"},"£",m)))},JA="select-module_container__U4BrV",$A="select-module_input__3CwCK",eb="select-module_icon__jZoEd",tb="select-module_input--error__sOEBq",nb="select-module_input--disabled__nCJZ8",ob="select-module_input--missing__CjrkZ",rb="select-module_input--has-value__gGlN7",ib="select-module_input--placeholder-visible__xUxNC",ab="select-module_select-label__U0xnf",sb="select-module_select-label--with-value__CJmTr",lb="select-module_error-message__vVcNa",ub="select-module_helper-message__lU-8Q";Ke(".select-module_container__U4BrV {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__3CwCK {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n padding-left: 1rem;\n padding-right: 3.88rem;\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__3CwCK:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__jZoEd {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__3CwCK:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__3CwCK:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__sOEBq {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__nCJZ8 {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_input--missing__CjrkZ {\n border: var(--product-border-width-1) solid var(--product-yellow);\n}\n\n.select-module_input--missing__CjrkZ:focus,\n.select-module_input--missing__CjrkZ:hover {\n border: var(--product-border-width-1) solid var(--product-yellow);\n}\n\n.select-module_input--has-value__gGlN7 {\n padding-top: 1.88rem;\n padding-bottom: 0.63rem;\n}\n\n.select-module_input--placeholder-visible__xUxNC {\n color: #0000;\n}\n\n.select-module_select-label__U0xnf {\n position: absolute;\n color: var(--product-greyscale-60);\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n padding-left: 1rem;\n padding-right: 3.88rem;\n pointer-events: none;\n}\n\n.select-module_select-label--with-value__CJmTr {\n color: var(--product-greyscale-40);\n}\n\n.select-module_error-message__vVcNa {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__lU-8Q {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n@media screen and (min-width: 768px) {\n .select-module_input__3CwCK {\n padding-top: 1.5rem;\n padding-left: 1.5rem;\n padding-bottom: 1.5rem;\n padding-right: 4.75rem;\n }\n\n .select-module_select-label__U0xnf {\n padding-top: 1.5rem;\n padding-left: 1.5rem;\n padding-bottom: 1.5rem;\n padding-right: 4.75rem;\n }\n\n .select-module_input--has-value__gGlN7 {\n padding-top: 2.25rem;\n padding-bottom: 0.75rem;\n }\n}\n");var cb=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(pb,C({},s,{field:C({},n)}))}})},db={value:{fontSize:"1rem",top:"-10px",fontWeight:"600"},noValue:{fontSize:"1.25rem",top:0}},pb=function(e){var n=e.id,o=e.error,r=e.helper,i=e.label,a=e.items,s=e.placeholder,l=e.disabled,u=e.field,c=e.missing,d="placeholder"===u.value;return t.createElement("div",{className:JA},t.createElement(vt,{as:bp.p,initial:{fontSize:"1.25rem"},variants:db,animate:d?"noValue":"value",variant:"form-input-normal",className:qe("select-label-".concat(n),ab,!d&&sb),id:"".concat(n,"-label")},i),t.createElement("svg",{className:eb,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),t.createElement("select",C({className:qe($A,(null==o?void 0:o.message)&&tb,l&&nb,c&&ob,d&&ib,!d&&rb),"aria-labelledby":"select-label-".concat(n)},u),s&&t.createElement("option",{value:"placeholder"},s),a&&a.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.title)}))),(null==r?void 0:r.message)&&t.createElement(vt,{className:ub,as:"span",variant:"form-helper"},r.message),(null==o?void 0:o.message)&&t.createElement(vt,{className:lb,as:"p",variant:"form-helper"},o.message))},fb="skeleton-module_skeleton__ws0BG";Ke("@keyframes skeleton-module_place-holder-shimmer__NCfI5 {\n from {\n background-position: -1000px 0;\n }\n\n to {\n background-position: 1000px 0;\n }\n}\n\n.skeleton-module_skeleton__ws0BG {\n display: block;\n animation-duration: 2s;\n animation-fill-mode: backwards;\n animation-iteration-count: infinite;\n animation-name: skeleton-module_place-holder-shimmer__NCfI5;\n animation-timing-function: linear;\n background-color: var(--greyscale-0);\n background-image: linear-gradient(\n to right,\n var(--greyscale-0) 10%,\n rgba(172, 197, 213, 0.5) 40%,\n var(--greyscale-0) 60%\n );\n background-repeat: no-repeat;\n background-size: 1000px 100%;\n}\n");var mb=function(e){var n=e.width,o=void 0===n?"100%":n,r=e.height,i=void 0===r?"50px":r,a=e.rounded;return t.createElement("div",{className:fb,style:{width:o,height:i,borderRadius:a?"9999px":"0"}})},hb="table-module_table__OGgJX";Ke('.table-module_table__OGgJX {\n border: 1px solid;\n padding: 1rem;\n margin-bottom: 2rem;\n width: 100%;\n text-align: left;\n}\n\n.table-module_table__OGgJX td {\n padding: 1rem;\n}\n\n.table-module_table__OGgJX td:first-child {\n min-width: 125px;\n}\n\n.table-module_table__OGgJX th {\n padding: 1rem;\n}\n\n.table-module_table__OGgJX thead {\n position: relative;\n}\n\n.table-module_table__OGgJX thead::after {\n position: absolute;\n content: "";\n width: 100%;\n height: 1px;\n background: var(--greyscale-100);\n}\n\n.table-module_table__OGgJX tbody > tr:last-child {\n border-bottom: none;\n margin-bottom: 0;\n}\n\n@media (min-width: 768px) {\n .table-module_table__OGgJX tr {\n padding: 2rem;\n }\n}\n\n@media (min-width: 1280px) {\n .table-module_table__OGgJX {\n padding: 1rem;\n margin-bottom: 3rem;\n }\n}\n');var gb=function(e){var n=e.children;return t.createElement("table",{className:hb},n)},vb=function(e){var n=e.children;return t.createElement("th",null,n)},yb=function(e){var n=e.children;return t.createElement("thead",null,n)},Ab=function(e){var n=e.children;return t.createElement("tbody",null,n)},bb=function(e){var n=e.children;return t.createElement("tr",null,n)},wb=function(e){var n=e.children;return t.createElement("td",null,n)},xb=function(e){var n=e.children;return t.createElement("tfoot",null,n)},Eb={Root:gb,Head:vb,Header:yb,Body:Ab,Row:bb,Data:wb,Footer:xb},Sb="Tabs",[kb,Cb]=O(Sb,[oA]),Pb=oA(),[Ib,Ob]=kb(Sb),Db=e.forwardRef(((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=de(s),[d,p]=Q({prop:o,onChange:r,defaultProp:i});return y(Ib,{scope:n,baseId:G(),value:d,onValueChange:p,orientation:a,dir:c,activationMode:l,children:y(U.div,{dir:c,"data-orientation":a,...u,ref:t})})}));Db.displayName=Sb;var Tb="TabsList",Nb=e.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,i=Ob(Tb,n),a=Pb(n);return y(pA,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:o,children:y(U.div,{role:"tablist","aria-orientation":i.orientation,...r,ref:t})})}));Nb.displayName=Tb;var Bb="TabsTrigger",Rb=e.forwardRef(((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...i}=e,a=Ob(Bb,n),s=Pb(n),l=Vb(a.baseId,o),u=Lb(a.baseId,o),c=o===a.value;return y(fA,{asChild:!0,...s,focusable:!r,active:c,children:y(U.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...i,ref:t,onMouseDown:j(e.onMouseDown,(e=>{r||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(o)})),onKeyDown:j(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(o)})),onFocus:j(e.onFocus,(()=>{const e="manual"!==a.activationMode;c||r||!e||a.onValueChange(o)}))})})}));Rb.displayName=Bb;var Mb="TabsContent",Fb=e.forwardRef(((t,n)=>{const{__scopeTabs:o,value:r,forceMount:i,children:a,...s}=t,l=Ob(Mb,o),u=Vb(l.baseId,r),c=Lb(l.baseId,r),d=r===l.value,p=e.useRef(d);return e.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),y(_,{present:i||d,children:({present:e})=>y(U.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":u,hidden:!e,id:c,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:p.current?"0s":void 0},children:e&&a})})}));function Vb(e,t){return`${e}-trigger-${t}`}function Lb(e,t){return`${e}-content-${t}`}Fb.displayName=Mb;var jb=Db,zb=Nb,Qb=Rb,Ub=Fb,Hb={Root:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(jb,C({},o),n)},List:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(zb,C({},o)," ",n," ")},Trigger:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(Qb,C({asChild:!0},o),n)},Content:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(Ub,C({},o),n)}},_b={tag:"tag-module_tag__04JA1",primary:"tag-module_primary__0LcgD",secondary:"tag-module_secondary__nNa-v",tertiary:"tag-module_tertiary__i580l",positive:"tag-module_positive__A6gYr",warning:"tag-module_warning__n-gPV",danger:"tag-module_danger__zY8uP",night:"tag-module_night__TNfyq","with-icon":"tag-module_with-icon__ByDLB","circular-icon":"tag-module_circular-icon__05IvA"};Ke(".tag-module_tag__04JA1 {\n display: flex;\n place-items: center;\n gap: 0.25rem;\n padding: 0.625rem 0.75rem;\n border-radius: 9999px;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n/* Variants */\n\n.tag-module_primary__0LcgD {\n background: var(--product-info);\n color: var(--product-greyscale-0);\n}\n\n.tag-module_secondary__nNa-v {\n background: var(--primary-trust-blue-20);\n color: var(--primary-trust-blue-100);\n}\n\n.tag-module_tertiary__i580l {\n background: var(--product-greyscale-20);\n color: var(--product-greyscale-80);\n}\n\n.tag-module_positive__A6gYr {\n background: var(--product-success);\n color: var(--product-greyscale-0);\n}\n\n.tag-module_warning__n-gPV {\n background: var(--product-yellow-20);\n color: var(--product-greyscale-100);\n}\n\n.tag-module_danger__zY8uP {\n background: var(--product-error);\n color: var(--product-greyscale-0);\n}\n\n.tag-module_night__TNfyq {\n background: transparent;\n border: 1px solid var(--product-greyscale-0);\n color: var(--product-greyscale-0);\n}\n\n/* END Variants */\n\n/* Modifiers */\n\n.tag-module_with-icon__ByDLB {\n padding: 0.625rem 0.75rem 0.625rem 0.5rem;\n}\n\n.tag-module_circular-icon__05IvA {\n padding: 0.625rem 0.75rem 0.625rem 0.25rem;\n}\n");var qb={Root:function(e){var n=e.variant,o=void 0===n?"primary":n,r=e.children,i=e.className,a=e.icon,s=e.circularIcon,l=P(e,["variant","children","className","icon","circularIcon"]);return t.createElement("div",C({className:qe(i,_b.tag,_b[o],a&&_b["with-icon"],s&&_b["circular-icon"])},l),r)},Icon:ht,Content:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(vt,C({variant:"tag"},o),n)}},Kb={container:"textField-module_container__Txn58",label:"textField-module_label__VwDxG","label--with-value":"textField-module_label--with-value__L233-",input:"textField-module_input__UUjTT","input--with-value":"textField-module_input--with-value__tIa-4","input--prefix":"textField-module_input--prefix__J9hsm","input--missing":"textField-module_input--missing__WLG2z",prefix:"textField-module_prefix__osD-S",inputDescription:"textField-module_inputDescription__DK-Sy","container--error":"textField-module_container--error__8zkIF",error:"textField-module_error__cJR5Z",helper:"textField-module_helper__GnkHD",rightContent:"textField-module_rightContent__Lqpnh",leftContent:"textField-module_leftContent__jjHHa","input--focus":"textField-module_input--focus__BaFyH","input--hover":"textField-module_input--hover__YAj7R"};Ke(".textField-module_container__Txn58 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__VwDxG {\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n position: absolute;\n z-index: 3;\n color: var(--product-greyscale-40);\n pointer-events: none;\n left: 1.1rem;\n}\n\n.textField-module_label--with-value__L233- {\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-mobile-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.textField-module_input__UUjTT {\n --BORDER_TOTAL: calc(var(--product-border-width-1) * 2);\n all: unset;\n box-sizing: border-box;\n background: var(--greyscale-0);\n display: block;\n border: var(--product-border-width-1) solid transparent;\n padding: var(--product-spacing-5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n z-index: 1;\n height: 64px;\n}\n\n.textField-module_input--with-value__tIa-4 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 2rem;\n}\n\n.textField-module_input--prefix__J9hsm {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.7rem;\n padding-left: 2rem;\n}\n\n.textField-module_input--missing__WLG2z {\n border: var(--product-border-width-1) solid var(--product-yellow);\n}\n\n.textField-module_prefix__osD-S {\n position: absolute;\n left: var(--product-spacing-5);\n top: 63%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__DK-Sy {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-bottom: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__8zkIF > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__8zkIF > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__cJR5Z {\n color: var(--product-error);\n}\n\n.textField-module_helper__GnkHD {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__Lqpnh {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__jjHHa {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_input__UUjTT:focus {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__BaFyH {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input__UUjTT:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__YAj7R {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__UUjTT:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__UUjTT:disabled:hover {\n outline: none;\n}\n\n@media (min-width: 768px) {\n .textField-module_input__UUjTT {\n padding: var(--product-spacing-6);\n font-size: var(--product-font-form-input-desktop-size);\n height: 72px;\n }\n\n .textField-module_input--with-value__tIa-4 {\n padding: var(--product-spacing-3) var(--product-spacing-6);\n padding-top: 2rem;\n }\n\n .textField-module_input--prefix__J9hsm {\n\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__osD-S {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 64%;\n }\n\n .textField-module_label__VwDxG {\n left: 25px;\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .textField-module_label--with-value__L233- {\n font-size: var(--product-font-form-label-desktop-size);\n }\n}\n");var Wb=function(e){var n=E(),o=n.control,r=n.formState.errors,i=void 0===r?{}:r,a=e.name,s=C(C({},e),{error:i&&i[a]});return t.createElement(S,{name:a,control:o,render:function(e){var n=e.field;return t.createElement(Gb,C({},s,{field:C({},n)}))}})},Gb=function(e){var o=e.id,r=e.label,i=e.helper,a=e.error,s=e.type,l=e.prefix,u=e.suffix,c=e.disabled,d=e.className,p=e.rightContent,f=e.leftContent,m=e.field,h=m.value,g=m.onBlur,v=P(m,["value","onBlur"]),y=e.missing,A=pt().width,b=n(!1),w=b[0],x=b[1],E=""!==h||w,S=A>768,k=i||a,I={focused:{top:S?"20px":"23px",fontSize:S?"1rem":".875rem"},notFocused:{transform:"translateY(-50%)",top:"50%",fontSize:S?"1.25rem":"1.125rem"}};return t.createElement("div",null,t.createElement("div",{className:qe(Kb.container,a&&Kb["container--error"])},t.createElement(bp.label,{className:qe(Kb.label,E&&Kb["label--with-value"]),initial:"notFocused",variants:I,htmlFor:"input-".concat(o),animate:E?"focused":"notFocused"},r," ",u&&t.createElement("span",null,u)),t.createElement("input",C({id:"input-".concat(o),className:qe(d,Kb["input--".concat(d)],Kb.input,l&&Kb["input--prefix"],E&&Kb["input--with-value"],y&&Kb["input--missing"]),type:s,"aria-describedby":"error-".concat(o),disabled:c,onFocus:function(){return x(!0)},onBlur:function(){g(),x(!1)},value:h},v)),l&&E&&t.createElement("span",{className:Kb.prefix},l),t.createElement("div",null,p&&t.createElement("div",{className:Kb.rightContent},p),f&&t.createElement("div",{className:Kb.leftContent},f))),k&&t.createElement("div",{className:Kb.inputDescription},i&&t.createElement("span",{id:"feedback-".concat(o),className:Kb.helper},i.message),a&&t.createElement("span",{id:"error-".concat(o),className:Kb.error},a.message)))},Zb="Toast-module_title__-H6R2",Xb="Toast-module_icon-position__t33rU";Ke(".Toast-module_title__-H6R2 {\n font-weight: 600;\n margin-bottom: 0.375rem;\n}\n\n.Toast-module_icon-position__t33rU {\n position: absolute;\n top: 1.25rem;\n left: 1rem;\n}\n\n.Toast-module_icon-position__t33rU svg {\n fill: var(--product-greyscale-0);\n}\n");var Yb={Root:function(e){var n=e.children;return t.createElement("div",null,n)},Title:function(e){var n=e.className,o=e.children;return t.createElement(vt,{className:qe(n,Zb),variant:"form-helper"},o)},Description:function(e){var n=e.children;return t.createElement(vt,{variant:"form-helper"},n)},Icon:function(e){return t.createElement("div",{className:Xb},t.createElement(ht,C({},e)))}},Jb=e.forwardRef(((e,t)=>y(U.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));Jb.displayName="VisuallyHidden";var $b=Jb,[ew,tw]=O("Tooltip",[nv]),nw=nv(),ow="TooltipProvider",rw=700,iw="tooltip.open",[aw,sw]=ew(ow),lw=t=>{const{__scopeTooltip:n,delayDuration:o=rw,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=t,[s,l]=e.useState(!0),u=e.useRef(!1),c=e.useRef(0);return e.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),y(aw,{scope:n,isOpenDelayed:s,delayDuration:o,onOpen:e.useCallback((()=>{window.clearTimeout(c.current),l(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>l(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:e.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i,children:a})};lw.displayName=ow;var uw="Tooltip",[cw,dw]=ew(uw),pw=t=>{const{__scopeTooltip:n,children:o,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=t,u=sw(uw,t.__scopeTooltip),c=nw(n),[d,p]=e.useState(null),f=G(),m=e.useRef(0),h=s??u.disableHoverableContent,g=l??u.delayDuration,v=e.useRef(!1),[A=!1,b]=Q({prop:r,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(iw))):u.onClose(),a?.(e)}}),w=e.useMemo((()=>A?v.current?"delayed-open":"instant-open":"closed"),[A]),x=e.useCallback((()=>{window.clearTimeout(m.current),v.current=!1,b(!0)}),[b]),E=e.useCallback((()=>{window.clearTimeout(m.current),b(!1)}),[b]),S=e.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{v.current=!0,b(!0)}),g)}),[g,b]);return e.useEffect((()=>()=>window.clearTimeout(m.current)),[]),y(yv,{...c,children:y(cw,{scope:n,contentId:f,open:A,stateAttribute:w,trigger:d,onTriggerChange:p,onTriggerEnter:e.useCallback((()=>{u.isOpenDelayed?S():x()}),[u.isOpenDelayed,S,x]),onTriggerLeave:e.useCallback((()=>{h?E():window.clearTimeout(m.current)}),[E,h]),onOpen:x,onClose:E,disableHoverableContent:h,children:o})})};pw.displayName=uw;var fw="TooltipTrigger",mw=e.forwardRef(((t,n)=>{const{__scopeTooltip:o,...r}=t,i=dw(fw,o),a=sw(fw,o),s=nw(o),l=N(n,e.useRef(null),i.onTriggerChange),u=e.useRef(!1),c=e.useRef(!1),d=e.useCallback((()=>u.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),y(Av,{asChild:!0,...s,children:y(U.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:j(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))})),onPointerLeave:j(t.onPointerLeave,(()=>{i.onTriggerLeave(),c.current=!1})),onPointerDown:j(t.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:j(t.onFocus,(()=>{u.current||i.onOpen()})),onBlur:j(t.onBlur,i.onClose),onClick:j(t.onClick,i.onClose)})})}));mw.displayName=fw;var hw="TooltipPortal",[gw,vw]=ew(hw,{forceMount:void 0}),yw=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=dw(hw,t);return y(gw,{scope:t,forceMount:n,children:y(_,{present:n||i.open,children:y(xv,{asChild:!0,container:r,children:o})})})};yw.displayName=hw;var Aw="TooltipContent",bw=e.forwardRef(((e,t)=>{const n=vw(Aw,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,a=dw(Aw,e.__scopeTooltip);return y(_,{present:o||a.open,children:a.disableHoverableContent?y(Sw,{side:r,...i,ref:t}):y(ww,{side:r,...i,ref:t})})})),ww=e.forwardRef(((t,n)=>{const o=dw(Aw,t.__scopeTooltip),r=sw(Aw,t.__scopeTooltip),i=e.useRef(null),a=N(n,i),[s,l]=e.useState(null),{trigger:u,onClose:c}=o,d=i.current,{onPointerInTransitChange:p}=r,f=e.useCallback((()=>{l(null),p(!1)}),[p]),m=e.useCallback(((e,t)=>{const n=e.currentTarget,o={x:e.clientX,y:e.clientY},r=function(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return o}(o,function(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}(o,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(o.y-n.y)>=(e.y-n.y)*(o.x-n.x)))break;t.pop()}t.push(o)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const o=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x)))break;n.pop()}n.push(o)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...r,...function(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}(t.getBoundingClientRect())]);l(i),p(!0)}),[p]);return e.useEffect((()=>()=>f()),[f]),e.useEffect((()=>{if(u&&d){const e=e=>m(e,d),t=e=>m(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[u,d,m,f]),e.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},o=u?.contains(t)||d?.contains(t),r=!function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>o!=u>o&&n<(l-a)*(o-s)/(u-s)+a&&(r=!r)}return r}(n,s);o?f():r&&(f(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,d,s,c,f]),y(Sw,{...t,ref:a})})),[xw,Ew]=ew(uw,{isInside:!1}),Sw=e.forwardRef(((t,n)=>{const{__scopeTooltip:o,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,u=dw(Aw,o),c=nw(o),{onClose:d}=u;return e.useEffect((()=>(document.addEventListener(iw,d),()=>document.removeEventListener(iw,d))),[d]),e.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),y(fh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:b(bv,{"data-state":u.stateAttribute,...c,...l,ref:n,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y(M,{children:r}),y(xw,{scope:o,isInside:!0,children:y($b,{id:u.contentId,role:"tooltip",children:i||r})})]})})}));bw.displayName=Aw;var kw="TooltipArrow",Cw=e.forwardRef(((e,t)=>{const{__scopeTooltip:n,...o}=e,r=nw(n);return Ew(kw,n).isInside?null:y(wv,{...r,...o,ref:t})}));Cw.displayName=kw;var Pw=lw,Iw=pw,Ow=mw,Dw=yw,Tw=bw,Nw=Cw,Bw="Tooltip-module_control__vE3qi",Rw="Tooltip-module_tooltip__UA7H9",Mw="Tooltip-module_beak__LxgAN";Ke(".Tooltip-module_control__vE3qi {\n all: unset;\n display: flex;\n background: black;\n color: white;\n border-radius: 1000px;\n height: -moz-fit-content;\n height: fit-content;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.Tooltip-module_tooltip__UA7H9 {\n padding: 1rem;\n padding-right: 0.5rem;\n background: white;\n max-width: 400px;\n border-radius: 1rem;\n}\n\n.Tooltip-module_beak__LxgAN {\n fill: white;\n}\n");var Fw={Root:function(e){var n=e.children,o=P(e,["children"]);return t.createElement(Pw,null,t.createElement(Iw,C({},o),n))},Trigger:function(e){var n=e.className,o=e.children,r=P(e,["className","children"]);return t.createElement(Ow,C({className:qe(n,Bw)},r),o)},Content:function(e){var n=e.className,o=e.children,r=P(e,["className","children"]);return t.createElement(Dw,null,t.createElement(Tw,C({className:qe(n,Rw)},r),o,t.createElement(Nw,{className:Mw})))}},Vw={"visual--paper":"wrapper-module_visual--paper__SOeqI","visual--bento":"wrapper-module_visual--bento__RzAYJ","visual--bento-icon":"wrapper-module_visual--bento-icon__Bj-F3","orientation--center":"wrapper-module_orientation--center__1tqbT","type--trust-pilot":"wrapper-module_type--trust-pilot__UwSbT"};Ke(".wrapper-module_visual--paper__SOeqI {\n display: block;\n background: var(--greyscale-0);\n padding: 1.5rem;\n border-radius: 0.25rem;\n height: 100%;\n transition: all 0.5s ease-in-out;\n}\n\n.wrapper-module_visual--paper__SOeqI:hover {\n box-shadow:\n 0px 204px 82px rgba(16, 24, 32, 0.05),\n 0px 115px 69px rgba(16, 24, 32, 0.18),\n 0px 51px 51px rgba(16, 24, 32, 0.31),\n 0px 13px 28px rgba(16, 24, 32, 0.36);\n}\n\n.wrapper-module_visual--bento__RzAYJ {\n color: var(--primary-deep-black);\n display: flex;\n align-items: center;\n gap: 1rem;\n width: 100%;\n background: var(--greyscale-0);\n padding: 1rem;\n border-radius: 0.5rem;\n}\n\n.wrapper-module_visual--bento-icon__Bj-F3 {\n color: var(--primary-deep-black);\n display: flex;\n flex-direction: column;\n gap: 1rem;\n background: var(--greyscale-0);\n padding: 1rem;\n border-radius: 0.5rem;\n width: 100%;\n}\n\n.wrapper-module_orientation--center__1tqbT {\n display: flex;\n flex-direction: column;\n align-items: center;\n align-items: center;\n}\n\n@media (min-width: 768px) {\n .wrapper-module_visual--bento__RzAYJ {\n flex-direction: column;\n align-items: flex-start;\n }\n\n .wrapper-module_visual--paper__SOeqI {\n padding: 2rem;\n }\n\n .wrapper-module_type--trust-pilot__UwSbT {\n max-height: 8.75rem;\n }\n}\n\n@media (min-width: 1280px) {\n .wrapper-module_visual--paper__SOeqI {\n padding: 2.5rem;\n }\n}\n");var Lw=function(e){var n=e.as,o=e.className,r=e.variants,i=e.children,a=C({visual:"paper"},r),s=n||"div";return t.createElement(s,{className:qe(o,Vw["visual--".concat(a.visual)],a.orientation&&Vw["orientation--".concat(a.orientation)],a.type&&Vw["type--".concat(a.type)])},i)};export{St as Accordion,Ct as Button,Rm as Buttons,It as Callout,Ze as Card,Dt as Cards,Wt as Checkbox,Xt as Columns,Op as ComboBox,jp as DatePicker,Up as Disclosure,Dp as Field,_p as Form,ht as Icon,Kp as Link,Gp as Loading,Mm as Modal,Um as NumberField,eh as PhoneField,ah as PinInput,Wy as Popover,Zy as ProgressIndicator,QA as RadioGroup,ZA as Range,cb as Select,mb as Skeleton,Eb as Table,Ab as TableBody,wb as TableData,xb as TableFooter,vb as TableHead,yb as TableHeader,gb as TableRoot,bb as TableRow,Hb as Tabs,qb as Tag,Wb as TextField,Yb as Toast,Fw as Tooltip,vt as Typography,Lw as Wrapper,Bm as useModal};