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