@youversion/design-system-components 0.6.0 → 0.6.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 5d05213: Adjusted styles for the LinkButton and Button components
8
+
3
9
  ## 0.6.0
4
10
 
5
11
  ### Minor Changes
@@ -21,7 +21,7 @@ export declare const iconSizes: {
21
21
  readonly xl: 36;
22
22
  readonly xs: 12;
23
23
  };
24
- export declare const defaultButtonClasses = "items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit";
24
+ export declare const defaultButtonClasses = "items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit";
25
25
  export declare const variantClasses: {
26
26
  readonly all_caps: "bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase";
27
27
  readonly borderless: "bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent";
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAiB,WAAW,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAEhG,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,oBAAoB,iBAAkB,YAAY;;;;;;CA2B9D,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX,eAAO,MAAM,oBAAoB,uJACqH,CAAC;AAEvJ,eAAO,MAAM,cAAc;;;;;;;;;;;CAqBjB,CAAC;AAEX,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACzF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,cAAc,EAAE,UAAU,GAAG,eAAe,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;CACxC;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,eAAe,oGAYvB,WAAW,OACT,aAAa,iBAAiB,CAAC,gBAwBrC,CAAC;AAEF,eAAO,MAAM,MAAM,2GAA8B,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAiB,WAAW,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAEhG,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,oBAAoB,iBAAkB,YAAY;;;;;;CA2B9D,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX,eAAO,MAAM,oBAAoB,6JAC2H,CAAC;AAE7J,eAAO,MAAM,cAAc;;;;;;;;;;;CAqBjB,CAAC;AAEX,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACzF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,cAAc,EAAE,UAAU,GAAG,eAAe,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;CACxC;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,eAAe,oGAYvB,WAAW,OACT,aAAa,iBAAiB,CAAC,gBAwBrC,CAAC;AAEF,eAAO,MAAM,MAAM,2GAA8B,CAAC"}
package/dist/index.es.js CHANGED
@@ -457,7 +457,7 @@ const Bn = {
457
457
  sm: 18,
458
458
  xl: 36,
459
459
  xs: 12
460
- }, et = "items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit", le = {
460
+ }, et = "items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit", le = {
461
461
  // bgColor, outlineColor, disabled, fontColor, hover, pressed, disabled, textTransform
462
462
  all_caps: "bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",
463
463
  borderless: "bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",
@@ -898,12 +898,12 @@ const Mr = ({
898
898
  h
899
899
  ), { children: [
900
900
  a === "start" && n !== void 0 ? j(n, {
901
- className: "mr-0.5 min-w-min",
901
+ className: "mie-0.5 flex-shrink-0",
902
902
  size: re[s]
903
903
  }) : null,
904
904
  j("span", { className: "truncate" }, t),
905
905
  a === "end" && n !== void 0 ? j(n, {
906
- className: "ml-0.5 min-w-min",
906
+ className: "mis-0.5 flex-shrink-0",
907
907
  size: re[s]
908
908
  }) : null
909
909
  ] });
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(p,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("clsx"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","clsx","react-dom"],a):(p=typeof globalThis<"u"?globalThis:p||self,a(p["design-system-components"]={},p["react/jsx-runtime"],p.React,p.clsx))})(this,function(p,a,d,c){"use strict";var ht=Object.defineProperty,mt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ve=(e,t,r)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vt=(e,t)=>{for(var r in t||(t={}))me.call(t,r)&&ve(e,r,t[r]);if(Z)for(var r of Z(t))ye.call(t,r)&&ve(e,r,t[r]);return e},xt=(e,t)=>mt(e,yt(t)),wt=(e,t)=>{var r={};for(var n in e)me.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Z)for(var n of Z(e))t.indexOf(n)<0&&ye.call(e,n)&&(r[n]=e[n]);return r},kt=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=wt(r,["title","titleId"]);return a.jsxs("svg",xt(vt({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z",fill:"currentColor"})]}))},St=d.forwardRef(kt),xe=St;const ae=e=>{if(e){if(typeof e!="string"&&e)return c(e.lightMode,e.darkMode);if(typeof e=="string")return e}},we=e=>{if(e){if(typeof e!="string"&&e)return c(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},Et=({background:e,borderColor:t,borderRadius:r,borderWidth:n,className:o,component:s="div",color:l,elevation:i=0,height:f,margin:g,padding:h,width:v,...w},m)=>{const b={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},N=ae(l),k=ae(e),M=ae(t),L=we(h),P=we(g),x=c(r,n,b[i],P,L,N,k,M,v,f,o);return d.createElement(s,{className:x,...w,ref:m})},E=d.forwardRef(Et);E.displayName="Box";const G=({innerRef:e,forwardedRef:t})=>(d.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function Nt(){d.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const Ct=({className:e,disabled:t,endIcon:r,error:n,hint:o,label:s,name:l,onChange:i,placeholder:f,startIcon:g,value:h,...v},w)=>{const m=d.useRef(null),b=G({forwardedRef:w,innerRef:m}),[N,k]=d.useState(Boolean(h)),[M,L]=d.useState(!1);d.useEffect(()=>{var u;k(Boolean((u=b==null?void 0:b.current)==null?void 0:u.value)||Boolean(h||f))},[h,f,b]);const P=u=>{var ne;k(Boolean((ne=b==null?void 0:b.current)==null?void 0:ne.value)||Boolean(h||f)),i&&i(u)},x=()=>{t||!b.current||(b.current.focus(),L(!0))},y=()=>{L(!1)};return a.jsxs("div",{className:c(["flex items-start flex-col gap-0.5",e]),children:[a.jsxs("div",{className:c(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:x,onFocus:x,children:[g?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:g}):null,a.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[a.jsx("input",{className:c(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",g?"pis-1":"pis-2",r?"pie-1":"pie-2",s?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:l,onBlur:y,onChange:P,placeholder:f,ref:b,value:h,...v}),s?a.jsx("label",{className:c("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",g?"ltr:left-1 rtl:right-1":"ltr:left-2 rtl:right-2",M||N?"text-13 -translate-y-1.5":"text-16"),htmlFor:l,children:s}):null]}),r?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),n||o?a.jsxs("div",{className:"flex flex-col",children:[n?a.jsx("span",{className:"text-alert dark:text-alert-dark",children:n}):null,o?a.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},oe=d.forwardRef(Ct);oe.displayName="Input";const It=({children:e,className:t,...r},n)=>a.jsx("ul",{className:c(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:n,...r,children:e}),se=d.forwardRef(It);se.displayName="List";const Lt=({children:e,className:t,disabled:r,divider:n,onClick:o,...s},l)=>{const i=f=>{o&&(f.code==="Enter"||f.key===" ")&&o()};return a.jsx("li",{className:c(["flex items-center box-border relative",n?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,t]),ref:l,...s,children:a.jsx("div",{className:c(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",o?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:o,onKeyUp:i,onTouchEnd:o,tabIndex:o?0:void 0,children:e})})},X=d.forwardRef(Lt);X.displayName="ListItem";const Pt=({label:e,name:t,options:r,disabled:n=!1,error:o,hint:s,noOptionsText:l,onChange:i,onSelect:f,value:g,...h},v)=>{const w=d.useRef(null),[m,b]=d.useState(g),[N,k]=d.useState(!1),M=y=>{N||k(!0),!y.length&&m&&b(null),i(y)},L=y=>{f(y),i(y.label),b(y.label),k(!1)},P=d.useCallback(y=>{w.current&&!w.current.contains(y.target)&&(!m&&g&&i(""),m&&g&&i(m),k(!1))},[i,m,g]),x=d.useMemo(()=>r.filter(y=>y.label.toLowerCase().includes(g.toLowerCase()))??[],[r,g]);return d.useEffect(()=>(document.addEventListener("click",P,!0),()=>{document.removeEventListener("click",P,!0)}),[P]),a.jsxs(E,{className:"relative",ref:w,children:[a.jsx(oe,{disabled:n,endIcon:a.jsx(xe,{size:"24"}),error:o,hint:s,label:e,name:t??e,onChange:y=>{M(y.target.value)},onFocus:()=>k(!0),ref:v,value:g??"",...h}),N?a.jsx(E,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:a.jsx(se,{className:"max-h-[300px] overflow-y-auto",children:x.length?x.map((y,u)=>a.jsx(X,{onClick:()=>L(y),children:y.label},`${y.value}-${u}`)):a.jsx(X,{children:l})})}):null]})},ke=d.forwardRef(Pt);ke.displayName="AutocompleteSelect";const Se={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},J={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},le={...J,base:"font-regular leading-loose",xl:"text-23 md:text-28"},Ee={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},Ne={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Ce={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},Ie={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Le={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},Pe=({size:e,variant:t})=>{switch(t){case"headline":return c(Se.base,Se[e]);case"label":return c(J.base,e?J[e]:J.default);case"paragraph":return c(le.base,e?le[e]:le.default);case"eyebrow":return c(Ee.base,Ee[e]);case"caption":return c(Ne.base,Ne[e]);case"buttonLabel":return c(Ce.base,Ce[e]);case"fieldLabel":return c(Ie.base,Ie[e]);case"fieldTextInput":return c(Le.base,Le[e]);default:return e}},Be={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},Bt=({className:e,component:t="p",children:r,font:n="primary",size:o,variant:s,...l},i)=>{const f="text-text-light dark:text-text-dark",g=Be[n],h=Pe({size:o,variant:s});return a.jsx(E,{className:c(f,h,g,e),component:t,ref:i,...l,children:r})},B=d.forwardRef(Bt);B.displayName="Text";const Te=({children:e,component:t="a",className:r,disabled:n,active:o,...s})=>a.jsx(B,{className:c(["font-bold text-gray-50 leading-default whitespace-nowrap",o?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",n?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...s,children:e});Te.displayName="Breadcrumb";var Tt=Object.defineProperty,Dt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,je=(e,t,r)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))De.call(t,r)&&je(e,r,t[r]);if(Y)for(var r of Y(t))Me.call(t,r)&&je(e,r,t[r]);return e},zt=(e,t)=>Dt(e,Mt(t)),Ft=(e,t)=>{var r={};for(var n in e)De.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Y)for(var n of Y(e))t.indexOf(n)<0&&Me.call(e,n)&&(r[n]=e[n]);return r},Wt=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=Ft(r,["title","titleId"]);return a.jsxs("svg",zt(jt({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},Ot=d.forwardRef(Wt),Ht=Ot;const _t=({children:e,className:t,...r},n)=>{const o=d.Children.toArray(e),s=o.findIndex(l=>{var i;return d.isValidElement(l)?(i=l==null?void 0:l.props)==null?void 0:i.active:!1});return a.jsx("div",{className:c(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:n,...r,children:o.map((l,i)=>a.jsxs("div",{className:"flex items-center",children:[i?a.jsx(Ht,{className:c(["mx-1",i>s&&"text-gray-15",i<=s&&"text-gray-25"]),size:"15"}):null,typeof l=="object"&&"type"in l?d.createElement(l.type,{...l.props,className:c([l.props.className??"",i<s?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>s&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):l]},`${i}-${l.toString()}`))})},ze=d.forwardRef(_t);ze.displayName="Breadcrumbs";const Vt={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},de=e=>{switch(e){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},$={lg:30,md:24,sm:18,xl:36,xs:12},ie="items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit",A={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white","risk:all_caps":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white active:shadow-none dark:active:shadow-none uppercase","risk:borderless":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 dark:disabled:bg-transparent active:shadow-none dark:active:shadow-none","risk:stroked":"bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent ring ring-2 ring-gray-50 dark:ring-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},Fe=({className:e,children:t,disabled:r,icon:n,iconAction:o,iconPosition:s,size:l="md",type:i="button",variant:f="primary",...g},h)=>{const v=de(n!==void 0?s:void 0),w=c(ie,A[f],v[l],e);return a.jsxs("button",{className:w,disabled:r,ref:h,type:i,...g,children:[s==="start"&&n!==void 0?d.createElement(n,{className:"mr-0.5",onClick:o??void 0,size:$[l]}):null,a.jsx("span",{className:"truncate",children:t}),s==="end"&&n!==void 0?d.createElement(n,{className:"ml-0.5",onClick:o??void 0,size:$[l]}):null]})},R=d.forwardRef(Fe);R.displayName="Button";const $t=({error:e,className:t,label:r,disabled:n,name:o,...s},l)=>{const i=d.useId(),f=d.useMemo(()=>`checkbox-label-${i}`,[i]);return a.jsxs("div",{className:c(["flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t]),children:[a.jsx("input",{"aria-labelledby":f,className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:o,name:o,ref:l,type:"checkbox",...s}),r?a.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:a.jsx("label",{htmlFor:o,id:f,children:r})}):null,e?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},We=d.forwardRef($t);We.displayName="Checkbox";const At=({className:e,...t})=>a.jsx("hr",{...t,className:c("w-full border-gray-15 dark:border-gray-30 border-standard",e)}),Oe=({children:e,autoFocus:t=!0})=>{const r=d.useRef(null);return d.useEffect(()=>{if(r.current){const n=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let o=document.activeElement;const s=n[0],l=n[n.length-1],i=h=>{if(h.key==="Tab"){if(h.shiftKey){if(document.activeElement===s)h.preventDefault(),l.focus(),o=l;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v-1];break}}else if(!h.shiftKey){if(document.activeElement===l)h.preventDefault(),s.focus(),o=s;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v+1];break}}}};t&&(()=>{if(r.current){const h=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');h&&h.focus()}})();const g=h=>{r.current&&!r.current.contains(h.target)&&o.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",g),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",g)}}},[t]),a.jsx("div",{ref:r,children:e})},Ut=({className:e,progress:t})=>a.jsx("div",{className:c(["w-full bg-gray-15 h-2 rounded-3 overflow-hidden",e]),children:a.jsx("div",{className:"bg-blue-30 h-2 ease-in-out duration-300",style:{transitionProperty:"width",width:`${t}%`}})}),qt=({children:e,className:t,disabled:r,type:n="button",variant:o="borderless",...s},l)=>a.jsx("button",{className:c(["rounded-full inline-flex justify-center items-center p-1",t,A[o],r?"pointer-events-none":""]),disabled:r,ref:l,type:n,...s,children:e}),He=d.forwardRef(qt);He.displayName="IconButton";const Kt=({className:e,children:t,component:r="a",variant:n="borderless",...o},s)=>d.createElement(r,{...o,className:c(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",A[n],e]),ref:s},t),_e=d.forwardRef(Kt);_e.displayName="IconLinkButton";var Zt=Object.defineProperty,Gt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ae=(e,t,r)=>t in e?Zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jt=(e,t)=>{for(var r in t||(t={}))Ve.call(t,r)&&Ae(e,r,t[r]);if(Q)for(var r of Q(t))$e.call(t,r)&&Ae(e,r,t[r]);return e},Yt=(e,t)=>Gt(e,Xt(t)),Rt=(e,t)=>{var r={};for(var n in e)Ve.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Q)for(var n of Q(e))t.indexOf(n)<0&&$e.call(e,n)&&(r[n]=e[n]);return r},Qt=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=Rt(r,["title","titleId"]);return a.jsxs("svg",Yt(Jt({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},er=d.forwardRef(Qt),tr=er,rr=Object.defineProperty,nr=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ke=(e,t,r)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,or=(e,t)=>{for(var r in t||(t={}))Ue.call(t,r)&&Ke(e,r,t[r]);if(ee)for(var r of ee(t))qe.call(t,r)&&Ke(e,r,t[r]);return e},sr=(e,t)=>nr(e,ar(t)),lr=(e,t)=>{var r={};for(var n in e)Ue.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ee)for(var n of ee(e))t.indexOf(n)<0&&qe.call(e,n)&&(r[n]=e[n]);return r},dr=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=lr(r,["title","titleId"]);return a.jsxs("svg",sr(or({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{d:"M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z",fill:"currentColor"}),a.jsx("path",{d:"M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z",fill:"currentColor"})]}))},ir=d.forwardRef(dr),cr=ir,ur=Object.defineProperty,fr=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Xe=(e,t,r)=>t in e?ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Xe(e,r,t[r]);if(te)for(var r of te(t))Ge.call(t,r)&&Xe(e,r,t[r]);return e},br=(e,t)=>fr(e,pr(t)),hr=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&te)for(var n of te(e))t.indexOf(n)<0&&Ge.call(e,n)&&(r[n]=e[n]);return r},mr=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=hr(r,["title","titleId"]);return a.jsxs("svg",br(gr({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z",fill:"currentColor",children:a.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:s.dur,repeatCount:"indefinite"})})]}))},yr=d.forwardRef(mr),vr=yr;const xr={1:"h1",2:"h2",3:"h3",4:"h4"},wr=({className:e,children:t,font:r="primary",level:n=1,size:o,variant:s,...l},i)=>{const f="text-text-light dark:text-text-dark",g=Be[r],h=Pe({size:o,variant:s});return a.jsx(E,{className:c(f,h,g,e),component:xr[n],ref:i,...l,children:t})},Je=d.forwardRef(wr);Je.displayName="Heading";const kr=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:n,disabled:o=!1,dismissCallback:s,dismissImageAriaLabel:l="Remove Image",error:i="",fileMaxKbSizeError:f=(C,be)=>`${C} is too big to upload, the maximum size is ${be}kb. Please try again.`,fileMaxSizeError:g=C=>`${C} is too large to upload. The maximum dimensions are ${u==null?void 0:u.maxWidth}x${u==null?void 0:u.maxHeight}. Please try again.`,fileMinSizeError:h=C=>`${C} is too small to upload. The minimum dimensions are ${u==null?void 0:u.minWidth}x${u==null?void 0:u.minHeight}. Please try again.`,fileRatioError:v=C=>`${C} must have a ratio of, ${u==null?void 0:u.imageRatio}. Please try again.`,fileCallback:w,hero:m=!1,hint:b,imageWidth:N=160,imageSrc:k,label:M="Upload Image",name:L="imageUpload",onBlur:P,preProcessing:x,shape:y="circle",validation:u},ne)=>{const C=d.useRef(null),be=G({forwardedRef:ne,innerRef:C}),[S,V]=d.useState(void 0),[j,z]=d.useState(k?"resolved":"idle"),[he,q]=d.useState(i),mn=()=>C!=null&&C.current?C.current.click():void 0,gt=d.useMemo(()=>S&&j!=="rejected"?(z("resolved"),S.imageSrc):k&&j==="resolved"?(z("resolved"),k):null,[S,k,j]),yn=d.useMemo(()=>{const T=()=>{s&&s(k),V(void 0),z("idle")};switch(j){case"pending":return a.jsx(E,{className:"animate-spin",children:a.jsx(vr,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return a.jsxs(a.Fragment,{children:[a.jsx("img",{alt:`${S==null?void 0:S.id} preview`,className:c(["object-fit w-full h-full",y==="circle"?"rounded-full":"rounded-0.5",y!=="unset"||!m?"aspect-square":"",y==="unset"&&m?"aspect-video":"",y==="unset"&&!m?"!aspect-auto":""]),onLoad:()=>S!=null&&S.imageSrc?URL.revokeObjectURL(S.imageSrc):void 0,src:gt||void 0,width:N}),o?null:a.jsx(R,{"aria-label":l,className:"absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1","data-testid":"remove image",onClick:T,children:a.jsx(tr,{})})]});default:return a.jsx(E,{className:"gray-10 dark:gray-30",children:a.jsx(cr,{"data-testid":"placeholder image",size:"32"})})}},[o,s,l,m,S==null?void 0:S.id,S==null?void 0:S.imageSrc,k,j,N,gt,y]),vn=({file:T,imageUrl:W})=>new Promise((O,H)=>{var bt;const I=new Image,K=(bt=u==null?void 0:u.imageRatio)==null?void 0:bt.split("/");I.onload=async()=>{if(u)if(u!=null&&u.maxByteSize&&T.size>u.maxByteSize){V(void 0),z("rejected");const Nn=f(T.name,Math.round(u.maxByteSize/1e3));return q(Nn),H(!1)}else{if(u!=null&&u.minWidth&&I.width<(u==null?void 0:u.minWidth)||u!=null&&u.minHeight&&I.height<(u==null?void 0:u.minHeight))return V(void 0),z("rejected"),q(h(T.name)),H(!1);if(u!=null&&u.maxHeight&&I.height>(u==null?void 0:u.maxHeight)||u!=null&&u.maxWidth&&I.width>(u==null?void 0:u.maxWidth))return V(void 0),z("rejected"),q(g(T.name)),H(!1);if(u!=null&&u.imageRatio&&(K==null?void 0:K.length)===2&&parseInt(K[0])/parseInt(K[1])!==I.width/I.height)return V(void 0),z("rejected"),q(v(T.name)),H(!1)}return N=I.width,typeof w=="function"&&(console.log("Callback"),await w(T,I)),q(""),O(!0)},I.src=W}),xn=async T=>{try{const{files:W}=T.target;if(W){const O=W[0],H=URL.createObjectURL(O);let I=!0;z("pending"),x&&await x(O),I=await vn({file:O,imageUrl:H}),I&&(V({file:O,id:O.name,imageSrc:H}),z("resolved"))}}catch(W){if(W instanceof Error)throw W}},wn=c([y==="circle"&&!m?"rounded-full aspect-square":""]),kn=c([y==="square"&&!m?"aspect-square rounded-1":""]),Sn=c([y==="unset"&&!m?"rounded-1":"",y==="unset"&&j!=="idle"&&!m?"aspect-auto":"",y==="unset"&&j!=="resolved"&&!m?"aspect-square":""]),En=c([m?"rounded-1 aspect-video":""]);return a.jsxs(E,{className:c([n]),children:[a.jsxs(E,{className:c(["relative border-small border-solid rounded-1 mb-0.5 pt-1 pb-2 px-2 text-text-muted-light dark:text-text-muted-dark",,he?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",o?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[a.jsx(B,{className:"pb-1.5 text-text-muted-light dark:text-text-muted-dark",children:a.jsx("label",{htmlFor:L,children:M})}),a.jsxs(E,{className:"flex relative flex-wrap justify-center md:justify-start",children:[a.jsx(E,{className:c(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",m?"w-full":"md:w-1/2 w-4/5",o?"border-small border-solid border-tertiary-light":"",j!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",wn,kn,Sn,En]),children:yn}),a.jsx(R,{className:c(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",m?"!mbs-2":""]),disabled:o,onClick:mn,size:"sm",variant:"stroked",children:j==="resolved"?t:r}),a.jsx("input",{accept:e.toString(),className:"hidden",disabled:o,id:L,name:L,onBlur:P,onChange:xn,ref:be,title:"",type:"file",value:""})]})]}),he?a.jsx(B,{className:"dark:!text-alert-dark !text-alert-light text-13",children:he}):null,b?a.jsx(B,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:b}):null]})},Ye=d.forwardRef(kr);Ye.displayName="ImageUpload";const Re=({className:e,children:t,component:r="a",icon:n,iconPosition:o,variant:s="primary",size:l="md",...i},f)=>{const g=de(n!==void 0?o:void 0),h=({children:v})=>d.createElement(r,{...i,className:c([ie,A[s],g[l],"no-underline cursor-pointer",e]),ref:f},v);return a.jsxs(h,{children:[o==="start"&&n!==void 0?d.createElement(n,{className:"mr-0.5 min-w-min",size:$[l]}):null,d.createElement("span",{className:"truncate"},t),o==="end"&&n!==void 0?d.createElement(n,{className:"ml-0.5 min-w-min",size:$[l]}):null]})},Qe=d.forwardRef(Re);Qe.displayName="LinkButton";function Sr({children:e,className:t,position:r}){let n="";return r&&(r==="start"?n="order-first":n="order-last"),a.jsx("div",{className:c("flex gap-1",n,t),children:e})}function Er({children:e,className:t}){return a.jsx("div",{className:c("flex-grow",t),children:e})}const Nr=({children:e,className:t,endText:r,endTextProps:n,size:o="sm",subHeadline:s,subHeadlineProps:l})=>a.jsxs("div",{className:c(["flex items-center justify-between break-words",t]),children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx(B,{size:o,variant:"label",children:e}),s?a.jsx(B,{...l,children:s}):null]}),r?a.jsx(B,{...n,children:r}):null]}),Cr=({children:e,className:t,...r})=>a.jsx("div",{className:c(["relative",t]),...r,children:e}),Ir=typeof window<"u"?d.useLayoutEffect:()=>{};let U=new Map,et=new Set;function tt(){if(typeof window>"u")return;let e=r=>{let n=U.get(r.target);n||(n=new Set,U.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=U.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),U.delete(r.target)),U.size===0)){for(let o of et)o();et.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?tt():document.addEventListener("DOMContentLoaded",tt));function Lr(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Pr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Br(){return Pr(/^Mac/i)}function Tr(){return Lr(/Android/i)}function Dr(e){return e.mozInputSource===0&&e.isTrusted?!0:Tr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Mr=d.createContext(null);Mr.displayName="PressResponderContext";class jr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function zr(e){let t=d.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Ir(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=s=>{var l,i;t.current.isFocused=!1,n.disabled&&((i=(l=t.current).onBlur)===null||i===void 0||i.call(l,new jr("blur",s))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}let Fr=new Set,rt=!1,F=!1,ue=!1;function fe(e,t){for(let r of Fr)r(e,t)}function Wr(e){return!(e.metaKey||!Br()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nt(e){F=!0,Wr(e)&&fe("keyboard",e)}function _(e){(e.type==="mousedown"||e.type==="pointerdown")&&(F=!0,fe("pointer",e))}function Or(e){Dr(e)&&(F=!0)}function Hr(e){e.target===window||e.target===document||(!F&&!ue&&fe("virtual",e),F=!1,ue=!1)}function _r(){F=!1,ue=!0}function at(){if(typeof window>"u"||rt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){F=!0,e.apply(this,arguments)},document.addEventListener("keydown",nt,!0),document.addEventListener("keyup",nt,!0),document.addEventListener("click",Or,!0),window.addEventListener("focus",Hr,!0),window.addEventListener("blur",_r,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_,!0),document.addEventListener("pointermove",_,!0),document.addEventListener("pointerup",_,!0)):(document.addEventListener("mousedown",_,!0),document.addEventListener("mousemove",_,!0),document.addEventListener("mouseup",_,!0)),rt=!0}typeof document<"u"&&(document.readyState!=="loading"?at():document.addEventListener("DOMContentLoaded",at));function Vr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,s=d.useRef({isFocusWithin:!1}),l=d.useCallback(g=>{s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,r&&r(g),o&&o(!1))},[r,o,s]),i=zr(l),f=d.useCallback(g=>{!s.current.isFocusWithin&&document.activeElement===g.target&&(n&&n(g),o&&o(!0),s.current.isFocusWithin=!0,i(g))},[n,o,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:f,onBlur:l}}}function $r(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,l=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:o}).current;l.onInteractOutside=r,l.onInteractOutsideStart=o,d.useEffect(()=>{if(n)return;let i=f=>{re(f,t)&&l.onInteractOutside&&(l.onInteractOutsideStart&&l.onInteractOutsideStart(f),l.isPointerDown=!0)};if(typeof PointerEvent<"u"){let f=g=>{l.isPointerDown&&l.onInteractOutside&&re(g,t)&&l.onInteractOutside(g),l.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",f,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&l.onInteractOutside&&re(h,t)&&l.onInteractOutside(h),l.isPointerDown=!1},g=h=>{l.ignoreEmulatedMouseEvents=!0,l.onInteractOutside&&l.isPointerDown&&re(h,t)&&l.onInteractOutside(h),l.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",f,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",g,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",f,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",g,!0)}}},[t,l,n])}function re(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}let Ar=null;function ot(e,t){return t.some(r=>r.contains(e))}function Ur(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of lt.traverse(lt.getTreeNode(t)))if(ot(e,r.current))return!0;return!1}function qr(e){return Ur(e,Ar)}class pe{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),s=new st({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),n&&(s.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef.current&&ot(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(s=>n.addChild(s)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new pe;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){ce(this,"fastMap",new Map),this.root=new st({scopeRef:null}),this.fastMap.set(null,this.root)}}class st{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){ce(this,"children",new Set),ce(this,"contain",!1),this.scopeRef=t.scopeRef}}let lt=new pe;const D=[];function Kr(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:s=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:i}=e;d.useEffect(()=>(o&&D.push(t),()=>{let b=D.indexOf(t);b>=0&&D.splice(b,1)}),[o,t]);let f=()=>{D[D.length-1]===t&&r&&r()},g=b=>{(!i||i(b.target))&&D[D.length-1]===t&&(b.stopPropagation(),b.preventDefault())},h=b=>{(!i||i(b.target))&&(D[D.length-1]===t&&(b.stopPropagation(),b.preventDefault()),f())},v=b=>{b.key==="Escape"&&!l&&(b.stopPropagation(),b.preventDefault(),f())};$r({ref:t,onInteractOutside:s?h:null,onInteractOutsideStart:g});let{focusWithinProps:w}=Vr({isDisabled:!n,onBlurWithin:b=>{b.relatedTarget&&qr(b.relatedTarget)||(!i||i(b.relatedTarget))&&r()}}),m=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:v,...w},underlayProps:{onPointerDown:m}}}const Zr=({align:e,children:t,className:r,...n})=>{const o=d.useMemo(()=>{const{horizontal:s,vertical:l}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},f={bottom:"",top:"bottom-full"};return`${i[s]} ${f[l]}`},[e]);return a.jsx("div",{className:c(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mb-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",o,r]),...n,children:t})},Gr=({open:e,children:t})=>a.jsx(a.Fragment,{children:e?t:null}),Xr=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:n,isDismissible:o,isOpen:s,onClose:l,...i})=>{const f=d.useRef(null),{overlayProps:g}=Kr({isDismissable:o,isKeyboardDismissDisabled:!o,isOpen:s,onClose:l},f);return a.jsx(Gr,{open:s,children:a.jsx(Oe,{autoFocus:t,children:a.jsx(Zr,{align:e,className:n,onClose:l,...i,children:a.jsx("div",{ref:f,...g,onClick:l,children:r})})})})},Jr=({onToggle:e,children:t,className:r,disabled:n})=>{const o=i=>{i.preventDefault(),i.stopPropagation(),e()},s=d.useRef(null),l=d.cloneElement(t,{className:r,disabled:n,onClick:o,ref:s});return a.jsx(a.Fragment,{children:l})},Yr=(e,t)=>{const{children:r,error:n,hint:o,label:s}=e;return a.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[a.jsx("label",{children:s}),n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:n}):null,o?a.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:o}):null,r]})},dt=d.forwardRef(Yr);dt.displayName="Radio Set";const Rr=({children:e,disabled:t,name:r,value:n,...o},s)=>a.jsxs("div",{className:"flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",children:[a.jsx("input",{className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:s,...o,type:"radio",value:n}),a.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:"name",children:e})]}),it=d.forwardRef(Rr);it.displayName="RadioSetItem";const Qr=({...e})=>a.jsx("option",{...e}),ct="_select_1dwiy_1",Cn={select:ct},en="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",tn="border-alert-light dark:border-alert-dark",rn="border-tertiary-light dark:border-tertiary-dark",ge="text-text-muted-light dark:text-text-muted-dark",ut=c(ge,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),nn="-translate-y-1 opacity-100",an="text-overlay-text dark:text-text-dark",on="!pbs-3 !pbe-1",sn="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",ln=({children:e,className:t,disabled:r=!1,error:n,hint:o,label:s,name:l,onChange:i,value:f,...g},h)=>{var P;const v=c(ct,en),w=d.useRef(null),m=G({forwardedRef:h,innerRef:w}),[b,N]=d.useState(Boolean(f||((P=m==null?void 0:m.current)==null?void 0:P.value)));d.useEffect(()=>{var x;N(Boolean(((x=m==null?void 0:m.current)==null?void 0:x.value)||f))},[f,m]);const k=d.useMemo(()=>{const x=c(v,an,s?on:null),y=c(v,ge);return b?x:y},[v,b,s]),M=d.useMemo(()=>{const x=c(ut,nn),y=c(ut);return b?x:y},[b]),L=x=>{var y;N(Boolean(((y=m==null?void 0:m.current)==null?void 0:y.value)||f)),i&&i(x)};return a.jsxs("div",{className:c(t),children:[a.jsxs("div",{className:c("relative w-full border-none"),children:[a.jsx("select",{...g,className:c([k,n?tn:rn]),disabled:r,id:l,name:l,onChange:L,ref:m,value:f,children:e}),a.jsx("label",{className:M,htmlFor:l,children:s}),a.jsx("div",{className:sn,children:a.jsx(xe,{size:"24"})})]}),n||o?a.jsxs("div",{className:"mbs-0.5",children:[n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:n}):null,o?a.jsx("p",{className:c(ge,"text-13 m-0"),children:o}):null]}):null]})},dn=d.forwardRef(ln);function cn({active:e,children:t,component:r="a",className:n,href:o}){return a.jsx(B,{className:c("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",n),component:r,href:o,children:t})}const un={default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20",caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20"},fn={sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5",lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1"},pn=({message:e,variant:t="default",size:r="sm",className:n})=>{const o=un[t],s=fn[r];return a.jsx(E,{className:c(o,s,n),children:a.jsx(B,{children:e})})},gn={inputIcon:"_inputIcon_1pzdd_1"},bn=({className:e,error:t,name:r,...n},o)=>a.jsxs(a.Fragment,{children:[a.jsx("input",{className:c(["rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",gn.inputIcon,e]),id:r,name:r,ref:o,role:"textbox",type:"time",...n}),t?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),ft=d.forwardRef(bn);ft.displayName="TimePicker";const pt={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},hn=({content:e,className:t,...r})=>a.jsx("div",{className:c(pt.tooltipWrapper,t),...r,children:a.jsx("span",{className:pt.tooltipContent,children:e})});p.AutocompleteSelect=ke,p.Box=E,p.Breadcrumb=Te,p.Breadcrumbs=ze,p.Button=R,p.ButtonComponent=Fe,p.Checkbox=We,p.Divider=At,p.FocusTrap=Oe,p.Heading=Je,p.HorizontalLoader=Ut,p.IconButton=He,p.IconLinkButton=_e,p.ImageUpload=Ye,p.Input=oe,p.LinkButton=Qe,p.LinkButtonComponent=Re,p.List=se,p.ListItem=X,p.ListItemActions=Sr,p.ListItemContent=Er,p.ListItemText=Nr,p.Option=Qr,p.Popover=Cr,p.PopoverBody=Xr,p.PopoverTrigger=Jr,p.RadioSet=dt,p.RadioSetItem=it,p.Select=dn,p.Tab=cn,p.Tag=pn,p.Text=B,p.TimePicker=ft,p.Tooltip=hn,p.buttonSizeOptions=Vt,p.defaultButtonClasses=ie,p.determineSizeClasses=de,p.iconSizes=$,p.useCombinedRefs=G,p.useLockBodyScroll=Nt,p.variantClasses=A,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
1
+ (function(p,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("clsx"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","clsx","react-dom"],a):(p=typeof globalThis<"u"?globalThis:p||self,a(p["design-system-components"]={},p["react/jsx-runtime"],p.React,p.clsx))})(this,function(p,a,d,c){"use strict";var ht=Object.defineProperty,mt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ve=(e,t,r)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vt=(e,t)=>{for(var r in t||(t={}))me.call(t,r)&&ve(e,r,t[r]);if(Z)for(var r of Z(t))ye.call(t,r)&&ve(e,r,t[r]);return e},xt=(e,t)=>mt(e,yt(t)),wt=(e,t)=>{var r={};for(var n in e)me.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Z)for(var n of Z(e))t.indexOf(n)<0&&ye.call(e,n)&&(r[n]=e[n]);return r},kt=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=wt(r,["title","titleId"]);return a.jsxs("svg",xt(vt({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z",fill:"currentColor"})]}))},St=d.forwardRef(kt),xe=St;const ae=e=>{if(e){if(typeof e!="string"&&e)return c(e.lightMode,e.darkMode);if(typeof e=="string")return e}},we=e=>{if(e){if(typeof e!="string"&&e)return c(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},Et=({background:e,borderColor:t,borderRadius:r,borderWidth:n,className:o,component:s="div",color:l,elevation:i=0,height:f,margin:g,padding:h,width:v,...w},m)=>{const b={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},N=ae(l),k=ae(e),M=ae(t),L=we(h),P=we(g),x=c(r,n,b[i],P,L,N,k,M,v,f,o);return d.createElement(s,{className:x,...w,ref:m})},E=d.forwardRef(Et);E.displayName="Box";const G=({innerRef:e,forwardedRef:t})=>(d.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function Nt(){d.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const Ct=({className:e,disabled:t,endIcon:r,error:n,hint:o,label:s,name:l,onChange:i,placeholder:f,startIcon:g,value:h,...v},w)=>{const m=d.useRef(null),b=G({forwardedRef:w,innerRef:m}),[N,k]=d.useState(Boolean(h)),[M,L]=d.useState(!1);d.useEffect(()=>{var u;k(Boolean((u=b==null?void 0:b.current)==null?void 0:u.value)||Boolean(h||f))},[h,f,b]);const P=u=>{var ne;k(Boolean((ne=b==null?void 0:b.current)==null?void 0:ne.value)||Boolean(h||f)),i&&i(u)},x=()=>{t||!b.current||(b.current.focus(),L(!0))},y=()=>{L(!1)};return a.jsxs("div",{className:c(["flex items-start flex-col gap-0.5",e]),children:[a.jsxs("div",{className:c(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:x,onFocus:x,children:[g?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:g}):null,a.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[a.jsx("input",{className:c(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",g?"pis-1":"pis-2",r?"pie-1":"pie-2",s?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:l,onBlur:y,onChange:P,placeholder:f,ref:b,value:h,...v}),s?a.jsx("label",{className:c("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",g?"ltr:left-1 rtl:right-1":"ltr:left-2 rtl:right-2",M||N?"text-13 -translate-y-1.5":"text-16"),htmlFor:l,children:s}):null]}),r?a.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),n||o?a.jsxs("div",{className:"flex flex-col",children:[n?a.jsx("span",{className:"text-alert dark:text-alert-dark",children:n}):null,o?a.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},oe=d.forwardRef(Ct);oe.displayName="Input";const It=({children:e,className:t,...r},n)=>a.jsx("ul",{className:c(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:n,...r,children:e}),se=d.forwardRef(It);se.displayName="List";const Lt=({children:e,className:t,disabled:r,divider:n,onClick:o,...s},l)=>{const i=f=>{o&&(f.code==="Enter"||f.key===" ")&&o()};return a.jsx("li",{className:c(["flex items-center box-border relative",n?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,t]),ref:l,...s,children:a.jsx("div",{className:c(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",o?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:o,onKeyUp:i,onTouchEnd:o,tabIndex:o?0:void 0,children:e})})},X=d.forwardRef(Lt);X.displayName="ListItem";const Pt=({label:e,name:t,options:r,disabled:n=!1,error:o,hint:s,noOptionsText:l,onChange:i,onSelect:f,value:g,...h},v)=>{const w=d.useRef(null),[m,b]=d.useState(g),[N,k]=d.useState(!1),M=y=>{N||k(!0),!y.length&&m&&b(null),i(y)},L=y=>{f(y),i(y.label),b(y.label),k(!1)},P=d.useCallback(y=>{w.current&&!w.current.contains(y.target)&&(!m&&g&&i(""),m&&g&&i(m),k(!1))},[i,m,g]),x=d.useMemo(()=>r.filter(y=>y.label.toLowerCase().includes(g.toLowerCase()))??[],[r,g]);return d.useEffect(()=>(document.addEventListener("click",P,!0),()=>{document.removeEventListener("click",P,!0)}),[P]),a.jsxs(E,{className:"relative",ref:w,children:[a.jsx(oe,{disabled:n,endIcon:a.jsx(xe,{size:"24"}),error:o,hint:s,label:e,name:t??e,onChange:y=>{M(y.target.value)},onFocus:()=>k(!0),ref:v,value:g??"",...h}),N?a.jsx(E,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:a.jsx(se,{className:"max-h-[300px] overflow-y-auto",children:x.length?x.map((y,u)=>a.jsx(X,{onClick:()=>L(y),children:y.label},`${y.value}-${u}`)):a.jsx(X,{children:l})})}):null]})},ke=d.forwardRef(Pt);ke.displayName="AutocompleteSelect";const Se={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},J={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},le={...J,base:"font-regular leading-loose",xl:"text-23 md:text-28"},Ee={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},Ne={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Ce={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},Ie={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Le={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},Pe=({size:e,variant:t})=>{switch(t){case"headline":return c(Se.base,Se[e]);case"label":return c(J.base,e?J[e]:J.default);case"paragraph":return c(le.base,e?le[e]:le.default);case"eyebrow":return c(Ee.base,Ee[e]);case"caption":return c(Ne.base,Ne[e]);case"buttonLabel":return c(Ce.base,Ce[e]);case"fieldLabel":return c(Ie.base,Ie[e]);case"fieldTextInput":return c(Le.base,Le[e]);default:return e}},Be={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},Bt=({className:e,component:t="p",children:r,font:n="primary",size:o,variant:s,...l},i)=>{const f="text-text-light dark:text-text-dark",g=Be[n],h=Pe({size:o,variant:s});return a.jsx(E,{className:c(f,h,g,e),component:t,ref:i,...l,children:r})},B=d.forwardRef(Bt);B.displayName="Text";const Te=({children:e,component:t="a",className:r,disabled:n,active:o,...s})=>a.jsx(B,{className:c(["font-bold text-gray-50 leading-default whitespace-nowrap",o?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",n?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...s,children:e});Te.displayName="Breadcrumb";var Tt=Object.defineProperty,Dt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,je=(e,t,r)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jt=(e,t)=>{for(var r in t||(t={}))De.call(t,r)&&je(e,r,t[r]);if(Y)for(var r of Y(t))Me.call(t,r)&&je(e,r,t[r]);return e},zt=(e,t)=>Dt(e,Mt(t)),Ft=(e,t)=>{var r={};for(var n in e)De.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Y)for(var n of Y(e))t.indexOf(n)<0&&Me.call(e,n)&&(r[n]=e[n]);return r},Wt=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=Ft(r,["title","titleId"]);return a.jsxs("svg",zt(jt({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},Ot=d.forwardRef(Wt),Ht=Ot;const _t=({children:e,className:t,...r},n)=>{const o=d.Children.toArray(e),s=o.findIndex(l=>{var i;return d.isValidElement(l)?(i=l==null?void 0:l.props)==null?void 0:i.active:!1});return a.jsx("div",{className:c(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:n,...r,children:o.map((l,i)=>a.jsxs("div",{className:"flex items-center",children:[i?a.jsx(Ht,{className:c(["mx-1",i>s&&"text-gray-15",i<=s&&"text-gray-25"]),size:"15"}):null,typeof l=="object"&&"type"in l?d.createElement(l.type,{...l.props,className:c([l.props.className??"",i<s?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>s&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):l]},`${i}-${l.toString()}`))})},ze=d.forwardRef(_t);ze.displayName="Breadcrumbs";const Vt={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},de=e=>{switch(e){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},$={lg:30,md:24,sm:18,xl:36,xs:12},ie="items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit",A={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white","risk:all_caps":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white active:shadow-none dark:active:shadow-none uppercase","risk:borderless":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 dark:disabled:bg-transparent active:shadow-none dark:active:shadow-none","risk:stroked":"bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent ring ring-2 ring-gray-50 dark:ring-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},Fe=({className:e,children:t,disabled:r,icon:n,iconAction:o,iconPosition:s,size:l="md",type:i="button",variant:f="primary",...g},h)=>{const v=de(n!==void 0?s:void 0),w=c(ie,A[f],v[l],e);return a.jsxs("button",{className:w,disabled:r,ref:h,type:i,...g,children:[s==="start"&&n!==void 0?d.createElement(n,{className:"mr-0.5",onClick:o??void 0,size:$[l]}):null,a.jsx("span",{className:"truncate",children:t}),s==="end"&&n!==void 0?d.createElement(n,{className:"ml-0.5",onClick:o??void 0,size:$[l]}):null]})},R=d.forwardRef(Fe);R.displayName="Button";const $t=({error:e,className:t,label:r,disabled:n,name:o,...s},l)=>{const i=d.useId(),f=d.useMemo(()=>`checkbox-label-${i}`,[i]);return a.jsxs("div",{className:c(["flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",t]),children:[a.jsx("input",{"aria-labelledby":f,className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:o,name:o,ref:l,type:"checkbox",...s}),r?a.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:a.jsx("label",{htmlFor:o,id:f,children:r})}):null,e?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},We=d.forwardRef($t);We.displayName="Checkbox";const At=({className:e,...t})=>a.jsx("hr",{...t,className:c("w-full border-gray-15 dark:border-gray-30 border-standard",e)}),Oe=({children:e,autoFocus:t=!0})=>{const r=d.useRef(null);return d.useEffect(()=>{if(r.current){const n=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let o=document.activeElement;const s=n[0],l=n[n.length-1],i=h=>{if(h.key==="Tab"){if(h.shiftKey){if(document.activeElement===s)h.preventDefault(),l.focus(),o=l;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v-1];break}}else if(!h.shiftKey){if(document.activeElement===l)h.preventDefault(),s.focus(),o=s;else for(let v=0;v<n.length;v++)if(n[v]===document.activeElement){o=n[v+1];break}}}};t&&(()=>{if(r.current){const h=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');h&&h.focus()}})();const g=h=>{r.current&&!r.current.contains(h.target)&&o.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",g),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",g)}}},[t]),a.jsx("div",{ref:r,children:e})},Ut=({className:e,progress:t})=>a.jsx("div",{className:c(["w-full bg-gray-15 h-2 rounded-3 overflow-hidden",e]),children:a.jsx("div",{className:"bg-blue-30 h-2 ease-in-out duration-300",style:{transitionProperty:"width",width:`${t}%`}})}),qt=({children:e,className:t,disabled:r,type:n="button",variant:o="borderless",...s},l)=>a.jsx("button",{className:c(["rounded-full inline-flex justify-center items-center p-1",t,A[o],r?"pointer-events-none":""]),disabled:r,ref:l,type:n,...s,children:e}),He=d.forwardRef(qt);He.displayName="IconButton";const Kt=({className:e,children:t,component:r="a",variant:n="borderless",...o},s)=>d.createElement(r,{...o,className:c(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",A[n],e]),ref:s},t),_e=d.forwardRef(Kt);_e.displayName="IconLinkButton";var Zt=Object.defineProperty,Gt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ae=(e,t,r)=>t in e?Zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jt=(e,t)=>{for(var r in t||(t={}))Ve.call(t,r)&&Ae(e,r,t[r]);if(Q)for(var r of Q(t))$e.call(t,r)&&Ae(e,r,t[r]);return e},Yt=(e,t)=>Gt(e,Xt(t)),Rt=(e,t)=>{var r={};for(var n in e)Ve.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Q)for(var n of Q(e))t.indexOf(n)<0&&$e.call(e,n)&&(r[n]=e[n]);return r},Qt=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=Rt(r,["title","titleId"]);return a.jsxs("svg",Yt(Jt({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},er=d.forwardRef(Qt),tr=er,rr=Object.defineProperty,nr=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ke=(e,t,r)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,or=(e,t)=>{for(var r in t||(t={}))Ue.call(t,r)&&Ke(e,r,t[r]);if(ee)for(var r of ee(t))qe.call(t,r)&&Ke(e,r,t[r]);return e},sr=(e,t)=>nr(e,ar(t)),lr=(e,t)=>{var r={};for(var n in e)Ue.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ee)for(var n of ee(e))t.indexOf(n)<0&&qe.call(e,n)&&(r[n]=e[n]);return r},dr=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=lr(r,["title","titleId"]);return a.jsxs("svg",sr(or({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{d:"M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z",fill:"currentColor"}),a.jsx("path",{d:"M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z",fill:"currentColor"})]}))},ir=d.forwardRef(dr),cr=ir,ur=Object.defineProperty,fr=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Xe=(e,t,r)=>t in e?ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gr=(e,t)=>{for(var r in t||(t={}))Ze.call(t,r)&&Xe(e,r,t[r]);if(te)for(var r of te(t))Ge.call(t,r)&&Xe(e,r,t[r]);return e},br=(e,t)=>fr(e,pr(t)),hr=(e,t)=>{var r={};for(var n in e)Ze.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&te)for(var n of te(e))t.indexOf(n)<0&&Ge.call(e,n)&&(r[n]=e[n]);return r},mr=(e,t)=>{var r=e,{title:n,titleId:o}=r,s=hr(r,["title","titleId"]);return a.jsxs("svg",br(gr({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),{children:[n?a.jsx("title",{id:o,children:n}):null,a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z",fill:"currentColor",children:a.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:s.dur,repeatCount:"indefinite"})})]}))},yr=d.forwardRef(mr),vr=yr;const xr={1:"h1",2:"h2",3:"h3",4:"h4"},wr=({className:e,children:t,font:r="primary",level:n=1,size:o,variant:s,...l},i)=>{const f="text-text-light dark:text-text-dark",g=Be[r],h=Pe({size:o,variant:s});return a.jsx(E,{className:c(f,h,g,e),component:xr[n],ref:i,...l,children:t})},Je=d.forwardRef(wr);Je.displayName="Heading";const kr=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:n,disabled:o=!1,dismissCallback:s,dismissImageAriaLabel:l="Remove Image",error:i="",fileMaxKbSizeError:f=(C,be)=>`${C} is too big to upload, the maximum size is ${be}kb. Please try again.`,fileMaxSizeError:g=C=>`${C} is too large to upload. The maximum dimensions are ${u==null?void 0:u.maxWidth}x${u==null?void 0:u.maxHeight}. Please try again.`,fileMinSizeError:h=C=>`${C} is too small to upload. The minimum dimensions are ${u==null?void 0:u.minWidth}x${u==null?void 0:u.minHeight}. Please try again.`,fileRatioError:v=C=>`${C} must have a ratio of, ${u==null?void 0:u.imageRatio}. Please try again.`,fileCallback:w,hero:m=!1,hint:b,imageWidth:N=160,imageSrc:k,label:M="Upload Image",name:L="imageUpload",onBlur:P,preProcessing:x,shape:y="circle",validation:u},ne)=>{const C=d.useRef(null),be=G({forwardedRef:ne,innerRef:C}),[S,V]=d.useState(void 0),[j,z]=d.useState(k?"resolved":"idle"),[he,q]=d.useState(i),mn=()=>C!=null&&C.current?C.current.click():void 0,gt=d.useMemo(()=>S&&j!=="rejected"?(z("resolved"),S.imageSrc):k&&j==="resolved"?(z("resolved"),k):null,[S,k,j]),yn=d.useMemo(()=>{const T=()=>{s&&s(k),V(void 0),z("idle")};switch(j){case"pending":return a.jsx(E,{className:"animate-spin",children:a.jsx(vr,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return a.jsxs(a.Fragment,{children:[a.jsx("img",{alt:`${S==null?void 0:S.id} preview`,className:c(["object-fit w-full h-full",y==="circle"?"rounded-full":"rounded-0.5",y!=="unset"||!m?"aspect-square":"",y==="unset"&&m?"aspect-video":"",y==="unset"&&!m?"!aspect-auto":""]),onLoad:()=>S!=null&&S.imageSrc?URL.revokeObjectURL(S.imageSrc):void 0,src:gt||void 0,width:N}),o?null:a.jsx(R,{"aria-label":l,className:"absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1","data-testid":"remove image",onClick:T,children:a.jsx(tr,{})})]});default:return a.jsx(E,{className:"gray-10 dark:gray-30",children:a.jsx(cr,{"data-testid":"placeholder image",size:"32"})})}},[o,s,l,m,S==null?void 0:S.id,S==null?void 0:S.imageSrc,k,j,N,gt,y]),vn=({file:T,imageUrl:W})=>new Promise((O,H)=>{var bt;const I=new Image,K=(bt=u==null?void 0:u.imageRatio)==null?void 0:bt.split("/");I.onload=async()=>{if(u)if(u!=null&&u.maxByteSize&&T.size>u.maxByteSize){V(void 0),z("rejected");const Nn=f(T.name,Math.round(u.maxByteSize/1e3));return q(Nn),H(!1)}else{if(u!=null&&u.minWidth&&I.width<(u==null?void 0:u.minWidth)||u!=null&&u.minHeight&&I.height<(u==null?void 0:u.minHeight))return V(void 0),z("rejected"),q(h(T.name)),H(!1);if(u!=null&&u.maxHeight&&I.height>(u==null?void 0:u.maxHeight)||u!=null&&u.maxWidth&&I.width>(u==null?void 0:u.maxWidth))return V(void 0),z("rejected"),q(g(T.name)),H(!1);if(u!=null&&u.imageRatio&&(K==null?void 0:K.length)===2&&parseInt(K[0])/parseInt(K[1])!==I.width/I.height)return V(void 0),z("rejected"),q(v(T.name)),H(!1)}return N=I.width,typeof w=="function"&&(console.log("Callback"),await w(T,I)),q(""),O(!0)},I.src=W}),xn=async T=>{try{const{files:W}=T.target;if(W){const O=W[0],H=URL.createObjectURL(O);let I=!0;z("pending"),x&&await x(O),I=await vn({file:O,imageUrl:H}),I&&(V({file:O,id:O.name,imageSrc:H}),z("resolved"))}}catch(W){if(W instanceof Error)throw W}},wn=c([y==="circle"&&!m?"rounded-full aspect-square":""]),kn=c([y==="square"&&!m?"aspect-square rounded-1":""]),Sn=c([y==="unset"&&!m?"rounded-1":"",y==="unset"&&j!=="idle"&&!m?"aspect-auto":"",y==="unset"&&j!=="resolved"&&!m?"aspect-square":""]),En=c([m?"rounded-1 aspect-video":""]);return a.jsxs(E,{className:c([n]),children:[a.jsxs(E,{className:c(["relative border-small border-solid rounded-1 mb-0.5 pt-1 pb-2 px-2 text-text-muted-light dark:text-text-muted-dark",,he?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",o?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[a.jsx(B,{className:"pb-1.5 text-text-muted-light dark:text-text-muted-dark",children:a.jsx("label",{htmlFor:L,children:M})}),a.jsxs(E,{className:"flex relative flex-wrap justify-center md:justify-start",children:[a.jsx(E,{className:c(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",m?"w-full":"md:w-1/2 w-4/5",o?"border-small border-solid border-tertiary-light":"",j!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",wn,kn,Sn,En]),children:yn}),a.jsx(R,{className:c(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",m?"!mbs-2":""]),disabled:o,onClick:mn,size:"sm",variant:"stroked",children:j==="resolved"?t:r}),a.jsx("input",{accept:e.toString(),className:"hidden",disabled:o,id:L,name:L,onBlur:P,onChange:xn,ref:be,title:"",type:"file",value:""})]})]}),he?a.jsx(B,{className:"dark:!text-alert-dark !text-alert-light text-13",children:he}):null,b?a.jsx(B,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:b}):null]})},Ye=d.forwardRef(kr);Ye.displayName="ImageUpload";const Re=({className:e,children:t,component:r="a",icon:n,iconPosition:o,variant:s="primary",size:l="md",...i},f)=>{const g=de(n!==void 0?o:void 0),h=({children:v})=>d.createElement(r,{...i,className:c([ie,A[s],g[l],"no-underline cursor-pointer",e]),ref:f},v);return a.jsxs(h,{children:[o==="start"&&n!==void 0?d.createElement(n,{className:"mie-0.5 flex-shrink-0",size:$[l]}):null,d.createElement("span",{className:"truncate"},t),o==="end"&&n!==void 0?d.createElement(n,{className:"mis-0.5 flex-shrink-0",size:$[l]}):null]})},Qe=d.forwardRef(Re);Qe.displayName="LinkButton";function Sr({children:e,className:t,position:r}){let n="";return r&&(r==="start"?n="order-first":n="order-last"),a.jsx("div",{className:c("flex gap-1",n,t),children:e})}function Er({children:e,className:t}){return a.jsx("div",{className:c("flex-grow",t),children:e})}const Nr=({children:e,className:t,endText:r,endTextProps:n,size:o="sm",subHeadline:s,subHeadlineProps:l})=>a.jsxs("div",{className:c(["flex items-center justify-between break-words",t]),children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx(B,{size:o,variant:"label",children:e}),s?a.jsx(B,{...l,children:s}):null]}),r?a.jsx(B,{...n,children:r}):null]}),Cr=({children:e,className:t,...r})=>a.jsx("div",{className:c(["relative",t]),...r,children:e}),Ir=typeof window<"u"?d.useLayoutEffect:()=>{};let U=new Map,et=new Set;function tt(){if(typeof window>"u")return;let e=r=>{let n=U.get(r.target);n||(n=new Set,U.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=U.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),U.delete(r.target)),U.size===0)){for(let o of et)o();et.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?tt():document.addEventListener("DOMContentLoaded",tt));function Lr(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Pr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Br(){return Pr(/^Mac/i)}function Tr(){return Lr(/Android/i)}function Dr(e){return e.mozInputSource===0&&e.isTrusted?!0:Tr()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Mr=d.createContext(null);Mr.displayName="PressResponderContext";class jr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function zr(e){let t=d.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Ir(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=s=>{var l,i;t.current.isFocused=!1,n.disabled&&((i=(l=t.current).onBlur)===null||i===void 0||i.call(l,new jr("blur",s))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}let Fr=new Set,rt=!1,F=!1,ue=!1;function fe(e,t){for(let r of Fr)r(e,t)}function Wr(e){return!(e.metaKey||!Br()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nt(e){F=!0,Wr(e)&&fe("keyboard",e)}function _(e){(e.type==="mousedown"||e.type==="pointerdown")&&(F=!0,fe("pointer",e))}function Or(e){Dr(e)&&(F=!0)}function Hr(e){e.target===window||e.target===document||(!F&&!ue&&fe("virtual",e),F=!1,ue=!1)}function _r(){F=!1,ue=!0}function at(){if(typeof window>"u"||rt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){F=!0,e.apply(this,arguments)},document.addEventListener("keydown",nt,!0),document.addEventListener("keyup",nt,!0),document.addEventListener("click",Or,!0),window.addEventListener("focus",Hr,!0),window.addEventListener("blur",_r,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",_,!0),document.addEventListener("pointermove",_,!0),document.addEventListener("pointerup",_,!0)):(document.addEventListener("mousedown",_,!0),document.addEventListener("mousemove",_,!0),document.addEventListener("mouseup",_,!0)),rt=!0}typeof document<"u"&&(document.readyState!=="loading"?at():document.addEventListener("DOMContentLoaded",at));function Vr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,s=d.useRef({isFocusWithin:!1}),l=d.useCallback(g=>{s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,r&&r(g),o&&o(!1))},[r,o,s]),i=zr(l),f=d.useCallback(g=>{!s.current.isFocusWithin&&document.activeElement===g.target&&(n&&n(g),o&&o(!0),s.current.isFocusWithin=!0,i(g))},[n,o,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:f,onBlur:l}}}function $r(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,l=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:o}).current;l.onInteractOutside=r,l.onInteractOutsideStart=o,d.useEffect(()=>{if(n)return;let i=f=>{re(f,t)&&l.onInteractOutside&&(l.onInteractOutsideStart&&l.onInteractOutsideStart(f),l.isPointerDown=!0)};if(typeof PointerEvent<"u"){let f=g=>{l.isPointerDown&&l.onInteractOutside&&re(g,t)&&l.onInteractOutside(g),l.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",f,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",f,!0)}}else{let f=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&l.onInteractOutside&&re(h,t)&&l.onInteractOutside(h),l.isPointerDown=!1},g=h=>{l.ignoreEmulatedMouseEvents=!0,l.onInteractOutside&&l.isPointerDown&&re(h,t)&&l.onInteractOutside(h),l.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",f,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",g,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",f,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",g,!0)}}},[t,l,n])}function re(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}let Ar=null;function ot(e,t){return t.some(r=>r.contains(e))}function Ur(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of lt.traverse(lt.getTreeNode(t)))if(ot(e,r.current))return!0;return!1}function qr(e){return Ur(e,Ar)}class pe{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),s=new st({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),n&&(s.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef.current&&ot(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(s=>n.addChild(s)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new pe;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){ce(this,"fastMap",new Map),this.root=new st({scopeRef:null}),this.fastMap.set(null,this.root)}}class st{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){ce(this,"children",new Set),ce(this,"contain",!1),this.scopeRef=t.scopeRef}}let lt=new pe;const D=[];function Kr(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:s=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:i}=e;d.useEffect(()=>(o&&D.push(t),()=>{let b=D.indexOf(t);b>=0&&D.splice(b,1)}),[o,t]);let f=()=>{D[D.length-1]===t&&r&&r()},g=b=>{(!i||i(b.target))&&D[D.length-1]===t&&(b.stopPropagation(),b.preventDefault())},h=b=>{(!i||i(b.target))&&(D[D.length-1]===t&&(b.stopPropagation(),b.preventDefault()),f())},v=b=>{b.key==="Escape"&&!l&&(b.stopPropagation(),b.preventDefault(),f())};$r({ref:t,onInteractOutside:s?h:null,onInteractOutsideStart:g});let{focusWithinProps:w}=Vr({isDisabled:!n,onBlurWithin:b=>{b.relatedTarget&&qr(b.relatedTarget)||(!i||i(b.relatedTarget))&&r()}}),m=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:v,...w},underlayProps:{onPointerDown:m}}}const Zr=({align:e,children:t,className:r,...n})=>{const o=d.useMemo(()=>{const{horizontal:s,vertical:l}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},f={bottom:"",top:"bottom-full"};return`${i[s]} ${f[l]}`},[e]);return a.jsx("div",{className:c(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mb-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",o,r]),...n,children:t})},Gr=({open:e,children:t})=>a.jsx(a.Fragment,{children:e?t:null}),Xr=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:n,isDismissible:o,isOpen:s,onClose:l,...i})=>{const f=d.useRef(null),{overlayProps:g}=Kr({isDismissable:o,isKeyboardDismissDisabled:!o,isOpen:s,onClose:l},f);return a.jsx(Gr,{open:s,children:a.jsx(Oe,{autoFocus:t,children:a.jsx(Zr,{align:e,className:n,onClose:l,...i,children:a.jsx("div",{ref:f,...g,onClick:l,children:r})})})})},Jr=({onToggle:e,children:t,className:r,disabled:n})=>{const o=i=>{i.preventDefault(),i.stopPropagation(),e()},s=d.useRef(null),l=d.cloneElement(t,{className:r,disabled:n,onClick:o,ref:s});return a.jsx(a.Fragment,{children:l})},Yr=(e,t)=>{const{children:r,error:n,hint:o,label:s}=e;return a.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[a.jsx("label",{children:s}),n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:n}):null,o?a.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:o}):null,r]})},dt=d.forwardRef(Yr);dt.displayName="Radio Set";const Rr=({children:e,disabled:t,name:r,value:n,...o},s)=>a.jsxs("div",{className:"flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",children:[a.jsx("input",{className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:s,...o,type:"radio",value:n}),a.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:"name",children:e})]}),it=d.forwardRef(Rr);it.displayName="RadioSetItem";const Qr=({...e})=>a.jsx("option",{...e}),ct="_select_1dwiy_1",Cn={select:ct},en="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",tn="border-alert-light dark:border-alert-dark",rn="border-tertiary-light dark:border-tertiary-dark",ge="text-text-muted-light dark:text-text-muted-dark",ut=c(ge,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),nn="-translate-y-1 opacity-100",an="text-overlay-text dark:text-text-dark",on="!pbs-3 !pbe-1",sn="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",ln=({children:e,className:t,disabled:r=!1,error:n,hint:o,label:s,name:l,onChange:i,value:f,...g},h)=>{var P;const v=c(ct,en),w=d.useRef(null),m=G({forwardedRef:h,innerRef:w}),[b,N]=d.useState(Boolean(f||((P=m==null?void 0:m.current)==null?void 0:P.value)));d.useEffect(()=>{var x;N(Boolean(((x=m==null?void 0:m.current)==null?void 0:x.value)||f))},[f,m]);const k=d.useMemo(()=>{const x=c(v,an,s?on:null),y=c(v,ge);return b?x:y},[v,b,s]),M=d.useMemo(()=>{const x=c(ut,nn),y=c(ut);return b?x:y},[b]),L=x=>{var y;N(Boolean(((y=m==null?void 0:m.current)==null?void 0:y.value)||f)),i&&i(x)};return a.jsxs("div",{className:c(t),children:[a.jsxs("div",{className:c("relative w-full border-none"),children:[a.jsx("select",{...g,className:c([k,n?tn:rn]),disabled:r,id:l,name:l,onChange:L,ref:m,value:f,children:e}),a.jsx("label",{className:M,htmlFor:l,children:s}),a.jsx("div",{className:sn,children:a.jsx(xe,{size:"24"})})]}),n||o?a.jsxs("div",{className:"mbs-0.5",children:[n?a.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:n}):null,o?a.jsx("p",{className:c(ge,"text-13 m-0"),children:o}):null]}):null]})},dn=d.forwardRef(ln);function cn({active:e,children:t,component:r="a",className:n,href:o}){return a.jsx(B,{className:c("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",n),component:r,href:o,children:t})}const un={default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20",caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20"},fn={sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5",lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1"},pn=({message:e,variant:t="default",size:r="sm",className:n})=>{const o=un[t],s=fn[r];return a.jsx(E,{className:c(o,s,n),children:a.jsx(B,{children:e})})},gn={inputIcon:"_inputIcon_1pzdd_1"},bn=({className:e,error:t,name:r,...n},o)=>a.jsxs(a.Fragment,{children:[a.jsx("input",{className:c(["rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto h-[58px]",gn.inputIcon,e]),id:r,name:r,ref:o,role:"textbox",type:"time",...n}),t?a.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),ft=d.forwardRef(bn);ft.displayName="TimePicker";const pt={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},hn=({content:e,className:t,...r})=>a.jsx("div",{className:c(pt.tooltipWrapper,t),...r,children:a.jsx("span",{className:pt.tooltipContent,children:e})});p.AutocompleteSelect=ke,p.Box=E,p.Breadcrumb=Te,p.Breadcrumbs=ze,p.Button=R,p.ButtonComponent=Fe,p.Checkbox=We,p.Divider=At,p.FocusTrap=Oe,p.Heading=Je,p.HorizontalLoader=Ut,p.IconButton=He,p.IconLinkButton=_e,p.ImageUpload=Ye,p.Input=oe,p.LinkButton=Qe,p.LinkButtonComponent=Re,p.List=se,p.ListItem=X,p.ListItemActions=Sr,p.ListItemContent=Er,p.ListItemText=Nr,p.Option=Qr,p.Popover=Cr,p.PopoverBody=Xr,p.PopoverTrigger=Jr,p.RadioSet=dt,p.RadioSetItem=it,p.Select=dn,p.Tab=cn,p.Tag=pn,p.Text=B,p.TimePicker=ft,p.Tooltip=hn,p.buttonSizeOptions=Vt,p.defaultButtonClasses=ie,p.determineSizeClasses=de,p.iconSizes=$,p.useCombinedRefs=G,p.useLockBodyScroll=Nt,p.variantClasses=A,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",