toku-ui 0.18.2 → 0.18.3
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/TTextInput/TTextInput.d.ts +2 -2
- package/dist/components/TTextInput/TTextInput.d.ts.map +1 -1
- package/dist/components/TTextInput/TTextInput.types.d.ts +0 -1
- package/dist/components/TTextInput/TTextInput.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 Vu(){for(var s=arguments.length,l=new Array(s),a=0;a<s;a++)l[a]=arguments[a];var h=l[0],d=[],S;for(S=1;S<l.length;S+=1)d.push(l[S]);return d.forEach(function(w){h=h.replace(/%[a-z]/,w)}),h}var Ge=function(s){Zu(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 d=arguments.length,S=new Array(d>1?d-1:0),w=1;w<d;w++)S[w-1]=arguments[w];h=s.call(this,Vu.apply(void 0,[Qu[a]].concat(S)))||this}return Yu(h)}return l}(wr(Error));function Sr(s){return Math.round(s*255)}function ju(s,l,a){return Sr(s)+","+Sr(l)+","+Sr(a)}function jn(s,l,a,h){if(h===void 0&&(h=ju),l===0)return h(a,a,a);var d=(s%360+360)%360/60,S=(1-Math.abs(2*a-1))*l,w=S*(1-Math.abs(d%2-1)),A=0,R=0,O=0;d>=0&&d<1?(A=S,R=w):d>=1&&d<2?(A=w,R=S):d>=2&&d<3?(R=S,O=w):d>=3&&d<4?(R=w,O=S):d>=4&&d<5?(A=w,O=S):d>=5&&d<6&&(A=S,O=w);var z=a-S/2,D=A+z,J=R+z,ue=O+z;return h(D,J,ue)}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 el(s){if(typeof s!="string")return s;var l=s.toLowerCase();return Qi[l]?"#"+Qi[l]:s}var nl=/^#[a-fA-F0-9]{6}$/,tl=/^#[a-fA-F0-9]{8}$/,rl=/^#[a-fA-F0-9]{3}$/,il=/^#[a-fA-F0-9]{4}$/,Cr=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,al=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ol=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ul=/^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 Ge(3);var l=el(s);if(l.match(nl))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(tl)){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(rl))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(il)){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 d=Cr.exec(l);if(d)return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)};var S=al.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=ol.exec(l);if(w){var A=parseInt(""+w[1],10),R=parseInt(""+w[2],10)/100,O=parseInt(""+w[3],10)/100,z="rgb("+jn(A,R,O)+")",D=Cr.exec(z);if(!D)throw new Ge(4,l,z);return{red:parseInt(""+D[1],10),green:parseInt(""+D[2],10),blue:parseInt(""+D[3],10)}}var J=ul.exec(l.substring(0,50));if(J){var ue=parseInt(""+J[1],10),j=parseInt(""+J[2],10)/100,Ve=parseInt(""+J[3],10)/100,le="rgb("+jn(ue,j,Ve)+")",_e=Cr.exec(le);if(!_e)throw new Ge(4,l,le);return{red:parseInt(""+_e[1],10),green:parseInt(""+_e[2],10),blue:parseInt(""+_e[3],10),alpha:parseFloat(""+J[4])>1?parseFloat(""+J[4])/100:parseFloat(""+J[4])}}throw new Ge(5)}function ll(s){var l=s.red/255,a=s.green/255,h=s.blue/255,d=Math.max(l,a,h),S=Math.min(l,a,h),w=(d+S)/2;if(d===S)return s.alpha!==void 0?{hue:0,saturation:0,lightness:w,alpha:s.alpha}:{hue:0,saturation:0,lightness:w};var A,R=d-S,O=w>.5?R/(2-d-S):R/(d+S);switch(d){case l:A=(a-h)/R+(a<h?6:0);break;case a:A=(h-l)/R+2;break;default:A=(l-a)/R+4;break}return A*=60,s.alpha!==void 0?{hue:A,saturation:O,lightness:w,alpha:s.alpha}:{hue:A,saturation:O,lightness:w}}function ji(s){return ll(Vi(s))}var sl=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=sl;function xn(s){var l=s.toString(16);return l.length===1?"0"+l:l}function Tr(s){return xn(Math.round(s*255))}function fl(s,l,a){return Ir("#"+Tr(s)+Tr(l)+Tr(a))}function It(s,l,a){return jn(s,l,a,fl)}function cl(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 Ge(1)}function hl(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 Ge(2)}function Ar(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return Ir("#"+xn(s)+xn(l)+xn(a));if(typeof s=="object"&&l===void 0&&a===void 0)return Ir("#"+xn(s.red)+xn(s.green)+xn(s.blue));throw new Ge(6)}function pl(s,l,a,h){if(typeof s=="string"&&typeof l=="number"){var d=Vi(s);return"rgba("+d.red+","+d.green+","+d.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 Ge(7)}var dl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},gl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&typeof l.alpha=="number"},ml=function(l){return typeof l.hue=="number"&&typeof l.saturation=="number"&&typeof l.lightness=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},vl=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 Ge(8);if(gl(s))return pl(s);if(dl(s))return Ar(s);if(vl(s))return hl(s);if(ml(s))return cl(s);throw new Ge(8)}function na(s,l,a){return function(){var d=a.concat(Array.prototype.slice.call(arguments));return d.length>=l?s.apply(this,d):na(s,l,d)}}function ta(s){return na(s,s.length,[])}function ra(s,l,a){return Math.max(s,Math.min(l,a))}function _l(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness-parseFloat(s))}))}var bl=ta(_l),ia=bl;function yl(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness+parseFloat(s))}))}var xl=ta(yl),Qe=xl;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"},wl=s=>{var h,d;const l=ne.merge(Tt,s),a=(d=(h=s.colors)==null?void 0:h.primary)==null?void 0:d.main;return a&&(l.colors.primary.ultraDark=ia(.15,a),l.colors.primary.dark=a,l.colors.primary.toku=Qe(.1,a),l.colors.primary.light1=Qe(.15,a),l.colors.primary.light2=Qe(.2,a),l.colors.primary.light3=Qe(.25,a),l.colors.primary.light4=Qe(.3,a),l.colors.primary.light5=Qe(.35,a)),l},Rr=Symbol("theme"),ie=()=>{const s=v.inject(Rr,void 0);return v.computed(()=>(s==null?void 0:s.value)??Tt)},Sl=s=>ne.camelCase(s),Cl=s=>{const l=ie(),a=v.computed(()=>Sl(s.value)),h=v.computed(()=>a.value==="primary"?l.value.colors.primary.ultraDark:ia(.15,l.value.colors[a.value])),d=v.computed(()=>a.value==="primary"?l.value.colors.primary.main:l.value.colors[a.value]),S=v.computed(()=>a.value==="primary"?l.value.colors.primary.light1:Qe(.15,l.value.colors[a.value])),w=v.computed(()=>a.value==="primary"?l.value.colors.primary.light2:Qe(.2,l.value.colors[a.value])),A=v.computed(()=>a.value==="primary"?l.value.colors.primary.light3:Qe(.25,l.value.colors[a.value]));return v.computed(()=>ve.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:d.value,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${d.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 ${d.value}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:d.value,"&:hover:not(&:disabled)":{backgroundColor:A.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:d.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:d.value}}))},Il={variant:"primary",size:"medium",type:"button",color:"primary"},Tl=v.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 d=v.computed(()=>ne.merge({},Il,s,l)),S=v.computed(()=>d.value.color),w=Cl(S),A=ie(),R=v.computed(()=>[w.value,`${w.value}--${d.value.variant}`,`${w.value}--${d.value.size}`,{[`${w.value}--full-width`]:d.value.fullWidth,[`${w.value}--loading`]:d.value.loading}]),O=()=>{d.value.loading||h("click")};return()=>{var z;return v.h("button",Pn([{class:R.value,attrs:{type:d.value.type,disabled:d.value.disabled},on:{click:O}},l]),[d.value.leftIcon&&v.h(ze.Icon,{attrs:{icon:`${A.value.iconSet}:${d.value.leftIcon}`}}),(z=a.default)==null?void 0:z.call(a),d.value.rightIcon&&v.h(ze.Icon,{attrs:{icon:`${A.value.iconSet}:${d.value.rightIcon}`}}),d.value.loading&&v.h(ze.Icon,{class:`${w.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}})])}}}),Al=v.defineComponent({name:"TThemeProvider",props:{theme:{type:Object,default:()=>{}}},setup(s,{slots:l}){const a=v.computed(()=>ne.merge(Tt,s.theme));return v.provide(Rr,a),()=>{var h;return(h=l.default)==null?void 0:h.call(l)}}}),Rl=()=>{const s=ie();return v.computed(()=>ve.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"}}))},$l={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"},Fl={fontStyle:"normal",fontWeight:"regular",variant:"b0"},El=v.defineComponent({name:"TTypography",props:{fontStyle:String,fontWeight:String,variant:String},setup(s,{attrs:l,slots:a}){const h=v.computed(()=>ne.merge({},Fl,s,l)),d=Rl(),S=v.computed(()=>[d.value,`${d.value}--${h.value.variant}`,`${d.value}--${h.value.fontWeight}`,`${d.value}--${h.value.fontStyle}`]),w=v.computed(()=>$l[h.value.variant]);return()=>v.h(w.value,{class:S.value},a.default?a.default():null)}}),Pl=()=>{const s=ie();return v.computed(()=>ve.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)"}}}))},Ol={size:"auto"},aa=v.defineComponent({name:"TSpinner",props:{size:String},setup(s,{attrs:l}){const a=v.computed(()=>ne.merge({},Ol,s,l)),h=Pl(),d=v.computed(()=>[h.value,`${h.value}--${a.value.size}`]);return()=>v.h("div",{class:d.value})}}),Ll=()=>{const s=ie(),l=v.computed(()=>ve.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=v.computed(()=>ve.css({margin:0,padding:0,"&--large":{height:"1.25rem"},"&--medium":{height:"1.25rem"},"&--small":{height:"1rem"}}));return{baseClass:l,iconClass:a}},Wl={variant:"primary",size:"medium",icon:"academic-cap",type:"button"},Bl=v.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=v.computed(()=>ne.merge({},Wl,s,l)),{baseClass:d,iconClass:S}=Ll(),w=ie(),A=v.computed(()=>[d.value,`${d.value}--${h.value.variant}`,`${d.value}--${h.value.size}`,{[`${d.value}--rounded`]:h.value.rounded}]),R=v.computed(()=>[S.value,`${S.value}--${h.value.variant}`,`${S.value}--${h.value.size}`,{[`${d.value}--loading`]:h.value.loading}]),O=()=>{h.value.loading||a("click")};return()=>v.h("button",Pn([{class:A.value,attrs:{type:h.value.type,disabled:h.value.disabled},on:{click:O}},l]),[h.value.loading?v.h(ze.Icon,{class:`${d.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}}):v.h(ze.Icon,{attrs:{icon:`${w.value.iconSet}:${h.value.icon}`},class:R.value})])}}),zl=()=>{const s=ie();return v.computed(()=>ve.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%"}}))},kl={type:"text"},Dl=v.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,maxlength:[String,Number]},setup(s,{attrs:l,emit:a,slots:h}){const d=v.computed(()=>ne.merge({},kl,s,l)),S=zl(),w=ie(),A=z=>{a("input",z.target.value),a("change",z.target.value)},R=z=>{a("focus",z)},O=z=>{a("blur",z)};return()=>{var z,D;return v.h("div",{class:[S.value,`${S.value}__container`,{[`${S.value}--error`]:d.value.error,[`${S.value}--full-width`]:d.value.fullWidth}]},[((z=h.label)==null?void 0:z.call(h))||d.value.label&&v.h("label",{class:[`${S.value}__label`],attrs:{for:d.value.id}},[d.value.label]),v.h("div",{class:`${S.value}__input-wrapper`},[d.value.leftIcon&&v.h(ze.Icon,{attrs:{icon:`${w.value.iconSet}:${d.value.leftIcon}`},class:[`${S.value}__icon`,`${S.value}__icon--left`]}),v.h("input",Pn([{},l,{attrs:{id:d.value.id,type:d.value.type,placeholder:d.value.placeholder,disabled:d.value.disabled,maxlength:d.value.maxlength},class:[`${S.value}__input`,{[`${S.value}__input--left-icon`]:d.value.leftIcon,[`${S.value}__input--right-icon`]:d.value.rightIcon}],domProps:{value:d.value.value},on:{input:A,focus:R,blur:O}}])),d.value.rightIcon&&v.h(ze.Icon,{attrs:{icon:`${w.value.iconSet}:${d.value.rightIcon}`},class:[`${S.value}__icon`,`${S.value}__icon--right`]})]),((D=h.helperText)==null?void 0:D.call(h))||d.value.helperText&&v.h("p",{class:`${S.value}__helper-text`},[d.value.helperText])])}}}),Ml=()=>{const s=ie();return v.computed(()=>ve.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=v.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=v.computed(()=>ne.merge({},Hl,s,l)),d=v.ref(h.value.value);v.watch(()=>h.value.value,()=>{d.value=h.value.value});const S=()=>{a("change",!d.value),a("input",!d.value),d.value=!d.value},w=z=>{h.value.disabled?z==null||z.preventDefault():S()},A=z=>{const{key:D}=z;h.value.disabled||D!=="Enter"&&D!==" "?z.preventDefault():S()},R=Ml(),O=v.computed(()=>[R.value,`${R.value}--label-${h.value.labelPosition}`,{[`${R.value}--checked`]:d.value,[`${R.value}--disabled`]:h.value.disabled}]);return()=>v.h("div",{class:O.value,attrs:{role:"switch","aria-checked":d.value,"aria-disabled":h.value.disabled,"aria-labelledby":h.value.id,tabindex:0},on:{click:w,keydown:A}},[v.h("div",{class:`${R.value}__switch`}),h.value.label&&v.h("label",{class:`${R.value}__label`,attrs:{id:h.value.id}},[h.value.label])])}}),Nl=()=>{const s=ie();return v.computed(()=>ve.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=v.defineComponent({name:"TSelect",emits:["input","change","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,label:String,placeholder:String,helperText:String,value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},fullWidth:Boolean,id:String},setup(s,{attrs:l,emit:a,slots:h}){const d=v.computed(()=>ne.merge({},s,l)),S=ie(),w=Nl(),A=v.computed(()=>[w.value,`${w.value}__container`,{[`${w.value}--error`]:d.value.error,[`${w.value}--full-width`]:d.value.fullWidth}]),R=D=>{var j,Ve,le;const J=D.target.options.selectedIndex,ue=(le=(Ve=(j=h.default)==null?void 0:j.call(h).filter(({tag:_e})=>_e==="option")[J].data)==null?void 0:Ve.domProps)==null?void 0:le.value;a("input",ue),a("change",ue)},O=D=>{a("focus",D)},z=D=>{a("blur",D)};return()=>{var D,J,ue;return v.h("div",{class:A.value},[((D=h.label)==null?void 0:D.call(h))||d.value.label&&v.h("label",{class:`${w.value}__label`,attrs:{for:d.value.id}},[d.value.label]),v.h("div",{class:`${w.value}__wrapper`},[d.value.leftIcon&&v.h(ze.Icon,{attrs:{icon:`${S.value.iconSet}:${d.value.leftIcon}`},class:[`${w.value}__icon`,`${w.value}__icon--left`]}),v.h("select",Pn([{class:[`${w.value}__select`,{[`${w.value}__select--left-icon`]:d.value.leftIcon}],attrs:{disabled:d.value.disabled,id:d.value.id},domProps:{value:d.value.value},on:{input:R,focus:O,blur:z}},l]),[d.value.placeholder&&v.h("option",{attrs:{value:"",disabled:!0,selected:!0},class:`${w.value}__placeholder`},[d.value.placeholder]),(J=h.default)==null?void 0:J.call(h)])]),((ue=h.helperText)==null?void 0:ue.call(h))||d.value.helperText&&v.h("p",{class:`${w.value}__helper-text`},[d.value.helperText])])}}}),ql=()=>{const s=ie();return v.computed(()=>ve.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=v.defineComponent({name:"TTooltip",props:{label:String,position:String,multilined:Boolean,size:String},setup(s,{slots:l,attrs:a}){const h=v.computed(()=>ne.merge({},Kl,s,a)),d=ql(),S=v.computed(()=>[d.value,`${d.value}--${h.value.position}`,{[`${d.value}--multilined`]:h.value.multilined,[`${d.value}--${h.value.size}`]:h.value.multilined}]);return()=>{var w,A;return v.h("div",{class:S.value},[(w=l.default)==null?void 0:w.call(l),v.h("div",{attrs:{role:"tooltip"},class:`${d.value}__tooltip`},[((A=l.label)==null?void 0:A.call(l))||h.value.label])])}}}),Zl={color:"#000",size:"medium",variant:"outline"},oa=v.defineComponent({name:"TIcon",props:{icon:{type:String,required:!0},color:String,size:String,variant:String},setup(s,{attrs:l}){const a=v.computed(()=>ne.merge({},Zl,s,l)),h=ie(),d=v.computed(()=>ne.get(h.value.colors,a.value.color)||a.value.color),S=v.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"},A=v.computed(()=>w[a.value.size]);return()=>v.h(ze.Icon,{attrs:{icon:S.value,color:d.value,height:A.value,width:A.value}})}}),Xl=()=>{const s=ie();return v.computed(()=>ve.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=v.defineComponent({name:"TButton",props:{variant:String,size:String,href:String,leftIcon:String,rightIcon:String},setup(s,{attrs:l,slots:a}){const h=v.computed(()=>ne.merge({},Jl,s,l)),d=Xl(),S=ie(),w=v.computed(()=>[d.value,`${d.value}--${h.value.variant}`,`${d.value}--${h.value.size}`]);return()=>v.h("a",Pn([{class:w.value,attrs:{href:h.value.href}},l]),[h.value.leftIcon?v.h(ze.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.leftIcon}`}}):null,a.default?a.default():null,h.value.rightIcon?v.h(ze.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.rightIcon}`}}):null])}}),Vl=()=>{const s=ie(),l=s.value.colors.gray.light1,a=(d,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 Vu(){for(var s=arguments.length,l=new Array(s),a=0;a<s;a++)l[a]=arguments[a];var h=l[0],d=[],S;for(S=1;S<l.length;S+=1)d.push(l[S]);return d.forEach(function(w){h=h.replace(/%[a-z]/,w)}),h}var Ge=function(s){Zu(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 d=arguments.length,S=new Array(d>1?d-1:0),w=1;w<d;w++)S[w-1]=arguments[w];h=s.call(this,Vu.apply(void 0,[Qu[a]].concat(S)))||this}return Yu(h)}return l}(wr(Error));function Sr(s){return Math.round(s*255)}function ju(s,l,a){return Sr(s)+","+Sr(l)+","+Sr(a)}function jn(s,l,a,h){if(h===void 0&&(h=ju),l===0)return h(a,a,a);var d=(s%360+360)%360/60,S=(1-Math.abs(2*a-1))*l,w=S*(1-Math.abs(d%2-1)),A=0,R=0,O=0;d>=0&&d<1?(A=S,R=w):d>=1&&d<2?(A=w,R=S):d>=2&&d<3?(R=S,O=w):d>=3&&d<4?(R=w,O=S):d>=4&&d<5?(A=w,O=S):d>=5&&d<6&&(A=S,O=w);var z=a-S/2,D=A+z,J=R+z,ue=O+z;return h(D,J,ue)}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 el(s){if(typeof s!="string")return s;var l=s.toLowerCase();return Qi[l]?"#"+Qi[l]:s}var nl=/^#[a-fA-F0-9]{6}$/,tl=/^#[a-fA-F0-9]{8}$/,rl=/^#[a-fA-F0-9]{3}$/,il=/^#[a-fA-F0-9]{4}$/,Cr=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,al=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ol=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ul=/^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 Ge(3);var l=el(s);if(l.match(nl))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(tl)){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(rl))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(il)){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 d=Cr.exec(l);if(d)return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)};var S=al.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=ol.exec(l);if(w){var A=parseInt(""+w[1],10),R=parseInt(""+w[2],10)/100,O=parseInt(""+w[3],10)/100,z="rgb("+jn(A,R,O)+")",D=Cr.exec(z);if(!D)throw new Ge(4,l,z);return{red:parseInt(""+D[1],10),green:parseInt(""+D[2],10),blue:parseInt(""+D[3],10)}}var J=ul.exec(l.substring(0,50));if(J){var ue=parseInt(""+J[1],10),j=parseInt(""+J[2],10)/100,Ve=parseInt(""+J[3],10)/100,le="rgb("+jn(ue,j,Ve)+")",_e=Cr.exec(le);if(!_e)throw new Ge(4,l,le);return{red:parseInt(""+_e[1],10),green:parseInt(""+_e[2],10),blue:parseInt(""+_e[3],10),alpha:parseFloat(""+J[4])>1?parseFloat(""+J[4])/100:parseFloat(""+J[4])}}throw new Ge(5)}function ll(s){var l=s.red/255,a=s.green/255,h=s.blue/255,d=Math.max(l,a,h),S=Math.min(l,a,h),w=(d+S)/2;if(d===S)return s.alpha!==void 0?{hue:0,saturation:0,lightness:w,alpha:s.alpha}:{hue:0,saturation:0,lightness:w};var A,R=d-S,O=w>.5?R/(2-d-S):R/(d+S);switch(d){case l:A=(a-h)/R+(a<h?6:0);break;case a:A=(h-l)/R+2;break;default:A=(l-a)/R+4;break}return A*=60,s.alpha!==void 0?{hue:A,saturation:O,lightness:w,alpha:s.alpha}:{hue:A,saturation:O,lightness:w}}function ji(s){return ll(Vi(s))}var sl=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=sl;function xn(s){var l=s.toString(16);return l.length===1?"0"+l:l}function Tr(s){return xn(Math.round(s*255))}function fl(s,l,a){return Ir("#"+Tr(s)+Tr(l)+Tr(a))}function It(s,l,a){return jn(s,l,a,fl)}function cl(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 Ge(1)}function hl(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 Ge(2)}function Ar(s,l,a){if(typeof s=="number"&&typeof l=="number"&&typeof a=="number")return Ir("#"+xn(s)+xn(l)+xn(a));if(typeof s=="object"&&l===void 0&&a===void 0)return Ir("#"+xn(s.red)+xn(s.green)+xn(s.blue));throw new Ge(6)}function pl(s,l,a,h){if(typeof s=="string"&&typeof l=="number"){var d=Vi(s);return"rgba("+d.red+","+d.green+","+d.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 Ge(7)}var dl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},gl=function(l){return typeof l.red=="number"&&typeof l.green=="number"&&typeof l.blue=="number"&&typeof l.alpha=="number"},ml=function(l){return typeof l.hue=="number"&&typeof l.saturation=="number"&&typeof l.lightness=="number"&&(typeof l.alpha!="number"||typeof l.alpha>"u")},vl=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 Ge(8);if(gl(s))return pl(s);if(dl(s))return Ar(s);if(vl(s))return hl(s);if(ml(s))return cl(s);throw new Ge(8)}function na(s,l,a){return function(){var d=a.concat(Array.prototype.slice.call(arguments));return d.length>=l?s.apply(this,d):na(s,l,d)}}function ta(s){return na(s,s.length,[])}function ra(s,l,a){return Math.max(s,Math.min(l,a))}function _l(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness-parseFloat(s))}))}var bl=ta(_l),ia=bl;function yl(s,l){if(l==="transparent")return l;var a=ji(l);return ea(St({},a,{lightness:ra(0,1,a.lightness+parseFloat(s))}))}var xl=ta(yl),Qe=xl;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"},wl=s=>{var h,d;const l=ne.merge(Tt,s),a=(d=(h=s.colors)==null?void 0:h.primary)==null?void 0:d.main;return a&&(l.colors.primary.ultraDark=ia(.15,a),l.colors.primary.dark=a,l.colors.primary.toku=Qe(.1,a),l.colors.primary.light1=Qe(.15,a),l.colors.primary.light2=Qe(.2,a),l.colors.primary.light3=Qe(.25,a),l.colors.primary.light4=Qe(.3,a),l.colors.primary.light5=Qe(.35,a)),l},Rr=Symbol("theme"),ie=()=>{const s=v.inject(Rr,void 0);return v.computed(()=>(s==null?void 0:s.value)??Tt)},Sl=s=>ne.camelCase(s),Cl=s=>{const l=ie(),a=v.computed(()=>Sl(s.value)),h=v.computed(()=>a.value==="primary"?l.value.colors.primary.ultraDark:ia(.15,l.value.colors[a.value])),d=v.computed(()=>a.value==="primary"?l.value.colors.primary.main:l.value.colors[a.value]),S=v.computed(()=>a.value==="primary"?l.value.colors.primary.light1:Qe(.15,l.value.colors[a.value])),w=v.computed(()=>a.value==="primary"?l.value.colors.primary.light2:Qe(.2,l.value.colors[a.value])),A=v.computed(()=>a.value==="primary"?l.value.colors.primary.light3:Qe(.25,l.value.colors[a.value]));return v.computed(()=>ve.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:d.value,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",border:`1px solid ${d.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 ${d.value}`,boxShadow:"0px 0px 8px 0px rgba(0, 0, 0, 0.1)",color:d.value,"&:hover:not(&:disabled)":{backgroundColor:A.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:d.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:d.value}}))},Il={variant:"primary",size:"medium",type:"button",color:"primary"},Tl=v.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 d=v.computed(()=>ne.merge({},Il,s,l)),S=v.computed(()=>d.value.color),w=Cl(S),A=ie(),R=v.computed(()=>[w.value,`${w.value}--${d.value.variant}`,`${w.value}--${d.value.size}`,{[`${w.value}--full-width`]:d.value.fullWidth,[`${w.value}--loading`]:d.value.loading}]),O=()=>{d.value.loading||h("click")};return()=>{var z;return v.h("button",Pn([{class:R.value,attrs:{type:d.value.type,disabled:d.value.disabled},on:{click:O}},l]),[d.value.leftIcon&&v.h(ze.Icon,{attrs:{icon:`${A.value.iconSet}:${d.value.leftIcon}`}}),(z=a.default)==null?void 0:z.call(a),d.value.rightIcon&&v.h(ze.Icon,{attrs:{icon:`${A.value.iconSet}:${d.value.rightIcon}`}}),d.value.loading&&v.h(ze.Icon,{class:`${w.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}})])}}}),Al=v.defineComponent({name:"TThemeProvider",props:{theme:{type:Object,default:()=>{}}},setup(s,{slots:l}){const a=v.computed(()=>ne.merge(Tt,s.theme));return v.provide(Rr,a),()=>{var h;return(h=l.default)==null?void 0:h.call(l)}}}),Rl=()=>{const s=ie();return v.computed(()=>ve.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"}}))},$l={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"},Fl={fontStyle:"normal",fontWeight:"regular",variant:"b0"},El=v.defineComponent({name:"TTypography",props:{fontStyle:String,fontWeight:String,variant:String},setup(s,{attrs:l,slots:a}){const h=v.computed(()=>ne.merge({},Fl,s,l)),d=Rl(),S=v.computed(()=>[d.value,`${d.value}--${h.value.variant}`,`${d.value}--${h.value.fontWeight}`,`${d.value}--${h.value.fontStyle}`]),w=v.computed(()=>$l[h.value.variant]);return()=>v.h(w.value,{class:S.value},a.default?a.default():null)}}),Pl=()=>{const s=ie();return v.computed(()=>ve.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)"}}}))},Ol={size:"auto"},aa=v.defineComponent({name:"TSpinner",props:{size:String},setup(s,{attrs:l}){const a=v.computed(()=>ne.merge({},Ol,s,l)),h=Pl(),d=v.computed(()=>[h.value,`${h.value}--${a.value.size}`]);return()=>v.h("div",{class:d.value})}}),Ll=()=>{const s=ie(),l=v.computed(()=>ve.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=v.computed(()=>ve.css({margin:0,padding:0,"&--large":{height:"1.25rem"},"&--medium":{height:"1.25rem"},"&--small":{height:"1rem"}}));return{baseClass:l,iconClass:a}},Wl={variant:"primary",size:"medium",icon:"academic-cap",type:"button"},Bl=v.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=v.computed(()=>ne.merge({},Wl,s,l)),{baseClass:d,iconClass:S}=Ll(),w=ie(),A=v.computed(()=>[d.value,`${d.value}--${h.value.variant}`,`${d.value}--${h.value.size}`,{[`${d.value}--rounded`]:h.value.rounded}]),R=v.computed(()=>[S.value,`${S.value}--${h.value.variant}`,`${S.value}--${h.value.size}`,{[`${d.value}--loading`]:h.value.loading}]),O=()=>{h.value.loading||a("click")};return()=>v.h("button",Pn([{class:A.value,attrs:{type:h.value.type,disabled:h.value.disabled},on:{click:O}},l]),[h.value.loading?v.h(ze.Icon,{class:`${d.value}__spinner`,attrs:{icon:"svg-spinners:90-ring-with-bg"}}):v.h(ze.Icon,{attrs:{icon:`${w.value.iconSet}:${h.value.icon}`},class:R.value})])}}),zl=()=>{const s=ie();return v.computed(()=>ve.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%"}}))},kl={type:"text"},Dl=v.defineComponent({name:"TTextInput",emits:["input","change","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,rightIcon:String,label:String,placeholder:String,helperText:String,value:[Number,String,Date],fullWidth:Boolean,id:String,type:String,maxlength:[String,Number]},setup(s,{attrs:l,emit:a,slots:h}){const d=v.computed(()=>ne.merge({},kl,s,l)),S=zl(),w=ie(),A=z=>{a("input",z.target.value),a("change",z.target.value)},R=z=>{a("focus",z)},O=z=>{a("blur",z)};return()=>{var z,D;return v.h("div",{class:[S.value,`${S.value}__container`,{[`${S.value}--error`]:d.value.error,[`${S.value}--full-width`]:d.value.fullWidth}]},[((z=h.label)==null?void 0:z.call(h))||d.value.label&&v.h("label",{class:[`${S.value}__label`],attrs:{for:d.value.id}},[d.value.label]),v.h("div",{class:`${S.value}__input-wrapper`},[d.value.leftIcon&&v.h(ze.Icon,{attrs:{icon:`${w.value.iconSet}:${d.value.leftIcon}`},class:[`${S.value}__icon`,`${S.value}__icon--left`]}),v.h("input",Pn([{},l,{attrs:{id:d.value.id,type:d.value.type,placeholder:d.value.placeholder,disabled:d.value.disabled,maxlength:d.value.maxlength},class:[`${S.value}__input`,{[`${S.value}__input--left-icon`]:d.value.leftIcon,[`${S.value}__input--right-icon`]:d.value.rightIcon}],domProps:{value:d.value.value},on:{input:A,focus:R,blur:O}}])),d.value.rightIcon&&v.h(ze.Icon,{attrs:{icon:`${w.value.iconSet}:${d.value.rightIcon}`},class:[`${S.value}__icon`,`${S.value}__icon--right`]})]),((D=h.helperText)==null?void 0:D.call(h))||d.value.helperText&&v.h("p",{class:`${S.value}__helper-text`},[d.value.helperText])])}}}),Ml=()=>{const s=ie();return v.computed(()=>ve.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=v.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=v.computed(()=>ne.merge({},Hl,s,l)),d=v.ref(h.value.value);v.watch(()=>h.value.value,()=>{d.value=h.value.value});const S=()=>{a("change",!d.value),a("input",!d.value),d.value=!d.value},w=z=>{h.value.disabled?z==null||z.preventDefault():S()},A=z=>{const{key:D}=z;h.value.disabled||D!=="Enter"&&D!==" "?z.preventDefault():S()},R=Ml(),O=v.computed(()=>[R.value,`${R.value}--label-${h.value.labelPosition}`,{[`${R.value}--checked`]:d.value,[`${R.value}--disabled`]:h.value.disabled}]);return()=>v.h("div",{class:O.value,attrs:{role:"switch","aria-checked":d.value,"aria-disabled":h.value.disabled,"aria-labelledby":h.value.id,tabindex:0},on:{click:w,keydown:A}},[v.h("div",{class:`${R.value}__switch`}),h.value.label&&v.h("label",{class:`${R.value}__label`,attrs:{id:h.value.id}},[h.value.label])])}}),Nl=()=>{const s=ie();return v.computed(()=>ve.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=v.defineComponent({name:"TSelect",emits:["input","change","focus","blur"],props:{error:Boolean,disabled:Boolean,leftIcon:String,label:String,placeholder:String,helperText:String,value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},fullWidth:Boolean,id:String},setup(s,{attrs:l,emit:a,slots:h}){const d=v.computed(()=>ne.merge({},s,l)),S=ie(),w=Nl(),A=v.computed(()=>[w.value,`${w.value}__container`,{[`${w.value}--error`]:d.value.error,[`${w.value}--full-width`]:d.value.fullWidth}]),R=D=>{var j,Ve,le;const J=D.target.options.selectedIndex,ue=(le=(Ve=(j=h.default)==null?void 0:j.call(h).filter(({tag:_e})=>_e==="option")[J].data)==null?void 0:Ve.domProps)==null?void 0:le.value;a("input",ue),a("change",ue)},O=D=>{a("focus",D)},z=D=>{a("blur",D)};return()=>{var D,J,ue;return v.h("div",{class:A.value},[((D=h.label)==null?void 0:D.call(h))||d.value.label&&v.h("label",{class:`${w.value}__label`,attrs:{for:d.value.id}},[d.value.label]),v.h("div",{class:`${w.value}__wrapper`},[d.value.leftIcon&&v.h(ze.Icon,{attrs:{icon:`${S.value.iconSet}:${d.value.leftIcon}`},class:[`${w.value}__icon`,`${w.value}__icon--left`]}),v.h("select",Pn([{class:[`${w.value}__select`,{[`${w.value}__select--left-icon`]:d.value.leftIcon}],attrs:{disabled:d.value.disabled,id:d.value.id},domProps:{value:d.value.value},on:{input:R,focus:O,blur:z}},l]),[d.value.placeholder&&v.h("option",{attrs:{value:"",disabled:!0,selected:!0},class:`${w.value}__placeholder`},[d.value.placeholder]),(J=h.default)==null?void 0:J.call(h)])]),((ue=h.helperText)==null?void 0:ue.call(h))||d.value.helperText&&v.h("p",{class:`${w.value}__helper-text`},[d.value.helperText])])}}}),ql=()=>{const s=ie();return v.computed(()=>ve.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=v.defineComponent({name:"TTooltip",props:{label:String,position:String,multilined:Boolean,size:String},setup(s,{slots:l,attrs:a}){const h=v.computed(()=>ne.merge({},Kl,s,a)),d=ql(),S=v.computed(()=>[d.value,`${d.value}--${h.value.position}`,{[`${d.value}--multilined`]:h.value.multilined,[`${d.value}--${h.value.size}`]:h.value.multilined}]);return()=>{var w,A;return v.h("div",{class:S.value},[(w=l.default)==null?void 0:w.call(l),v.h("div",{attrs:{role:"tooltip"},class:`${d.value}__tooltip`},[((A=l.label)==null?void 0:A.call(l))||h.value.label])])}}}),Zl={color:"#000",size:"medium",variant:"outline"},oa=v.defineComponent({name:"TIcon",props:{icon:{type:String,required:!0},color:String,size:String,variant:String},setup(s,{attrs:l}){const a=v.computed(()=>ne.merge({},Zl,s,l)),h=ie(),d=v.computed(()=>ne.get(h.value.colors,a.value.color)||a.value.color),S=v.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"},A=v.computed(()=>w[a.value.size]);return()=>v.h(ze.Icon,{attrs:{icon:S.value,color:d.value,height:A.value,width:A.value}})}}),Xl=()=>{const s=ie();return v.computed(()=>ve.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=v.defineComponent({name:"TButton",props:{variant:String,size:String,href:String,leftIcon:String,rightIcon:String},setup(s,{attrs:l,slots:a}){const h=v.computed(()=>ne.merge({},Jl,s,l)),d=Xl(),S=ie(),w=v.computed(()=>[d.value,`${d.value}--${h.value.variant}`,`${d.value}--${h.value.size}`]);return()=>v.h("a",Pn([{class:w.value,attrs:{href:h.value.href}},l]),[h.value.leftIcon?v.h(ze.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.leftIcon}`}}):null,a.default?a.default():null,h.value.rightIcon?v.h(ze.Icon,{attrs:{icon:`${S.value.iconSet}:${h.value.rightIcon}`}}):null])}}),Vl=()=>{const s=ie(),l=s.value.colors.gray.light1,a=(d,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="${d}" 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="${d}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|