@kroo-web/design-system 1.20.1 → 1.20.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.
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1199,7 +1199,7 @@ const gw = "_container_1wdpi_1", yw = "_label_1wdpi_6", Aw = "_helper_1wdpi_13",
|
|
|
1199
1199
|
id: r,
|
|
1200
1200
|
label: i
|
|
1201
1201
|
}) => /* @__PURE__ */ te("div", { className: Sr.container, children: [
|
|
1202
|
-
!o && /* @__PURE__ */ w(
|
|
1202
|
+
!o && i && /* @__PURE__ */ w(
|
|
1203
1203
|
ge,
|
|
1204
1204
|
{
|
|
1205
1205
|
as: "label",
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function($,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-hook-form"),require("zustand")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-hook-form","zustand"],A):($=typeof globalThis<"u"?globalThis:$||self,A($["@kroo-web/design-system"]={},$["react/jsx-runtime"],$.react,$["react-dom"],$["react-hook-form"],$.zustand))})(this,function($,A,h,vn,ke,M0){"use strict";function sc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=sc(h),ac=sc(vn);function ht(e,t=[]){let n=[];function o(i,s){const a=P.createContext(s),l=n.length;n=[...n,s];const u=d=>{var y;const{scope:f,children:p,...m}=d,v=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,g=P.useMemo(()=>m,Object.values(m));return A.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function c(d,f){var v;const p=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,m=P.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const r=()=>{const i=n.map(s=>P.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return P.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,B0(r,...t)]}function B0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function lc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uc(...e){return t=>{let n=!1;const o=e.map(r=>{const i=lc(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():lc(e[r],null)}}}}function Ke(...e){return P.useCallback(uc(...e),e)}function gr(e){const t=O0(e),n=P.forwardRef((o,r)=>{const{children:i,...s}=o,a=P.Children.toArray(i),l=a.find(F0);if(l){const u=l.props.children,c=a.map(d=>d===l?P.Children.count(u)>1?P.Children.only(null):P.isValidElement(u)?u.props.children:null:d);return A.jsx(t,{...s,ref:r,children:P.isValidElement(u)?P.cloneElement(u,void 0,c):null})}return A.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function O0(e){const t=P.forwardRef((n,o)=>{const{children:r,...i}=n;if(P.isValidElement(r)){const s=V0(r),a=L0(i,r.props);return r.type!==P.Fragment&&(a.ref=o?uc(o,s):s),P.cloneElement(r,a)}return P.Children.count(r)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cc=Symbol("radix.slottable");function N0(e){const t=({children:n})=>A.jsx(A.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=cc,t}function F0(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cc}function L0(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{i(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function V0(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function dc(e){const t=e+"CollectionProvider",[n,o]=ht(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:g,children:y}=v,b=h.useRef(null),w=h.useRef(new Map).current;return A.jsx(r,{scope:g,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=gr(a),u=h.forwardRef((v,g)=>{const{scope:y,children:b}=v,w=i(a,y),S=Ke(g,w.collectionRef);return A.jsx(l,{ref:S,children:b})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=gr(c),p=h.forwardRef((v,g)=>{const{scope:y,children:b,...w}=v,S=h.useRef(null),x=Ke(g,S),T=i(c,y);return h.useEffect(()=>(T.itemMap.set(S,{ref:S,...w}),()=>void T.itemMap.delete(S))),A.jsx(f,{[d]:"",ref:x,children:b})});p.displayName=c;function m(v){const g=i(e+"CollectionConsumer",v);return h.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((T,N)=>w.indexOf(T.ref.current)-w.indexOf(N.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},m,o]}function de(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Vt(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function xt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=K0({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,a=Vt(n),l=P.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else r(u)},[i,e,r,a]);return[s,l]}function K0({defaultProp:e,onChange:t}){const n=P.useState(e),[o]=n,r=P.useRef(o),i=Vt(t);return P.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}var H0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=H0.reduce((e,t)=>{const n=gr(`Primitive.${t}`),o=P.forwardRef((r,i)=>{const{asChild:s,...a}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(l,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function R0(e,t){e&&ac.flushSync(()=>e.dispatchEvent(t))}var Yt=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{};function U0(e,t){return P.useReducer((n,o)=>t[n][o]??n,e)}var Kt=e=>{const{present:t,children:n}=e,o=j0(t),r=typeof n=="function"?n({present:o.isPresent}):P.Children.only(n),i=Ke(o.ref,W0(r));return typeof n=="function"||o.isPresent?P.cloneElement(r,{ref:i}):null};Kt.displayName="Presence";function j0(e){const[t,n]=P.useState(),o=P.useRef({}),r=P.useRef(e),i=P.useRef("none"),s=e?"mounted":"unmounted",[a,l]=U0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const u=mr(o.current);i.current=a==="mounted"?u:"none"},[a]),Yt(()=>{const u=o.current,c=r.current;if(c!==e){const f=i.current,p=mr(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Yt(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=p=>{const v=mr(o.current).includes(p.animationName);if(p.target===t&&v&&(l("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=p=>{p.target===t&&(i.current=mr(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:P.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function mr(e){return(e==null?void 0:e.animationName)||"none"}function W0(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z0=P[" useId ".trim().toString()]||(()=>{}),Q0=0;function Vn(e){const[t,n]=P.useState(z0());return Yt(()=>{n(o=>o??String(Q0++))},[e]),t?`radix-${t}`:""}var vs="Collapsible",[q0,fc]=ht(vs),[G0,gs]=q0(vs),pc=P.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:i,onOpenChange:s,...a}=e,[l=!1,u]=xt({prop:o,defaultProp:r,onChange:s});return A.jsx(G0,{scope:n,disabled:i,contentId:Vn(),open:l,onOpenToggle:P.useCallback(()=>u(c=>!c),[u]),children:A.jsx(Ae.div,{"data-state":ys(l),"data-disabled":i?"":void 0,...a,ref:t})})});pc.displayName=vs;var hc="CollapsibleTrigger",vc=P.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=gs(hc,n);return A.jsx(Ae.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":ys(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:de(e.onClick,r.onOpenToggle)})});vc.displayName=hc;var ms="CollapsibleContent",gc=P.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=gs(ms,e.__scopeCollapsible);return A.jsx(Kt,{present:n||r.open,children:({present:i})=>A.jsx(Y0,{...o,ref:t,present:i})})});gc.displayName=ms;var Y0=P.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...i}=e,s=gs(ms,n),[a,l]=P.useState(o),u=P.useRef(null),c=Ke(t,u),d=P.useRef(0),f=d.current,p=P.useRef(0),m=p.current,v=s.open||a,g=P.useRef(v),y=P.useRef(void 0);return P.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),Yt(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();d.current=w.height,p.current=w.width,g.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),l(o)}},[s.open,o]),A.jsx(Ae.div,{"data-state":ys(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v,...i,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:v&&r})});function ys(e){return e?"open":"closed"}var Z0=pc,X0=vc,J0=gc,_0=P.createContext(void 0);function yr(e){const t=P.useContext(_0);return e||t||"ltr"}var Ht="Accordion",$0=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bs,eC,tC]=dc(Ht),[br,RM]=ht(Ht,[tC,fc]),As=fc(),mc=h.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,i=o;return A.jsx(bs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?A.jsx(iC,{...i,ref:t}):A.jsx(rC,{...r,ref:t})})});mc.displayName=Ht;var[yc,nC]=br(Ht),[bc,oC]=br(Ht,{collapsible:!1}),rC=h.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:i=!1,...s}=e,[a,l]=xt({prop:n,defaultProp:o,onChange:r});return A.jsx(yc,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:h.useCallback(()=>i&&l(""),[i,l]),children:A.jsx(bc,{scope:e.__scopeAccordion,collapsible:i,children:A.jsx(Ac,{...s,ref:t})})})}),iC=h.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...i}=e,[s=[],a]=xt({prop:n,defaultProp:o,onChange:r}),l=h.useCallback(c=>a((d=[])=>[...d,c]),[a]),u=h.useCallback(c=>a((d=[])=>d.filter(f=>f!==c)),[a]);return A.jsx(yc,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:A.jsx(bc,{scope:e.__scopeAccordion,collapsible:!0,children:A.jsx(Ac,{...i,ref:t})})})}),[sC,Ar]=br(Ht),Ac=h.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:i="vertical",...s}=e,a=h.useRef(null),l=Ke(a,t),u=eC(n),d=yr(r)==="ltr",f=de(e.onKeyDown,p=>{var C;if(!$0.includes(p.key))return;const m=p.target,v=u().filter(O=>{var B;return!((B=O.ref.current)!=null&&B.disabled)}),g=v.findIndex(O=>O.ref.current===m),y=v.length;if(g===-1)return;p.preventDefault();let b=g;const w=0,S=y-1,x=()=>{b=g+1,b>S&&(b=w)},T=()=>{b=g-1,b<w&&(b=S)};switch(p.key){case"Home":b=w;break;case"End":b=S;break;case"ArrowRight":i==="horizontal"&&(d?x():T());break;case"ArrowDown":i==="vertical"&&x();break;case"ArrowLeft":i==="horizontal"&&(d?T():x());break;case"ArrowUp":i==="vertical"&&T();break}const N=b%y;(C=v[N].ref.current)==null||C.focus()});return A.jsx(sC,{scope:n,disabled:o,direction:r,orientation:i,children:A.jsx(bs.Slot,{scope:n,children:A.jsx(Ae.div,{...s,"data-orientation":i,ref:l,onKeyDown:o?void 0:f})})})}),Cr="AccordionItem",[aC,Cs]=br(Cr),Cc=h.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,i=Ar(Cr,n),s=nC(Cr,n),a=As(n),l=Vn(),u=o&&s.value.includes(o)||!1,c=i.disabled||e.disabled;return A.jsx(aC,{scope:n,open:u,disabled:c,triggerId:l,children:A.jsx(Z0,{"data-orientation":i.orientation,"data-state":Pc(u),...a,...r,ref:t,disabled:c,open:u,onOpenChange:d=>{d?s.onItemOpen(o):s.onItemClose(o)}})})});Cc.displayName=Cr;var wc="AccordionHeader",lC=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ar(Ht,n),i=Cs(wc,n);return A.jsx(Ae.h3,{"data-orientation":r.orientation,"data-state":Pc(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:t})});lC.displayName=wc;var ws="AccordionTrigger",xc=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ar(Ht,n),i=Cs(ws,n),s=oC(ws,n),a=As(n);return A.jsx(bs.ItemSlot,{scope:n,children:A.jsx(X0,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...a,...o,ref:t})})});xc.displayName=ws;var Ec="AccordionContent",Sc=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ar(Ht,n),i=Cs(Ec,n),s=As(n);return A.jsx(J0,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...s,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Sc.displayName=Ec;function Pc(e){return e?"open":"closed"}var uC=mc,cC=Cc,dC=xc,fC=Sc;function Tc(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Tc(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function se(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Tc(e))&&(o&&(o+=" "),o+=t);return o}const gn={"visual--primary":"_visual--primary_1h79s_1","visual--secondary":"_visual--secondary_1h79s_6","visual--tertiary":"_visual--tertiary_1h79s_11","size--horizontal--none":"_size--horizontal--none_1h79s_16","size--vertical--none":"_size--vertical--none_1h79s_17","size--horizontal--extra-small":"_size--horizontal--extra-small_1h79s_21","size--vertical--extra-small":"_size--vertical--extra-small_1h79s_25","size--horizontal--small":"_size--horizontal--small_1h79s_30","size--vertical--small":"_size--vertical--small_1h79s_34","size--horizontal--medium":"_size--horizontal--medium_1h79s_39","size--vertical--medium":"_size--vertical--medium_1h79s_43","size--horizontal--large":"_size--horizontal--large_1h79s_48","size--vertical--large":"_size--vertical--large_1h79s_52","radius--none":"_radius--none_1h79s_57","radius--small":"_radius--small_1h79s_61","radius--medium":"_radius--medium_1h79s_65","radius--large":"_radius--large_1h79s_69","is-square":"_is-square_1h79s_73"},pC="div";function Ic({as:e,children:t,className:n,isSquare:o,variants:r,...i}){const s={radius:"large",size:{horizontal:"medium",vertical:"medium"},visual:"primary",...r},a=e||pC;return A.jsx(a,{className:se(n,gn.card,gn[`visual--${s.visual}`],gn[`size--vertical--${s.size.vertical}`],gn[`size--horizontal--${s.size.horizontal}`],gn[`radius--${s.radius}`],gn[`type--${e}`],o&&gn["is-square"]),...i,children:t})}function Dc(){const[e,t]=h.useState({height:void 0,width:600});return h.useEffect(()=>{function n(){t({height:window.innerHeight,width:window.innerWidth||600})}return window.addEventListener("resize",n,{passive:!0}),n(),()=>window.removeEventListener("resize",n)},[]),e}const hC=e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),kc={large:40,regular:24,regularMobile:20,xlarge:48},Mc={light:200,medium:400,mobileRegularMedium:500,mobileRegularNormal:400,normal:300},xs=h.forwardRef(({className:e,color:t,fill:n=!1,grade:o,icon:r,size:i,style:s,weight:a,...l},u)=>{const c={color:t,...s};return n&&(c.fontVariationSettings=[c.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),a&&(c.fontVariationSettings=[c.fontVariationSettings,`"wght" ${a}`].filter(Boolean).join(", ")),o&&(c.fontVariationSettings=[c.fontVariationSettings,`"GRAD" ${o}`].filter(Boolean).join(", ")),i&&(c.fontVariationSettings=[c.fontVariationSettings,`"opsz" ${i}`].filter(Boolean).join(", "),c.fontSize=i),A.jsx("span",{...l,className:se("material-symbols-rounded",e),ref:u,style:c,children:r})});xs.displayName="MaterialSymbol";const Me=({size:e="regular",weight:t="normal",...n})=>{const{width:o}=Dc(),r=o<768,i=r&&e==="regular"?kc.regularMobile:kc[e],s=e==="regular"&&r?Mc[`mobileRegular${hC(t)}`]:Mc[t];return A.jsx("span",{style:{display:"block",height:`${i}px`,width:`${i}px`},translate:"no",children:A.jsx(xs,{size:i,weight:s,...n})})},vC={"form-label":"_form-label_e76am_1","form-helper":"_form-helper_e76am_8","form-button":"_form-button_e76am_14","form-input-normal":"_form-input-normal_e76am_21","form-input-semi-bold":"_form-input-semi-bold_e76am_27","content-regular-light":"_content-regular-light_e76am_34","content-regular":"_content-regular_e76am_34","content-regular-semi-bold":"_content-regular-semi-bold_e76am_47","content-large-light":"_content-large-light_e76am_54","content-large":"_content-large_e76am_54","content-large-semi-bold":"_content-large-semi-bold_e76am_67","content-title-light":"_content-title-light_e76am_74","content-title":"_content-title_e76am_74","content-title-semi-bold":"_content-title-semi-bold_e76am_87",tag:"_tag_e76am_94","marketing-text-light":"_marketing-text-light_e76am_162","marketing-text-regular":"_marketing-text-regular_e76am_166","marketing-text-semi-bold":"_marketing-text-semi-bold_e76am_170","marketing-quote-light":"_marketing-quote-light_e76am_175","marketing-quote-regular":"_marketing-quote-regular_e76am_179","marketing-quote-semi-bold":"_marketing-quote-semi-bold_e76am_183","marketing-small-light":"_marketing-small-light_e76am_187","marketing-small-regular":"_marketing-small-regular_e76am_194","marketing-small-semi-bold":"_marketing-small-semi-bold_e76am_201","marketing-medium-light":"_marketing-medium-light_e76am_208","marketing-medium-regular":"_marketing-medium-regular_e76am_215","marketing-medium-semi-bold":"_marketing-medium-semi-bold_e76am_222","marketing-large-light":"_marketing-large-light_e76am_229","marketing-large-regular":"_marketing-large-regular_e76am_236","marketing-large-semi-bold":"_marketing-large-semi-bold_e76am_243","marketing-tag-light":"_marketing-tag-light_e76am_250","marketing-tag-regular":"_marketing-tag-regular_e76am_258","marketing-tag-semi-bold":"_marketing-tag-semi-bold_e76am_266","marketing-small-medium":"_marketing-small-medium_e76am_283","marketing-heading-1":"_marketing-heading-1_e76am_379","marketing-heading-2":"_marketing-heading-2_e76am_386","marketing-heading-3":"_marketing-heading-3_e76am_394","marketing-heading-4":"_marketing-heading-4_e76am_401","marketing-heading-5":"_marketing-heading-5_e76am_408","marketing-heading-6":"_marketing-heading-6_e76am_414","marketing-heading-7":"_marketing-heading-7_e76am_420","footer-regular":"_footer-regular_e76am_502","footer-semi-bold":"_footer-semi-bold_e76am_510"},ce=({as:e,children:t,className:n,variant:o="content-regular",...r})=>{const i=e||"p";return A.jsx(i,{className:se(vC[o],n),...r,children:t})},Zt={root:"_root_15emg_1","root--detached":"_root--detached_15emg_8",item:"_item_15emg_15",trigger:"_trigger_15emg_31","trigger-title":"_trigger-title_15emg_48",content:"_content_15emg_62",controls:"_controls_15emg_66"},Es=h.createContext({active:[]}),gC=({children:e})=>{const[t,n]=h.useState([]);return A.jsx(Es.Provider,{value:{active:t,setActive:n},children:e})},Ss=h.createContext({setValue:()=>null,value:""}),mC=({children:e})=>{const[t,n]=h.useState("");return A.jsx(Ss.Provider,{value:{setValue:n,value:t},children:e})},Bc=h.forwardRef(({children:e,grouping:t,...n},o)=>{const{setActive:r}=h.useContext(Es);return A.jsx(uC,{ref:o,...n,className:se(Zt.root,t==="detached"&&Zt["root--detached"]),onValueChange:i=>{r&&r(i)},children:e})});Bc.displayName="AccordionRoot";const Oc=h.forwardRef(({...e},t)=>{const{setValue:n}=h.useContext(Ss);return h.useEffect(()=>{n(e.value)},[e.value,n]),A.jsx(cC,{ref:t,...e,className:Zt.item})});Oc.displayName="AccordionItem";const yC=()=>{const{value:e}=h.useContext(Ss),{active:t}=h.useContext(Es),n=t.includes(e);return A.jsx("div",{className:se(Zt.controls),children:A.jsx(Me,{className:Zt.icon,icon:n?"remove_circle":"add_circle"})})},bC=({as:e,children:t,className:n,size:o})=>o==="large"?A.jsx(ce,{as:e,className:n,variant:"content-large-semi-bold",children:t}):A.jsx(ce,{as:e,className:n,children:t}),Nc=h.forwardRef(({as:e,children:t,controls:n,size:o="regular",...r},i)=>A.jsxs(dC,{ref:i,...r,className:Zt.trigger,children:[A.jsx(bC,{as:e,className:Zt["trigger-title"],size:o,children:t}),n||A.jsx(yC,{})]}));Nc.displayName="AccordionTrigger";const Fc=h.forwardRef(({children:e,...t},n)=>A.jsx(fC,{ref:n,...t,children:A.jsx(Ic,{className:se(Zt.content),variants:{radius:"none",size:{horizontal:"medium",vertical:"medium"}},children:e})}));Fc.displayName="AccordionContent";const AC={Content:Fc,Item:e=>A.jsx(mC,{children:A.jsx(Oc,{...e})}),Root:e=>A.jsx(gC,{children:A.jsx(Bc,{...e})}),Trigger:Nc},Rt={button:"_button_umgro_1",action:"_action_umgro_18",focus:"_focus_umgro_34",primary:"_primary_umgro_47",hover:"_hover_umgro_53",active:"_active_umgro_58",secondary:"_secondary_umgro_64",tertiary:"_tertiary_umgro_81",ghost:"_ghost_umgro_98",danger:"_danger_umgro_117",standard:"_standard_umgro_136",text:"_text_umgro_228","only-icon":"_only-icon_umgro_371",nav:"_nav_umgro_383",outline:"_outline_umgro_394",disabled:"_disabled_umgro_415",width_full_base:"_width_full_base_umgro_483",width_auto_base:"_width_auto_base_umgro_488",width_full_tablet:"_width_full_tablet_umgro_492",width_auto_tablet:"_width_auto_tablet_umgro_497",width_full_desktop:"_width_full_desktop_umgro_502",width_auto_desktop:"_width_auto_desktop_umgro_507"},CC="button";function wr({as:e,children:t,className:n="",onlyIcon:o=!1,variant:r,visualType:i,fullWidth:s=!1,...a}){const l=e||CC,u=Array.isArray(s)?[s[0],s[1],s[2]]:[s,s,s],c=[u[0]?Rt.width_full_base:Rt.width_auto_base,u[1]!==void 0?u[1]?Rt.width_full_tablet:Rt.width_auto_tablet:null,u[2]!==void 0?u[2]?Rt.width_full_desktop:Rt.width_auto_desktop:null];return A.jsxs(l,{className:se(n,Rt[r||"primary"],Rt[i||"button"],o&&Rt["only-icon"],c),...a,children:[o&&t,!o&&A.jsx(ce,{variant:"form-button",children:t})]})}const Lc={container:"_container_s8rx3_1",primary:"_primary_s8rx3_19",warning:"_warning_s8rx3_24",error:"_error_s8rx3_29",positive:"_positive_s8rx3_34",secondary:"_secondary_s8rx3_39"},wC={Icon:Me,Root:({children:e,type:t="primary"})=>A.jsx("div",{className:se(Lc.container,Lc[t]),children:e}),Text:({children:e,...t})=>A.jsx(ce,{...t,children:e})},Vc={cards:"_cards_jxqdk_1","layout--bento-three":"_layout--bento-three_jxqdk_5","layout--bento-four":"_layout--bento-four_jxqdk_22","layout--bento-five":"_layout--bento-five_jxqdk_37"},xC=({as:e,children:t,variants:n})=>{const o=e||"div",r={layout:"bento-three",...n};return A.jsx(o,{className:se(Vc.cards,Vc[`layout--${r.layout}`]),children:t})};function Kc(e){const t=P.useRef({value:e,previous:e});return P.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ps(e){const[t,n]=P.useState(void 0);return Yt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Ts="Checkbox",[EC,S2]=ht(Ts),[SC,PC]=EC(Ts),Hc=P.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:i,required:s,disabled:a,value:l="on",onCheckedChange:u,form:c,...d}=e,[f,p]=P.useState(null),m=Ke(t,S=>p(S)),v=P.useRef(!1),g=f?c||!!f.closest("form"):!0,[y=!1,b]=xt({prop:r,defaultProp:i,onChange:u}),w=P.useRef(y);return P.useEffect(()=>{const S=f==null?void 0:f.form;if(S){const x=()=>b(w.current);return S.addEventListener("reset",x),()=>S.removeEventListener("reset",x)}},[f,b]),A.jsxs(SC,{scope:n,state:y,disabled:a,children:[A.jsx(Ae.button,{type:"button",role:"checkbox","aria-checked":Xt(y)?"mixed":y,"aria-required":s,"data-state":jc(y),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:m,onKeyDown:de(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:de(e.onClick,S=>{b(x=>Xt(x)?!0:!x),g&&(v.current=S.isPropagationStopped(),v.current||S.stopPropagation())})}),g&&A.jsx(TC,{control:f,bubbles:!v.current,name:o,value:l,checked:y,required:s,disabled:a,form:c,style:{transform:"translateX(-100%)"},defaultChecked:Xt(i)?!1:i})]})});Hc.displayName=Ts;var Rc="CheckboxIndicator",Uc=P.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,i=PC(Rc,n);return A.jsx(Kt,{present:o||Xt(i.state)||i.state===!0,children:A.jsx(Ae.span,{"data-state":jc(i.state),"data-disabled":i.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});Uc.displayName=Rc;var TC=e=>{const{control:t,checked:n,bubbles:o=!0,defaultChecked:r,...i}=e,s=P.useRef(null),a=Kc(n),l=Ps(t);P.useEffect(()=>{const c=s.current,d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&p){const m=new Event("click",{bubbles:o});c.indeterminate=Xt(n),p.call(c,Xt(n)?!1:n),c.dispatchEvent(m)}},[a,n,o]);const u=P.useRef(Xt(n)?!1:n);return A.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r??u.current,...i,tabIndex:-1,ref:s,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Xt(e){return e==="indeterminate"}function jc(e){return Xt(e)?"indeterminate":e?"checked":"unchecked"}var IC=Hc,DC=Uc;const xr={container:"_container_1wdpi_1",label:"_label_1wdpi_6",helper:"_helper_1wdpi_13",error:"_error_1wdpi_17"},Jt=({children:e,error:t,helper:n,hideLabel:o,id:r,label:i})=>A.jsxs("div",{className:xr.container,children:[!o&&A.jsx(ce,{as:"label",className:xr.label,htmlFor:r,variant:"form-helper",children:i}),e,n&&A.jsx(ce,{className:xr.helper,variant:"form-helper",children:n}),t&&A.jsx(ce,{className:xr.error,variant:"form-helper",children:t})]}),vt={container:"_container_m317t_1",root:"_root_m317t_5",error:"_error_m317t_28",radio:"_radio_m317t_32",indicator:"_indicator_m317t_36",label:"_label_m317t_39",checkboxContainer:"_checkboxContainer_m317t_46",nativeLabel:"_nativeLabel_m317t_53",errorIcon:"_errorIcon_m317t_63",nativeInput:"_nativeInput_m317t_70","nativeInput--error":"_nativeInput--error_m317t_98"},kC=e=>{const{control:t,formState:{errors:n={}}}=ke.useFormContext(),{name:o}=e,r={...e,error:n&&n[o]};return A.jsx(ke.Controller,{control:t,name:o,render:({field:i})=>A.jsx(MC,{...r,field:{...i}})})},MC=({field:e,id:t,label:n,variant:o})=>A.jsxs("div",{className:vt.container,children:[A.jsx(IC,{className:se(vt.root,vt[o||""]),id:t,...e,children:A.jsx(DC,{className:vt.indicator,children:A.jsx(Me,{icon:"check"})})}),A.jsx(ce,{as:"label",className:vt.label,htmlFor:t,variant:"form-input-normal",children:n})]}),Wc=h.forwardRef(({disabled:e,error:t,helper:n,id:o,label:r,...i},s)=>A.jsx("div",{className:vt.container,children:A.jsx(Jt,{error:t==null?void 0:t.message,helper:n==null?void 0:n.message,id:"checkbox-default",children:A.jsxs("div",{className:vt.checkboxContainer,children:[A.jsx("input",{className:se(vt.nativeInput,{[vt["nativeInput--error"]]:t}),disabled:e,id:o,ref:s,type:"checkbox",...i}),A.jsxs(ce,{as:"label",className:vt.nativeLabel,htmlFor:o,variant:"form-input-normal",children:[r,t&&A.jsx("span",{className:vt.errorIcon,children:A.jsx(Me,{icon:"error"})})]})]})})}));Wc.displayName="NativeCheckbox";const BC={container:"_container_5w0vv_1"},OC=({children:e,cols:t})=>A.jsx("div",{className:BC.container,style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e});function Et(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},le.apply(null,arguments)}function zc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Is(e,t){return Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Is(e,t)}function NC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Is(e,t)}function Qc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var Ds={exports:{}},Er={exports:{}},he={};/** @license React v16.13.1
|
|
1
|
+
(function($,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-hook-form"),require("zustand")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-hook-form","zustand"],A):($=typeof globalThis<"u"?globalThis:$||self,A($["@kroo-web/design-system"]={},$["react/jsx-runtime"],$.react,$["react-dom"],$["react-hook-form"],$.zustand))})(this,function($,A,h,vn,ke,M0){"use strict";function sc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=sc(h),ac=sc(vn);function ht(e,t=[]){let n=[];function o(i,s){const a=P.createContext(s),l=n.length;n=[...n,s];const u=d=>{var y;const{scope:f,children:p,...m}=d,v=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,g=P.useMemo(()=>m,Object.values(m));return A.jsx(v.Provider,{value:g,children:p})};u.displayName=i+"Provider";function c(d,f){var v;const p=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,m=P.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,c]}const r=()=>{const i=n.map(s=>P.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return P.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,B0(r,...t)]}function B0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...a,...d}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function lc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uc(...e){return t=>{let n=!1;const o=e.map(r=>{const i=lc(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():lc(e[r],null)}}}}function Ke(...e){return P.useCallback(uc(...e),e)}function gr(e){const t=O0(e),n=P.forwardRef((o,r)=>{const{children:i,...s}=o,a=P.Children.toArray(i),l=a.find(F0);if(l){const u=l.props.children,c=a.map(d=>d===l?P.Children.count(u)>1?P.Children.only(null):P.isValidElement(u)?u.props.children:null:d);return A.jsx(t,{...s,ref:r,children:P.isValidElement(u)?P.cloneElement(u,void 0,c):null})}return A.jsx(t,{...s,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function O0(e){const t=P.forwardRef((n,o)=>{const{children:r,...i}=n;if(P.isValidElement(r)){const s=V0(r),a=L0(i,r.props);return r.type!==P.Fragment&&(a.ref=o?uc(o,s):s),P.cloneElement(r,a)}return P.Children.count(r)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cc=Symbol("radix.slottable");function N0(e){const t=({children:n})=>A.jsx(A.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=cc,t}function F0(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cc}function L0(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...a)=>{i(...a),r(...a)}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function V0(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function dc(e){const t=e+"CollectionProvider",[n,o]=ht(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:g,children:y}=v,b=h.useRef(null),w=h.useRef(new Map).current;return A.jsx(r,{scope:g,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const a=e+"CollectionSlot",l=gr(a),u=h.forwardRef((v,g)=>{const{scope:y,children:b}=v,w=i(a,y),S=Ke(g,w.collectionRef);return A.jsx(l,{ref:S,children:b})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=gr(c),p=h.forwardRef((v,g)=>{const{scope:y,children:b,...w}=v,S=h.useRef(null),x=Ke(g,S),T=i(c,y);return h.useEffect(()=>(T.itemMap.set(S,{ref:S,...w}),()=>void T.itemMap.delete(S))),A.jsx(f,{[d]:"",ref:x,children:b})});p.displayName=c;function m(v){const g=i(e+"CollectionConsumer",v);return h.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((T,N)=>w.indexOf(T.ref.current)-w.indexOf(N.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:u,ItemSlot:p},m,o]}function de(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Vt(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function xt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=K0({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,a=Vt(n),l=P.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else r(u)},[i,e,r,a]);return[s,l]}function K0({defaultProp:e,onChange:t}){const n=P.useState(e),[o]=n,r=P.useRef(o),i=Vt(t);return P.useEffect(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}var H0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=H0.reduce((e,t)=>{const n=gr(`Primitive.${t}`),o=P.forwardRef((r,i)=>{const{asChild:s,...a}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),A.jsx(l,{...a,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function R0(e,t){e&&ac.flushSync(()=>e.dispatchEvent(t))}var Yt=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{};function U0(e,t){return P.useReducer((n,o)=>t[n][o]??n,e)}var Kt=e=>{const{present:t,children:n}=e,o=j0(t),r=typeof n=="function"?n({present:o.isPresent}):P.Children.only(n),i=Ke(o.ref,W0(r));return typeof n=="function"||o.isPresent?P.cloneElement(r,{ref:i}):null};Kt.displayName="Presence";function j0(e){const[t,n]=P.useState(),o=P.useRef({}),r=P.useRef(e),i=P.useRef("none"),s=e?"mounted":"unmounted",[a,l]=U0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const u=mr(o.current);i.current=a==="mounted"?u:"none"},[a]),Yt(()=>{const u=o.current,c=r.current;if(c!==e){const f=i.current,p=mr(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Yt(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=p=>{const v=mr(o.current).includes(p.animationName);if(p.target===t&&v&&(l("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=p=>{p.target===t&&(i.current=mr(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:P.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function mr(e){return(e==null?void 0:e.animationName)||"none"}function W0(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z0=P[" useId ".trim().toString()]||(()=>{}),Q0=0;function Vn(e){const[t,n]=P.useState(z0());return Yt(()=>{n(o=>o??String(Q0++))},[e]),t?`radix-${t}`:""}var vs="Collapsible",[q0,fc]=ht(vs),[G0,gs]=q0(vs),pc=P.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:i,onOpenChange:s,...a}=e,[l=!1,u]=xt({prop:o,defaultProp:r,onChange:s});return A.jsx(G0,{scope:n,disabled:i,contentId:Vn(),open:l,onOpenToggle:P.useCallback(()=>u(c=>!c),[u]),children:A.jsx(Ae.div,{"data-state":ys(l),"data-disabled":i?"":void 0,...a,ref:t})})});pc.displayName=vs;var hc="CollapsibleTrigger",vc=P.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=gs(hc,n);return A.jsx(Ae.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":ys(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:de(e.onClick,r.onOpenToggle)})});vc.displayName=hc;var ms="CollapsibleContent",gc=P.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=gs(ms,e.__scopeCollapsible);return A.jsx(Kt,{present:n||r.open,children:({present:i})=>A.jsx(Y0,{...o,ref:t,present:i})})});gc.displayName=ms;var Y0=P.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...i}=e,s=gs(ms,n),[a,l]=P.useState(o),u=P.useRef(null),c=Ke(t,u),d=P.useRef(0),f=d.current,p=P.useRef(0),m=p.current,v=s.open||a,g=P.useRef(v),y=P.useRef(void 0);return P.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),Yt(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const w=b.getBoundingClientRect();d.current=w.height,p.current=w.width,g.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),l(o)}},[s.open,o]),A.jsx(Ae.div,{"data-state":ys(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v,...i,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:v&&r})});function ys(e){return e?"open":"closed"}var Z0=pc,X0=vc,J0=gc,_0=P.createContext(void 0);function yr(e){const t=P.useContext(_0);return e||t||"ltr"}var Ht="Accordion",$0=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bs,eC,tC]=dc(Ht),[br,RM]=ht(Ht,[tC,fc]),As=fc(),mc=h.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,i=o;return A.jsx(bs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?A.jsx(iC,{...i,ref:t}):A.jsx(rC,{...r,ref:t})})});mc.displayName=Ht;var[yc,nC]=br(Ht),[bc,oC]=br(Ht,{collapsible:!1}),rC=h.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:i=!1,...s}=e,[a,l]=xt({prop:n,defaultProp:o,onChange:r});return A.jsx(yc,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:h.useCallback(()=>i&&l(""),[i,l]),children:A.jsx(bc,{scope:e.__scopeAccordion,collapsible:i,children:A.jsx(Ac,{...s,ref:t})})})}),iC=h.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...i}=e,[s=[],a]=xt({prop:n,defaultProp:o,onChange:r}),l=h.useCallback(c=>a((d=[])=>[...d,c]),[a]),u=h.useCallback(c=>a((d=[])=>d.filter(f=>f!==c)),[a]);return A.jsx(yc,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:A.jsx(bc,{scope:e.__scopeAccordion,collapsible:!0,children:A.jsx(Ac,{...i,ref:t})})})}),[sC,Ar]=br(Ht),Ac=h.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:i="vertical",...s}=e,a=h.useRef(null),l=Ke(a,t),u=eC(n),d=yr(r)==="ltr",f=de(e.onKeyDown,p=>{var C;if(!$0.includes(p.key))return;const m=p.target,v=u().filter(O=>{var B;return!((B=O.ref.current)!=null&&B.disabled)}),g=v.findIndex(O=>O.ref.current===m),y=v.length;if(g===-1)return;p.preventDefault();let b=g;const w=0,S=y-1,x=()=>{b=g+1,b>S&&(b=w)},T=()=>{b=g-1,b<w&&(b=S)};switch(p.key){case"Home":b=w;break;case"End":b=S;break;case"ArrowRight":i==="horizontal"&&(d?x():T());break;case"ArrowDown":i==="vertical"&&x();break;case"ArrowLeft":i==="horizontal"&&(d?T():x());break;case"ArrowUp":i==="vertical"&&T();break}const N=b%y;(C=v[N].ref.current)==null||C.focus()});return A.jsx(sC,{scope:n,disabled:o,direction:r,orientation:i,children:A.jsx(bs.Slot,{scope:n,children:A.jsx(Ae.div,{...s,"data-orientation":i,ref:l,onKeyDown:o?void 0:f})})})}),Cr="AccordionItem",[aC,Cs]=br(Cr),Cc=h.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,i=Ar(Cr,n),s=nC(Cr,n),a=As(n),l=Vn(),u=o&&s.value.includes(o)||!1,c=i.disabled||e.disabled;return A.jsx(aC,{scope:n,open:u,disabled:c,triggerId:l,children:A.jsx(Z0,{"data-orientation":i.orientation,"data-state":Pc(u),...a,...r,ref:t,disabled:c,open:u,onOpenChange:d=>{d?s.onItemOpen(o):s.onItemClose(o)}})})});Cc.displayName=Cr;var wc="AccordionHeader",lC=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ar(Ht,n),i=Cs(wc,n);return A.jsx(Ae.h3,{"data-orientation":r.orientation,"data-state":Pc(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:t})});lC.displayName=wc;var ws="AccordionTrigger",xc=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ar(Ht,n),i=Cs(ws,n),s=oC(ws,n),a=As(n);return A.jsx(bs.ItemSlot,{scope:n,children:A.jsx(X0,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...a,...o,ref:t})})});xc.displayName=ws;var Ec="AccordionContent",Sc=h.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ar(Ht,n),i=Cs(Ec,n),s=As(n);return A.jsx(J0,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...s,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Sc.displayName=Ec;function Pc(e){return e?"open":"closed"}var uC=mc,cC=Cc,dC=xc,fC=Sc;function Tc(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Tc(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function se(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Tc(e))&&(o&&(o+=" "),o+=t);return o}const gn={"visual--primary":"_visual--primary_1h79s_1","visual--secondary":"_visual--secondary_1h79s_6","visual--tertiary":"_visual--tertiary_1h79s_11","size--horizontal--none":"_size--horizontal--none_1h79s_16","size--vertical--none":"_size--vertical--none_1h79s_17","size--horizontal--extra-small":"_size--horizontal--extra-small_1h79s_21","size--vertical--extra-small":"_size--vertical--extra-small_1h79s_25","size--horizontal--small":"_size--horizontal--small_1h79s_30","size--vertical--small":"_size--vertical--small_1h79s_34","size--horizontal--medium":"_size--horizontal--medium_1h79s_39","size--vertical--medium":"_size--vertical--medium_1h79s_43","size--horizontal--large":"_size--horizontal--large_1h79s_48","size--vertical--large":"_size--vertical--large_1h79s_52","radius--none":"_radius--none_1h79s_57","radius--small":"_radius--small_1h79s_61","radius--medium":"_radius--medium_1h79s_65","radius--large":"_radius--large_1h79s_69","is-square":"_is-square_1h79s_73"},pC="div";function Ic({as:e,children:t,className:n,isSquare:o,variants:r,...i}){const s={radius:"large",size:{horizontal:"medium",vertical:"medium"},visual:"primary",...r},a=e||pC;return A.jsx(a,{className:se(n,gn.card,gn[`visual--${s.visual}`],gn[`size--vertical--${s.size.vertical}`],gn[`size--horizontal--${s.size.horizontal}`],gn[`radius--${s.radius}`],gn[`type--${e}`],o&&gn["is-square"]),...i,children:t})}function Dc(){const[e,t]=h.useState({height:void 0,width:600});return h.useEffect(()=>{function n(){t({height:window.innerHeight,width:window.innerWidth||600})}return window.addEventListener("resize",n,{passive:!0}),n(),()=>window.removeEventListener("resize",n)},[]),e}const hC=e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),kc={large:40,regular:24,regularMobile:20,xlarge:48},Mc={light:200,medium:400,mobileRegularMedium:500,mobileRegularNormal:400,normal:300},xs=h.forwardRef(({className:e,color:t,fill:n=!1,grade:o,icon:r,size:i,style:s,weight:a,...l},u)=>{const c={color:t,...s};return n&&(c.fontVariationSettings=[c.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),a&&(c.fontVariationSettings=[c.fontVariationSettings,`"wght" ${a}`].filter(Boolean).join(", ")),o&&(c.fontVariationSettings=[c.fontVariationSettings,`"GRAD" ${o}`].filter(Boolean).join(", ")),i&&(c.fontVariationSettings=[c.fontVariationSettings,`"opsz" ${i}`].filter(Boolean).join(", "),c.fontSize=i),A.jsx("span",{...l,className:se("material-symbols-rounded",e),ref:u,style:c,children:r})});xs.displayName="MaterialSymbol";const Me=({size:e="regular",weight:t="normal",...n})=>{const{width:o}=Dc(),r=o<768,i=r&&e==="regular"?kc.regularMobile:kc[e],s=e==="regular"&&r?Mc[`mobileRegular${hC(t)}`]:Mc[t];return A.jsx("span",{style:{display:"block",height:`${i}px`,width:`${i}px`},translate:"no",children:A.jsx(xs,{size:i,weight:s,...n})})},vC={"form-label":"_form-label_e76am_1","form-helper":"_form-helper_e76am_8","form-button":"_form-button_e76am_14","form-input-normal":"_form-input-normal_e76am_21","form-input-semi-bold":"_form-input-semi-bold_e76am_27","content-regular-light":"_content-regular-light_e76am_34","content-regular":"_content-regular_e76am_34","content-regular-semi-bold":"_content-regular-semi-bold_e76am_47","content-large-light":"_content-large-light_e76am_54","content-large":"_content-large_e76am_54","content-large-semi-bold":"_content-large-semi-bold_e76am_67","content-title-light":"_content-title-light_e76am_74","content-title":"_content-title_e76am_74","content-title-semi-bold":"_content-title-semi-bold_e76am_87",tag:"_tag_e76am_94","marketing-text-light":"_marketing-text-light_e76am_162","marketing-text-regular":"_marketing-text-regular_e76am_166","marketing-text-semi-bold":"_marketing-text-semi-bold_e76am_170","marketing-quote-light":"_marketing-quote-light_e76am_175","marketing-quote-regular":"_marketing-quote-regular_e76am_179","marketing-quote-semi-bold":"_marketing-quote-semi-bold_e76am_183","marketing-small-light":"_marketing-small-light_e76am_187","marketing-small-regular":"_marketing-small-regular_e76am_194","marketing-small-semi-bold":"_marketing-small-semi-bold_e76am_201","marketing-medium-light":"_marketing-medium-light_e76am_208","marketing-medium-regular":"_marketing-medium-regular_e76am_215","marketing-medium-semi-bold":"_marketing-medium-semi-bold_e76am_222","marketing-large-light":"_marketing-large-light_e76am_229","marketing-large-regular":"_marketing-large-regular_e76am_236","marketing-large-semi-bold":"_marketing-large-semi-bold_e76am_243","marketing-tag-light":"_marketing-tag-light_e76am_250","marketing-tag-regular":"_marketing-tag-regular_e76am_258","marketing-tag-semi-bold":"_marketing-tag-semi-bold_e76am_266","marketing-small-medium":"_marketing-small-medium_e76am_283","marketing-heading-1":"_marketing-heading-1_e76am_379","marketing-heading-2":"_marketing-heading-2_e76am_386","marketing-heading-3":"_marketing-heading-3_e76am_394","marketing-heading-4":"_marketing-heading-4_e76am_401","marketing-heading-5":"_marketing-heading-5_e76am_408","marketing-heading-6":"_marketing-heading-6_e76am_414","marketing-heading-7":"_marketing-heading-7_e76am_420","footer-regular":"_footer-regular_e76am_502","footer-semi-bold":"_footer-semi-bold_e76am_510"},ce=({as:e,children:t,className:n,variant:o="content-regular",...r})=>{const i=e||"p";return A.jsx(i,{className:se(vC[o],n),...r,children:t})},Zt={root:"_root_15emg_1","root--detached":"_root--detached_15emg_8",item:"_item_15emg_15",trigger:"_trigger_15emg_31","trigger-title":"_trigger-title_15emg_48",content:"_content_15emg_62",controls:"_controls_15emg_66"},Es=h.createContext({active:[]}),gC=({children:e})=>{const[t,n]=h.useState([]);return A.jsx(Es.Provider,{value:{active:t,setActive:n},children:e})},Ss=h.createContext({setValue:()=>null,value:""}),mC=({children:e})=>{const[t,n]=h.useState("");return A.jsx(Ss.Provider,{value:{setValue:n,value:t},children:e})},Bc=h.forwardRef(({children:e,grouping:t,...n},o)=>{const{setActive:r}=h.useContext(Es);return A.jsx(uC,{ref:o,...n,className:se(Zt.root,t==="detached"&&Zt["root--detached"]),onValueChange:i=>{r&&r(i)},children:e})});Bc.displayName="AccordionRoot";const Oc=h.forwardRef(({...e},t)=>{const{setValue:n}=h.useContext(Ss);return h.useEffect(()=>{n(e.value)},[e.value,n]),A.jsx(cC,{ref:t,...e,className:Zt.item})});Oc.displayName="AccordionItem";const yC=()=>{const{value:e}=h.useContext(Ss),{active:t}=h.useContext(Es),n=t.includes(e);return A.jsx("div",{className:se(Zt.controls),children:A.jsx(Me,{className:Zt.icon,icon:n?"remove_circle":"add_circle"})})},bC=({as:e,children:t,className:n,size:o})=>o==="large"?A.jsx(ce,{as:e,className:n,variant:"content-large-semi-bold",children:t}):A.jsx(ce,{as:e,className:n,children:t}),Nc=h.forwardRef(({as:e,children:t,controls:n,size:o="regular",...r},i)=>A.jsxs(dC,{ref:i,...r,className:Zt.trigger,children:[A.jsx(bC,{as:e,className:Zt["trigger-title"],size:o,children:t}),n||A.jsx(yC,{})]}));Nc.displayName="AccordionTrigger";const Fc=h.forwardRef(({children:e,...t},n)=>A.jsx(fC,{ref:n,...t,children:A.jsx(Ic,{className:se(Zt.content),variants:{radius:"none",size:{horizontal:"medium",vertical:"medium"}},children:e})}));Fc.displayName="AccordionContent";const AC={Content:Fc,Item:e=>A.jsx(mC,{children:A.jsx(Oc,{...e})}),Root:e=>A.jsx(gC,{children:A.jsx(Bc,{...e})}),Trigger:Nc},Rt={button:"_button_umgro_1",action:"_action_umgro_18",focus:"_focus_umgro_34",primary:"_primary_umgro_47",hover:"_hover_umgro_53",active:"_active_umgro_58",secondary:"_secondary_umgro_64",tertiary:"_tertiary_umgro_81",ghost:"_ghost_umgro_98",danger:"_danger_umgro_117",standard:"_standard_umgro_136",text:"_text_umgro_228","only-icon":"_only-icon_umgro_371",nav:"_nav_umgro_383",outline:"_outline_umgro_394",disabled:"_disabled_umgro_415",width_full_base:"_width_full_base_umgro_483",width_auto_base:"_width_auto_base_umgro_488",width_full_tablet:"_width_full_tablet_umgro_492",width_auto_tablet:"_width_auto_tablet_umgro_497",width_full_desktop:"_width_full_desktop_umgro_502",width_auto_desktop:"_width_auto_desktop_umgro_507"},CC="button";function wr({as:e,children:t,className:n="",onlyIcon:o=!1,variant:r,visualType:i,fullWidth:s=!1,...a}){const l=e||CC,u=Array.isArray(s)?[s[0],s[1],s[2]]:[s,s,s],c=[u[0]?Rt.width_full_base:Rt.width_auto_base,u[1]!==void 0?u[1]?Rt.width_full_tablet:Rt.width_auto_tablet:null,u[2]!==void 0?u[2]?Rt.width_full_desktop:Rt.width_auto_desktop:null];return A.jsxs(l,{className:se(n,Rt[r||"primary"],Rt[i||"button"],o&&Rt["only-icon"],c),...a,children:[o&&t,!o&&A.jsx(ce,{variant:"form-button",children:t})]})}const Lc={container:"_container_s8rx3_1",primary:"_primary_s8rx3_19",warning:"_warning_s8rx3_24",error:"_error_s8rx3_29",positive:"_positive_s8rx3_34",secondary:"_secondary_s8rx3_39"},wC={Icon:Me,Root:({children:e,type:t="primary"})=>A.jsx("div",{className:se(Lc.container,Lc[t]),children:e}),Text:({children:e,...t})=>A.jsx(ce,{...t,children:e})},Vc={cards:"_cards_jxqdk_1","layout--bento-three":"_layout--bento-three_jxqdk_5","layout--bento-four":"_layout--bento-four_jxqdk_22","layout--bento-five":"_layout--bento-five_jxqdk_37"},xC=({as:e,children:t,variants:n})=>{const o=e||"div",r={layout:"bento-three",...n};return A.jsx(o,{className:se(Vc.cards,Vc[`layout--${r.layout}`]),children:t})};function Kc(e){const t=P.useRef({value:e,previous:e});return P.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ps(e){const[t,n]=P.useState(void 0);return Yt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Ts="Checkbox",[EC,S2]=ht(Ts),[SC,PC]=EC(Ts),Hc=P.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:i,required:s,disabled:a,value:l="on",onCheckedChange:u,form:c,...d}=e,[f,p]=P.useState(null),m=Ke(t,S=>p(S)),v=P.useRef(!1),g=f?c||!!f.closest("form"):!0,[y=!1,b]=xt({prop:r,defaultProp:i,onChange:u}),w=P.useRef(y);return P.useEffect(()=>{const S=f==null?void 0:f.form;if(S){const x=()=>b(w.current);return S.addEventListener("reset",x),()=>S.removeEventListener("reset",x)}},[f,b]),A.jsxs(SC,{scope:n,state:y,disabled:a,children:[A.jsx(Ae.button,{type:"button",role:"checkbox","aria-checked":Xt(y)?"mixed":y,"aria-required":s,"data-state":jc(y),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:m,onKeyDown:de(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:de(e.onClick,S=>{b(x=>Xt(x)?!0:!x),g&&(v.current=S.isPropagationStopped(),v.current||S.stopPropagation())})}),g&&A.jsx(TC,{control:f,bubbles:!v.current,name:o,value:l,checked:y,required:s,disabled:a,form:c,style:{transform:"translateX(-100%)"},defaultChecked:Xt(i)?!1:i})]})});Hc.displayName=Ts;var Rc="CheckboxIndicator",Uc=P.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,i=PC(Rc,n);return A.jsx(Kt,{present:o||Xt(i.state)||i.state===!0,children:A.jsx(Ae.span,{"data-state":jc(i.state),"data-disabled":i.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});Uc.displayName=Rc;var TC=e=>{const{control:t,checked:n,bubbles:o=!0,defaultChecked:r,...i}=e,s=P.useRef(null),a=Kc(n),l=Ps(t);P.useEffect(()=>{const c=s.current,d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&p){const m=new Event("click",{bubbles:o});c.indeterminate=Xt(n),p.call(c,Xt(n)?!1:n),c.dispatchEvent(m)}},[a,n,o]);const u=P.useRef(Xt(n)?!1:n);return A.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r??u.current,...i,tabIndex:-1,ref:s,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Xt(e){return e==="indeterminate"}function jc(e){return Xt(e)?"indeterminate":e?"checked":"unchecked"}var IC=Hc,DC=Uc;const xr={container:"_container_1wdpi_1",label:"_label_1wdpi_6",helper:"_helper_1wdpi_13",error:"_error_1wdpi_17"},Jt=({children:e,error:t,helper:n,hideLabel:o,id:r,label:i})=>A.jsxs("div",{className:xr.container,children:[!o&&i&&A.jsx(ce,{as:"label",className:xr.label,htmlFor:r,variant:"form-helper",children:i}),e,n&&A.jsx(ce,{className:xr.helper,variant:"form-helper",children:n}),t&&A.jsx(ce,{className:xr.error,variant:"form-helper",children:t})]}),vt={container:"_container_m317t_1",root:"_root_m317t_5",error:"_error_m317t_28",radio:"_radio_m317t_32",indicator:"_indicator_m317t_36",label:"_label_m317t_39",checkboxContainer:"_checkboxContainer_m317t_46",nativeLabel:"_nativeLabel_m317t_53",errorIcon:"_errorIcon_m317t_63",nativeInput:"_nativeInput_m317t_70","nativeInput--error":"_nativeInput--error_m317t_98"},kC=e=>{const{control:t,formState:{errors:n={}}}=ke.useFormContext(),{name:o}=e,r={...e,error:n&&n[o]};return A.jsx(ke.Controller,{control:t,name:o,render:({field:i})=>A.jsx(MC,{...r,field:{...i}})})},MC=({field:e,id:t,label:n,variant:o})=>A.jsxs("div",{className:vt.container,children:[A.jsx(IC,{className:se(vt.root,vt[o||""]),id:t,...e,children:A.jsx(DC,{className:vt.indicator,children:A.jsx(Me,{icon:"check"})})}),A.jsx(ce,{as:"label",className:vt.label,htmlFor:t,variant:"form-input-normal",children:n})]}),Wc=h.forwardRef(({disabled:e,error:t,helper:n,id:o,label:r,...i},s)=>A.jsx("div",{className:vt.container,children:A.jsx(Jt,{error:t==null?void 0:t.message,helper:n==null?void 0:n.message,id:"checkbox-default",children:A.jsxs("div",{className:vt.checkboxContainer,children:[A.jsx("input",{className:se(vt.nativeInput,{[vt["nativeInput--error"]]:t}),disabled:e,id:o,ref:s,type:"checkbox",...i}),A.jsxs(ce,{as:"label",className:vt.nativeLabel,htmlFor:o,variant:"form-input-normal",children:[r,t&&A.jsx("span",{className:vt.errorIcon,children:A.jsx(Me,{icon:"error"})})]})]})})}));Wc.displayName="NativeCheckbox";const BC={container:"_container_5w0vv_1"},OC=({children:e,cols:t})=>A.jsx("div",{className:BC.container,style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e});function Et(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},le.apply(null,arguments)}function zc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Is(e,t){return Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Is(e,t)}function NC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Is(e,t)}function Qc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var Ds={exports:{}},Er={exports:{}},he={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|