@youversion/design-system-components 0.24.0 → 0.25.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(m,U){typeof exports=="object"&&typeof module<"u"?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"],U):(m=typeof globalThis<"u"?globalThis:m||self,U(m["design-system-components"]={},m.clsx,m["react/jsx-runtime"],m.React))})(this,function(m,U,n,d){"use strict";function kr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const re=kr(d);var Sr=Object.defineProperty,Nr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,qe=(e,t,r)=>t in e?Sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Er=(e,t)=>{for(var r in t||(t={}))_e.call(t,r)&&qe(e,r,t[r]);if(he)for(var r of he(t))Ue.call(t,r)&&qe(e,r,t[r]);return e},Ir=(e,t)=>Nr(e,Cr(t)),Mr=(e,t)=>{var r={};for(var o in e)_e.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&he)for(var o of he(e))t.indexOf(o)<0&&Ue.call(e,o)&&(r[o]=e[o]);return r},Lr=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Mr(r,["title","titleId"]);return n.jsxs("svg",Ir(Er({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},Pr=d.forwardRef(Lr),Ke=Pr,Xe={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%"},Je={borderRadius:Xe,borderWidth:{none:"0px",small:"1px",standard:"2px",large:"3px"}},Pe={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 zr(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=Ye(t))&&(o&&(o+=" "),o+=r);return o}function Ye(e){if(typeof e=="string")return e;for(var t,r="",o=0;o<e.length;o++)e[o]&&(t=Ye(e[o]))&&(r&&(r+=" "),r+=t);return r}var ze="-";function Tr(e){var t=jr(e),r=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,a=o===void 0?{}:o;function l(i){var c=i.split(ze);return c[0]===""&&c.length!==1&&c.shift(),Re(c,t)||Br(i)}function s(i,c){var u=r[i]||[];return c&&a[i]?[].concat(u,a[i]):u}return{getClassGroupId:l,getConflictingClassGroupIds:s}}function Re(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),a=o?Re(e.slice(1),o):void 0;if(a)return a;if(t.validators.length!==0){var l=e.join(ze);return(s=t.validators.find(function(i){var c=i.validator;return c(l)}))==null?void 0:s.classGroupId}}var Qe=/^\[(.+)\]$/;function Br(e){if(Qe.test(e)){var t=Qe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function jr(e){var t=e.theme,r=e.prefix,o={nextPart:new Map,validators:[]},a=Fr(Object.entries(e.classGroups),r);return a.forEach(function(l){var s=l[0],i=l[1];Te(i,o,s,t)}),o}function Te(e,t,r,o){e.forEach(function(a){if(typeof a=="string"){var l=a===""?t:et(t,a);l.classGroupId=r;return}if(typeof a=="function"){if(Ar(a)){Te(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var i=s[0],c=s[1];Te(c,et(t,i),r,o)})})}function et(e,t){var r=e;return t.split(ze).forEach(function(o){r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Ar(e){return e.isThemeGetter}function Fr(e,t){return t?e.map(function(r){var o=r[0],a=r[1],l=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var c=i[0],u=i[1];return[t+c,u]})):s});return[o,l]}):e}function Gr(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,o=new Map;function a(l,s){r.set(l,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 tt="!";function Dr(e){var t=e.separator||":",r=t.length===1,o=t[0],a=t.length;return function(s){for(var i=[],c=0,u=0,p,h=0;h<s.length;h++){var y=s[h];if(c===0){if(y===o&&(r||s.slice(h,h+a)===t)){i.push(s.slice(u,h)),u=h+a;continue}if(y==="/"){p=h;continue}}y==="["?c++:y==="]"&&c--}var v=i.length===0?s:s.substring(u),b=v.startsWith(tt),x=b?v.substring(1):v,w=p&&p>u?p-u:void 0;return{modifiers:i,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:w}}}function Wr(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 Or(e){return{cache:Gr(e.cacheSize),splitModifiers:Dr(e),...Tr(e)}}var Hr=/\s+/;function $r(e,t){var r=t.splitModifiers,o=t.getClassGroupId,a=t.getConflictingClassGroupIds,l=new Set;return e.trim().split(Hr).map(function(s){var i=r(s),c=i.modifiers,u=i.hasImportantModifier,p=i.baseClassName,h=i.maybePostfixModifierPosition,y=o(h?p.substring(0,h):p),v=!!h;if(!y){if(!h)return{isTailwindClass:!1,originalClassName:s};if(y=o(p),!y)return{isTailwindClass:!1,originalClassName:s};v=!1}var b=Wr(c).join(":"),x=u?b+tt:b;return{isTailwindClass:!0,modifierId:x,classGroupId:y,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,c=s.classGroupId,u=s.hasPostfixModifier,p=i+c;return l.has(p)?!1:(l.add(p),a(c,u).forEach(function(h){return l.add(i+h)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function rt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a,l,s=i;function i(u){var p=t[0],h=t.slice(1),y=h.reduce(function(v,b){return b(v)},p());return o=Or(y),a=o.cache.get,l=o.cache.set,s=c,c(u)}function c(u){var p=a(u);if(p)return p;var h=$r(u,o);return l(u,h),h}return function(){return s(zr.apply(null,arguments))}}function k(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vr=/^\d+\/\d+$/,Zr=new Set(["px","full","screen"]),_r=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ur=/\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$/,qr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function D(e){return q(e)||Zr.has(e)||Vr.test(e)||Z(e)}function Z(e){return K(e,"length",Qr)}function Kr(e){return K(e,"size",nt)}function Xr(e){return K(e,"position",nt)}function Jr(e){return K(e,"url",eo)}function me(e){return K(e,"number",q)}function q(e){return!Number.isNaN(Number(e))}function Yr(e){return e.endsWith("%")&&q(e.slice(0,-1))}function ie(e){return at(e)||K(e,"number",at)}function I(e){return ot.test(e)}function de(){return!0}function _(e){return _r.test(e)}function Rr(e){return K(e,"",to)}function K(e,t,r){var o=ot.exec(e);return o?o[1]?o[1]===t:r(o[2]):!1}function Qr(e){return Ur.test(e)}function nt(){return!1}function eo(e){return e.startsWith("url(")}function at(e){return Number.isInteger(Number(e))}function to(e){return qr.test(e)}function lt(){var e=k("colors"),t=k("spacing"),r=k("blur"),o=k("brightness"),a=k("borderColor"),l=k("borderRadius"),s=k("borderSpacing"),i=k("borderWidth"),c=k("contrast"),u=k("grayscale"),p=k("hueRotate"),h=k("invert"),y=k("gap"),v=k("gradientColorStops"),b=k("gradientColorStopPositions"),x=k("inset"),w=k("margin"),M=k("opacity"),E=k("padding"),j=k("saturate"),C=k("scale"),N=k("sepia"),g=k("skew"),V=k("space"),P=k("translate"),J=function(){return["auto","contain","none"]},L=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",t]},G=function(){return["",D]},T=function(){return["auto",q,I]},ae=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},O=function(){return["solid","dashed","dotted","double","none"]},Me=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},le=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",I]},Le=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[q,me]},se=function(){return[q,I]};return{cacheSize:500,theme:{colors:[de],spacing:[D],blur:["none","",_,Z],brightness:R(),borderColor:[e],borderRadius:["none","","full",_,Z],borderSpacing:[t],borderWidth:G(),contrast:R(),grayscale:Y(),hueRotate:se(),invert:Y(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[Yr,Z],inset:W(),margin:W(),opacity:R(),padding:[t],saturate:R(),scale:R(),sepia:Y(),skew:se(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Le()}],"break-before":[{"break-before":Le()}],"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(ae(),[I])}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ie]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ie]}],"grid-cols":[{"grid-cols":[de]}],"col-start-end":[{col:["auto",{span:[ie]},I]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[de]}],"row-start-end":[{row:["auto",{span:[ie]},I]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal"].concat(le())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(le(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(le(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],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":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"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:[_]},_,Z]}],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",_,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[de]}],"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",Z]}],"line-clamp":[{"line-clamp":["none",q,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(O(),["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",Z]}],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",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ae(),[Xr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Jr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"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":[M]}],"border-style":[{border:[].concat(O(),["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":[M]}],"divide-style":[{divide:O()}],"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(O())}],"outline-offset":[{"outline-offset":[D]}],"outline-w":[{outline:[D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,Rr]}],"shadow-color":[{shadow:[de]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":Me()}],"bg-blend":[{"bg-blend":Me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",_,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[j]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"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",I]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[ie,I]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[g]}],"skew-y":[{"skew-y":[g]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],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",I]}],"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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,me]}],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 ro(e,t){for(var r in t)st(e,r,t[r]);return e}var oo=Object.prototype.hasOwnProperty,no=new Set(["string","number","boolean"]);function st(e,t,r){if(!oo.call(e,t)||no.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)st(e[t],o,r[o])}}function ao(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"?rt.apply(void 0,[lt,e].concat(r)):rt.apply(void 0,[function(){return ro(lt(),e)}].concat(r))}const lo=Object.keys(Pe.fontSize),so=Object.keys(Pe.fontWeight),io=Object.keys(Pe.lineHeight),F=Object.keys(Xe),co=Object.keys(Je.borderWidth),uo=Object.keys(Je.borderRadius),fo=ao({classGroups:{"font-size":[{text:lo}],"font-weight":[{font:so}],leading:[{leading:io}],mbe:[{mbe:F}],mbs:[{mbs:F}],mie:[{mie:F}],mis:[{mis:F}],mlb:[{mlb:F}],mli:[{mli:F}],pbe:[{pbe:F}],pbs:[{pbs:F}],pie:[{pie:F}],pis:[{pis:F}],plb:[{plb:F}],pli:[{pli:F}]},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:uo,borderWidth:co}});function f(...e){return fo(U(e))}const Be=e=>{if(e){if(typeof e!="string"&&e)return U(e.lightMode,e.darkMode);if(typeof e=="string")return e}},it=e=>{if(e){if(typeof e!="string"&&e)return U(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},po=({background:e,borderColor:t,borderRadius:r,borderWidth:o,className:a,component:l="div",color:s,elevation:i=0,height:c,margin:u,padding:p,width:h,...y},v)=>{const b={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},x=Be(s),w=Be(e),M=Be(t),E=it(p),j=it(u),C=f(r,o,b[i],j,E,x,w,M,h,c,a);return d.createElement(l,{className:C,...y,ref:v})},S=d.forwardRef(po);S.displayName="Box";const ce=({innerRef:e,forwardedRef:t})=>(d.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function dt(){d.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const bo=({className:e,disabled:t,endIcon:r,error:o,hint:a,label:l,name:s,onChange:i,placeholder:c,startIcon:u,value:p,...h},y)=>{const v=d.useRef(null),b=ce({forwardedRef:y,innerRef:v}),[x,w]=d.useState(!!p),[M,E]=d.useState(!1);d.useEffect(()=>{var g;w(!!((g=b==null?void 0:b.current)!=null&&g.value)||!!(p||c))},[p,c,b]);const j=g=>{var V;w(!!((V=b==null?void 0:b.current)!=null&&V.value)||!!(p||c)),i&&i(g)},C=()=>{t||!b.current||(b.current.focus(),E(!0))},N=()=>{E(!1)};return n.jsxs("div",{className:f(["flex items-start flex-col gap-0.5",e]),children:[n.jsxs("div",{className:f(["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?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:u}):null,n.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[n.jsx("input",{className:f(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",u?"pis-1":"pis-2",r?"pie-1":"pie-2",l?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:N,onChange:j,placeholder:c,ref:b,value:p,...h}),l?n.jsx("label",{className:f("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",M||x?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:l}):null]}),r?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),o||a?n.jsxs("div",{className:"flex flex-col",children:[o?n.jsx("span",{className:"text-alert dark:text-alert-dark",children:o}):null,a?n.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:a}):null]}):null]})},je=d.forwardRef(bo);je.displayName="Input";const go=({children:e,className:t,...r},o)=>n.jsx("ul",{className:f(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:o,...r,children:e}),Ae=d.forwardRef(go);Ae.displayName="List";const ho=({children:e,className:t,disabled:r,divider:o,onClick:a,...l},s)=>{const i=c=>{a&&(c.code==="Enter"||c.key===" ")&&a()};return n.jsx("li",{className:f(["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:s,...l,children:n.jsx("div",{className:f(["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:i,onTouchEnd:a,tabIndex:a?0:void 0,children:e})})},ve=d.forwardRef(ho);ve.displayName="ListItem";const mo=({label:e,name:t,options:r,disabled:o=!1,error:a,hint:l,noOptionsText:s,onChange:i,onSelect:c,value:u,...p},h)=>{const y=d.useRef(null),v=d.useRef(null),[b,x]=d.useState(u),[w,M]=d.useState(!1);d.useImperativeHandle(h,()=>({clearSelection(){x(null),i("")},...y.current}),[i]);const E=g=>{w||M(!0),!g.length&&b&&x(null),i(g)},j=g=>{c(g),i(g.label),x(g.label),M(!1)},C=d.useCallback(g=>{v.current&&!v.current.contains(g.target)&&(!b&&u&&i(""),b&&u&&i(b),M(!1))},[i,b,u]),N=d.useMemo(()=>r.filter(g=>g.label.toLowerCase().includes(u.toLowerCase()))??[],[r,u]);return d.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[C]),n.jsxs(S,{className:"relative",ref:v,children:[n.jsx(je,{disabled:o,endIcon:n.jsx(Ke,{size:"24"}),error:a,hint:l,label:e,name:t??e,onChange:g=>{E(g.target.value)},onFocus:()=>M(!0),ref:y,value:u??"",...p}),w?n.jsx(S,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:n.jsx(Ae,{className:"max-h-[300px] overflow-y-auto",children:N.length?N.map((g,V)=>n.jsx(ve,{onClick:()=>j(g),children:g.label},`${g.value}-${V}`)):n.jsx(ve,{children:s},"no-options")})}):null]})},ct=d.forwardRef(mo);ct.displayName="AutocompleteSelect";var vo=Object.defineProperty,yo=Object.defineProperties,xo=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,pt=(e,t,r)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wo=(e,t)=>{for(var r in t||(t={}))ut.call(t,r)&&pt(e,r,t[r]);if(ye)for(var r of ye(t))ft.call(t,r)&&pt(e,r,t[r]);return e},ko=(e,t)=>yo(e,xo(t)),So=(e,t)=>{var r={};for(var o in e)ut.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&&ft.call(e,o)&&(r[o]=e[o]);return r},No=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=So(r,["title","titleId"]);return n.jsxs("svg",ko(wo({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.712 12.484a1.002 1.002 0 0 1 1.417-.001l2.648 2.654a.25.25 0 0 0 .353 0l6.895-6.894a1 1 0 0 1 1.414 1.414l-7.782 7.781a1 1 0 0 1-1.414 0L6.71 13.9a1.002 1.002 0 0 1 .002-1.416Z",fill:"currentColor"})]}))},Co=d.forwardRef(No),Eo=Co;const Io=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.402 8.931c-.298-.09-.5-.335-.505-.614V8.814c-.018-.34.222-.65.587-.759.389-.132.83-.02 1.08.272a.639.639 0 0 1 .16.432v1.74c0 .564-.013 1.128 0 1.693a.765.765 0 0 1-.325.624.998.998 0 0 1-.755.172 1.389 1.389 0 0 1-.242-.057Zm.383 3.032a.982.982 0 1 1 .008 0h-.008Z",fill:"currentColor"})]}),Mo=d.forwardRef(Io),Lo=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.16 11.988a1.389 1.389 0 0 1-.242-.057c-.298-.09-.5-.335-.505-.614v-3.503c-.018-.34.222-.65.587-.759.389-.132.83-.02 1.08.272a.639.639 0 0 1 .16.432v1.74c0 .564-.013 1.128 0 1.693a.765.765 0 0 1-.325.624.998.998 0 0 1-.755.172Zm.14-6.025a.982.982 0 1 1 .009 0h-.008Z",fill:"currentColor"})]}),Po=d.forwardRef(Lo);function zo({className:e,children:t,variant:r="default"}){const o={default:"mie-1 text-muted-light dark:text-muted-dark",error:"mie-1 text-alert-light dark:text-alert-dark",info:"mie-1 text-info-light dark:text-info-dark",success:"mie-1 text-success-light dark:text-success-dark",warning:"mie-1 text-caution-light dark:text-caution-dark"},a="flex flex-start items-center justify-start plb-2 pis-2 pie-4 rounded-1 w-full text-base leading-normal box-border gap-sm",l={default:f(a,"bg-gray-10 dark:bg-gray-40"),error:f(a,"bg-orange-10 dark:bg-orange-50"),info:f(a,"bg-blue-10 dark:bg-blue-50"),success:f(a,"bg-green-10 dark:bg-green-50"),warning:f(a,"bg-yellow-10 dark:bg-yellow-40")},s={default:"text-text-light dark:text-text-dark",error:"text-orange-40 dark:text-orange-20",info:"text-blue-40 dark:text-blue-20",success:"text-green-40 dark:text-green-20",warning:"text-yellow-40 dark:text-yellow-20"},i=d.useMemo(()=>r==="success"?n.jsx(Eo,{}):r==="warning"||r==="error"?n.jsx(Mo,{}):n.jsx(Po,{}),[r]);return n.jsxs("div",{className:f(l[r],e),children:[n.jsx("div",{className:o[r],children:i}),typeof t=="string"?n.jsx(z,{className:s[r],children:t}):t]})}const bt={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"},xe={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"},Fe={...xe,base:"font-regular leading-loose",xl:"text-23 md:text-28"},gt={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"},ht={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},mt={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},vt={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},yt={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},xt=({size:e,variant:t})=>{switch(t){case"headline":return f(bt.base,bt[e]);case"label":return f(xe.base,e?xe[e]:xe.default);case"paragraph":return f(Fe.base,e?Fe[e]:Fe.default);case"eyebrow":return f(gt.base,gt[e]);case"caption":return f(ht.base,ht[e]);case"buttonLabel":return f(mt.base,mt[e]);case"fieldLabel":return f(vt.base,vt[e]);case"fieldTextInput":return f(yt.base,yt[e]);default:return e}},wt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},To=({className:e,component:t="p",children:r,font:o="primary",size:a,variant:l,...s},i)=>{const c="text-text-light dark:text-text-dark",u=wt[o],p=xt({size:a,variant:l});return n.jsx(S,{className:f(c,p,u,e),component:t,ref:i,...s,children:r})},z=d.forwardRef(To);z.displayName="Text";const kt=({children:e,component:t="a",className:r,disabled:o,active:a,...l})=>n.jsx(z,{className:f(["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,...l,children:e});kt.displayName="Breadcrumb";var Bo=Object.defineProperty,jo=Object.defineProperties,Ao=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Ct=(e,t,r)=>t in e?Bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fo=(e,t)=>{for(var r in t||(t={}))St.call(t,r)&&Ct(e,r,t[r]);if(we)for(var r of we(t))Nt.call(t,r)&&Ct(e,r,t[r]);return e},Go=(e,t)=>jo(e,Ao(t)),Do=(e,t)=>{var r={};for(var o in e)St.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&&Nt.call(e,o)&&(r[o]=e[o]);return r},Wo=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Do(r,["title","titleId"]);return n.jsxs("svg",Go(Fo({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},Oo=d.forwardRef(Wo),Ho=Oo;const $o=({children:e,className:t,...r},o)=>{const a=d.Children.toArray(e),l=a.findIndex(s=>{var i;return d.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return n.jsx("div",{className:f(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:o,...r,children:a.map((s,i)=>n.jsxs("div",{className:"flex items-center",children:[i?n.jsx(Ho,{className:f(["mx-1",i>l&&"text-gray-15",i<=l&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?d.createElement(s.type,{...s.props,className:f([s.props.className??"",i<l?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>l&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},Et=d.forwardRef($o);Et.displayName="Breadcrumbs";const Vo={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},Ge=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"}}},ue={lg:30,md:24,sm:18,xl:36,xs:12},De="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",fe={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-40 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-15 dark:bg-gray-35 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"},It=({className:e,children:t,disabled:r,icon:o,iconAction:a,iconPosition:l,size:s="md",type:i="button",variant:c="primary",...u},p)=>{const h=Ge(o!==void 0?l:void 0),y=f(De,fe[c],h[s],e);return n.jsxs("button",{className:y,disabled:r,ref:p,type:i,...u,children:[l==="start"&&o!==void 0?d.createElement(o,{className:"mie-0.5",onClick:a??void 0,size:ue[s]}):null,n.jsx("span",{className:"truncate",children:t}),l==="end"&&o!==void 0?d.createElement(o,{className:"mis-0.5",onClick:a??void 0,size:ue[s]}):null]})},pe=d.forwardRef(It);pe.displayName="Button";const Zo=({error:e,className:t,label:r,disabled:o,name:a,labelProps:l,...s},i)=>{const c=d.useId(),u=d.useMemo(()=>`checkbox-label-${c}`,[c]),{className:p,...h}=l??{};return n.jsxs("div",{className:f(["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:[n.jsx("input",{"aria-labelledby":u,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:i,type:"checkbox",...s}),n.jsxs("div",{className:"flex flex-col",children:[r?n.jsx("div",{className:f("peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",p),children:n.jsx("label",{htmlFor:a,id:u,...h,children:r})}):null,e?n.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})]})},Mt=d.forwardRef(Zo);Mt.displayName="Checkbox";var _o=Object.defineProperty,Uo=Object.defineProperties,qo=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,zt=(e,t,r)=>t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ko=(e,t)=>{for(var r in t||(t={}))Lt.call(t,r)&&zt(e,r,t[r]);if(ke)for(var r of ke(t))Pt.call(t,r)&&zt(e,r,t[r]);return e},Xo=(e,t)=>Uo(e,qo(t)),Jo=(e,t)=>{var r={};for(var o in e)Lt.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&&Pt.call(e,o)&&(r[o]=e[o]);return r},Yo=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Jo(r,["title","titleId"]);return n.jsxs("svg",Xo(Ko({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},Ro=d.forwardRef(Yo),Qo=Ro;const We=({children:e,autoFocus:t=!0})=>{const r=d.useRef(null);return d.useEffect(()=>{if(r.current){const o=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let a=document.activeElement;const l=o[0],s=o[o.length-1],i=p=>{if(p.key==="Tab"){if(p.shiftKey){if(document.activeElement===l)p.preventDefault(),s.focus(),a=s;else for(let h=0;h<o.length;h++)if(o[h]===document.activeElement){a=o[h-1];break}}else if(!p.shiftKey){if(document.activeElement===s)p.preventDefault(),l.focus(),a=l;else for(let h=0;h<o.length;h++)if(o[h]===document.activeElement){a=o[h+1];break}}}};t&&(()=>{if(r.current){const p=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');p&&p.focus()}})();const u=p=>{r.current&&!r.current.contains(p.target)&&a.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",u)}}},[t]),n.jsx("div",{ref:r,children:e})},en=({children:e,className:t,disabled:r,type:o="button",variant:a="borderless",...l},s)=>n.jsx("button",{className:f(["rounded-full inline-flex justify-center items-center p-1",t,fe[a],r?"pointer-events-none":""]),disabled:r,ref:s,type:o,...l,children:e}),Se=d.forwardRef(en);Se.displayName="IconButton";const tn={1:"h1",2:"h2",3:"h3",4:"h4"},rn=({className:e,children:t,font:r="primary",level:o=1,size:a,variant:l,...s},i)=>{const c="text-text-light dark:text-text-dark",u=wt[r],p=xt({size:a,variant:l});return n.jsx(S,{className:f(c,p,u,e),component:tn[o],ref:i,...s,children:t})},oe=d.forwardRef(rn);oe.displayName="Heading";const on=({autoFocus:e=!0,children:t,className:r,confirmationButtons:o,dialogType:a="confirmation",heading:l,isDismissableOnOutsideClick:s=!0,onClose:i,...c},u)=>{dt();const p=a==="confirmation"?"max-w-[400px]":"max-w-[700px]";return n.jsxs("div",{className:"flex items-center justify-center w-full h-screen z-20 absolute inset-0",children:[n.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),n.jsx(We,{autoFocus:e,children:n.jsxs("dialog",{className:f(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",p,r),open:!0,ref:u,...c,children:[a==="modal"?n.jsx(Se,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:n.jsx(Qo,{})}):null,n.jsx("div",{children:l?n.jsx(oe,{className:"pbe-1",size:"md",variant:"headline",children:l}):null}),n.jsx("div",{children:t}),n.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:o==null?void 0:o.map(({label:h,...y},v)=>n.jsx(pe,{"aria-label":h,size:"sm",variant:"all_caps",...y,children:h},`${h}${v}`))})]})})]})},Tt=d.forwardRef(on);Tt.displayName="Dialog";const nn=({className:e,...t})=>n.jsx("hr",{...t,className:f("w-full border-gray-15 dark:border-gray-30 border-standard",e)});function an({className:e,height:t,progress:r}){return n.jsx("div",{className:f([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`,e]),children:n.jsx("div",{className:`bg-yv-red h-${t} ease-in-out duration-300`,style:{transitionProperty:"width",width:`${r}%`}})})}const ln=({className:e,children:t,component:r="a",variant:o="borderless",...a},l)=>d.createElement(r,{...a,className:f(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",fe[o],e]),ref:l},t),Bt=d.forwardRef(ln);Bt.displayName="IconLinkButton";var sn=Object.defineProperty,dn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Ft=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Ft(e,r,t[r]);if(Ne)for(var r of Ne(t))At.call(t,r)&&Ft(e,r,t[r]);return e},fn=(e,t)=>dn(e,cn(t)),pn=(e,t)=>{var r={};for(var o in e)jt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ne)for(var o of Ne(e))t.indexOf(o)<0&&At.call(e,o)&&(r[o]=e[o]);return r},bn=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=pn(r,["title","titleId"]);return n.jsxs("svg",fn(un({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},gn=d.forwardRef(bn),hn=gn,mn=Object.defineProperty,vn=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Wt=(e,t,r)=>t in e?mn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xn=(e,t)=>{for(var r in t||(t={}))Gt.call(t,r)&&Wt(e,r,t[r]);if(Ce)for(var r of Ce(t))Dt.call(t,r)&&Wt(e,r,t[r]);return e},wn=(e,t)=>vn(e,yn(t)),kn=(e,t)=>{var r={};for(var o in e)Gt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ce)for(var o of Ce(e))t.indexOf(o)<0&&Dt.call(e,o)&&(r[o]=e[o]);return r},Sn=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=kn(r,["title","titleId"]);return n.jsxs("svg",wn(xn({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"}),n.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"}),n.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"})]}))},Nn=d.forwardRef(Sn),Cn=Nn,En=Object.defineProperty,In=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,$t=(e,t,r)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ln=(e,t)=>{for(var r in t||(t={}))Ot.call(t,r)&&$t(e,r,t[r]);if(Ee)for(var r of Ee(t))Ht.call(t,r)&&$t(e,r,t[r]);return e},Pn=(e,t)=>In(e,Mn(t)),zn=(e,t)=>{var r={};for(var o in e)Ot.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ee)for(var o of Ee(e))t.indexOf(o)<0&&Ht.call(e,o)&&(r[o]=e[o]);return r},Tn=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=zn(r,["title","titleId"]);return n.jsxs("svg",Pn(Ln({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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:n.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:l.dur,repeatCount:"indefinite"})})]}))},Bn=d.forwardRef(Tn),Vt=Bn;const jn=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:o,disabled:a=!1,dismissCallback:l,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:c=(P,J)=>`${P} is too big to upload, the maximum size is ${J}kb. Please try again.`,fileMaxSizeError:u=P=>`${P} is too large to upload. The maximum dimensions are ${g==null?void 0:g.maxWidth}x${g==null?void 0:g.maxHeight}. Please try again.`,fileMinSizeError:p=P=>`${P} is too small to upload. The minimum dimensions are ${g==null?void 0:g.minWidth}x${g==null?void 0:g.minHeight}. Please try again.`,fileRatioError:h=P=>`${P} must have a ratio of, ${g==null?void 0:g.imageRatio}. Please try again.`,fileCallback:y,hero:v=!1,hint:b,imageWidth:x=160,imageSrc:w,label:M="Upload Image",name:E="imageUpload",onBlur:j,preProcessing:C,shape:N="circle",validation:g},V)=>{const P=d.useRef(null),J=ce({forwardedRef:V,innerRef:P}),[L,W]=d.useState(void 0),[G,T]=d.useState(w?"resolved":"idle"),[ae,O]=d.useState(i),Me=()=>P!=null&&P.current?P.current.click():void 0,le=d.useMemo(()=>L&&G!=="rejected"?(T("resolved"),L.imageSrc):w&&G==="resolved"?(T("resolved"),w):null,[L,w,G]),Y=d.useMemo(()=>{const H=()=>{l&&l(w),W(void 0),T("idle")};switch(G){case"pending":return n.jsx(S,{className:"animate-spin",children:n.jsx(Vt,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return n.jsxs(n.Fragment,{children:[n.jsx("img",{alt:`${L==null?void 0:L.id} preview`,className:f(["object-fit w-full h-full",N==="circle"?"rounded-full":"rounded-0.5",N!=="unset"||!v?"aspect-square":"",N==="unset"&&v?"aspect-video":"",N==="unset"&&!v?"!aspect-auto":""]),onLoad:()=>L!=null&&L.imageSrc?URL.revokeObjectURL(L.imageSrc):void 0,src:le||void 0,width:x}),a?null:n.jsx(pe,{"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:H,children:n.jsx(hn,{})})]});default:return n.jsx(S,{className:"gray-10 dark:gray-30",children:n.jsx(Cn,{"data-testid":"placeholder image",size:"32"})})}},[a,l,s,v,L==null?void 0:L.id,L==null?void 0:L.imageSrc,w,G,x,le,N]),Le=({file:H,imageUrl:Q})=>new Promise((ee,te)=>{var wr;const A=new Image,ge=(wr=g==null?void 0:g.imageRatio)==null?void 0:wr.split("/");A.onload=async()=>{if(g)if(g!=null&&g.maxByteSize&&H.size>g.maxByteSize){W(void 0),T("rejected");const Za=c(H.name,Math.round(g.maxByteSize/1e3));return O(Za),te(!1)}else{if(g!=null&&g.minWidth&&A.width<(g==null?void 0:g.minWidth)||g!=null&&g.minHeight&&A.height<(g==null?void 0:g.minHeight))return W(void 0),T("rejected"),O(p(H.name)),te(!1);if(g!=null&&g.maxHeight&&A.height>(g==null?void 0:g.maxHeight)||g!=null&&g.maxWidth&&A.width>(g==null?void 0:g.maxWidth))return W(void 0),T("rejected"),O(u(H.name)),te(!1);if(g!=null&&g.imageRatio&&(ge==null?void 0:ge.length)===2&&parseInt(ge[0])/parseInt(ge[1])!==A.width/A.height)return W(void 0),T("rejected"),O(h(H.name)),te(!1)}return x=A.width,typeof y=="function"&&(console.log("Callback"),await y(H,A)),O(""),ee(!0)},A.src=Q}),R=async H=>{try{const{files:Q}=H.target;if(Q){const ee=Q[0],te=URL.createObjectURL(ee);let A=!0;T("pending"),C&&await C(ee),A=await Le({file:ee,imageUrl:te}),A&&(W({file:ee,id:ee.name,imageSrc:te}),T("resolved"))}}catch(Q){if(Q instanceof Error)throw Q}},se=f([N==="circle"&&!v?"rounded-full aspect-square":""]),B=f([N==="square"&&!v?"aspect-square rounded-1":""]),$a=f([N==="unset"&&!v?"rounded-1":"",N==="unset"&&G!=="idle"&&!v?"aspect-auto":"",N==="unset"&&G!=="resolved"&&!v?"aspect-square":""]),Va=f([v?"rounded-1 aspect-video":""]);return n.jsxs(S,{className:f([o]),children:[n.jsxs(S,{className:f(["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",,ae?"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:[n.jsx(z,{className:"pbe-1.5 text-text-muted-light dark:text-text-muted-dark",children:n.jsx("label",{htmlFor:E,children:M})}),n.jsxs(S,{className:"flex relative flex-wrap justify-center md:justify-start",children:[n.jsx(S,{className:f(["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":"",G!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",se,B,$a,Va]),children:Y}),n.jsx(pe,{className:f(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",v?"!mbs-2":""]),disabled:a,onClick:Me,size:"sm",variant:"stroked",children:G==="resolved"?t:r}),n.jsx("input",{accept:e.toString(),className:"hidden",disabled:a,id:E,name:E,onBlur:j,onChange:R,ref:J,title:"",type:"file",value:""})]})]}),ae?n.jsx(z,{className:"dark:!text-alert-dark !text-alert-light text-13",children:ae}):null,b?n.jsx(z,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:b}):null]})},Zt=d.forwardRef(jn);Zt.displayName="ImageUpload";const _t=({className:e,children:t,component:r="a",icon:o,iconPosition:a,variant:l="primary",size:s="md",...i},c)=>{const u=Ge(o!==void 0?a:void 0),p=({children:h})=>d.createElement(r,{...i,className:f([De,fe[l],u[s],"no-underline cursor-pointer",e]),ref:c},h);return n.jsxs(p,{children:[a==="start"&&o!==void 0?d.createElement(o,{className:"mie-0.5 flex-shrink-0",size:ue[s]}):null,d.createElement("span",{className:"truncate"},t),a==="end"&&o!==void 0?d.createElement(o,{className:"mis-0.5 flex-shrink-0",size:ue[s]}):null]})},Ut=d.forwardRef(_t);Ut.displayName="LinkButton";function An({children:e,className:t,position:r}){let o="";return r&&(r==="start"?o="order-first":o="order-last"),n.jsx("div",{className:f("flex gap-1",o,t),children:e})}function Fn({children:e,className:t}){return n.jsx("div",{className:f("flex-grow",t),children:e})}const Gn=({children:e,className:t,endText:r,endTextProps:o,size:a="sm",subHeadline:l,subHeadlineProps:s})=>n.jsxs("div",{className:f(["flex items-center justify-between break-words",t]),children:[n.jsxs("div",{className:"flex flex-col",children:[n.jsx(z,{size:a,variant:"label",children:e}),l?n.jsx(z,{...s,children:l}):null]}),r?n.jsx(z,{...o,children:r}):null]});function Dn({"aria-label":e="Loading…",duration:t=.9,iconSize:r="40px",className:o,color:a="text-gray-15",height:l="h-full",width:s="w-full",iconProps:i={}}){return n.jsx(S,{"aria-label":e,className:f(["items-center flex justify-center",a,l,s,o]),children:n.jsx(Vt,{...i,dur:`${t}s`,height:r,width:r})})}const Wn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.293a1 1 0 0 1 0 1.414l-4.94 4.94a.5.5 0 0 0 0 .707l4.94 4.939a1 1 0 0 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 5.293a1 1 0 0 1 0 1.414l-4.94 4.94a.5.5 0 0 0 0 .707l4.94 4.939a1 1 0 0 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"})]}),qt=d.forwardRef(Wn),On=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.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"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.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"})]}),Kt=d.forwardRef(On),Hn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.707 5.293a1 1 0 0 1 0 1.414l-5.116 5.116a.25.25 0 0 0 0 .354l5.116 5.116a1 1 0 1 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"})]}),Xt=d.forwardRef(Hn),$n=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.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"})]}),Jt=d.forwardRef($n),Vn=({page:e,pages:t,maxPages:r=5})=>{const o=(r-1)/2,a=Math.floor(o),l=Math.ceil(o),s=Math.min(r,t.length);let i=e-a;return e-a<=1?i=1:e+l>=t.length&&(i=Math.max(1,t.length-r+1)),Array.from(Array(s).keys()).map(u=>u+i).map(u=>t[u-1])},Zn=({pages:e,currentPage:t,onClick:r,component:o="button",pageLabel:a=u=>`Go to page ${u}`,nextLabel:l="Go to next page",previousLabel:s="Go to previous page",firstLabel:i="Go to first page",lastLabel:c="Go to last page"})=>{const u="w-4 h-4 mli-0.5 flex justify-center items-center rounded-full cursor-pointer leading-snug",p=f(u,"bg-transparent hover:bg-gray-35 hover:dark:bg-white text-muted-light","dark:text-text-muted-dark hover:!text-canvas-light hover:dark:text-gray-50","border border-transparent focus:border-info focus:dark:border-info","hover:border-transparent hover:dark:border-transparent"),h=p,y=f(u,"bg-yv-red !text-white dark:!text-white"),v=d.useMemo(()=>Vn({page:e.findIndex(b=>b===t)+1,pages:e}),[e,t]);return n.jsxs(S,{className:"h-4 flex items-center justify-center",children:[t!==e[0]?n.jsxs(n.Fragment,{children:[n.jsxs(S,{"aria-label":i,className:f(h,"hidden md:flex mli-0"),component:o,onClick:()=>r(e[0]),children:[n.jsx(qt,{className:"rtl:hidden",size:"16"}),n.jsx(Kt,{className:"ltr:hidden",size:"16"})]}),n.jsxs(S,{"aria-label":s,className:f(h,"mli-0"),component:o,onClick:()=>r(e[e.findIndex(b=>b===t)-1]),children:[n.jsx(Xt,{className:"rtl:hidden",size:"16"}),n.jsx(Jt,{className:"ltr:hidden",size:"16"})]})]}):null,v.map(b=>n.jsx(S,{"aria-label":a(e.findIndex(x=>x===b)+1),className:f(b===t?y:p,"hidden md:flex"),component:o,onClick:()=>r(b),children:n.jsx(z,{className:f(b===t?y:"text-inherit hover:text-inherit","hidden md:flex"),size:"sm",variant:"fieldLabel",children:e.findIndex(x=>x===b)+1})},b)),n.jsx(z,{className:"text-text-muted-light dark:text-text-muted-dark flex items-center md:hidden",size:"sm",variant:"paragraph",children:`${e.indexOf(t)+1} of ${e.length}`}),t!==e[e.length-1]?n.jsxs(n.Fragment,{children:[n.jsxs(S,{"aria-label":l,className:f(p,h,"mli-0"),component:o,onClick:()=>r(e[e.findIndex(b=>b===t)+1]),children:[n.jsx(Jt,{className:"rtl:hidden",size:"16"}),n.jsx(Xt,{className:"ltr:hidden",size:"16"})]}),n.jsxs(S,{"aria-label":c,className:f(p,h,"hidden md:flex mli-0"),component:o,onClick:()=>r(e[e.length-1]),children:[n.jsx(Kt,{className:"rtl:hidden",size:"16"}),n.jsx(qt,{className:"ltr:hidden",size:"16"})]})]}):null]})},_n=({children:e,className:t,...r})=>n.jsx("div",{className:f(["relative",t]),...r,children:e}),Un=typeof window<"u"?d.useLayoutEffect:()=>{};let be=new Map,Yt=new Set;function Rt(){if(typeof window>"u")return;let e=r=>{let o=be.get(r.target);o||(o=new Set,be.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{let o=be.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),be.delete(r.target)),be.size===0)){for(let a of Yt)a();Yt.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Rt():document.addEventListener("DOMContentLoaded",Rt));function qn(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 Kn(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 Xn(){return Kn(/^Mac/i)}function Jn(){return qn(/Android/i)}function Yn(e){return e.mozInputSource===0&&e.isTrusted?!0:Jn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Rn=d.createContext(null);Rn.displayName="PressResponderContext";class Qn{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 ea(e){let t=d.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Un(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,a=l=>{var s,i;t.current.isFocused=!1,o.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new Qn("blur",l))),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 ta=new Set,Qt=!1,X=!1,He=!1;function $e(e,t){for(let r of ta)r(e,t)}function ra(e){return!(e.metaKey||!Xn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function er(e){X=!0,ra(e)&&$e("keyboard",e)}function ne(e){(e.type==="mousedown"||e.type==="pointerdown")&&(X=!0,$e("pointer",e))}function oa(e){Yn(e)&&(X=!0)}function na(e){e.target===window||e.target===document||(!X&&!He&&$e("virtual",e),X=!1,He=!1)}function aa(){X=!1,He=!0}function tr(){if(typeof window>"u"||Qt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){X=!0,e.apply(this,arguments)},document.addEventListener("keydown",er,!0),document.addEventListener("keyup",er,!0),document.addEventListener("click",oa,!0),window.addEventListener("focus",na,!0),window.addEventListener("blur",aa,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ne,!0),document.addEventListener("pointermove",ne,!0),document.addEventListener("pointerup",ne,!0)):(document.addEventListener("mousedown",ne,!0),document.addEventListener("mousemove",ne,!0),document.addEventListener("mouseup",ne,!0)),Qt=!0}typeof document<"u"&&(document.readyState!=="loading"?tr():document.addEventListener("DOMContentLoaded",tr));function la(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:a}=e,l=d.useRef({isFocusWithin:!1}),s=d.useCallback(u=>{l.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(l.current.isFocusWithin=!1,r&&r(u),a&&a(!1))},[r,a,l]),i=ea(s),c=d.useCallback(u=>{!l.current.isFocusWithin&&document.activeElement===u.target&&(o&&o(u),a&&a(!0),l.current.isFocusWithin=!0,i(u))},[o,a,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function sa(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:a}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:a}).current;s.onInteractOutside=r,s.onInteractOutsideStart=a,d.useEffect(()=>{if(o)return;let i=c=>{Ie(c,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(c),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let c=u=>{s.isPointerDown&&s.onInteractOutside&&Ie(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",c,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",c,!0)}}else{let c=p=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Ie(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1},u=p=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Ie(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",c,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",c,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,o])}function Ie(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 ia=null;function rr(e,t){return t.some(r=>r.contains(e))}function da(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of nr.traverse(nr.getTreeNode(t)))if(rr(e,r.current))return!0;return!1}function ca(e){return da(e,ia)}class Ve{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let a=this.fastMap.get(r??null),l=new or({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),o&&(l.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 l of this.traverse())l!==r&&r.nodeToRestore&&l.nodeToRestore&&r.scopeRef.current&&rr(l.nodeToRestore,r.scopeRef.current)&&(l.nodeToRestore=r.nodeToRestore);let a=r.children;o.removeChild(r),a.size>0&&a.forEach(l=>o.addChild(l)),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 Ve;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Oe(this,"fastMap",new Map),this.root=new or({scopeRef:null}),this.fastMap.set(null,this.root)}}class or{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Oe(this,"children",new Set),Oe(this,"contain",!1),this.scopeRef=t.scopeRef}}let nr=new Ve;const $=[];function ua(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;d.useEffect(()=>(a&&$.push(t),()=>{let b=$.indexOf(t);b>=0&&$.splice(b,1)}),[a,t]);let c=()=>{$[$.length-1]===t&&r&&r()},u=b=>{(!i||i(b.target))&&$[$.length-1]===t&&(b.stopPropagation(),b.preventDefault())},p=b=>{(!i||i(b.target))&&($[$.length-1]===t&&(b.stopPropagation(),b.preventDefault()),c())},h=b=>{b.key==="Escape"&&!s&&(b.stopPropagation(),b.preventDefault(),c())};sa({ref:t,onInteractOutside:l?p:null,onInteractOutsideStart:u});let{focusWithinProps:y}=la({isDisabled:!o,onBlurWithin:b=>{b.relatedTarget&&ca(b.relatedTarget)||(!i||i(b.relatedTarget))&&r()}}),v=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:h,...y},underlayProps:{onPointerDown:v}}}const fa=({align:e,children:t,className:r,...o})=>{const a=d.useMemo(()=>{const{horizontal:l,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},c={bottom:"",top:"bottom-full"};return`${i[l]} ${c[s]}`},[e]);return n.jsx("div",{className:f(["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})},pa=({open:e,children:t})=>n.jsx(n.Fragment,{children:e?t:null}),ba=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:o,isDismissible:a,isOpen:l,onClose:s,...i})=>{const c=d.useRef(null),{overlayProps:u}=ua({isDismissable:a,isKeyboardDismissDisabled:!a,isOpen:l,onClose:s},c);return n.jsx(pa,{open:l,children:n.jsx(We,{autoFocus:t,children:n.jsx(fa,{align:e,className:o,onClose:s,...i,children:n.jsx("div",{ref:c,...u,onClick:s,children:r})})})})},ga=({onToggle:e,children:t,className:r,disabled:o})=>{const a=i=>{i.preventDefault(),i.stopPropagation(),e()},l=d.useRef(null),s=d.cloneElement(t,{className:r,disabled:o,onClick:a,ref:l});return n.jsx(n.Fragment,{children:s})},ha=({children:e,error:t,hint:r,heading:o,headingProps:a,hintProps:l,errorProps:s,...i},c)=>n.jsxs("div",{...i,className:"flex-col rounded-0.5 w-fit",ref:c,children:[o?n.jsx(oe,{size:"md",variant:"fieldLabel",...a,children:o}):null,t?n.jsx(oe,{className:"text-alert-light dark:text-alert-dark",size:"md",variant:"caption",...s,children:t}):null,r?n.jsx(oe,{size:"md",variant:"caption",...l,children:r}):null,e]}),ar=d.forwardRef(ha);ar.displayName="Radio Set";const ma=({children:e,disabled:t,id:r,name:o,value:a,...l},s)=>n.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:[n.jsx("input",{...l,className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer inline",disabled:t,id:r,name:o,ref:s,type:"radio",value:a}),n.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:r,children:e})]}),lr=d.forwardRef(ma);lr.displayName="RadioSetItem";const va=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 19a7.5 7.5 0 1 1 5.963-2.95l3.336 3.335a1 1 0 0 1-1.414 1.414l-3.336-3.336A7.467 7.467 0 0 1 10.5 19Zm0-2.031a5.469 5.469 0 1 1 0-10.938 5.469 5.469 0 0 1 0 10.938Z",fill:"currentColor"})]}),ya=d.forwardRef(va),xa=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.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"})]}),wa=d.forwardRef(xa),ka=({className:e,disabled:t,error:r,hint:o,label:a,name:l,onChange:s,placeholder:i,value:c,dismissButtonLabel:u,...p},h)=>{const y=d.useRef(null),v=ce({forwardedRef:h,innerRef:y}),b=w=>{s&&s(w.target.value)},x=()=>{s&&s("")};return n.jsxs("div",{className:f(["flex items-start flex-col gap-0.5",e]),children:[n.jsxs("div",{className:f(["items-center self-stretch rounded-10 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,r?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),children:[n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:n.jsx(ya,{})}),n.jsx("input",{className:f(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px] pis-1 pie-1"]),disabled:t,id:l,name:l,onChange:b,placeholder:i,ref:v,type:"search",value:c,...p}),n.jsx("label",{className:"sr-only",htmlFor:l,children:a}),c?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:n.jsx(Se,{"aria-label":u,className:"p-0.25 hover:text-white bg-gray-45 dark:bg-gray-50",onClick:x,variant:"primary",children:n.jsx(wa,{})})}):null]}),r||o?n.jsxs("div",{className:"flex flex-col",children:[r?n.jsx("span",{className:"text-alert dark:text-alert-dark",children:r}):null,o?n.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},sr=d.forwardRef(ka);sr.displayName="Search";function Sa({className:e,defaultValue:t,onChange:r=()=>{},values:o,...a},l){const[s,i]=d.useState(t??0),c=s>0?s-1:0,u=p=>{i(p),r(p)};return n.jsx(S,{...a,className:`inline-flex overflow-hidden text-gray-40 dark:text-white ${e}`,ref:l,children:o.map((p,h)=>n.jsx(dr,{activeIndex:s,currentIndex:h,lastIndex:o.length-1,onSelectedValue:u,prevIndex:c,value:p}))})}const ir=d.forwardRef(Sa);ir.displayName="SegmentedControl";function dr({activeIndex:e,currentIndex:t,lastIndex:r,onSelectedValue:o,prevIndex:a,value:l}){return n.jsxs(n.Fragment,{children:[n.jsx("button",{className:f(`font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark border-solid
1
+ (function(m,U){typeof exports=="object"&&typeof module<"u"?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"],U):(m=typeof globalThis<"u"?globalThis:m||self,U(m["design-system-components"]={},m.clsx,m["react/jsx-runtime"],m.React))})(this,function(m,U,n,d){"use strict";function kr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const re=kr(d);var Sr=Object.defineProperty,Nr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,qe=(e,t,r)=>t in e?Sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Er=(e,t)=>{for(var r in t||(t={}))_e.call(t,r)&&qe(e,r,t[r]);if(he)for(var r of he(t))Ue.call(t,r)&&qe(e,r,t[r]);return e},Ir=(e,t)=>Nr(e,Cr(t)),Mr=(e,t)=>{var r={};for(var o in e)_e.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&he)for(var o of he(e))t.indexOf(o)<0&&Ue.call(e,o)&&(r[o]=e[o]);return r},Lr=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Mr(r,["title","titleId"]);return n.jsxs("svg",Ir(Er({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},Pr=d.forwardRef(Lr),Ke=Pr,Xe={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%"},Je={borderRadius:Xe,borderWidth:{none:"0px",small:"1px",standard:"2px",large:"3px"}},Pe={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 zr(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=Ye(t))&&(o&&(o+=" "),o+=r);return o}function Ye(e){if(typeof e=="string")return e;for(var t,r="",o=0;o<e.length;o++)e[o]&&(t=Ye(e[o]))&&(r&&(r+=" "),r+=t);return r}var ze="-";function Tr(e){var t=jr(e),r=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,a=o===void 0?{}:o;function l(i){var c=i.split(ze);return c[0]===""&&c.length!==1&&c.shift(),Re(c,t)||Br(i)}function s(i,c){var u=r[i]||[];return c&&a[i]?[].concat(u,a[i]):u}return{getClassGroupId:l,getConflictingClassGroupIds:s}}function Re(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),a=o?Re(e.slice(1),o):void 0;if(a)return a;if(t.validators.length!==0){var l=e.join(ze);return(s=t.validators.find(function(i){var c=i.validator;return c(l)}))==null?void 0:s.classGroupId}}var Qe=/^\[(.+)\]$/;function Br(e){if(Qe.test(e)){var t=Qe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function jr(e){var t=e.theme,r=e.prefix,o={nextPart:new Map,validators:[]},a=Fr(Object.entries(e.classGroups),r);return a.forEach(function(l){var s=l[0],i=l[1];Te(i,o,s,t)}),o}function Te(e,t,r,o){e.forEach(function(a){if(typeof a=="string"){var l=a===""?t:et(t,a);l.classGroupId=r;return}if(typeof a=="function"){if(Ar(a)){Te(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var i=s[0],c=s[1];Te(c,et(t,i),r,o)})})}function et(e,t){var r=e;return t.split(ze).forEach(function(o){r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Ar(e){return e.isThemeGetter}function Fr(e,t){return t?e.map(function(r){var o=r[0],a=r[1],l=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var c=i[0],u=i[1];return[t+c,u]})):s});return[o,l]}):e}function Gr(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,o=new Map;function a(l,s){r.set(l,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 tt="!";function Dr(e){var t=e.separator||":",r=t.length===1,o=t[0],a=t.length;return function(s){for(var i=[],c=0,u=0,p,h=0;h<s.length;h++){var y=s[h];if(c===0){if(y===o&&(r||s.slice(h,h+a)===t)){i.push(s.slice(u,h)),u=h+a;continue}if(y==="/"){p=h;continue}}y==="["?c++:y==="]"&&c--}var v=i.length===0?s:s.substring(u),b=v.startsWith(tt),x=b?v.substring(1):v,w=p&&p>u?p-u:void 0;return{modifiers:i,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:w}}}function Wr(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 Or(e){return{cache:Gr(e.cacheSize),splitModifiers:Dr(e),...Tr(e)}}var Hr=/\s+/;function $r(e,t){var r=t.splitModifiers,o=t.getClassGroupId,a=t.getConflictingClassGroupIds,l=new Set;return e.trim().split(Hr).map(function(s){var i=r(s),c=i.modifiers,u=i.hasImportantModifier,p=i.baseClassName,h=i.maybePostfixModifierPosition,y=o(h?p.substring(0,h):p),v=!!h;if(!y){if(!h)return{isTailwindClass:!1,originalClassName:s};if(y=o(p),!y)return{isTailwindClass:!1,originalClassName:s};v=!1}var b=Wr(c).join(":"),x=u?b+tt:b;return{isTailwindClass:!0,modifierId:x,classGroupId:y,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,c=s.classGroupId,u=s.hasPostfixModifier,p=i+c;return l.has(p)?!1:(l.add(p),a(c,u).forEach(function(h){return l.add(i+h)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function rt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a,l,s=i;function i(u){var p=t[0],h=t.slice(1),y=h.reduce(function(v,b){return b(v)},p());return o=Or(y),a=o.cache.get,l=o.cache.set,s=c,c(u)}function c(u){var p=a(u);if(p)return p;var h=$r(u,o);return l(u,h),h}return function(){return s(zr.apply(null,arguments))}}function k(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vr=/^\d+\/\d+$/,Zr=new Set(["px","full","screen"]),_r=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ur=/\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$/,qr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function D(e){return q(e)||Zr.has(e)||Vr.test(e)||Z(e)}function Z(e){return K(e,"length",Qr)}function Kr(e){return K(e,"size",nt)}function Xr(e){return K(e,"position",nt)}function Jr(e){return K(e,"url",eo)}function me(e){return K(e,"number",q)}function q(e){return!Number.isNaN(Number(e))}function Yr(e){return e.endsWith("%")&&q(e.slice(0,-1))}function ie(e){return at(e)||K(e,"number",at)}function I(e){return ot.test(e)}function de(){return!0}function _(e){return _r.test(e)}function Rr(e){return K(e,"",to)}function K(e,t,r){var o=ot.exec(e);return o?o[1]?o[1]===t:r(o[2]):!1}function Qr(e){return Ur.test(e)}function nt(){return!1}function eo(e){return e.startsWith("url(")}function at(e){return Number.isInteger(Number(e))}function to(e){return qr.test(e)}function lt(){var e=k("colors"),t=k("spacing"),r=k("blur"),o=k("brightness"),a=k("borderColor"),l=k("borderRadius"),s=k("borderSpacing"),i=k("borderWidth"),c=k("contrast"),u=k("grayscale"),p=k("hueRotate"),h=k("invert"),y=k("gap"),v=k("gradientColorStops"),b=k("gradientColorStopPositions"),x=k("inset"),w=k("margin"),M=k("opacity"),E=k("padding"),j=k("saturate"),C=k("scale"),N=k("sepia"),g=k("skew"),V=k("space"),P=k("translate"),J=function(){return["auto","contain","none"]},L=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",t]},G=function(){return["",D]},T=function(){return["auto",q,I]},ae=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},O=function(){return["solid","dashed","dotted","double","none"]},Me=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},le=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",I]},Le=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[q,me]},se=function(){return[q,I]};return{cacheSize:500,theme:{colors:[de],spacing:[D],blur:["none","",_,Z],brightness:R(),borderColor:[e],borderRadius:["none","","full",_,Z],borderSpacing:[t],borderWidth:G(),contrast:R(),grayscale:Y(),hueRotate:se(),invert:Y(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[Yr,Z],inset:W(),margin:W(),opacity:R(),padding:[t],saturate:R(),scale:R(),sepia:Y(),skew:se(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Le()}],"break-before":[{"break-before":Le()}],"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(ae(),[I])}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ie]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ie]}],"grid-cols":[{"grid-cols":[de]}],"col-start-end":[{col:["auto",{span:[ie]},I]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[de]}],"row-start-end":[{row:["auto",{span:[ie]},I]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal"].concat(le())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(le(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(le(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],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":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"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:[_]},_,Z]}],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",_,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[de]}],"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",Z]}],"line-clamp":[{"line-clamp":["none",q,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(O(),["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",Z]}],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",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ae(),[Xr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Jr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"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":[M]}],"border-style":[{border:[].concat(O(),["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":[M]}],"divide-style":[{divide:O()}],"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(O())}],"outline-offset":[{"outline-offset":[D]}],"outline-w":[{outline:[D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,Rr]}],"shadow-color":[{shadow:[de]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":Me()}],"bg-blend":[{"bg-blend":Me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",_,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[j]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"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",I]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[ie,I]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[g]}],"skew-y":[{"skew-y":[g]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],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",I]}],"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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,me]}],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 ro(e,t){for(var r in t)st(e,r,t[r]);return e}var oo=Object.prototype.hasOwnProperty,no=new Set(["string","number","boolean"]);function st(e,t,r){if(!oo.call(e,t)||no.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)st(e[t],o,r[o])}}function ao(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"?rt.apply(void 0,[lt,e].concat(r)):rt.apply(void 0,[function(){return ro(lt(),e)}].concat(r))}const lo=Object.keys(Pe.fontSize),so=Object.keys(Pe.fontWeight),io=Object.keys(Pe.lineHeight),F=Object.keys(Xe),co=Object.keys(Je.borderWidth),uo=Object.keys(Je.borderRadius),fo=ao({classGroups:{"font-size":[{text:lo}],"font-weight":[{font:so}],leading:[{leading:io}],mbe:[{mbe:F}],mbs:[{mbs:F}],mie:[{mie:F}],mis:[{mis:F}],mlb:[{mlb:F}],mli:[{mli:F}],pbe:[{pbe:F}],pbs:[{pbs:F}],pie:[{pie:F}],pis:[{pis:F}],plb:[{plb:F}],pli:[{pli:F}]},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:uo,borderWidth:co}});function f(...e){return fo(U(e))}const Be=e=>{if(e){if(typeof e!="string"&&e)return U(e.lightMode,e.darkMode);if(typeof e=="string")return e}},it=e=>{if(e){if(typeof e!="string"&&e)return U(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},po=({background:e,borderColor:t,borderRadius:r,borderWidth:o,className:a,component:l="div",color:s,elevation:i=0,height:c,margin:u,padding:p,width:h,...y},v)=>{const b={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},x=Be(s),w=Be(e),M=Be(t),E=it(p),j=it(u),C=f(r,o,b[i],j,E,x,w,M,h,c,a);return d.createElement(l,{className:C,...y,ref:v})},S=d.forwardRef(po);S.displayName="Box";const ce=({innerRef:e,forwardedRef:t})=>(d.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function dt(){d.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const bo=({className:e,disabled:t,endIcon:r,error:o,hint:a,label:l,name:s,onChange:i,placeholder:c,startIcon:u,value:p,...h},y)=>{const v=d.useRef(null),b=ce({forwardedRef:y,innerRef:v}),[x,w]=d.useState(!!p),[M,E]=d.useState(!1);d.useEffect(()=>{var g;w(!!((g=b==null?void 0:b.current)!=null&&g.value)||!!(p||c))},[p,c,b]);const j=g=>{var V;w(!!((V=b==null?void 0:b.current)!=null&&V.value)||!!(p||c)),i&&i(g)},C=()=>{t||!b.current||(b.current.focus(),E(!0))},N=()=>{E(!1)};return n.jsxs("div",{className:f(["flex items-start flex-col gap-0.5",e]),children:[n.jsxs("div",{className:f(["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?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:u}):null,n.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[n.jsx("input",{className:f(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",u?"pis-1":"pis-2",r?"pie-1":"pie-2",l?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:N,onChange:j,placeholder:c,ref:b,value:p,...h}),l?n.jsx("label",{className:f("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",M||x?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:l}):null]}),r?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),o||a?n.jsxs("div",{className:"flex flex-col",children:[o?n.jsx("span",{className:"text-alert dark:text-alert-dark",children:o}):null,a?n.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:a}):null]}):null]})},je=d.forwardRef(bo);je.displayName="Input";const go=({children:e,className:t,...r},o)=>n.jsx("ul",{className:f(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:o,...r,children:e}),Ae=d.forwardRef(go);Ae.displayName="List";const ho=({children:e,className:t,disabled:r,divider:o,onClick:a,...l},s)=>{const i=c=>{a&&(c.code==="Enter"||c.key===" ")&&a()};return n.jsx("li",{className:f(["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:s,...l,children:n.jsx("div",{className:f(["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:i,onTouchEnd:a,tabIndex:a?0:void 0,children:e})})},ve=d.forwardRef(ho);ve.displayName="ListItem";const mo=({label:e,name:t,options:r,disabled:o=!1,error:a,hint:l,noOptionsText:s,onChange:i,onSelect:c,value:u,...p},h)=>{const y=d.useRef(null),v=d.useRef(null),[b,x]=d.useState(u),[w,M]=d.useState(!1);d.useImperativeHandle(h,()=>({clearSelection(){x(null),i("")},...y.current}),[i]);const E=g=>{w||M(!0),!g.length&&b&&x(null),i(g)},j=g=>{c(g),i(g.label),x(g.label),M(!1)},C=d.useCallback(g=>{v.current&&!v.current.contains(g.target)&&(!b&&u&&i(""),b&&u&&i(b),M(!1))},[i,b,u]),N=d.useMemo(()=>r.filter(g=>g.label.toLowerCase().includes(u.toLowerCase()))??[],[r,u]);return d.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[C]),n.jsxs(S,{className:"relative",ref:v,children:[n.jsx(je,{disabled:o,endIcon:n.jsx(Ke,{size:"24"}),error:a,hint:l,label:e,name:t??e,onChange:g=>{E(g.target.value)},onFocus:()=>M(!0),ref:y,value:u??"",...p}),w?n.jsx(S,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:n.jsx(Ae,{className:"max-h-[300px] overflow-y-auto",children:N.length?N.map((g,V)=>n.jsx(ve,{onClick:()=>j(g),children:g.label},`${g.value}-${V}`)):n.jsx(ve,{children:s},"no-options")})}):null]})},ct=d.forwardRef(mo);ct.displayName="AutocompleteSelect";var vo=Object.defineProperty,yo=Object.defineProperties,xo=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,pt=(e,t,r)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wo=(e,t)=>{for(var r in t||(t={}))ut.call(t,r)&&pt(e,r,t[r]);if(ye)for(var r of ye(t))ft.call(t,r)&&pt(e,r,t[r]);return e},ko=(e,t)=>yo(e,xo(t)),So=(e,t)=>{var r={};for(var o in e)ut.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&&ft.call(e,o)&&(r[o]=e[o]);return r},No=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=So(r,["title","titleId"]);return n.jsxs("svg",ko(wo({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.712 12.484a1.002 1.002 0 0 1 1.417-.001l2.648 2.654a.25.25 0 0 0 .353 0l6.895-6.894a1 1 0 0 1 1.414 1.414l-7.782 7.781a1 1 0 0 1-1.414 0L6.71 13.9a1.002 1.002 0 0 1 .002-1.416Z",fill:"currentColor"})]}))},Co=d.forwardRef(No),Eo=Co;const Io=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.402 8.931c-.298-.09-.5-.335-.505-.614V8.814c-.018-.34.222-.65.587-.759.389-.132.83-.02 1.08.272a.639.639 0 0 1 .16.432v1.74c0 .564-.013 1.128 0 1.693a.765.765 0 0 1-.325.624.998.998 0 0 1-.755.172 1.389 1.389 0 0 1-.242-.057Zm.383 3.032a.982.982 0 1 1 .008 0h-.008Z",fill:"currentColor"})]}),Mo=d.forwardRef(Io),Lo=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.16 11.988a1.389 1.389 0 0 1-.242-.057c-.298-.09-.5-.335-.505-.614v-3.503c-.018-.34.222-.65.587-.759.389-.132.83-.02 1.08.272a.639.639 0 0 1 .16.432v1.74c0 .564-.013 1.128 0 1.693a.765.765 0 0 1-.325.624.998.998 0 0 1-.755.172Zm.14-6.025a.982.982 0 1 1 .009 0h-.008Z",fill:"currentColor"})]}),Po=d.forwardRef(Lo);function zo({className:e,children:t,variant:r="default"}){const o={default:"mie-1 text-muted-light dark:text-muted-dark",error:"mie-1 text-alert-light dark:text-alert-dark",info:"mie-1 text-info-light dark:text-info-dark",success:"mie-1 text-success-light dark:text-success-dark",warning:"mie-1 text-caution-light dark:text-caution-dark"},a="flex flex-start items-center justify-start plb-2 pis-2 pie-4 rounded-1 w-full text-base leading-normal box-border gap-sm",l={default:f(a,"bg-gray-10 dark:bg-gray-40"),error:f(a,"bg-orange-10 dark:bg-orange-50"),info:f(a,"bg-blue-10 dark:bg-blue-50"),success:f(a,"bg-green-10 dark:bg-green-50"),warning:f(a,"bg-yellow-10 dark:bg-yellow-40")},s={default:"text-text-light dark:text-text-dark",error:"text-orange-40 dark:text-orange-20",info:"text-blue-40 dark:text-blue-20",success:"text-green-40 dark:text-green-20",warning:"text-yellow-40 dark:text-yellow-20"},i=d.useMemo(()=>r==="success"?n.jsx(Eo,{}):r==="warning"||r==="error"?n.jsx(Mo,{}):n.jsx(Po,{}),[r]);return n.jsxs("div",{className:f(l[r],e),children:[n.jsx("div",{className:o[r],children:i}),typeof t=="string"?n.jsx(z,{className:s[r],children:t}):t]})}const bt={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"},xe={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"},Fe={...xe,base:"font-regular leading-loose",xl:"text-23 md:text-28"},gt={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"},ht={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},mt={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},vt={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},yt={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},xt=({size:e,variant:t})=>{switch(t){case"headline":return f(bt.base,bt[e]);case"label":return f(xe.base,e?xe[e]:xe.default);case"paragraph":return f(Fe.base,e?Fe[e]:Fe.default);case"eyebrow":return f(gt.base,gt[e]);case"caption":return f(ht.base,ht[e]);case"buttonLabel":return f(mt.base,mt[e]);case"fieldLabel":return f(vt.base,vt[e]);case"fieldTextInput":return f(yt.base,yt[e]);default:return e}},wt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},To=({className:e,component:t="p",children:r,font:o="primary",size:a,variant:l,...s},i)=>{const c="text-text-light dark:text-text-dark",u=wt[o],p=xt({size:a,variant:l});return n.jsx(S,{className:f(c,p,u,e),component:t,ref:i,...s,children:r})},z=d.forwardRef(To);z.displayName="Text";const kt=({children:e,component:t="a",className:r,disabled:o,active:a,...l})=>n.jsx(z,{className:f(["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,...l,children:e});kt.displayName="Breadcrumb";var Bo=Object.defineProperty,jo=Object.defineProperties,Ao=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Ct=(e,t,r)=>t in e?Bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fo=(e,t)=>{for(var r in t||(t={}))St.call(t,r)&&Ct(e,r,t[r]);if(we)for(var r of we(t))Nt.call(t,r)&&Ct(e,r,t[r]);return e},Go=(e,t)=>jo(e,Ao(t)),Do=(e,t)=>{var r={};for(var o in e)St.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&&Nt.call(e,o)&&(r[o]=e[o]);return r},Wo=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Do(r,["title","titleId"]);return n.jsxs("svg",Go(Fo({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},Oo=d.forwardRef(Wo),Ho=Oo;const $o=({children:e,className:t,...r},o)=>{const a=d.Children.toArray(e),l=a.findIndex(s=>{var i;return d.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return n.jsx("div",{className:f(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:o,...r,children:a.map((s,i)=>n.jsxs("div",{className:"flex items-center",children:[i?n.jsx(Ho,{className:f(["mx-1",i>l&&"text-gray-15",i<=l&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?d.createElement(s.type,{...s.props,className:f([s.props.className??"",i<l?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>l&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},Et=d.forwardRef($o);Et.displayName="Breadcrumbs";const Vo={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},Ge=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"}}},ue={lg:30,md:24,sm:18,xl:36,xs:12},De="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",fe={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-40 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-15 dark:bg-gray-35 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",strokedSecondary:"bg-transparent ring ring-1 ring-tertiary-light dark:ring-tertiary-dark text-text-light dark:text-text-dark hover:bg-gray-10 dark:hover:bg-gray-30 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"},It=({className:e,children:t,disabled:r,icon:o,iconAction:a,iconPosition:l,size:s="md",type:i="button",variant:c="primary",...u},p)=>{const h=Ge(o!==void 0?l:void 0),y=f(De,fe[c],h[s],e);return n.jsxs("button",{className:y,disabled:r,ref:p,type:i,...u,children:[l==="start"&&o!==void 0?d.createElement(o,{className:"mie-0.5",onClick:a??void 0,size:ue[s]}):null,n.jsx("span",{className:"truncate",children:t}),l==="end"&&o!==void 0?d.createElement(o,{className:"mis-0.5",onClick:a??void 0,size:ue[s]}):null]})},pe=d.forwardRef(It);pe.displayName="Button";const Zo=({error:e,className:t,label:r,disabled:o,name:a,labelProps:l,...s},i)=>{const c=d.useId(),u=d.useMemo(()=>`checkbox-label-${c}`,[c]),{className:p,...h}=l??{};return n.jsxs("div",{className:f(["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:[n.jsx("input",{"aria-labelledby":u,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:i,type:"checkbox",...s}),n.jsxs("div",{className:"flex flex-col",children:[r?n.jsx("div",{className:f("peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",p),children:n.jsx("label",{htmlFor:a,id:u,...h,children:r})}):null,e?n.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})]})},Mt=d.forwardRef(Zo);Mt.displayName="Checkbox";var _o=Object.defineProperty,Uo=Object.defineProperties,qo=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,zt=(e,t,r)=>t in e?_o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ko=(e,t)=>{for(var r in t||(t={}))Lt.call(t,r)&&zt(e,r,t[r]);if(ke)for(var r of ke(t))Pt.call(t,r)&&zt(e,r,t[r]);return e},Xo=(e,t)=>Uo(e,qo(t)),Jo=(e,t)=>{var r={};for(var o in e)Lt.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&&Pt.call(e,o)&&(r[o]=e[o]);return r},Yo=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Jo(r,["title","titleId"]);return n.jsxs("svg",Xo(Ko({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},Ro=d.forwardRef(Yo),Qo=Ro;const We=({children:e,autoFocus:t=!0})=>{const r=d.useRef(null);return d.useEffect(()=>{if(r.current){const o=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let a=document.activeElement;const l=o[0],s=o[o.length-1],i=p=>{if(p.key==="Tab"){if(p.shiftKey){if(document.activeElement===l)p.preventDefault(),s.focus(),a=s;else for(let h=0;h<o.length;h++)if(o[h]===document.activeElement){a=o[h-1];break}}else if(!p.shiftKey){if(document.activeElement===s)p.preventDefault(),l.focus(),a=l;else for(let h=0;h<o.length;h++)if(o[h]===document.activeElement){a=o[h+1];break}}}};t&&(()=>{if(r.current){const p=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');p&&p.focus()}})();const u=p=>{r.current&&!r.current.contains(p.target)&&a.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",u)}}},[t]),n.jsx("div",{ref:r,children:e})},en=({children:e,className:t,disabled:r,type:o="button",variant:a="borderless",...l},s)=>n.jsx("button",{className:f(["rounded-full inline-flex justify-center items-center p-1",t,fe[a],r?"pointer-events-none":""]),disabled:r,ref:s,type:o,...l,children:e}),Se=d.forwardRef(en);Se.displayName="IconButton";const tn={1:"h1",2:"h2",3:"h3",4:"h4"},rn=({className:e,children:t,font:r="primary",level:o=1,size:a,variant:l,...s},i)=>{const c="text-text-light dark:text-text-dark",u=wt[r],p=xt({size:a,variant:l});return n.jsx(S,{className:f(c,p,u,e),component:tn[o],ref:i,...s,children:t})},oe=d.forwardRef(rn);oe.displayName="Heading";const on=({autoFocus:e=!0,children:t,className:r,confirmationButtons:o,dialogType:a="confirmation",heading:l,isDismissableOnOutsideClick:s=!0,onClose:i,...c},u)=>{dt();const p=a==="confirmation"?"max-w-[400px]":"max-w-[700px]";return n.jsxs("div",{className:"flex items-center justify-center w-full h-screen z-20 absolute inset-0",children:[n.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),n.jsx(We,{autoFocus:e,children:n.jsxs("dialog",{className:f(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",p,r),open:!0,ref:u,...c,children:[a==="modal"?n.jsx(Se,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:n.jsx(Qo,{})}):null,n.jsx("div",{children:l?n.jsx(oe,{className:"pbe-1",size:"md",variant:"headline",children:l}):null}),n.jsx("div",{children:t}),n.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:o==null?void 0:o.map(({label:h,...y},v)=>n.jsx(pe,{"aria-label":h,size:"sm",variant:"all_caps",...y,children:h},`${h}${v}`))})]})})]})},Tt=d.forwardRef(on);Tt.displayName="Dialog";const nn=({className:e,...t})=>n.jsx("hr",{...t,className:f("w-full border-gray-15 dark:border-gray-30 border-standard",e)});function an({className:e,height:t,progress:r}){return n.jsx("div",{className:f([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`,e]),children:n.jsx("div",{className:`bg-yv-red h-${t} ease-in-out duration-300`,style:{transitionProperty:"width",width:`${r}%`}})})}const ln=({className:e,children:t,component:r="a",variant:o="borderless",...a},l)=>d.createElement(r,{...a,className:f(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",fe[o],e]),ref:l},t),Bt=d.forwardRef(ln);Bt.displayName="IconLinkButton";var sn=Object.defineProperty,dn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Ft=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,un=(e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Ft(e,r,t[r]);if(Ne)for(var r of Ne(t))At.call(t,r)&&Ft(e,r,t[r]);return e},fn=(e,t)=>dn(e,cn(t)),pn=(e,t)=>{var r={};for(var o in e)jt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ne)for(var o of Ne(e))t.indexOf(o)<0&&At.call(e,o)&&(r[o]=e[o]);return r},bn=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=pn(r,["title","titleId"]);return n.jsxs("svg",fn(un({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"})]}))},gn=d.forwardRef(bn),hn=gn,mn=Object.defineProperty,vn=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Wt=(e,t,r)=>t in e?mn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xn=(e,t)=>{for(var r in t||(t={}))Gt.call(t,r)&&Wt(e,r,t[r]);if(Ce)for(var r of Ce(t))Dt.call(t,r)&&Wt(e,r,t[r]);return e},wn=(e,t)=>vn(e,yn(t)),kn=(e,t)=>{var r={};for(var o in e)Gt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ce)for(var o of Ce(e))t.indexOf(o)<0&&Dt.call(e,o)&&(r[o]=e[o]);return r},Sn=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=kn(r,["title","titleId"]);return n.jsxs("svg",wn(xn({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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"}),n.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"}),n.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"})]}))},Nn=d.forwardRef(Sn),Cn=Nn,En=Object.defineProperty,In=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,$t=(e,t,r)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ln=(e,t)=>{for(var r in t||(t={}))Ot.call(t,r)&&$t(e,r,t[r]);if(Ee)for(var r of Ee(t))Ht.call(t,r)&&$t(e,r,t[r]);return e},Pn=(e,t)=>In(e,Mn(t)),zn=(e,t)=>{var r={};for(var o in e)Ot.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ee)for(var o of Ee(e))t.indexOf(o)<0&&Ht.call(e,o)&&(r[o]=e[o]);return r},Tn=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=zn(r,["title","titleId"]);return n.jsxs("svg",Pn(Ln({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.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:n.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:l.dur,repeatCount:"indefinite"})})]}))},Bn=d.forwardRef(Tn),Vt=Bn;const jn=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:o,disabled:a=!1,dismissCallback:l,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:c=(P,J)=>`${P} is too big to upload, the maximum size is ${J}kb. Please try again.`,fileMaxSizeError:u=P=>`${P} is too large to upload. The maximum dimensions are ${g==null?void 0:g.maxWidth}x${g==null?void 0:g.maxHeight}. Please try again.`,fileMinSizeError:p=P=>`${P} is too small to upload. The minimum dimensions are ${g==null?void 0:g.minWidth}x${g==null?void 0:g.minHeight}. Please try again.`,fileRatioError:h=P=>`${P} must have a ratio of, ${g==null?void 0:g.imageRatio}. Please try again.`,fileCallback:y,hero:v=!1,hint:b,imageWidth:x=160,imageSrc:w,label:M="Upload Image",name:E="imageUpload",onBlur:j,preProcessing:C,shape:N="circle",validation:g},V)=>{const P=d.useRef(null),J=ce({forwardedRef:V,innerRef:P}),[L,W]=d.useState(void 0),[G,T]=d.useState(w?"resolved":"idle"),[ae,O]=d.useState(i),Me=()=>P!=null&&P.current?P.current.click():void 0,le=d.useMemo(()=>L&&G!=="rejected"?(T("resolved"),L.imageSrc):w&&G==="resolved"?(T("resolved"),w):null,[L,w,G]),Y=d.useMemo(()=>{const H=()=>{l&&l(w),W(void 0),T("idle")};switch(G){case"pending":return n.jsx(S,{className:"animate-spin",children:n.jsx(Vt,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return n.jsxs(n.Fragment,{children:[n.jsx("img",{alt:`${L==null?void 0:L.id} preview`,className:f(["object-fit w-full h-full",N==="circle"?"rounded-full":"rounded-0.5",N!=="unset"||!v?"aspect-square":"",N==="unset"&&v?"aspect-video":"",N==="unset"&&!v?"!aspect-auto":""]),onLoad:()=>L!=null&&L.imageSrc?URL.revokeObjectURL(L.imageSrc):void 0,src:le||void 0,width:x}),a?null:n.jsx(pe,{"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:H,children:n.jsx(hn,{})})]});default:return n.jsx(S,{className:"gray-10 dark:gray-30",children:n.jsx(Cn,{"data-testid":"placeholder image",size:"32"})})}},[a,l,s,v,L==null?void 0:L.id,L==null?void 0:L.imageSrc,w,G,x,le,N]),Le=({file:H,imageUrl:Q})=>new Promise((ee,te)=>{var wr;const A=new Image,ge=(wr=g==null?void 0:g.imageRatio)==null?void 0:wr.split("/");A.onload=async()=>{if(g)if(g!=null&&g.maxByteSize&&H.size>g.maxByteSize){W(void 0),T("rejected");const Za=c(H.name,Math.round(g.maxByteSize/1e3));return O(Za),te(!1)}else{if(g!=null&&g.minWidth&&A.width<(g==null?void 0:g.minWidth)||g!=null&&g.minHeight&&A.height<(g==null?void 0:g.minHeight))return W(void 0),T("rejected"),O(p(H.name)),te(!1);if(g!=null&&g.maxHeight&&A.height>(g==null?void 0:g.maxHeight)||g!=null&&g.maxWidth&&A.width>(g==null?void 0:g.maxWidth))return W(void 0),T("rejected"),O(u(H.name)),te(!1);if(g!=null&&g.imageRatio&&(ge==null?void 0:ge.length)===2&&parseInt(ge[0])/parseInt(ge[1])!==A.width/A.height)return W(void 0),T("rejected"),O(h(H.name)),te(!1)}return x=A.width,typeof y=="function"&&(console.log("Callback"),await y(H,A)),O(""),ee(!0)},A.src=Q}),R=async H=>{try{const{files:Q}=H.target;if(Q){const ee=Q[0],te=URL.createObjectURL(ee);let A=!0;T("pending"),C&&await C(ee),A=await Le({file:ee,imageUrl:te}),A&&(W({file:ee,id:ee.name,imageSrc:te}),T("resolved"))}}catch(Q){if(Q instanceof Error)throw Q}},se=f([N==="circle"&&!v?"rounded-full aspect-square":""]),B=f([N==="square"&&!v?"aspect-square rounded-1":""]),$a=f([N==="unset"&&!v?"rounded-1":"",N==="unset"&&G!=="idle"&&!v?"aspect-auto":"",N==="unset"&&G!=="resolved"&&!v?"aspect-square":""]),Va=f([v?"rounded-1 aspect-video":""]);return n.jsxs(S,{className:f([o]),children:[n.jsxs(S,{className:f(["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",,ae?"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:[n.jsx(z,{className:"pbe-1.5 text-text-muted-light dark:text-text-muted-dark",children:n.jsx("label",{htmlFor:E,children:M})}),n.jsxs(S,{className:"flex relative flex-wrap justify-center md:justify-start",children:[n.jsx(S,{className:f(["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":"",G!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",se,B,$a,Va]),children:Y}),n.jsx(pe,{className:f(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",v?"!mbs-2":""]),disabled:a,onClick:Me,size:"sm",variant:"stroked",children:G==="resolved"?t:r}),n.jsx("input",{accept:e.toString(),className:"hidden",disabled:a,id:E,name:E,onBlur:j,onChange:R,ref:J,title:"",type:"file",value:""})]})]}),ae?n.jsx(z,{className:"dark:!text-alert-dark !text-alert-light text-13",children:ae}):null,b?n.jsx(z,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:b}):null]})},Zt=d.forwardRef(jn);Zt.displayName="ImageUpload";const _t=({className:e,children:t,component:r="a",icon:o,iconPosition:a,variant:l="primary",size:s="md",...i},c)=>{const u=Ge(o!==void 0?a:void 0),p=({children:h})=>d.createElement(r,{...i,className:f([De,fe[l],u[s],"no-underline cursor-pointer",e]),ref:c},h);return n.jsxs(p,{children:[a==="start"&&o!==void 0?d.createElement(o,{className:"mie-0.5 flex-shrink-0",size:ue[s]}):null,d.createElement("span",{className:"truncate"},t),a==="end"&&o!==void 0?d.createElement(o,{className:"mis-0.5 flex-shrink-0",size:ue[s]}):null]})},Ut=d.forwardRef(_t);Ut.displayName="LinkButton";function An({children:e,className:t,position:r}){let o="";return r&&(r==="start"?o="order-first":o="order-last"),n.jsx("div",{className:f("flex gap-1",o,t),children:e})}function Fn({children:e,className:t}){return n.jsx("div",{className:f("flex-grow",t),children:e})}const Gn=({children:e,className:t,endText:r,endTextProps:o,size:a="sm",subHeadline:l,subHeadlineProps:s})=>n.jsxs("div",{className:f(["flex items-center justify-between break-words",t]),children:[n.jsxs("div",{className:"flex flex-col",children:[n.jsx(z,{size:a,variant:"label",children:e}),l?n.jsx(z,{...s,children:l}):null]}),r?n.jsx(z,{...o,children:r}):null]});function Dn({"aria-label":e="Loading…",duration:t=.9,iconSize:r="40px",className:o,color:a="text-gray-15",height:l="h-full",width:s="w-full",iconProps:i={}}){return n.jsx(S,{"aria-label":e,className:f(["items-center flex justify-center",a,l,s,o]),children:n.jsx(Vt,{...i,dur:`${t}s`,height:r,width:r})})}const Wn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.293a1 1 0 0 1 0 1.414l-4.94 4.94a.5.5 0 0 0 0 .707l4.94 4.939a1 1 0 0 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 5.293a1 1 0 0 1 0 1.414l-4.94 4.94a.5.5 0 0 0 0 .707l4.94 4.939a1 1 0 0 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"})]}),qt=d.forwardRef(Wn),On=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.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"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.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"})]}),Kt=d.forwardRef(On),Hn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.707 5.293a1 1 0 0 1 0 1.414l-5.116 5.116a.25.25 0 0 0 0 .354l5.116 5.116a1 1 0 1 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"})]}),Xt=d.forwardRef(Hn),$n=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.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"})]}),Jt=d.forwardRef($n),Vn=({page:e,pages:t,maxPages:r=5})=>{const o=(r-1)/2,a=Math.floor(o),l=Math.ceil(o),s=Math.min(r,t.length);let i=e-a;return e-a<=1?i=1:e+l>=t.length&&(i=Math.max(1,t.length-r+1)),Array.from(Array(s).keys()).map(u=>u+i).map(u=>t[u-1])},Zn=({pages:e,currentPage:t,onClick:r,component:o="button",pageLabel:a=u=>`Go to page ${u}`,nextLabel:l="Go to next page",previousLabel:s="Go to previous page",firstLabel:i="Go to first page",lastLabel:c="Go to last page"})=>{const u="w-4 h-4 mli-0.5 flex justify-center items-center rounded-full cursor-pointer leading-snug",p=f(u,"bg-transparent hover:bg-gray-35 hover:dark:bg-white text-muted-light","dark:text-text-muted-dark hover:!text-canvas-light hover:dark:text-gray-50","border border-transparent focus:border-info focus:dark:border-info","hover:border-transparent hover:dark:border-transparent"),h=p,y=f(u,"bg-yv-red !text-white dark:!text-white"),v=d.useMemo(()=>Vn({page:e.findIndex(b=>b===t)+1,pages:e}),[e,t]);return n.jsxs(S,{className:"h-4 flex items-center justify-center",children:[t!==e[0]?n.jsxs(n.Fragment,{children:[n.jsxs(S,{"aria-label":i,className:f(h,"hidden md:flex mli-0"),component:o,onClick:()=>r(e[0]),children:[n.jsx(qt,{className:"rtl:hidden",size:"16"}),n.jsx(Kt,{className:"ltr:hidden",size:"16"})]}),n.jsxs(S,{"aria-label":s,className:f(h,"mli-0"),component:o,onClick:()=>r(e[e.findIndex(b=>b===t)-1]),children:[n.jsx(Xt,{className:"rtl:hidden",size:"16"}),n.jsx(Jt,{className:"ltr:hidden",size:"16"})]})]}):null,v.map(b=>n.jsx(S,{"aria-label":a(e.findIndex(x=>x===b)+1),className:f(b===t?y:p,"hidden md:flex"),component:o,onClick:()=>r(b),children:n.jsx(z,{className:f(b===t?y:"text-inherit hover:text-inherit","hidden md:flex"),size:"sm",variant:"fieldLabel",children:e.findIndex(x=>x===b)+1})},b)),n.jsx(z,{className:"text-text-muted-light dark:text-text-muted-dark flex items-center md:hidden",size:"sm",variant:"paragraph",children:`${e.indexOf(t)+1} of ${e.length}`}),t!==e[e.length-1]?n.jsxs(n.Fragment,{children:[n.jsxs(S,{"aria-label":l,className:f(p,h,"mli-0"),component:o,onClick:()=>r(e[e.findIndex(b=>b===t)+1]),children:[n.jsx(Jt,{className:"rtl:hidden",size:"16"}),n.jsx(Xt,{className:"ltr:hidden",size:"16"})]}),n.jsxs(S,{"aria-label":c,className:f(p,h,"hidden md:flex mli-0"),component:o,onClick:()=>r(e[e.length-1]),children:[n.jsx(Kt,{className:"rtl:hidden",size:"16"}),n.jsx(qt,{className:"ltr:hidden",size:"16"})]})]}):null]})},_n=({children:e,className:t,...r})=>n.jsx("div",{className:f(["relative",t]),...r,children:e}),Un=typeof window<"u"?d.useLayoutEffect:()=>{};let be=new Map,Yt=new Set;function Rt(){if(typeof window>"u")return;let e=r=>{let o=be.get(r.target);o||(o=new Set,be.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{let o=be.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),be.delete(r.target)),be.size===0)){for(let a of Yt)a();Yt.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Rt():document.addEventListener("DOMContentLoaded",Rt));function qn(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 Kn(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 Xn(){return Kn(/^Mac/i)}function Jn(){return qn(/Android/i)}function Yn(e){return e.mozInputSource===0&&e.isTrusted?!0:Jn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Rn=d.createContext(null);Rn.displayName="PressResponderContext";class Qn{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 ea(e){let t=d.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Un(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,a=l=>{var s,i;t.current.isFocused=!1,o.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new Qn("blur",l))),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 ta=new Set,Qt=!1,X=!1,He=!1;function $e(e,t){for(let r of ta)r(e,t)}function ra(e){return!(e.metaKey||!Xn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function er(e){X=!0,ra(e)&&$e("keyboard",e)}function ne(e){(e.type==="mousedown"||e.type==="pointerdown")&&(X=!0,$e("pointer",e))}function oa(e){Yn(e)&&(X=!0)}function na(e){e.target===window||e.target===document||(!X&&!He&&$e("virtual",e),X=!1,He=!1)}function aa(){X=!1,He=!0}function tr(){if(typeof window>"u"||Qt)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){X=!0,e.apply(this,arguments)},document.addEventListener("keydown",er,!0),document.addEventListener("keyup",er,!0),document.addEventListener("click",oa,!0),window.addEventListener("focus",na,!0),window.addEventListener("blur",aa,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ne,!0),document.addEventListener("pointermove",ne,!0),document.addEventListener("pointerup",ne,!0)):(document.addEventListener("mousedown",ne,!0),document.addEventListener("mousemove",ne,!0),document.addEventListener("mouseup",ne,!0)),Qt=!0}typeof document<"u"&&(document.readyState!=="loading"?tr():document.addEventListener("DOMContentLoaded",tr));function la(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:a}=e,l=d.useRef({isFocusWithin:!1}),s=d.useCallback(u=>{l.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(l.current.isFocusWithin=!1,r&&r(u),a&&a(!1))},[r,a,l]),i=ea(s),c=d.useCallback(u=>{!l.current.isFocusWithin&&document.activeElement===u.target&&(o&&o(u),a&&a(!0),l.current.isFocusWithin=!0,i(u))},[o,a,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function sa(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:a}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:a}).current;s.onInteractOutside=r,s.onInteractOutsideStart=a,d.useEffect(()=>{if(o)return;let i=c=>{Ie(c,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(c),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let c=u=>{s.isPointerDown&&s.onInteractOutside&&Ie(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",c,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",c,!0)}}else{let c=p=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Ie(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1},u=p=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Ie(p,t)&&s.onInteractOutside(p),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",c,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",c,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,o])}function Ie(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 ia=null;function rr(e,t){return t.some(r=>r.contains(e))}function da(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of nr.traverse(nr.getTreeNode(t)))if(rr(e,r.current))return!0;return!1}function ca(e){return da(e,ia)}class Ve{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let a=this.fastMap.get(r??null),l=new or({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),o&&(l.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 l of this.traverse())l!==r&&r.nodeToRestore&&l.nodeToRestore&&r.scopeRef.current&&rr(l.nodeToRestore,r.scopeRef.current)&&(l.nodeToRestore=r.nodeToRestore);let a=r.children;o.removeChild(r),a.size>0&&a.forEach(l=>o.addChild(l)),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 Ve;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Oe(this,"fastMap",new Map),this.root=new or({scopeRef:null}),this.fastMap.set(null,this.root)}}class or{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){Oe(this,"children",new Set),Oe(this,"contain",!1),this.scopeRef=t.scopeRef}}let nr=new Ve;const $=[];function ua(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;d.useEffect(()=>(a&&$.push(t),()=>{let b=$.indexOf(t);b>=0&&$.splice(b,1)}),[a,t]);let c=()=>{$[$.length-1]===t&&r&&r()},u=b=>{(!i||i(b.target))&&$[$.length-1]===t&&(b.stopPropagation(),b.preventDefault())},p=b=>{(!i||i(b.target))&&($[$.length-1]===t&&(b.stopPropagation(),b.preventDefault()),c())},h=b=>{b.key==="Escape"&&!s&&(b.stopPropagation(),b.preventDefault(),c())};sa({ref:t,onInteractOutside:l?p:null,onInteractOutsideStart:u});let{focusWithinProps:y}=la({isDisabled:!o,onBlurWithin:b=>{b.relatedTarget&&ca(b.relatedTarget)||(!i||i(b.relatedTarget))&&r()}}),v=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:h,...y},underlayProps:{onPointerDown:v}}}const fa=({align:e,children:t,className:r,...o})=>{const a=d.useMemo(()=>{const{horizontal:l,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},c={bottom:"",top:"bottom-full"};return`${i[l]} ${c[s]}`},[e]);return n.jsx("div",{className:f(["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})},pa=({open:e,children:t})=>n.jsx(n.Fragment,{children:e?t:null}),ba=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:o,isDismissible:a,isOpen:l,onClose:s,...i})=>{const c=d.useRef(null),{overlayProps:u}=ua({isDismissable:a,isKeyboardDismissDisabled:!a,isOpen:l,onClose:s},c);return n.jsx(pa,{open:l,children:n.jsx(We,{autoFocus:t,children:n.jsx(fa,{align:e,className:o,onClose:s,...i,children:n.jsx("div",{ref:c,...u,onClick:s,children:r})})})})},ga=({onToggle:e,children:t,className:r,disabled:o})=>{const a=i=>{i.preventDefault(),i.stopPropagation(),e()},l=d.useRef(null),s=d.cloneElement(t,{className:r,disabled:o,onClick:a,ref:l});return n.jsx(n.Fragment,{children:s})},ha=({children:e,error:t,hint:r,heading:o,headingProps:a,hintProps:l,errorProps:s,...i},c)=>n.jsxs("div",{...i,className:"flex-col rounded-0.5 w-fit",ref:c,children:[o?n.jsx(oe,{size:"md",variant:"fieldLabel",...a,children:o}):null,t?n.jsx(oe,{className:"text-alert-light dark:text-alert-dark",size:"md",variant:"caption",...s,children:t}):null,r?n.jsx(oe,{size:"md",variant:"caption",...l,children:r}):null,e]}),ar=d.forwardRef(ha);ar.displayName="Radio Set";const ma=({children:e,disabled:t,id:r,name:o,value:a,...l},s)=>n.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:[n.jsx("input",{...l,className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer inline",disabled:t,id:r,name:o,ref:s,type:"radio",value:a}),n.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:r,children:e})]}),lr=d.forwardRef(ma);lr.displayName="RadioSetItem";const va=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 19a7.5 7.5 0 1 1 5.963-2.95l3.336 3.335a1 1 0 0 1-1.414 1.414l-3.336-3.336A7.467 7.467 0 0 1 10.5 19Zm0-2.031a5.469 5.469 0 1 1 0-10.938 5.469 5.469 0 0 1 0 10.938Z",fill:"currentColor"})]}),ya=d.forwardRef(va),xa=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.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"})]}),wa=d.forwardRef(xa),ka=({className:e,disabled:t,error:r,hint:o,label:a,name:l,onChange:s,placeholder:i,value:c,dismissButtonLabel:u,...p},h)=>{const y=d.useRef(null),v=ce({forwardedRef:h,innerRef:y}),b=w=>{s&&s(w.target.value)},x=()=>{s&&s("")};return n.jsxs("div",{className:f(["flex items-start flex-col gap-0.5",e]),children:[n.jsxs("div",{className:f(["items-center self-stretch rounded-10 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,r?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),children:[n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:n.jsx(ya,{})}),n.jsx("input",{className:f(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px] pis-1 pie-1"]),disabled:t,id:l,name:l,onChange:b,placeholder:i,ref:v,type:"search",value:c,...p}),n.jsx("label",{className:"sr-only",htmlFor:l,children:a}),c?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:n.jsx(Se,{"aria-label":u,className:"p-0.25 hover:text-white bg-gray-45 dark:bg-gray-50",onClick:x,variant:"primary",children:n.jsx(wa,{})})}):null]}),r||o?n.jsxs("div",{className:"flex flex-col",children:[r?n.jsx("span",{className:"text-alert dark:text-alert-dark",children:r}):null,o?n.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},sr=d.forwardRef(ka);sr.displayName="Search";function Sa({className:e,defaultValue:t,onChange:r=()=>{},values:o,...a},l){const[s,i]=d.useState(t??0),c=s>0?s-1:0,u=p=>{i(p),r(p)};return n.jsx(S,{...a,className:`inline-flex overflow-hidden text-gray-40 dark:text-white ${e}`,ref:l,children:o.map((p,h)=>n.jsx(dr,{activeIndex:s,currentIndex:h,lastIndex:o.length-1,onSelectedValue:u,prevIndex:c,value:p}))})}const ir=d.forwardRef(Sa);ir.displayName="SegmentedControl";function dr({activeIndex:e,currentIndex:t,lastIndex:r,onSelectedValue:o,prevIndex:a,value:l}){return n.jsxs(n.Fragment,{children:[n.jsx("button",{className:f(`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
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,type:"button",children:l}),a===t||e===t||r===t?null:n.jsx("span",{className:"inline-block w-px bg-tertiary-light dark:bg-tertiary-dark"})]})}const Na=({...e})=>n.jsx("option",{...e}),cr="_select_1dwiy_1",Qa={select:cr},Ca="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",Ea="border-alert-light dark:border-alert-dark",Ia="border-tertiary-light dark:border-tertiary-dark",Ze="text-text-muted-light dark:text-text-muted-dark",ur=f(Ze,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),Ma="-translate-y-1 opacity-100",La="text-overlay-text dark:text-text-dark",Pa="!pbs-3 !pbe-1",za="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",Ta=({children:e,className:t,disabled:r=!1,error:o,hint:a,label:l,name:s,onChange:i,value:c,...u},p)=>{var j;const h=f(cr,Ca),y=d.useRef(null),v=ce({forwardedRef:p,innerRef:y}),[b,x]=d.useState(!!(c||(j=v==null?void 0:v.current)!=null&&j.value));d.useEffect(()=>{var C;x(!!((C=v==null?void 0:v.current)!=null&&C.value||c))},[c,v]);const w=d.useMemo(()=>{const C=f(h,La,l?Pa:null),N=f(h,Ze);return b?C:N},[h,b,l]),M=d.useMemo(()=>{const C=f(ur,Ma),N=f(ur);return b?C:N},[b]),E=C=>{var N;x(!!((N=v==null?void 0:v.current)!=null&&N.value||c)),i&&i(C)};return n.jsxs("div",{className:f(t),children:[n.jsxs("div",{className:"relative w-full border-none",children:[n.jsx("select",{...u,className:f([w,o?Ea:Ia]),disabled:r,id:s,name:s,onChange:E,ref:v,value:c,children:e}),n.jsx("label",{className:M,htmlFor:s,children:l}),n.jsx("div",{className:za,children:n.jsx(Ke,{size:"24"})})]}),o||a?n.jsxs("div",{className:"mbs-0.5",children:[o?n.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:o}):null,a?n.jsx("p",{className:f(Ze,"text-13 m-0"),children:a}):null]}):null]})},Ba=d.forwardRef(Ta);function ja({checked:e,disabled:t,label:r,error:o,wrapperClassName:a,containerClassName:l,circleClassName:s,hint:i,...c},u){return n.jsxs("label",{className:f("flex cursor-pointer select-none items-start flex-col",l),children:[n.jsx("span",{className:"text-13 font-medium text-gray-25",children:r}),n.jsxs(S,{className:f("relative w-8",t?"opacity-50":""),children:[n.jsx("input",{checked:e,className:"sr-only",disabled:t,ref:u,type:"checkbox",...c}),n.jsx(S,{className:f("box block h-[34px] w-full rounded-2 focus:border-0.25 focus:border-blue-30 focus:border-solid",e?"bg-blue-30":"bg-gray-15",o?"border-[1px] border-solid border-orange-30":"",a),type:"button"}),n.jsx(S,{className:f("absolute block-start-0.25 h-[30px] w-[30px] items-center justify-center rounded-full bg-white transition-all",e?"inline-start-4":"inline-start-0.25",s)})]}),n.jsxs(S,{children:[o?n.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 font-regular",children:o}):null,i?n.jsx("p",{className:"text-text-muted-light dark:text-text-muted-dark text-13 font-regular",children:i}):null]})]})}const fr=d.forwardRef(ja);fr.displayName="Switch";function Aa({active:e,children:t,component:r="a",className:o,href:a}){return n.jsx(z,{className:f("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 pr=re.forwardRef(({className:e,...t},r)=>n.jsx("div",{className:"w-full overflow-auto pbs-1 pis-1 pie-1 pbe-1.5 bg-white dark:bg-canvas-secondary-dark rounded-3 shadow-light-2 dark:shadow-dark-2",children:n.jsx("table",{className:f("w-full",e),ref:r,...t})}));pr.displayName="Table";const br=re.forwardRef(({className:e,...t},r)=>n.jsx("tbody",{className:f(e),ref:r,...t}));br.displayName="TableBody";const gr=re.forwardRef(({className:e,...t},r)=>n.jsx("td",{className:f("p-1 align-middle first:rounded-s-1 last:rounded-e-1 group-even:bg-canvas-secondary-light dark:group-even:bg-canvas-dark [&:not(:last-child)]:border-e-[0.5px] border-tertiary-light dark:border-tertiary-dark",e),ref:r,...t}));gr.displayName="TableCell";const hr=re.forwardRef(({className:e,...t},r)=>n.jsx("th",{className:f("first:rounded-ss-1.5 last:rounded-se-1.5 bg-canvas-secondary-light dark:bg-canvas-secondary-dark text-center text-13 p-0.5",e),ref:r,...t}));hr.displayName="TableHead";const mr=re.forwardRef(({className:e,...t},r)=>n.jsx("thead",{className:f(e),ref:r,...t}));mr.displayName="TableHeader";const vr=re.forwardRef(({className:e,...t},r)=>n.jsx("tr",{className:f("group",e),ref:r,...t}));vr.displayName="TableRow";const Fa={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"},Ga={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"},Da=({message:e,variant:t="default",size:r="sm",className:o})=>{const a=Fa[t],l=Ga[r];return n.jsx(S,{className:f(a,l,o),children:n.jsx(z,{children:e})})},Wa={inputIcon:"_inputIcon_1pzdd_1"},Oa=({className:e,error:t,name:r,...o},a)=>n.jsxs(n.Fragment,{children:[n.jsx("input",{className:f(["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]",Wa.inputIcon,e]),id:r,name:r,ref:a,role:"textbox",type:"time",...o}),t?n.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),yr=d.forwardRef(Oa);yr.displayName="TimePicker";const xr={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Ha=({content:e,className:t,...r})=>n.jsx("div",{className:f(xr.tooltipWrapper,t),...r,children:n.jsx("span",{className:xr.tooltipContent,children:e})});m.AutocompleteSelect=ct,m.Banner=zo,m.Box=S,m.Breadcrumb=kt,m.Breadcrumbs=Et,m.Button=pe,m.ButtonComponent=It,m.Checkbox=Mt,m.Dialog=Tt,m.Divider=nn,m.FocusTrap=We,m.Heading=oe,m.HorizontalLoader=an,m.IconButton=Se,m.IconLinkButton=Bt,m.ImageUpload=Zt,m.Input=je,m.LinkButton=Ut,m.LinkButtonComponent=_t,m.List=Ae,m.ListItem=ve,m.ListItemActions=An,m.ListItemContent=Fn,m.ListItemText=Gn,m.LoadingSpinner=Dn,m.Option=Na,m.Pagination=Zn,m.Popover=_n,m.PopoverBody=ba,m.PopoverTrigger=ga,m.RadioSet=ar,m.RadioSetItem=lr,m.Search=sr,m.SegmentedControl=ir,m.SegmentedControlItem=dr,m.Select=Ba,m.Switch=fr,m.Tab=Aa,m.Table=pr,m.TableBody=br,m.TableCell=gr,m.TableHead=hr,m.TableHeader=mr,m.TableRow=vr,m.Tag=Da,m.Text=z,m.TimePicker=yr,m.Tooltip=Ha,m.buttonSizeOptions=Vo,m.cn=f,m.defaultButtonClasses=De,m.determineSizeClasses=Ge,m.iconSizes=ue,m.useCombinedRefs=ce,m.useLockBodyScroll=dt,m.variantClasses=fe,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
@@ -33,6 +33,7 @@ export declare const variantClasses: {
33
33
  readonly '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";
34
34
  readonly secondary: "bg-gray-15 dark:bg-gray-35 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";
35
35
  readonly 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";
36
+ readonly strokedSecondary: "bg-transparent ring ring-1 ring-tertiary-light dark:ring-tertiary-dark text-text-light dark:text-text-dark hover:bg-gray-10 dark:hover:bg-gray-30 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";
36
37
  };
37
38
  export interface BaseButtonProps extends Omit<AllHTMLAttributes<HTMLButtonElement>, 'size'> {
38
39
  children: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,WAAW,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAIhG,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,oBAAoB,iBAAkB,YAAY;;;;;;CA2B9D,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX,eAAO,MAAM,oBAAoB,6JAC2H,CAAC;AAE7J,eAAO,MAAM,cAAc;;;;;;;;;;;CAqBjB,CAAC;AAEX,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACzF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,cAAc,EAAE,UAAU,GAAG,eAAe,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;CACxC;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,eAAe,oGAYvB,WAAW,OACT,aAAa,iBAAiB,CAAC,gBAwBrC,CAAC;AAEF,eAAO,MAAM,MAAM,2GAA8B,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,WAAW,EAAE,YAAY,EAAc,MAAM,OAAO,CAAC;AAIhG,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,eAAO,MAAM,oBAAoB,iBAAkB,YAAY;;;;;;CA2B9D,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX,eAAO,MAAM,oBAAoB,6JAC2H,CAAC;AAE7J,eAAO,MAAM,cAAc;;;;;;;;;;;;CAuBjB,CAAC;AAEX,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACzF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,cAAc,EAAE,UAAU,GAAG,eAAe,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,GAAG,eAAe,CAAC;CACxC;AAED,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,eAAe,oGAYvB,WAAW,OACT,aAAa,iBAAiB,CAAC,gBAwBrC,CAAC;AAEF,eAAO,MAAM,MAAM,2GAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@react-aria/overlays": "3.14.0",
25
- "@youversion/design-system-core": "0.3.0",
26
- "@youversion/design-system-icons": "0.14.0",
27
- "@youversion/design-system-tokens": "1.1.0",
25
+ "@youversion/design-system-core": "0.3.1",
26
+ "@youversion/design-system-icons": "0.14.1",
27
+ "@youversion/design-system-tokens": "1.1.1",
28
28
  "clsx": "1.2.1",
29
29
  "tailwind-merge": "1.13.2"
30
30
  },