toku-ui 0.14.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/TSelect/TSelect.d.ts +2 -2
- package/dist/components/TSelect/TSelect.d.ts.map +1 -1
- package/dist/components/TSelect/TSelect.types.d.ts +0 -1
- package/dist/components/TSelect/TSelect.types.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
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 h=l[0],g=[],S;for(S=1;S<l.length;S+=1)g.push(l[S]);return g.forEach(function(w){h=h.replace(/%[a-z]/,w)}),h}var Ue=function(s){Yu(l,s);function l(a){var h;if(process.env.NODE_ENV==="production")h=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,S=new Array(g>1?g-1:0),w=1;w<g;w++)S[w-1]=arguments[w];h=s.call(this,Qu.apply(void 0,[Ju[a]].concat(S)))||this}return Ku(h)}return l}(wr(Error));function Sr(s){return Math.round(s*255)}function Vu(s,l,a){return Sr(s)+","+Sr(l)+","+Sr(a)}function jn(s,l,a,h){if(h===void 0&&(h=Vu),l===0)return h(a,a,a);var g=(s%360+360)%360/60,S=(1-Math.abs(2*a-1))*l,w=S*(1-Math.abs(g%2-1)),R=0,$=0,z=0;g>=0&&g<1?(R=S,$=w):g>=1&&g<2?(R=w,$=S):g>=2&&g<3?($=S,z=w):g>=3&&g<4?($=w,z=S):g>=4&&g<5?(R=w,z=S):g>=5&&g<6&&(R=S,z=w);var Y=a-S/2,H=R+Y,le=$+Y,Ne=z+Y;return h(H,le,Ne)}var Qi={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 Qi[l]?"#"+Qi[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}$/,Cr=/^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 Vi(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 h=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:h}}var g=Cr.exec(l);if(g)return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10)};var S=il.exec(l.substring(0,50));if(S)return{red:parseInt(""+S[1],10),green:parseInt(""+S[2],10),blue:parseInt(""+S[3],10),alpha:parseFloat(""+S[4])>1?parseFloat(""+S[4])/100:parseFloat(""+S[4])};var w=al.exec(l);if(w){var R=parseInt(""+w[1],10),$=parseInt(""+w[2],10)/100,z=parseInt(""+w[3],10)/100,Y="rgb("+jn(R,$,z)+")",H=Cr.exec(Y);if(!H)throw new Ue(4,l,Y);return{red:parseInt(""+H[1],10),green:parseInt(""+H[2],10),blue:parseInt(""+H[3],10)}}var le=ol.exec(l.substring(0,50));if(le){var Ne=parseInt(""+le[1],10),sn=parseInt(""+le[2],10)/100,Pn=parseInt(""+le[3],10)/100,ce="rgb("+jn(Ne,sn,Pn)+")",Te=Cr.exec(ce);if(!Te)throw new Ue(4,l,ce);return{red:parseInt(""+Te[1],10),green:parseInt(""+Te[2],10),blue:parseInt(""+Te[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,h=s.blue/255,g=Math.max(l,a,h),S=Math.min(l,a,h),w=(g+S)/2;if(g===S)return s.alpha!==void 0?{hue:0,saturation:0,lightness:w,alpha:s.alpha}:{hue:0,saturation:0,lightness:w};var R,$=g-S,z=w>.5?$/(2-g-S):$/(g+S);switch(g){case l:R=(a-h)/$+(a<h?6:0);break;case a:R=(h-l)/$+2;break;default:R=(l-a)/$+4;break}return R*=60,s.alpha!==void 0?{hue:R,saturation:z,lightness:w,alpha:s.alpha}:{hue:R,saturation:z,lightness:w}}function ji(s){return ul(Vi(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},Ir=ll;function yn(s){var l=s.toString(16);return l.length===1?"0"+l:l}function Tr(s){return yn(Math.round(s*255))}function sl(s,l,a){return Ir("#"+Tr(s)+Tr(l)+Tr(a))}function It(s,l,a){return jn(s,l,a,sl)}function fl(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return It(s,l,a);if(typeof s=="object"&&l===void 0&&a===void 0)return It(s.hue,s.saturation,s.lightness);throw new Ue(1)}function cl(s,l,a,h){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof h=="number")return h>=1?It(s,l,a):"rgba("+jn(s,l,a)+","+h+")";if(typeof s=="object"&&l===void 0&&a===void 0&&h===void 0)return s.alpha>=1?It(s.hue,s.saturation,s.lightness):"rgba("+jn(s.hue,s.saturation,s.lightness)+","+s.alpha+")";throw new Ue(2)}function Ar(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return Ir("#"+yn(s)+yn(l)+yn(a));if(typeof s=="object"&&l===void 0&&a===void 0)return Ir("#"+yn(s.red)+yn(s.green)+yn(s.blue));throw new Ue(6)}function hl(s,l,a,h){if(typeof s=="string"&&typeof l=="number"){var g=Vi(s);return"rgba("+g.red+","+g.green+","+g.blue+","+l+")"}else{if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof h=="number")return h>=1?Ar(s,l,a):"rgba("+s+","+l+","+a+","+h+")";if(typeof s=="object"&&l===void 0&&a===void 0&&h===void 0)return s.alpha>=1?Ar(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 ea(s){if(typeof s!="object")throw new Ue(8);if(dl(s))return hl(s);if(pl(s))return Ar(s);if(ml(s))return cl(s);if(gl(s))return fl(s);throw new Ue(8)}function na(s,l,a){return function(){var g=a.concat(Array.prototype.slice.call(arguments));return g.length>=l?s.apply(this,g):na(s,l,g)}}function ta(s){return na(s,s.length,[])}function ra(s,l,a){return Math.max(s,Math.min(l,a))}function vl(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness-parseFloat(s))}))}var _l=ta(vl),ia=_l;function bl(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness+parseFloat(s))}))}var yl=ta(bl),Je=yl;const Tt={colors:{primary:{main:"#5C0087",ultraDark:"#3C1053",dark:"#5C0087",toku:"#7F00B2",light1:"#A94BE0",light2:"#C297DB",light3:"#E3D2ED",light4:"#EDE8F0",light5:"#F7F3FA"},gray:{main:"#373737",dark2:"#545454",dark3:"#707070",medium1:"#8D8D8D",medium2:"#A9A9A9",light1:"#C6C6C6",light2:"#E2E2E2",light3:"#F2F2F2",light4:"#FAFAFA"},error:"#B72E29",success:"#408645",warning:"#D06B35",inProcess:"#FFB038",inProcessDark:"#A37500",info:"#3070DD",background:"#F5F5F5"},typography:{color:"#373737",fontFamily:'"Poppins", sans-serif',buttonTextColor:"#FFFFFF",fontWeight:{bold:700,semibold:600,medium:500,regular:400}},spacing:"4px",breakpoints:{mobile:0,desktop:800},iconSet:"heroicons"},xl=s=>{var h,g;const l=ne.merge(Tt,s),a=(g=(h=s.colors)==null?void 0:h.primary)==null?void 0:g.main;return a&&(l.colors.primary.ultraDark=ia(.15,a),l.colors.primary.dark=a,l.colors.primary.toku=Je(.1,a),l.colors.primary.light1=Je(.15,a),l.colors.primary.light2=Je(.2,a),l.colors.primary.light3=Je(.25,a),l.colors.primary.light4=Je(.3,a),l.colors.primary.light5=Je(.35,a)),l},Rr=Symbol("theme"),ie=()=>{const s=_.inject(Rr,void 0);return _.computed(()=>(s==null?void 0:s.value)??Tt)},wl=s=>ne.camelCase(s),Sl=s=>{const l=ie(),a=_.computed(()=>wl(s.value)),h=_.computed(()=>a.value==="primary"?l.value.colors.primary.ultraDark:ia(.15,l.value.colors[a.value])),g=_.computed(()=>a.value==="primary"?l.value.colors.primary.main:l.value.colors[a.value]),S=_.computed(()=>a.value==="primary"?l.value.colors.primary.light1:Je(.15,l.value.colors[a.value])),w=_.computed(()=>a.value==="primary"?l.value.colors.primary.light2:Je(.2,l.value.colors[a.value])),R=_.computed(()=>a.value==="primary"?l.value.colors.primary.light3:Je(.25,l.value.colors[a.value]));return _.computed(()=>be.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:l.value.typography.buttonTextColor,"&:hover:not(&:disabled)":{backgroundColor:h.value,color:l.value.typography.buttonTextColor},"&:focus":{border:`1px solid ${S.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:R.value},"&:focus":{border:`1px solid ${S.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:S.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":{color:"#fff"},"&--loading:disabled &__spinner":{color:l.value.colors.gray.medium1},"&--tertiary:disabled &__spinner":{color:l.value.colors.gray.medium1},"&--secondary &__spinner, &--tertiary &__spinner":{color:g.value}}))},Cl={variant:"primary",size:"medium",type:"button",color:"primary"},Il=_.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:h}){const g=_.computed(()=>ne.merge({},Cl,s,l)),S=_.computed(()=>g.value.color),w=Sl(S),R=ie(),$=_.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}]),z=()=>{g.value.loading||h("click")};return()=>{var Y;return _.h("button",En([{class:$.value,attrs:{type:g.value.type,disabled:g.value.disabled},on:{click:z}},l]),[g.value.leftIcon&&_.h(We.Icon,{attrs:{icon:`${R.value.iconSet}:${g.value.leftIcon}`}}),(Y=a.default)==null?void 0:Y.call(a),g.value.rightIcon&&_.h(We.Icon,{attrs:{icon:`${R.value.iconSet}:${g.value.rightIcon}`}}),g.value.loading&&_.h(We.Icon,{class:`${w.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}})])}}}),Tl=_.defineComponent({name:"TThemeProvider",props:{theme:{type:Object,default:()=>{}}},setup(s,{slots:l}){const a=_.computed(()=>ne.merge(Tt,s.theme));return _.provide(Rr,a),()=>{var h;return(h=l.default)==null?void 0:h.call(l)}}}),Al=()=>{const s=ie();return _.computed(()=>be.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"}}))},Rl={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"},$l={fontStyle:"normal",fontWeight:"regular",variant:"b0"},Fl=_.defineComponent({name:"TTypography",props:{fontStyle:String,fontWeight:String,variant:String},setup(s,{attrs:l,slots:a}){const h=_.computed(()=>ne.merge({},$l,s,l)),g=Al(),S=_.computed(()=>[g.value,`${g.value}--${h.value.variant}`,`${g.value}--${h.value.fontWeight}`,`${g.value}--${h.value.fontStyle}`]),w=_.computed(()=>Rl[h.value.variant]);return()=>_.h(w.value,{class:S.value},a.default?a.default():null)}}),El=()=>{const s=ie();return _.computed(()=>be.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","&--medium":{width:"4.5rem",height:"4.5rem"},"&--auto":{[`@media (min-width: ${s.value.breakpoints.desktop}px)`]:{width:"4.5rem",height:"4.5rem"}},"@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}))},Pl={size:"auto"},aa=_.defineComponent({name:"TSpinner",props:{size:String},setup(s,{attrs:l}){const a=_.computed(()=>ne.merge({},Pl,s,l)),h=El(),g=_.computed(()=>[h.value,`${h.value}--${a.value.size}`]);return()=>_.h("div",{class:g.value})}}),Ol=()=>{const s=ie(),l=_.computed(()=>be.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=_.computed(()=>be.css({margin:0,padding:0,"&--large":{height:"1.25rem"},"&--medium":{height:"1.25rem"},"&--small":{height:"1rem"}}));return{baseClass:l,iconClass:a}},Ll={variant:"primary",size:"medium",icon:"academic-cap",type:"button"},Wl=_.defineComponent({name:"TIconButton",props:{variant:String,size:String,disabled:Boolean,icon:String,type:String,rounded:Boolean,loading:Boolean},emits:["click"],setup(s,{attrs:l,emit:a}){const h=_.computed(()=>ne.merge({},Ll,s,l)),{baseClass:g,iconClass:S}=Ol(),w=ie(),R=_.computed(()=>[g.value,`${g.value}--${h.value.variant}`,`${g.value}--${h.value.size}`,{[`${g.value}--rounded`]:h.value.rounded}]),$=_.computed(()=>[S.value,`${S.value}--${h.value.variant}`,`${S.value}--${h.value.size}`,{[`${g.value}--loading`]:h.value.loading}]),z=()=>{h.value.loading||a("click")};return()=>_.h("button",En([{class:R.value,attrs:{type:h.value.type,disabled:h.value.disabled},on:{click:z}},l]),[h.value.loading?_.h(We.Icon,{class:`${g.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}}):_.h(We.Icon,{attrs:{icon:`${w.value.iconSet}:${h.value.icon}`},class:$.value})])}}),Bl=()=>{const s=ie();return _.computed(()=>be.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%"}}))},zl={type:"text"},Dl=_.defineComponent({name:"TTextInput",emits:["input","change","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,rightIcon:String,label:String,placeholder:String,helperText:String,value:String,fullWidth:Boolean,id:String,type:String},setup(s,{attrs:l,emit:a}){const h=_.computed(()=>ne.merge({},zl,s,l)),g=Bl(),S=ie(),w=z=>{a("input",z.target.value),a("change",z.target.value)},R=z=>{a("focus",z)},$=z=>{a("blur",z)};return()=>_.h("div",{class:[g.value,`${g.value}__container`,{[`${g.value}--error`]:h.value.error,[`${g.value}--full-width`]:h.value.fullWidth}]},[_.h("label",{class:[`${g.value}__label`],attrs:{for:h.value.id}},[h.value.label]),_.h("div",{class:`${g.value}__input-wrapper`},[h.value.leftIcon&&_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.leftIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--left`]}),_.h("input",En([{},l,{attrs:{id:h.value.id,type:h.value.type,placeholder:h.value.placeholder,disabled:h.value.disabled},class:[`${g.value}__input`,{[`${g.value}__input--left-icon`]:h.value.leftIcon,[`${g.value}__input--right-icon`]:h.value.rightIcon}],domProps:{value:h.value.value},on:{input:w,focus:R,blur:$}}])),h.value.rightIcon&&_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.rightIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--right`]})]),_.h("p",{class:`${g.value}__helper-text`},[h.value.helperText])])}}),kl=()=>{const s=ie();return _.computed(()=>be.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}}))},Ml={labelPosition:"right"},Hl=_.defineComponent({name:"TSwitch",props:{label:String,disabled:Boolean,value:Boolean,labelPosition:String,id:String},emits:["change","input"],setup(s,{attrs:l,emit:a}){const h=_.computed(()=>ne.merge({},Ml,s,l)),g=_.ref(h.value.value);_.watch(()=>h.value.value,()=>{g.value=h.value.value});const S=()=>{a("change",!g.value),a("input",!g.value),g.value=!g.value},w=Y=>{h.value.disabled?Y==null||Y.preventDefault():S()},R=Y=>{const{key:H}=Y;h.value.disabled||H!=="Enter"&&H!==" "?Y.preventDefault():S()},$=kl(),z=_.computed(()=>[$.value,`${$.value}--label-${h.value.labelPosition}`,{[`${$.value}--checked`]:g.value,[`${$.value}--disabled`]:h.value.disabled}]);return()=>_.h("div",{class:z.value,attrs:{role:"switch","aria-checked":g.value,"aria-disabled":h.value.disabled,"aria-labelledby":h.value.id,tabindex:0},on:{click:w,keydown:R}},[_.h("div",{class:`${$.value}__switch`}),h.value.label&&_.h("label",{class:`${$.value}__label`,attrs:{id:h.value.id}},[h.value.label])])}}),Ul=()=>{const s=ie();return _.computed(()=>be.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%"}}))},Nl=_.defineComponent({name:"TSelect",emits:["input","change","focus","blur"],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:h}){const g=_.computed(()=>ne.merge({},s,l)),S=ie(),w=Ul(),R=_.computed(()=>[w.value,`${w.value}__container`,{[`${w.value}--error`]:g.value.error,[`${w.value}--full-width`]:g.value.fullWidth}]),$=H=>{a("input",H.target.value),a("change",H.target.value)},z=H=>{a("focus",H)},Y=H=>{a("blur",H)};return()=>{var H;return _.h("div",{class:R.value},[g.value.label&&_.h("label",{class:`${w.value}__label`,attrs:{for:g.value.id}},[g.value.label]),_.h("div",{class:`${w.value}__wrapper`},[g.value.leftIcon&&_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${g.value.leftIcon}`},class:[`${w.value}__icon`,`${w.value}__icon--left`]}),_.h("select",En([{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:$,focus:z,blur:Y}},l]),[g.value.placeholder&&_.h("option",{attrs:{value:"",disabled:!0,selected:!0},class:`${w.value}__placeholder`},[g.value.placeholder]),(H=h.default)==null?void 0:H.call(h)])]),g.value.helperText&&_.h("p",{class:`${w.value}__helper-text`},[g.value.helperText])])}}}),Gl=()=>{const s=ie();return _.computed(()=>be.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"}}))},ql={position:"right",size:"medium"},Kl=_.defineComponent({name:"TTooltip",props:{label:String,position:String,multilined:Boolean,size:String},setup(s,{slots:l,attrs:a}){const h=_.computed(()=>ne.merge({},ql,s,a)),g=Gl(),S=_.computed(()=>[g.value,`${g.value}--${h.value.position}`,{[`${g.value}--multilined`]:h.value.multilined,[`${g.value}--${h.value.size}`]:h.value.multilined}]);return()=>{var w,R;return _.h("div",{class:S.value},[(w=l.default)==null?void 0:w.call(l),_.h("div",{attrs:{role:"tooltip"},class:`${g.value}__tooltip`},[((R=l.label)==null?void 0:R.call(l))||h.value.label])])}}}),Yl={color:"#000",size:"medium",variant:"outline"},Zl=_.defineComponent({name:"TIcon",props:{icon:{type:String,required:!0},color:String,size:String,variant:String},setup(s,{attrs:l}){const a=_.computed(()=>ne.merge({},Yl,s,l)),h=ie(),g=_.computed(()=>ne.get(h.value.colors,a.value.color)||a.value.color),S=_.computed(()=>`${h.value.iconSet}:${a.value.icon}${a.value.variant==="solid"?"-solid":""}`),w={miniature:"0.375em","extra-small":"0.625em",small:"1em",medium:"1.25em",large:"1.5em","extra-large":"1.75em"},R=_.computed(()=>w[a.value.size]);return()=>_.h(We.Icon,{attrs:{icon:S.value,color:g.value,height:R.value,width:R.value}})}}),Xl=()=>{const s=ie();return _.computed(()=>be.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"}}))},Jl={variant:"primary",size:"medium"},Ql=_.defineComponent({name:"TButton",props:{variant:String,size:String,href:String,leftIcon:String,rightIcon:String},setup(s,{attrs:l,slots:a}){const h=_.computed(()=>ne.merge({},Jl,s,l)),g=Xl(),S=ie(),w=_.computed(()=>[g.value,`${g.value}--${h.value.variant}`,`${g.value}--${h.value.size}`]);return()=>_.h("a",En([{class:w.value,attrs:{href:h.value.href}},l]),[h.value.leftIcon?_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.leftIcon}`}}):null,a.default?a.default():null,h.value.rightIcon?_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.rightIcon}`}}):null])}}),Vl=()=>{const s=ie(),l=s.value.colors.gray.light1,a=(g,S)=>{switch(S){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 h=l[0],g=[],S;for(S=1;S<l.length;S+=1)g.push(l[S]);return g.forEach(function(w){h=h.replace(/%[a-z]/,w)}),h}var Ue=function(s){Yu(l,s);function l(a){var h;if(process.env.NODE_ENV==="production")h=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,S=new Array(g>1?g-1:0),w=1;w<g;w++)S[w-1]=arguments[w];h=s.call(this,Qu.apply(void 0,[Ju[a]].concat(S)))||this}return Ku(h)}return l}(wr(Error));function Sr(s){return Math.round(s*255)}function Vu(s,l,a){return Sr(s)+","+Sr(l)+","+Sr(a)}function jn(s,l,a,h){if(h===void 0&&(h=Vu),l===0)return h(a,a,a);var g=(s%360+360)%360/60,S=(1-Math.abs(2*a-1))*l,w=S*(1-Math.abs(g%2-1)),R=0,$=0,z=0;g>=0&&g<1?(R=S,$=w):g>=1&&g<2?(R=w,$=S):g>=2&&g<3?($=S,z=w):g>=3&&g<4?($=w,z=S):g>=4&&g<5?(R=w,z=S):g>=5&&g<6&&(R=S,z=w);var Y=a-S/2,H=R+Y,le=$+Y,Ne=z+Y;return h(H,le,Ne)}var Qi={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 Qi[l]?"#"+Qi[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}$/,Cr=/^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 Vi(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 h=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:h}}var g=Cr.exec(l);if(g)return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10)};var S=il.exec(l.substring(0,50));if(S)return{red:parseInt(""+S[1],10),green:parseInt(""+S[2],10),blue:parseInt(""+S[3],10),alpha:parseFloat(""+S[4])>1?parseFloat(""+S[4])/100:parseFloat(""+S[4])};var w=al.exec(l);if(w){var R=parseInt(""+w[1],10),$=parseInt(""+w[2],10)/100,z=parseInt(""+w[3],10)/100,Y="rgb("+jn(R,$,z)+")",H=Cr.exec(Y);if(!H)throw new Ue(4,l,Y);return{red:parseInt(""+H[1],10),green:parseInt(""+H[2],10),blue:parseInt(""+H[3],10)}}var le=ol.exec(l.substring(0,50));if(le){var Ne=parseInt(""+le[1],10),sn=parseInt(""+le[2],10)/100,Pn=parseInt(""+le[3],10)/100,ce="rgb("+jn(Ne,sn,Pn)+")",Te=Cr.exec(ce);if(!Te)throw new Ue(4,l,ce);return{red:parseInt(""+Te[1],10),green:parseInt(""+Te[2],10),blue:parseInt(""+Te[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,h=s.blue/255,g=Math.max(l,a,h),S=Math.min(l,a,h),w=(g+S)/2;if(g===S)return s.alpha!==void 0?{hue:0,saturation:0,lightness:w,alpha:s.alpha}:{hue:0,saturation:0,lightness:w};var R,$=g-S,z=w>.5?$/(2-g-S):$/(g+S);switch(g){case l:R=(a-h)/$+(a<h?6:0);break;case a:R=(h-l)/$+2;break;default:R=(l-a)/$+4;break}return R*=60,s.alpha!==void 0?{hue:R,saturation:z,lightness:w,alpha:s.alpha}:{hue:R,saturation:z,lightness:w}}function ji(s){return ul(Vi(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},Ir=ll;function yn(s){var l=s.toString(16);return l.length===1?"0"+l:l}function Tr(s){return yn(Math.round(s*255))}function sl(s,l,a){return Ir("#"+Tr(s)+Tr(l)+Tr(a))}function It(s,l,a){return jn(s,l,a,sl)}function fl(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return It(s,l,a);if(typeof s=="object"&&l===void 0&&a===void 0)return It(s.hue,s.saturation,s.lightness);throw new Ue(1)}function cl(s,l,a,h){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof h=="number")return h>=1?It(s,l,a):"rgba("+jn(s,l,a)+","+h+")";if(typeof s=="object"&&l===void 0&&a===void 0&&h===void 0)return s.alpha>=1?It(s.hue,s.saturation,s.lightness):"rgba("+jn(s.hue,s.saturation,s.lightness)+","+s.alpha+")";throw new Ue(2)}function Ar(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return Ir("#"+yn(s)+yn(l)+yn(a));if(typeof s=="object"&&l===void 0&&a===void 0)return Ir("#"+yn(s.red)+yn(s.green)+yn(s.blue));throw new Ue(6)}function hl(s,l,a,h){if(typeof s=="string"&&typeof l=="number"){var g=Vi(s);return"rgba("+g.red+","+g.green+","+g.blue+","+l+")"}else{if(typeof s=="number"&&typeof l=="number"&&typeof a=="number"&&typeof h=="number")return h>=1?Ar(s,l,a):"rgba("+s+","+l+","+a+","+h+")";if(typeof s=="object"&&l===void 0&&a===void 0&&h===void 0)return s.alpha>=1?Ar(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 ea(s){if(typeof s!="object")throw new Ue(8);if(dl(s))return hl(s);if(pl(s))return Ar(s);if(ml(s))return cl(s);if(gl(s))return fl(s);throw new Ue(8)}function na(s,l,a){return function(){var g=a.concat(Array.prototype.slice.call(arguments));return g.length>=l?s.apply(this,g):na(s,l,g)}}function ta(s){return na(s,s.length,[])}function ra(s,l,a){return Math.max(s,Math.min(l,a))}function vl(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness-parseFloat(s))}))}var _l=ta(vl),ia=_l;function bl(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness+parseFloat(s))}))}var yl=ta(bl),Je=yl;const Tt={colors:{primary:{main:"#5C0087",ultraDark:"#3C1053",dark:"#5C0087",toku:"#7F00B2",light1:"#A94BE0",light2:"#C297DB",light3:"#E3D2ED",light4:"#EDE8F0",light5:"#F7F3FA"},gray:{main:"#373737",dark2:"#545454",dark3:"#707070",medium1:"#8D8D8D",medium2:"#A9A9A9",light1:"#C6C6C6",light2:"#E2E2E2",light3:"#F2F2F2",light4:"#FAFAFA"},error:"#B72E29",success:"#408645",warning:"#D06B35",inProcess:"#FFB038",inProcessDark:"#A37500",info:"#3070DD",background:"#F5F5F5"},typography:{color:"#373737",fontFamily:'"Poppins", sans-serif',buttonTextColor:"#FFFFFF",fontWeight:{bold:700,semibold:600,medium:500,regular:400}},spacing:"4px",breakpoints:{mobile:0,desktop:800},iconSet:"heroicons"},xl=s=>{var h,g;const l=ne.merge(Tt,s),a=(g=(h=s.colors)==null?void 0:h.primary)==null?void 0:g.main;return a&&(l.colors.primary.ultraDark=ia(.15,a),l.colors.primary.dark=a,l.colors.primary.toku=Je(.1,a),l.colors.primary.light1=Je(.15,a),l.colors.primary.light2=Je(.2,a),l.colors.primary.light3=Je(.25,a),l.colors.primary.light4=Je(.3,a),l.colors.primary.light5=Je(.35,a)),l},Rr=Symbol("theme"),ie=()=>{const s=_.inject(Rr,void 0);return _.computed(()=>(s==null?void 0:s.value)??Tt)},wl=s=>ne.camelCase(s),Sl=s=>{const l=ie(),a=_.computed(()=>wl(s.value)),h=_.computed(()=>a.value==="primary"?l.value.colors.primary.ultraDark:ia(.15,l.value.colors[a.value])),g=_.computed(()=>a.value==="primary"?l.value.colors.primary.main:l.value.colors[a.value]),S=_.computed(()=>a.value==="primary"?l.value.colors.primary.light1:Je(.15,l.value.colors[a.value])),w=_.computed(()=>a.value==="primary"?l.value.colors.primary.light2:Je(.2,l.value.colors[a.value])),R=_.computed(()=>a.value==="primary"?l.value.colors.primary.light3:Je(.25,l.value.colors[a.value]));return _.computed(()=>be.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:l.value.typography.buttonTextColor,"&:hover:not(&:disabled)":{backgroundColor:h.value,color:l.value.typography.buttonTextColor},"&:focus":{border:`1px solid ${S.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:R.value},"&:focus":{border:`1px solid ${S.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:S.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":{color:"#fff"},"&--loading:disabled &__spinner":{color:l.value.colors.gray.medium1},"&--tertiary:disabled &__spinner":{color:l.value.colors.gray.medium1},"&--secondary &__spinner, &--tertiary &__spinner":{color:g.value}}))},Cl={variant:"primary",size:"medium",type:"button",color:"primary"},Il=_.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:h}){const g=_.computed(()=>ne.merge({},Cl,s,l)),S=_.computed(()=>g.value.color),w=Sl(S),R=ie(),$=_.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}]),z=()=>{g.value.loading||h("click")};return()=>{var Y;return _.h("button",En([{class:$.value,attrs:{type:g.value.type,disabled:g.value.disabled},on:{click:z}},l]),[g.value.leftIcon&&_.h(We.Icon,{attrs:{icon:`${R.value.iconSet}:${g.value.leftIcon}`}}),(Y=a.default)==null?void 0:Y.call(a),g.value.rightIcon&&_.h(We.Icon,{attrs:{icon:`${R.value.iconSet}:${g.value.rightIcon}`}}),g.value.loading&&_.h(We.Icon,{class:`${w.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}})])}}}),Tl=_.defineComponent({name:"TThemeProvider",props:{theme:{type:Object,default:()=>{}}},setup(s,{slots:l}){const a=_.computed(()=>ne.merge(Tt,s.theme));return _.provide(Rr,a),()=>{var h;return(h=l.default)==null?void 0:h.call(l)}}}),Al=()=>{const s=ie();return _.computed(()=>be.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"}}))},Rl={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"},$l={fontStyle:"normal",fontWeight:"regular",variant:"b0"},Fl=_.defineComponent({name:"TTypography",props:{fontStyle:String,fontWeight:String,variant:String},setup(s,{attrs:l,slots:a}){const h=_.computed(()=>ne.merge({},$l,s,l)),g=Al(),S=_.computed(()=>[g.value,`${g.value}--${h.value.variant}`,`${g.value}--${h.value.fontWeight}`,`${g.value}--${h.value.fontStyle}`]),w=_.computed(()=>Rl[h.value.variant]);return()=>_.h(w.value,{class:S.value},a.default?a.default():null)}}),El=()=>{const s=ie();return _.computed(()=>be.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","&--medium":{width:"4.5rem",height:"4.5rem"},"&--auto":{[`@media (min-width: ${s.value.breakpoints.desktop}px)`]:{width:"4.5rem",height:"4.5rem"}},"@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}))},Pl={size:"auto"},aa=_.defineComponent({name:"TSpinner",props:{size:String},setup(s,{attrs:l}){const a=_.computed(()=>ne.merge({},Pl,s,l)),h=El(),g=_.computed(()=>[h.value,`${h.value}--${a.value.size}`]);return()=>_.h("div",{class:g.value})}}),Ol=()=>{const s=ie(),l=_.computed(()=>be.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=_.computed(()=>be.css({margin:0,padding:0,"&--large":{height:"1.25rem"},"&--medium":{height:"1.25rem"},"&--small":{height:"1rem"}}));return{baseClass:l,iconClass:a}},Ll={variant:"primary",size:"medium",icon:"academic-cap",type:"button"},Wl=_.defineComponent({name:"TIconButton",props:{variant:String,size:String,disabled:Boolean,icon:String,type:String,rounded:Boolean,loading:Boolean},emits:["click"],setup(s,{attrs:l,emit:a}){const h=_.computed(()=>ne.merge({},Ll,s,l)),{baseClass:g,iconClass:S}=Ol(),w=ie(),R=_.computed(()=>[g.value,`${g.value}--${h.value.variant}`,`${g.value}--${h.value.size}`,{[`${g.value}--rounded`]:h.value.rounded}]),$=_.computed(()=>[S.value,`${S.value}--${h.value.variant}`,`${S.value}--${h.value.size}`,{[`${g.value}--loading`]:h.value.loading}]),z=()=>{h.value.loading||a("click")};return()=>_.h("button",En([{class:R.value,attrs:{type:h.value.type,disabled:h.value.disabled},on:{click:z}},l]),[h.value.loading?_.h(We.Icon,{class:`${g.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}}):_.h(We.Icon,{attrs:{icon:`${w.value.iconSet}:${h.value.icon}`},class:$.value})])}}),Bl=()=>{const s=ie();return _.computed(()=>be.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%"}}))},zl={type:"text"},Dl=_.defineComponent({name:"TTextInput",emits:["input","change","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,rightIcon:String,label:String,placeholder:String,helperText:String,value:String,fullWidth:Boolean,id:String,type:String},setup(s,{attrs:l,emit:a}){const h=_.computed(()=>ne.merge({},zl,s,l)),g=Bl(),S=ie(),w=z=>{a("input",z.target.value),a("change",z.target.value)},R=z=>{a("focus",z)},$=z=>{a("blur",z)};return()=>_.h("div",{class:[g.value,`${g.value}__container`,{[`${g.value}--error`]:h.value.error,[`${g.value}--full-width`]:h.value.fullWidth}]},[_.h("label",{class:[`${g.value}__label`],attrs:{for:h.value.id}},[h.value.label]),_.h("div",{class:`${g.value}__input-wrapper`},[h.value.leftIcon&&_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.leftIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--left`]}),_.h("input",En([{},l,{attrs:{id:h.value.id,type:h.value.type,placeholder:h.value.placeholder,disabled:h.value.disabled},class:[`${g.value}__input`,{[`${g.value}__input--left-icon`]:h.value.leftIcon,[`${g.value}__input--right-icon`]:h.value.rightIcon}],domProps:{value:h.value.value},on:{input:w,focus:R,blur:$}}])),h.value.rightIcon&&_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.rightIcon}`},class:[`${g.value}__icon`,`${g.value}__icon--right`]})]),_.h("p",{class:`${g.value}__helper-text`},[h.value.helperText])])}}),kl=()=>{const s=ie();return _.computed(()=>be.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}}))},Ml={labelPosition:"right"},Hl=_.defineComponent({name:"TSwitch",props:{label:String,disabled:Boolean,value:Boolean,labelPosition:String,id:String},emits:["change","input"],setup(s,{attrs:l,emit:a}){const h=_.computed(()=>ne.merge({},Ml,s,l)),g=_.ref(h.value.value);_.watch(()=>h.value.value,()=>{g.value=h.value.value});const S=()=>{a("change",!g.value),a("input",!g.value),g.value=!g.value},w=Y=>{h.value.disabled?Y==null||Y.preventDefault():S()},R=Y=>{const{key:H}=Y;h.value.disabled||H!=="Enter"&&H!==" "?Y.preventDefault():S()},$=kl(),z=_.computed(()=>[$.value,`${$.value}--label-${h.value.labelPosition}`,{[`${$.value}--checked`]:g.value,[`${$.value}--disabled`]:h.value.disabled}]);return()=>_.h("div",{class:z.value,attrs:{role:"switch","aria-checked":g.value,"aria-disabled":h.value.disabled,"aria-labelledby":h.value.id,tabindex:0},on:{click:w,keydown:R}},[_.h("div",{class:`${$.value}__switch`}),h.value.label&&_.h("label",{class:`${$.value}__label`,attrs:{id:h.value.id}},[h.value.label])])}}),Ul=()=>{const s=ie();return _.computed(()=>be.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%"}}))},Nl=_.defineComponent({name:"TSelect",emits:["input","change","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,label:String,placeholder:String,helperText:String,value:null,fullWidth:Boolean,id:String},setup(s,{attrs:l,emit:a,slots:h}){const g=_.computed(()=>ne.merge({},s,l)),S=ie(),w=Ul(),R=_.computed(()=>[w.value,`${w.value}__container`,{[`${w.value}--error`]:g.value.error,[`${w.value}--full-width`]:g.value.fullWidth}]),$=H=>{a("input",H.target.value),a("change",H.target.value)},z=H=>{a("focus",H)},Y=H=>{a("blur",H)};return()=>{var H;return _.h("div",{class:R.value},[g.value.label&&_.h("label",{class:`${w.value}__label`,attrs:{for:g.value.id}},[g.value.label]),_.h("div",{class:`${w.value}__wrapper`},[g.value.leftIcon&&_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${g.value.leftIcon}`},class:[`${w.value}__icon`,`${w.value}__icon--left`]}),_.h("select",En([{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:$,focus:z,blur:Y}},l]),[g.value.placeholder&&_.h("option",{attrs:{value:"",disabled:!0,selected:!0},class:`${w.value}__placeholder`},[g.value.placeholder]),(H=h.default)==null?void 0:H.call(h)])]),g.value.helperText&&_.h("p",{class:`${w.value}__helper-text`},[g.value.helperText])])}}}),Gl=()=>{const s=ie();return _.computed(()=>be.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"}}))},ql={position:"right",size:"medium"},Kl=_.defineComponent({name:"TTooltip",props:{label:String,position:String,multilined:Boolean,size:String},setup(s,{slots:l,attrs:a}){const h=_.computed(()=>ne.merge({},ql,s,a)),g=Gl(),S=_.computed(()=>[g.value,`${g.value}--${h.value.position}`,{[`${g.value}--multilined`]:h.value.multilined,[`${g.value}--${h.value.size}`]:h.value.multilined}]);return()=>{var w,R;return _.h("div",{class:S.value},[(w=l.default)==null?void 0:w.call(l),_.h("div",{attrs:{role:"tooltip"},class:`${g.value}__tooltip`},[((R=l.label)==null?void 0:R.call(l))||h.value.label])])}}}),Yl={color:"#000",size:"medium",variant:"outline"},Zl=_.defineComponent({name:"TIcon",props:{icon:{type:String,required:!0},color:String,size:String,variant:String},setup(s,{attrs:l}){const a=_.computed(()=>ne.merge({},Yl,s,l)),h=ie(),g=_.computed(()=>ne.get(h.value.colors,a.value.color)||a.value.color),S=_.computed(()=>`${h.value.iconSet}:${a.value.icon}${a.value.variant==="solid"?"-solid":""}`),w={miniature:"0.375em","extra-small":"0.625em",small:"1em",medium:"1.25em",large:"1.5em","extra-large":"1.75em"},R=_.computed(()=>w[a.value.size]);return()=>_.h(We.Icon,{attrs:{icon:S.value,color:g.value,height:R.value,width:R.value}})}}),Xl=()=>{const s=ie();return _.computed(()=>be.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"}}))},Jl={variant:"primary",size:"medium"},Ql=_.defineComponent({name:"TButton",props:{variant:String,size:String,href:String,leftIcon:String,rightIcon:String},setup(s,{attrs:l,slots:a}){const h=_.computed(()=>ne.merge({},Jl,s,l)),g=Xl(),S=ie(),w=_.computed(()=>[g.value,`${g.value}--${h.value.variant}`,`${g.value}--${h.value.size}`]);return()=>_.h("a",En([{class:w.value,attrs:{href:h.value.href}},l]),[h.value.leftIcon?_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.leftIcon}`}}):null,a.default?a.default():null,h.value.rightIcon?_.h(We.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.rightIcon}`}}):null])}}),Vl=()=>{const s=ie(),l=s.value.colors.gray.light1,a=(g,S)=>{switch(S){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"/>
|