@youversion/design-system-components 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,3 +1,3 @@
1
- (function(h,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("clsx"),require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","clsx","react/jsx-runtime","react","react-dom"],_):(h=typeof globalThis<"u"?globalThis:h||self,_(h["design-system-components"]={},h.clsx,h["react/jsx-runtime"],h.React))})(this,function(h,_,i,c){"use strict";var or=Object.defineProperty,ar=Object.defineProperties,sr=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,_e=(e,t,r)=>t in e?or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ir=(e,t)=>{for(var r in t||(t={}))Ve.call(t,r)&&_e(e,r,t[r]);if(pe)for(var r of pe(t))Ue.call(t,r)&&_e(e,r,t[r]);return e},lr=(e,t)=>ar(e,sr(t)),dr=(e,t)=>{var r={};for(var n in e)Ve.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&pe)for(var n of pe(e))t.indexOf(n)<0&&Ue.call(e,n)&&(r[n]=e[n]);return r},cr=(e,t)=>{var r=e,{title:n,titleId:o}=r,a=dr(r,["title","titleId"]);return i.jsxs("svg",lr(ir({width:a.size||"24",height:a.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},a),{children:[n?i.jsx("title",{id:o,children:n}):null,i.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"})]}))},ur=c.forwardRef(cr),qe=ur,Ze={0:"0px",px:"1px","0.25":"2px","0.5":"4px",1:"8px","1.5":"12px",2:"16px",3:"24px",4:"32px",5:"40px",6:"48px",8:"64px",10:"80px",12:"96px",16:"128px",20:"144px",22:"160px",full:"100%"},Ke={borderRadius:Ze,borderWidth:{none:"0px",small:"1px",standard:"2px",large:"3px"}},Ee={fontSize:{11:"0.6875rem",13:"0.8125rem",16:"1rem",19:"1.1875rem",23:"1.4375rem",28:"1.75rem",33:"2.0625rem",40:"2.5rem",48:"3rem",57:"3.5625rem",69:"4.3125rem",83:"5.1875rem",99:"6.1875rem",119:"7.4375rem",143:"8.9375rem"},fontWeight:{thin:100,regular:400,medium:500,bold:700},fontFamily:{"aktiv-grotesk":'Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"aktiv-grotesk-exanded":'Aktiv Grotesk Expanded, Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"untitled-serif":"Untitled Serif, Baskerville, Georgia, Times New Roman, serif"},lineHeight:{0:0,tight:1,comfy:1.1,default:1.25,loose:1.5}};function fr(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=Xe(t))&&(n&&(n+=" "),n+=r);return n}function Xe(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=Xe(e[n]))&&(r&&(r+=" "),r+=t);return r}var Ie="-";function pr(e){var t=gr(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=n===void 0?{}:n;function a(l){var d=l.split(Ie);return d[0]===""&&d.length!==1&&d.shift(),Je(d,t)||br(l)}function s(l,d){var u=r[l]||[];return d&&o[l]?[].concat(u,o[l]):u}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function Je(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?Je(e.slice(1),n):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(Ie);return(s=t.validators.find(function(l){var d=l.validator;return d(a)}))==null?void 0:s.classGroupId}}var Ye=/^\[(.+)\]$/;function br(e){if(Ye.test(e)){var t=Ye.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function gr(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=hr(Object.entries(e.classGroups),r);return o.forEach(function(a){var s=a[0],l=a[1];Pe(l,n,s,t)}),n}function Pe(e,t,r,n){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:Re(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(mr(o)){Pe(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(function(s){var l=s[0],d=s[1];Pe(d,Re(t,l),r,n)})})}function Re(e,t){var r=e;return t.split(Ie).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function mr(e){return e.isThemeGetter}function hr(e,t){return t?e.map(function(r){var n=r[0],o=r[1],a=o.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(l){var d=l[0],u=l[1];return[t+d,u]})):s});return[n,a]}):e}function vr(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(a,s){r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(s){var l=r.get(s);if(l!==void 0)return l;if((l=n.get(s))!==void 0)return o(s,l),l},set:function(s,l){r.has(s)?r.set(s,l):o(s,l)}}}var Qe="!";function yr(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(s){for(var l=[],d=0,u=0,f,m=0;m<s.length;m++){var x=s[m];if(d===0){if(x===n&&(r||s.slice(m,m+o)===t)){l.push(s.slice(u,m)),u=m+o;continue}if(x==="/"){f=m;continue}}x==="["?d++:x==="]"&&d--}var v=l.length===0?s:s.substring(u),g=v.startsWith(Qe),k=g?v.substring(1):v,w=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:k,maybePostfixModifierPosition:w}}}function xr(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function wr(e){return{cache:vr(e.cacheSize),splitModifiers:yr(e),...pr(e)}}var kr=/\s+/;function Sr(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(kr).map(function(s){var l=r(s),d=l.modifiers,u=l.hasImportantModifier,f=l.baseClassName,m=l.maybePostfixModifierPosition,x=n(m?f.substring(0,m):f),v=Boolean(m);if(!x){if(!m)return{isTailwindClass:!1,originalClassName:s};if(x=n(f),!x)return{isTailwindClass:!1,originalClassName:s};v=!1}var g=xr(d).join(":"),k=u?g+Qe:g;return{isTailwindClass:!0,modifierId:k,classGroupId:x,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var l=s.modifierId,d=s.classGroupId,u=s.hasPostfixModifier,f=l+d;return a.has(f)?!1:(a.add(f),o(d,u).forEach(function(m){return a.add(l+m)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function et(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,s=l;function l(u){var f=t[0],m=t.slice(1),x=m.reduce(function(v,g){return g(v)},f());return n=wr(x),o=n.cache.get,a=n.cache.set,s=d,d(u)}function d(u){var f=o(u);if(f)return f;var m=Sr(u,n);return a(u,m),m}return function(){return s(fr.apply(null,arguments))}}function S(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,Nr=new Set(["px","full","screen"]),Er=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ir=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/,Pr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function D(e){return q(e)||Nr.has(e)||Cr.test(e)||V(e)}function V(e){return Z(e,"length",jr)}function Lr(e){return Z(e,"size",rt)}function Mr(e){return Z(e,"position",rt)}function Tr(e){return Z(e,"url",Ar)}function be(e){return Z(e,"number",q)}function q(e){return!Number.isNaN(Number(e))}function zr(e){return e.endsWith("%")&&q(e.slice(0,-1))}function se(e){return nt(e)||Z(e,"number",nt)}function E(e){return tt.test(e)}function ie(){return!0}function U(e){return Er.test(e)}function Br(e){return Z(e,"",Wr)}function Z(e,t,r){var n=tt.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function jr(e){return Ir.test(e)}function rt(){return!1}function Ar(e){return e.startsWith("url(")}function nt(e){return Number.isInteger(Number(e))}function Wr(e){return Pr.test(e)}function ot(){var e=S("colors"),t=S("spacing"),r=S("blur"),n=S("brightness"),o=S("borderColor"),a=S("borderRadius"),s=S("borderSpacing"),l=S("borderWidth"),d=S("contrast"),u=S("grayscale"),f=S("hueRotate"),m=S("invert"),x=S("gap"),v=S("gradientColorStops"),g=S("gradientColorStopPositions"),k=S("inset"),w=S("margin"),P=S("opacity"),N=S("padding"),M=S("saturate"),C=S("scale"),y=S("sepia"),p=S("skew"),X=S("space"),L=S("translate"),J=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},O=function(){return["auto",t]},W=function(){return["",D]},z=function(){return["auto",q,E]},ne=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},F=function(){return["solid","dashed","dotted","double","none"]},Ce=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},oe=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",E]},Ne=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[q,be]},ae=function(){return[q,E]};return{cacheSize:500,theme:{colors:[ie],spacing:[D],blur:["none","",U,V],brightness:R(),borderColor:[e],borderRadius:["none","","full",U,V],borderSpacing:[t],borderWidth:W(),contrast:R(),grayscale:Y(),hueRotate:ae(),invert:Y(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[zr,V],inset:O(),margin:O(),opacity:R(),padding:[t],saturate:R(),scale:R(),sepia:Y(),skew:ae(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Ne()}],"break-before":[{"break-before":Ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(ne(),[E])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",se]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",se]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:[se]},E]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[se]},E]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal"].concat(oe())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(oe(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(oe(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",D]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[U]},U,V]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",D]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",U,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",q,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(F(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",D]}],"underline-offset":[{"underline-offset":["auto",D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ne(),[Mr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(F(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(F())}],"outline-offset":[{"outline-offset":[D]}],"outline-w":[{outline:[D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Br]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":Ce()}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",U,E]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[M]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[se,E]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[p]}],"skew-y":[{"skew-y":[p]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-ms":[{"scroll-ms":[t]}],"scroll-me":[{"scroll-me":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-ps":[{"scroll-ps":[t]}],"scroll-pe":[{"scroll-pe":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Dr(e,t){for(var r in t)at(e,r,t[r]);return e}var Gr=Object.prototype.hasOwnProperty,Or=new Set(["string","number","boolean"]);function at(e,t,r){if(!Gr.call(e,t)||Or.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)at(e[t],n,r[n])}}function Fr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?et.apply(void 0,[ot,e].concat(r)):et.apply(void 0,[function(){return Dr(ot(),e)}].concat(r))}const $r=Object.keys(Ee.fontSize),Hr=Object.keys(Ee.fontWeight),Vr=Object.keys(Ee.lineHeight),A=Object.keys(Ze),Ur=Object.keys(Ke.borderWidth),_r=Object.keys(Ke.borderRadius),qr=Fr({classGroups:{"font-size":[{text:$r}],"font-weight":[{font:Hr}],leading:[{leading:Vr}],mbe:[{mbe:A}],mbs:[{mbs:A}],mie:[{mie:A}],mis:[{mis:A}],mlb:[{mlb:A}],mli:[{mli:A}],pbe:[{pbe:A}],pbs:[{pbs:A}],pie:[{pie:A}],pis:[{pis:A}],plb:[{plb:A}],pli:[{pli:A}]},conflictingClassGroups:{m:["mie","mis","mbe","mbs","mlb","mli"],mlb:["mbe","mbs"],mli:["mie","mis"],mx:["mie","mis","mli"],my:["mbe","mbs","mlb"],p:["pie","pis","pbe","pbs","plb","pli"],plb:["pbe","pbs"],pli:["pie","pis"],px:["pie","pis","pli"],py:["pbe","pbs","plb"]},theme:{borderRadius:_r,borderWidth:Ur}});function b(...e){return qr(_(e))}const Le=e=>{if(e){if(typeof e!="string"&&e)return _(e.lightMode,e.darkMode);if(typeof e=="string")return e}},st=e=>{if(e){if(typeof e!="string"&&e)return _(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},Zr=({background:e,borderColor:t,borderRadius:r,borderWidth:n,className:o,component:a="div",color:s,elevation:l=0,height:d,margin:u,padding:f,width:m,...x},v)=>{const g={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"},k=Le(s),w=Le(e),P=Le(t),N=st(f),M=st(u),C=b(r,n,g[l],M,N,k,w,P,m,d,o);return c.createElement(a,{className:C,...x,ref:v})},T=c.forwardRef(Zr);T.displayName="Box";const ge=({innerRef:e,forwardedRef:t})=>(c.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function it(){c.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const Kr=({className:e,disabled:t,endIcon:r,error:n,hint:o,label:a,name:s,onChange:l,placeholder:d,startIcon:u,value:f,...m},x)=>{const v=c.useRef(null),g=ge({forwardedRef:x,innerRef:v}),[k,w]=c.useState(Boolean(f)),[P,N]=c.useState(!1);c.useEffect(()=>{var p;w(Boolean((p=g==null?void 0:g.current)==null?void 0:p.value)||Boolean(f||d))},[f,d,g]);const M=p=>{var X;w(Boolean((X=g==null?void 0:g.current)==null?void 0:X.value)||Boolean(f||d)),l&&l(p)},C=()=>{t||!g.current||(g.current.focus(),N(!0))},y=()=>{N(!1)};return i.jsxs("div",{className:b(["flex items-start flex-col gap-0.5",e]),children:[i.jsxs("div",{className:b(["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:C,onFocus:C,children:[u?i.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:u}):null,i.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[i.jsx("input",{className:b(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",u?"pis-1":"pis-2",r?"pie-1":"pie-2",a?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:y,onChange:M,placeholder:d,ref:g,value:f,...m}),a?i.jsx("label",{className:b("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",u?"inline-start-1":"inline-start-2",P||k?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:a}):null]}),r?i.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),n||o?i.jsxs("div",{className:"flex flex-col",children:[n?i.jsx("span",{className:"text-alert dark:text-alert-dark",children:n}):null,o?i.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},Me=c.forwardRef(Kr);Me.displayName="Input";const Xr=({children:e,className:t,...r},n)=>i.jsx("ul",{className:b(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:n,...r,children:e}),Te=c.forwardRef(Xr);Te.displayName="List";const Jr=({children:e,className:t,disabled:r,divider:n,key:o,onClick:a,...s},l)=>{const d=u=>{a&&(u.code==="Enter"||u.key===" ")&&a()};return i.jsx("li",{className:b(["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:i.jsx("div",{className:b(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",a?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:a,onKeyUp:d,onTouchEnd:a,tabIndex:a?0:void 0,children:e})},o)},me=c.forwardRef(Jr);me.displayName="ListItem";const Yr=({label:e,name:t,options:r,disabled:n=!1,error:o,hint:a,noOptionsText:s,onChange:l,onSelect:d,value:u,...f},m)=>{const x=c.useRef(null),[v,g]=c.useState(u),[k,w]=c.useState(!1),P=y=>{k||w(!0),!y.length&&v&&g(null),l(y)},N=y=>{d(y),l(y.label),g(y.label),w(!1)},M=c.useCallback(y=>{x.current&&!x.current.contains(y.target)&&(!v&&u&&l(""),v&&u&&l(v),w(!1))},[l,v,u]),C=c.useMemo(()=>r.filter(y=>y.label.toLowerCase().includes(u.toLowerCase()))??[],[r,u]);return c.useEffect(()=>(document.addEventListener("click",M,!0),()=>{document.removeEventListener("click",M,!0)}),[M]),i.jsxs(T,{className:"relative",ref:x,children:[i.jsx(Me,{disabled:n,endIcon:i.jsx(qe,{size:"24"}),error:o,hint:a,label:e,name:t??e,onChange:y=>{P(y.target.value)},onFocus:()=>w(!0),ref:m,value:u??"",...f}),k?i.jsx(T,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:i.jsx(Te,{className:"max-h-[300px] overflow-y-auto",children:C.length?C.map((y,p)=>i.jsx(me,{onClick:()=>N(y),children:y.label},`${y.value}-${p}`)):i.jsx(me,{children:s},"no-options")})}):null]})},lt=c.forwardRef(Yr);lt.displayName="AutocompleteSelect";const dt={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"},he={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"},ze={...he,base:"font-regular leading-loose",xl:"text-23 md:text-28"},ct={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"},ut={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},ft={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},pt={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},bt={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},gt=({size:e,variant:t})=>{switch(t){case"headline":return b(dt.base,dt[e]);case"label":return b(he.base,e?he[e]:he.default);case"paragraph":return b(ze.base,e?ze[e]:ze.default);case"eyebrow":return b(ct.base,ct[e]);case"caption":return b(ut.base,ut[e]);case"buttonLabel":return b(ft.base,ft[e]);case"fieldLabel":return b(pt.base,pt[e]);case"fieldTextInput":return b(bt.base,bt[e]);default:return e}},mt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},Rr=({className:e,component:t="p",children:r,font:n="primary",size:o,variant:a,...s},l)=>{const d="text-text-light dark:text-text-dark",u=mt[n],f=gt({size:o,variant:a});return i.jsx(T,{className:b(d,f,u,e),component:t,ref:l,...s,children:r})},G=c.forwardRef(Rr);G.displayName="Text";const ht=({children:e,component:t="a",className:r,disabled:n,active:o,...a})=>i.jsx(G,{className:b(["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,...a,children:e});ht.displayName="Breadcrumb";var Qr=Object.defineProperty,en=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,xt=(e,t,r)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rn=(e,t)=>{for(var r in t||(t={}))vt.call(t,r)&&xt(e,r,t[r]);if(ve)for(var r of ve(t))yt.call(t,r)&&xt(e,r,t[r]);return e},nn=(e,t)=>en(e,tn(t)),on=(e,t)=>{var r={};for(var n in e)vt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&yt.call(e,n)&&(r[n]=e[n]);return r},an=(e,t)=>{var r=e,{title:n,titleId:o}=r,a=on(r,["title","titleId"]);return i.jsxs("svg",nn(rn({width:a.size||"24",height:a.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},a),{children:[n?i.jsx("title",{id:o,children:n}):null,i.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"})]}))},sn=c.forwardRef(an),ln=sn;const dn=({children:e,className:t,...r},n)=>{const o=c.Children.toArray(e),a=o.findIndex(s=>{var l;return c.isValidElement(s)?(l=s==null?void 0:s.props)==null?void 0:l.active:!1});return i.jsx("div",{className:b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:n,...r,children:o.map((s,l)=>i.jsxs("div",{className:"flex items-center",children:[l?i.jsx(ln,{className:b(["mx-1",l>a&&"text-gray-15",l<=a&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?c.createElement(s.type,{...s.props,className:b([s.props.className??"",l<a?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",l>a&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${l}-${s.toString()}`))})},wt=c.forwardRef(dn);wt.displayName="Breadcrumbs";const cn={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},Be=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"}}},le={lg:30,md:24,sm:18,xl:36,xs:12},je="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",de={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"},kt=({className:e,children:t,disabled:r,icon:n,iconAction:o,iconPosition:a,size:s="md",type:l="button",variant:d="primary",...u},f)=>{const m=Be(n!==void 0?a:void 0),x=b(je,de[d],m[s],e);return i.jsxs("button",{className:x,disabled:r,ref:f,type:l,...u,children:[a==="start"&&n!==void 0?c.createElement(n,{className:"mie-0.5",onClick:o??void 0,size:le[s]}):null,i.jsx("span",{className:"truncate",children:t}),a==="end"&&n!==void 0?c.createElement(n,{className:"mis-0.5",onClick:o??void 0,size:le[s]}):null]})},ce=c.forwardRef(kt);ce.displayName="Button";const un=({error:e,className:t,label:r,disabled:n,name:o,...a},s)=>{const l=c.useId(),d=c.useMemo(()=>`checkbox-label-${l}`,[l]);return i.jsxs("div",{className:b(["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:[i.jsx("input",{"aria-labelledby":d,className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:o,name:o,ref:s,type:"checkbox",...a}),r?i.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:i.jsx("label",{htmlFor:o,id:d,children:r})}):null,e?i.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},St=c.forwardRef(un);St.displayName="Checkbox";var fn=Object.defineProperty,pn=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Et=(e,t,r)=>t in e?fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gn=(e,t)=>{for(var r in t||(t={}))Ct.call(t,r)&&Et(e,r,t[r]);if(ye)for(var r of ye(t))Nt.call(t,r)&&Et(e,r,t[r]);return e},mn=(e,t)=>pn(e,bn(t)),hn=(e,t)=>{var r={};for(var n in e)Ct.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ye)for(var n of ye(e))t.indexOf(n)<0&&Nt.call(e,n)&&(r[n]=e[n]);return r},vn=(e,t)=>{var r=e,{title:n,titleId:o}=r,a=hn(r,["title","titleId"]);return i.jsxs("svg",mn(gn({width:a.size||"24",height:a.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},a),{children:[n?i.jsx("title",{id:o,children:n}):null,i.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 1 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"})]}))},yn=c.forwardRef(vn),xn=yn;const Ae=({children:e,autoFocus:t=!0})=>{const r=c.useRef(null);return c.useEffect(()=>{if(r.current){const n=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let o=document.activeElement;const a=n[0],s=n[n.length-1],l=f=>{if(f.key==="Tab"){if(f.shiftKey){if(document.activeElement===a)f.preventDefault(),s.focus(),o=s;else for(let m=0;m<n.length;m++)if(n[m]===document.activeElement){o=n[m-1];break}}else if(!f.shiftKey){if(document.activeElement===s)f.preventDefault(),a.focus(),o=a;else for(let m=0;m<n.length;m++)if(n[m]===document.activeElement){o=n[m+1];break}}}};t&&(()=>{if(r.current){const f=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');f&&f.focus()}})();const u=f=>{r.current&&!r.current.contains(f.target)&&o.focus()};return document.addEventListener("keydown",l),document.addEventListener("click",u),()=>{document.removeEventListener("keydown",l),document.removeEventListener("click",u)}}},[t]),i.jsx("div",{ref:r,children:e})},wn=({children:e,className:t,disabled:r,type:n="button",variant:o="borderless",...a},s)=>i.jsx("button",{className:b(["rounded-full inline-flex justify-center items-center p-1",t,de[o],r?"pointer-events-none":""]),disabled:r,ref:s,type:n,...a,children:e}),We=c.forwardRef(wn);We.displayName="IconButton";const kn={1:"h1",2:"h2",3:"h3",4:"h4"},Sn=({className:e,children:t,font:r="primary",level:n=1,size:o,variant:a,...s},l)=>{const d="text-text-light dark:text-text-dark",u=mt[r],f=gt({size:o,variant:a});return i.jsx(T,{className:b(d,f,u,e),component:kn[n],ref:l,...s,children:t})},De=c.forwardRef(Sn);De.displayName="Heading";const Cn=({autoFocus:e=!0,children:t,className:r,confirmationButtons:n,dialogType:o="confirmation",heading:a,isDismissableOnOutsideClick:s=!0,onClose:l,...d},u)=>{it();const f=o==="confirmation"?"max-w-[400px]":"max-w-[700px]";return i.jsxs("div",{className:"flex items-center justify-center w-full h-full z-20 absolute inset-0",children:[i.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?l:void 0}),i.jsx(Ae,{autoFocus:e,children:i.jsxs("dialog",{className:b(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",f,r),open:!0,ref:u,...d,children:[o==="modal"?i.jsx(We,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:l,children:i.jsx(xn,{})}):null,i.jsx("div",{children:a?i.jsx(De,{className:"pbe-1",size:"md",variant:"headline",children:a}):null}),i.jsx("div",{children:t}),i.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:n==null?void 0:n.map(({label:m,...x},v)=>i.jsx(ce,{"aria-label":m,size:"sm",variant:"all_caps",...x,children:m},`${m}${v}`))})]})})]})},It=c.forwardRef(Cn);It.displayName="Dialog";const Nn=({className:e,...t})=>i.jsx("hr",{...t,className:b("w-full border-gray-15 dark:border-gray-30 border-standard",e)});function En({className:e,height:t,progress:r}){return i.jsx("div",{className:b([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`,e]),children:i.jsx("div",{className:`bg-yv-red h-${t} ease-in-out duration-300`,style:{transitionProperty:"width",width:`${r}%`}})})}const In=({className:e,children:t,component:r="a",variant:n="borderless",...o},a)=>c.createElement(r,{...o,className:b(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",de[n],e]),ref:a},t),Pt=c.forwardRef(In);Pt.displayName="IconLinkButton";var Pn=Object.defineProperty,Ln=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Tt=(e,t,r)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tn=(e,t)=>{for(var r in t||(t={}))Lt.call(t,r)&&Tt(e,r,t[r]);if(xe)for(var r of xe(t))Mt.call(t,r)&&Tt(e,r,t[r]);return e},zn=(e,t)=>Ln(e,Mn(t)),Bn=(e,t)=>{var r={};for(var n in e)Lt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xe)for(var n of xe(e))t.indexOf(n)<0&&Mt.call(e,n)&&(r[n]=e[n]);return r},jn=(e,t)=>{var r=e,{title:n,titleId:o}=r,a=Bn(r,["title","titleId"]);return i.jsxs("svg",zn(Tn({width:a.size||"24",height:a.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},a),{children:[n?i.jsx("title",{id:o,children:n}):null,i.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"})]}))},An=c.forwardRef(jn),Wn=An,Dn=Object.defineProperty,Gn=Object.defineProperties,On=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,jt=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fn=(e,t)=>{for(var r in t||(t={}))zt.call(t,r)&&jt(e,r,t[r]);if(we)for(var r of we(t))Bt.call(t,r)&&jt(e,r,t[r]);return e},$n=(e,t)=>Gn(e,On(t)),Hn=(e,t)=>{var r={};for(var n in e)zt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&we)for(var n of we(e))t.indexOf(n)<0&&Bt.call(e,n)&&(r[n]=e[n]);return r},Vn=(e,t)=>{var r=e,{title:n,titleId:o}=r,a=Hn(r,["title","titleId"]);return i.jsxs("svg",$n(Fn({width:a.size||"24",height:a.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},a),{children:[n?i.jsx("title",{id:o,children:n}):null,i.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"}),i.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"}),i.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"})]}))},Un=c.forwardRef(Vn),_n=Un,qn=Object.defineProperty,Zn=Object.defineProperties,Kn=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Dt=(e,t,r)=>t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xn=(e,t)=>{for(var r in t||(t={}))At.call(t,r)&&Dt(e,r,t[r]);if(ke)for(var r of ke(t))Wt.call(t,r)&&Dt(e,r,t[r]);return e},Jn=(e,t)=>Zn(e,Kn(t)),Yn=(e,t)=>{var r={};for(var n in e)At.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ke)for(var n of ke(e))t.indexOf(n)<0&&Wt.call(e,n)&&(r[n]=e[n]);return r},Rn=(e,t)=>{var r=e,{title:n,titleId:o}=r,a=Yn(r,["title","titleId"]);return i.jsxs("svg",Jn(Xn({width:a.size||"24",height:a.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},a),{children:[n?i.jsx("title",{id:o,children:n}):null,i.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:i.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:a.dur,repeatCount:"indefinite"})})]}))},Qn=c.forwardRef(Rn),eo=Qn;const to=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:n,disabled:o=!1,dismissCallback:a,dismissImageAriaLabel:s="Remove Image",error:l="",fileMaxKbSizeError:d=(L,J)=>`${L} is too big to upload, the maximum size is ${J}kb. Please try again.`,fileMaxSizeError:u=L=>`${L} is too large to upload. The maximum dimensions are ${p==null?void 0:p.maxWidth}x${p==null?void 0:p.maxHeight}. Please try again.`,fileMinSizeError:f=L=>`${L} is too small to upload. The minimum dimensions are ${p==null?void 0:p.minWidth}x${p==null?void 0:p.minHeight}. Please try again.`,fileRatioError:m=L=>`${L} must have a ratio of, ${p==null?void 0:p.imageRatio}. Please try again.`,fileCallback:x,hero:v=!1,hint:g,imageWidth:k=160,imageSrc:w,label:P="Upload Image",name:N="imageUpload",onBlur:M,preProcessing:C,shape:y="circle",validation:p},X)=>{const L=c.useRef(null),J=ge({forwardedRef:X,innerRef:L}),[I,O]=c.useState(void 0),[W,z]=c.useState(w?"resolved":"idle"),[ne,F]=c.useState(l),Ce=()=>L!=null&&L.current?L.current.click():void 0,oe=c.useMemo(()=>I&&W!=="rejected"?(z("resolved"),I.imageSrc):w&&W==="resolved"?(z("resolved"),w):null,[I,w,W]),Y=c.useMemo(()=>{const $=()=>{a&&a(w),O(void 0),z("idle")};switch(W){case"pending":return i.jsx(T,{className:"animate-spin",children:i.jsx(eo,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return i.jsxs(i.Fragment,{children:[i.jsx("img",{alt:`${I==null?void 0:I.id} preview`,className:b(["object-fit w-full h-full",y==="circle"?"rounded-full":"rounded-0.5",y!=="unset"||!v?"aspect-square":"",y==="unset"&&v?"aspect-video":"",y==="unset"&&!v?"!aspect-auto":""]),onLoad:()=>I!=null&&I.imageSrc?URL.revokeObjectURL(I.imageSrc):void 0,src:oe||void 0,width:k}),o?null:i.jsx(ce,{"aria-label":s,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:$,children:i.jsx(Wn,{})})]});default:return i.jsx(T,{className:"gray-10 dark:gray-30",children:i.jsx(_n,{"data-testid":"placeholder image",size:"32"})})}},[o,a,s,v,I==null?void 0:I.id,I==null?void 0:I.imageSrc,w,W,k,oe,y]),Ne=({file:$,imageUrl:Q})=>new Promise((ee,te)=>{var nr;const j=new Image,fe=(nr=p==null?void 0:p.imageRatio)==null?void 0:nr.split("/");j.onload=async()=>{if(p)if(p!=null&&p.maxByteSize&&$.size>p.maxByteSize){O(void 0),z("rejected");const Qo=d($.name,Math.round(p.maxByteSize/1e3));return F(Qo),te(!1)}else{if(p!=null&&p.minWidth&&j.width<(p==null?void 0:p.minWidth)||p!=null&&p.minHeight&&j.height<(p==null?void 0:p.minHeight))return O(void 0),z("rejected"),F(f($.name)),te(!1);if(p!=null&&p.maxHeight&&j.height>(p==null?void 0:p.maxHeight)||p!=null&&p.maxWidth&&j.width>(p==null?void 0:p.maxWidth))return O(void 0),z("rejected"),F(u($.name)),te(!1);if(p!=null&&p.imageRatio&&(fe==null?void 0:fe.length)===2&&parseInt(fe[0])/parseInt(fe[1])!==j.width/j.height)return O(void 0),z("rejected"),F(m($.name)),te(!1)}return k=j.width,typeof x=="function"&&(console.log("Callback"),await x($,j)),F(""),ee(!0)},j.src=Q}),R=async $=>{try{const{files:Q}=$.target;if(Q){const ee=Q[0],te=URL.createObjectURL(ee);let j=!0;z("pending"),C&&await C(ee),j=await Ne({file:ee,imageUrl:te}),j&&(O({file:ee,id:ee.name,imageSrc:te}),z("resolved"))}}catch(Q){if(Q instanceof Error)throw Q}},ae=b([y==="circle"&&!v?"rounded-full aspect-square":""]),B=b([y==="square"&&!v?"aspect-square rounded-1":""]),Yo=b([y==="unset"&&!v?"rounded-1":"",y==="unset"&&W!=="idle"&&!v?"aspect-auto":"",y==="unset"&&W!=="resolved"&&!v?"aspect-square":""]),Ro=b([v?"rounded-1 aspect-video":""]);return i.jsxs(T,{className:b([n]),children:[i.jsxs(T,{className:b(["relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",,ne?"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:[i.jsx(G,{className:"pbe-1.5 text-text-muted-light dark:text-text-muted-dark",children:i.jsx("label",{htmlFor:N,children:P})}),i.jsxs(T,{className:"flex relative flex-wrap justify-center md:justify-start",children:[i.jsx(T,{className:b(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",v?"w-full":"md:w-1/2 w-4/5",o?"border-small border-solid border-tertiary-light":"",W!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",ae,B,Yo,Ro]),children:Y}),i.jsx(ce,{className:b(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",v?"!mbs-2":""]),disabled:o,onClick:Ce,size:"sm",variant:"stroked",children:W==="resolved"?t:r}),i.jsx("input",{accept:e.toString(),className:"hidden",disabled:o,id:N,name:N,onBlur:M,onChange:R,ref:J,title:"",type:"file",value:""})]})]}),ne?i.jsx(G,{className:"dark:!text-alert-dark !text-alert-light text-13",children:ne}):null,g?i.jsx(G,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:g}):null]})},Gt=c.forwardRef(to);Gt.displayName="ImageUpload";const Ot=({className:e,children:t,component:r="a",icon:n,iconPosition:o,variant:a="primary",size:s="md",...l},d)=>{const u=Be(n!==void 0?o:void 0),f=({children:m})=>c.createElement(r,{...l,className:b([je,de[a],u[s],"no-underline cursor-pointer",e]),ref:d},m);return i.jsxs(f,{children:[o==="start"&&n!==void 0?c.createElement(n,{className:"mie-0.5 flex-shrink-0",size:le[s]}):null,c.createElement("span",{className:"truncate"},t),o==="end"&&n!==void 0?c.createElement(n,{className:"mis-0.5 flex-shrink-0",size:le[s]}):null]})},Ft=c.forwardRef(Ot);Ft.displayName="LinkButton";function ro({children:e,className:t,position:r}){let n="";return r&&(r==="start"?n="order-first":n="order-last"),i.jsx("div",{className:b("flex gap-1",n,t),children:e})}function no({children:e,className:t}){return i.jsx("div",{className:b("flex-grow",t),children:e})}const oo=({children:e,className:t,endText:r,endTextProps:n,size:o="sm",subHeadline:a,subHeadlineProps:s})=>i.jsxs("div",{className:b(["flex items-center justify-between break-words",t]),children:[i.jsxs("div",{className:"flex flex-col",children:[i.jsx(G,{size:o,variant:"label",children:e}),a?i.jsx(G,{...s,children:a}):null]}),r?i.jsx(G,{...n,children:r}):null]}),ao=({children:e,className:t,...r})=>i.jsx("div",{className:b(["relative",t]),...r,children:e}),so=typeof window<"u"?c.useLayoutEffect:()=>{};let ue=new Map,$t=new Set;function Ht(){if(typeof window>"u")return;let e=r=>{let n=ue.get(r.target);n||(n=new Set,ue.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=ue.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),ue.delete(r.target)),ue.size===0)){for(let o of $t)o();$t.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ht():document.addEventListener("DOMContentLoaded",Ht));function io(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 lo(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 co(){return lo(/^Mac/i)}function uo(){return io(/Android/i)}function fo(e){return e.mozInputSource===0&&e.isTrusted?!0:uo()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const po=c.createContext(null);po.displayName="PressResponderContext";class bo{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 go(e){let t=c.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,so(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),c.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=a=>{var s,l;t.current.isFocused=!1,n.disabled&&((l=(s=t.current).onBlur)===null||l===void 0||l.call(s,new bo("blur",a))),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 mo=new Set,Vt=!1,K=!1,Oe=!1;function Fe(e,t){for(let r of mo)r(e,t)}function ho(e){return!(e.metaKey||!co()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ut(e){K=!0,ho(e)&&Fe("keyboard",e)}function re(e){(e.type==="mousedown"||e.type==="pointerdown")&&(K=!0,Fe("pointer",e))}function vo(e){fo(e)&&(K=!0)}function yo(e){e.target===window||e.target===document||(!K&&!Oe&&Fe("virtual",e),K=!1,Oe=!1)}function xo(){K=!1,Oe=!0}function _t(){if(typeof window>"u"||Vt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){K=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ut,!0),document.addEventListener("keyup",Ut,!0),document.addEventListener("click",vo,!0),window.addEventListener("focus",yo,!0),window.addEventListener("blur",xo,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",re,!0),document.addEventListener("pointermove",re,!0),document.addEventListener("pointerup",re,!0)):(document.addEventListener("mousedown",re,!0),document.addEventListener("mousemove",re,!0),document.addEventListener("mouseup",re,!0)),Vt=!0}typeof document<"u"&&(document.readyState!=="loading"?_t():document.addEventListener("DOMContentLoaded",_t));function wo(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,a=c.useRef({isFocusWithin:!1}),s=c.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(u),o&&o(!1))},[r,o,a]),l=go(s),d=c.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(n&&n(u),o&&o(!0),a.current.isFocusWithin=!0,l(u))},[n,o,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:d,onBlur:s}}}function ko(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:o}).current;s.onInteractOutside=r,s.onInteractOutsideStart=o,c.useEffect(()=>{if(n)return;let l=d=>{Se(d,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(d),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let d=u=>{s.isPointerDown&&s.onInteractOutside&&Se(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",l,!0),document.addEventListener("pointerup",d,!0),()=>{document.removeEventListener("pointerdown",l,!0),document.removeEventListener("pointerup",d,!0)}}else{let d=f=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Se(f,t)&&s.onInteractOutside(f),s.isPointerDown=!1},u=f=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Se(f,t)&&s.onInteractOutside(f),s.isPointerDown=!1};return document.addEventListener("mousedown",l,!0),document.addEventListener("mouseup",d,!0),document.addEventListener("touchstart",l,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("mouseup",d,!0),document.removeEventListener("touchstart",l,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,n])}function Se(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 So=null;function qt(e,t){return t.some(r=>r.contains(e))}function Co(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Kt.traverse(Kt.getTreeNode(t)))if(qt(e,r.current))return!0;return!1}function No(e){return Co(e,So)}class $e{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),a=new Zt({scopeRef:t});o.addChild(a),a.parent=o,this.fastMap.set(t,a),n&&(a.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 a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef.current&&qt(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.size>0&&o.forEach(a=>n.addChild(a)),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 $e;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Ge(this,"fastMap",new Map),this.root=new Zt({scopeRef:null}),this.fastMap.set(null,this.root)}}class Zt{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Ge(this,"children",new Set),Ge(this,"contain",!1),this.scopeRef=t.scopeRef}}let Kt=new $e;const H=[];function Eo(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;c.useEffect(()=>(o&&H.push(t),()=>{let g=H.indexOf(t);g>=0&&H.splice(g,1)}),[o,t]);let d=()=>{H[H.length-1]===t&&r&&r()},u=g=>{(!l||l(g.target))&&H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault())},f=g=>{(!l||l(g.target))&&(H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault()),d())},m=g=>{g.key==="Escape"&&!s&&(g.stopPropagation(),g.preventDefault(),d())};ko({ref:t,onInteractOutside:a?f:null,onInteractOutsideStart:u});let{focusWithinProps:x}=wo({isDisabled:!n,onBlurWithin:g=>{g.relatedTarget&&No(g.relatedTarget)||(!l||l(g.relatedTarget))&&r()}}),v=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...x},underlayProps:{onPointerDown:v}}}const Io=({align:e,children:t,className:r,...n})=>{const o=c.useMemo(()=>{const{horizontal:a,vertical:s}=e,l={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},d={bottom:"",top:"bottom-full"};return`${l[a]} ${d[s]}`},[e]);return i.jsx("div",{className:b(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mbe-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",o,r]),...n,children:t})},Po=({open:e,children:t})=>i.jsx(i.Fragment,{children:e?t:null}),Lo=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:n,isDismissible:o,isOpen:a,onClose:s,...l})=>{const d=c.useRef(null),{overlayProps:u}=Eo({isDismissable:o,isKeyboardDismissDisabled:!o,isOpen:a,onClose:s},d);return i.jsx(Po,{open:a,children:i.jsx(Ae,{autoFocus:t,children:i.jsx(Io,{align:e,className:n,onClose:s,...l,children:i.jsx("div",{ref:d,...u,onClick:s,children:r})})})})},Mo=({onToggle:e,children:t,className:r,disabled:n})=>{const o=l=>{l.preventDefault(),l.stopPropagation(),e()},a=c.useRef(null),s=c.cloneElement(t,{className:r,disabled:n,onClick:o,ref:a});return i.jsx(i.Fragment,{children:s})},To=(e,t)=>{const{children:r,error:n,hint:o,label:a}=e;return i.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[i.jsx("label",{children:a}),n?i.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:n}):null,o?i.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:o}):null,r]})},Xt=c.forwardRef(To);Xt.displayName="Radio Set";const zo=({children:e,disabled:t,name:r,value:n,...o},a)=>i.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:[i.jsx("input",{className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:a,...o,type:"radio",value:n}),i.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})]}),Jt=c.forwardRef(zo);Jt.displayName="RadioSetItem";function Bo({className:e,defaultValue:t,onChange:r=()=>{},values:n,...o},a){const[s,l]=c.useState(t??0),d=s>0?s-1:0,u=f=>{l(f),r(f)};return i.jsx(T,{...o,className:`inline-flex overflow-hidden border-x-small border-solid rounded-0.25 text-gray-40 dark:text-white border-tertiary-light dark:border-tertiary-dark ${e}`,ref:a,children:n.map((f,m)=>i.jsx(Rt,{activeIndex:s,currentIndex:m,onSelectedValue:u,prevIndex:d,value:f}))})}const Yt=c.forwardRef(Bo);Yt.displayName="SegmentedControl";function Rt({activeIndex:e,currentIndex:t,onSelectedValue:r,prevIndex:n,value:o}){return i.jsxs(i.Fragment,{children:[i.jsx("button",{className:b(`font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark
1
+ (function(h,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("clsx"),require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","clsx","react/jsx-runtime","react","react-dom"],_):(h=typeof globalThis<"u"?globalThis:h||self,_(h["design-system-components"]={},h.clsx,h["react/jsx-runtime"],h.React))})(this,function(h,_,l,c){"use strict";var nr=Object.defineProperty,ar=Object.defineProperties,sr=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,_e=(e,t,r)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))Ve.call(t,r)&&_e(e,r,t[r]);if(pe)for(var r of pe(t))Ue.call(t,r)&&_e(e,r,t[r]);return e},ir=(e,t)=>ar(e,sr(t)),dr=(e,t)=>{var r={};for(var o in e)Ve.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&pe)for(var o of pe(e))t.indexOf(o)<0&&Ue.call(e,o)&&(r[o]=e[o]);return r},cr=(e,t)=>{var r=e,{title:o,titleId:a}=r,n=dr(r,["title","titleId"]);return l.jsxs("svg",ir(lr({width:n.size||"24",height:n.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},n),{children:[o?l.jsx("title",{id:a,children:o}):null,l.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"})]}))},ur=c.forwardRef(cr),qe=ur,Ze={0:"0px",px:"1px","0.25":"2px","0.5":"4px",1:"8px","1.5":"12px",2:"16px",3:"24px",4:"32px",5:"40px",6:"48px",8:"64px",10:"80px",12:"96px",16:"128px",20:"144px",22:"160px",full:"100%"},Ke={borderRadius:Ze,borderWidth:{none:"0px",small:"1px",standard:"2px",large:"3px"}},Ee={fontSize:{11:"0.6875rem",13:"0.8125rem",16:"1rem",19:"1.1875rem",23:"1.4375rem",28:"1.75rem",33:"2.0625rem",40:"2.5rem",48:"3rem",57:"3.5625rem",69:"4.3125rem",83:"5.1875rem",99:"6.1875rem",119:"7.4375rem",143:"8.9375rem"},fontWeight:{thin:100,regular:400,medium:500,bold:700},fontFamily:{"aktiv-grotesk":'Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"aktiv-grotesk-exanded":'Aktiv Grotesk Expanded, Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"untitled-serif":"Untitled Serif, Baskerville, Georgia, Times New Roman, serif"},lineHeight:{0:0,tight:1,comfy:1.1,default:1.25,loose:1.5}};function fr(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=Xe(t))&&(o&&(o+=" "),o+=r);return o}function Xe(e){if(typeof e=="string")return e;for(var t,r="",o=0;o<e.length;o++)e[o]&&(t=Xe(e[o]))&&(r&&(r+=" "),r+=t);return r}var Ie="-";function pr(e){var t=gr(e),r=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,a=o===void 0?{}:o;function n(i){var d=i.split(Ie);return d[0]===""&&d.length!==1&&d.shift(),Je(d,t)||br(i)}function s(i,d){var u=r[i]||[];return d&&a[i]?[].concat(u,a[i]):u}return{getClassGroupId:n,getConflictingClassGroupIds:s}}function Je(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),a=o?Je(e.slice(1),o):void 0;if(a)return a;if(t.validators.length!==0){var n=e.join(Ie);return(s=t.validators.find(function(i){var d=i.validator;return d(n)}))==null?void 0:s.classGroupId}}var Ye=/^\[(.+)\]$/;function br(e){if(Ye.test(e)){var t=Ye.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function gr(e){var t=e.theme,r=e.prefix,o={nextPart:new Map,validators:[]},a=hr(Object.entries(e.classGroups),r);return a.forEach(function(n){var s=n[0],i=n[1];Pe(i,o,s,t)}),o}function Pe(e,t,r,o){e.forEach(function(a){if(typeof a=="string"){var n=a===""?t:Re(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(mr(a)){Pe(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var i=s[0],d=s[1];Pe(d,Re(t,i),r,o)})})}function Re(e,t){var r=e;return t.split(Ie).forEach(function(o){r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function mr(e){return e.isThemeGetter}function hr(e,t){return t?e.map(function(r){var o=r[0],a=r[1],n=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var d=i[0],u=i[1];return[t+d,u]})):s});return[o,n]}):e}function vr(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,o=new Map;function a(n,s){r.set(n,s),t++,t>e&&(t=0,o=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):a(s,i)}}}var Qe="!";function yr(e){var t=e.separator||":",r=t.length===1,o=t[0],a=t.length;return function(s){for(var i=[],d=0,u=0,f,m=0;m<s.length;m++){var x=s[m];if(d===0){if(x===o&&(r||s.slice(m,m+a)===t)){i.push(s.slice(u,m)),u=m+a;continue}if(x==="/"){f=m;continue}}x==="["?d++:x==="]"&&d--}var v=i.length===0?s:s.substring(u),g=v.startsWith(Qe),k=g?v.substring(1):v,w=f&&f>u?f-u:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:k,maybePostfixModifierPosition:w}}}function xr(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(o){var a=o[0]==="[";a?(t.push.apply(t,r.sort().concat([o])),r=[]):r.push(o)}),t.push.apply(t,r.sort()),t}function wr(e){return{cache:vr(e.cacheSize),splitModifiers:yr(e),...pr(e)}}var kr=/\s+/;function Sr(e,t){var r=t.splitModifiers,o=t.getClassGroupId,a=t.getConflictingClassGroupIds,n=new Set;return e.trim().split(kr).map(function(s){var i=r(s),d=i.modifiers,u=i.hasImportantModifier,f=i.baseClassName,m=i.maybePostfixModifierPosition,x=o(m?f.substring(0,m):f),v=Boolean(m);if(!x){if(!m)return{isTailwindClass:!1,originalClassName:s};if(x=o(f),!x)return{isTailwindClass:!1,originalClassName:s};v=!1}var g=xr(d).join(":"),k=u?g+Qe:g;return{isTailwindClass:!0,modifierId:k,classGroupId:x,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,d=s.classGroupId,u=s.hasPostfixModifier,f=i+d;return n.has(f)?!1:(n.add(f),a(d,u).forEach(function(m){return n.add(i+m)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function et(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a,n,s=i;function i(u){var f=t[0],m=t.slice(1),x=m.reduce(function(v,g){return g(v)},f());return o=wr(x),a=o.cache.get,n=o.cache.set,s=d,d(u)}function d(u){var f=a(u);if(f)return f;var m=Sr(u,o);return n(u,m),m}return function(){return s(fr.apply(null,arguments))}}function S(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,Nr=new Set(["px","full","screen"]),Er=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ir=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/,Pr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function D(e){return q(e)||Nr.has(e)||Cr.test(e)||V(e)}function V(e){return Z(e,"length",jr)}function Lr(e){return Z(e,"size",rt)}function Mr(e){return Z(e,"position",rt)}function Tr(e){return Z(e,"url",Ar)}function be(e){return Z(e,"number",q)}function q(e){return!Number.isNaN(Number(e))}function zr(e){return e.endsWith("%")&&q(e.slice(0,-1))}function se(e){return ot(e)||Z(e,"number",ot)}function E(e){return tt.test(e)}function le(){return!0}function U(e){return Er.test(e)}function Br(e){return Z(e,"",Wr)}function Z(e,t,r){var o=tt.exec(e);return o?o[1]?o[1]===t:r(o[2]):!1}function jr(e){return Ir.test(e)}function rt(){return!1}function Ar(e){return e.startsWith("url(")}function ot(e){return Number.isInteger(Number(e))}function Wr(e){return Pr.test(e)}function nt(){var e=S("colors"),t=S("spacing"),r=S("blur"),o=S("brightness"),a=S("borderColor"),n=S("borderRadius"),s=S("borderSpacing"),i=S("borderWidth"),d=S("contrast"),u=S("grayscale"),f=S("hueRotate"),m=S("invert"),x=S("gap"),v=S("gradientColorStops"),g=S("gradientColorStopPositions"),k=S("inset"),w=S("margin"),P=S("opacity"),N=S("padding"),M=S("saturate"),C=S("scale"),y=S("sepia"),p=S("skew"),X=S("space"),L=S("translate"),J=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},O=function(){return["auto",t]},W=function(){return["",D]},z=function(){return["auto",q,E]},oe=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},F=function(){return["solid","dashed","dotted","double","none"]},Ce=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ne=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",E]},Ne=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[q,be]},ae=function(){return[q,E]};return{cacheSize:500,theme:{colors:[le],spacing:[D],blur:["none","",U,V],brightness:R(),borderColor:[e],borderRadius:["none","","full",U,V],borderSpacing:[t],borderWidth:W(),contrast:R(),grayscale:Y(),hueRotate:ae(),invert:Y(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[zr,V],inset:O(),margin:O(),opacity:R(),padding:[t],saturate:R(),scale:R(),sepia:Y(),skew:ae(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Ne()}],"break-before":[{"break-before":Ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(oe(),[E])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",se]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",se]}],"grid-cols":[{"grid-cols":[le]}],"col-start-end":[{col:["auto",{span:[se]},E]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[le]}],"row-start-end":[{row:["auto",{span:[se]},E]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal"].concat(ne())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ne(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ne(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",D]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[U]},U,V]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",D]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",U,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[le]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",q,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(F(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",D]}],"underline-offset":[{"underline-offset":["auto",D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(oe(),[Mr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(F(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:F()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(F())}],"outline-offset":[{"outline-offset":[D]}],"outline-w":[{outline:[D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Br]}],"shadow-color":[{shadow:[le]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":Ce()}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",U,E]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[m]}],saturate:[{saturate:[M]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[se,E]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[p]}],"skew-y":[{"skew-y":[p]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-ms":[{"scroll-ms":[t]}],"scroll-me":[{"scroll-me":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-ps":[{"scroll-ps":[t]}],"scroll-pe":[{"scroll-pe":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Dr(e,t){for(var r in t)at(e,r,t[r]);return e}var Gr=Object.prototype.hasOwnProperty,Or=new Set(["string","number","boolean"]);function at(e,t,r){if(!Gr.call(e,t)||Or.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var o in r)at(e[t],o,r[o])}}function Fr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return typeof e=="function"?et.apply(void 0,[nt,e].concat(r)):et.apply(void 0,[function(){return Dr(nt(),e)}].concat(r))}const $r=Object.keys(Ee.fontSize),Hr=Object.keys(Ee.fontWeight),Vr=Object.keys(Ee.lineHeight),A=Object.keys(Ze),Ur=Object.keys(Ke.borderWidth),_r=Object.keys(Ke.borderRadius),qr=Fr({classGroups:{"font-size":[{text:$r}],"font-weight":[{font:Hr}],leading:[{leading:Vr}],mbe:[{mbe:A}],mbs:[{mbs:A}],mie:[{mie:A}],mis:[{mis:A}],mlb:[{mlb:A}],mli:[{mli:A}],pbe:[{pbe:A}],pbs:[{pbs:A}],pie:[{pie:A}],pis:[{pis:A}],plb:[{plb:A}],pli:[{pli:A}]},conflictingClassGroups:{m:["mie","mis","mbe","mbs","mlb","mli"],mlb:["mbe","mbs"],mli:["mie","mis"],mx:["mie","mis","mli"],my:["mbe","mbs","mlb"],p:["pie","pis","pbe","pbs","plb","pli"],plb:["pbe","pbs"],pli:["pie","pis"],px:["pie","pis","pli"],py:["pbe","pbs","plb"]},theme:{borderRadius:_r,borderWidth:Ur}});function b(...e){return qr(_(e))}const Le=e=>{if(e){if(typeof e!="string"&&e)return _(e.lightMode,e.darkMode);if(typeof e=="string")return e}},st=e=>{if(e){if(typeof e!="string"&&e)return _(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},Zr=({background:e,borderColor:t,borderRadius:r,borderWidth:o,className:a,component:n="div",color:s,elevation:i=0,height:d,margin:u,padding:f,width:m,...x},v)=>{const g={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"},k=Le(s),w=Le(e),P=Le(t),N=st(f),M=st(u),C=b(r,o,g[i],M,N,k,w,P,m,d,a);return c.createElement(n,{className:C,...x,ref:v})},T=c.forwardRef(Zr);T.displayName="Box";const ge=({innerRef:e,forwardedRef:t})=>(c.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function lt(){c.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const Kr=({className:e,disabled:t,endIcon:r,error:o,hint:a,label:n,name:s,onChange:i,placeholder:d,startIcon:u,value:f,...m},x)=>{const v=c.useRef(null),g=ge({forwardedRef:x,innerRef:v}),[k,w]=c.useState(Boolean(f)),[P,N]=c.useState(!1);c.useEffect(()=>{var p;w(Boolean((p=g==null?void 0:g.current)==null?void 0:p.value)||Boolean(f||d))},[f,d,g]);const M=p=>{var X;w(Boolean((X=g==null?void 0:g.current)==null?void 0:X.value)||Boolean(f||d)),i&&i(p)},C=()=>{t||!g.current||(g.current.focus(),N(!0))},y=()=>{N(!1)};return l.jsxs("div",{className:b(["flex items-start flex-col gap-0.5",e]),children:[l.jsxs("div",{className:b(["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,o?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:C,onFocus:C,children:[u?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:u}):null,l.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[l.jsx("input",{className:b(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",u?"pis-1":"pis-2",r?"pie-1":"pie-2",n?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:y,onChange:M,placeholder:d,ref:g,value:f,...m}),n?l.jsx("label",{className:b("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",u?"inline-start-1":"inline-start-2",P||k?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:n}):null]}),r?l.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),o||a?l.jsxs("div",{className:"flex flex-col",children:[o?l.jsx("span",{className:"text-alert dark:text-alert-dark",children:o}):null,a?l.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:a}):null]}):null]})},Me=c.forwardRef(Kr);Me.displayName="Input";const Xr=({children:e,className:t,...r},o)=>l.jsx("ul",{className:b(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:o,...r,children:e}),Te=c.forwardRef(Xr);Te.displayName="List";const Jr=({children:e,className:t,disabled:r,divider:o,key:a,onClick:n,...s},i)=>{const d=u=>{n&&(u.code==="Enter"||u.key===" ")&&n()};return l.jsx("li",{className:b(["flex items-center box-border relative",o?"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:i,...s,children:l.jsx("div",{className:b(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",n?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:n,onKeyUp:d,onTouchEnd:n,tabIndex:n?0:void 0,children:e})},a)},me=c.forwardRef(Jr);me.displayName="ListItem";const Yr=({label:e,name:t,options:r,disabled:o=!1,error:a,hint:n,noOptionsText:s,onChange:i,onSelect:d,value:u,...f},m)=>{const x=c.useRef(null),[v,g]=c.useState(u),[k,w]=c.useState(!1),P=y=>{k||w(!0),!y.length&&v&&g(null),i(y)},N=y=>{d(y),i(y.label),g(y.label),w(!1)},M=c.useCallback(y=>{x.current&&!x.current.contains(y.target)&&(!v&&u&&i(""),v&&u&&i(v),w(!1))},[i,v,u]),C=c.useMemo(()=>r.filter(y=>y.label.toLowerCase().includes(u.toLowerCase()))??[],[r,u]);return c.useEffect(()=>(document.addEventListener("click",M,!0),()=>{document.removeEventListener("click",M,!0)}),[M]),l.jsxs(T,{className:"relative",ref:x,children:[l.jsx(Me,{disabled:o,endIcon:l.jsx(qe,{size:"24"}),error:a,hint:n,label:e,name:t??e,onChange:y=>{P(y.target.value)},onFocus:()=>w(!0),ref:m,value:u??"",...f}),k?l.jsx(T,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:l.jsx(Te,{className:"max-h-[300px] overflow-y-auto",children:C.length?C.map((y,p)=>l.jsx(me,{onClick:()=>N(y),children:y.label},`${y.value}-${p}`)):l.jsx(me,{children:s},"no-options")})}):null]})},it=c.forwardRef(Yr);it.displayName="AutocompleteSelect";const dt={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"},he={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"},ze={...he,base:"font-regular leading-loose",xl:"text-23 md:text-28"},ct={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"},ut={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},ft={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},pt={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},bt={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},gt=({size:e,variant:t})=>{switch(t){case"headline":return b(dt.base,dt[e]);case"label":return b(he.base,e?he[e]:he.default);case"paragraph":return b(ze.base,e?ze[e]:ze.default);case"eyebrow":return b(ct.base,ct[e]);case"caption":return b(ut.base,ut[e]);case"buttonLabel":return b(ft.base,ft[e]);case"fieldLabel":return b(pt.base,pt[e]);case"fieldTextInput":return b(bt.base,bt[e]);default:return e}},mt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},Rr=({className:e,component:t="p",children:r,font:o="primary",size:a,variant:n,...s},i)=>{const d="text-text-light dark:text-text-dark",u=mt[o],f=gt({size:a,variant:n});return l.jsx(T,{className:b(d,f,u,e),component:t,ref:i,...s,children:r})},G=c.forwardRef(Rr);G.displayName="Text";const ht=({children:e,component:t="a",className:r,disabled:o,active:a,...n})=>l.jsx(G,{className:b(["font-bold text-gray-50 leading-default whitespace-nowrap",a?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",o?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...n,children:e});ht.displayName="Breadcrumb";var Qr=Object.defineProperty,eo=Object.defineProperties,to=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,xt=(e,t,r)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ro=(e,t)=>{for(var r in t||(t={}))vt.call(t,r)&&xt(e,r,t[r]);if(ve)for(var r of ve(t))yt.call(t,r)&&xt(e,r,t[r]);return e},oo=(e,t)=>eo(e,to(t)),no=(e,t)=>{var r={};for(var o in e)vt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ve)for(var o of ve(e))t.indexOf(o)<0&&yt.call(e,o)&&(r[o]=e[o]);return r},ao=(e,t)=>{var r=e,{title:o,titleId:a}=r,n=no(r,["title","titleId"]);return l.jsxs("svg",oo(ro({width:n.size||"24",height:n.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},n),{children:[o?l.jsx("title",{id:a,children:o}):null,l.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"})]}))},so=c.forwardRef(ao),lo=so;const io=({children:e,className:t,...r},o)=>{const a=c.Children.toArray(e),n=a.findIndex(s=>{var i;return c.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return l.jsx("div",{className:b(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:o,...r,children:a.map((s,i)=>l.jsxs("div",{className:"flex items-center",children:[i?l.jsx(lo,{className:b(["mx-1",i>n&&"text-gray-15",i<=n&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?c.createElement(s.type,{...s.props,className:b([s.props.className??"",i<n?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>n&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},wt=c.forwardRef(io);wt.displayName="Breadcrumbs";const co={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},Be=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"}}},ie={lg:30,md:24,sm:18,xl:36,xs:12},je="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",de={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"},kt=({className:e,children:t,disabled:r,icon:o,iconAction:a,iconPosition:n,size:s="md",type:i="button",variant:d="primary",...u},f)=>{const m=Be(o!==void 0?n:void 0),x=b(je,de[d],m[s],e);return l.jsxs("button",{className:x,disabled:r,ref:f,type:i,...u,children:[n==="start"&&o!==void 0?c.createElement(o,{className:"mie-0.5",onClick:a??void 0,size:ie[s]}):null,l.jsx("span",{className:"truncate",children:t}),n==="end"&&o!==void 0?c.createElement(o,{className:"mis-0.5",onClick:a??void 0,size:ie[s]}):null]})},ce=c.forwardRef(kt);ce.displayName="Button";const uo=({error:e,className:t,label:r,disabled:o,name:a,...n},s)=>{const i=c.useId(),d=c.useMemo(()=>`checkbox-label-${i}`,[i]);return l.jsxs("div",{className:b(["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:[l.jsx("input",{"aria-labelledby":d,className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:o,id:a,name:a,ref:s,type:"checkbox",...n}),r?l.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:l.jsx("label",{htmlFor:a,id:d,children:r})}):null,e?l.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},St=c.forwardRef(uo);St.displayName="Checkbox";var fo=Object.defineProperty,po=Object.defineProperties,bo=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Et=(e,t,r)=>t in e?fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,go=(e,t)=>{for(var r in t||(t={}))Ct.call(t,r)&&Et(e,r,t[r]);if(ye)for(var r of ye(t))Nt.call(t,r)&&Et(e,r,t[r]);return e},mo=(e,t)=>po(e,bo(t)),ho=(e,t)=>{var r={};for(var o in e)Ct.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ye)for(var o of ye(e))t.indexOf(o)<0&&Nt.call(e,o)&&(r[o]=e[o]);return r},vo=(e,t)=>{var r=e,{title:o,titleId:a}=r,n=ho(r,["title","titleId"]);return l.jsxs("svg",mo(go({width:n.size||"24",height:n.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},n),{children:[o?l.jsx("title",{id:a,children:o}):null,l.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 1 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"})]}))},yo=c.forwardRef(vo),xo=yo;const Ae=({children:e,autoFocus:t=!0})=>{const r=c.useRef(null);return c.useEffect(()=>{if(r.current){const o=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let a=document.activeElement;const n=o[0],s=o[o.length-1],i=f=>{if(f.key==="Tab"){if(f.shiftKey){if(document.activeElement===n)f.preventDefault(),s.focus(),a=s;else for(let m=0;m<o.length;m++)if(o[m]===document.activeElement){a=o[m-1];break}}else if(!f.shiftKey){if(document.activeElement===s)f.preventDefault(),n.focus(),a=n;else for(let m=0;m<o.length;m++)if(o[m]===document.activeElement){a=o[m+1];break}}}};t&&(()=>{if(r.current){const f=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');f&&f.focus()}})();const u=f=>{r.current&&!r.current.contains(f.target)&&a.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",u)}}},[t]),l.jsx("div",{ref:r,children:e})},wo=({children:e,className:t,disabled:r,type:o="button",variant:a="borderless",...n},s)=>l.jsx("button",{className:b(["rounded-full inline-flex justify-center items-center p-1",t,de[a],r?"pointer-events-none":""]),disabled:r,ref:s,type:o,...n,children:e}),We=c.forwardRef(wo);We.displayName="IconButton";const ko={1:"h1",2:"h2",3:"h3",4:"h4"},So=({className:e,children:t,font:r="primary",level:o=1,size:a,variant:n,...s},i)=>{const d="text-text-light dark:text-text-dark",u=mt[r],f=gt({size:a,variant:n});return l.jsx(T,{className:b(d,f,u,e),component:ko[o],ref:i,...s,children:t})},De=c.forwardRef(So);De.displayName="Heading";const Co=({autoFocus:e=!0,children:t,className:r,confirmationButtons:o,dialogType:a="confirmation",heading:n,isDismissableOnOutsideClick:s=!0,onClose:i,...d},u)=>{lt();const f=a==="confirmation"?"max-w-[400px]":"max-w-[700px]";return l.jsxs("div",{className:"flex items-center justify-center w-full h-full z-20 absolute inset-0",children:[l.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),l.jsx(Ae,{autoFocus:e,children:l.jsxs("dialog",{className:b(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",f,r),open:!0,ref:u,...d,children:[a==="modal"?l.jsx(We,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:l.jsx(xo,{})}):null,l.jsx("div",{children:n?l.jsx(De,{className:"pbe-1",size:"md",variant:"headline",children:n}):null}),l.jsx("div",{children:t}),l.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:o==null?void 0:o.map(({label:m,...x},v)=>l.jsx(ce,{"aria-label":m,size:"sm",variant:"all_caps",...x,children:m},`${m}${v}`))})]})})]})},It=c.forwardRef(Co);It.displayName="Dialog";const No=({className:e,...t})=>l.jsx("hr",{...t,className:b("w-full border-gray-15 dark:border-gray-30 border-standard",e)});function Eo({className:e,height:t,progress:r}){return l.jsx("div",{className:b([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`,e]),children:l.jsx("div",{className:`bg-yv-red h-${t} ease-in-out duration-300`,style:{transitionProperty:"width",width:`${r}%`}})})}const Io=({className:e,children:t,component:r="a",variant:o="borderless",...a},n)=>c.createElement(r,{...a,className:b(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",de[o],e]),ref:n},t),Pt=c.forwardRef(Io);Pt.displayName="IconLinkButton";var Po=Object.defineProperty,Lo=Object.defineProperties,Mo=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Tt=(e,t,r)=>t in e?Po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,To=(e,t)=>{for(var r in t||(t={}))Lt.call(t,r)&&Tt(e,r,t[r]);if(xe)for(var r of xe(t))Mt.call(t,r)&&Tt(e,r,t[r]);return e},zo=(e,t)=>Lo(e,Mo(t)),Bo=(e,t)=>{var r={};for(var o in e)Lt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&xe)for(var o of xe(e))t.indexOf(o)<0&&Mt.call(e,o)&&(r[o]=e[o]);return r},jo=(e,t)=>{var r=e,{title:o,titleId:a}=r,n=Bo(r,["title","titleId"]);return l.jsxs("svg",zo(To({width:n.size||"24",height:n.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},n),{children:[o?l.jsx("title",{id:a,children:o}):null,l.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"})]}))},Ao=c.forwardRef(jo),Wo=Ao,Do=Object.defineProperty,Go=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,jt=(e,t,r)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fo=(e,t)=>{for(var r in t||(t={}))zt.call(t,r)&&jt(e,r,t[r]);if(we)for(var r of we(t))Bt.call(t,r)&&jt(e,r,t[r]);return e},$o=(e,t)=>Go(e,Oo(t)),Ho=(e,t)=>{var r={};for(var o in e)zt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&we)for(var o of we(e))t.indexOf(o)<0&&Bt.call(e,o)&&(r[o]=e[o]);return r},Vo=(e,t)=>{var r=e,{title:o,titleId:a}=r,n=Ho(r,["title","titleId"]);return l.jsxs("svg",$o(Fo({width:n.size||"24",height:n.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},n),{children:[o?l.jsx("title",{id:a,children:o}):null,l.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"}),l.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"}),l.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"})]}))},Uo=c.forwardRef(Vo),_o=Uo,qo=Object.defineProperty,Zo=Object.defineProperties,Ko=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Dt=(e,t,r)=>t in e?qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xo=(e,t)=>{for(var r in t||(t={}))At.call(t,r)&&Dt(e,r,t[r]);if(ke)for(var r of ke(t))Wt.call(t,r)&&Dt(e,r,t[r]);return e},Jo=(e,t)=>Zo(e,Ko(t)),Yo=(e,t)=>{var r={};for(var o in e)At.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ke)for(var o of ke(e))t.indexOf(o)<0&&Wt.call(e,o)&&(r[o]=e[o]);return r},Ro=(e,t)=>{var r=e,{title:o,titleId:a}=r,n=Yo(r,["title","titleId"]);return l.jsxs("svg",Jo(Xo({width:n.size||"24",height:n.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},n),{children:[o?l.jsx("title",{id:a,children:o}):null,l.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:l.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:n.dur,repeatCount:"indefinite"})})]}))},Qo=c.forwardRef(Ro),en=Qo;const tn=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:o,disabled:a=!1,dismissCallback:n,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:d=(L,J)=>`${L} is too big to upload, the maximum size is ${J}kb. Please try again.`,fileMaxSizeError:u=L=>`${L} is too large to upload. The maximum dimensions are ${p==null?void 0:p.maxWidth}x${p==null?void 0:p.maxHeight}. Please try again.`,fileMinSizeError:f=L=>`${L} is too small to upload. The minimum dimensions are ${p==null?void 0:p.minWidth}x${p==null?void 0:p.minHeight}. Please try again.`,fileRatioError:m=L=>`${L} must have a ratio of, ${p==null?void 0:p.imageRatio}. Please try again.`,fileCallback:x,hero:v=!1,hint:g,imageWidth:k=160,imageSrc:w,label:P="Upload Image",name:N="imageUpload",onBlur:M,preProcessing:C,shape:y="circle",validation:p},X)=>{const L=c.useRef(null),J=ge({forwardedRef:X,innerRef:L}),[I,O]=c.useState(void 0),[W,z]=c.useState(w?"resolved":"idle"),[oe,F]=c.useState(i),Ce=()=>L!=null&&L.current?L.current.click():void 0,ne=c.useMemo(()=>I&&W!=="rejected"?(z("resolved"),I.imageSrc):w&&W==="resolved"?(z("resolved"),w):null,[I,w,W]),Y=c.useMemo(()=>{const $=()=>{n&&n(w),O(void 0),z("idle")};switch(W){case"pending":return l.jsx(T,{className:"animate-spin",children:l.jsx(en,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return l.jsxs(l.Fragment,{children:[l.jsx("img",{alt:`${I==null?void 0:I.id} preview`,className:b(["object-fit w-full h-full",y==="circle"?"rounded-full":"rounded-0.5",y!=="unset"||!v?"aspect-square":"",y==="unset"&&v?"aspect-video":"",y==="unset"&&!v?"!aspect-auto":""]),onLoad:()=>I!=null&&I.imageSrc?URL.revokeObjectURL(I.imageSrc):void 0,src:ne||void 0,width:k}),a?null:l.jsx(ce,{"aria-label":s,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:$,children:l.jsx(Wo,{})})]});default:return l.jsx(T,{className:"gray-10 dark:gray-30",children:l.jsx(_o,{"data-testid":"placeholder image",size:"32"})})}},[a,n,s,v,I==null?void 0:I.id,I==null?void 0:I.imageSrc,w,W,k,ne,y]),Ne=({file:$,imageUrl:Q})=>new Promise((ee,te)=>{var or;const j=new Image,fe=(or=p==null?void 0:p.imageRatio)==null?void 0:or.split("/");j.onload=async()=>{if(p)if(p!=null&&p.maxByteSize&&$.size>p.maxByteSize){O(void 0),z("rejected");const Qn=d($.name,Math.round(p.maxByteSize/1e3));return F(Qn),te(!1)}else{if(p!=null&&p.minWidth&&j.width<(p==null?void 0:p.minWidth)||p!=null&&p.minHeight&&j.height<(p==null?void 0:p.minHeight))return O(void 0),z("rejected"),F(f($.name)),te(!1);if(p!=null&&p.maxHeight&&j.height>(p==null?void 0:p.maxHeight)||p!=null&&p.maxWidth&&j.width>(p==null?void 0:p.maxWidth))return O(void 0),z("rejected"),F(u($.name)),te(!1);if(p!=null&&p.imageRatio&&(fe==null?void 0:fe.length)===2&&parseInt(fe[0])/parseInt(fe[1])!==j.width/j.height)return O(void 0),z("rejected"),F(m($.name)),te(!1)}return k=j.width,typeof x=="function"&&(console.log("Callback"),await x($,j)),F(""),ee(!0)},j.src=Q}),R=async $=>{try{const{files:Q}=$.target;if(Q){const ee=Q[0],te=URL.createObjectURL(ee);let j=!0;z("pending"),C&&await C(ee),j=await Ne({file:ee,imageUrl:te}),j&&(O({file:ee,id:ee.name,imageSrc:te}),z("resolved"))}}catch(Q){if(Q instanceof Error)throw Q}},ae=b([y==="circle"&&!v?"rounded-full aspect-square":""]),B=b([y==="square"&&!v?"aspect-square rounded-1":""]),Yn=b([y==="unset"&&!v?"rounded-1":"",y==="unset"&&W!=="idle"&&!v?"aspect-auto":"",y==="unset"&&W!=="resolved"&&!v?"aspect-square":""]),Rn=b([v?"rounded-1 aspect-video":""]);return l.jsxs(T,{className:b([o]),children:[l.jsxs(T,{className:b(["relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",,oe?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",a?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[l.jsx(G,{className:"pbe-1.5 text-text-muted-light dark:text-text-muted-dark",children:l.jsx("label",{htmlFor:N,children:P})}),l.jsxs(T,{className:"flex relative flex-wrap justify-center md:justify-start",children:[l.jsx(T,{className:b(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",v?"w-full":"md:w-1/2 w-4/5",a?"border-small border-solid border-tertiary-light":"",W!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",ae,B,Yn,Rn]),children:Y}),l.jsx(ce,{className:b(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",v?"!mbs-2":""]),disabled:a,onClick:Ce,size:"sm",variant:"stroked",children:W==="resolved"?t:r}),l.jsx("input",{accept:e.toString(),className:"hidden",disabled:a,id:N,name:N,onBlur:M,onChange:R,ref:J,title:"",type:"file",value:""})]})]}),oe?l.jsx(G,{className:"dark:!text-alert-dark !text-alert-light text-13",children:oe}):null,g?l.jsx(G,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:g}):null]})},Gt=c.forwardRef(tn);Gt.displayName="ImageUpload";const Ot=({className:e,children:t,component:r="a",icon:o,iconPosition:a,variant:n="primary",size:s="md",...i},d)=>{const u=Be(o!==void 0?a:void 0),f=({children:m})=>c.createElement(r,{...i,className:b([je,de[n],u[s],"no-underline cursor-pointer",e]),ref:d},m);return l.jsxs(f,{children:[a==="start"&&o!==void 0?c.createElement(o,{className:"mie-0.5 flex-shrink-0",size:ie[s]}):null,c.createElement("span",{className:"truncate"},t),a==="end"&&o!==void 0?c.createElement(o,{className:"mis-0.5 flex-shrink-0",size:ie[s]}):null]})},Ft=c.forwardRef(Ot);Ft.displayName="LinkButton";function rn({children:e,className:t,position:r}){let o="";return r&&(r==="start"?o="order-first":o="order-last"),l.jsx("div",{className:b("flex gap-1",o,t),children:e})}function on({children:e,className:t}){return l.jsx("div",{className:b("flex-grow",t),children:e})}const nn=({children:e,className:t,endText:r,endTextProps:o,size:a="sm",subHeadline:n,subHeadlineProps:s})=>l.jsxs("div",{className:b(["flex items-center justify-between break-words",t]),children:[l.jsxs("div",{className:"flex flex-col",children:[l.jsx(G,{size:a,variant:"label",children:e}),n?l.jsx(G,{...s,children:n}):null]}),r?l.jsx(G,{...o,children:r}):null]}),an=({children:e,className:t,...r})=>l.jsx("div",{className:b(["relative",t]),...r,children:e}),sn=typeof window<"u"?c.useLayoutEffect:()=>{};let ue=new Map,$t=new Set;function Ht(){if(typeof window>"u")return;let e=r=>{let o=ue.get(r.target);o||(o=new Set,ue.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{let o=ue.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),ue.delete(r.target)),ue.size===0)){for(let a of $t)a();$t.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ht():document.addEventListener("DOMContentLoaded",Ht));function ln(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 dn(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 cn(){return dn(/^Mac/i)}function un(){return ln(/Android/i)}function fn(e){return e.mozInputSource===0&&e.isTrusted?!0:un()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pn=c.createContext(null);pn.displayName="PressResponderContext";class bn{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 gn(e){let t=c.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,sn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,a=n=>{var s,i;t.current.isFocused=!1,o.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new bn("blur",n))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&o.disabled&&(t.current.observer.disconnect(),o.dispatchEvent(new FocusEvent("blur")),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[])}let mn=new Set,Vt=!1,K=!1,Oe=!1;function Fe(e,t){for(let r of mn)r(e,t)}function hn(e){return!(e.metaKey||!cn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ut(e){K=!0,hn(e)&&Fe("keyboard",e)}function re(e){(e.type==="mousedown"||e.type==="pointerdown")&&(K=!0,Fe("pointer",e))}function vn(e){fn(e)&&(K=!0)}function yn(e){e.target===window||e.target===document||(!K&&!Oe&&Fe("virtual",e),K=!1,Oe=!1)}function xn(){K=!1,Oe=!0}function _t(){if(typeof window>"u"||Vt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){K=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ut,!0),document.addEventListener("keyup",Ut,!0),document.addEventListener("click",vn,!0),window.addEventListener("focus",yn,!0),window.addEventListener("blur",xn,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",re,!0),document.addEventListener("pointermove",re,!0),document.addEventListener("pointerup",re,!0)):(document.addEventListener("mousedown",re,!0),document.addEventListener("mousemove",re,!0),document.addEventListener("mouseup",re,!0)),Vt=!0}typeof document<"u"&&(document.readyState!=="loading"?_t():document.addEventListener("DOMContentLoaded",_t));function wn(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:a}=e,n=c.useRef({isFocusWithin:!1}),s=c.useCallback(u=>{n.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(n.current.isFocusWithin=!1,r&&r(u),a&&a(!1))},[r,a,n]),i=gn(s),d=c.useCallback(u=>{!n.current.isFocusWithin&&document.activeElement===u.target&&(o&&o(u),a&&a(!0),n.current.isFocusWithin=!0,i(u))},[o,a,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:d,onBlur:s}}}function kn(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:a}=e,s=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:a}).current;s.onInteractOutside=r,s.onInteractOutsideStart=a,c.useEffect(()=>{if(o)return;let i=d=>{Se(d,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(d),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let d=u=>{s.isPointerDown&&s.onInteractOutside&&Se(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",d,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",d,!0)}}else{let d=f=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Se(f,t)&&s.onInteractOutside(f),s.isPointerDown=!1},u=f=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Se(f,t)&&s.onInteractOutside(f),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",d,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",d,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,o])}function Se(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 Sn=null;function qt(e,t){return t.some(r=>r.contains(e))}function Cn(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Kt.traverse(Kt.getTreeNode(t)))if(qt(e,r.current))return!0;return!1}function Nn(e){return Cn(e,Sn)}class $e{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let a=this.fastMap.get(r??null),n=new Zt({scopeRef:t});a.addChild(n),n.parent=a,this.fastMap.set(t,n),o&&(n.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),o=r.parent;for(let n of this.traverse())n!==r&&r.nodeToRestore&&n.nodeToRestore&&r.scopeRef.current&&qt(n.nodeToRestore,r.scopeRef.current)&&(n.nodeToRestore=r.nodeToRestore);let a=r.children;o.removeChild(r),a.size>0&&a.forEach(n=>o.addChild(n)),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 $e;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Ge(this,"fastMap",new Map),this.root=new Zt({scopeRef:null}),this.fastMap.set(null,this.root)}}class Zt{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Ge(this,"children",new Set),Ge(this,"contain",!1),this.scopeRef=t.scopeRef}}let Kt=new $e;const H=[];function En(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:a,isDismissable:n=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;c.useEffect(()=>(a&&H.push(t),()=>{let g=H.indexOf(t);g>=0&&H.splice(g,1)}),[a,t]);let d=()=>{H[H.length-1]===t&&r&&r()},u=g=>{(!i||i(g.target))&&H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault())},f=g=>{(!i||i(g.target))&&(H[H.length-1]===t&&(g.stopPropagation(),g.preventDefault()),d())},m=g=>{g.key==="Escape"&&!s&&(g.stopPropagation(),g.preventDefault(),d())};kn({ref:t,onInteractOutside:n?f:null,onInteractOutsideStart:u});let{focusWithinProps:x}=wn({isDisabled:!o,onBlurWithin:g=>{g.relatedTarget&&Nn(g.relatedTarget)||(!i||i(g.relatedTarget))&&r()}}),v=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...x},underlayProps:{onPointerDown:v}}}const In=({align:e,children:t,className:r,...o})=>{const a=c.useMemo(()=>{const{horizontal:n,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},d={bottom:"",top:"bottom-full"};return`${i[n]} ${d[s]}`},[e]);return l.jsx("div",{className:b(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mbe-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",a,r]),...o,children:t})},Pn=({open:e,children:t})=>l.jsx(l.Fragment,{children:e?t:null}),Ln=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:o,isDismissible:a,isOpen:n,onClose:s,...i})=>{const d=c.useRef(null),{overlayProps:u}=En({isDismissable:a,isKeyboardDismissDisabled:!a,isOpen:n,onClose:s},d);return l.jsx(Pn,{open:n,children:l.jsx(Ae,{autoFocus:t,children:l.jsx(In,{align:e,className:o,onClose:s,...i,children:l.jsx("div",{ref:d,...u,onClick:s,children:r})})})})},Mn=({onToggle:e,children:t,className:r,disabled:o})=>{const a=i=>{i.preventDefault(),i.stopPropagation(),e()},n=c.useRef(null),s=c.cloneElement(t,{className:r,disabled:o,onClick:a,ref:n});return l.jsx(l.Fragment,{children:s})},Tn=(e,t)=>{const{children:r,error:o,hint:a,label:n}=e;return l.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[l.jsx("label",{children:n}),o?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:o}):null,a?l.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:a}):null,r]})},Xt=c.forwardRef(Tn);Xt.displayName="Radio Set";const zn=({children:e,disabled:t,name:r,value:o,...a},n)=>l.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:[l.jsx("input",{className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:n,...a,type:"radio",value:o}),l.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})]}),Jt=c.forwardRef(zn);Jt.displayName="RadioSetItem";function Bn({className:e,defaultValue:t,onChange:r=()=>{},values:o,...a},n){const[s,i]=c.useState(t??0),d=s>0?s-1:0,u=f=>{i(f),r(f)};return l.jsx(T,{...a,className:`inline-flex overflow-hidden text-gray-40 dark:text-white ${e}`,ref:n,children:o.map((f,m)=>l.jsx(Rt,{activeIndex:s,currentIndex:m,lastIndex:o.length-1,onSelectedValue:u,prevIndex:d,value:f}))})}const Yt=c.forwardRef(Bn);Yt.displayName="SegmentedControl";function Rt({activeIndex:e,currentIndex:t,lastIndex:r,onSelectedValue:o,prevIndex:a,value:n}){return l.jsxs(l.Fragment,{children:[l.jsx("button",{className:b(`font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark border-solid
2
2
  ${t===e?" bg-gray-40 dark:bg-white text-white dark:text-gray-40 border-gray-40 dark:border-white":""}
3
- `),onClick:t!==e?()=>r(t):void 0,children:o}),n===t||e===t?null:i.jsx("span",{className:"inline-block w-px bg-tertiary-light dark:bg-tertiary-dark"})]})}const jo=({...e})=>i.jsx("option",{...e}),Qt="_select_1dwiy_1",ea={select:Qt},Ao="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",Wo="border-alert-light dark:border-alert-dark",Do="border-tertiary-light dark:border-tertiary-dark",He="text-text-muted-light dark:text-text-muted-dark",er=b(He,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),Go="-translate-y-1 opacity-100",Oo="text-overlay-text dark:text-text-dark",Fo="!pbs-3 !pbe-1",$o="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",Ho=({children:e,className:t,disabled:r=!1,error:n,hint:o,label:a,name:s,onChange:l,value:d,...u},f)=>{var M;const m=b(Qt,Ao),x=c.useRef(null),v=ge({forwardedRef:f,innerRef:x}),[g,k]=c.useState(Boolean(d||((M=v==null?void 0:v.current)==null?void 0:M.value)));c.useEffect(()=>{var C;k(Boolean(((C=v==null?void 0:v.current)==null?void 0:C.value)||d))},[d,v]);const w=c.useMemo(()=>{const C=b(m,Oo,a?Fo:null),y=b(m,He);return g?C:y},[m,g,a]),P=c.useMemo(()=>{const C=b(er,Go),y=b(er);return g?C:y},[g]),N=C=>{var y;k(Boolean(((y=v==null?void 0:v.current)==null?void 0:y.value)||d)),l&&l(C)};return i.jsxs("div",{className:b(t),children:[i.jsxs("div",{className:"relative w-full border-none",children:[i.jsx("select",{...u,className:b([w,n?Wo:Do]),disabled:r,id:s,name:s,onChange:N,ref:v,value:d,children:e}),i.jsx("label",{className:P,htmlFor:s,children:a}),i.jsx("div",{className:$o,children:i.jsx(qe,{size:"24"})})]}),n||o?i.jsxs("div",{className:"mbs-0.5",children:[n?i.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:n}):null,o?i.jsx("p",{className:b(He,"text-13 m-0"),children:o}):null]}):null]})},Vo=c.forwardRef(Ho);function Uo({active:e,children:t,component:r="a",className:n,href:o}){return i.jsx(G,{className:b("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 _o={caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20",default:"bg-gray-10 dark:bg-gray-40 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",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"},qo={lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1",sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"},Zo=({message:e,variant:t="default",size:r="sm",className:n})=>{const o=_o[t],a=qo[r];return i.jsx(T,{className:b(o,a,n),children:i.jsx(G,{children:e})})},Ko={inputIcon:"_inputIcon_1pzdd_1"},Xo=({className:e,error:t,name:r,...n},o)=>i.jsxs(i.Fragment,{children:[i.jsx("input",{className:b(["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]",Ko.inputIcon,e]),id:r,name:r,ref:o,role:"textbox",type:"time",...n}),t?i.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),tr=c.forwardRef(Xo);tr.displayName="TimePicker";const rr={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Jo=({content:e,className:t,...r})=>i.jsx("div",{className:b(rr.tooltipWrapper,t),...r,children:i.jsx("span",{className:rr.tooltipContent,children:e})});h.AutocompleteSelect=lt,h.Box=T,h.Breadcrumb=ht,h.Breadcrumbs=wt,h.Button=ce,h.ButtonComponent=kt,h.Checkbox=St,h.Dialog=It,h.Divider=Nn,h.FocusTrap=Ae,h.Heading=De,h.HorizontalLoader=En,h.IconButton=We,h.IconLinkButton=Pt,h.ImageUpload=Gt,h.Input=Me,h.LinkButton=Ft,h.LinkButtonComponent=Ot,h.List=Te,h.ListItem=me,h.ListItemActions=ro,h.ListItemContent=no,h.ListItemText=oo,h.Option=jo,h.Popover=ao,h.PopoverBody=Lo,h.PopoverTrigger=Mo,h.RadioSet=Xt,h.RadioSetItem=Jt,h.SegmentedControl=Yt,h.SegmentedControlItem=Rt,h.Select=Vo,h.Tab=Uo,h.Tag=Zo,h.Text=G,h.TimePicker=tr,h.Tooltip=Jo,h.buttonSizeOptions=cn,h.cn=b,h.defaultButtonClasses=je,h.determineSizeClasses=Be,h.iconSizes=le,h.useCombinedRefs=ge,h.useLockBodyScroll=it,h.variantClasses=de,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
3
+ `,t===0?"border-l-small rounded-ss-1 rounded-es-1":"",t===r?"border-r-small rounded-se-1 rounded-ee-1":""),onClick:t!==e?()=>o(t):void 0,children:n}),a===t||e===t||r===t?null:l.jsx("span",{className:"inline-block w-px bg-tertiary-light dark:bg-tertiary-dark"})]})}const jn=({...e})=>l.jsx("option",{...e}),Qt="_select_1dwiy_1",ea={select:Qt},An="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",Wn="border-alert-light dark:border-alert-dark",Dn="border-tertiary-light dark:border-tertiary-dark",He="text-text-muted-light dark:text-text-muted-dark",er=b(He,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),Gn="-translate-y-1 opacity-100",On="text-overlay-text dark:text-text-dark",Fn="!pbs-3 !pbe-1",$n="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",Hn=({children:e,className:t,disabled:r=!1,error:o,hint:a,label:n,name:s,onChange:i,value:d,...u},f)=>{var M;const m=b(Qt,An),x=c.useRef(null),v=ge({forwardedRef:f,innerRef:x}),[g,k]=c.useState(Boolean(d||((M=v==null?void 0:v.current)==null?void 0:M.value)));c.useEffect(()=>{var C;k(Boolean(((C=v==null?void 0:v.current)==null?void 0:C.value)||d))},[d,v]);const w=c.useMemo(()=>{const C=b(m,On,n?Fn:null),y=b(m,He);return g?C:y},[m,g,n]),P=c.useMemo(()=>{const C=b(er,Gn),y=b(er);return g?C:y},[g]),N=C=>{var y;k(Boolean(((y=v==null?void 0:v.current)==null?void 0:y.value)||d)),i&&i(C)};return l.jsxs("div",{className:b(t),children:[l.jsxs("div",{className:"relative w-full border-none",children:[l.jsx("select",{...u,className:b([w,o?Wn:Dn]),disabled:r,id:s,name:s,onChange:N,ref:v,value:d,children:e}),l.jsx("label",{className:P,htmlFor:s,children:n}),l.jsx("div",{className:$n,children:l.jsx(qe,{size:"24"})})]}),o||a?l.jsxs("div",{className:"mbs-0.5",children:[o?l.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:o}):null,a?l.jsx("p",{className:b(He,"text-13 m-0"),children:a}):null]}):null]})},Vn=c.forwardRef(Hn);function Un({active:e,children:t,component:r="a",className:o,href:a}){return l.jsx(G,{className:b("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",o),component:r,href:a,children:t})}const _n={caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20",default:"bg-gray-10 dark:bg-gray-40 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",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"},qn={lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1",sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"},Zn=({message:e,variant:t="default",size:r="sm",className:o})=>{const a=_n[t],n=qn[r];return l.jsx(T,{className:b(a,n,o),children:l.jsx(G,{children:e})})},Kn={inputIcon:"_inputIcon_1pzdd_1"},Xn=({className:e,error:t,name:r,...o},a)=>l.jsxs(l.Fragment,{children:[l.jsx("input",{className:b(["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]",Kn.inputIcon,e]),id:r,name:r,ref:a,role:"textbox",type:"time",...o}),t?l.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),tr=c.forwardRef(Xn);tr.displayName="TimePicker";const rr={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Jn=({content:e,className:t,...r})=>l.jsx("div",{className:b(rr.tooltipWrapper,t),...r,children:l.jsx("span",{className:rr.tooltipContent,children:e})});h.AutocompleteSelect=it,h.Box=T,h.Breadcrumb=ht,h.Breadcrumbs=wt,h.Button=ce,h.ButtonComponent=kt,h.Checkbox=St,h.Dialog=It,h.Divider=No,h.FocusTrap=Ae,h.Heading=De,h.HorizontalLoader=Eo,h.IconButton=We,h.IconLinkButton=Pt,h.ImageUpload=Gt,h.Input=Me,h.LinkButton=Ft,h.LinkButtonComponent=Ot,h.List=Te,h.ListItem=me,h.ListItemActions=rn,h.ListItemContent=on,h.ListItemText=nn,h.Option=jn,h.Popover=an,h.PopoverBody=Ln,h.PopoverTrigger=Mn,h.RadioSet=Xt,h.RadioSetItem=Jt,h.SegmentedControl=Yt,h.SegmentedControlItem=Rt,h.Select=Vn,h.Tab=Un,h.Tag=Zn,h.Text=G,h.TimePicker=tr,h.Tooltip=Jn,h.buttonSizeOptions=co,h.cn=b,h.defaultButtonClasses=je,h.determineSizeClasses=Be,h.iconSizes=ie,h.useCombinedRefs=ge,h.useLockBodyScroll=lt,h.variantClasses=de,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@react-aria/overlays": "3.14.0",
25
25
  "@youversion/design-system-core": "0.1.1",
26
- "@youversion/design-system-icons": "0.0.10",
26
+ "@youversion/design-system-icons": "0.1.0",
27
27
  "@youversion/design-system-tokens": "0.0.6",
28
28
  "clsx": "1.2.1",
29
29
  "tailwind-merge": "1.13.2"