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