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