@kroo-web/design-system 1.23.2 → 1.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,5 +38,5 @@ export declare const NativeRadioGroup: {
|
|
|
38
38
|
supportingText?: string;
|
|
39
39
|
variant?: "cards" | "circle";
|
|
40
40
|
} & RadixRadioGroup.RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
Root: ({ children, className, disabled, error, label,
|
|
41
|
+
Root: ({ children, className, disabled, error, label, onChange, variant, visual, ...props }: TNativeRadioGroupRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
42
|
};
|
package/dist/index.js
CHANGED
|
@@ -24403,11 +24403,10 @@ const $9 = "_legend_bd7v1_1", _9 = "_cards_bd7v1_5", eO = "_circle_bd7v1_106", t
|
|
|
24403
24403
|
disabled: n,
|
|
24404
24404
|
error: o,
|
|
24405
24405
|
label: r,
|
|
24406
|
-
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
|
|
24410
|
-
...c
|
|
24406
|
+
onChange: i,
|
|
24407
|
+
variant: s = "cards",
|
|
24408
|
+
visual: a = "horizontal",
|
|
24409
|
+
...l
|
|
24411
24410
|
}) => /* @__PURE__ */ oe("fieldset", { className: tt.fieldset, children: [
|
|
24412
24411
|
/* @__PURE__ */ E(
|
|
24413
24412
|
we,
|
|
@@ -24423,15 +24422,15 @@ const $9 = "_legend_bd7v1_1", _9 = "_cards_bd7v1_5", eO = "_circle_bd7v1_106", t
|
|
|
24423
24422
|
{
|
|
24424
24423
|
className: le(
|
|
24425
24424
|
t,
|
|
24426
|
-
|
|
24427
|
-
|
|
24425
|
+
s && tt[s],
|
|
24426
|
+
a && tt[`radio-root--${a}`],
|
|
24428
24427
|
tt["radio-root"],
|
|
24429
24428
|
o && tt["radio-root--error"],
|
|
24430
24429
|
n && tt["radio-root--disabled"]
|
|
24431
24430
|
),
|
|
24432
24431
|
disabled: n,
|
|
24433
|
-
onValueChange:
|
|
24434
|
-
...
|
|
24432
|
+
onValueChange: i,
|
|
24433
|
+
...l,
|
|
24435
24434
|
children: e
|
|
24436
24435
|
}
|
|
24437
24436
|
),
|
package/dist/index.umd.cjs
CHANGED
|
@@ -127,4 +127,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
127
127
|
`)},y0=function(){var e=parseInt(document.body.getAttribute(So)||"0",10);return isFinite(e)?e:0},B6=function(){P.useEffect(function(){return document.body.setAttribute(So,(y0()+1).toString()),function(){var e=y0()-1;e<=0?document.body.removeAttribute(So):document.body.setAttribute(So,e.toString())}},[])},O6=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;B6();var i=P.useMemo(function(){return D6(r)},[r]);return P.createElement(k6,{styles:M6(i,!t,r,n?"":"!important")})},Cc=!1;if(typeof window<"u")try{var ws=Object.defineProperty({},"passive",{get:function(){return Cc=!0,!0}});window.addEventListener("test",ws,ws),window.removeEventListener("test",ws,ws)}catch{Cc=!1}var Po=Cc?{passive:!1}:!1,N6=function(e){return e.tagName==="TEXTAREA"},b0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!N6(e)&&n[t]==="visible")},F6=function(e){return b0(e,"overflowY")},L6=function(e){return b0(e,"overflowX")},A0=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=C0(e,o);if(r){var i=w0(e,o),s=i[1],a=i[2];if(s>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},V6=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},K6=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},C0=function(e,t){return e==="v"?F6(t):L6(t)},w0=function(e,t){return e==="v"?V6(t):K6(t)},H6=function(e,t){return e==="h"&&t==="rtl"?-1:1},R6=function(e,t,n,o,r){var i=H6(e,window.getComputedStyle(t).direction),s=i*o,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,f=0;do{if(!a)break;var p=w0(e,a),g=p[0],v=p[1],y=p[2],b=v-y-i*g;(g||b)&&C0(e,a)&&(d+=b,f+=g);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},Es=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E0=function(e){return[e.deltaX,e.deltaY]},x0=function(e){return e&&"current"in e?e.current:e},U6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},W6=function(e){return`
|
|
128
128
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
129
129
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
130
|
-
`)},j6=0,To=[];function z6(e){var t=P.useRef([]),n=P.useRef([0,0]),o=P.useRef(),r=P.useState(j6++)[0],i=P.useState(g0)[0],s=P.useRef(e);P.useEffect(function(){s.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=tE([e.lockRef.current],(e.shards||[]).map(x0),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=P.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var b=Es(v),m=n.current,C="deltaX"in v?v.deltaX:m[0]-b[0],E="deltaY"in v?v.deltaY:m[1]-b[1],x,I=v.target,O=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in v&&O==="h"&&I.type==="range")return!1;var k=window.getSelection(),F=k&&k.anchorNode,B=F?F===I||F.contains(I):!1;if(B)return!1;var U=A0(O,I);if(!U)return!0;if(U?x=O:(x=O==="v"?"h":"v",U=A0(O,I)),!U)return!1;if(!o.current&&"changedTouches"in v&&(C||E)&&(o.current=x),!x)return!0;var j=o.current||x;return R6(j,y,v,j==="h"?C:E)},[]),l=P.useCallback(function(v){var y=v;if(!(!To.length||To[To.length-1]!==i)){var b="deltaY"in y?E0(y):Es(y),m=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&U6(x.delta,b)})[0];if(m&&m.should){y.cancelable&&y.preventDefault();return}if(!m){var C=(s.current.shards||[]).map(x0).filter(Boolean).filter(function(x){return x.contains(y.target)}),E=C.length>0?a(y,C[0]):!s.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),c=P.useCallback(function(v,y,b,m){var C={name:v,delta:y,target:b,should:m,shadowParent:Q6(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),u=P.useCallback(function(v){n.current=Es(v),o.current=void 0},[]),d=P.useCallback(function(v){c(v.type,E0(v),v.target,a(v,e.lockRef.current))},[]),f=P.useCallback(function(v){c(v.type,Es(v),v.target,a(v,e.lockRef.current))},[]);P.useEffect(function(){return To.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Po),document.addEventListener("touchmove",l,Po),document.addEventListener("touchstart",u,Po),function(){To=To.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,Po),document.removeEventListener("touchmove",l,Po),document.removeEventListener("touchstart",u,Po)}},[]);var p=e.removeScrollBar,g=e.inert;return P.createElement(P.Fragment,null,g?P.createElement(i,{styles:W6(r)}):null,p?P.createElement(O6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Q6(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const q6=A6(m0,z6);var S0=P.forwardRef(function(e,t){return P.createElement(Cs,et({},e,{ref:t,sideCar:q6}))});S0.classNames=Cs.classNames;var xs="Popover",[P0]=gt(xs,[ms]),mr=ms(),[G6,En]=P0(xs),T0=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:s=!1}=e,a=mr(t),l=P.useRef(null),[c,u]=P.useState(!1),[d,f]=kt({prop:o,defaultProp:r??!1,onChange:i,caller:xs});return w.jsx(c0,{...a,children:w.jsx(G6,{scope:t,contentId:Yn(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:c,onCustomAnchorAdd:P.useCallback(()=>u(!0),[]),onCustomAnchorRemove:P.useCallback(()=>u(!1),[]),modal:s,children:n})})};T0.displayName=xs;var I0="PopoverAnchor",Y6=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=En(I0,n),i=mr(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=r;return P.useEffect(()=>(s(),()=>a()),[s,a]),w.jsx(vc,{...i,...o,ref:t})});Y6.displayName=I0;var D0="PopoverTrigger",k0=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=En(D0,n),i=mr(n),s=Re(t,r.triggerRef),a=w.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":L0(r.open),...o,ref:s,onClick:ge(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:w.jsx(vc,{asChild:!0,...i,children:a})});k0.displayName=D0;var wc="PopoverPortal",[Z6,X6]=P0(wc,{forceMount:void 0}),M0=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,i=En(wc,t);return w.jsx(Z6,{scope:t,forceMount:n,children:w.jsx(jt,{present:n||i.open,children:w.jsx(mc,{asChild:!0,container:r,children:o})})})};M0.displayName=wc;var Io="PopoverContent",B0=P.forwardRef((e,t)=>{const n=X6(Io,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,i=En(Io,e.__scopePopover);return w.jsx(jt,{present:o||i.open,children:i.modal?w.jsx(_6,{...r,ref:t}):w.jsx($6,{...r,ref:t})})});B0.displayName=Io;var J6=wr("PopoverContent.RemoveScroll"),_6=P.forwardRef((e,t)=>{const n=En(Io,e.__scopePopover),o=P.useRef(null),r=Re(t,o),i=P.useRef(!1);return P.useEffect(()=>{const s=o.current;if(s)return d6(s)},[]),w.jsx(S0,{as:J6,allowPinchZoom:!0,children:w.jsx(O0,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),$6=P.forwardRef((e,t)=>{const n=En(Io,e.__scopePopover),o=P.useRef(!1),r=P.useRef(!1);return w.jsx(O0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),O0=P.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=En(Io,n),p=mr(n);return UM(),w.jsx(TA,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i,children:w.jsx(Ju,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:w.jsx(d0,{"data-state":L0(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.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)"}})})})}),N0="PopoverClose",e2=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=En(N0,n);return w.jsx(ye.button,{type:"button",...o,ref:t,onClick:ge(e.onClick,()=>r.onOpenChange(!1))})});e2.displayName=N0;var t2="PopoverArrow",F0=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=mr(n);return w.jsx(f0,{...r,...o,ref:t})});F0.displayName=t2;function L0(e){return e?"open":"closed"}var n2=T0,o2=k0,r2=M0,i2=B0,s2=F0;const gr={trigger:"_trigger_5fq2u_1",light:"_light_5fq2u_12",dark:"_dark_5fq2u_16",triggerIcon:"_triggerIcon_5fq2u_25",popoverContent:"_popoverContent_5fq2u_34",popoverClose:"_popoverClose_5fq2u_43",popoverArrow:"_popoverArrow_5fq2u_58"},a2={Content:({children:e,...t})=>w.jsx(r2,{children:w.jsxs(i2,{className:gr.popoverContent,...t,children:[e,w.jsx(s2,{className:gr.popoverArrow})]})}),Root:e=>w.jsx(n2,{...e}),Trigger:({children:e,variant:t="light",...n})=>w.jsxs(o2,{className:ie(gr.trigger,gr[t]),...n,children:[e,w.jsx(Le,{className:gr.triggerIcon,icon:"chevron_left"})]})},yr={container:"_container_1su12_1","container--full-width":"_container--full-width_1su12_4","container--medium":"_container--medium_1su12_8","container--small":"_container--small_1su12_12",progress:"_progress_1su12_16","progress-bar":"_progress-bar_1su12_26",label:"_label_1su12_35"},l2=({current:e=1,label:t,max:n=10,size:o="full-width"})=>w.jsxs("div",{className:ie(yr.container,o&&yr[`container--${o}`]),children:[w.jsx("div",{className:yr.progress,children:w.jsx("div",{className:yr["progress-bar"],style:{width:`${e/n*100}%`}})}),t&&w.jsx(he,{className:yr.label,variant:"tag",children:t}),w.jsxs(he,{className:"sr-only",children:["Step ",e," of ",n]})]});var Ec="rovingFocusGroup.onEntryFocus",u2={bubbles:!1,cancelable:!0},br="RovingFocusGroup",[xc,V0,c2]=Wc(br),[d2,Ss]=gt(br,[c2]),[f2,p2]=d2(br),K0=P.forwardRef((e,t)=>w.jsx(xc.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(xc.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(h2,{...e,ref:t})})}));K0.displayName=br;var h2=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=Re(t,f),g=Sr(i),[v,y]=kt({prop:s,defaultProp:a??null,onChange:l,caller:br}),[b,m]=P.useState(!1),C=jn(c),E=V0(n),x=P.useRef(!1),[I,O]=P.useState(0);return P.useEffect(()=>{const k=f.current;if(k)return k.addEventListener(Ec,C),()=>k.removeEventListener(Ec,C)},[C]),w.jsx(f2,{scope:n,orientation:o,dir:g,loop:r,currentTabStopId:v,onItemFocus:P.useCallback(k=>y(k),[y]),onItemShiftTab:P.useCallback(()=>m(!0),[]),onFocusableItemAdd:P.useCallback(()=>O(k=>k+1),[]),onFocusableItemRemove:P.useCallback(()=>O(k=>k-1),[]),children:w.jsx(ye.div,{tabIndex:b||I===0?-1:0,"data-orientation":o,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{x.current=!0}),onFocus:ge(e.onFocus,k=>{const F=!x.current;if(k.target===k.currentTarget&&F&&!b){const B=new CustomEvent(Ec,u2);if(k.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=E().filter(N=>N.focusable),j=U.find(N=>N.active),H=U.find(N=>N.id===v),M=[j,H,...U].filter(Boolean).map(N=>N.ref.current);U0(M,u)}}x.current=!1}),onBlur:ge(e.onBlur,()=>m(!1))})})}),H0="RovingFocusGroupItem",R0=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,children:s,...a}=e,l=Yn(),c=i||l,u=p2(H0,n),d=u.currentTabStopId===c,f=V0(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:v}=u;return P.useEffect(()=>{if(o)return p(),()=>g()},[o,p,g]),w.jsx(xc.ItemSlot,{scope:n,id:c,focusable:o,active:r,children:w.jsx(ye.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:ge(e.onMouseDown,y=>{o?u.onItemFocus(c):y.preventDefault()}),onFocus:ge(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:ge(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=g2(y,u.orientation,u.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let C=f().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")C.reverse();else if(b==="prev"||b==="next"){b==="prev"&&C.reverse();const E=C.indexOf(y.currentTarget);C=u.loop?y2(C,E+1):C.slice(E+1)}setTimeout(()=>U0(C))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:v!=null}):s})})});R0.displayName=H0;var v2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function m2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function g2(e,t,n){const o=m2(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return v2[o]}function U0(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function y2(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var W0=K0,j0=R0,Sc="Radio",[b2,z0]=gt(Sc),[A2,C2]=b2(Sc),Q0=P.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:r=!1,required:i,disabled:s,value:a="on",onCheck:l,form:c,...u}=e,[d,f]=P.useState(null),p=Re(t,y=>f(y)),g=P.useRef(!1),v=d?c||!!d.closest("form"):!0;return w.jsxs(A2,{scope:n,checked:r,disabled:s,children:[w.jsx(ye.button,{type:"button",role:"radio","aria-checked":r,"data-state":Z0(r),"data-disabled":s?"":void 0,disabled:s,value:a,...u,ref:p,onClick:ge(e.onClick,y=>{r||l==null||l(),v&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),v&&w.jsx(Y0,{control:d,bubbles:!g.current,name:o,value:a,checked:r,required:i,disabled:s,form:c,style:{transform:"translateX(-100%)"}})]})});Q0.displayName=Sc;var q0="RadioIndicator",G0=P.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,i=C2(q0,n);return w.jsx(jt,{present:o||i.checked,children:w.jsx(ye.span,{"data-state":Z0(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})})});G0.displayName=q0;var w2="RadioBubbleInput",Y0=P.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...r},i)=>{const s=P.useRef(null),a=Re(s,i),l=vd(n),c=Us(t);return P.useEffect(()=>{const u=s.current;if(!u)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&p){const g=new Event("click",{bubbles:o});p.call(u,n),u.dispatchEvent(g)}},[l,n,o]),w.jsx(ye.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:a,style:{...r.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Y0.displayName=w2;function Z0(e){return e?"checked":"unchecked"}var E2=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ps="RadioGroup",[x2]=gt(Ps,[Ss,z0]),X0=Ss(),J0=z0(),[S2,P2]=x2(Ps),_0=P.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:i,required:s=!1,disabled:a=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,p=X0(n),g=Sr(c),[v,y]=kt({prop:i,defaultProp:r??null,onChange:d,caller:Ps});return w.jsx(S2,{scope:n,name:o,required:s,disabled:a,value:v,onValueChange:y,children:w.jsx(W0,{asChild:!0,...p,orientation:l,dir:g,loop:u,children:w.jsx(ye.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g,...f,ref:t})})})});_0.displayName=Ps;var $0="RadioGroupItem",eC=P.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,i=P2($0,n),s=i.disabled||o,a=X0(n),l=J0(n),c=P.useRef(null),u=Re(t,c),d=i.value===r.value,f=P.useRef(!1);return P.useEffect(()=>{const p=v=>{E2.includes(v.key)&&(f.current=!0)},g=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",g)}},[]),w.jsx(j0,{asChild:!0,...a,focusable:!s,active:d,children:w.jsx(Q0,{disabled:s,required:i.required,checked:d,...l,...r,name:i.name,ref:u,onCheck:()=>i.onValueChange(r.value),onKeyDown:ge(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:ge(r.onFocus,()=>{var p;f.current&&((p=c.current)==null||p.click())})})})});eC.displayName=$0;var T2="RadioGroupIndicator",tC=P.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=J0(n);return w.jsx(G0,{...r,...o,ref:t})});tC.displayName=T2;var nC=_0,oC=eC,I2=tC;const qe={legend:"_legend_bd7v1_1","radio-root":"_radio-root_bd7v1_5",cards:"_cards_bd7v1_5","radio-root--horizontal":"_radio-root--horizontal_bd7v1_10","radio-root--vertical":"_radio-root--vertical_bd7v1_14","radio-root--error":"_radio-root--error_bd7v1_18","radio-root-label--error":"_radio-root-label--error_bd7v1_23","radio-item":"_radio-item_bd7v1_30","radio-indicator":"_radio-indicator_bd7v1_65","radio-root--disabled":"_radio-root--disabled_bd7v1_78",circle:"_circle_bd7v1_106","radio-circle-container":"_radio-circle-container_bd7v1_115"},D2=({children:e,className:t,disabled:n,label:o,name:r,variant:i="cards",...s})=>{const{control:a,formState:{errors:l={}}}=Fe.useFormContext(),c=l&&l[r];return w.jsx(Fe.Controller,{control:a,name:r,render:({field:{onChange:u,...d}})=>w.jsxs("fieldset",{children:[w.jsx(he,{as:"legend",className:qe.legend,variant:"form-input-normal",children:o}),w.jsx(nC,{className:ie(t,i&&qe[i],qe["radio-root"],c&&qe["radio-root--error"],n&&qe["radio-root--disabled"]),disabled:n,onValueChange:u,...s,...d,"aria-required":void 0,children:e}),c&&w.jsx("p",{className:qe["radio-root-label--error"],children:c==null?void 0:c.message})]})})},Pc=({className:e,...t})=>w.jsx(I2,{className:ie(e,qe["radio-indicator"]),...t}),rC=({children:e,className:t,supportingText:n,variant:o="cards",...r})=>o==="circle"?w.jsxs("div",{className:qe["radio-circle-container"],children:[w.jsx(oC,{className:ie(t,qe["radio-item"]),...r,children:w.jsx(Pc,{})}),w.jsx(he,{variant:"form-input-normal",children:e}),n&&w.jsx(he,{variant:"content-regular",children:n})]}):w.jsxs(oC,{className:ie(t,qe["radio-item"]),...r,children:[w.jsx(he,{variant:"form-input-normal",children:e}),n&&w.jsx(he,{variant:"content-regular",children:n})]}),k2=({children:e,className:t,disabled:n,error:o,label:r,name:i,onChange:s,variant:a="cards",visual:l="horizontal",...c})=>w.jsxs("fieldset",{className:qe.fieldset,children:[w.jsx(he,{as:"label",className:qe.legend,variant:"form-input-normal",children:r}),w.jsx(nC,{className:ie(t,a&&qe[a],l&&qe[`radio-root--${l}`],qe["radio-root"],o&&qe["radio-root--error"],n&&qe["radio-root--disabled"]),disabled:n,onValueChange:s,...c,children:e}),o&&w.jsx("p",{className:qe["radio-root-label--error"],children:o==null?void 0:o.message})]}),M2={Indicator:Pc,Item:rC,Root:D2},B2={Indicator:Pc,Item:rC,Root:k2},qn={container:"_container_r8tyd_1","range-container":"_range-container_r8tyd_20",slider:"_slider_r8tyd_28",notches:"_notches_r8tyd_63",notch:"_notch_r8tyd_63",progress:"_progress_r8tyd_84","value-container":"_value-container_r8tyd_92"},iC=(e,t,n)=>(t-e)/n,O2=({error:e,field:t,helper:n,id:o,label:r,max:i=1e3,min:s=0,name:a,step:l=100})=>{const{value:c}=t,u=(c-s)/(i-s)*100;return w.jsx(an,{error:e==null?void 0:e.message,helper:n==null?void 0:n.message,id:o,label:r,children:w.jsxs("div",{className:qn.container,children:[w.jsxs("div",{className:qn["range-container"],children:[w.jsx("div",{className:qn.notches,children:Array.from({length:iC(s,i,l)}).map((d,f)=>w.jsx("div",{className:qn.notch,style:{left:`${f/iC(s,i,l)*100}%`}},`notch-${f}`))}),w.jsx("div",{className:qn.progress,style:{width:`calc(${u||0}%)`}}),w.jsx("input",{className:qn.slider,id:`${a}-range`,max:i,min:s,step:l,type:"range",...t})]}),w.jsxs(he,{className:qn["value-container"],variant:"content-title-semi-bold",children:["£",c]})]})})},N2=e=>{const{control:t,formState:{errors:n={}}}=Fe.useFormContext(),{name:o}=e,r={...e,error:n&&n[o]};return w.jsx(Fe.Controller,{control:t,name:o,render:({field:i})=>w.jsx(O2,{...r,field:{...i}})})},Ge={container:"_container_1w9nd_1",inputContainer:"_inputContainer_1w9nd_7",input:"_input_1w9nd_7",icon:"_icon_1w9nd_29","input--error":"_input--error_1w9nd_46","input--missing":"_input--missing_1w9nd_52","select-label":"_select-label_1w9nd_61","error-message":"_error-message_1w9nd_69","helper-message":"_helper-message_1w9nd_76","input--disabled":"_input--disabled_1w9nd_82","icon--disabled":"_icon--disabled_1w9nd_89",nativeSelectContainer:"_nativeSelectContainer_1w9nd_109",nativeSelect:"_nativeSelect_1w9nd_109","nativeSelect--error":"_nativeSelect--error_1w9nd_132","nativeSelect--missing":"_nativeSelect--missing_1w9nd_136","nativeSelect--disabled":"_nativeSelect--disabled_1w9nd_140"},F2=({children:e,disabled:t,error:n,field:o,helper:r,id:i,items:s,label:a,missing:l,placeholder:c})=>w.jsxs("div",{children:[w.jsxs("div",{className:Ge.container,children:[w.jsx(he,{as:"label",className:ie(`select-label-${i}`,Ge["select-label"]),id:`${i}-label`,variant:"form-helper",children:a}),w.jsxs("div",{className:Ge.inputContainer,children:[w.jsxs("select",{"aria-labelledby":`select-label-${i}`,className:ie(Ge.input,(n==null?void 0:n.message)&&Ge["input--error"],t&&Ge["input--disabled"],l&&Ge["input--missing"]),...o,children:[!e&&c&&w.jsx("option",{value:"placeholder",children:c}),e,s&&s.map(u=>w.jsx("option",{value:u.id,...u.props,children:u.title},u.id))]}),w.jsx("svg",{className:ie(Ge.icon,t&&Ge["icon--disabled"]),fill:"none",focusable:"false",height:"7",role:"presentation",viewBox:"0 0 12 7",width:"12",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("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"})})]})]}),(r==null?void 0:r.message)&&w.jsx(he,{as:"span",className:Ge["helper-message"],variant:"form-helper",children:r.message}),(n==null?void 0:n.message)&&w.jsx(he,{as:"p",className:Ge["error-message"],variant:"form-helper",children:n.message})]}),L2=e=>{const{control:t,formState:{errors:n={}}}=Fe.useFormContext(),{name:o}=e,r={...e,error:n&&n[o]};return w.jsx(Fe.Controller,{control:t,name:o,render:({field:i})=>w.jsx(F2,{...r,field:{...i}})})},sC=h.forwardRef(({className:e,disabled:t,error:n,helper:o,id:r,items:i,label:s,missing:a,placeholder:l,...c},u)=>w.jsx(an,{error:n==null?void 0:n.message,helper:o==null?void 0:o.message,id:r,label:s,children:w.jsxs("div",{className:Ge.nativeSelectContainer,children:[w.jsx("svg",{className:ie(Ge.icon,t&&Ge["icon--disabled"]),fill:"none",height:"7",viewBox:"0 0 12 7",width:"12",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("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"})}),w.jsxs("select",{className:ie(e,Ge.nativeSelect,n&&Ge["nativeSelect--error"],a&&Ge["nativeSelect--missing"],t&&Ge["nativeSelect--disabled"]),disabled:t,id:r,ref:u,...c,children:[l&&w.jsx("option",{disabled:!0,value:"placeholder",children:l}),i.map(d=>w.jsx("option",{value:d.id,children:d.title},d.id))]})]})}));sC.displayName="NativeSelect";const V2={skeleton:"_skeleton_1ctn0_11"},K2=({height:e="50px",rounded:t,width:n="100%"})=>w.jsx("div",{className:V2.skeleton,style:{borderRadius:t?"9999px":"0",height:e,width:n}}),H2={table:"_table_11myh_1"},aC=({children:e})=>w.jsx("table",{className:H2.table,children:e}),lC=({children:e})=>w.jsx("th",{children:e}),uC=({children:e})=>w.jsx("thead",{children:e}),cC=({children:e})=>w.jsx("tbody",{children:e}),dC=({children:e})=>w.jsx("tr",{children:e}),fC=({children:e})=>w.jsx("td",{children:e}),pC=({children:e})=>w.jsx("tfoot",{children:e}),R2={Body:cC,Data:fC,Footer:pC,Head:lC,Header:uC,Root:aC,Row:dC};var Ts="Tabs",[U2]=gt(Ts,[Ss]),hC=Ss(),[W2,Tc]=U2(Ts),vC=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=Sr(a),[d,f]=kt({prop:o,onChange:r,defaultProp:i??"",caller:Ts});return w.jsx(W2,{scope:n,baseId:Yn(),value:d,onValueChange:f,orientation:s,dir:u,activationMode:l,children:w.jsx(ye.div,{dir:u,"data-orientation":s,...c,ref:t})})});vC.displayName=Ts;var mC="TabsList",gC=P.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,i=Tc(mC,n),s=hC(n);return w.jsx(W0,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:o,children:w.jsx(ye.div,{role:"tablist","aria-orientation":i.orientation,...r,ref:t})})});gC.displayName=mC;var yC="TabsTrigger",bC=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...i}=e,s=Tc(yC,n),a=hC(n),l=wC(s.baseId,o),c=EC(s.baseId,o),u=o===s.value;return w.jsx(j0,{asChild:!0,...a,focusable:!r,active:u,children:w.jsx(ye.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...i,ref:t,onMouseDown:ge(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?s.onValueChange(o):d.preventDefault()}),onKeyDown:ge(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(o)}),onFocus:ge(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!r&&d&&s.onValueChange(o)})})})});bC.displayName=yC;var AC="TabsContent",CC=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:i,...s}=e,a=Tc(AC,n),l=wC(a.baseId,o),c=EC(a.baseId,o),u=o===a.value,d=P.useRef(u);return P.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),w.jsx(jt,{present:r||u,children:({present:f})=>w.jsx(ye.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});CC.displayName=AC;function wC(e,t){return`${e}-trigger-${t}`}function EC(e,t){return`${e}-content-${t}`}var j2=vC,z2=gC,Q2=bC,q2=CC;const xC={list:"_list_24s9t_2",trigger:"_trigger_24s9t_8"},G2={Content:({children:e,...t})=>w.jsx(q2,{...t,children:e}),List:({children:e,...t})=>w.jsx(z2,{className:xC.list,...t,children:e}),Root:({children:e,...t})=>w.jsx(j2,{...t,children:e}),Trigger:({children:e,...t})=>w.jsx(Q2,{className:xC.trigger,...t,children:w.jsx(he,{as:"span",variant:"form-label",children:e})})},Is={tag:"_tag_29pub_1",primary:"_primary_29pub_12",secondary:"_secondary_29pub_17",tertiary:"_tertiary_29pub_22",positive:"_positive_29pub_27",warning:"_warning_29pub_32",danger:"_danger_29pub_37",night:"_night_29pub_42","with-icon":"_with-icon_29pub_52","circular-icon":"_circular-icon_29pub_56"},Y2={Content:({children:e,...t})=>w.jsx(he,{variant:"tag",...t,children:e}),Icon:Le,Root:({children:e,circularIcon:t,className:n,icon:o,variant:r="primary",...i})=>w.jsx("div",{className:ie(n,Is.tag,Is[r],o&&Is["with-icon"],t&&Is["circular-icon"]),...i,children:e})},Ic={root:"_root_1ywi1_1","body-lead":"_body-lead_1ywi1_8","body-xl":"_body-xl_1ywi1_14","body-lg":"_body-lg_1ywi1_20","body-md":"_body-md_1ywi1_26","body-sm":"_body-sm_1ywi1_32","body-xs":"_body-xs_1ywi1_38","button-md":"_button-md_1ywi1_45","button-sm":"_button-sm_1ywi1_51","input-regular":"_input-regular_1ywi1_59","input-semi-bold":"_input-semi-bold_1ywi1_66",label:"_label_1ywi1_74",helper:"_helper_1ywi1_80",overline:"_overline_1ywi1_86",tag:"_tag_1ywi1_93",light:"_light_1ywi1_101",regular:"_regular_1ywi1_102","semi-bold":"_semi-bold_1ywi1_103"},Z2=e=>{const{as:t,children:n,className:o,variant:r="body-md",weight:i="regular",...s}=e,a=t||(r==="label"?"label":r.includes("button")||r==="overline"?"span":"p");return w.jsx(a,{className:ie(Ic.root,Ic[r],i&&Ic[i],o),...s,children:n})},ke={container:"_container_19ftc_1",inputContainer:"_inputContainer_19ftc_7",label:"_label_19ftc_12","label--error":"_label--error_19ftc_19",input:"_input_19ftc_7","input--prefix":"_input--prefix_19ftc_44","input--missing":"_input--missing_19ftc_49","input--error":"_input--error_19ftc_53",errorIcon:"_errorIcon_19ftc_57",prefix:"_prefix_19ftc_64",inputDescription:"_inputDescription_19ftc_73","container--error":"_container--error_19ftc_79",error:"_error_19ftc_57",helper:"_helper_19ftc_91",rightContent:"_rightContent_19ftc_95",leftContent:"_leftContent_19ftc_105","input--focus":"_input--focus_19ftc_117","input--hover":"_input--hover_19ftc_125"},X2=({className:e,disabled:t,disableError:n,error:o,field:{onBlur:r,value:i,...s},helper:a,id:l,label:c,missing:u,prefix:d,rightContent:f,suffix:p,type:g,...v},y)=>{const b=a||o;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:ie(ke.container,o&&ke["container--error"]),children:[w.jsxs(he,{as:"label",className:ke.label,htmlFor:`input-${l}`,variant:"form-helper",children:[c," ",p&&w.jsx("span",{children:p})]}),w.jsxs("div",{className:ke.inputContainer,children:[w.jsx("input",{"aria-describedby":`error-${l}`,className:ie(e,ke[`input--${e}`],ke.input,d&&ke["input--prefix"],u&&ke["input--missing"]),disabled:t,id:`input-${l}`,onBlur:()=>{r()},type:g,value:i,...s,...v,ref:m=>{s.ref(m),y&&(y.current=m)}}),f&&w.jsx("div",{className:ke.rightContent,children:f}),d&&w.jsx("span",{className:ke.prefix,children:d})]})]}),b&&w.jsxs("div",{className:ke.inputDescription,children:[a&&w.jsx("span",{className:ke.helper,id:`feedback-${l}`,children:a.message}),o&&!n&&w.jsx("span",{className:ke.error,id:`error-${l}`,children:o.message})]})]})},J2=h.forwardRef(X2),_2=(e,t)=>{const{control:n,formState:{errors:o={}}}=Fe.useFormContext(),{name:r}=e,i={...e,error:o&&o[r]};return w.jsx(Fe.Controller,{control:n,name:r,render:({field:s})=>w.jsx(J2,{ref:t,...i,field:{...s}})})},$2=h.forwardRef(_2),e9=({className:e,error:t,helper:n,id:o,label:r,missing:i,onBlur:s,onFocus:a,prefix:l,rightContent:c,suffix:u,...d},f)=>{const p=h.useRef(null);return w.jsx("div",{className:ie(ke.container,t&&ke["container--error"]),children:w.jsx(an,{error:t==null?void 0:t.message,helper:n==null?void 0:n.message,id:`input-${o}`,label:u?w.jsxs(w.Fragment,{children:[r," ",u]}):r,noPadding:!0,children:w.jsx("div",{className:ke.inputContainer,children:w.jsxs("div",{className:ke.inputContainer,children:[w.jsx("input",{"aria-describedby":`error-${o}`,className:ie(e,ke[`input--${e}`],ke.input,l&&ke["input--prefix"],i&&ke["input--missing"],t&&ke["input--error"]),id:`input-${o}`,onBlur:g=>{s&&s(g)},onFocus:g=>{a&&a(g)},...d,ref:g=>{p.current=g,f&&(typeof f=="function"?f(g):f.current=g)}}),w.jsxs("div",{className:ke.rightContent,children:[t&&w.jsx("div",{className:ke.errorIcon,children:w.jsx(Le,{icon:"error"})}),c]}),l&&w.jsx("span",{className:ke.prefix,children:l})]})})})})},t9=h.forwardRef(e9),SC={title:"_title_vemju_1","icon-position":"_icon-position_vemju_6"},n9={Description:({children:e})=>w.jsx(he,{variant:"form-helper",children:e}),Icon:e=>w.jsx("div",{className:SC["icon-position"],children:w.jsx(Le,{...e})}),Root:({children:e})=>w.jsx("div",{children:e}),Title:({children:e,className:t})=>w.jsx(he,{className:ie(t,SC.title),variant:"form-helper",children:e})};var PC="Toggle",TC=P.forwardRef((e,t)=>{const{pressed:n,defaultPressed:o,onPressedChange:r,...i}=e,[s,a]=kt({prop:n,onChange:r,defaultProp:o??!1,caller:PC});return w.jsx(ye.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:ge(e.onClick,()=>{e.disabled||a(!s)})})});TC.displayName=PC;const o9={toggle:"_toggle_cc48m_1"},r9=({children:e,...t})=>w.jsx(TC,{className:o9.toggle,...t,children:w.jsx("span",{className:"sr-only",children:e})});var i9=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s9="VisuallyHidden",IC=P.forwardRef((e,t)=>w.jsx(ye.span,{...e,ref:t,style:{...i9,...e.style}}));IC.displayName=s9;var a9=IC,[Ds]=gt("Tooltip",[ms]),ks=ms(),DC="TooltipProvider",l9=700,Dc="tooltip.open",[u9,kc]=Ds(DC),kC=e=>{const{__scopeTooltip:t,delayDuration:n=l9,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=P.useRef(!0),a=P.useRef(!1),l=P.useRef(0);return P.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),w.jsx(u9,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:P.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:P.useCallback(c=>{a.current=c},[]),disableHoverableContent:r,children:i})};kC.displayName=DC;var Ar="Tooltip",[c9,Cr]=Ds(Ar),MC=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=kc(Ar,e.__scopeTooltip),c=ks(t),[u,d]=P.useState(null),f=Yn(),p=P.useRef(0),g=s??l.disableHoverableContent,v=a??l.delayDuration,y=P.useRef(!1),[b,m]=kt({prop:o,defaultProp:r??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Dc))):l.onClose(),i==null||i(O)},caller:Ar}),C=P.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),E=P.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,m(!0)},[m]),x=P.useCallback(()=>{window.clearTimeout(p.current),p.current=0,m(!1)},[m]),I=P.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,m(!0),p.current=0},v)},[v,m]);return P.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(c0,{...c,children:w.jsx(c9,{scope:t,contentId:f,open:b,stateAttribute:C,trigger:u,onTriggerChange:d,onTriggerEnter:P.useCallback(()=>{l.isOpenDelayedRef.current?I():E()},[l.isOpenDelayedRef,I,E]),onTriggerLeave:P.useCallback(()=>{g?x():(window.clearTimeout(p.current),p.current=0)},[x,g]),onOpen:E,onClose:x,disableHoverableContent:g,children:n})})};MC.displayName=Ar;var Mc="TooltipTrigger",BC=P.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Cr(Mc,n),i=kc(Mc,n),s=ks(n),a=P.useRef(null),l=Re(t,a,r.onTriggerChange),c=P.useRef(!1),u=P.useRef(!1),d=P.useCallback(()=>c.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(vc,{asChild:!0,...s,children:w.jsx(ye.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:ge(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ge(e.onFocus,()=>{c.current||r.onOpen()}),onBlur:ge(e.onBlur,r.onClose),onClick:ge(e.onClick,r.onClose)})})});BC.displayName=Mc;var Bc="TooltipPortal",[d9,f9]=Ds(Bc,{forceMount:void 0}),OC=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=Cr(Bc,t);return w.jsx(d9,{scope:t,forceMount:n,children:w.jsx(jt,{present:n||i.open,children:w.jsx(mc,{asChild:!0,container:r,children:o})})})};OC.displayName=Bc;var Do="TooltipContent",NC=P.forwardRef((e,t)=>{const n=f9(Do,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Cr(Do,e.__scopeTooltip);return w.jsx(jt,{present:o||s.open,children:s.disableHoverableContent?w.jsx(FC,{side:r,...i,ref:t}):w.jsx(p9,{side:r,...i,ref:t})})}),p9=P.forwardRef((e,t)=>{const n=Cr(Do,e.__scopeTooltip),o=kc(Do,e.__scopeTooltip),r=P.useRef(null),i=Re(t,r),[s,a]=P.useState(null),{trigger:l,onClose:c}=n,u=r.current,{onPointerInTransitChange:d}=o,f=P.useCallback(()=>{a(null),d(!1)},[d]),p=P.useCallback((g,v)=>{const y=g.currentTarget,b={x:g.clientX,y:g.clientY},m=g9(b,y.getBoundingClientRect()),C=y9(b,m),E=b9(v.getBoundingClientRect()),x=C9([...C,...E]);a(x),d(!0)},[d]);return P.useEffect(()=>()=>f(),[f]),P.useEffect(()=>{if(l&&u){const g=y=>p(y,u),v=y=>p(y,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",v)}}},[l,u,p,f]),P.useEffect(()=>{if(s){const g=v=>{const y=v.target,b={x:v.clientX,y:v.clientY},m=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),C=!A9(b,s);m?f():C&&(f(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,s,c,f]),w.jsx(FC,{...e,ref:i})}),[h9,v9]=Ds(Ar,{isInside:!1}),m9=WC("TooltipContent"),FC=P.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Cr(Do,n),c=ks(n),{onClose:u}=l;return P.useEffect(()=>(document.addEventListener(Dc,u),()=>document.removeEventListener(Dc,u)),[u]),P.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),w.jsx(Ju,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:w.jsxs(d0,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.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:[w.jsx(m9,{children:o}),w.jsx(h9,{scope:n,isInside:!0,children:w.jsx(a9,{id:l.contentId,role:"tooltip",children:r||o})})]})})});NC.displayName=Do;var LC="TooltipArrow",VC=P.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=ks(n);return v9(LC,n).isInside?null:w.jsx(f0,{...r,...o,ref:t})});VC.displayName=LC;function g9(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")}}function y9(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});break}return o}function b9(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}]}function A9(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],c=a.x,u=a.y,d=l.x,f=l.y;u>o!=f>o&&n<(d-c)*(o-u)/(f-u)+c&&(r=!r)}return r}function C9(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),w9(t)}function w9(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var E9=kC,x9=MC,S9=BC,P9=OC,T9=NC,I9=VC;const Oc={control:"_control_1er46_1",tooltip:"_tooltip_1er46_11",beak:"_beak_1er46_19"},D9={Content:({children:e,className:t,...n})=>w.jsx(P9,{children:w.jsxs(T9,{className:ie(t,Oc.tooltip),...n,children:[e,w.jsx(I9,{className:Oc.beak})]})}),Root:({children:e,...t})=>w.jsx(E9,{children:w.jsx(x9,{...t,children:e})}),Trigger:({children:e,className:t,...n})=>w.jsx(S9,{className:ie(t,Oc.control),...n,children:e})},Nc={"visual--paper":"_visual--paper_1h4mu_1","visual--bento":"_visual--bento_1h4mu_18","visual--bento-icon":"_visual--bento-icon_1h4mu_29","orientation--center":"_orientation--center_1h4mu_40","type--trust-pilot":"_type--trust-pilot_1h4mu_57"},k9=({as:e,children:t,className:n,variants:o})=>{const r={visual:"paper",...o},i=e||"div";return w.jsx(i,{className:ie(n,Nc[`visual--${r.visual}`],r.orientation&&Nc[`orientation--${r.orientation}`],r.type&&Nc[`type--${r.type}`]),children:t})};$.Accordion=kw,$.Button=Dr,$.Buttons=fA,$.Callout=Bw,$.Card=id,$.Cards=Ow,$.Checkbox=Kw,$.Columns=Uw,$.ComboBox=V3,$.DatePicker=H3,$.Disclosure=W3,$.Divider=z3,$.Field=Ub,$.Form=q3,$.Heading=qb,$.Icon=Le,$.Item=zb,$.Link=Z3,$.Loading=_3,$.MaterialSymbol=Ks,$.Modal=nM,$.NativeCheckbox=xd,$.NativeComboBox=K3,$.NativeDatePicker=Qb,$.NativeNumberField=pA,$.NativePhoneField=dM,$.NativeRadioGroup=B2,$.NativeSelect=sC,$.NativeTextField=t9,$.NumberField=rM,$.OTPInput=BM,$.Options=jb,$.PhoneField=sM,$.PinInput=IM,$.Popover=a2,$.ProgressIndicator=l2,$.RadioGroup=M2,$.Range=N2,$.Root=Wb,$.Select=L2,$.Skeleton=K2,$.Table=R2,$.TableBody=cC,$.TableData=fC,$.TableFooter=pC,$.TableHead=lC,$.TableHeader=uC,$.TableRoot=aC,$.TableRow=dC,$.Tabs=G2,$.Tag=Y2,$.Text=Z2,$.TextField=$2,$.Toast=n9,$.Toggle=r9,$.Tooltip=D9,$.Typography=he,$.Wrapper=k9,$.useModal=rs,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|
|
130
|
+
`)},j6=0,To=[];function z6(e){var t=P.useRef([]),n=P.useRef([0,0]),o=P.useRef(),r=P.useState(j6++)[0],i=P.useState(g0)[0],s=P.useRef(e);P.useEffect(function(){s.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var v=tE([e.lockRef.current],(e.shards||[]).map(x0),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=P.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var b=Es(v),m=n.current,C="deltaX"in v?v.deltaX:m[0]-b[0],E="deltaY"in v?v.deltaY:m[1]-b[1],x,I=v.target,O=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in v&&O==="h"&&I.type==="range")return!1;var k=window.getSelection(),F=k&&k.anchorNode,B=F?F===I||F.contains(I):!1;if(B)return!1;var U=A0(O,I);if(!U)return!0;if(U?x=O:(x=O==="v"?"h":"v",U=A0(O,I)),!U)return!1;if(!o.current&&"changedTouches"in v&&(C||E)&&(o.current=x),!x)return!0;var j=o.current||x;return R6(j,y,v,j==="h"?C:E)},[]),l=P.useCallback(function(v){var y=v;if(!(!To.length||To[To.length-1]!==i)){var b="deltaY"in y?E0(y):Es(y),m=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&U6(x.delta,b)})[0];if(m&&m.should){y.cancelable&&y.preventDefault();return}if(!m){var C=(s.current.shards||[]).map(x0).filter(Boolean).filter(function(x){return x.contains(y.target)}),E=C.length>0?a(y,C[0]):!s.current.noIsolation;E&&y.cancelable&&y.preventDefault()}}},[]),c=P.useCallback(function(v,y,b,m){var C={name:v,delta:y,target:b,should:m,shadowParent:Q6(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),u=P.useCallback(function(v){n.current=Es(v),o.current=void 0},[]),d=P.useCallback(function(v){c(v.type,E0(v),v.target,a(v,e.lockRef.current))},[]),f=P.useCallback(function(v){c(v.type,Es(v),v.target,a(v,e.lockRef.current))},[]);P.useEffect(function(){return To.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Po),document.addEventListener("touchmove",l,Po),document.addEventListener("touchstart",u,Po),function(){To=To.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,Po),document.removeEventListener("touchmove",l,Po),document.removeEventListener("touchstart",u,Po)}},[]);var p=e.removeScrollBar,g=e.inert;return P.createElement(P.Fragment,null,g?P.createElement(i,{styles:W6(r)}):null,p?P.createElement(O6,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Q6(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const q6=A6(m0,z6);var S0=P.forwardRef(function(e,t){return P.createElement(Cs,et({},e,{ref:t,sideCar:q6}))});S0.classNames=Cs.classNames;var xs="Popover",[P0]=gt(xs,[ms]),mr=ms(),[G6,En]=P0(xs),T0=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:i,modal:s=!1}=e,a=mr(t),l=P.useRef(null),[c,u]=P.useState(!1),[d,f]=kt({prop:o,defaultProp:r??!1,onChange:i,caller:xs});return w.jsx(c0,{...a,children:w.jsx(G6,{scope:t,contentId:Yn(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:c,onCustomAnchorAdd:P.useCallback(()=>u(!0),[]),onCustomAnchorRemove:P.useCallback(()=>u(!1),[]),modal:s,children:n})})};T0.displayName=xs;var I0="PopoverAnchor",Y6=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=En(I0,n),i=mr(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=r;return P.useEffect(()=>(s(),()=>a()),[s,a]),w.jsx(vc,{...i,...o,ref:t})});Y6.displayName=I0;var D0="PopoverTrigger",k0=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=En(D0,n),i=mr(n),s=Re(t,r.triggerRef),a=w.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":L0(r.open),...o,ref:s,onClick:ge(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:w.jsx(vc,{asChild:!0,...i,children:a})});k0.displayName=D0;var wc="PopoverPortal",[Z6,X6]=P0(wc,{forceMount:void 0}),M0=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,i=En(wc,t);return w.jsx(Z6,{scope:t,forceMount:n,children:w.jsx(jt,{present:n||i.open,children:w.jsx(mc,{asChild:!0,container:r,children:o})})})};M0.displayName=wc;var Io="PopoverContent",B0=P.forwardRef((e,t)=>{const n=X6(Io,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,i=En(Io,e.__scopePopover);return w.jsx(jt,{present:o||i.open,children:i.modal?w.jsx(_6,{...r,ref:t}):w.jsx($6,{...r,ref:t})})});B0.displayName=Io;var J6=wr("PopoverContent.RemoveScroll"),_6=P.forwardRef((e,t)=>{const n=En(Io,e.__scopePopover),o=P.useRef(null),r=Re(t,o),i=P.useRef(!1);return P.useEffect(()=>{const s=o.current;if(s)return d6(s)},[]),w.jsx(S0,{as:J6,allowPinchZoom:!0,children:w.jsx(O0,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),$6=P.forwardRef((e,t)=>{const n=En(Io,e.__scopePopover),o=P.useRef(!1),r=P.useRef(!1);return w.jsx(O0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),O0=P.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=En(Io,n),p=mr(n);return UM(),w.jsx(TA,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:i,children:w.jsx(Ju,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:w.jsx(d0,{"data-state":L0(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.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)"}})})})}),N0="PopoverClose",e2=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=En(N0,n);return w.jsx(ye.button,{type:"button",...o,ref:t,onClick:ge(e.onClick,()=>r.onOpenChange(!1))})});e2.displayName=N0;var t2="PopoverArrow",F0=P.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=mr(n);return w.jsx(f0,{...r,...o,ref:t})});F0.displayName=t2;function L0(e){return e?"open":"closed"}var n2=T0,o2=k0,r2=M0,i2=B0,s2=F0;const gr={trigger:"_trigger_5fq2u_1",light:"_light_5fq2u_12",dark:"_dark_5fq2u_16",triggerIcon:"_triggerIcon_5fq2u_25",popoverContent:"_popoverContent_5fq2u_34",popoverClose:"_popoverClose_5fq2u_43",popoverArrow:"_popoverArrow_5fq2u_58"},a2={Content:({children:e,...t})=>w.jsx(r2,{children:w.jsxs(i2,{className:gr.popoverContent,...t,children:[e,w.jsx(s2,{className:gr.popoverArrow})]})}),Root:e=>w.jsx(n2,{...e}),Trigger:({children:e,variant:t="light",...n})=>w.jsxs(o2,{className:ie(gr.trigger,gr[t]),...n,children:[e,w.jsx(Le,{className:gr.triggerIcon,icon:"chevron_left"})]})},yr={container:"_container_1su12_1","container--full-width":"_container--full-width_1su12_4","container--medium":"_container--medium_1su12_8","container--small":"_container--small_1su12_12",progress:"_progress_1su12_16","progress-bar":"_progress-bar_1su12_26",label:"_label_1su12_35"},l2=({current:e=1,label:t,max:n=10,size:o="full-width"})=>w.jsxs("div",{className:ie(yr.container,o&&yr[`container--${o}`]),children:[w.jsx("div",{className:yr.progress,children:w.jsx("div",{className:yr["progress-bar"],style:{width:`${e/n*100}%`}})}),t&&w.jsx(he,{className:yr.label,variant:"tag",children:t}),w.jsxs(he,{className:"sr-only",children:["Step ",e," of ",n]})]});var Ec="rovingFocusGroup.onEntryFocus",u2={bubbles:!1,cancelable:!0},br="RovingFocusGroup",[xc,V0,c2]=Wc(br),[d2,Ss]=gt(br,[c2]),[f2,p2]=d2(br),K0=P.forwardRef((e,t)=>w.jsx(xc.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(xc.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(h2,{...e,ref:t})})}));K0.displayName=br;var h2=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=P.useRef(null),p=Re(t,f),g=Sr(i),[v,y]=kt({prop:s,defaultProp:a??null,onChange:l,caller:br}),[b,m]=P.useState(!1),C=jn(c),E=V0(n),x=P.useRef(!1),[I,O]=P.useState(0);return P.useEffect(()=>{const k=f.current;if(k)return k.addEventListener(Ec,C),()=>k.removeEventListener(Ec,C)},[C]),w.jsx(f2,{scope:n,orientation:o,dir:g,loop:r,currentTabStopId:v,onItemFocus:P.useCallback(k=>y(k),[y]),onItemShiftTab:P.useCallback(()=>m(!0),[]),onFocusableItemAdd:P.useCallback(()=>O(k=>k+1),[]),onFocusableItemRemove:P.useCallback(()=>O(k=>k-1),[]),children:w.jsx(ye.div,{tabIndex:b||I===0?-1:0,"data-orientation":o,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{x.current=!0}),onFocus:ge(e.onFocus,k=>{const F=!x.current;if(k.target===k.currentTarget&&F&&!b){const B=new CustomEvent(Ec,u2);if(k.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=E().filter(N=>N.focusable),j=U.find(N=>N.active),H=U.find(N=>N.id===v),M=[j,H,...U].filter(Boolean).map(N=>N.ref.current);U0(M,u)}}x.current=!1}),onBlur:ge(e.onBlur,()=>m(!1))})})}),H0="RovingFocusGroupItem",R0=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:i,children:s,...a}=e,l=Yn(),c=i||l,u=p2(H0,n),d=u.currentTabStopId===c,f=V0(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:v}=u;return P.useEffect(()=>{if(o)return p(),()=>g()},[o,p,g]),w.jsx(xc.ItemSlot,{scope:n,id:c,focusable:o,active:r,children:w.jsx(ye.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:ge(e.onMouseDown,y=>{o?u.onItemFocus(c):y.preventDefault()}),onFocus:ge(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:ge(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){u.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const b=g2(y,u.orientation,u.dir);if(b!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let C=f().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")C.reverse();else if(b==="prev"||b==="next"){b==="prev"&&C.reverse();const E=C.indexOf(y.currentTarget);C=u.loop?y2(C,E+1):C.slice(E+1)}setTimeout(()=>U0(C))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:v!=null}):s})})});R0.displayName=H0;var v2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function m2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function g2(e,t,n){const o=m2(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return v2[o]}function U0(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function y2(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var W0=K0,j0=R0,Sc="Radio",[b2,z0]=gt(Sc),[A2,C2]=b2(Sc),Q0=P.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:r=!1,required:i,disabled:s,value:a="on",onCheck:l,form:c,...u}=e,[d,f]=P.useState(null),p=Re(t,y=>f(y)),g=P.useRef(!1),v=d?c||!!d.closest("form"):!0;return w.jsxs(A2,{scope:n,checked:r,disabled:s,children:[w.jsx(ye.button,{type:"button",role:"radio","aria-checked":r,"data-state":Z0(r),"data-disabled":s?"":void 0,disabled:s,value:a,...u,ref:p,onClick:ge(e.onClick,y=>{r||l==null||l(),v&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),v&&w.jsx(Y0,{control:d,bubbles:!g.current,name:o,value:a,checked:r,required:i,disabled:s,form:c,style:{transform:"translateX(-100%)"}})]})});Q0.displayName=Sc;var q0="RadioIndicator",G0=P.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,i=C2(q0,n);return w.jsx(jt,{present:o||i.checked,children:w.jsx(ye.span,{"data-state":Z0(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t})})});G0.displayName=q0;var w2="RadioBubbleInput",Y0=P.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...r},i)=>{const s=P.useRef(null),a=Re(s,i),l=vd(n),c=Us(t);return P.useEffect(()=>{const u=s.current;if(!u)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&p){const g=new Event("click",{bubbles:o});p.call(u,n),u.dispatchEvent(g)}},[l,n,o]),w.jsx(ye.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:a,style:{...r.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Y0.displayName=w2;function Z0(e){return e?"checked":"unchecked"}var E2=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ps="RadioGroup",[x2]=gt(Ps,[Ss,z0]),X0=Ss(),J0=z0(),[S2,P2]=x2(Ps),_0=P.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:i,required:s=!1,disabled:a=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,p=X0(n),g=Sr(c),[v,y]=kt({prop:i,defaultProp:r??null,onChange:d,caller:Ps});return w.jsx(S2,{scope:n,name:o,required:s,disabled:a,value:v,onValueChange:y,children:w.jsx(W0,{asChild:!0,...p,orientation:l,dir:g,loop:u,children:w.jsx(ye.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g,...f,ref:t})})})});_0.displayName=Ps;var $0="RadioGroupItem",eC=P.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,i=P2($0,n),s=i.disabled||o,a=X0(n),l=J0(n),c=P.useRef(null),u=Re(t,c),d=i.value===r.value,f=P.useRef(!1);return P.useEffect(()=>{const p=v=>{E2.includes(v.key)&&(f.current=!0)},g=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",g)}},[]),w.jsx(j0,{asChild:!0,...a,focusable:!s,active:d,children:w.jsx(Q0,{disabled:s,required:i.required,checked:d,...l,...r,name:i.name,ref:u,onCheck:()=>i.onValueChange(r.value),onKeyDown:ge(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:ge(r.onFocus,()=>{var p;f.current&&((p=c.current)==null||p.click())})})})});eC.displayName=$0;var T2="RadioGroupIndicator",tC=P.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=J0(n);return w.jsx(G0,{...r,...o,ref:t})});tC.displayName=T2;var nC=_0,oC=eC,I2=tC;const qe={legend:"_legend_bd7v1_1","radio-root":"_radio-root_bd7v1_5",cards:"_cards_bd7v1_5","radio-root--horizontal":"_radio-root--horizontal_bd7v1_10","radio-root--vertical":"_radio-root--vertical_bd7v1_14","radio-root--error":"_radio-root--error_bd7v1_18","radio-root-label--error":"_radio-root-label--error_bd7v1_23","radio-item":"_radio-item_bd7v1_30","radio-indicator":"_radio-indicator_bd7v1_65","radio-root--disabled":"_radio-root--disabled_bd7v1_78",circle:"_circle_bd7v1_106","radio-circle-container":"_radio-circle-container_bd7v1_115"},D2=({children:e,className:t,disabled:n,label:o,name:r,variant:i="cards",...s})=>{const{control:a,formState:{errors:l={}}}=Fe.useFormContext(),c=l&&l[r];return w.jsx(Fe.Controller,{control:a,name:r,render:({field:{onChange:u,...d}})=>w.jsxs("fieldset",{children:[w.jsx(he,{as:"legend",className:qe.legend,variant:"form-input-normal",children:o}),w.jsx(nC,{className:ie(t,i&&qe[i],qe["radio-root"],c&&qe["radio-root--error"],n&&qe["radio-root--disabled"]),disabled:n,onValueChange:u,...s,...d,"aria-required":void 0,children:e}),c&&w.jsx("p",{className:qe["radio-root-label--error"],children:c==null?void 0:c.message})]})})},Pc=({className:e,...t})=>w.jsx(I2,{className:ie(e,qe["radio-indicator"]),...t}),rC=({children:e,className:t,supportingText:n,variant:o="cards",...r})=>o==="circle"?w.jsxs("div",{className:qe["radio-circle-container"],children:[w.jsx(oC,{className:ie(t,qe["radio-item"]),...r,children:w.jsx(Pc,{})}),w.jsx(he,{variant:"form-input-normal",children:e}),n&&w.jsx(he,{variant:"content-regular",children:n})]}):w.jsxs(oC,{className:ie(t,qe["radio-item"]),...r,children:[w.jsx(he,{variant:"form-input-normal",children:e}),n&&w.jsx(he,{variant:"content-regular",children:n})]}),k2=({children:e,className:t,disabled:n,error:o,label:r,onChange:i,variant:s="cards",visual:a="horizontal",...l})=>w.jsxs("fieldset",{className:qe.fieldset,children:[w.jsx(he,{as:"label",className:qe.legend,variant:"form-input-normal",children:r}),w.jsx(nC,{className:ie(t,s&&qe[s],a&&qe[`radio-root--${a}`],qe["radio-root"],o&&qe["radio-root--error"],n&&qe["radio-root--disabled"]),disabled:n,onValueChange:i,...l,children:e}),o&&w.jsx("p",{className:qe["radio-root-label--error"],children:o==null?void 0:o.message})]}),M2={Indicator:Pc,Item:rC,Root:D2},B2={Indicator:Pc,Item:rC,Root:k2},qn={container:"_container_r8tyd_1","range-container":"_range-container_r8tyd_20",slider:"_slider_r8tyd_28",notches:"_notches_r8tyd_63",notch:"_notch_r8tyd_63",progress:"_progress_r8tyd_84","value-container":"_value-container_r8tyd_92"},iC=(e,t,n)=>(t-e)/n,O2=({error:e,field:t,helper:n,id:o,label:r,max:i=1e3,min:s=0,name:a,step:l=100})=>{const{value:c}=t,u=(c-s)/(i-s)*100;return w.jsx(an,{error:e==null?void 0:e.message,helper:n==null?void 0:n.message,id:o,label:r,children:w.jsxs("div",{className:qn.container,children:[w.jsxs("div",{className:qn["range-container"],children:[w.jsx("div",{className:qn.notches,children:Array.from({length:iC(s,i,l)}).map((d,f)=>w.jsx("div",{className:qn.notch,style:{left:`${f/iC(s,i,l)*100}%`}},`notch-${f}`))}),w.jsx("div",{className:qn.progress,style:{width:`calc(${u||0}%)`}}),w.jsx("input",{className:qn.slider,id:`${a}-range`,max:i,min:s,step:l,type:"range",...t})]}),w.jsxs(he,{className:qn["value-container"],variant:"content-title-semi-bold",children:["£",c]})]})})},N2=e=>{const{control:t,formState:{errors:n={}}}=Fe.useFormContext(),{name:o}=e,r={...e,error:n&&n[o]};return w.jsx(Fe.Controller,{control:t,name:o,render:({field:i})=>w.jsx(O2,{...r,field:{...i}})})},Ge={container:"_container_1w9nd_1",inputContainer:"_inputContainer_1w9nd_7",input:"_input_1w9nd_7",icon:"_icon_1w9nd_29","input--error":"_input--error_1w9nd_46","input--missing":"_input--missing_1w9nd_52","select-label":"_select-label_1w9nd_61","error-message":"_error-message_1w9nd_69","helper-message":"_helper-message_1w9nd_76","input--disabled":"_input--disabled_1w9nd_82","icon--disabled":"_icon--disabled_1w9nd_89",nativeSelectContainer:"_nativeSelectContainer_1w9nd_109",nativeSelect:"_nativeSelect_1w9nd_109","nativeSelect--error":"_nativeSelect--error_1w9nd_132","nativeSelect--missing":"_nativeSelect--missing_1w9nd_136","nativeSelect--disabled":"_nativeSelect--disabled_1w9nd_140"},F2=({children:e,disabled:t,error:n,field:o,helper:r,id:i,items:s,label:a,missing:l,placeholder:c})=>w.jsxs("div",{children:[w.jsxs("div",{className:Ge.container,children:[w.jsx(he,{as:"label",className:ie(`select-label-${i}`,Ge["select-label"]),id:`${i}-label`,variant:"form-helper",children:a}),w.jsxs("div",{className:Ge.inputContainer,children:[w.jsxs("select",{"aria-labelledby":`select-label-${i}`,className:ie(Ge.input,(n==null?void 0:n.message)&&Ge["input--error"],t&&Ge["input--disabled"],l&&Ge["input--missing"]),...o,children:[!e&&c&&w.jsx("option",{value:"placeholder",children:c}),e,s&&s.map(u=>w.jsx("option",{value:u.id,...u.props,children:u.title},u.id))]}),w.jsx("svg",{className:ie(Ge.icon,t&&Ge["icon--disabled"]),fill:"none",focusable:"false",height:"7",role:"presentation",viewBox:"0 0 12 7",width:"12",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("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"})})]})]}),(r==null?void 0:r.message)&&w.jsx(he,{as:"span",className:Ge["helper-message"],variant:"form-helper",children:r.message}),(n==null?void 0:n.message)&&w.jsx(he,{as:"p",className:Ge["error-message"],variant:"form-helper",children:n.message})]}),L2=e=>{const{control:t,formState:{errors:n={}}}=Fe.useFormContext(),{name:o}=e,r={...e,error:n&&n[o]};return w.jsx(Fe.Controller,{control:t,name:o,render:({field:i})=>w.jsx(F2,{...r,field:{...i}})})},sC=h.forwardRef(({className:e,disabled:t,error:n,helper:o,id:r,items:i,label:s,missing:a,placeholder:l,...c},u)=>w.jsx(an,{error:n==null?void 0:n.message,helper:o==null?void 0:o.message,id:r,label:s,children:w.jsxs("div",{className:Ge.nativeSelectContainer,children:[w.jsx("svg",{className:ie(Ge.icon,t&&Ge["icon--disabled"]),fill:"none",height:"7",viewBox:"0 0 12 7",width:"12",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("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"})}),w.jsxs("select",{className:ie(e,Ge.nativeSelect,n&&Ge["nativeSelect--error"],a&&Ge["nativeSelect--missing"],t&&Ge["nativeSelect--disabled"]),disabled:t,id:r,ref:u,...c,children:[l&&w.jsx("option",{disabled:!0,value:"placeholder",children:l}),i.map(d=>w.jsx("option",{value:d.id,children:d.title},d.id))]})]})}));sC.displayName="NativeSelect";const V2={skeleton:"_skeleton_1ctn0_11"},K2=({height:e="50px",rounded:t,width:n="100%"})=>w.jsx("div",{className:V2.skeleton,style:{borderRadius:t?"9999px":"0",height:e,width:n}}),H2={table:"_table_11myh_1"},aC=({children:e})=>w.jsx("table",{className:H2.table,children:e}),lC=({children:e})=>w.jsx("th",{children:e}),uC=({children:e})=>w.jsx("thead",{children:e}),cC=({children:e})=>w.jsx("tbody",{children:e}),dC=({children:e})=>w.jsx("tr",{children:e}),fC=({children:e})=>w.jsx("td",{children:e}),pC=({children:e})=>w.jsx("tfoot",{children:e}),R2={Body:cC,Data:fC,Footer:pC,Head:lC,Header:uC,Root:aC,Row:dC};var Ts="Tabs",[U2]=gt(Ts,[Ss]),hC=Ss(),[W2,Tc]=U2(Ts),vC=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:i,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=Sr(a),[d,f]=kt({prop:o,onChange:r,defaultProp:i??"",caller:Ts});return w.jsx(W2,{scope:n,baseId:Yn(),value:d,onValueChange:f,orientation:s,dir:u,activationMode:l,children:w.jsx(ye.div,{dir:u,"data-orientation":s,...c,ref:t})})});vC.displayName=Ts;var mC="TabsList",gC=P.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,i=Tc(mC,n),s=hC(n);return w.jsx(W0,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:o,children:w.jsx(ye.div,{role:"tablist","aria-orientation":i.orientation,...r,ref:t})})});gC.displayName=mC;var yC="TabsTrigger",bC=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...i}=e,s=Tc(yC,n),a=hC(n),l=wC(s.baseId,o),c=EC(s.baseId,o),u=o===s.value;return w.jsx(j0,{asChild:!0,...a,focusable:!r,active:u,children:w.jsx(ye.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...i,ref:t,onMouseDown:ge(e.onMouseDown,d=>{!r&&d.button===0&&d.ctrlKey===!1?s.onValueChange(o):d.preventDefault()}),onKeyDown:ge(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(o)}),onFocus:ge(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!r&&d&&s.onValueChange(o)})})})});bC.displayName=yC;var AC="TabsContent",CC=P.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:i,...s}=e,a=Tc(AC,n),l=wC(a.baseId,o),c=EC(a.baseId,o),u=o===a.value,d=P.useRef(u);return P.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),w.jsx(jt,{present:r||u,children:({present:f})=>w.jsx(ye.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});CC.displayName=AC;function wC(e,t){return`${e}-trigger-${t}`}function EC(e,t){return`${e}-content-${t}`}var j2=vC,z2=gC,Q2=bC,q2=CC;const xC={list:"_list_24s9t_2",trigger:"_trigger_24s9t_8"},G2={Content:({children:e,...t})=>w.jsx(q2,{...t,children:e}),List:({children:e,...t})=>w.jsx(z2,{className:xC.list,...t,children:e}),Root:({children:e,...t})=>w.jsx(j2,{...t,children:e}),Trigger:({children:e,...t})=>w.jsx(Q2,{className:xC.trigger,...t,children:w.jsx(he,{as:"span",variant:"form-label",children:e})})},Is={tag:"_tag_29pub_1",primary:"_primary_29pub_12",secondary:"_secondary_29pub_17",tertiary:"_tertiary_29pub_22",positive:"_positive_29pub_27",warning:"_warning_29pub_32",danger:"_danger_29pub_37",night:"_night_29pub_42","with-icon":"_with-icon_29pub_52","circular-icon":"_circular-icon_29pub_56"},Y2={Content:({children:e,...t})=>w.jsx(he,{variant:"tag",...t,children:e}),Icon:Le,Root:({children:e,circularIcon:t,className:n,icon:o,variant:r="primary",...i})=>w.jsx("div",{className:ie(n,Is.tag,Is[r],o&&Is["with-icon"],t&&Is["circular-icon"]),...i,children:e})},Ic={root:"_root_1ywi1_1","body-lead":"_body-lead_1ywi1_8","body-xl":"_body-xl_1ywi1_14","body-lg":"_body-lg_1ywi1_20","body-md":"_body-md_1ywi1_26","body-sm":"_body-sm_1ywi1_32","body-xs":"_body-xs_1ywi1_38","button-md":"_button-md_1ywi1_45","button-sm":"_button-sm_1ywi1_51","input-regular":"_input-regular_1ywi1_59","input-semi-bold":"_input-semi-bold_1ywi1_66",label:"_label_1ywi1_74",helper:"_helper_1ywi1_80",overline:"_overline_1ywi1_86",tag:"_tag_1ywi1_93",light:"_light_1ywi1_101",regular:"_regular_1ywi1_102","semi-bold":"_semi-bold_1ywi1_103"},Z2=e=>{const{as:t,children:n,className:o,variant:r="body-md",weight:i="regular",...s}=e,a=t||(r==="label"?"label":r.includes("button")||r==="overline"?"span":"p");return w.jsx(a,{className:ie(Ic.root,Ic[r],i&&Ic[i],o),...s,children:n})},ke={container:"_container_19ftc_1",inputContainer:"_inputContainer_19ftc_7",label:"_label_19ftc_12","label--error":"_label--error_19ftc_19",input:"_input_19ftc_7","input--prefix":"_input--prefix_19ftc_44","input--missing":"_input--missing_19ftc_49","input--error":"_input--error_19ftc_53",errorIcon:"_errorIcon_19ftc_57",prefix:"_prefix_19ftc_64",inputDescription:"_inputDescription_19ftc_73","container--error":"_container--error_19ftc_79",error:"_error_19ftc_57",helper:"_helper_19ftc_91",rightContent:"_rightContent_19ftc_95",leftContent:"_leftContent_19ftc_105","input--focus":"_input--focus_19ftc_117","input--hover":"_input--hover_19ftc_125"},X2=({className:e,disabled:t,disableError:n,error:o,field:{onBlur:r,value:i,...s},helper:a,id:l,label:c,missing:u,prefix:d,rightContent:f,suffix:p,type:g,...v},y)=>{const b=a||o;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:ie(ke.container,o&&ke["container--error"]),children:[w.jsxs(he,{as:"label",className:ke.label,htmlFor:`input-${l}`,variant:"form-helper",children:[c," ",p&&w.jsx("span",{children:p})]}),w.jsxs("div",{className:ke.inputContainer,children:[w.jsx("input",{"aria-describedby":`error-${l}`,className:ie(e,ke[`input--${e}`],ke.input,d&&ke["input--prefix"],u&&ke["input--missing"]),disabled:t,id:`input-${l}`,onBlur:()=>{r()},type:g,value:i,...s,...v,ref:m=>{s.ref(m),y&&(y.current=m)}}),f&&w.jsx("div",{className:ke.rightContent,children:f}),d&&w.jsx("span",{className:ke.prefix,children:d})]})]}),b&&w.jsxs("div",{className:ke.inputDescription,children:[a&&w.jsx("span",{className:ke.helper,id:`feedback-${l}`,children:a.message}),o&&!n&&w.jsx("span",{className:ke.error,id:`error-${l}`,children:o.message})]})]})},J2=h.forwardRef(X2),_2=(e,t)=>{const{control:n,formState:{errors:o={}}}=Fe.useFormContext(),{name:r}=e,i={...e,error:o&&o[r]};return w.jsx(Fe.Controller,{control:n,name:r,render:({field:s})=>w.jsx(J2,{ref:t,...i,field:{...s}})})},$2=h.forwardRef(_2),e9=({className:e,error:t,helper:n,id:o,label:r,missing:i,onBlur:s,onFocus:a,prefix:l,rightContent:c,suffix:u,...d},f)=>{const p=h.useRef(null);return w.jsx("div",{className:ie(ke.container,t&&ke["container--error"]),children:w.jsx(an,{error:t==null?void 0:t.message,helper:n==null?void 0:n.message,id:`input-${o}`,label:u?w.jsxs(w.Fragment,{children:[r," ",u]}):r,noPadding:!0,children:w.jsx("div",{className:ke.inputContainer,children:w.jsxs("div",{className:ke.inputContainer,children:[w.jsx("input",{"aria-describedby":`error-${o}`,className:ie(e,ke[`input--${e}`],ke.input,l&&ke["input--prefix"],i&&ke["input--missing"],t&&ke["input--error"]),id:`input-${o}`,onBlur:g=>{s&&s(g)},onFocus:g=>{a&&a(g)},...d,ref:g=>{p.current=g,f&&(typeof f=="function"?f(g):f.current=g)}}),w.jsxs("div",{className:ke.rightContent,children:[t&&w.jsx("div",{className:ke.errorIcon,children:w.jsx(Le,{icon:"error"})}),c]}),l&&w.jsx("span",{className:ke.prefix,children:l})]})})})})},t9=h.forwardRef(e9),SC={title:"_title_vemju_1","icon-position":"_icon-position_vemju_6"},n9={Description:({children:e})=>w.jsx(he,{variant:"form-helper",children:e}),Icon:e=>w.jsx("div",{className:SC["icon-position"],children:w.jsx(Le,{...e})}),Root:({children:e})=>w.jsx("div",{children:e}),Title:({children:e,className:t})=>w.jsx(he,{className:ie(t,SC.title),variant:"form-helper",children:e})};var PC="Toggle",TC=P.forwardRef((e,t)=>{const{pressed:n,defaultPressed:o,onPressedChange:r,...i}=e,[s,a]=kt({prop:n,onChange:r,defaultProp:o??!1,caller:PC});return w.jsx(ye.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:ge(e.onClick,()=>{e.disabled||a(!s)})})});TC.displayName=PC;const o9={toggle:"_toggle_cc48m_1"},r9=({children:e,...t})=>w.jsx(TC,{className:o9.toggle,...t,children:w.jsx("span",{className:"sr-only",children:e})});var i9=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s9="VisuallyHidden",IC=P.forwardRef((e,t)=>w.jsx(ye.span,{...e,ref:t,style:{...i9,...e.style}}));IC.displayName=s9;var a9=IC,[Ds]=gt("Tooltip",[ms]),ks=ms(),DC="TooltipProvider",l9=700,Dc="tooltip.open",[u9,kc]=Ds(DC),kC=e=>{const{__scopeTooltip:t,delayDuration:n=l9,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=P.useRef(!0),a=P.useRef(!1),l=P.useRef(0);return P.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),w.jsx(u9,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:P.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:P.useCallback(c=>{a.current=c},[]),disableHoverableContent:r,children:i})};kC.displayName=DC;var Ar="Tooltip",[c9,Cr]=Ds(Ar),MC=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,l=kc(Ar,e.__scopeTooltip),c=ks(t),[u,d]=P.useState(null),f=Yn(),p=P.useRef(0),g=s??l.disableHoverableContent,v=a??l.delayDuration,y=P.useRef(!1),[b,m]=kt({prop:o,defaultProp:r??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Dc))):l.onClose(),i==null||i(O)},caller:Ar}),C=P.useMemo(()=>b?y.current?"delayed-open":"instant-open":"closed",[b]),E=P.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,m(!0)},[m]),x=P.useCallback(()=>{window.clearTimeout(p.current),p.current=0,m(!1)},[m]),I=P.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,m(!0),p.current=0},v)},[v,m]);return P.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(c0,{...c,children:w.jsx(c9,{scope:t,contentId:f,open:b,stateAttribute:C,trigger:u,onTriggerChange:d,onTriggerEnter:P.useCallback(()=>{l.isOpenDelayedRef.current?I():E()},[l.isOpenDelayedRef,I,E]),onTriggerLeave:P.useCallback(()=>{g?x():(window.clearTimeout(p.current),p.current=0)},[x,g]),onOpen:E,onClose:x,disableHoverableContent:g,children:n})})};MC.displayName=Ar;var Mc="TooltipTrigger",BC=P.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Cr(Mc,n),i=kc(Mc,n),s=ks(n),a=P.useRef(null),l=Re(t,a,r.onTriggerChange),c=P.useRef(!1),u=P.useRef(!1),d=P.useCallback(()=>c.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(vc,{asChild:!0,...s,children:w.jsx(ye.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:ge(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ge(e.onFocus,()=>{c.current||r.onOpen()}),onBlur:ge(e.onBlur,r.onClose),onClick:ge(e.onClick,r.onClose)})})});BC.displayName=Mc;var Bc="TooltipPortal",[d9,f9]=Ds(Bc,{forceMount:void 0}),OC=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=Cr(Bc,t);return w.jsx(d9,{scope:t,forceMount:n,children:w.jsx(jt,{present:n||i.open,children:w.jsx(mc,{asChild:!0,container:r,children:o})})})};OC.displayName=Bc;var Do="TooltipContent",NC=P.forwardRef((e,t)=>{const n=f9(Do,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=Cr(Do,e.__scopeTooltip);return w.jsx(jt,{present:o||s.open,children:s.disableHoverableContent?w.jsx(FC,{side:r,...i,ref:t}):w.jsx(p9,{side:r,...i,ref:t})})}),p9=P.forwardRef((e,t)=>{const n=Cr(Do,e.__scopeTooltip),o=kc(Do,e.__scopeTooltip),r=P.useRef(null),i=Re(t,r),[s,a]=P.useState(null),{trigger:l,onClose:c}=n,u=r.current,{onPointerInTransitChange:d}=o,f=P.useCallback(()=>{a(null),d(!1)},[d]),p=P.useCallback((g,v)=>{const y=g.currentTarget,b={x:g.clientX,y:g.clientY},m=g9(b,y.getBoundingClientRect()),C=y9(b,m),E=b9(v.getBoundingClientRect()),x=C9([...C,...E]);a(x),d(!0)},[d]);return P.useEffect(()=>()=>f(),[f]),P.useEffect(()=>{if(l&&u){const g=y=>p(y,u),v=y=>p(y,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",v)}}},[l,u,p,f]),P.useEffect(()=>{if(s){const g=v=>{const y=v.target,b={x:v.clientX,y:v.clientY},m=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),C=!A9(b,s);m?f():C&&(f(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,s,c,f]),w.jsx(FC,{...e,ref:i})}),[h9,v9]=Ds(Ar,{isInside:!1}),m9=WC("TooltipContent"),FC=P.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,l=Cr(Do,n),c=ks(n),{onClose:u}=l;return P.useEffect(()=>(document.addEventListener(Dc,u),()=>document.removeEventListener(Dc,u)),[u]),P.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),w.jsx(Ju,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:w.jsxs(d0,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.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:[w.jsx(m9,{children:o}),w.jsx(h9,{scope:n,isInside:!0,children:w.jsx(a9,{id:l.contentId,role:"tooltip",children:r||o})})]})})});NC.displayName=Do;var LC="TooltipArrow",VC=P.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=ks(n);return v9(LC,n).isInside?null:w.jsx(f0,{...r,...o,ref:t})});VC.displayName=LC;function g9(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")}}function y9(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});break}return o}function b9(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}]}function A9(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],l=t[s],c=a.x,u=a.y,d=l.x,f=l.y;u>o!=f>o&&n<(d-c)*(o-u)/(f-u)+c&&(r=!r)}return r}function C9(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),w9(t)}function w9(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var E9=kC,x9=MC,S9=BC,P9=OC,T9=NC,I9=VC;const Oc={control:"_control_1er46_1",tooltip:"_tooltip_1er46_11",beak:"_beak_1er46_19"},D9={Content:({children:e,className:t,...n})=>w.jsx(P9,{children:w.jsxs(T9,{className:ie(t,Oc.tooltip),...n,children:[e,w.jsx(I9,{className:Oc.beak})]})}),Root:({children:e,...t})=>w.jsx(E9,{children:w.jsx(x9,{...t,children:e})}),Trigger:({children:e,className:t,...n})=>w.jsx(S9,{className:ie(t,Oc.control),...n,children:e})},Nc={"visual--paper":"_visual--paper_1h4mu_1","visual--bento":"_visual--bento_1h4mu_18","visual--bento-icon":"_visual--bento-icon_1h4mu_29","orientation--center":"_orientation--center_1h4mu_40","type--trust-pilot":"_type--trust-pilot_1h4mu_57"},k9=({as:e,children:t,className:n,variants:o})=>{const r={visual:"paper",...o},i=e||"div";return w.jsx(i,{className:ie(n,Nc[`visual--${r.visual}`],r.orientation&&Nc[`orientation--${r.orientation}`],r.type&&Nc[`type--${r.type}`]),children:t})};$.Accordion=kw,$.Button=Dr,$.Buttons=fA,$.Callout=Bw,$.Card=id,$.Cards=Ow,$.Checkbox=Kw,$.Columns=Uw,$.ComboBox=V3,$.DatePicker=H3,$.Disclosure=W3,$.Divider=z3,$.Field=Ub,$.Form=q3,$.Heading=qb,$.Icon=Le,$.Item=zb,$.Link=Z3,$.Loading=_3,$.MaterialSymbol=Ks,$.Modal=nM,$.NativeCheckbox=xd,$.NativeComboBox=K3,$.NativeDatePicker=Qb,$.NativeNumberField=pA,$.NativePhoneField=dM,$.NativeRadioGroup=B2,$.NativeSelect=sC,$.NativeTextField=t9,$.NumberField=rM,$.OTPInput=BM,$.Options=jb,$.PhoneField=sM,$.PinInput=IM,$.Popover=a2,$.ProgressIndicator=l2,$.RadioGroup=M2,$.Range=N2,$.Root=Wb,$.Select=L2,$.Skeleton=K2,$.Table=R2,$.TableBody=cC,$.TableData=fC,$.TableFooter=pC,$.TableHead=lC,$.TableHeader=uC,$.TableRoot=aC,$.TableRow=dC,$.Tabs=G2,$.Tag=Y2,$.Text=Z2,$.TextField=$2,$.Toast=n9,$.Toggle=r9,$.Tooltip=D9,$.Typography=he,$.Wrapper=k9,$.useModal=rs,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|