toku-ui 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -172,7 +172,7 @@ To pass a single animation please supply them in simple values, e.g. animation('
172
172
  `,77:`remToPx expects a value in "rem" but you provided it in "%s".
173
173
 
174
174
  `,78:`base must be set in "px" or "%" but you set it in "%s".
175
- `};function Qu(){for(var s=arguments.length,l=new Array(s),a=0;a<s;a++)l[a]=arguments[a];var d=l[0],g=[],C;for(C=1;C<l.length;C+=1)g.push(l[C]);return g.forEach(function(w){d=d.replace(/%[a-z]/,w)}),d}var Ue=function(s){Yu(l,s);function l(a){var d;if(process.env.NODE_ENV==="production")d=s.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+a+" for more information.")||this;else{for(var g=arguments.length,C=new Array(g>1?g-1:0),w=1;w<g;w++)C[w-1]=arguments[w];d=s.call(this,Qu.apply(void 0,[Ju[a]].concat(C)))||this}return Ku(d)}return l}(Sr(Error));function Cr(s){return Math.round(s*255)}function Vu(s,l,a){return Cr(s)+","+Cr(l)+","+Cr(a)}function et(s,l,a,d){if(d===void 0&&(d=Vu),l===0)return d(a,a,a);var g=(s%360+360)%360/60,C=(1-Math.abs(2*a-1))*l,w=C*(1-Math.abs(g%2-1)),F=0,L=0,k=0;g>=0&&g<1?(F=C,L=w):g>=1&&g<2?(F=w,L=C):g>=2&&g<3?(L=C,k=w):g>=3&&g<4?(L=w,k=C):g>=4&&g<5?(F=w,k=C):g>=5&&g<6&&(F=C,k=w);var K=a-C/2,V=F+K,le=L+K,Ge=k+K;return d(V,le,Ge)}var ea={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ju(s){if(typeof s!="string")return s;var l=s.toLowerCase();return ea[l]?"#"+ea[l]:s}var el=/^#[a-fA-F0-9]{6}$/,nl=/^#[a-fA-F0-9]{8}$/,tl=/^#[a-fA-F0-9]{3}$/,rl=/^#[a-fA-F0-9]{4}$/,Ir=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,il=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,al=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ol=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Ar(s){if(typeof s!="string")throw new Ue(3);var l=ju(s);if(l.match(el))return{red:parseInt(""+l[1]+l[2],16),green:parseInt(""+l[3]+l[4],16),blue:parseInt(""+l[5]+l[6],16)};if(l.match(nl)){var a=parseFloat((parseInt(""+l[7]+l[8],16)/255).toFixed(2));return{red:parseInt(""+l[1]+l[2],16),green:parseInt(""+l[3]+l[4],16),blue:parseInt(""+l[5]+l[6],16),alpha:a}}if(l.match(tl))return{red:parseInt(""+l[1]+l[1],16),green:parseInt(""+l[2]+l[2],16),blue:parseInt(""+l[3]+l[3],16)};if(l.match(rl)){var d=parseFloat((parseInt(""+l[4]+l[4],16)/255).toFixed(2));return{red:parseInt(""+l[1]+l[1],16),green:parseInt(""+l[2]+l[2],16),blue:parseInt(""+l[3]+l[3],16),alpha:d}}var g=Ir.exec(l);if(g)return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10)};var C=il.exec(l.substring(0,50));if(C)return{red:parseInt(""+C[1],10),green:parseInt(""+C[2],10),blue:parseInt(""+C[3],10),alpha:parseFloat(""+C[4])>1?parseFloat(""+C[4])/100:parseFloat(""+C[4])};var w=al.exec(l);if(w){var F=parseInt(""+w[1],10),L=parseInt(""+w[2],10)/100,k=parseInt(""+w[3],10)/100,K="rgb("+et(F,L,k)+")",V=Ir.exec(K);if(!V)throw new Ue(4,l,K);return{red:parseInt(""+V[1],10),green:parseInt(""+V[2],10),blue:parseInt(""+V[3],10)}}var le=ol.exec(l.substring(0,50));if(le){var Ge=parseInt(""+le[1],10),fn=parseInt(""+le[2],10)/100,On=parseInt(""+le[3],10)/100,ce="rgb("+et(Ge,fn,On)+")",Ie=Ir.exec(ce);if(!Ie)throw new Ue(4,l,ce);return{red:parseInt(""+Ie[1],10),green:parseInt(""+Ie[2],10),blue:parseInt(""+Ie[3],10),alpha:parseFloat(""+le[4])>1?parseFloat(""+le[4])/100:parseFloat(""+le[4])}}throw new Ue(5)}function ul(s){var l=s.red/255,a=s.green/255,d=s.blue/255,g=Math.max(l,a,d),C=Math.min(l,a,d),w=(g+C)/2;if(g===C)return s.alpha!==void 0?{hue:0,saturation:0,lightness:w,alpha:s.alpha}:{hue:0,saturation:0,lightness:w};var F,L=g-C,k=w>.5?L/(2-g-C):L/(g+C);switch(g){case l:F=(a-d)/L+(a<d?6:0);break;case a:F=(d-l)/L+2;break;default:F=(l-a)/L+4;break}return F*=60,s.alpha!==void 0?{hue:F,saturation:k,lightness:w,alpha:s.alpha}:{hue:F,saturation:k,lightness:w}}function na(s){return ul(Ar(s))}var ll=function(l){return l.length===7&&l[1]===l[2]&&l[3]===l[4]&&l[5]===l[6]?"#"+l[1]+l[3]+l[5]:l},Tr=ll;function xn(s){var l=s.toString(16);return l.length===1?"0"+l:l}function Rr(s){return xn(Math.round(s*255))}function sl(s,l,a){return Tr("#"+Rr(s)+Rr(l)+Rr(a))}function At(s,l,a){return et(s,l,a,sl)}function fl(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return At(s,l,a);if(typeof s=="object"&&l===void 0&&a===void 0)return At(s.hue,s.saturation,s.lightness);throw new Ue(1)}function cl(s,l,a,d){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof d=="number")return d>=1?At(s,l,a):"rgba("+et(s,l,a)+","+d+")";if(typeof s=="object"&&l===void 0&&a===void 0&&d===void 0)return s.alpha>=1?At(s.hue,s.saturation,s.lightness):"rgba("+et(s.hue,s.saturation,s.lightness)+","+s.alpha+")";throw new Ue(2)}function $r(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return Tr("#"+xn(s)+xn(l)+xn(a));if(typeof s=="object"&&l===void 0&&a===void 0)return Tr("#"+xn(s.red)+xn(s.green)+xn(s.blue));throw new Ue(6)}function hl(s,l,a,d){if(typeof s=="string"&&typeof l=="number"){var g=Ar(s);return"rgba("+g.red+","+g.green+","+g.blue+","+l+")"}else{if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof d=="number")return d>=1?$r(s,l,a):"rgba("+s+","+l+","+a+","+d+")";if(typeof s=="object"&&l===void 0&&a===void 0&&d===void 0)return s.alpha>=1?$r(s.red,s.green,s.blue):"rgba("+s.red+","+s.green+","+s.blue+","+s.alpha+")"}throw new Ue(7)}var pl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},dl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&typeof l.alpha=="number"},gl=function(l){return typeof l.hue=="number"&&typeof l.saturation=="number"&&typeof l.lightness=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},ml=function(l){return typeof l.hue=="number"&&typeof l.saturation=="number"&&typeof l.lightness=="number"&&typeof l.alpha=="number"};function ta(s){if(typeof s!="object")throw new Ue(8);if(dl(s))return hl(s);if(pl(s))return $r(s);if(ml(s))return cl(s);if(gl(s))return fl(s);throw new Ue(8)}function ra(s,l,a){return function(){var g=a.concat(Array.prototype.slice.call(arguments));return g.length>=l?s.apply(this,g):ra(s,l,g)}}function ia(s){return ra(s,s.length,[])}function aa(s,l,a){return Math.max(s,Math.min(l,a))}function vl(s,l){if(l==="transparent")return l;var a=na(l);return ta(Ct({},a,{lightness:aa(0,1,a.lightness-parseFloat(s))}))}var _l=ia(vl),bl=_l;function Tt(s){if(s==="transparent")return 0;var l=Ar(s),a=Object.keys(l).map(function(w){var F=l[w]/255;return F<=.03928?F/12.92:Math.pow((F+.055)/1.055,2.4)}),d=a[0],g=a[1],C=a[2];return parseFloat((.2126*d+.7152*g+.0722*C).toFixed(3))}function yl(s,l){if(l==="transparent")return l;var a=na(l);return ta(Ct({},a,{lightness:aa(0,1,a.lightness+parseFloat(s))}))}var xl=ia(yl),wl=xl;const Fr=(s,l)=>bl(Tt(sn.colors.primary.main)-Tt(sn.colors.primary[l]),s),Ne=(s,l)=>wl(Tt(sn.colors.primary[l])-Tt(sn.colors.primary.main),s),Sl=s=>{var d,g;const l=ie.merge(sn,s),a=(g=(d=s.colors)==null?void 0:d.primary)==null?void 0:g.main;return a&&(l.colors.primary.ultraDark=Fr(a,"ultraDark"),l.colors.primary.dark=a,l.colors.primary.toku=Ne(a,"toku"),l.colors.primary.light1=Ne(a,"light1"),l.colors.primary.light2=Ne(a,"light2"),l.colors.primary.light3=Ne(a,"light3"),l.colors.primary.light4=Ne(a,"light4"),l.colors.primary.light5=Ne(a,"light5")),l},Er=Symbol("theme"),ae=()=>{const s=x.inject(Er,void 0);return x.computed(()=>(s==null?void 0:s.value)??sn)},Cl=s=>ie.camelCase(s),Il=s=>{const l=ae(),a=x.computed(()=>Cl(s.value)),d=x.computed(()=>a.value==="primary"?l.value.colors.primary.ultraDark:Fr(l.value.colors[a.value],"ultraDark")),g=x.computed(()=>a.value==="primary"?l.value.colors.primary.main:l.value.colors[a.value]),C=x.computed(()=>a.value==="primary"?l.value.colors.primary.light1:Ne(l.value.colors[a.value],"light1")),w=x.computed(()=>a.value==="primary"?l.value.colors.primary.light2:Ne(l.value.colors[a.value],"light2")),F=x.computed(()=>a.value==="primary"?l.value.colors.primary.light3:Ne(l.value.colors[a.value],"light3"));return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box"},cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"0.625rem",fontWeight:l.value.typography.fontWeight.semibold,"&--primary":{borderRadius:"0.5rem",backgroundColor:g.value,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${g.value}`,color:"#FFFFFF","&:hover:not(&:disabled)":{backgroundColor:d.value},"&:focus":{border:`1px solid ${C.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${l.value.colors.gray.light2}`,backgroundColor:l.value.colors.gray.light2,color:l.value.colors.gray.medium2}},"&--secondary":{borderRadius:"0.5rem",backgroundColor:"#FFFFFF",border:`1px solid ${g.value}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:g.value,"&:hover:not(&:disabled)":{backgroundColor:F.value},"&:focus":{border:`1px solid ${C.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${l.value.colors.gray.light2}`,backgroundColor:l.value.colors.gray.light2,color:l.value.colors.gray.medium2}},"&--tertiary":{background:"none",border:"none",margin:0,padding:0,color:g.value,"&:hover:not(&:disabled)":{color:w.value},"&:focus":{color:C.value},"&:disabled":{cursor:"not-allowed",color:l.value.colors.gray.medium1}},"&--large":{height:"3rem",padding:"0.5rem 1rem",lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{height:"2.5rem",padding:"0.5rem 1rem",lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{height:"2rem",padding:"0.5rem 0.75rem",lineHeight:"1.25rem",fontSize:"0.875rem"},"&--full-width":{width:"100%"},"&--loading, &--loading:disabled, &--loading:hover:not(&:disabled), &--loading:focus":{color:"transparent",position:"relative"},"&__spinner":{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},"&--primary &__spinner, &--loading:disabled &__spinner":{color:"#fff"},"&--tertiary:disabled &__spinner":{color:l.value.colors.gray.medium1},"&--secondary &__spinner, &--tertiary &__spinner":{color:g.value}}))},Al={variant:"primary",size:"medium",type:"button",color:"primary"},Tl=x.defineComponent({name:"TButton",props:{variant:String,size:String,disabled:Boolean,leftIcon:String,rightIcon:String,type:String,fullWidth:Boolean,loading:Boolean,color:String},emits:["click"],setup(s,{attrs:l,slots:a,emit:d}){const g=x.computed(()=>ie.merge({},Al,s,l)),C=x.computed(()=>g.value.color),w=Il(C),F=ae(),L=x.computed(()=>[w.value,`${w.value}--${g.value.variant}`,`${w.value}--${g.value.size}`,{[`${w.value}--full-width`]:g.value.fullWidth,[`${w.value}--loading`]:g.value.loading}]),k=()=>{g.value.loading||d("click")};return()=>{var K;return x.h("button",Vn([{class:L.value,attrs:{type:g.value.type,disabled:g.value.disabled},on:{click:k}},l]),[g.value.leftIcon&&x.h(He.Icon,{attrs:{icon:`${F.value.iconSet}:${g.value.leftIcon}`}}),(K=a.default)==null?void 0:K.call(a),g.value.rightIcon&&x.h(He.Icon,{attrs:{icon:`${F.value.iconSet}:${g.value.rightIcon}`}}),g.value.loading&&x.h(He.Icon,{class:`${w.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}})])}}}),Rl=x.defineComponent({name:"TThemeProvider",props:{theme:{type:Object,default:()=>{}}},setup(s,{slots:l}){const a=x.computed(()=>ie.merge(sn,s.theme));return x.provide(Er,a),()=>{var d;return(d=l.default)==null?void 0:d.call(l)}}}),$l=()=>{const s=ae();return x.computed(()=>Le.css({margin:0,padding:0,boxSizing:"border-box",color:s.value.typography.color,fontFamily:s.value.typography.fontFamily,"&--h1":{fontSize:"3.25rem",linehHeight:"3.75rem"},"&--h2":{fontSize:"3rem",lineHeight:"3.5rem"},"&--h3":{fontSize:"2.5rem",lineHeight:"3rem"},"&--h4":{fontSize:"2rem",lineHeight:"2.5rem"},"&--s1":{fontSize:"1.75rem",lineHeight:"2.25rem"},"&--s2":{fontSize:"1.5rem",lineHeight:"2rem"},"&--s3":{fontSize:"1.125rem",lineHeight:"1.625rem"},"&--s4":{fontSize:"1rem",lineHeight:"1.5rem"},"&--b0":{fontSize:"1.25rem",lineHeight:"1.625rem"},"&--b1":{fontSize:"1.125rem",lineHeight:"1.5rem"},"&--b2":{fontSize:"1rem",lineHeight:"1.375rem"},"&--b3":{fontSize:"0.875rem",lineHeight:"1.25rem"},"&--b4":{fontSize:"0.75rem",lineHeight:"1.125rem"},"&--b5":{fontSize:"0.625rem",lineHeight:"1rem"},"&--b6":{fontSize:"0.5rem",lineHeight:"1.875rem"},"&--bold":{fontWeight:s.value.typography.fontWeight.bold},"&--semibold":{fontWeight:s.value.typography.fontWeight.semibold},"&--medium":{fontWeight:s.value.typography.fontWeight.medium},"&--regular":{fontWeight:s.value.typography.fontWeight.regular},"&--normal":{fontStyle:"normal"},"&--italic":{fontStyle:"italic"}}))},Fl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",s1:"h5",s2:"h5",s3:"h6",s4:"h6",b0:"p",b1:"p",b2:"p",b3:"p",b4:"p",b5:"p",b6:"p"},El={fontStyle:"normal",fontWeight:"regular",variant:"b0"},Ol=x.defineComponent({name:"TTypography",props:{fontStyle:String,fontWeight:String,variant:String},setup(s,{attrs:l,slots:a}){const d=x.computed(()=>ie.merge({},El,s,l)),g=$l(),C=x.computed(()=>[g.value,`${g.value}--${d.value.variant}`,`${g.value}--${d.value.fontWeight}`,`${g.value}--${d.value.fontStyle}`]),w=x.computed(()=>Fl[d.value.variant]);return()=>x.h(w.value,{class:C.value},a.default?a.default():null)}}),Pl=()=>{const s=ae();return x.computed(()=>Le.css({margin:0,padding:0,width:"3.5rem",height:"3.5rem",boxSizing:"border-box",background:"transparent",borderRadius:"50%",border:`0.5rem solid ${s.value.colors.background}`,borderBottomColor:s.value.colors.primary.main,animation:"rotate 0.75s linear infinite",[`@media (min-width: ${s.value.breakpoints.desktop}px)`]:{width:"4.5rem",height:"4.5rem"},"@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}))},Ll=x.defineComponent({name:"TSpinner",setup(){const s=Pl();return()=>x.h("div",{class:s.value})}}),Wl=()=>{const s=ae(),l=x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box"},display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer","&--primary":{borderRadius:"0.5rem",backgroundColor:s.value.colors.primary.main,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${s.value.colors.primary.main}`,color:"#FFFFFF","&:hover:not(&:disabled)":{backgroundColor:s.value.colors.primary.ultraDark},"&:focus":{border:`1px solid ${s.value.colors.primary.light1}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${s.value.colors.gray.light2}`,backgroundColor:s.value.colors.gray.light2,color:s.value.colors.gray.medium2}},"&--secondary":{borderRadius:"0.5rem",backgroundColor:"#FFFFFF",border:`1px solid ${s.value.colors.primary.main}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:s.value.colors.primary.main,"&:hover:not(&:disabled)":{backgroundColor:s.value.colors.primary.light3},"&:focus":{border:`1px solid ${s.value.colors.primary.light1}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${s.value.colors.gray.light2}`,backgroundColor:s.value.colors.gray.light2,color:s.value.colors.gray.medium2}},"&--tertiary":{background:"none",border:"none",margin:0,padding:0,color:s.value.colors.primary.main,"&:hover:not(&:disabled)":{color:s.value.colors.primary.light2},"&:focus":{color:s.value.colors.primary.light1},"&:disabled":{cursor:"not-allowed",color:s.value.colors.gray.medium1}},"&--large":{height:"3rem",width:"3rem",lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{height:"2.5rem",width:"2.5rem",lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{height:"2rem",width:"2rem",lineHeight:"1.25rem",fontSize:"0.875rem"},"&--rounded":{borderRadius:"50%"}})),a=x.computed(()=>Le.css({margin:0,padding:0,"&--large":{height:"1.25rem"},"&--medium":{height:"1.25rem"},"&--small":{height:"1rem"}}));return{baseClass:l,iconClass:a}},Bl={variant:"primary",size:"medium",icon:"academic-cap",type:"button"},zl=x.defineComponent({name:"TIconButton",props:{variant:String,size:String,disabled:Boolean,icon:String,type:String,rounded:Boolean},emits:["click"],setup(s,{attrs:l,emit:a}){const d=x.computed(()=>ie.merge({},Bl,s,l)),{baseClass:g,iconClass:C}=Wl(),w=ae(),F=x.computed(()=>[g.value,`${g.value}--${d.value.variant}`,`${g.value}--${d.value.size}`,{[`${g.value}--rounded`]:d.value.rounded}]),L=x.computed(()=>[C.value,`${C.value}--${d.value.variant}`,`${C.value}--${d.value.size}`]);return()=>x.h("button",Vn([{class:F.value,attrs:{type:d.value.type,disabled:d.value.disabled},on:{click:()=>a("click")}},l]),[x.h(He.Icon,{attrs:{icon:`${w.value.iconSet}:${d.value.icon}`},class:L.value})])}}),Dl=()=>{const s=ae();return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:s.value.typography.color,fontFamily:s.value.typography.fontFamily},"&__container":{gap:s.value.spacing,display:"flex",flexDirection:"column",width:"358px"},"&__label":{display:"block",fontSize:"14px",fontStyle:"normal",fontWeight:600,lineHeight:"20px"},"&__input-wrapper":{position:"relative"},"&__input":{display:"flex",width:"100%",background:"#FFF",border:`1px solid ${s.value.colors.gray.light2}`,borderRadius:"4px",padding:"4px 8px",gap:"8px",height:"40px",fontSize:"16px",fontStyle:"normal",fontWeight:400,lineHeight:"22px","&::placeholder":{color:s.value.colors.gray.medium2},"&:hover":{borderColor:s.value.colors.gray.medium2},"&:focus":{borderColor:s.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{background:s.value.colors.gray.light3,borderColor:s.value.colors.gray.light3},"&--left-icon":{paddingLeft:"32px"},"&--right-icon":{paddingRight:"32px"}},"&__icon":{position:"absolute",top:"50%",transform:"translateY(-50%)",fontSize:"16px","&--left":{left:"8px"},"&--right":{right:"8px"}},"&__helper-text":{fontSize:"12px",fontStyle:"normal",fontWeight:400,lineHeight:"18px",color:s.value.colors.gray.medium1},"&--error &__input, &error &__input:focus":{borderColor:s.value.colors.error},"&--error &__helper-text":{color:s.value.colors.error},"&--full-width":{width:"100%"}}))},Ml=x.defineComponent({name:"TTextInput",emits:["input","change"],props:{error:Boolean,disabled:Boolean,leftIcon:String,rightIcon:String,label:String,placeholder:String,helperText:String,value:String,fullWidth:Boolean,id:String},setup(s,{attrs:l,emit:a}){const d=x.computed(()=>ie.merge({},s,l)),g=Dl(),C=ae(),w=F=>{a("input",F.target.value),a("change",F.target.value)};return()=>x.h("div",{class:[g.value,`${g.value}__container`,{[`${g.value}--error`]:d.value.error,[`${g.value}--full-width`]:d.value.fullWidth}]},[x.h("label",{class:[`${g.value}__label`],attrs:{for:d.value.id}},[d.value.label]),x.h("div",{class:`${g.value}__input-wrapper`},[d.value.leftIcon&&x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.leftIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--left`]}),x.h("input",{attrs:{id:d.value.id,type:"text",placeholder:d.value.placeholder,disabled:d.value.disabled},class:[`${g.value}__input`,{[`${g.value}__input--left-icon`]:d.value.leftIcon,[`${g.value}__input--right-icon`]:d.value.rightIcon}],domProps:{value:d.value.value},on:{input:w}}),d.value.rightIcon&&x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.rightIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--right`]})]),x.h("p",{class:`${g.value}__helper-text`},[d.value.helperText])])}}),kl=()=>{const s=ae();return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box",cursor:"pointer"},display:"flex",alignItems:"center",gap:s.value.spacing,padding:"2px","&__switch":{height:"1.25rem",width:"2.5rem",background:s.value.colors.gray.light2,borderRadius:"10px",position:"relative",transition:"background 0.2s ease","&::after":{position:"absolute",content:'""',top:"2px",left:"2px",width:"1rem",height:"1rem",background:"#fff",borderRadius:"50%",transition:"left 0.2s ease"}},"&__label":{fontSize:"1rem",lineHeight:"1.375",fontWeight:s.value.typography.fontWeight.regular},"&:hover &__switch, &:focus &__switch":{background:s.value.colors.primary.light3},"&--checked &__switch, &--checked:focus &__switch":{background:s.value.colors.primary.main,"&::after":{left:"calc(1.5rem - 2px)"}},"&--disabled, &--disabled *":{cursor:"not-allowed"},"&--disabled &__switch, &--disabled:hover &__switch, &--disabled:focus &__switch":{background:s.value.colors.gray.light3},"&--label-left &__switch":{order:1}}))},Hl={labelPosition:"right"},Ul=x.defineComponent({name:"TSwitch",props:{label:String,disabled:Boolean,value:Boolean,labelPosition:String,id:String},emits:["change","input"],setup(s,{attrs:l,emit:a}){const d=x.computed(()=>ie.merge({},Hl,s,l)),g=x.ref(d.value.value),C=()=>{a("change",!g.value),a("input",!g.value),g.value=!g.value},w=K=>{d.value.disabled?K==null||K.preventDefault():C()},F=K=>{const{key:V}=K;d.value.disabled||V!=="Enter"&&V!==" "?K.preventDefault():C()},L=kl(),k=x.computed(()=>[L.value,`${L.value}--label-${d.value.labelPosition}`,{[`${L.value}--checked`]:g.value,[`${L.value}--disabled`]:d.value.disabled}]);return()=>x.h("div",{class:k.value,attrs:{role:"switch","aria-checked":g.value,"aria-disabled":d.value.disabled,"aria-labelledby":d.value.id,tabindex:0},on:{click:w,keydown:F}},[x.h("div",{class:`${L.value}__switch`}),d.value.label&&x.h("label",{class:`${L.value}__label`,attrs:{id:d.value.id}},[d.value.label])])}}),Nl=()=>{const s=ae();return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:s.value.typography.color,fontFamily:s.value.typography.fontFamily},"&__container":{gap:s.value.spacing,display:"flex",flexDirection:"column",width:"358px"},"&__label":{display:"block",fontSize:"0.875rem",fontStyle:"normal",fontWeight:s.value.typography.fontWeight.semibold,lineHeight:"1.25rem"},"&__wrapper":{position:"relative"},"&__select":{display:"flex",width:"100%",background:"#fff",border:`1px solid ${s.value.colors.gray.light2}`,borderRadius:"4px",padding:"0.25rem 0.5rem",gap:"0.5rem",height:"40px",fontSize:"1rem",fontStyle:"normal",fontWeight:s.value.typography.fontWeight.regular,lineHeight:"22px",MozAppearance:"none",WebkitAppearance:"none",appearance:"none",backgroundImage:`url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path fill-rule='evenodd' d='M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z' clip-rule='evenodd' stroke='black' stroke-width='1'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 0.7rem top 50%",backgroundSize:"0.65rem auto","&:hover":{borderColor:s.value.colors.gray.medium2},"&:focus":{borderColor:s.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{backgroundColor:s.value.colors.gray.light3,borderColor:s.value.colors.gray.light3,cursor:"not-allowed"},"&--left-icon":{paddingLeft:"2rem"}},"&__select:has(&__placeholder:checked)":{color:s.value.colors.gray.medium2},"&__placeholder":{display:"none"},"&__icon":{position:"absolute",top:"50%",transform:"translateY(-50%)",fontSize:"1rem","&--left":{left:"0.5rem"}},"&__helper-text":{fontSize:"0.75rem",fontStyle:"normal",fontWeight:s.value.typography.fontWeight.regular,lineHeight:"1.125rem",color:s.value.colors.gray.medium1},"&--error &__select, &--error &__select:focus":{borderColor:s.value.colors.error},"&--error &__helper-text":{color:s.value.colors.error},"&--full-width":{width:"100%"}}))},Gl=x.defineComponent({name:"TSelect",emits:["input","change"],props:{error:Boolean,disabled:Boolean,leftIcon:String,label:String,placeholder:String,helperText:String,value:String,fullWidth:Boolean,id:String},setup(s,{attrs:l,emit:a,slots:d}){const g=x.computed(()=>ie.merge({},s,l)),C=ae(),w=Nl(),F=x.computed(()=>[w.value,`${w.value}__container`,{[`${w.value}--error`]:g.value.error,[`${w.value}--full-width`]:g.value.fullWidth}]),L=k=>{a("input",k.target.value),a("change",k.target.value)};return()=>{var k;return x.h("div",{class:F.value},[g.value.label&&x.h("label",{class:`${w.value}__label`,attrs:{for:g.value.id}},[g.value.label]),x.h("div",{class:`${w.value}__wrapper`},[g.value.leftIcon&&x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${g.value.leftIcon}`},class:[`${w.value}__icon`,`${w.value}__icon--left`]}),x.h("select",Vn([{class:[`${w.value}__select`,{[`${w.value}__select--left-icon`]:g.value.leftIcon}],attrs:{disabled:g.value.disabled,id:g.value.id},domProps:{value:g.value.value},on:{input:L}},l]),[g.value.placeholder&&x.h("option",{attrs:{value:"",disabled:!0,selected:!0},class:`${w.value}__placeholder`},[g.value.placeholder]),(k=d.default)==null?void 0:k.call(d)])]),g.value.helperText&&x.h("p",{class:`${w.value}__helper-text`},[g.value.helperText])])}}}),ql=()=>{const s=ae();return x.computed(()=>Le.css({position:"relative",width:"fit-content","&, *":{padding:0,margin:0,boxSizing:"border-box"},"&__tooltip":{display:"none",position:"absolute",width:"fit-content",background:"#fff",boxShadow:"3px 4px 25px 0px #26323826",borderRadius:"1rem",padding:"0.75rem 1rem",whiteSpace:"nowrap",fontSize:"0.75rem",weight:s.value.typography.fontWeight.regular,lineHeight:"1.125rem","&:before":{content:'""',width:0,height:0,position:"absolute",borderStyle:"solid"}},"&:hover &__tooltip":{display:"block"},"&--top &__tooltip":{marginBottom:"1.5rem",left:"50%",bottom:"100%",transform:"translateX(-50%)",background:"#fff","&:before":{left:"50%",top:"99%",transform:"translateX(-50%)",borderWidth:"15px 7.5px 0px 7.5px",borderColor:"#fff transparent transparent transparent"}},"&--right &__tooltip":{marginLeft:"1.5rem",top:"50%",left:"100%",transform:"translateY(-50%)","&:before":{top:"50%",right:"99%",transform:"translateY(-50%)",borderWidth:"7.5px 15px 7.5px 0",borderColor:"transparent #fff transparent transparent"}},"&--bottom &__tooltip":{marginTop:"1.5rem",left:"50%",top:"100%",transform:"translateX(-50%)","&:before":{left:"50%",bottom:"99%",transform:"translateX(-50%)",borderWidth:"0 7.5px 15px 7.5px",borderColor:"transparent transparent #fff transparent"}},"&--left &__tooltip":{marginRight:"1.5rem",top:"50%",right:"100%",transform:"translateY(-50%)","&:before":{top:"50%",left:"99%",transform:"translateY(-50%)",borderWidth:"7.5px 0px 7.5px 15px",borderColor:"transparent transparent transparent #fff"}},"&--multilined &__tooltip":{whiteSpace:"normal",width:"max-content"},"&--small &__tooltip":{maxWidth:"25ch"},"&--medium &__tooltip":{maxWidth:"30ch"},"&--large &__tooltip":{maxWidth:"35ch"}}))},Kl={position:"right",size:"medium"},Yl=x.defineComponent({name:"TTooltip",props:{label:String,position:String,multilined:Boolean,size:String},setup(s,{slots:l,attrs:a}){const d=x.computed(()=>ie.merge({},Kl,s,a)),g=ql(),C=x.computed(()=>[g.value,`${g.value}--${d.value.position}`,{[`${g.value}--multilined`]:d.value.multilined,[`${g.value}--${d.value.size}`]:d.value.multilined}]);return()=>{var w,F;return x.h("div",{class:C.value},[(w=l.default)==null?void 0:w.call(l),x.h("div",{attrs:{role:"tooltip"},class:`${g.value}__tooltip`},[((F=l.label)==null?void 0:F.call(l))||d.value.label])])}}}),Zl={color:"#000",size:"medium",variant:"outline"},Xl=x.defineComponent({name:"TIcon",props:{icon:{type:String,required:!0},color:String,size:String,variant:String},setup(s,{attrs:l}){const a=x.computed(()=>ie.merge({},Zl,s,l)),d=ae(),g=x.computed(()=>ie.get(d.value.colors,a.value.color)||a.value.color),C=x.computed(()=>`${d.value.iconSet}:${a.value.icon}${a.value.variant==="solid"?"-solid":""}`),w={small:"1em",medium:"1.25em",large:"1.5em"},F=x.computed(()=>w[a.value.size]);return()=>x.h(He.Icon,{attrs:{icon:C.value,color:g.value,height:F.value,width:F.value}})}}),Jl=()=>{const s=ae();return x.computed(()=>Le.css({margin:0,padding:0,width:"fit-content",cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"0.625rem",color:s.value.colors.primary.main,"&:hover:not(&:disabled)":{color:s.value.colors.primary.ultraDark},"&:focus":{color:s.value.colors.primary.light1},textDecoration:"underline",fontWeight:600,"&--large":{lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{lineHeight:"1.25rem",fontSize:"0.875rem"}}))},Ql={variant:"primary",size:"medium",disabled:!1},Vl=x.defineComponent({name:"TButton",props:{variant:String,size:String,href:String,leftIcon:String,rightIcon:String},setup(s,{attrs:l,slots:a}){const d=x.computed(()=>ie.merge({},Ql,s,l)),g=Jl(),C=ae(),w=x.computed(()=>[g.value,`${g.value}--${d.value.variant}`,`${g.value}--${d.value.size}`]);return()=>x.h("a",Vn([{class:w.value,attrs:{href:d.value.href}},l]),[d.value.leftIcon?x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.leftIcon}`}}):null,a.default?a.default():null,d.value.rightIcon?x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.rightIcon}`}}):null])}}),jl=()=>{const s=ae(),l=s.value.colors.gray.light1,a=(g,C)=>{switch(C){case"large":return encodeURIComponent(`<svg width="10" height="9.5" viewBox="0 0 10 9.5" fill="none" xmlns="http://www.w3.org/2000/svg">
175
+ `};function Qu(){for(var s=arguments.length,l=new Array(s),a=0;a<s;a++)l[a]=arguments[a];var d=l[0],g=[],C;for(C=1;C<l.length;C+=1)g.push(l[C]);return g.forEach(function(w){d=d.replace(/%[a-z]/,w)}),d}var Ue=function(s){Yu(l,s);function l(a){var d;if(process.env.NODE_ENV==="production")d=s.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+a+" for more information.")||this;else{for(var g=arguments.length,C=new Array(g>1?g-1:0),w=1;w<g;w++)C[w-1]=arguments[w];d=s.call(this,Qu.apply(void 0,[Ju[a]].concat(C)))||this}return Ku(d)}return l}(Sr(Error));function Cr(s){return Math.round(s*255)}function Vu(s,l,a){return Cr(s)+","+Cr(l)+","+Cr(a)}function et(s,l,a,d){if(d===void 0&&(d=Vu),l===0)return d(a,a,a);var g=(s%360+360)%360/60,C=(1-Math.abs(2*a-1))*l,w=C*(1-Math.abs(g%2-1)),F=0,L=0,k=0;g>=0&&g<1?(F=C,L=w):g>=1&&g<2?(F=w,L=C):g>=2&&g<3?(L=C,k=w):g>=3&&g<4?(L=w,k=C):g>=4&&g<5?(F=w,k=C):g>=5&&g<6&&(F=C,k=w);var K=a-C/2,V=F+K,le=L+K,Ge=k+K;return d(V,le,Ge)}var ea={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ju(s){if(typeof s!="string")return s;var l=s.toLowerCase();return ea[l]?"#"+ea[l]:s}var el=/^#[a-fA-F0-9]{6}$/,nl=/^#[a-fA-F0-9]{8}$/,tl=/^#[a-fA-F0-9]{3}$/,rl=/^#[a-fA-F0-9]{4}$/,Ir=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,il=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,al=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ol=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Ar(s){if(typeof s!="string")throw new Ue(3);var l=ju(s);if(l.match(el))return{red:parseInt(""+l[1]+l[2],16),green:parseInt(""+l[3]+l[4],16),blue:parseInt(""+l[5]+l[6],16)};if(l.match(nl)){var a=parseFloat((parseInt(""+l[7]+l[8],16)/255).toFixed(2));return{red:parseInt(""+l[1]+l[2],16),green:parseInt(""+l[3]+l[4],16),blue:parseInt(""+l[5]+l[6],16),alpha:a}}if(l.match(tl))return{red:parseInt(""+l[1]+l[1],16),green:parseInt(""+l[2]+l[2],16),blue:parseInt(""+l[3]+l[3],16)};if(l.match(rl)){var d=parseFloat((parseInt(""+l[4]+l[4],16)/255).toFixed(2));return{red:parseInt(""+l[1]+l[1],16),green:parseInt(""+l[2]+l[2],16),blue:parseInt(""+l[3]+l[3],16),alpha:d}}var g=Ir.exec(l);if(g)return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10)};var C=il.exec(l.substring(0,50));if(C)return{red:parseInt(""+C[1],10),green:parseInt(""+C[2],10),blue:parseInt(""+C[3],10),alpha:parseFloat(""+C[4])>1?parseFloat(""+C[4])/100:parseFloat(""+C[4])};var w=al.exec(l);if(w){var F=parseInt(""+w[1],10),L=parseInt(""+w[2],10)/100,k=parseInt(""+w[3],10)/100,K="rgb("+et(F,L,k)+")",V=Ir.exec(K);if(!V)throw new Ue(4,l,K);return{red:parseInt(""+V[1],10),green:parseInt(""+V[2],10),blue:parseInt(""+V[3],10)}}var le=ol.exec(l.substring(0,50));if(le){var Ge=parseInt(""+le[1],10),fn=parseInt(""+le[2],10)/100,On=parseInt(""+le[3],10)/100,ce="rgb("+et(Ge,fn,On)+")",Ie=Ir.exec(ce);if(!Ie)throw new Ue(4,l,ce);return{red:parseInt(""+Ie[1],10),green:parseInt(""+Ie[2],10),blue:parseInt(""+Ie[3],10),alpha:parseFloat(""+le[4])>1?parseFloat(""+le[4])/100:parseFloat(""+le[4])}}throw new Ue(5)}function ul(s){var l=s.red/255,a=s.green/255,d=s.blue/255,g=Math.max(l,a,d),C=Math.min(l,a,d),w=(g+C)/2;if(g===C)return s.alpha!==void 0?{hue:0,saturation:0,lightness:w,alpha:s.alpha}:{hue:0,saturation:0,lightness:w};var F,L=g-C,k=w>.5?L/(2-g-C):L/(g+C);switch(g){case l:F=(a-d)/L+(a<d?6:0);break;case a:F=(d-l)/L+2;break;default:F=(l-a)/L+4;break}return F*=60,s.alpha!==void 0?{hue:F,saturation:k,lightness:w,alpha:s.alpha}:{hue:F,saturation:k,lightness:w}}function na(s){return ul(Ar(s))}var ll=function(l){return l.length===7&&l[1]===l[2]&&l[3]===l[4]&&l[5]===l[6]?"#"+l[1]+l[3]+l[5]:l},Tr=ll;function xn(s){var l=s.toString(16);return l.length===1?"0"+l:l}function Rr(s){return xn(Math.round(s*255))}function sl(s,l,a){return Tr("#"+Rr(s)+Rr(l)+Rr(a))}function At(s,l,a){return et(s,l,a,sl)}function fl(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return At(s,l,a);if(typeof s=="object"&&l===void 0&&a===void 0)return At(s.hue,s.saturation,s.lightness);throw new Ue(1)}function cl(s,l,a,d){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof d=="number")return d>=1?At(s,l,a):"rgba("+et(s,l,a)+","+d+")";if(typeof s=="object"&&l===void 0&&a===void 0&&d===void 0)return s.alpha>=1?At(s.hue,s.saturation,s.lightness):"rgba("+et(s.hue,s.saturation,s.lightness)+","+s.alpha+")";throw new Ue(2)}function $r(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return Tr("#"+xn(s)+xn(l)+xn(a));if(typeof s=="object"&&l===void 0&&a===void 0)return Tr("#"+xn(s.red)+xn(s.green)+xn(s.blue));throw new Ue(6)}function hl(s,l,a,d){if(typeof s=="string"&&typeof l=="number"){var g=Ar(s);return"rgba("+g.red+","+g.green+","+g.blue+","+l+")"}else{if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof d=="number")return d>=1?$r(s,l,a):"rgba("+s+","+l+","+a+","+d+")";if(typeof s=="object"&&l===void 0&&a===void 0&&d===void 0)return s.alpha>=1?$r(s.red,s.green,s.blue):"rgba("+s.red+","+s.green+","+s.blue+","+s.alpha+")"}throw new Ue(7)}var pl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},dl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&typeof l.alpha=="number"},gl=function(l){return typeof l.hue=="number"&&typeof l.saturation=="number"&&typeof l.lightness=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},ml=function(l){return typeof l.hue=="number"&&typeof l.saturation=="number"&&typeof l.lightness=="number"&&typeof l.alpha=="number"};function ta(s){if(typeof s!="object")throw new Ue(8);if(dl(s))return hl(s);if(pl(s))return $r(s);if(ml(s))return cl(s);if(gl(s))return fl(s);throw new Ue(8)}function ra(s,l,a){return function(){var g=a.concat(Array.prototype.slice.call(arguments));return g.length>=l?s.apply(this,g):ra(s,l,g)}}function ia(s){return ra(s,s.length,[])}function aa(s,l,a){return Math.max(s,Math.min(l,a))}function vl(s,l){if(l==="transparent")return l;var a=na(l);return ta(Ct({},a,{lightness:aa(0,1,a.lightness-parseFloat(s))}))}var _l=ia(vl),bl=_l;function Tt(s){if(s==="transparent")return 0;var l=Ar(s),a=Object.keys(l).map(function(w){var F=l[w]/255;return F<=.03928?F/12.92:Math.pow((F+.055)/1.055,2.4)}),d=a[0],g=a[1],C=a[2];return parseFloat((.2126*d+.7152*g+.0722*C).toFixed(3))}function yl(s,l){if(l==="transparent")return l;var a=na(l);return ta(Ct({},a,{lightness:aa(0,1,a.lightness+parseFloat(s))}))}var xl=ia(yl),wl=xl;const Fr=(s,l)=>bl(Tt(sn.colors.primary.main)-Tt(sn.colors.primary[l]),s),Ne=(s,l)=>wl(Tt(sn.colors.primary[l])-Tt(sn.colors.primary.main),s),Sl=s=>{var d,g;const l=ie.merge(sn,s),a=(g=(d=s.colors)==null?void 0:d.primary)==null?void 0:g.main;return a&&(l.colors.primary.ultraDark=Fr(a,"ultraDark"),l.colors.primary.dark=a,l.colors.primary.toku=Ne(a,"toku"),l.colors.primary.light1=Ne(a,"light1"),l.colors.primary.light2=Ne(a,"light2"),l.colors.primary.light3=Ne(a,"light3"),l.colors.primary.light4=Ne(a,"light4"),l.colors.primary.light5=Ne(a,"light5")),l},Er=Symbol("theme"),ae=()=>{const s=x.inject(Er,void 0);return x.computed(()=>(s==null?void 0:s.value)??sn)},Cl=s=>ie.camelCase(s),Il=s=>{const l=ae(),a=x.computed(()=>Cl(s.value)),d=x.computed(()=>a.value==="primary"?l.value.colors.primary.ultraDark:Fr(l.value.colors[a.value],"ultraDark")),g=x.computed(()=>a.value==="primary"?l.value.colors.primary.main:l.value.colors[a.value]),C=x.computed(()=>a.value==="primary"?l.value.colors.primary.light1:Ne(l.value.colors[a.value],"light1")),w=x.computed(()=>a.value==="primary"?l.value.colors.primary.light2:Ne(l.value.colors[a.value],"light2")),F=x.computed(()=>a.value==="primary"?l.value.colors.primary.light3:Ne(l.value.colors[a.value],"light3"));return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box"},cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"0.625rem",fontWeight:l.value.typography.fontWeight.semibold,"&--primary":{borderRadius:"0.5rem",backgroundColor:g.value,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${g.value}`,color:"#FFFFFF","&:hover:not(&:disabled)":{backgroundColor:d.value},"&:focus":{border:`1px solid ${C.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${l.value.colors.gray.light2}`,backgroundColor:l.value.colors.gray.light2,color:l.value.colors.gray.medium2}},"&--secondary":{borderRadius:"0.5rem",backgroundColor:"#FFFFFF",border:`1px solid ${g.value}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:g.value,"&:hover:not(&:disabled)":{backgroundColor:F.value},"&:focus":{border:`1px solid ${C.value}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${l.value.colors.gray.light2}`,backgroundColor:l.value.colors.gray.light2,color:l.value.colors.gray.medium2}},"&--tertiary":{background:"none",border:"none",margin:0,padding:0,color:g.value,"&:hover:not(&:disabled)":{color:w.value},"&:focus":{color:C.value},"&:disabled":{cursor:"not-allowed",color:l.value.colors.gray.medium1}},"&--large":{height:"3rem",padding:"0.5rem 1rem",lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{height:"2.5rem",padding:"0.5rem 1rem",lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{height:"2rem",padding:"0.5rem 0.75rem",lineHeight:"1.25rem",fontSize:"0.875rem"},"&--full-width":{width:"100%"},"&--loading, &--loading:disabled, &--loading:hover:not(&:disabled), &--loading:focus":{color:"transparent",position:"relative"},"&__spinner":{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},"&--primary &__spinner, &--loading:disabled &__spinner":{color:"#fff"},"&--tertiary:disabled &__spinner":{color:l.value.colors.gray.medium1},"&--secondary &__spinner, &--tertiary &__spinner":{color:g.value}}))},Al={variant:"primary",size:"medium",type:"button",color:"primary"},Tl=x.defineComponent({name:"TButton",props:{variant:String,size:String,disabled:Boolean,leftIcon:String,rightIcon:String,type:String,fullWidth:Boolean,loading:Boolean,color:String},emits:["click"],setup(s,{attrs:l,slots:a,emit:d}){const g=x.computed(()=>ie.merge({},Al,s,l)),C=x.computed(()=>g.value.color),w=Il(C),F=ae(),L=x.computed(()=>[w.value,`${w.value}--${g.value.variant}`,`${w.value}--${g.value.size}`,{[`${w.value}--full-width`]:g.value.fullWidth,[`${w.value}--loading`]:g.value.loading}]),k=()=>{g.value.loading||d("click")};return()=>{var K;return x.h("button",Vn([{class:L.value,attrs:{type:g.value.type,disabled:g.value.disabled},on:{click:k}},l]),[g.value.leftIcon&&x.h(He.Icon,{attrs:{icon:`${F.value.iconSet}:${g.value.leftIcon}`}}),(K=a.default)==null?void 0:K.call(a),g.value.rightIcon&&x.h(He.Icon,{attrs:{icon:`${F.value.iconSet}:${g.value.rightIcon}`}}),g.value.loading&&x.h(He.Icon,{class:`${w.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}})])}}}),Rl=x.defineComponent({name:"TThemeProvider",props:{theme:{type:Object,default:()=>{}}},setup(s,{slots:l}){const a=x.computed(()=>ie.merge(sn,s.theme));return x.provide(Er,a),()=>{var d;return(d=l.default)==null?void 0:d.call(l)}}}),$l=()=>{const s=ae();return x.computed(()=>Le.css({margin:0,padding:0,boxSizing:"border-box",color:s.value.typography.color,fontFamily:s.value.typography.fontFamily,"&--h1":{fontSize:"3.25rem",linehHeight:"3.75rem"},"&--h2":{fontSize:"3rem",lineHeight:"3.5rem"},"&--h3":{fontSize:"2.5rem",lineHeight:"3rem"},"&--h4":{fontSize:"2rem",lineHeight:"2.5rem"},"&--s1":{fontSize:"1.75rem",lineHeight:"2.25rem"},"&--s2":{fontSize:"1.5rem",lineHeight:"2rem"},"&--s3":{fontSize:"1.125rem",lineHeight:"1.625rem"},"&--s4":{fontSize:"1rem",lineHeight:"1.5rem"},"&--b0":{fontSize:"1.25rem",lineHeight:"1.625rem"},"&--b1":{fontSize:"1.125rem",lineHeight:"1.5rem"},"&--b2":{fontSize:"1rem",lineHeight:"1.375rem"},"&--b3":{fontSize:"0.875rem",lineHeight:"1.25rem"},"&--b4":{fontSize:"0.75rem",lineHeight:"1.125rem"},"&--b5":{fontSize:"0.625rem",lineHeight:"1rem"},"&--b6":{fontSize:"0.5rem",lineHeight:"1.875rem"},"&--bold":{fontWeight:s.value.typography.fontWeight.bold},"&--semibold":{fontWeight:s.value.typography.fontWeight.semibold},"&--medium":{fontWeight:s.value.typography.fontWeight.medium},"&--regular":{fontWeight:s.value.typography.fontWeight.regular},"&--normal":{fontStyle:"normal"},"&--italic":{fontStyle:"italic"}}))},Fl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",s1:"h5",s2:"h5",s3:"h6",s4:"h6",b0:"p",b1:"p",b2:"p",b3:"p",b4:"p",b5:"p",b6:"p"},El={fontStyle:"normal",fontWeight:"regular",variant:"b0"},Ol=x.defineComponent({name:"TTypography",props:{fontStyle:String,fontWeight:String,variant:String},setup(s,{attrs:l,slots:a}){const d=x.computed(()=>ie.merge({},El,s,l)),g=$l(),C=x.computed(()=>[g.value,`${g.value}--${d.value.variant}`,`${g.value}--${d.value.fontWeight}`,`${g.value}--${d.value.fontStyle}`]),w=x.computed(()=>Fl[d.value.variant]);return()=>x.h(w.value,{class:C.value},a.default?a.default():null)}}),Pl=()=>{const s=ae();return x.computed(()=>Le.css({margin:0,padding:0,width:"3.5rem",height:"3.5rem",boxSizing:"border-box",background:"transparent",borderRadius:"50%",border:`0.5rem solid ${s.value.colors.background}`,borderBottomColor:s.value.colors.primary.main,animation:"rotate 0.75s linear infinite",[`@media (min-width: ${s.value.breakpoints.desktop}px)`]:{width:"4.5rem",height:"4.5rem"},"@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}))},Ll=x.defineComponent({name:"TSpinner",setup(){const s=Pl();return()=>x.h("div",{class:s.value})}}),Wl=()=>{const s=ae(),l=x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box"},display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer","&--primary":{borderRadius:"0.5rem",backgroundColor:s.value.colors.primary.main,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${s.value.colors.primary.main}`,color:"#FFFFFF","&:hover:not(&:disabled)":{backgroundColor:s.value.colors.primary.ultraDark},"&:focus":{border:`1px solid ${s.value.colors.primary.light1}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${s.value.colors.gray.light2}`,backgroundColor:s.value.colors.gray.light2,color:s.value.colors.gray.medium2}},"&--secondary":{borderRadius:"0.5rem",backgroundColor:"#FFFFFF",border:`1px solid ${s.value.colors.primary.main}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:s.value.colors.primary.main,"&:hover:not(&:disabled)":{backgroundColor:s.value.colors.primary.light3},"&:focus":{border:`1px solid ${s.value.colors.primary.light1}`},"&:disabled":{cursor:"not-allowed",border:`1px solid ${s.value.colors.gray.light2}`,backgroundColor:s.value.colors.gray.light2,color:s.value.colors.gray.medium2}},"&--tertiary":{background:"none",border:"none",margin:0,padding:0,color:s.value.colors.primary.main,"&:hover:not(&:disabled)":{color:s.value.colors.primary.light2},"&:focus":{color:s.value.colors.primary.light1},"&:disabled":{cursor:"not-allowed",color:s.value.colors.gray.medium1}},"&--large":{height:"3rem",width:"3rem",lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{height:"2.5rem",width:"2.5rem",lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{height:"2rem",width:"2rem",lineHeight:"1.25rem",fontSize:"0.875rem"},"&--rounded":{borderRadius:"50%"}})),a=x.computed(()=>Le.css({margin:0,padding:0,"&--large":{height:"1.25rem"},"&--medium":{height:"1.25rem"},"&--small":{height:"1rem"}}));return{baseClass:l,iconClass:a}},Bl={variant:"primary",size:"medium",icon:"academic-cap",type:"button"},zl=x.defineComponent({name:"TIconButton",props:{variant:String,size:String,disabled:Boolean,icon:String,type:String,rounded:Boolean},emits:["click"],setup(s,{attrs:l,emit:a}){const d=x.computed(()=>ie.merge({},Bl,s,l)),{baseClass:g,iconClass:C}=Wl(),w=ae(),F=x.computed(()=>[g.value,`${g.value}--${d.value.variant}`,`${g.value}--${d.value.size}`,{[`${g.value}--rounded`]:d.value.rounded}]),L=x.computed(()=>[C.value,`${C.value}--${d.value.variant}`,`${C.value}--${d.value.size}`]);return()=>x.h("button",Vn([{class:F.value,attrs:{type:d.value.type,disabled:d.value.disabled},on:{click:()=>a("click")}},l]),[x.h(He.Icon,{attrs:{icon:`${w.value.iconSet}:${d.value.icon}`},class:L.value})])}}),Dl=()=>{const s=ae();return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:s.value.typography.color,fontFamily:s.value.typography.fontFamily},"&__container":{gap:s.value.spacing,display:"flex",flexDirection:"column",width:"358px"},"&__label":{display:"block",fontSize:"14px",fontStyle:"normal",fontWeight:600,lineHeight:"20px"},"&__input-wrapper":{position:"relative"},"&__input":{display:"flex",width:"100%",background:"#FFF",border:`1px solid ${s.value.colors.gray.light2}`,borderRadius:"4px",padding:"4px 8px",gap:"8px",height:"40px",fontSize:"16px",fontStyle:"normal",fontWeight:400,lineHeight:"22px","&::placeholder":{color:s.value.colors.gray.medium2},"&:hover":{borderColor:s.value.colors.gray.medium2},"&:focus":{borderColor:s.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{background:s.value.colors.gray.light3,borderColor:s.value.colors.gray.light3},"&--left-icon":{paddingLeft:"32px"},"&--right-icon":{paddingRight:"32px"}},"&__icon":{position:"absolute",top:"50%",transform:"translateY(-50%)",fontSize:"16px","&--left":{left:"8px"},"&--right":{right:"8px"}},"&__helper-text":{fontSize:"12px",fontStyle:"normal",fontWeight:400,lineHeight:"18px",color:s.value.colors.gray.medium1},"&--error &__input, &error &__input:focus":{borderColor:s.value.colors.error},"&--error &__helper-text":{color:s.value.colors.error},"&--full-width":{width:"100%"}}))},Ml=x.defineComponent({name:"TTextInput",emits:["input","change"],props:{error:Boolean,disabled:Boolean,leftIcon:String,rightIcon:String,label:String,placeholder:String,helperText:String,value:String,fullWidth:Boolean,id:String},setup(s,{attrs:l,emit:a}){const d=x.computed(()=>ie.merge({},s,l)),g=Dl(),C=ae(),w=F=>{a("input",F.target.value),a("change",F.target.value)};return()=>x.h("div",{class:[g.value,`${g.value}__container`,{[`${g.value}--error`]:d.value.error,[`${g.value}--full-width`]:d.value.fullWidth}]},[x.h("label",{class:[`${g.value}__label`],attrs:{for:d.value.id}},[d.value.label]),x.h("div",{class:`${g.value}__input-wrapper`},[d.value.leftIcon&&x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.leftIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--left`]}),x.h("input",{attrs:{id:d.value.id,type:"text",placeholder:d.value.placeholder,disabled:d.value.disabled},class:[`${g.value}__input`,{[`${g.value}__input--left-icon`]:d.value.leftIcon,[`${g.value}__input--right-icon`]:d.value.rightIcon}],domProps:{value:d.value.value},on:{input:w}}),d.value.rightIcon&&x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.rightIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--right`]})]),x.h("p",{class:`${g.value}__helper-text`},[d.value.helperText])])}}),kl=()=>{const s=ae();return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box",cursor:"pointer"},display:"flex",alignItems:"center",gap:s.value.spacing,padding:"2px","&__switch":{height:"1.25rem",width:"2.5rem",background:s.value.colors.gray.light2,borderRadius:"10px",position:"relative",transition:"background 0.2s ease","&::after":{position:"absolute",content:'""',top:"2px",left:"2px",width:"1rem",height:"1rem",background:"#fff",borderRadius:"50%",transition:"left 0.2s ease"}},"&__label":{fontSize:"1rem",lineHeight:"1.375",fontWeight:s.value.typography.fontWeight.regular},"&:hover &__switch, &:focus &__switch":{background:s.value.colors.primary.light3},"&--checked &__switch, &--checked:focus &__switch":{background:s.value.colors.primary.main,"&::after":{left:"calc(1.5rem - 2px)"}},"&--disabled, &--disabled *":{cursor:"not-allowed"},"&--disabled &__switch, &--disabled:hover &__switch, &--disabled:focus &__switch":{background:s.value.colors.gray.light3},"&--label-left &__switch":{order:1}}))},Hl={labelPosition:"right"},Ul=x.defineComponent({name:"TSwitch",props:{label:String,disabled:Boolean,value:Boolean,labelPosition:String,id:String},emits:["change","input"],setup(s,{attrs:l,emit:a}){const d=x.computed(()=>ie.merge({},Hl,s,l)),g=x.ref(d.value.value),C=()=>{a("change",!g.value),a("input",!g.value),g.value=!g.value},w=K=>{d.value.disabled?K==null||K.preventDefault():C()},F=K=>{const{key:V}=K;d.value.disabled||V!=="Enter"&&V!==" "?K.preventDefault():C()},L=kl(),k=x.computed(()=>[L.value,`${L.value}--label-${d.value.labelPosition}`,{[`${L.value}--checked`]:g.value,[`${L.value}--disabled`]:d.value.disabled}]);return()=>x.h("div",{class:k.value,attrs:{role:"switch","aria-checked":g.value,"aria-disabled":d.value.disabled,"aria-labelledby":d.value.id,tabindex:0},on:{click:w,keydown:F}},[x.h("div",{class:`${L.value}__switch`}),d.value.label&&x.h("label",{class:`${L.value}__label`,attrs:{id:d.value.id}},[d.value.label])])}}),Nl=()=>{const s=ae();return x.computed(()=>Le.css({"&, *":{margin:0,padding:0,boxSizing:"border-box",color:s.value.typography.color,fontFamily:s.value.typography.fontFamily},"&__container":{gap:s.value.spacing,display:"flex",flexDirection:"column",width:"358px"},"&__label":{display:"block",fontSize:"0.875rem",fontStyle:"normal",fontWeight:s.value.typography.fontWeight.semibold,lineHeight:"1.25rem"},"&__wrapper":{position:"relative"},"&__select":{display:"flex",width:"100%",background:"#fff",border:`1px solid ${s.value.colors.gray.light2}`,borderRadius:"4px",padding:"0.25rem 0.5rem",gap:"0.5rem",height:"40px",fontSize:"1rem",fontStyle:"normal",fontWeight:s.value.typography.fontWeight.regular,lineHeight:"22px",MozAppearance:"none",WebkitAppearance:"none",appearance:"none",backgroundImage:`url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path fill-rule='evenodd' d='M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z' clip-rule='evenodd' stroke='black' stroke-width='1'/></svg>")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 0.7rem top 50%",backgroundSize:"0.65rem auto","&:hover":{borderColor:s.value.colors.gray.medium2},"&:focus":{borderColor:s.value.colors.primary.light1},"&:focus-visible":{outline:"none"},"&:disabled":{backgroundColor:s.value.colors.gray.light3,borderColor:s.value.colors.gray.light3,cursor:"not-allowed"},"&--left-icon":{paddingLeft:"2rem"}},"&__select:has(&__placeholder:checked)":{color:s.value.colors.gray.medium2},"&__placeholder":{display:"none"},"&__icon":{position:"absolute",top:"50%",transform:"translateY(-50%)",fontSize:"1rem","&--left":{left:"0.5rem"}},"&__helper-text":{fontSize:"0.75rem",fontStyle:"normal",fontWeight:s.value.typography.fontWeight.regular,lineHeight:"1.125rem",color:s.value.colors.gray.medium1},"&--error &__select, &--error &__select:focus":{borderColor:s.value.colors.error},"&--error &__helper-text":{color:s.value.colors.error},"&--full-width":{width:"100%"}}))},Gl=x.defineComponent({name:"TSelect",emits:["input","change"],props:{error:Boolean,disabled:Boolean,leftIcon:String,label:String,placeholder:String,helperText:String,value:String,fullWidth:Boolean,id:String},setup(s,{attrs:l,emit:a,slots:d}){const g=x.computed(()=>ie.merge({},s,l)),C=ae(),w=Nl(),F=x.computed(()=>[w.value,`${w.value}__container`,{[`${w.value}--error`]:g.value.error,[`${w.value}--full-width`]:g.value.fullWidth}]),L=k=>{a("input",k.target.value),a("change",k.target.value)};return()=>{var k;return x.h("div",{class:F.value},[g.value.label&&x.h("label",{class:`${w.value}__label`,attrs:{for:g.value.id}},[g.value.label]),x.h("div",{class:`${w.value}__wrapper`},[g.value.leftIcon&&x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${g.value.leftIcon}`},class:[`${w.value}__icon`,`${w.value}__icon--left`]}),x.h("select",Vn([{class:[`${w.value}__select`,{[`${w.value}__select--left-icon`]:g.value.leftIcon}],attrs:{disabled:g.value.disabled,id:g.value.id},domProps:{value:g.value.value},on:{input:L}},l]),[g.value.placeholder&&x.h("option",{attrs:{value:"",disabled:!0,selected:!0},class:`${w.value}__placeholder`},[g.value.placeholder]),(k=d.default)==null?void 0:k.call(d)])]),g.value.helperText&&x.h("p",{class:`${w.value}__helper-text`},[g.value.helperText])])}}}),ql=()=>{const s=ae();return x.computed(()=>Le.css({position:"relative",width:"fit-content","&, *":{padding:0,margin:0,boxSizing:"border-box"},"&__tooltip":{display:"none",position:"absolute",width:"fit-content",background:"#fff",boxShadow:"3px 4px 25px 0px #26323826",borderRadius:"1rem",padding:"0.75rem 1rem",whiteSpace:"nowrap",fontSize:"0.75rem",weight:s.value.typography.fontWeight.regular,lineHeight:"1.125rem","&:before":{content:'""',width:0,height:0,position:"absolute",borderStyle:"solid"}},"&:hover &__tooltip":{display:"block"},"&--top &__tooltip":{marginBottom:"1.5rem",left:"50%",bottom:"100%",transform:"translateX(-50%)",background:"#fff","&:before":{left:"50%",top:"99%",transform:"translateX(-50%)",borderWidth:"15px 7.5px 0px 7.5px",borderColor:"#fff transparent transparent transparent"}},"&--right &__tooltip":{marginLeft:"1.5rem",top:"50%",left:"100%",transform:"translateY(-50%)","&:before":{top:"50%",right:"99%",transform:"translateY(-50%)",borderWidth:"7.5px 15px 7.5px 0",borderColor:"transparent #fff transparent transparent"}},"&--bottom &__tooltip":{marginTop:"1.5rem",left:"50%",top:"100%",transform:"translateX(-50%)","&:before":{left:"50%",bottom:"99%",transform:"translateX(-50%)",borderWidth:"0 7.5px 15px 7.5px",borderColor:"transparent transparent #fff transparent"}},"&--left &__tooltip":{marginRight:"1.5rem",top:"50%",right:"100%",transform:"translateY(-50%)","&:before":{top:"50%",left:"99%",transform:"translateY(-50%)",borderWidth:"7.5px 0px 7.5px 15px",borderColor:"transparent transparent transparent #fff"}},"&--multilined &__tooltip":{whiteSpace:"normal",width:"max-content"},"&--small &__tooltip":{maxWidth:"25ch"},"&--medium &__tooltip":{maxWidth:"30ch"},"&--large &__tooltip":{maxWidth:"35ch"}}))},Kl={position:"right",size:"medium"},Yl=x.defineComponent({name:"TTooltip",props:{label:String,position:String,multilined:Boolean,size:String},setup(s,{slots:l,attrs:a}){const d=x.computed(()=>ie.merge({},Kl,s,a)),g=ql(),C=x.computed(()=>[g.value,`${g.value}--${d.value.position}`,{[`${g.value}--multilined`]:d.value.multilined,[`${g.value}--${d.value.size}`]:d.value.multilined}]);return()=>{var w,F;return x.h("div",{class:C.value},[(w=l.default)==null?void 0:w.call(l),x.h("div",{attrs:{role:"tooltip"},class:`${g.value}__tooltip`},[((F=l.label)==null?void 0:F.call(l))||d.value.label])])}}}),Zl={color:"#000",size:"medium",variant:"outline"},Xl=x.defineComponent({name:"TIcon",props:{icon:{type:String,required:!0},color:String,size:String,variant:String},setup(s,{attrs:l}){const a=x.computed(()=>ie.merge({},Zl,s,l)),d=ae(),g=x.computed(()=>ie.get(d.value.colors,a.value.color)||a.value.color),C=x.computed(()=>`${d.value.iconSet}:${a.value.icon}${a.value.variant==="solid"?"-solid":""}`),w={small:"1em",medium:"1.25em",large:"1.5em"},F=x.computed(()=>w[a.value.size]);return()=>x.h(He.Icon,{attrs:{icon:C.value,color:g.value,height:F.value,width:F.value}})}}),Jl=()=>{const s=ae();return x.computed(()=>Le.css({margin:0,padding:0,width:"fit-content",cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"0.625rem",color:s.value.colors.primary.main,"&:hover:not(&:disabled)":{color:s.value.colors.primary.ultraDark},"&:focus":{color:s.value.colors.primary.light1},textDecoration:"underline",fontWeight:600,"&--large":{lineHeight:"1.5rem",fontSize:"1.125rem"},"&--medium":{lineHeight:"1.375rem",fontSize:"1rem"},"&--small":{lineHeight:"1.25rem",fontSize:"0.875rem"}}))},Ql={variant:"primary",size:"medium"},Vl=x.defineComponent({name:"TButton",props:{variant:String,size:String,href:String,leftIcon:String,rightIcon:String},setup(s,{attrs:l,slots:a}){const d=x.computed(()=>ie.merge({},Ql,s,l)),g=Jl(),C=ae(),w=x.computed(()=>[g.value,`${g.value}--${d.value.variant}`,`${g.value}--${d.value.size}`]);return()=>x.h("a",Vn([{class:w.value,attrs:{href:d.value.href}},l]),[d.value.leftIcon?x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.leftIcon}`}}):null,a.default?a.default():null,d.value.rightIcon?x.h(He.Icon,{attrs:{icon:`${C.value.iconSet}:${d.value.rightIcon}`}}):null])}}),jl=()=>{const s=ae(),l=s.value.colors.gray.light1,a=(g,C)=>{switch(C){case"large":return encodeURIComponent(`<svg width="10" height="9.5" viewBox="0 0 10 9.5" fill="none" xmlns="http://www.w3.org/2000/svg">
176
176
  <path d="M0.833344 3.79167L3.75001 6.70834L9.16668 1.29167" stroke="${g}" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
177
177
  </svg>`);case"small":return encodeURIComponent(`<svg width="10" height="8.25" viewBox="0 0 10 8.25" fill="none" xmlns="http://www.w3.org/2000/svg">
178
178
  <path d="M1.6 2.82999L3.98 5.20999L8.4 0.789993" stroke="${g}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>