lew-ui 1.0.13 → 1.0.14
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/README.md +23 -9
- package/dist/lew.es.ts +568 -127
- package/dist/lew.umd.ts +31 -7
- package/dist/style.css +1 -1
- package/package.json +4 -3
package/dist/lew.umd.ts
CHANGED
|
@@ -1,16 +1,40 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(T,o){typeof exports=="object"&&typeof module!="undefined"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(T=typeof globalThis!="undefined"?globalThis:T||self,o(T["lew-ui"]={},T.Vue))})(this,function(T,o){"use strict";var bi="",N=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const qn={class:"lew-avatar"},Gn=["src","alt"];var Xn=N(o.defineComponent({name:"LewAvatar",props:{round:{type:Boolean,default:!1},status:{type:String,default:""},statusPosition:{type:String,default:""},src:{type:String,default:""},alt:{type:String,default:""}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",qn,[o.createElementVNode("img",{src:e.src,class:o.normalizeClass({round:e.round}),alt:e.alt},null,10,Gn),e.status?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["dot",`dot-${e.status} dot-${e.statusPosition}`])},null,2)):o.createCommentVNode("v-if",!0)]))}}),[["__scopeId","data-v-303f2aca"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/general/LewAvatar.vue"]]),xi="",ki="";const Yn=["disabled"];var yt=N(o.defineComponent({name:"LewButton",props:{type:{type:String,default:"primary"},loading:{type:Boolean,default:!1},round:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("button",{class:o.normalizeClass(["lew-button",`lew-button-${e.type} ${e.round?"lew-button-round":""} ${e.disabled?"lew-button-disabled":""} ${e.loading?"lew-button-loading":""}`]),disabled:e.disabled},[o.renderSlot(t.$slots,"default",{},void 0,!0)],10,Yn))}}),[["__scopeId","data-v-15473bf4"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/general/LewButton.vue"]]);/*!
|
|
2
2
|
* vue-router v4.0.13
|
|
3
3
|
* (c) 2022 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const Rn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Nn=(e=>Rn?Symbol(e):"_vr_"+e)("r");var Tt;(function(e){e.pop="pop",e.push="push"})(Tt||(Tt={}));var Vt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Vt||(Vt={}));var Dt;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Dt||(Dt={}));function In(){return o.inject(Nn)}var ja="";const Mn=o.defineComponent({name:"LewBadge",props:{type:{type:String,default:"primary"},round:{type:Boolean,default:!1},bold:{type:Number,default:400},dot:{type:Boolean,default:!1},href:{type:String,default:""}},setup(e){const t=e,n=In(),r=()=>{t.href&&(t.href.includes("http")?window.open(t.href,"_blank"):n.push(t.href))};return(a,s)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["lew-badge",`${e.dot?"lew-badge-dot":""} ${e.round?"lew-badge-round":""} ${e.href?"lew-badge-href":""} lew-badge-${e.type} `]),style:o.normalizeStyle(` font-weight:${e.bold}`),onClick:s[0]||(s[0]=i=>r())},[o.renderSlot(a.$slots,"default")],6))}});var Pa="",zn=P(o.defineComponent({name:"LewTitle",props:{bold:{type:Number,default:600},size:{type:String,default:"24px"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-title",`${e.bold?"lew-title-bold":""}`]),style:o.normalizeStyle(`font-weight:${e.bold};font-size:${e.size}`)},[o.renderSlot(t.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-391c178e"]]),Wa="";const jn={class:"title-label"};var Pn=P(o.defineComponent({name:"LewFormItem",props:{title:{type:String,default:"\u6807\u9898"},direction:{type:String,default:"x"}},setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-form-item",`lew-form-item-${e.direction}`])},[o.createElementVNode("label",jn,o.toDisplayString(t.title),1),o.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-bd1d3568"]]),Ha="";const Fn=["disabled"];var Rt=P(o.defineComponent({name:"LewInput",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(n.modelValue);o.watch(()=>n.modelValue,()=>{r.value=n.modelValue});const a=s=>{let i=s.target.value;t("update:modelValue",i)};return(s,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c),class:"lew-input",disabled:n.disabled,placeholder:"\u8BF7\u8F93\u5165",onInput:a},null,40,Fn)),[[o.vModelText,r.value]])}}),[["__scopeId","data-v-1364aebe"]]),Xa="";const Wn={class:"lew-select"},Un=["onClick"];var Hn=P(o.defineComponent({name:"LewSelect",props:{modelValue:{type:String,default:""},options:{type:Array,default(){return[]}}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(""),a=o.ref("");o.onMounted(()=>{var p;a.value=(p=n.options.find(f=>f.value==n.modelValue))==null?void 0:p.label});let s=o.ref(!1);const i=()=>{s.value=!0},c=()=>{setTimeout(()=>{s.value=!1},150)},u=p=>{a.value=p.label,r.value==p.value,t("update:modelValue",p.value)};return(p,f)=>(o.openBlock(),o.createElementBlock("div",Wn,[o.createVNode(Rt,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=g=>a.value=g),placeholder:"\u8BF7\u9009\u62E9",onFocus:i,onBlur:c},null,8,["modelValue"]),o.createElementVNode("div",{class:o.normalizeClass(["options-box",{isShowOptions:o.unref(s)}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,g=>(o.openBlock(),o.createElementBlock("div",{key:g.value,class:"item",onClick:b=>u(g)},o.toDisplayString(g.label),9,Un))),128))],2)]))}}),[["__scopeId","data-v-63e71814"]]),Ga="";const qn=["disabled"];var Xn=P(o.defineComponent({name:"LewSwitch",props:{modelValue:{type:Boolean,default:()=>!1},round:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(n.modelValue);o.watch(()=>n.modelValue,()=>{r.value=n.modelValue});const a=()=>{t("update:modelValue",r.value)};return(s,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c),class:o.normalizeClass({round:e.round}),type:"checkbox",disabled:n.disabled,onChange:a},null,42,qn)),[[o.vModelCheckbox,r.value]])}}),[["__scopeId","data-v-52343795"]]),Ja="";const Yn=["disabled"];var Gn=P(o.defineComponent({name:"LewTextarea",props:{modelValue:{type:String,default:""},resize:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(n.modelValue);o.watch(()=>n.modelValue,()=>{r.value=n.modelValue});const a=s=>{let i=s.target.value;t("update:modelValue",i)};return(s,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("textarea",{"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c),class:o.normalizeClass(["lew-textarea btf-scrollbar",`resize-${e.resize}`]),rows:"3",cols:"3",disabled:n.disabled,placeholder:"\u8BF7\u8F93\u5165",onInput:a},null,42,Yn)),[[o.vModelText,r.value]])}}),[["__scopeId","data-v-54e15f33"]]),Qa="";const Kn=[(e=>(o.pushScopeId("data-v-0f975742"),e=e(),o.popScopeId(),e))(()=>o.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1))],Jn=["checked"];var Nt=P(o.defineComponent({name:"LewCheckbox",props:{label:{type:String,required:!0},block:{type:Boolean,default:()=>!1},round:{type:Boolean,default:()=>!1},checked:{type:Boolean}},emits:["update:checked"],setup(e,{emit:t}){const n=r=>{t("update:checked",r.target.checked)};return(r,a)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["lew-checkbox",`${e.block?"lew-checkbox-block":""} ${e.round?"lew-checkbox-round":""}`])},[o.createElementVNode("div",{class:o.normalizeClass(["icon-checkbox-box",{"icon-checked-box":e.checked}])},[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon-checkbox",{"icon-checked":e.checked}]),viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"4",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Kn,2))],2),o.withDirectives(o.createElementVNode("input",{type:"checkbox",checked:e.checked,onInput:n},null,40,Jn),[[o.vShow,!1]]),o.createTextVNode(" "+o.toDisplayString(e.label),1)],2))}}),[["__scopeId","data-v-0f975742"]]),ri="",Zn=P(o.defineComponent({name:"LewCheckboxGroup",props:{modelValue:{type:Array,default:()=>[],required:!0},block:{type:Boolean,default:()=>!1},round:{type:Boolean,default:()=>!1},direction:{type:String,default:"x"},options:{type:Array,default:()=>[],required:!0,validator:e=>{const t=e.every(r=>Object.keys(r).includes("name")),n=e.every(r=>Object.keys(r).includes("id"));return t&&n}}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=(s,i)=>{let c=[...n.modelValue];s=Number(s),i?c.push(s):c.splice(c.indexOf(s),1),t("update:modelValue",c)},a=s=>(s=Number(s),n.modelValue.includes(s));return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-checkbox-group",`lew-checkbox-group-${e.direction}`])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,c=>(o.openBlock(),o.createBlock(Nt,{key:c.id,block:e.block,round:e.round,label:c.name,checked:a(c.id),"onUpdate:checked":u=>r(c.id,u)},null,8,["block","round","label","checked","onUpdate:checked"]))),128))],2))}}),[["__scopeId","data-v-95a0abfe"]]),ai="";const Qn=[(e=>(o.pushScopeId("data-v-6be47ae3"),e=e(),o.popScopeId(),e))(()=>o.createElementVNode("div",{class:"icon-radio"},null,-1))],er=["checked"];var It=P(o.defineComponent({name:"LewRadio",props:{label:{type:String,required:!0},block:{type:Boolean,default:()=>!1},checked:{type:Boolean}},emits:["update:checked"],setup(e,{emit:t}){const n=()=>{t("update:checked")};return(r,a)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["lew-radio",`${e.block?"lew-radio-block":""} `])},[o.createElementVNode("div",{class:o.normalizeClass(["icon-radio-box",{"icon-checked-box":e.checked}])},Qn,2),o.withDirectives(o.createElementVNode("input",{type:"radio",checked:e.checked,onInput:n},null,40,er),[[o.vShow,!1]]),o.createTextVNode(" "+o.toDisplayString(e.label),1)],2))}}),[["__scopeId","data-v-6be47ae3"]]),ci="",tr=P(o.defineComponent({name:"LewRadioGroup",props:{modelValue:{type:Number,default:()=>0,required:!0},block:{type:Boolean,default:()=>!1},direction:{type:String,default:"x"},options:{type:Array,default:()=>[],required:!0,validator:e=>{const t=e.every(r=>Object.keys(r).includes("name")),n=e.every(r=>Object.keys(r).includes("id"));return t&&n}}},emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",Number(r))};return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-radio-group",`lew-radio-group-${e.direction}`])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,s=>(o.openBlock(),o.createBlock(It,{key:s.id,block:e.block,label:s.name,checked:e.modelValue==s.id,"onUpdate:checked":i=>n(s.id)},null,8,["block","label","checked","onUpdate:checked"]))),128))],2))}}),[["__scopeId","data-v-1c9758ec"]]),di="";const nr={class:"lew-tabs"},rr=["onClick"];var or=P(o.defineComponent({name:"LewTabs",props:{modelValue:{type:String,default:""},options:{type:Array,default(){return[]}}},emits:["update:change","update:modelValue"],setup(e,{emit:t}){const n=e;let r=o.ref(""),a=o.ref(n.modelValue),s=o.ref([]);const i=()=>{let u=n.options.findIndex(p=>p.value==a.value);u<0&&(u=0),r.value=`width:${s.value[u].offsetWidth}px;transform: translateX(${s.value[u].offsetLeft}px);`},c=(u,p)=>{if(u.value==n.modelValue)return;a.value=n.options[p].value;let f=s.value[p];r.value=`width:${f.offsetWidth}px;transform: translateX(${f.offsetLeft}px);`,t("update:change",{label:u.label,value:u.value,activeIndex:p}),t("update:modelValue",u.value)};return o.onMounted(()=>{i()}),(u,p)=>(o.openBlock(),o.createElementBlock("div",nr,[o.createElementVNode("div",{style:o.normalizeStyle(o.unref(r)),class:"activeItem"},null,4),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,(f,g)=>(o.openBlock(),o.createElementBlock("div",{key:f.value,ref_for:!0,ref:b=>o.unref(s).push(b),class:"lew-tabs-item",onClick:b=>c(f,g)},o.toDisplayString(f.label),9,rr))),128))]))}}),[["__scopeId","data-v-2912852e"]]);const ar={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ir=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1)];var sr=o.defineComponent({name:"Alert24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",ar,ir)}});const lr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},cr=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm0 1.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 0 0 0-17zm-1.25 9.94l4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084l-5 5a.75.75 0 0 1-.976.073l-.084-.073l-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073l1.97 1.97l4.47-4.47l-4.47 4.47z",fill:"currentColor"})],-1)];var ur=o.defineComponent({name:"CheckmarkCircle24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",lr,cr)}});const dr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},fr=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M3.897 4.054l.073-.084a.75.75 0 0 1 .976-.073l.084.073L10 8.939l4.97-4.97a.75.75 0 0 1 .976-.072l.084.073a.75.75 0 0 1 .073.976l-.073.084L11.061 10l4.97 4.97a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L10 11.061l-4.97 4.97a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L8.939 10l-4.97-4.97a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1)];var pr=o.defineComponent({name:"Dismiss20Filled",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",dr,fr)}});const mr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},hr=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 2c5.523 0 10 4.478 10 10s-4.477 10-10 10S2 17.522 2 12S6.477 2 12 2zm0 1.667c-4.595 0-8.333 3.738-8.333 8.333c0 4.595 3.738 8.333 8.333 8.333c4.595 0 8.333-3.738 8.333-8.333c0-4.595-3.738-8.333-8.333-8.333zm-.001 10.835a.999.999 0 1 1 0 1.998a.999.999 0 0 1 0-1.998zM11.994 7a.75.75 0 0 1 .744.648l.007.101l.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102l-.004-4.501a.75.75 0 0 1 .75-.751z",fill:"currentColor"})],-1)];var vr=o.defineComponent({name:"ErrorCircle24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",mr,hr)}});const gr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yr=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 1.999c5.524 0 10.002 4.478 10.002 10.002c0 5.523-4.478 10.001-10.002 10.001C6.476 22.002 2 17.524 2 12.001C1.999 6.477 6.476 1.999 12 1.999zm0 1.5a8.502 8.502 0 1 0 0 17.003A8.502 8.502 0 0 0 12 3.5zm-.004 7a.75.75 0 0 1 .744.648l.007.102l.004 5.502a.75.75 0 0 1-1.494.102l-.006-.101l-.004-5.502a.75.75 0 0 1 .75-.75zm.005-3.497a.999.999 0 1 1 0 1.997a.999.999 0 0 1 0-1.997z",fill:"currentColor"})],-1)];var br=o.defineComponent({name:"Info24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",gr,yr)}});const wr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},xr=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M10.91 2.782a2.25 2.25 0 0 1 2.975.74l.083.138l7.759 14.009a2.25 2.25 0 0 1-1.814 3.334l-.154.006H4.243a2.25 2.25 0 0 1-2.041-3.197l.072-.143L10.031 3.66a2.25 2.25 0 0 1 .878-.878zm9.505 15.613l-7.76-14.008a.75.75 0 0 0-1.254-.088l-.057.088l-7.757 14.008a.75.75 0 0 0 .561 1.108l.095.006h15.516a.75.75 0 0 0 .696-1.028l-.04-.086l-7.76-14.008l7.76 14.008zM12 16.002a.999.999 0 1 1 0 1.997a.999.999 0 0 1 0-1.997zM11.995 8.5a.75.75 0 0 1 .744.647l.007.102l.004 4.502a.75.75 0 0 1-1.494.103l-.006-.102l-.004-4.502a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1)];var _r=o.defineComponent({name:"Warning24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",wr,xr)}});function kr(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Mt=/\s*,(?![^(]*\))\s*/g,Cr=/\s+/g;function Er(e,t){const n=[];return t.split(Mt).forEach(r=>{let a=kr(r);if(a){if(a===1){e.forEach(i=>{n.push(r.replace("&",i))});return}}else{e.forEach(i=>{n.push((i&&i+" ")+r)});return}let s=[r];for(;a--;){const i=[];s.forEach(c=>{e.forEach(u=>{i.push(c.replace("&",u))})}),s=i}s.forEach(i=>n.push(i))}),n}function Or(e,t){const n=[];return t.split(Mt).forEach(r=>{e.forEach(a=>{n.push((a&&a+" ")+r)})}),n}function Br(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Er(t,n):t=Or(t,n))}),t.join(", ").replace(Cr," ")}const $r=/[A-Z]/g;function zt(e){return e.replace($r,t=>"-"+t.toLowerCase())}function Ar(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
6
|
-
`+Object.entries(e).map(n=>t+` ${
|
|
5
|
+
*/const Kn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jn=(e=>Kn?Symbol("[vue-router]: "+e):"[vue-router]: "+e)("router");var Ut;(function(e){e.pop="pop",e.push="push"})(Ut||(Ut={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));var Ft;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ft||(Ft={}));function Zn(){return o.inject(Jn)}var Li="",Qn=N(o.defineComponent({name:"LewBadge",props:{type:{type:String,default:"primary"},round:{type:Boolean,default:!1},bold:{type:Number,default:400},dot:{type:Boolean,default:!1},href:{type:String,default:""}},setup(e){const t=e,n=Zn(),r=()=>{t.href&&(t.href.includes("http")?window.open(t.href,"_blank"):n.push(t.href))};return(a,s)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["lew-badge",`${e.dot?"lew-badge-dot":""} ${e.round?"lew-badge-round":""} ${e.href?"lew-badge-href":""} lew-badge-${e.type} `]),style:o.normalizeStyle(` font-weight:${e.bold}`),onClick:s[0]||(s[0]=i=>r())},[o.renderSlot(a.$slots,"default")],6))}}),[["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/general/LewBadge.vue"]]),Si="",er=N(o.defineComponent({name:"LewTitle",props:{bold:{type:Number,default:600},size:{type:String,default:"24px"}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-title",`${e.bold?"lew-title-bold":""}`]),style:o.normalizeStyle(`font-weight:${e.bold};font-size:${e.size}`)},[o.renderSlot(t.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-701d9086"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/general/LewTitle.vue"]]),Bi="";const tr={class:"title-label"};var nr=N(o.defineComponent({name:"LewFormItem",props:{title:{type:String,default:"\u6807\u9898"},direction:{type:String,default:"x"}},setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-form-item",`lew-form-item-${e.direction}`])},[o.createElementVNode("label",tr,o.toDisplayString(t.title),1),o.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-0e9705e2"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewFormItem.vue"]]),Ti="";const rr=["disabled"];var Wt=N(o.defineComponent({name:"LewInput",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(n.modelValue);o.watch(()=>n.modelValue,()=>{r.value=n.modelValue});const a=s=>{let i=s.target.value;t("update:modelValue",i)};return(s,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c),class:"lew-input",disabled:n.disabled,placeholder:"\u8BF7\u8F93\u5165",onInput:a},null,40,rr)),[[o.vModelText,r.value]])}}),[["__scopeId","data-v-9b461d3c"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewInput.vue"]]),Vi="";const or={class:"lew-select"},ar=["onClick"];var ir=N(o.defineComponent({name:"LewSelect",props:{modelValue:{type:String,default:""},options:{type:Array,default(){return[]}}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(""),a=o.ref("");o.onMounted(()=>{var p;a.value=(p=n.options.find(f=>f.value==n.modelValue))==null?void 0:p.label});let s=o.ref(!1);const i=()=>{s.value=!0},c=()=>{setTimeout(()=>{s.value=!1},150)},u=p=>{a.value=p.label,r.value==p.value,t("update:modelValue",p.value)};return(p,f)=>(o.openBlock(),o.createElementBlock("div",or,[o.createVNode(Wt,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=g=>a.value=g),placeholder:"\u8BF7\u9009\u62E9",onFocus:i,onBlur:c},null,8,["modelValue"]),o.createElementVNode("div",{class:o.normalizeClass(["options-box",{isShowOptions:o.unref(s)}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,g=>(o.openBlock(),o.createElementBlock("div",{key:g.value,class:"item",onClick:w=>u(g)},o.toDisplayString(g.label),9,ar))),128))],2)]))}}),[["__scopeId","data-v-32f2a4d8"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewSelect.vue"]]),Mi="";const sr=["disabled"];var lr=N(o.defineComponent({name:"LewSwitch",props:{modelValue:{type:Boolean,default:()=>!1},round:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(n.modelValue);o.watch(()=>n.modelValue,()=>{r.value=n.modelValue});const a=()=>{t("update:modelValue",r.value)};return(s,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("input",{"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c),class:o.normalizeClass({round:e.round}),type:"checkbox",disabled:n.disabled,onChange:a},null,42,sr)),[[o.vModelCheckbox,r.value]])}}),[["__scopeId","data-v-348753cc"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewSwitch.vue"]]),Ri="";const cr=["disabled"];var ur=N(o.defineComponent({name:"LewTextarea",props:{modelValue:{type:String,default:""},resize:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(n.modelValue);o.watch(()=>n.modelValue,()=>{r.value=n.modelValue});const a=s=>{let i=s.target.value;t("update:modelValue",i)};return(s,i)=>o.withDirectives((o.openBlock(),o.createElementBlock("textarea",{"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c),class:o.normalizeClass(["lew-textarea btf-scrollbar",`resize-${e.resize}`]),rows:"3",cols:"3",disabled:n.disabled,placeholder:"\u8BF7\u8F93\u5165",onInput:a},null,42,cr)),[[o.vModelText,r.value]])}}),[["__scopeId","data-v-a48a3e5c"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewTextarea.vue"]]),Pi="";const dr=[(e=>(o.pushScopeId("data-v-7b4a4e4a"),e=e(),o.popScopeId(),e))(()=>o.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1))],fr=["checked"];var qt=N(o.defineComponent({name:"LewCheckbox",props:{label:{type:String,required:!0},block:{type:Boolean,default:()=>!1},round:{type:Boolean,default:()=>!1},checked:{type:Boolean}},emits:["update:checked"],setup(e,{emit:t}){const n=r=>{t("update:checked",r.target.checked)};return(r,a)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["lew-checkbox",`${e.block?"lew-checkbox-block":""} ${e.round?"lew-checkbox-round":""}`])},[o.createElementVNode("div",{class:o.normalizeClass(["icon-checkbox-box",{"icon-checked-box":e.checked}])},[(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["icon-checkbox",{"icon-checked":e.checked}]),viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"4",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},dr,2))],2),o.withDirectives(o.createElementVNode("input",{type:"checkbox",checked:e.checked,onInput:n},null,40,fr),[[o.vShow,!1]]),o.createTextVNode(" "+o.toDisplayString(e.label),1)],2))}}),[["__scopeId","data-v-7b4a4e4a"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewCheckbox.vue"]]),Fi="",pr=N(o.defineComponent({name:"LewCheckboxGroup",props:{modelValue:{type:Array,default:()=>[],required:!0},block:{type:Boolean,default:()=>!1},round:{type:Boolean,default:()=>!1},direction:{type:String,default:"x"},options:{type:Array,default:()=>[],required:!0,validator:e=>{const t=e.every(r=>Object.keys(r).includes("name")),n=e.every(r=>Object.keys(r).includes("id"));return t&&n}}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=(s,i)=>{let c=[...n.modelValue];s=Number(s),i?c.push(s):c.splice(c.indexOf(s),1),t("update:modelValue",c)},a=s=>(s=Number(s),n.modelValue.includes(s));return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-checkbox-group",`lew-checkbox-group-${e.direction}`])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,c=>(o.openBlock(),o.createBlock(qt,{key:c.id,block:e.block,round:e.round,label:c.name,checked:a(c.id),"onUpdate:checked":u=>r(c.id,u)},null,8,["block","round","label","checked","onUpdate:checked"]))),128))],2))}}),[["__scopeId","data-v-71b4bd14"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewCheckboxGroup.vue"]]),qi="";const mr=[(e=>(o.pushScopeId("data-v-12ca2d13"),e=e(),o.popScopeId(),e))(()=>o.createElementVNode("div",{class:"icon-radio"},null,-1))],hr=["checked"];var Gt=N(o.defineComponent({name:"LewRadio",props:{label:{type:String,required:!0},block:{type:Boolean,default:()=>!1},checked:{type:Boolean}},emits:["update:checked"],setup(e,{emit:t}){const n=()=>{t("update:checked")};return(r,a)=>(o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(["lew-radio",`${e.block?"lew-radio-block":""} `])},[o.createElementVNode("div",{class:o.normalizeClass(["icon-radio-box",{"icon-checked-box":e.checked}])},mr,2),o.withDirectives(o.createElementVNode("input",{type:"radio",checked:e.checked,onInput:n},null,40,hr),[[o.vShow,!1]]),o.createTextVNode(" "+o.toDisplayString(e.label),1)],2))}}),[["__scopeId","data-v-12ca2d13"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewRadio.vue"]]),Ki="",vr=N(o.defineComponent({name:"LewRadioGroup",props:{modelValue:{type:Number,default:()=>0,required:!0},block:{type:Boolean,default:()=>!1},direction:{type:String,default:"x"},options:{type:Array,default:()=>[],required:!0,validator:e=>{const t=e.every(r=>Object.keys(r).includes("name")),n=e.every(r=>Object.keys(r).includes("id"));return t&&n}}},emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",Number(r))};return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["lew-radio-group",`lew-radio-group-${e.direction}`])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,s=>(o.openBlock(),o.createBlock(Gt,{key:s.id,block:e.block,label:s.name,checked:e.modelValue==s.id,"onUpdate:checked":i=>n(s.id)},null,8,["block","label","checked","onUpdate:checked"]))),128))],2))}}),[["__scopeId","data-v-756d6848"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewRadioGroup.vue"]]),Zi="";const gr={class:"lew-tabs"},yr=["onClick"];var wr=N(o.defineComponent({name:"LewTabs",props:{modelValue:{type:String,default:""},options:{type:Array,default(){return[]}}},emits:["update:change","update:modelValue"],setup(e,{emit:t}){const n=e;let r=o.ref(""),a=o.ref(n.modelValue),s=o.ref([]);const i=()=>{let u=n.options.findIndex(p=>p.value==a.value);u<0&&(u=0),r.value=`width:${s.value[u].offsetWidth}px;transform: translateX(${s.value[u].offsetLeft}px);`},c=(u,p)=>{if(u.value==n.modelValue)return;a.value=n.options[p].value;let f=s.value[p];r.value=`width:${f.offsetWidth}px;transform: translateX(${f.offsetLeft}px);`,t("update:change",{label:u.label,value:u.value,activeIndex:p}),t("update:modelValue",u.value)};return o.onMounted(()=>{i()}),(u,p)=>(o.openBlock(),o.createElementBlock("div",gr,[o.createElementVNode("div",{style:o.normalizeStyle(o.unref(r)),class:"activeItem"},null,4),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,(f,g)=>(o.openBlock(),o.createElementBlock("div",{key:f.value,ref_for:!0,ref:w=>o.unref(s).push(w),class:"lew-tabs-item",onClick:w=>c(f,g)},o.toDisplayString(f.label),9,yr))),128))]))}}),[["__scopeId","data-v-7acf9b16"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/form/LewTabs.vue"]]);const br={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},_r=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1)];var xr=o.defineComponent({name:"Alert24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",br,_r)}});const kr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Er=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm0 1.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 0 0 0-17zm-1.25 9.94l4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084l-5 5a.75.75 0 0 1-.976.073l-.084-.073l-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073l1.97 1.97l4.47-4.47l-4.47 4.47z",fill:"currentColor"})],-1)];var Cr=o.defineComponent({name:"CheckmarkCircle24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",kr,Er)}});const Lr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Or=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M3.897 4.054l.073-.084a.75.75 0 0 1 .976-.073l.084.073L10 8.939l4.97-4.97a.75.75 0 0 1 .976-.072l.084.073a.75.75 0 0 1 .073.976l-.073.084L11.061 10l4.97 4.97a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L10 11.061l-4.97 4.97a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L8.939 10l-4.97-4.97a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1)];var Sr=o.defineComponent({name:"Dismiss20Filled",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",Lr,Or)}});const $r={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Br=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 2c5.523 0 10 4.478 10 10s-4.477 10-10 10S2 17.522 2 12S6.477 2 12 2zm0 1.667c-4.595 0-8.333 3.738-8.333 8.333c0 4.595 3.738 8.333 8.333 8.333c4.595 0 8.333-3.738 8.333-8.333c0-4.595-3.738-8.333-8.333-8.333zm-.001 10.835a.999.999 0 1 1 0 1.998a.999.999 0 0 1 0-1.998zM11.994 7a.75.75 0 0 1 .744.648l.007.101l.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102l-.004-4.501a.75.75 0 0 1 .75-.751z",fill:"currentColor"})],-1)];var Ar=o.defineComponent({name:"ErrorCircle24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",$r,Br)}});const Tr={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Dr=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M12 1.999c5.524 0 10.002 4.478 10.002 10.002c0 5.523-4.478 10.001-10.002 10.001C6.476 22.002 2 17.524 2 12.001C1.999 6.477 6.476 1.999 12 1.999zm0 1.5a8.502 8.502 0 1 0 0 17.003A8.502 8.502 0 0 0 12 3.5zm-.004 7a.75.75 0 0 1 .744.648l.007.102l.004 5.502a.75.75 0 0 1-1.494.102l-.006-.101l-.004-5.502a.75.75 0 0 1 .75-.75zm.005-3.497a.999.999 0 1 1 0 1.997a.999.999 0 0 1 0-1.997z",fill:"currentColor"})],-1)];var Vr=o.defineComponent({name:"Info24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",Tr,Dr)}});const Ir={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Mr=[o.createElementVNode("g",{fill:"none"},[o.createElementVNode("path",{d:"M10.91 2.782a2.25 2.25 0 0 1 2.975.74l.083.138l7.759 14.009a2.25 2.25 0 0 1-1.814 3.334l-.154.006H4.243a2.25 2.25 0 0 1-2.041-3.197l.072-.143L10.031 3.66a2.25 2.25 0 0 1 .878-.878zm9.505 15.613l-7.76-14.008a.75.75 0 0 0-1.254-.088l-.057.088l-7.757 14.008a.75.75 0 0 0 .561 1.108l.095.006h15.516a.75.75 0 0 0 .696-1.028l-.04-.086l-7.76-14.008l7.76 14.008zM12 16.002a.999.999 0 1 1 0 1.997a.999.999 0 0 1 0-1.997zM11.995 8.5a.75.75 0 0 1 .744.647l.007.102l.004 4.502a.75.75 0 0 1-1.494.103l-.006-.102l-.004-4.502a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1)];var Nr=o.defineComponent({name:"Warning24Regular",render:function(t,n){return o.openBlock(),o.createElementBlock("svg",Ir,Mr)}});function Rr(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Xt=/\s*,(?![^(]*\))\s*/g,jr=/\s+/g;function Pr(e,t){const n=[];return t.split(Xt).forEach(r=>{let a=Rr(r);if(a){if(a===1){e.forEach(i=>{n.push(r.replace("&",i))});return}}else{e.forEach(i=>{n.push((i&&i+" ")+r)});return}let s=[r];for(;a--;){const i=[];s.forEach(c=>{e.forEach(u=>{i.push(c.replace("&",u))})}),s=i}s.forEach(i=>n.push(i))}),n}function zr(e,t){const n=[];return t.split(Xt).forEach(r=>{e.forEach(a=>{n.push((a&&a+" ")+r)})}),n}function Ur(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Pr(t,n):t=zr(t,n))}),t.join(", ").replace(jr," ")}const Hr=/[A-Z]/g;function Yt(e){return e.replace(Hr,t=>"-"+t.toLowerCase())}function Fr(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
6
|
+
`+Object.entries(e).map(n=>t+` ${Yt(n[0])}: ${n[1]};`).join(`
|
|
7
7
|
`)+`
|
|
8
|
-
`+t+"}":`: ${e};`}function
|
|
8
|
+
`+t+"}":`: ${e};`}function Wr(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Kt(e,t,n,r){if(!t)return"";const a=Wr(t,n,r);if(!a)return"";if(typeof a=="string")return`${e} {
|
|
9
9
|
${a}
|
|
10
10
|
}`;const s=Object.keys(a);if(s.length===0)return n.config.keepEmptyBlock?e+` {
|
|
11
11
|
}`:"";const i=e?[e+" {"]:[];return s.forEach(c=>{const u=a[c];if(c==="raw"){i.push(`
|
|
12
12
|
`+u+`
|
|
13
|
-
`);return}c=
|
|
14
|
-
`)}function
|
|
13
|
+
`);return}c=Yt(c),u!=null&&i.push(` ${c}${Fr(u)}`)}),e&&i.push("}"),i.join(`
|
|
14
|
+
`)}function wt(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))wt(r,t,n);else if(typeof r=="function"){const a=r(t);Array.isArray(a)?wt(a,t,n):a&&n(a)}else r&&n(r)})}function Jt(e,t,n,r,a,s){const i=e.$;!i||typeof i=="string"?t.push(i):typeof i=="function"?t.push(i({context:r.context,props:a})):(i.before&&i.before(r.context),!i.$||typeof i.$=="string"?t.push(i.$):i.$&&t.push(i.$({context:r.context,props:a})));const c=Ur(t),u=Kt(c,e.props,r,a);s&&u&&s.insertRule(u),!s&&u.length&&n.push(u),e.children&&wt(e.children,{context:r.context,props:a},p=>{if(typeof p=="string"){const f=Kt(c,{raw:p},r,a);s?s.insertRule(f):n.push(f)}else Jt(p,t,n,r,a,s)}),t.pop(),i&&i.after&&i.after(r.context)}function Zt(e,t,n,r=!1){const a=[];return Jt(e,[],a,t,n,r?e.instance.__styleSheet:void 0),r?"":a.join(`
|
|
15
15
|
|
|
16
|
-
`)}function Sr(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function dt(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ft(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Tr(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}window&&(window.__cssrContext={});function Wt(e){const t=e.getAttribute("mount-count");return t===null?null:Number(t)}function pt(e,t){e.setAttribute("mount-count",String(t))}function Ut(e,t,n,r){const{els:a}=t;if(n===void 0)a.forEach(dt),t.els=[];else{const s=ft(n);if(s&&a.includes(s)){const i=Wt(s);r?i===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):i<=1?(dt(s),t.els=a.filter(c=>c!==s)):pt(s,i-1):i!==null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`):(dt(s),t.els=a.filter(c=>c!==s))}}}function Vr(e,t){e.push(t)}function Dr(e,t,n,r,a,s,i,c,u){if(i&&!u){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}const v=window.__cssrContext;v[n]||(v[n]=!0,Ft(t,e,r,i));return}let p;const{els:f}=t;let g;if(n===void 0&&(g=t.render(r),n=Sr(g)),u){u(n,g!=null?g:t.render(r));return}const b=ft(n);if(c||b===null){if(p=b===null?Tr(n):b,g===void 0&&(g=t.render(r)),p.textContent=g,b!==null)return;if(a){const v=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(p,v)}else document.head.appendChild(p);s&&pt(p,1),Vr(f,p)}else{const v=Wt(b);s?v===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):pt(b,v+1):v!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return b!=null?b:p}function Rr(e){return Ft(this,this.instance,e)}function Nr(e={}){const{target:t,id:n,ssr:r,props:a,count:s=!1,head:i=!1,boost:c=!1,force:u=!1}=e;return Dr(this.instance,this,n!=null?n:t,a,i,s,c,u,r)}function Ir(e={}){const{id:t,target:n,delay:r=0,count:a=!1}=e;r===0?Ut(this.instance,this,t!=null?t:n,a):setTimeout(()=>Ut(this.instance,this,t!=null?t:n,a),r)}const He=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Rr,mount:Nr,unmount:Ir}},Mr=function(e,t,n,r){return Array.isArray(t)?He(e,{$:null},null,t):Array.isArray(n)?He(e,t,null,n):Array.isArray(r)?He(e,t,n,r):He(e,t,n,null)};function zr(e={}){let t=null;const n={c:(...r)=>Mr(n,...r),use:(r,...a)=>r.install(n,...a),find:ft,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}const{c:mt}=zr(),jr=mt(".xicon",{width:"1em",height:"1em",display:"inline-flex"},[mt("svg",{width:"1em",height:"1em"}),mt("svg:not([fill])",{fill:"currentColor"})]),Pr=()=>{jr.mount({id:"xicons-icon"})},Ht={size:[String,Number],color:String,tag:String},qt=Symbol("IconConfigInjection");o.defineComponent({name:"IconConfigProvider",props:Ht,setup(e,{slots:t}){return o.provide(qt,e),()=>o.renderSlot(t,"default")}});const Fr="span",be=o.defineComponent({name:"Icon",props:Ht,setup(e,{slots:t}){const n=o.inject(qt,null),r=o.computed(()=>{var i;const c=(i=e.size)!==null&&i!==void 0?i:n==null?void 0:n.size;if(c!==void 0)return typeof c=="number"||/^\d+$/.test(c)?`${c}px`:c}),a=o.computed(()=>{const{color:i}=e;return i===void 0?n?n.color:void 0:i}),s=o.computed(()=>{var i;const{tag:c}=e;return c===void 0?(i=n==null?void 0:n.tag)!==null&&i!==void 0?i:Fr:c});return o.onBeforeMount(()=>{Pr()}),()=>o.h(s.value,{class:"xicon",style:{color:a.value,fontSize:r.value}},[o.renderSlot(t,"default")])}});var bi="";const Wr={class:"lew-alert-group"},Ur={class:"alert-icon"},Hr={class:"message"},qr={class:"title"},Xr=["onClick"],Yr=o.defineComponent({name:"LewAlert",props:{alertList:{type:Array,default(){return[]}}},emits:["close"],setup(e,{emit:t}){return(n,r)=>(o.openBlock(),o.createElementBlock("div",Wr,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.alertList,(a,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:o.normalizeClass(["lew-alert",`lew-alert-${a.type}`])},[o.createElementVNode("div",Ur,[a.type=="normal"?(o.openBlock(),o.createBlock(o.unref(be),{key:0,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(br))]),_:1})):o.createCommentVNode("",!0),a.type=="warning"?(o.openBlock(),o.createBlock(o.unref(be),{key:1,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(_r))]),_:1})):o.createCommentVNode("",!0),a.type=="success"?(o.openBlock(),o.createBlock(o.unref(be),{key:2,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(ur))]),_:1})):o.createCommentVNode("",!0),a.type=="danger"?(o.openBlock(),o.createBlock(o.unref(be),{key:3,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(vr))]),_:1})):o.createCommentVNode("",!0),a.type=="primary"?(o.openBlock(),o.createBlock(o.unref(be),{key:4,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(sr))]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",Hr,[o.createElementVNode("div",qr,o.toDisplayString(a.title),1),o.withDirectives(o.createElementVNode("div",{class:"content"},o.toDisplayString(a.content),513),[[o.vShow,a.content]])]),o.createElementVNode("div",{class:"close",onClick:i=>t("close",s)},[o.createVNode(o.unref(be),{size:"20"},{default:o.withCtx(()=>[o.createVNode(o.unref(pr))]),_:1})],8,Xr)],2))),128))]))}});function Gr(e){const t=document.createElement("div");t.id=e,document.body.appendChild(t),o.onUnmounted(()=>{document.body.removeChild(t)})}var wi="",Kr=P(o.defineComponent({name:"LewModal",props:{title:{type:String,default:""},width:{type:String,default:""},height:{type:String,default:""},visible:{type:Boolean,default:!1}},emits:["maskClick","confirm"],setup(e,{emit:t}){Gr("lew-modal");const n=()=>{t("maskClick")};return(r,a)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"#lew-modal"},[o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"lew-modal",onClick:n},[e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"lew-modal-box",style:o.normalizeStyle(`width:${e.width};height:${e.height}`),onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop"]))},[o.renderSlot(r.$slots,"default",{},void 0,!0)],4)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),_:3})]))}}),[["__scopeId","data-v-3af6ad00"]]),F="top",U="bottom",H="right",W="left",ht="auto",Se=[F,U,H,W],we="start",Te="end",Jr="clippingParents",Xt="viewport",Ve="popper",Zr="reference",Yt=Se.reduce(function(e,t){return e.concat([t+"-"+we,t+"-"+Te])},[]),Gt=[].concat(Se,[ht]).reduce(function(e,t){return e.concat([t,t+"-"+we,t+"-"+Te])},[]),Qr="beforeRead",eo="read",to="afterRead",no="beforeMain",ro="main",oo="afterMain",ao="beforeWrite",io="write",so="afterWrite",lo=[Qr,eo,to,no,ro,oo,ao,io,so];function Q(e){return e?(e.nodeName||"").toLowerCase():null}function Y(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xe(e){var t=Y(e).Element;return e instanceof t||e instanceof Element}function q(e){var t=Y(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vt(e){if(typeof ShadowRoot=="undefined")return!1;var t=Y(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function co(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!q(s)||!Q(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(i){var c=a[i];c===!1?s.removeAttribute(i):s.setAttribute(i,c===!0?"":c)}))})}function uo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=i.reduce(function(u,p){return u[p]="",u},{});!q(a)||!Q(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(u){a.removeAttribute(u)}))})}}var Kt={name:"applyStyles",enabled:!0,phase:"write",fn:co,effect:uo,requires:["computeStyles"]};function ee(e){return e.split("-")[0]}var pe=Math.max,qe=Math.min,_e=Math.round;function ke(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(q(e)&&t){var s=e.offsetHeight,i=e.offsetWidth;i>0&&(r=_e(n.width)/i||1),s>0&&(a=_e(n.height)/s||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function gt(e){var t=ke(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Jt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vt(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ae(e){return Y(e).getComputedStyle(e)}function fo(e){return["table","td","th"].indexOf(Q(e))>=0}function ue(e){return((xe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xe(e){return Q(e)==="html"?e:e.assignedSlot||e.parentNode||(vt(e)?e.host:null)||ue(e)}function Zt(e){return!q(e)||ae(e).position==="fixed"?null:e.offsetParent}function po(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&q(e)){var r=ae(e);if(r.position==="fixed")return null}var a=Xe(e);for(vt(a)&&(a=a.host);q(a)&&["html","body"].indexOf(Q(a))<0;){var s=ae(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function De(e){for(var t=Y(e),n=Zt(e);n&&fo(n)&&ae(n).position==="static";)n=Zt(n);return n&&(Q(n)==="html"||Q(n)==="body"&&ae(n).position==="static")?t:n||po(e)||t}function yt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Re(e,t,n){return pe(e,qe(t,n))}function mo(e,t,n){var r=Re(e,t,n);return r>n?n:r}function Qt(){return{top:0,right:0,bottom:0,left:0}}function en(e){return Object.assign({},Qt(),e)}function tn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ho=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,en(typeof t!="number"?t:tn(t,Se))};function vo(e){var t,n=e.state,r=e.name,a=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,c=ee(n.placement),u=yt(c),p=[W,H].indexOf(c)>=0,f=p?"height":"width";if(!(!s||!i)){var g=ho(a.padding,n),b=gt(s),v=u==="y"?F:W,x=u==="y"?U:H,w=n.rects.reference[f]+n.rects.reference[u]-i[u]-n.rects.popper[f],_=i[u]-n.rects.reference[u],$=De(s),E=$?u==="y"?$.clientHeight||0:$.clientWidth||0:0,A=w/2-_/2,l=g[v],O=E-b[f]-g[x],h=E/2-b[f]/2+A,B=Re(l,h,O),T=u;n.modifiersData[r]=(t={},t[T]=B,t.centerOffset=B-h,t)}}function go(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Jt(t.elements.popper,a)||(t.elements.arrow=a))}var yo={name:"arrow",enabled:!0,phase:"main",fn:vo,effect:go,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ce(e){return e.split("-")[1]}var bo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wo(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:_e(t*a)/a||0,y:_e(n*a)/a||0}}function nn(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,i=e.offsets,c=e.position,u=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,g=e.isFixed,b=i.x,v=b===void 0?0:b,x=i.y,w=x===void 0?0:x,_=typeof f=="function"?f({x:v,y:w}):{x:v,y:w};v=_.x,w=_.y;var $=i.hasOwnProperty("x"),E=i.hasOwnProperty("y"),A=W,l=F,O=window;if(p){var h=De(n),B="clientHeight",T="clientWidth";if(h===Y(n)&&(h=ue(n),ae(h).position!=="static"&&c==="absolute"&&(B="scrollHeight",T="scrollWidth")),h=h,a===F||(a===W||a===H)&&s===Te){l=U;var N=g&&h===O&&O.visualViewport?O.visualViewport.height:h[B];w-=N-r.height,w*=u?1:-1}if(a===W||(a===F||a===U)&&s===Te){A=H;var D=g&&h===O&&O.visualViewport?O.visualViewport.width:h[T];v-=D-r.width,v*=u?1:-1}}var R=Object.assign({position:c},p&&bo),S=f===!0?wo({x:v,y:w}):{x:v,y:w};if(v=S.x,w=S.y,u){var V;return Object.assign({},R,(V={},V[l]=E?"0":"",V[A]=$?"0":"",V.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",V))}return Object.assign({},R,(t={},t[l]=E?w+"px":"",t[A]=$?v+"px":"",t.transform="",t))}function xo(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,c=n.roundOffsets,u=c===void 0?!0:c,p={placement:ee(t.placement),variation:Ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nn(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nn(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var _o={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xo,data:{}},Ye={passive:!0};function ko(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=a===void 0?!0:a,i=r.resize,c=i===void 0?!0:i,u=Y(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(f){f.addEventListener("scroll",n.update,Ye)}),c&&u.addEventListener("resize",n.update,Ye),function(){s&&p.forEach(function(f){f.removeEventListener("scroll",n.update,Ye)}),c&&u.removeEventListener("resize",n.update,Ye)}}var Co={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ko,data:{}},Eo={left:"right",right:"left",bottom:"top",top:"bottom"};function Ge(e){return e.replace(/left|right|bottom|top/g,function(t){return Eo[t]})}var Oo={start:"end",end:"start"};function rn(e){return e.replace(/start|end/g,function(t){return Oo[t]})}function bt(e){var t=Y(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wt(e){return ke(ue(e)).left+bt(e).scrollLeft}function Bo(e){var t=Y(e),n=ue(e),r=t.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,c=0;return r&&(a=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,c=r.offsetTop)),{width:a,height:s,x:i+wt(e),y:c}}function $o(e){var t,n=ue(e),r=bt(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=pe(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=pe(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-r.scrollLeft+wt(e),u=-r.scrollTop;return ae(a||n).direction==="rtl"&&(c+=pe(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:c,y:u}}function xt(e){var t=ae(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function on(e){return["html","body","#document"].indexOf(Q(e))>=0?e.ownerDocument.body:q(e)&&xt(e)?e:on(Xe(e))}function Ne(e,t){var n;t===void 0&&(t=[]);var r=on(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=Y(r),i=a?[s].concat(s.visualViewport||[],xt(r)?r:[]):r,c=t.concat(i);return a?c:c.concat(Ne(Xe(i)))}function _t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ao(e){var t=ke(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function an(e,t){return t===Xt?_t(Bo(e)):xe(t)?Ao(t):_t($o(ue(e)))}function Lo(e){var t=Ne(Xe(e)),n=["absolute","fixed"].indexOf(ae(e).position)>=0,r=n&&q(e)?De(e):e;return xe(r)?t.filter(function(a){return xe(a)&&Jt(a,r)&&Q(a)!=="body"}):[]}function So(e,t,n){var r=t==="clippingParents"?Lo(e):[].concat(t),a=[].concat(r,[n]),s=a[0],i=a.reduce(function(c,u){var p=an(e,u);return c.top=pe(p.top,c.top),c.right=qe(p.right,c.right),c.bottom=qe(p.bottom,c.bottom),c.left=pe(p.left,c.left),c},an(e,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function sn(e){var t=e.reference,n=e.element,r=e.placement,a=r?ee(r):null,s=r?Ce(r):null,i=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(a){case F:u={x:i,y:t.y-n.height};break;case U:u={x:i,y:t.y+t.height};break;case H:u={x:t.x+t.width,y:c};break;case W:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var p=a?yt(a):null;if(p!=null){var f=p==="y"?"height":"width";switch(s){case we:u[p]=u[p]-(t[f]/2-n[f]/2);break;case Te:u[p]=u[p]+(t[f]/2-n[f]/2);break}}return u}function Ie(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,s=n.boundary,i=s===void 0?Jr:s,c=n.rootBoundary,u=c===void 0?Xt:c,p=n.elementContext,f=p===void 0?Ve:p,g=n.altBoundary,b=g===void 0?!1:g,v=n.padding,x=v===void 0?0:v,w=en(typeof x!="number"?x:tn(x,Se)),_=f===Ve?Zr:Ve,$=e.rects.popper,E=e.elements[b?_:f],A=So(xe(E)?E:E.contextElement||ue(e.elements.popper),i,u),l=ke(e.elements.reference),O=sn({reference:l,element:$,strategy:"absolute",placement:a}),h=_t(Object.assign({},$,O)),B=f===Ve?h:l,T={top:A.top-B.top+w.top,bottom:B.bottom-A.bottom+w.bottom,left:A.left-B.left+w.left,right:B.right-A.right+w.right},N=e.modifiersData.offset;if(f===Ve&&N){var D=N[a];Object.keys(T).forEach(function(R){var S=[H,U].indexOf(R)>=0?1:-1,V=[F,U].indexOf(R)>=0?"y":"x";T[R]+=D[V]*S})}return T}function To(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,s=n.rootBoundary,i=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,p=u===void 0?Gt:u,f=Ce(r),g=f?c?Yt:Yt.filter(function(x){return Ce(x)===f}):Se,b=g.filter(function(x){return p.indexOf(x)>=0});b.length===0&&(b=g);var v=b.reduce(function(x,w){return x[w]=Ie(e,{placement:w,boundary:a,rootBoundary:s,padding:i})[ee(w)],x},{});return Object.keys(v).sort(function(x,w){return v[x]-v[w]})}function Vo(e){if(ee(e)===ht)return[];var t=Ge(e);return[rn(e),t,rn(t)]}function Do(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,c=i===void 0?!0:i,u=n.fallbackPlacements,p=n.padding,f=n.boundary,g=n.rootBoundary,b=n.altBoundary,v=n.flipVariations,x=v===void 0?!0:v,w=n.allowedAutoPlacements,_=t.options.placement,$=ee(_),E=$===_,A=u||(E||!x?[Ge(_)]:Vo(_)),l=[_].concat(A).reduce(function(ie,Z){return ie.concat(ee(Z)===ht?To(t,{placement:Z,boundary:f,rootBoundary:g,padding:p,flipVariations:x,allowedAutoPlacements:w}):Z)},[]),O=t.rects.reference,h=t.rects.popper,B=new Map,T=!0,N=l[0],D=0;D<l.length;D++){var R=l[D],S=ee(R),V=Ce(R)===we,K=[F,U].indexOf(S)>=0,J=K?"width":"height",M=Ie(t,{placement:R,boundary:f,rootBoundary:g,altBoundary:b,padding:p}),z=K?V?H:W:V?U:F;O[J]>h[J]&&(z=Ge(z));var I=Ge(z),ne=[];if(s&&ne.push(M[S]<=0),c&&ne.push(M[z]<=0,M[I]<=0),ne.every(function(ie){return ie})){N=R,T=!1;break}B.set(R,ne)}if(T)for(var re=x?3:1,he=function(Z){var se=l.find(function(Oe){var le=B.get(Oe);if(le)return le.slice(0,Z).every(function(Be){return Be})});if(se)return N=se,"break"},oe=re;oe>0;oe--){var ve=he(oe);if(ve==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var Ro={name:"flip",enabled:!0,phase:"main",fn:Do,requiresIfExists:["offset"],data:{_skip:!1}};function ln(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function cn(e){return[F,H,U,W].some(function(t){return e[t]>=0})}function No(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,i=Ie(t,{elementContext:"reference"}),c=Ie(t,{altBoundary:!0}),u=ln(i,r),p=ln(c,a,s),f=cn(u),g=cn(p);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":g})}var Io={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:No};function Mo(e,t,n){var r=ee(e),a=[W,F].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],c=s[1];return i=i||0,c=(c||0)*a,[W,H].indexOf(r)>=0?{x:c,y:i}:{x:i,y:c}}function zo(e){var t=e.state,n=e.options,r=e.name,a=n.offset,s=a===void 0?[0,0]:a,i=Gt.reduce(function(f,g){return f[g]=Mo(g,t.rects,s),f},{}),c=i[t.placement],u=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=i}var jo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zo};function Po(e){var t=e.state,n=e.name;t.modifiersData[n]=sn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Fo={name:"popperOffsets",enabled:!0,phase:"read",fn:Po,data:{}};function Wo(e){return e==="x"?"y":"x"}function Uo(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,c=i===void 0?!1:i,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,g=n.padding,b=n.tether,v=b===void 0?!0:b,x=n.tetherOffset,w=x===void 0?0:x,_=Ie(t,{boundary:u,rootBoundary:p,padding:g,altBoundary:f}),$=ee(t.placement),E=Ce(t.placement),A=!E,l=yt($),O=Wo(l),h=t.modifiersData.popperOffsets,B=t.rects.reference,T=t.rects.popper,N=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(!!h){if(s){var V,K=l==="y"?F:W,J=l==="y"?U:H,M=l==="y"?"height":"width",z=h[l],I=z+_[K],ne=z-_[J],re=v?-T[M]/2:0,he=E===we?B[M]:T[M],oe=E===we?-T[M]:-B[M],ve=t.elements.arrow,ie=v&&ve?gt(ve):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qt(),se=Z[K],Oe=Z[J],le=Re(0,B[M],ie[M]),Be=A?B[M]/2-re-le-se-D.mainAxis:he-le-se-D.mainAxis,de=A?-B[M]/2+re+le+Oe+D.mainAxis:oe+le+Oe+D.mainAxis,$e=t.elements.arrow&&De(t.elements.arrow),Qe=$e?l==="y"?$e.clientTop||0:$e.clientLeft||0:0,je=(V=R==null?void 0:R[l])!=null?V:0,et=z+Be-je-Qe,tt=z+de-je,Pe=Re(v?qe(I,et):I,z,v?pe(ne,tt):ne);h[l]=Pe,S[l]=Pe-z}if(c){var Fe,nt=l==="x"?F:W,rt=l==="x"?U:H,ce=h[O],fe=O==="y"?"height":"width",We=ce+_[nt],ge=ce-_[rt],Ue=[F,W].indexOf($)!==-1,ot=(Fe=R==null?void 0:R[O])!=null?Fe:0,at=Ue?We:ce-B[fe]-T[fe]-ot+D.altAxis,it=Ue?ce+B[fe]+T[fe]-ot-D.altAxis:ge,st=v&&Ue?mo(at,ce,it):Re(v?at:We,ce,v?it:ge);h[O]=st,S[O]=st-ce}t.modifiersData[r]=S}}var Ho={name:"preventOverflow",enabled:!0,phase:"main",fn:Uo,requiresIfExists:["offset"]};function qo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xo(e){return e===Y(e)||!q(e)?bt(e):qo(e)}function Yo(e){var t=e.getBoundingClientRect(),n=_e(t.width)/e.offsetWidth||1,r=_e(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Go(e,t,n){n===void 0&&(n=!1);var r=q(t),a=q(t)&&Yo(t),s=ue(t),i=ke(e,a),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Q(t)!=="body"||xt(s))&&(c=Xo(t)),q(t)?(u=ke(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=wt(s))),{x:i.left+c.scrollLeft-u.x,y:i.top+c.scrollTop-u.y,width:i.width,height:i.height}}function Ko(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&a(u)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),r}function Jo(e){var t=Ko(e);return lo.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Zo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Qo(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var un={placement:"bottom",modifiers:[],strategy:"absolute"};function dn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ea(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?un:a;return function(c,u,p){p===void 0&&(p=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},un,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],b=!1,v={state:f,setOptions:function($){var E=typeof $=="function"?$(f.options):$;w(),f.options=Object.assign({},s,f.options,E),f.scrollParents={reference:xe(c)?Ne(c):c.contextElement?Ne(c.contextElement):[],popper:Ne(u)};var A=Jo(Qo([].concat(r,f.options.modifiers)));return f.orderedModifiers=A.filter(function(l){return l.enabled}),x(),v.update()},forceUpdate:function(){if(!b){var $=f.elements,E=$.reference,A=$.popper;if(!!dn(E,A)){f.rects={reference:Go(E,De(A),f.options.strategy==="fixed"),popper:gt(A)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(D){return f.modifiersData[D.name]=Object.assign({},D.data)});for(var l=0;l<f.orderedModifiers.length;l++){if(f.reset===!0){f.reset=!1,l=-1;continue}var O=f.orderedModifiers[l],h=O.fn,B=O.options,T=B===void 0?{}:B,N=O.name;typeof h=="function"&&(f=h({state:f,options:T,name:N,instance:v})||f)}}}},update:Zo(function(){return new Promise(function(_){v.forceUpdate(),_(f)})}),destroy:function(){w(),b=!0}};if(!dn(c,u))return v;v.setOptions(p).then(function(_){!b&&p.onFirstUpdate&&p.onFirstUpdate(_)});function x(){f.orderedModifiers.forEach(function(_){var $=_.name,E=_.options,A=E===void 0?{}:E,l=_.effect;if(typeof l=="function"){var O=l({state:f,name:$,instance:v,options:A}),h=function(){};g.push(O||h)}})}function w(){g.forEach(function(_){return _()}),g=[]}return v}}var ta=[Co,Fo,_o,Kt,jo,Ro,Ho,yo,Io],na=ea({defaultModifiers:ta}),ra="tippy-box",fn="tippy-content",oa="tippy-backdrop",pn="tippy-arrow",mn="tippy-svg-arrow",me={passive:!0,capture:!0},hn=function(){return document.body};function kt(e,t,n){if(Array.isArray(e)){var r=e[t];return r==null?Array.isArray(n)?n[t]:n:r}return e}function Ct(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function vn(e,t){return typeof e=="function"?e.apply(void 0,t):e}function gn(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function aa(e){return e.split(/\s+/).filter(Boolean)}function Ee(e){return[].concat(e)}function yn(e,t){e.indexOf(t)===-1&&e.push(t)}function ia(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function sa(e){return e.split("-")[0]}function Ke(e){return[].slice.call(e)}function bn(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Me(){return document.createElement("div")}function Je(e){return["Element","Fragment"].some(function(t){return Ct(e,t)})}function la(e){return Ct(e,"NodeList")}function ca(e){return Ct(e,"MouseEvent")}function ua(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function da(e){return Je(e)?[e]:la(e)?Ke(e):Array.isArray(e)?e:Ke(document.querySelectorAll(e))}function Et(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function wn(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function fa(e){var t,n=Ee(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function pa(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var s=a.popperRect,i=a.popperState,c=a.props,u=c.interactiveBorder,p=sa(i.placement),f=i.modifiersData.offset;if(!f)return!0;var g=p==="bottom"?f.top.y:0,b=p==="top"?f.bottom.y:0,v=p==="right"?f.left.x:0,x=p==="left"?f.right.x:0,w=s.top-r+g>u,_=r-s.bottom-b>u,$=s.left-n+v>u,E=n-s.right-x>u;return w||_||$||E})}function Ot(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function xn(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var te={isTouch:!1},_n=0;function ma(){te.isTouch||(te.isTouch=!0,window.performance&&document.addEventListener("mousemove",kn))}function kn(){var e=performance.now();e-_n<20&&(te.isTouch=!1,document.removeEventListener("mousemove",kn)),_n=e}function ha(){var e=document.activeElement;if(ua(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function va(){document.addEventListener("touchstart",ma,me),window.addEventListener("blur",ha)}var ga=typeof window!="undefined"&&typeof document!="undefined",ya=ga?!!window.msCrypto:!1,ba={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wa={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},G=Object.assign({appendTo:hn,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ba,wa),xa=Object.keys(G),_a=function(t){var n=Object.keys(t);n.forEach(function(r){G[r]=t[r]})};function Cn(e){var t=e.plugins||[],n=t.reduce(function(r,a){var s=a.name,i=a.defaultValue;if(s){var c;r[s]=e[s]!==void 0?e[s]:(c=G[s])!=null?c:i}return r},{});return Object.assign({},e,n)}function ka(e,t){var n=t?Object.keys(Cn(Object.assign({},G,{plugins:t}))):xa,r=n.reduce(function(a,s){var i=(e.getAttribute("data-tippy-"+s)||"").trim();if(!i)return a;if(s==="content")a[s]=i;else try{a[s]=JSON.parse(i)}catch{a[s]=i}return a},{});return r}function En(e,t){var n=Object.assign({},t,{content:vn(t.content,[e])},t.ignoreAttributes?{}:ka(e,t.plugins));return n.aria=Object.assign({},G.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var Ca=function(){return"innerHTML"};function Bt(e,t){e[Ca()]=t}function On(e){var t=Me();return e===!0?t.className=pn:(t.className=mn,Je(e)?t.appendChild(e):Bt(t,e)),t}function Bn(e,t){Je(t.content)?(Bt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Bt(e,t.content):e.textContent=t.content)}function $t(e){var t=e.firstElementChild,n=Ke(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(fn)}),arrow:n.find(function(r){return r.classList.contains(pn)||r.classList.contains(mn)}),backdrop:n.find(function(r){return r.classList.contains(oa)})}}function $n(e){var t=Me(),n=Me();n.className=ra,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Me();r.className=fn,r.setAttribute("data-state","hidden"),Bn(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(s,i){var c=$t(t),u=c.box,p=c.content,f=c.arrow;i.theme?u.setAttribute("data-theme",i.theme):u.removeAttribute("data-theme"),typeof i.animation=="string"?u.setAttribute("data-animation",i.animation):u.removeAttribute("data-animation"),i.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?u.setAttribute("role",i.role):u.removeAttribute("role"),(s.content!==i.content||s.allowHTML!==i.allowHTML)&&Bn(p,e.props),i.arrow?f?s.arrow!==i.arrow&&(u.removeChild(f),u.appendChild(On(i.arrow))):u.appendChild(On(i.arrow)):f&&u.removeChild(f)}return{popper:t,onUpdate:a}}$n.$$tippy=!0;var Ea=1,Ze=[],At=[];function Oa(e,t){var n=En(e,Object.assign({},G,Cn(bn(t)))),r,a,s,i=!1,c=!1,u=!1,p=!1,f,g,b,v=[],x=gn(et,n.interactiveDebounce),w,_=Ea++,$=null,E=ia(n.plugins),A={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},l={id:_,reference:e,popper:Me(),popperInstance:$,props:n,state:A,plugins:E,clearDelayTimeouts:at,setProps:it,setContent:st,show:$a,hide:Aa,hideWithInteractivity:La,enable:Ue,disable:ot,unmount:Sa,destroy:Ta};if(!n.render)return l;var O=n.render(l),h=O.popper,B=O.onUpdate;h.setAttribute("data-tippy-root",""),h.id="tippy-"+l.id,l.popper=h,e._tippy=l,h._tippy=l;var T=E.map(function(d){return d.fn(l)}),N=e.hasAttribute("aria-expanded");return $e(),re(),z(),I("onCreate",[l]),n.showOnCreate&&We(),h.addEventListener("mouseenter",function(){l.props.interactive&&l.state.isVisible&&l.clearDelayTimeouts()}),h.addEventListener("mouseleave",function(){l.props.interactive&&l.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",x)}),l;function D(){var d=l.props.touch;return Array.isArray(d)?d:[d,0]}function R(){return D()[0]==="hold"}function S(){var d;return!!((d=l.props.render)!=null&&d.$$tippy)}function V(){return w||e}function K(){var d=V().parentNode;return d?fa(d):document}function J(){return $t(h)}function M(d){return l.state.isMounted&&!l.state.isVisible||te.isTouch||f&&f.type==="focus"?0:kt(l.props.delay,d?0:1,G.delay)}function z(d){d===void 0&&(d=!1),h.style.pointerEvents=l.props.interactive&&!d?"":"none",h.style.zIndex=""+l.props.zIndex}function I(d,m,y){if(y===void 0&&(y=!0),T.forEach(function(k){k[d]&&k[d].apply(k,m)}),y){var C;(C=l.props)[d].apply(C,m)}}function ne(){var d=l.props.aria;if(!!d.content){var m="aria-"+d.content,y=h.id,C=Ee(l.props.triggerTarget||e);C.forEach(function(k){var j=k.getAttribute(m);if(l.state.isVisible)k.setAttribute(m,j?j+" "+y:y);else{var X=j&&j.replace(y,"").trim();X?k.setAttribute(m,X):k.removeAttribute(m)}})}}function re(){if(!(N||!l.props.aria.expanded)){var d=Ee(l.props.triggerTarget||e);d.forEach(function(m){l.props.interactive?m.setAttribute("aria-expanded",l.state.isVisible&&m===V()?"true":"false"):m.removeAttribute("aria-expanded")})}}function he(){K().removeEventListener("mousemove",x),Ze=Ze.filter(function(d){return d!==x})}function oe(d){if(!(te.isTouch&&(u||d.type==="mousedown"))){var m=d.composedPath&&d.composedPath()[0]||d.target;if(!(l.props.interactive&&xn(h,m))){if(Ee(l.props.triggerTarget||e).some(function(y){return xn(y,m)})){if(te.isTouch||l.state.isVisible&&l.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[l,d]);l.props.hideOnClick===!0&&(l.clearDelayTimeouts(),l.hide(),c=!0,setTimeout(function(){c=!1}),l.state.isMounted||se())}}}function ve(){u=!0}function ie(){u=!1}function Z(){var d=K();d.addEventListener("mousedown",oe,!0),d.addEventListener("touchend",oe,me),d.addEventListener("touchstart",ie,me),d.addEventListener("touchmove",ve,me)}function se(){var d=K();d.removeEventListener("mousedown",oe,!0),d.removeEventListener("touchend",oe,me),d.removeEventListener("touchstart",ie,me),d.removeEventListener("touchmove",ve,me)}function Oe(d,m){Be(d,function(){!l.state.isVisible&&h.parentNode&&h.parentNode.contains(h)&&m()})}function le(d,m){Be(d,m)}function Be(d,m){var y=J().box;function C(k){k.target===y&&(Ot(y,"remove",C),m())}if(d===0)return m();Ot(y,"remove",g),Ot(y,"add",C),g=C}function de(d,m,y){y===void 0&&(y=!1);var C=Ee(l.props.triggerTarget||e);C.forEach(function(k){k.addEventListener(d,m,y),v.push({node:k,eventType:d,handler:m,options:y})})}function $e(){R()&&(de("touchstart",je,{passive:!0}),de("touchend",tt,{passive:!0})),aa(l.props.trigger).forEach(function(d){if(d!=="manual")switch(de(d,je),d){case"mouseenter":de("mouseleave",tt);break;case"focus":de(ya?"focusout":"blur",Pe);break;case"focusin":de("focusout",Pe);break}})}function Qe(){v.forEach(function(d){var m=d.node,y=d.eventType,C=d.handler,k=d.options;m.removeEventListener(y,C,k)}),v=[]}function je(d){var m,y=!1;if(!(!l.state.isEnabled||Fe(d)||c)){var C=((m=f)==null?void 0:m.type)==="focus";f=d,w=d.currentTarget,re(),!l.state.isVisible&&ca(d)&&Ze.forEach(function(k){return k(d)}),d.type==="click"&&(l.props.trigger.indexOf("mouseenter")<0||i)&&l.props.hideOnClick!==!1&&l.state.isVisible?y=!0:We(d),d.type==="click"&&(i=!y),y&&!C&&ge(d)}}function et(d){var m=d.target,y=V().contains(m)||h.contains(m);if(!(d.type==="mousemove"&&y)){var C=fe().concat(h).map(function(k){var j,X=k._tippy,Ae=(j=X.popperInstance)==null?void 0:j.state;return Ae?{popperRect:k.getBoundingClientRect(),popperState:Ae,props:n}:null}).filter(Boolean);pa(C,d)&&(he(),ge(d))}}function tt(d){var m=Fe(d)||l.props.trigger.indexOf("click")>=0&&i;if(!m){if(l.props.interactive){l.hideWithInteractivity(d);return}ge(d)}}function Pe(d){l.props.trigger.indexOf("focusin")<0&&d.target!==V()||l.props.interactive&&d.relatedTarget&&h.contains(d.relatedTarget)||ge(d)}function Fe(d){return te.isTouch?R()!==d.type.indexOf("touch")>=0:!1}function nt(){rt();var d=l.props,m=d.popperOptions,y=d.placement,C=d.offset,k=d.getReferenceClientRect,j=d.moveTransition,X=S()?$t(h).arrow:null,Ae=k?{getBoundingClientRect:k,contextElement:k.contextElement||V()}:e,An={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(lt){var Le=lt.state;if(S()){var Va=J(),St=Va.box;["placement","reference-hidden","escaped"].forEach(function(ct){ct==="placement"?St.setAttribute("data-placement",Le.placement):Le.attributes.popper["data-popper-"+ct]?St.setAttribute("data-"+ct,""):St.removeAttribute("data-"+ct)}),Le.attributes.popper={}}}},ye=[{name:"offset",options:{offset:C}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!j}},An];S()&&X&&ye.push({name:"arrow",options:{element:X,padding:3}}),ye.push.apply(ye,(m==null?void 0:m.modifiers)||[]),l.popperInstance=na(Ae,h,Object.assign({},m,{placement:y,onFirstUpdate:b,modifiers:ye}))}function rt(){l.popperInstance&&(l.popperInstance.destroy(),l.popperInstance=null)}function ce(){var d=l.props.appendTo,m,y=V();l.props.interactive&&d===hn||d==="parent"?m=y.parentNode:m=vn(d,[y]),m.contains(h)||m.appendChild(h),l.state.isMounted=!0,nt()}function fe(){return Ke(h.querySelectorAll("[data-tippy-root]"))}function We(d){l.clearDelayTimeouts(),d&&I("onTrigger",[l,d]),Z();var m=M(!0),y=D(),C=y[0],k=y[1];te.isTouch&&C==="hold"&&k&&(m=k),m?r=setTimeout(function(){l.show()},m):l.show()}function ge(d){if(l.clearDelayTimeouts(),I("onUntrigger",[l,d]),!l.state.isVisible){se();return}if(!(l.props.trigger.indexOf("mouseenter")>=0&&l.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(d.type)>=0&&i)){var m=M(!1);m?a=setTimeout(function(){l.state.isVisible&&l.hide()},m):s=requestAnimationFrame(function(){l.hide()})}}function Ue(){l.state.isEnabled=!0}function ot(){l.hide(),l.state.isEnabled=!1}function at(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(s)}function it(d){if(!l.state.isDestroyed){I("onBeforeUpdate",[l,d]),Qe();var m=l.props,y=En(e,Object.assign({},m,bn(d),{ignoreAttributes:!0}));l.props=y,$e(),m.interactiveDebounce!==y.interactiveDebounce&&(he(),x=gn(et,y.interactiveDebounce)),m.triggerTarget&&!y.triggerTarget?Ee(m.triggerTarget).forEach(function(C){C.removeAttribute("aria-expanded")}):y.triggerTarget&&e.removeAttribute("aria-expanded"),re(),z(),B&&B(m,y),l.popperInstance&&(nt(),fe().forEach(function(C){requestAnimationFrame(C._tippy.popperInstance.forceUpdate)})),I("onAfterUpdate",[l,d])}}function st(d){l.setProps({content:d})}function $a(){var d=l.state.isVisible,m=l.state.isDestroyed,y=!l.state.isEnabled,C=te.isTouch&&!l.props.touch,k=kt(l.props.duration,0,G.duration);if(!(d||m||y||C)&&!V().hasAttribute("disabled")&&(I("onShow",[l],!1),l.props.onShow(l)!==!1)){if(l.state.isVisible=!0,S()&&(h.style.visibility="visible"),z(),Z(),l.state.isMounted||(h.style.transition="none"),S()){var j=J(),X=j.box,Ae=j.content;Et([X,Ae],0)}b=function(){var ye;if(!(!l.state.isVisible||p)){if(p=!0,h.offsetHeight,h.style.transition=l.props.moveTransition,S()&&l.props.animation){var Lt=J(),lt=Lt.box,Le=Lt.content;Et([lt,Le],k),wn([lt,Le],"visible")}ne(),re(),yn(At,l),(ye=l.popperInstance)==null||ye.forceUpdate(),I("onMount",[l]),l.props.animation&&S()&&le(k,function(){l.state.isShown=!0,I("onShown",[l])})}},ce()}}function Aa(){var d=!l.state.isVisible,m=l.state.isDestroyed,y=!l.state.isEnabled,C=kt(l.props.duration,1,G.duration);if(!(d||m||y)&&(I("onHide",[l],!1),l.props.onHide(l)!==!1)){if(l.state.isVisible=!1,l.state.isShown=!1,p=!1,i=!1,S()&&(h.style.visibility="hidden"),he(),se(),z(!0),S()){var k=J(),j=k.box,X=k.content;l.props.animation&&(Et([j,X],C),wn([j,X],"hidden"))}ne(),re(),l.props.animation?S()&&Oe(C,l.unmount):l.unmount()}}function La(d){K().addEventListener("mousemove",x),yn(Ze,x),x(d)}function Sa(){l.state.isVisible&&l.hide(),l.state.isMounted&&(rt(),fe().forEach(function(d){d._tippy.unmount()}),h.parentNode&&h.parentNode.removeChild(h),At=At.filter(function(d){return d!==l}),l.state.isMounted=!1,I("onHidden",[l]))}function Ta(){l.state.isDestroyed||(l.clearDelayTimeouts(),l.unmount(),Qe(),delete e._tippy,l.state.isDestroyed=!0,I("onDestroy",[l]))}}function ze(e,t){t===void 0&&(t={});var n=G.plugins.concat(t.plugins||[]);va();var r=Object.assign({},t,{plugins:n}),a=da(e),s=a.reduce(function(i,c){var u=c&&Oa(c,r);return u&&i.push(u),i},[]);return Je(e)?s[0]:s}ze.defaultProps=G,ze.setDefaultProps=_a,ze.currentInput=te,Object.assign({},Kt,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),ze.setDefaultProps({render:$n});var _i="",ki="",Ci="",Ei="",Ba={install(e){e.directive("tooltip",{mounted(t,n){ze(t,{theme:"dark",trigger:n.value.trigger,content:n.value.content,animation:"shift-away-subtle",interactive:!0,appendTo:"parent",placement:n.value.placement})}})}},Oi="",Bi="",$i="";L.LewAlert=Yr,L.LewAvatar=Tn,L.LewBadge=Mn,L.LewButton=Dn,L.LewCheckbox=Nt,L.LewCheckboxGroup=Zn,L.LewFormItem=Pn,L.LewInput=Rt,L.LewModal=Kr,L.LewRadiobox=It,L.LewRadioboxGroup=tr,L.LewSelect=Hn,L.LewSwitch=Xn,L.LewTabs=or,L.LewTextarea=Gn,L.LewTitle=zn,L.LewTooltips=Ba,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
16
|
+
`)}function qr(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function bt(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function _t(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Gr(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}window&&(window.__cssrContext={});function Qt(e){const t=e.getAttribute("mount-count");return t===null?null:Number(t)}function xt(e,t){e.setAttribute("mount-count",String(t))}function en(e,t,n,r){const{els:a}=t;if(n===void 0)a.forEach(bt),t.els=[];else{const s=_t(n);if(s&&a.includes(s)){const i=Qt(s);r?i===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):i<=1?(bt(s),t.els=a.filter(c=>c!==s)):xt(s,i-1):i!==null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`):(bt(s),t.els=a.filter(c=>c!==s))}}}function Xr(e,t){e.push(t)}function Yr(e,t,n,r,a,s,i,c,u){if(i&&!u){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}const v=window.__cssrContext;v[n]||(v[n]=!0,Zt(t,e,r,i));return}let p;const{els:f}=t;let g;if(n===void 0&&(g=t.render(r),n=qr(g)),u){u(n,g!=null?g:t.render(r));return}const w=_t(n);if(c||w===null){if(p=w===null?Gr(n):w,g===void 0&&(g=t.render(r)),p.textContent=g,w!==null)return;if(a){const v=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(p,v)}else document.head.appendChild(p);s&&xt(p,1),Xr(f,p)}else{const v=Qt(w);s?v===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):xt(w,v+1):v!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return w!=null?w:p}function Kr(e){return Zt(this,this.instance,e)}function Jr(e={}){const{target:t,id:n,ssr:r,props:a,count:s=!1,head:i=!1,boost:c=!1,force:u=!1}=e;return Yr(this.instance,this,n!=null?n:t,a,i,s,c,u,r)}function Zr(e={}){const{id:t,target:n,delay:r=0,count:a=!1}=e;r===0?en(this.instance,this,t!=null?t:n,a):setTimeout(()=>en(this.instance,this,t!=null?t:n,a),r)}const Qe=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Kr,mount:Jr,unmount:Zr}},Qr=function(e,t,n,r){return Array.isArray(t)?Qe(e,{$:null},null,t):Array.isArray(n)?Qe(e,t,null,n):Array.isArray(r)?Qe(e,t,n,r):Qe(e,t,n,null)};function eo(e={}){let t=null;const n={c:(...r)=>Qr(n,...r),use:(r,...a)=>r.install(n,...a),find:_t,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}const{c:kt}=eo(),to=kt(".xicon",{width:"1em",height:"1em",display:"inline-flex"},[kt("svg",{width:"1em",height:"1em"}),kt("svg:not([fill])",{fill:"currentColor"})]),no=()=>{to.mount({id:"xicons-icon"})},tn={size:[String,Number],color:String,tag:String},nn=Symbol("IconConfigInjection");o.defineComponent({name:"IconConfigProvider",props:tn,setup(e,{slots:t}){return o.provide(nn,e),()=>o.renderSlot(t,"default")}});const ro="span",xe=o.defineComponent({name:"Icon",props:tn,setup(e,{slots:t}){const n=o.inject(nn,null),r=o.computed(()=>{var i;const c=(i=e.size)!==null&&i!==void 0?i:n==null?void 0:n.size;if(c!==void 0)return typeof c=="number"||/^\d+$/.test(c)?`${c}px`:c}),a=o.computed(()=>{const{color:i}=e;return i===void 0?n?n.color:void 0:i}),s=o.computed(()=>{var i;const{tag:c}=e;return c===void 0?(i=n==null?void 0:n.tag)!==null&&i!==void 0?i:ro:c});return o.onBeforeMount(()=>{no()}),()=>o.h(s.value,{class:"xicon",style:{color:a.value,fontSize:r.value}},[o.renderSlot(t,"default")])}});var is="";const oo={class:"lew-alert-group"},ao={class:"alert-icon"},io={class:"message"},so={class:"title"},lo=["onClick"];var co=N(o.defineComponent({name:"LewAlert",props:{alertList:{type:Array,default(){return[]}}},emits:["close"],setup(e,{emit:t}){return(n,r)=>(o.openBlock(),o.createElementBlock("div",oo,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.alertList,(a,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:o.normalizeClass(["lew-alert",`lew-alert-${a.type}`])},[o.createElementVNode("div",ao,[a.type=="normal"?(o.openBlock(),o.createBlock(o.unref(xe),{key:0,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(Vr))]),_:1})):o.createCommentVNode("v-if",!0),a.type=="warning"?(o.openBlock(),o.createBlock(o.unref(xe),{key:1,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(Nr))]),_:1})):o.createCommentVNode("v-if",!0),a.type=="success"?(o.openBlock(),o.createBlock(o.unref(xe),{key:2,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(Cr))]),_:1})):o.createCommentVNode("v-if",!0),a.type=="danger"?(o.openBlock(),o.createBlock(o.unref(xe),{key:3,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ar))]),_:1})):o.createCommentVNode("v-if",!0),a.type=="primary"?(o.openBlock(),o.createBlock(o.unref(xe),{key:4,size:"24"},{default:o.withCtx(()=>[o.createVNode(o.unref(xr))]),_:1})):o.createCommentVNode("v-if",!0)]),o.createElementVNode("div",io,[o.createElementVNode("div",so,o.toDisplayString(a.title),1),o.withDirectives(o.createElementVNode("div",{class:"content"},o.toDisplayString(a.content),513),[[o.vShow,a.content]])]),o.createElementVNode("div",{class:"close",onClick:i=>t("close",s)},[o.createVNode(o.unref(xe),{size:"20"},{default:o.withCtx(()=>[o.createVNode(o.unref(Sr))]),_:1})],8,lo)],2))),128))]))}}),[["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/feedback/LewAlert.vue"]]);function uo(e){const t=document.createElement("div");t.id=e,document.body.appendChild(t),o.onUnmounted(()=>{document.body.removeChild(t)})}var ls="",fo=N(o.defineComponent({name:"LewModal",props:{title:{type:String,default:""},width:{type:String,default:""},height:{type:String,default:""},visible:{type:Boolean,default:!1}},emits:["maskClick","confirm"],setup(e,{emit:t}){uo("lew-modal");const n=()=>{t("maskClick")};return(r,a)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"#lew-modal"},[o.createVNode(o.Transition,{name:"lew-modal"},{default:o.withCtx(()=>[e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"lew-modal",onClick:n},[e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"lew-modal-box",style:o.normalizeStyle(`width:${e.width};height:${e.height}`),onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop"]))},[o.renderSlot(r.$slots,"default",{},void 0,!0)],4)):o.createCommentVNode("v-if",!0)])):o.createCommentVNode("v-if",!0)]),_:3})]))}}),[["__scopeId","data-v-f98cc7b8"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/feedback/LewModal.vue"]]),U="top",q="bottom",G="right",H="left",et="auto",Me=[U,q,G,H],ke="start",Ne="end",po="clippingParents",rn="viewport",Re="popper",mo="reference",on=Me.reduce(function(e,t){return e.concat([t+"-"+ke,t+"-"+Ne])},[]),an=[].concat(Me,[et]).reduce(function(e,t){return e.concat([t,t+"-"+ke,t+"-"+Ne])},[]),ho="beforeRead",vo="read",go="afterRead",yo="beforeMain",wo="main",bo="afterMain",_o="beforeWrite",xo="write",ko="afterWrite",Et=[ho,vo,go,yo,wo,bo,_o,xo,ko];function te(e){return e?(e.nodeName||"").toLowerCase():null}function Y(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ee(e){var t=Y(e).Element;return e instanceof t||e instanceof Element}function F(e){var t=Y(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ct(e){if(typeof ShadowRoot=="undefined")return!1;var t=Y(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Eo(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},s=t.elements[n];!F(s)||!te(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(i){var c=a[i];c===!1?s.removeAttribute(i):s.setAttribute(i,c===!0?"":c)}))})}function Co(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=i.reduce(function(u,p){return u[p]="",u},{});!F(a)||!te(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(u){a.removeAttribute(u)}))})}}var sn={name:"applyStyles",enabled:!0,phase:"write",fn:Eo,effect:Co,requires:["computeStyles"]};function K(e){return e.split("-")[0]}var he=Math.max,tt=Math.min,Ce=Math.round;function Le(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(F(e)&&t){var s=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Ce(n.width)/i||1),s>0&&(a=Ce(n.height)/s||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Lt(e){var t=Le(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ln(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ct(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function J(e){return Y(e).getComputedStyle(e)}function Lo(e){return["table","td","th"].indexOf(te(e))>=0}function de(e){return((Ee(e)?e.ownerDocument:e.document)||window.document).documentElement}function nt(e){return te(e)==="html"?e:e.assignedSlot||e.parentNode||(Ct(e)?e.host:null)||de(e)}function cn(e){return!F(e)||J(e).position==="fixed"?null:e.offsetParent}function Oo(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&F(e)){var r=J(e);if(r.position==="fixed")return null}var a=nt(e);for(Ct(a)&&(a=a.host);F(a)&&["html","body"].indexOf(te(a))<0;){var s=J(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function je(e){for(var t=Y(e),n=cn(e);n&&Lo(n)&&J(n).position==="static";)n=cn(n);return n&&(te(n)==="html"||te(n)==="body"&&J(n).position==="static")?t:n||Oo(e)||t}function Ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pe(e,t,n){return he(e,tt(t,n))}function So(e,t,n){var r=Pe(e,t,n);return r>n?n:r}function un(){return{top:0,right:0,bottom:0,left:0}}function dn(e){return Object.assign({},un(),e)}function fn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $o=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,dn(typeof t!="number"?t:fn(t,Me))};function Bo(e){var t,n=e.state,r=e.name,a=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,c=K(n.placement),u=Ot(c),p=[H,G].indexOf(c)>=0,f=p?"height":"width";if(!(!s||!i)){var g=$o(a.padding,n),w=Lt(s),v=u==="y"?U:H,_=u==="y"?q:G,b=n.rects.reference[f]+n.rects.reference[u]-i[u]-n.rects.popper[f],x=i[u]-n.rects.reference[u],$=je(s),S=$?u==="y"?$.clientHeight||0:$.clientWidth||0:0,B=b/2-x/2,l=g[v],E=S-w[f]-g[_],m=S/2-w[f]/2+B,L=Pe(l,m,E),D=u;n.modifiersData[r]=(t={},t[D]=L,t.centerOffset=L-m,t)}}function Ao(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;if(a!=null&&!(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a))){if(F(a)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!ln(t.elements.popper,a)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=a}}var To={name:"arrow",enabled:!0,phase:"main",fn:Bo,effect:Ao,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oe(e){return e.split("-")[1]}var Do={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vo(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Ce(t*a)/a||0,y:Ce(n*a)/a||0}}function pn(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,i=e.offsets,c=e.position,u=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,g=e.isFixed,w=i.x,v=w===void 0?0:w,_=i.y,b=_===void 0?0:_,x=typeof f=="function"?f({x:v,y:b}):{x:v,y:b};v=x.x,b=x.y;var $=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),B=H,l=U,E=window;if(p){var m=je(n),L="clientHeight",D="clientWidth";if(m===Y(n)&&(m=de(n),J(m).position!=="static"&&c==="absolute"&&(L="scrollHeight",D="scrollWidth")),m=m,a===U||(a===H||a===G)&&s===Ne){l=q;var M=g&&m===E&&E.visualViewport?E.visualViewport.height:m[L];b-=M-r.height,b*=u?1:-1}if(a===H||(a===U||a===q)&&s===Ne){B=G;var V=g&&m===E&&E.visualViewport?E.visualViewport.width:m[D];v-=V-r.width,v*=u?1:-1}}var C=Object.assign({position:c},p&&Do),A=f===!0?Vo({x:v,y:b}):{x:v,y:b};if(v=A.x,b=A.y,u){var I;return Object.assign({},C,(I={},I[l]=S?"0":"",I[B]=$?"0":"",I.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",I))}return Object.assign({},C,(t={},t[l]=S?b+"px":"",t[B]=$?v+"px":"",t.transform="",t))}function Io(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,c=n.roundOffsets,u=c===void 0?!0:c;{var p=J(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some(function(g){return p.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
17
|
+
|
|
18
|
+
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
19
|
+
|
|
20
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var f={placement:K(t.placement),variation:Oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pn(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Mo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Io,data:{}},rt={passive:!0};function No(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=a===void 0?!0:a,i=r.resize,c=i===void 0?!0:i,u=Y(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(f){f.addEventListener("scroll",n.update,rt)}),c&&u.addEventListener("resize",n.update,rt),function(){s&&p.forEach(function(f){f.removeEventListener("scroll",n.update,rt)}),c&&u.removeEventListener("resize",n.update,rt)}}var Ro={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:No,data:{}},jo={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(e){return e.replace(/left|right|bottom|top/g,function(t){return jo[t]})}var Po={start:"end",end:"start"};function mn(e){return e.replace(/start|end/g,function(t){return Po[t]})}function St(e){var t=Y(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $t(e){return Le(de(e)).left+St(e).scrollLeft}function zo(e){var t=Y(e),n=de(e),r=t.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,c=0;return r&&(a=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,c=r.offsetTop)),{width:a,height:s,x:i+$t(e),y:c}}function Uo(e){var t,n=de(e),r=St(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=he(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=he(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-r.scrollLeft+$t(e),u=-r.scrollTop;return J(a||n).direction==="rtl"&&(c+=he(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:c,y:u}}function Bt(e){var t=J(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function hn(e){return["html","body","#document"].indexOf(te(e))>=0?e.ownerDocument.body:F(e)&&Bt(e)?e:hn(nt(e))}function ze(e,t){var n;t===void 0&&(t=[]);var r=hn(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),s=Y(r),i=a?[s].concat(s.visualViewport||[],Bt(r)?r:[]):r,c=t.concat(i);return a?c:c.concat(ze(nt(i)))}function At(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ho(e){var t=Le(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function vn(e,t){return t===rn?At(zo(e)):Ee(t)?Ho(t):At(Uo(de(e)))}function Fo(e){var t=ze(nt(e)),n=["absolute","fixed"].indexOf(J(e).position)>=0,r=n&&F(e)?je(e):e;return Ee(r)?t.filter(function(a){return Ee(a)&&ln(a,r)&&te(a)!=="body"}):[]}function Wo(e,t,n){var r=t==="clippingParents"?Fo(e):[].concat(t),a=[].concat(r,[n]),s=a[0],i=a.reduce(function(c,u){var p=vn(e,u);return c.top=he(p.top,c.top),c.right=tt(p.right,c.right),c.bottom=tt(p.bottom,c.bottom),c.left=he(p.left,c.left),c},vn(e,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function gn(e){var t=e.reference,n=e.element,r=e.placement,a=r?K(r):null,s=r?Oe(r):null,i=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(a){case U:u={x:i,y:t.y-n.height};break;case q:u={x:i,y:t.y+t.height};break;case G:u={x:t.x+t.width,y:c};break;case H:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var p=a?Ot(a):null;if(p!=null){var f=p==="y"?"height":"width";switch(s){case ke:u[p]=u[p]-(t[f]/2-n[f]/2);break;case Ne:u[p]=u[p]+(t[f]/2-n[f]/2);break}}return u}function Ue(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,s=n.boundary,i=s===void 0?po:s,c=n.rootBoundary,u=c===void 0?rn:c,p=n.elementContext,f=p===void 0?Re:p,g=n.altBoundary,w=g===void 0?!1:g,v=n.padding,_=v===void 0?0:v,b=dn(typeof _!="number"?_:fn(_,Me)),x=f===Re?mo:Re,$=e.rects.popper,S=e.elements[w?x:f],B=Wo(Ee(S)?S:S.contextElement||de(e.elements.popper),i,u),l=Le(e.elements.reference),E=gn({reference:l,element:$,strategy:"absolute",placement:a}),m=At(Object.assign({},$,E)),L=f===Re?m:l,D={top:B.top-L.top+b.top,bottom:L.bottom-B.bottom+b.bottom,left:B.left-L.left+b.left,right:L.right-B.right+b.right},M=e.modifiersData.offset;if(f===Re&&M){var V=M[a];Object.keys(D).forEach(function(C){var A=[G,q].indexOf(C)>=0?1:-1,I=[U,q].indexOf(C)>=0?"y":"x";D[C]+=V[I]*A})}return D}function qo(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,s=n.rootBoundary,i=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,p=u===void 0?an:u,f=Oe(r),g=f?c?on:on.filter(function(_){return Oe(_)===f}):Me,w=g.filter(function(_){return p.indexOf(_)>=0});w.length===0&&(w=g,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var v=w.reduce(function(_,b){return _[b]=Ue(e,{placement:b,boundary:a,rootBoundary:s,padding:i})[K(b)],_},{});return Object.keys(v).sort(function(_,b){return v[_]-v[b]})}function Go(e){if(K(e)===et)return[];var t=ot(e);return[mn(e),t,mn(t)]}function Xo(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,c=i===void 0?!0:i,u=n.fallbackPlacements,p=n.padding,f=n.boundary,g=n.rootBoundary,w=n.altBoundary,v=n.flipVariations,_=v===void 0?!0:v,b=n.allowedAutoPlacements,x=t.options.placement,$=K(x),S=$===x,B=u||(S||!_?[ot(x)]:Go(x)),l=[x].concat(B).reduce(function(se,ee){return se.concat(K(ee)===et?qo(t,{placement:ee,boundary:f,rootBoundary:g,padding:p,flipVariations:_,allowedAutoPlacements:b}):ee)},[]),E=t.rects.reference,m=t.rects.popper,L=new Map,D=!0,M=l[0],V=0;V<l.length;V++){var C=l[V],A=K(C),I=Oe(C)===ke,Z=[U,q].indexOf(A)>=0,Q=Z?"width":"height",j=Ue(t,{placement:C,boundary:f,rootBoundary:g,altBoundary:w,padding:p}),P=Z?I?G:H:I?q:U;E[Q]>m[Q]&&(P=ot(P));var R=ot(P),re=[];if(s&&re.push(j[A]<=0),c&&re.push(j[P]<=0,j[R]<=0),re.every(function(se){return se})){M=C,D=!1;break}L.set(C,re)}if(D)for(var oe=_?3:1,ye=function(ee){var le=l.find(function(Ae){var ce=L.get(Ae);if(ce)return ce.slice(0,ee).every(function(Te){return Te})});if(le)return M=le,"break"},ae=oe;ae>0;ae--){var we=ye(ae);if(we==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var Yo={name:"flip",enabled:!0,phase:"main",fn:Xo,requiresIfExists:["offset"],data:{_skip:!1}};function yn(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wn(e){return[U,G,q,H].some(function(t){return e[t]>=0})}function Ko(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,i=Ue(t,{elementContext:"reference"}),c=Ue(t,{altBoundary:!0}),u=yn(i,r),p=yn(c,a,s),f=wn(u),g=wn(p);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":g})}var Jo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ko};function Zo(e,t,n){var r=K(e),a=[H,U].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],c=s[1];return i=i||0,c=(c||0)*a,[H,G].indexOf(r)>=0?{x:c,y:i}:{x:i,y:c}}function Qo(e){var t=e.state,n=e.options,r=e.name,a=n.offset,s=a===void 0?[0,0]:a,i=an.reduce(function(f,g){return f[g]=Zo(g,t.rects,s),f},{}),c=i[t.placement],u=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=i}var ea={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qo};function ta(e){var t=e.state,n=e.name;t.modifiersData[n]=gn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var na={name:"popperOffsets",enabled:!0,phase:"read",fn:ta,data:{}};function ra(e){return e==="x"?"y":"x"}function oa(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,s=a===void 0?!0:a,i=n.altAxis,c=i===void 0?!1:i,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,g=n.padding,w=n.tether,v=w===void 0?!0:w,_=n.tetherOffset,b=_===void 0?0:_,x=Ue(t,{boundary:u,rootBoundary:p,padding:g,altBoundary:f}),$=K(t.placement),S=Oe(t.placement),B=!S,l=Ot($),E=ra(l),m=t.modifiersData.popperOffsets,L=t.rects.reference,D=t.rects.popper,M=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,V=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(!!m){if(s){var I,Z=l==="y"?U:H,Q=l==="y"?q:G,j=l==="y"?"height":"width",P=m[l],R=P+x[Z],re=P-x[Q],oe=v?-D[j]/2:0,ye=S===ke?L[j]:D[j],ae=S===ke?-D[j]:-L[j],we=t.elements.arrow,se=v&&we?Lt(we):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:un(),le=ee[Z],Ae=ee[Q],ce=Pe(0,L[j],se[j]),Te=B?L[j]/2-oe-ce-le-V.mainAxis:ye-ce-le-V.mainAxis,pe=B?-L[j]/2+oe+ce+Ae+V.mainAxis:ae+ce+Ae+V.mainAxis,De=t.elements.arrow&&je(t.elements.arrow),st=De?l==="y"?De.clientTop||0:De.clientLeft||0:0,Xe=(I=C==null?void 0:C[l])!=null?I:0,lt=P+Te-Xe-st,ct=P+pe-Xe,Ye=Pe(v?tt(R,lt):R,P,v?he(re,ct):re);m[l]=Ye,A[l]=Ye-P}if(c){var Ke,ut=l==="x"?U:H,dt=l==="x"?q:G,ue=m[E],me=E==="y"?"height":"width",Je=ue+x[ut],be=ue-x[dt],Ze=[U,H].indexOf($)!==-1,ft=(Ke=C==null?void 0:C[E])!=null?Ke:0,pt=Ze?Je:ue-L[me]-D[me]-ft+V.altAxis,mt=Ze?ue+L[me]+D[me]-ft-V.altAxis:be,ht=v&&Ze?So(pt,ue,mt):Pe(v?pt:Je,ue,v?mt:be);m[E]=ht,A[E]=ht-ue}t.modifiersData[r]=A}}var aa={name:"preventOverflow",enabled:!0,phase:"main",fn:oa,requiresIfExists:["offset"]};function ia(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sa(e){return e===Y(e)||!F(e)?St(e):ia(e)}function la(e){var t=e.getBoundingClientRect(),n=Ce(t.width)/e.offsetWidth||1,r=Ce(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ca(e,t,n){n===void 0&&(n=!1);var r=F(t),a=F(t)&&la(t),s=de(t),i=Le(e,a),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((te(t)!=="body"||Bt(s))&&(c=sa(t)),F(t)?(u=Le(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=$t(s))),{x:i.left+c.scrollLeft-u.x,y:i.top+c.scrollTop-u.y,width:i.width,height:i.height}}function ua(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&a(u)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),r}function da(e){var t=ua(e);return Et.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function fa(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(a,s){return a.replace(/%s/,s)},e)}var ve='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',pa='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',bn=["name","enabled","phase","fn","effect","requires","options"];function ma(e){e.forEach(function(t){[].concat(Object.keys(t),bn).filter(function(n,r,a){return a.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(fe(ve,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(fe(ve,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Et.indexOf(t.phase)<0&&console.error(fe(ve,t.name,'"phase"',"either "+Et.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(fe(ve,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(fe(ve,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(fe(ve,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(fe(ve,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+bn.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(a){return a.name===r})==null&&console.error(fe(pa,String(t.name),r,r))})})})}function ha(e,t){var n=new Set;return e.filter(function(r){var a=t(r);if(!n.has(a))return n.add(a),!0})}function va(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _n="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ga="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",xn={placement:"bottom",modifiers:[],strategy:"absolute"};function kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ya(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?xn:a;return function(c,u,p){p===void 0&&(p=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},xn,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],w=!1,v={state:f,setOptions:function($){var S=typeof $=="function"?$(f.options):$;b(),f.options=Object.assign({},s,f.options,S),f.scrollParents={reference:Ee(c)?ze(c):c.contextElement?ze(c.contextElement):[],popper:ze(u)};var B=da(va([].concat(r,f.options.modifiers)));f.orderedModifiers=B.filter(function(C){return C.enabled});{var l=ha([].concat(B,f.options.modifiers),function(C){var A=C.name;return A});if(ma(l),K(f.options.placement)===et){var E=f.orderedModifiers.find(function(C){var A=C.name;return A==="flip"});E||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var m=J(u),L=m.marginTop,D=m.marginRight,M=m.marginBottom,V=m.marginLeft;[L,D,M,V].some(function(C){return parseFloat(C)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return _(),v.update()},forceUpdate:function(){if(!w){var $=f.elements,S=$.reference,B=$.popper;if(!kn(S,B)){console.error(_n);return}f.rects={reference:ca(S,je(B),f.options.strategy==="fixed"),popper:Lt(B)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(C){return f.modifiersData[C.name]=Object.assign({},C.data)});for(var l=0,E=0;E<f.orderedModifiers.length;E++){if(l+=1,l>100){console.error(ga);break}if(f.reset===!0){f.reset=!1,E=-1;continue}var m=f.orderedModifiers[E],L=m.fn,D=m.options,M=D===void 0?{}:D,V=m.name;typeof L=="function"&&(f=L({state:f,options:M,name:V,instance:v})||f)}}},update:fa(function(){return new Promise(function(x){v.forceUpdate(),x(f)})}),destroy:function(){b(),w=!0}};if(!kn(c,u))return console.error(_n),v;v.setOptions(p).then(function(x){!w&&p.onFirstUpdate&&p.onFirstUpdate(x)});function _(){f.orderedModifiers.forEach(function(x){var $=x.name,S=x.options,B=S===void 0?{}:S,l=x.effect;if(typeof l=="function"){var E=l({state:f,name:$,instance:v,options:B}),m=function(){};g.push(E||m)}})}function b(){g.forEach(function(x){return x()}),g=[]}return v}}var wa=[Ro,na,Mo,sn,ea,Yo,aa,To,Jo],ba=ya({defaultModifiers:wa}),_a="tippy-box",En="tippy-content",xa="tippy-backdrop",Cn="tippy-arrow",Ln="tippy-svg-arrow",ge={passive:!0,capture:!0},On=function(){return document.body};function ka(e,t){return{}.hasOwnProperty.call(e,t)}function Tt(e,t,n){if(Array.isArray(e)){var r=e[t];return r==null?Array.isArray(n)?n[t]:n:r}return e}function Dt(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Sn(e,t){return typeof e=="function"?e.apply(void 0,t):e}function $n(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Ea(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Ca(e){return e.split(/\s+/).filter(Boolean)}function Se(e){return[].concat(e)}function Bn(e,t){e.indexOf(t)===-1&&e.push(t)}function La(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Oa(e){return e.split("-")[0]}function at(e){return[].slice.call(e)}function An(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function He(){return document.createElement("div")}function Fe(e){return["Element","Fragment"].some(function(t){return Dt(e,t)})}function Sa(e){return Dt(e,"NodeList")}function $a(e){return Dt(e,"MouseEvent")}function Ba(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Aa(e){return Fe(e)?[e]:Sa(e)?at(e):Array.isArray(e)?e:at(document.querySelectorAll(e))}function Vt(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Tn(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Ta(e){var t,n=Se(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Da(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var s=a.popperRect,i=a.popperState,c=a.props,u=c.interactiveBorder,p=Oa(i.placement),f=i.modifiersData.offset;if(!f)return!0;var g=p==="bottom"?f.top.y:0,w=p==="top"?f.bottom.y:0,v=p==="right"?f.left.x:0,_=p==="left"?f.right.x:0,b=s.top-r+g>u,x=r-s.bottom-w>u,$=s.left-n+v>u,S=n-s.right-_>u;return b||x||$||S})}function It(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function Dn(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var ne={isTouch:!1},Vn=0;function Va(){ne.isTouch||(ne.isTouch=!0,window.performance&&document.addEventListener("mousemove",In))}function In(){var e=performance.now();e-Vn<20&&(ne.isTouch=!1,document.removeEventListener("mousemove",In)),Vn=e}function Ia(){var e=document.activeElement;if(Ba(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Ma(){document.addEventListener("touchstart",Va,ge),window.addEventListener("blur",Ia)}var Na=typeof window!="undefined"&&typeof document!="undefined",Ra=Na?!!window.msCrypto:!1;function $e(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Mn(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function ja(e){return Mn(`
|
|
21
|
+
%ctippy.js
|
|
22
|
+
|
|
23
|
+
%c`+Mn(e)+`
|
|
24
|
+
|
|
25
|
+
%c\u{1F477}\u200D This is a development-only message. It will be removed in production.
|
|
26
|
+
`)}function Nn(e){return[ja(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var We;Pa();function Pa(){We=new Set}function ie(e,t){if(e&&!We.has(t)){var n;We.add(t),(n=console).warn.apply(n,Nn(t))}}function Mt(e,t){if(e&&!We.has(t)){var n;We.add(t),(n=console).error.apply(n,Nn(t))}}function za(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;Mt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Mt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Rn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ua={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},W=Object.assign({appendTo:On,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Rn,Ua),Ha=Object.keys(W),Fa=function(t){zn(t,[]);var n=Object.keys(t);n.forEach(function(r){W[r]=t[r]})};function jn(e){var t=e.plugins||[],n=t.reduce(function(r,a){var s=a.name,i=a.defaultValue;if(s){var c;r[s]=e[s]!==void 0?e[s]:(c=W[s])!=null?c:i}return r},{});return Object.assign({},e,n)}function Wa(e,t){var n=t?Object.keys(jn(Object.assign({},W,{plugins:t}))):Ha,r=n.reduce(function(a,s){var i=(e.getAttribute("data-tippy-"+s)||"").trim();if(!i)return a;if(s==="content")a[s]=i;else try{a[s]=JSON.parse(i)}catch{a[s]=i}return a},{});return r}function Pn(e,t){var n=Object.assign({},t,{content:Sn(t.content,[e])},t.ignoreAttributes?{}:Wa(e,t.plugins));return n.aria=Object.assign({},W.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}function zn(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var a=Ea(W,Object.keys(Rn)),s=!ka(a,r);s&&(s=t.filter(function(i){return i.name===r}).length===0),ie(s,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
27
|
+
|
|
28
|
+
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
29
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var qa=function(){return"innerHTML"};function Nt(e,t){e[qa()]=t}function Un(e){var t=He();return e===!0?t.className=Cn:(t.className=Ln,Fe(e)?t.appendChild(e):Nt(t,e)),t}function Hn(e,t){Fe(t.content)?(Nt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Nt(e,t.content):e.textContent=t.content)}function Rt(e){var t=e.firstElementChild,n=at(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(En)}),arrow:n.find(function(r){return r.classList.contains(Cn)||r.classList.contains(Ln)}),backdrop:n.find(function(r){return r.classList.contains(xa)})}}function Fn(e){var t=He(),n=He();n.className=_a,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=He();r.className=En,r.setAttribute("data-state","hidden"),Hn(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(s,i){var c=Rt(t),u=c.box,p=c.content,f=c.arrow;i.theme?u.setAttribute("data-theme",i.theme):u.removeAttribute("data-theme"),typeof i.animation=="string"?u.setAttribute("data-animation",i.animation):u.removeAttribute("data-animation"),i.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?u.setAttribute("role",i.role):u.removeAttribute("role"),(s.content!==i.content||s.allowHTML!==i.allowHTML)&&Hn(p,e.props),i.arrow?f?s.arrow!==i.arrow&&(u.removeChild(f),u.appendChild(Un(i.arrow))):u.appendChild(Un(i.arrow)):f&&u.removeChild(f)}return{popper:t,onUpdate:a}}Fn.$$tippy=!0;var Ga=1,it=[],jt=[];function Xa(e,t){var n=Pn(e,Object.assign({},W,jn(An(t)))),r,a,s,i=!1,c=!1,u=!1,p=!1,f,g,w,v=[],_=$n(lt,n.interactiveDebounce),b,x=Ga++,$=null,S=La(n.plugins),B={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},l={id:x,reference:e,popper:He(),popperInstance:$,props:n,state:B,plugins:S,clearDelayTimeouts:pt,setProps:mt,setContent:ht,show:mi,hide:hi,hideWithInteractivity:vi,enable:Ze,disable:ft,unmount:gi,destroy:yi};if(!n.render)return Mt(!0,"render() function has not been supplied."),l;var E=n.render(l),m=E.popper,L=E.onUpdate;m.setAttribute("data-tippy-root",""),m.id="tippy-"+l.id,l.popper=m,e._tippy=l,m._tippy=l;var D=S.map(function(d){return d.fn(l)}),M=e.hasAttribute("aria-expanded");return De(),oe(),P(),R("onCreate",[l]),n.showOnCreate&&Je(),m.addEventListener("mouseenter",function(){l.props.interactive&&l.state.isVisible&&l.clearDelayTimeouts()}),m.addEventListener("mouseleave",function(){l.props.interactive&&l.props.trigger.indexOf("mouseenter")>=0&&Z().addEventListener("mousemove",_)}),l;function V(){var d=l.props.touch;return Array.isArray(d)?d:[d,0]}function C(){return V()[0]==="hold"}function A(){var d;return!!((d=l.props.render)!=null&&d.$$tippy)}function I(){return b||e}function Z(){var d=I().parentNode;return d?Ta(d):document}function Q(){return Rt(m)}function j(d){return l.state.isMounted&&!l.state.isVisible||ne.isTouch||f&&f.type==="focus"?0:Tt(l.props.delay,d?0:1,W.delay)}function P(d){d===void 0&&(d=!1),m.style.pointerEvents=l.props.interactive&&!d?"":"none",m.style.zIndex=""+l.props.zIndex}function R(d,h,y){if(y===void 0&&(y=!0),D.forEach(function(k){k[d]&&k[d].apply(k,h)}),y){var O;(O=l.props)[d].apply(O,h)}}function re(){var d=l.props.aria;if(!!d.content){var h="aria-"+d.content,y=m.id,O=Se(l.props.triggerTarget||e);O.forEach(function(k){var z=k.getAttribute(h);if(l.state.isVisible)k.setAttribute(h,z?z+" "+y:y);else{var X=z&&z.replace(y,"").trim();X?k.setAttribute(h,X):k.removeAttribute(h)}})}}function oe(){if(!(M||!l.props.aria.expanded)){var d=Se(l.props.triggerTarget||e);d.forEach(function(h){l.props.interactive?h.setAttribute("aria-expanded",l.state.isVisible&&h===I()?"true":"false"):h.removeAttribute("aria-expanded")})}}function ye(){Z().removeEventListener("mousemove",_),it=it.filter(function(d){return d!==_})}function ae(d){if(!(ne.isTouch&&(u||d.type==="mousedown"))){var h=d.composedPath&&d.composedPath()[0]||d.target;if(!(l.props.interactive&&Dn(m,h))){if(Se(l.props.triggerTarget||e).some(function(y){return Dn(y,h)})){if(ne.isTouch||l.state.isVisible&&l.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[l,d]);l.props.hideOnClick===!0&&(l.clearDelayTimeouts(),l.hide(),c=!0,setTimeout(function(){c=!1}),l.state.isMounted||le())}}}function we(){u=!0}function se(){u=!1}function ee(){var d=Z();d.addEventListener("mousedown",ae,!0),d.addEventListener("touchend",ae,ge),d.addEventListener("touchstart",se,ge),d.addEventListener("touchmove",we,ge)}function le(){var d=Z();d.removeEventListener("mousedown",ae,!0),d.removeEventListener("touchend",ae,ge),d.removeEventListener("touchstart",se,ge),d.removeEventListener("touchmove",we,ge)}function Ae(d,h){Te(d,function(){!l.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&h()})}function ce(d,h){Te(d,h)}function Te(d,h){var y=Q().box;function O(k){k.target===y&&(It(y,"remove",O),h())}if(d===0)return h();It(y,"remove",g),It(y,"add",O),g=O}function pe(d,h,y){y===void 0&&(y=!1);var O=Se(l.props.triggerTarget||e);O.forEach(function(k){k.addEventListener(d,h,y),v.push({node:k,eventType:d,handler:h,options:y})})}function De(){C()&&(pe("touchstart",Xe,{passive:!0}),pe("touchend",ct,{passive:!0})),Ca(l.props.trigger).forEach(function(d){if(d!=="manual")switch(pe(d,Xe),d){case"mouseenter":pe("mouseleave",ct);break;case"focus":pe(Ra?"focusout":"blur",Ye);break;case"focusin":pe("focusout",Ye);break}})}function st(){v.forEach(function(d){var h=d.node,y=d.eventType,O=d.handler,k=d.options;h.removeEventListener(y,O,k)}),v=[]}function Xe(d){var h,y=!1;if(!(!l.state.isEnabled||Ke(d)||c)){var O=((h=f)==null?void 0:h.type)==="focus";f=d,b=d.currentTarget,oe(),!l.state.isVisible&&$a(d)&&it.forEach(function(k){return k(d)}),d.type==="click"&&(l.props.trigger.indexOf("mouseenter")<0||i)&&l.props.hideOnClick!==!1&&l.state.isVisible?y=!0:Je(d),d.type==="click"&&(i=!y),y&&!O&&be(d)}}function lt(d){var h=d.target,y=I().contains(h)||m.contains(h);if(!(d.type==="mousemove"&&y)){var O=me().concat(m).map(function(k){var z,X=k._tippy,Ve=(z=X.popperInstance)==null?void 0:z.state;return Ve?{popperRect:k.getBoundingClientRect(),popperState:Ve,props:n}:null}).filter(Boolean);Da(O,d)&&(ye(),be(d))}}function ct(d){var h=Ke(d)||l.props.trigger.indexOf("click")>=0&&i;if(!h){if(l.props.interactive){l.hideWithInteractivity(d);return}be(d)}}function Ye(d){l.props.trigger.indexOf("focusin")<0&&d.target!==I()||l.props.interactive&&d.relatedTarget&&m.contains(d.relatedTarget)||be(d)}function Ke(d){return ne.isTouch?C()!==d.type.indexOf("touch")>=0:!1}function ut(){dt();var d=l.props,h=d.popperOptions,y=d.placement,O=d.offset,k=d.getReferenceClientRect,z=d.moveTransition,X=A()?Rt(m).arrow:null,Ve=k?{getBoundingClientRect:k,contextElement:k.contextElement||I()}:e,Wn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(vt){var Ie=vt.state;if(A()){var wi=Q(),zt=wi.box;["placement","reference-hidden","escaped"].forEach(function(gt){gt==="placement"?zt.setAttribute("data-placement",Ie.placement):Ie.attributes.popper["data-popper-"+gt]?zt.setAttribute("data-"+gt,""):zt.removeAttribute("data-"+gt)}),Ie.attributes.popper={}}}},_e=[{name:"offset",options:{offset:O}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!z}},Wn];A()&&X&&_e.push({name:"arrow",options:{element:X,padding:3}}),_e.push.apply(_e,(h==null?void 0:h.modifiers)||[]),l.popperInstance=ba(Ve,m,Object.assign({},h,{placement:y,onFirstUpdate:w,modifiers:_e}))}function dt(){l.popperInstance&&(l.popperInstance.destroy(),l.popperInstance=null)}function ue(){var d=l.props.appendTo,h,y=I();l.props.interactive&&d===On||d==="parent"?h=y.parentNode:h=Sn(d,[y]),h.contains(m)||h.appendChild(m),l.state.isMounted=!0,ut(),ie(l.props.interactive&&d===W.appendTo&&y.nextElementSibling!==m,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
30
|
+
|
|
31
|
+
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
32
|
+
|
|
33
|
+
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
34
|
+
|
|
35
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function me(){return at(m.querySelectorAll("[data-tippy-root]"))}function Je(d){l.clearDelayTimeouts(),d&&R("onTrigger",[l,d]),ee();var h=j(!0),y=V(),O=y[0],k=y[1];ne.isTouch&&O==="hold"&&k&&(h=k),h?r=setTimeout(function(){l.show()},h):l.show()}function be(d){if(l.clearDelayTimeouts(),R("onUntrigger",[l,d]),!l.state.isVisible){le();return}if(!(l.props.trigger.indexOf("mouseenter")>=0&&l.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(d.type)>=0&&i)){var h=j(!1);h?a=setTimeout(function(){l.state.isVisible&&l.hide()},h):s=requestAnimationFrame(function(){l.hide()})}}function Ze(){l.state.isEnabled=!0}function ft(){l.hide(),l.state.isEnabled=!1}function pt(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(s)}function mt(d){if(ie(l.state.isDestroyed,$e("setProps")),!l.state.isDestroyed){R("onBeforeUpdate",[l,d]),st();var h=l.props,y=Pn(e,Object.assign({},h,An(d),{ignoreAttributes:!0}));l.props=y,De(),h.interactiveDebounce!==y.interactiveDebounce&&(ye(),_=$n(lt,y.interactiveDebounce)),h.triggerTarget&&!y.triggerTarget?Se(h.triggerTarget).forEach(function(O){O.removeAttribute("aria-expanded")}):y.triggerTarget&&e.removeAttribute("aria-expanded"),oe(),P(),L&&L(h,y),l.popperInstance&&(ut(),me().forEach(function(O){requestAnimationFrame(O._tippy.popperInstance.forceUpdate)})),R("onAfterUpdate",[l,d])}}function ht(d){l.setProps({content:d})}function mi(){ie(l.state.isDestroyed,$e("show"));var d=l.state.isVisible,h=l.state.isDestroyed,y=!l.state.isEnabled,O=ne.isTouch&&!l.props.touch,k=Tt(l.props.duration,0,W.duration);if(!(d||h||y||O)&&!I().hasAttribute("disabled")&&(R("onShow",[l],!1),l.props.onShow(l)!==!1)){if(l.state.isVisible=!0,A()&&(m.style.visibility="visible"),P(),ee(),l.state.isMounted||(m.style.transition="none"),A()){var z=Q(),X=z.box,Ve=z.content;Vt([X,Ve],0)}w=function(){var _e;if(!(!l.state.isVisible||p)){if(p=!0,m.offsetHeight,m.style.transition=l.props.moveTransition,A()&&l.props.animation){var Pt=Q(),vt=Pt.box,Ie=Pt.content;Vt([vt,Ie],k),Tn([vt,Ie],"visible")}re(),oe(),Bn(jt,l),(_e=l.popperInstance)==null||_e.forceUpdate(),R("onMount",[l]),l.props.animation&&A()&&ce(k,function(){l.state.isShown=!0,R("onShown",[l])})}},ue()}}function hi(){ie(l.state.isDestroyed,$e("hide"));var d=!l.state.isVisible,h=l.state.isDestroyed,y=!l.state.isEnabled,O=Tt(l.props.duration,1,W.duration);if(!(d||h||y)&&(R("onHide",[l],!1),l.props.onHide(l)!==!1)){if(l.state.isVisible=!1,l.state.isShown=!1,p=!1,i=!1,A()&&(m.style.visibility="hidden"),ye(),le(),P(!0),A()){var k=Q(),z=k.box,X=k.content;l.props.animation&&(Vt([z,X],O),Tn([z,X],"hidden"))}re(),oe(),l.props.animation?A()&&Ae(O,l.unmount):l.unmount()}}function vi(d){ie(l.state.isDestroyed,$e("hideWithInteractivity")),Z().addEventListener("mousemove",_),Bn(it,_),_(d)}function gi(){ie(l.state.isDestroyed,$e("unmount")),l.state.isVisible&&l.hide(),l.state.isMounted&&(dt(),me().forEach(function(d){d._tippy.unmount()}),m.parentNode&&m.parentNode.removeChild(m),jt=jt.filter(function(d){return d!==l}),l.state.isMounted=!1,R("onHidden",[l]))}function yi(){ie(l.state.isDestroyed,$e("destroy")),!l.state.isDestroyed&&(l.clearDelayTimeouts(),l.unmount(),st(),delete e._tippy,l.state.isDestroyed=!0,R("onDestroy",[l]))}}function qe(e,t){t===void 0&&(t={});var n=W.plugins.concat(t.plugins||[]);za(e),zn(t,n),Ma();var r=Object.assign({},t,{plugins:n}),a=Aa(e);{var s=Fe(r.content),i=a.length>1;ie(s&&i,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
36
|
+
|
|
37
|
+
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
38
|
+
|
|
39
|
+
`,`1) content: element.innerHTML
|
|
40
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var c=a.reduce(function(u,p){var f=p&&Xa(p,r);return f&&u.push(f),u},[]);return Fe(e)?c[0]:c}qe.defaultProps=W,qe.setDefaultProps=Fa,qe.currentInput=ne,Object.assign({},sn,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),qe.setDefaultProps({render:Fn});var us="",ds="",fs="",ps="",Ya={install(e){e.directive("tooltip",{mounted(t,n){qe(t,{theme:"dark",trigger:n.value.trigger,content:n.value.content,animation:"shift-away-subtle",interactive:!0,appendTo:"parent",placement:n.value.placement})}})}},ms="",hs="";const Ka={class:"lew-dialog-box"},Ja=o.createTextVNode("\u53D6\u6D88"),Za=o.createTextVNode("\u786E\u8BA4");var Qa=N(o.defineComponent({name:"LewDialog",props:{visible:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},ok:{type:Function},cancel:{type:Function}},emits:["update:visible"],setup(e,{emit:t}){const n=e,r=()=>{n.closeOnClickOverlay&&s()};let a=o.ref(!0);const s=()=>{a.value=!1,setTimeout(()=>{t("update:visible",!1)},245)},i=()=>{typeof n.ok=="function"&&n.ok(),s()},c=()=>{typeof n.cancel=="function"&&n.cancel(),s()};return(u,p)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[e.visible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"lew-dialog",style:o.normalizeStyle(o.unref(a)?"animation: lewDialogOpen 0.25s;":"animation: lewDialogClose 0.25s;"),onClick:r},[o.createElementVNode("div",Ka,[o.createElementVNode("header",null,[o.renderSlot(u.$slots,"title",{},void 0,!0),o.createElementVNode("span",{class:"gulu-dialog-close",onClick:s})]),o.createElementVNode("main",null,[o.renderSlot(u.$slots,"content",{},void 0,!0)]),o.createElementVNode("footer",null,[o.createVNode(o.unref(yt),{type:"normal",onClick:c},{default:o.withCtx(()=>[Ja]),_:1}),o.createVNode(o.unref(yt),{onClick:i},{default:o.withCtx(()=>[Za]),_:1})])])],4)):o.createCommentVNode("v-if",!0)]))}}),[["__scopeId","data-v-21634138"],["__file","/Users/kamtao/Documents/GitHub/Lew-UI/packages/components/feedback/LewDialog/LewDialog.vue"]]);const ei=e=>{Ge("warning",e)},ti=e=>{Ge("error",e)},ni=e=>{Ge("info",e)},ri=e=>{Ge("normal",e)},oi=e=>{Ge("success",e)},Ge=(e,t)=>{const{title:n,content:r,ok:a,cancel:s}=t,i=document.createElement("div");document.body.appendChild(i);const c=()=>{u.unmount(i),i.remove()},u=o.createApp({render(){return o.h(Qa,{closeOnClickOverlay:!1,visible:!0,"onUpdate:visible":p=>{p===!1&&c()},ok:a,cancel:s},{title:()=>n,content:()=>r})}});u.mount(i)};var ai={warning:ei,info:ni,normal:ri,success:oi,error:ti},gs="";const ii=e=>{Be("warning",e)},si=e=>{Be("error",e)},li=e=>{Be("info",e)},ci=e=>{Be("normal",e)},ui=e=>{Be("success",e)},di=()=>{const e=document.createElement("div");e.setAttribute("id","lew-message"),document.body.appendChild(e)},Be=(e,t)=>{document.getElementById("lew-message")?fi(e,t):(di(),Be(e,t))},fi=(e,t)=>{const n=document.getElementById("lew-message"),r=document.createElement("div"),a={success:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm0 1.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 0 0 0-17zm-1.25 9.94l4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084l-5 5a.75.75 0 0 1-.976.073l-.084-.073l-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073l1.97 1.97l4.47-4.47l-4.47 4.47z" fill="currentColor"></path></g></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M10.91 2.782a2.25 2.25 0 0 1 2.975.74l.083.138l7.759 14.009a2.25 2.25 0 0 1-1.814 3.334l-.154.006H4.243a2.25 2.25 0 0 1-2.041-3.197l.072-.143L10.031 3.66a2.25 2.25 0 0 1 .878-.878zm9.505 15.613l-7.76-14.008a.75.75 0 0 0-1.254-.088l-.057.088l-7.757 14.008a.75.75 0 0 0 .561 1.108l.095.006h15.516a.75.75 0 0 0 .696-1.028l-.04-.086l-7.76-14.008l7.76 14.008zM12 16.002a.999.999 0 1 1 0 1.997a.999.999 0 0 1 0-1.997zM11.995 8.5a.75.75 0 0 1 .744.647l.007.102l.004 4.502a.75.75 0 0 1-1.494.103l-.006-.102l-.004-4.502a.75.75 0 0 1 .75-.75z" fill="currentColor"></path></g></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M12 2c5.523 0 10 4.478 10 10s-4.477 10-10 10S2 17.522 2 12S6.477 2 12 2zm0 1.667c-4.595 0-8.333 3.738-8.333 8.333c0 4.595 3.738 8.333 8.333 8.333c4.595 0 8.333-3.738 8.333-8.333c0-4.595-3.738-8.333-8.333-8.333zm-.001 10.835a.999.999 0 1 1 0 1.998a.999.999 0 0 1 0-1.998zM11.994 7a.75.75 0 0 1 .744.648l.007.101l.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102l-.004-4.501a.75.75 0 0 1 .75-.751z" fill="currentColor"></path></g></svg>',normal:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M12 1.999c5.524 0 10.002 4.478 10.002 10.002c0 5.523-4.478 10.001-10.002 10.001C6.476 22.002 2 17.524 2 12.001C1.999 6.477 6.476 1.999 12 1.999zm0 1.5a8.502 8.502 0 1 0 0 17.003A8.502 8.502 0 0 0 12 3.5zm-.004 7a.75.75 0 0 1 .744.648l.007.102l.004 5.502a.75.75 0 0 1-1.494.102l-.006-.101l-.004-5.502a.75.75 0 0 1 .75-.75zm.005-3.497a.999.999 0 1 1 0 1.997a.999.999 0 0 1 0-1.997z" fill="currentColor"></path></g></svg>',info:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none"><path d="M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z" fill="currentColor"></path></g></svg>'};r.innerHTML=`${a[e]}<span>${t}</span>`,n==null||n.appendChild(r,n==null?void 0:n.childNodes[0]),r.setAttribute("class",`message message-${e}`),setTimeout(()=>{r.setAttribute("class",`message message-${e} message-show`),setTimeout(()=>{r.setAttribute("class",`message message-${e} message-hidden`),setTimeout(()=>{n==null||n.removeChild(r)},250)},3e3)},10)};var pi={warning:ii,info:li,normal:ci,success:ui,error:si},ys="",ws="",bs="";T.LewAlert=co,T.LewAvatar=Xn,T.LewBadge=Qn,T.LewButton=yt,T.LewCheckbox=qt,T.LewCheckboxGroup=pr,T.LewDialog=ai,T.LewFormItem=nr,T.LewInput=Wt,T.LewMessage=pi,T.LewModal=fo,T.LewRadiobox=Gt,T.LewRadioboxGroup=vr,T.LewSelect=ir,T.LewSwitch=lr,T.LewTabs=wr,T.LewTextarea=ur,T.LewTitle=er,T.LewTooltips=Ya,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.lew-avatar[data-v-568c9d6f]{position:relative;display:inline-block;width:40px;height:40px}.lew-avatar img[data-v-568c9d6f]{width:100%;height:100%;border-radius:5px}.lew-avatar .round[data-v-568c9d6f]{border-radius:50%}.lew-avatar .dot[data-v-568c9d6f]{position:absolute;top:-.25rem;left:-.25rem;content:"";width:.6rem;height:.6rem;border-radius:50%;z-index:99;border:2px #fff solid}.lew-avatar .dot-online[data-v-568c9d6f]{background-color:var(--success-color)}.lew-avatar .dot-busy[data-v-568c9d6f]{background-color:var(--danger-color)}.lew-avatar .dot-offline[data-v-568c9d6f]{background-color:var(--normal-color-dark)}.lew-avatar .dot-away[data-v-568c9d6f]{background-color:var(--warning-color)}.lew-avatar .dot-top-left[data-v-568c9d6f]{top:-.25rem;left:-.25rem}.lew-avatar .dot-top-right[data-v-568c9d6f]{top:-.25rem;left:auto;right:-.25rem}.lew-avatar .dot-bottom-left[data-v-568c9d6f]{top:auto;bottom:-.25rem;left:-.25rem}.lew-avatar .dot-bottom-right[data-v-568c9d6f]{top:auto;bottom:-.25rem;left:auto;right:-.25rem}.lew-button[data-v-161d2336]{position:relative;display:inline-flex;align-items:center;justify-content:center;text-align:center;flex-shrink:0;user-select:none;width:auto;min-width:76px;height:32px;white-space:nowrap;box-sizing:border-box;transition:all .15s;font-size:14px;border:none;cursor:pointer;padding:0 13px;border-radius:var(--border-radius)}.lew-button svg[data-v-161d2336]{font-size:15px;width:20px;height:20px}.lew-button[data-v-161d2336]:after{position:absolute;top:50%;left:50%;content:"";border:3px solid rgba(0,0,0,.25);border-left-color:#ffffffd9;border-radius:50%;width:11px;height:11px;opacity:0;animation:donut-spin-161d2336 .8s linear infinite;transition:all .15s;transform:translate(-50%,-50%)}.lew-button-round[data-v-161d2336]{border-radius:50px}.lew-button-round[data-v-161d2336]:before{border-radius:50px}.lew-button-primary[data-v-161d2336]{background:var(--primary-color);color:var(--text-color-invert)}.lew-button-primary[data-v-161d2336]:hover{background-color:var(--primary-color-hover)}.lew-button-primary[data-v-161d2336]:active{background-color:var(--primary-color-active)}.lew-button-success[data-v-161d2336]{background:var(--success-color);color:var(--text-color-invert)}.lew-button-success[data-v-161d2336]:hover{background-color:var(--success-color-hover)}.lew-button-success[data-v-161d2336]:active{background-color:var(--success-color-active)}.lew-button-danger[data-v-161d2336]{background:var(--danger-color);color:var(--text-color-invert)}.lew-button-danger[data-v-161d2336]:hover{background-color:var(--danger-color-hover)}.lew-button-danger[data-v-161d2336]:active{background-color:var(--danger-color-active)}.lew-button-normal[data-v-161d2336]{background:var(--normal-color);color:var(--text-color)}.lew-button-normal[data-v-161d2336]:hover{background-color:var(--normal-color-hover)}.lew-button-normal[data-v-161d2336]:active{background-color:var(--normal-color-active)}.lew-button-warning[data-v-161d2336]{background:var(--warning-color);color:var(--text-color-invert)}.lew-button-warning[data-v-161d2336]:hover{background-color:var(--warning-color-hover)}.lew-button-warning[data-v-161d2336]:active{background-color:var(--warning-color-active)}@keyframes donut-spin-161d2336{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.lew-button-loading[data-v-161d2336],.lew-button-loading[data-v-161d2336]:hover{font-size:0px}.lew-button-loading[data-v-161d2336]:after{opacity:1}.lew-button-disabled[data-v-161d2336]{cursor:not-allowed;font-size:14px;background:#eee;color:#999}.lew-button-disabled[data-v-161d2336]:hover{font-size:14px;background:#eee}.lew-button-disabled[data-v-161d2336]:after{opacity:0}.lew-button svg{font-size:15px;width:18px;height:18px;margin-right:5px}.lew-badge{min-width:14px;border-radius:.25rem;padding:2px 8px 3px;font-size:.75rem;margin-right:10px;cursor:default;color:var(--primary-text-color);background-color:var(--primary-color-light);font-weight:400}.lew-badge-bold{font-weight:600}.lew-badge-round{border-radius:30px}.lew-badge-href{cursor:pointer}.lew-badge-dot{display:inline-block;max-width:4px;max-height:4px;min-width:4px;min-height:4px;width:4px;height:4px;padding:2px}.lew-badge-dot.lew-badge-primary{background-color:var(--primary-color-hover)}.lew-badge-dot.lew-badge-success{background-color:var(--success-color-hover)}.lew-badge-dot.lew-badge-warning{background-color:var(--warning-color-hover)}.lew-badge-dot.lew-badge-danger{background-color:var(--danger-color-hover)}.lew-badge-dot.lew-badge-normal{background-color:var(--normal-color-hover)}.lew-badge-primary{color:var(--primary-text-color);background-color:var(--primary-color-light)}.lew-badge-success{color:var(--success-text-color);background-color:var(--success-color-light)}.lew-badge-warning{color:var(--warning-text-color);background-color:var(--warning-color-light)}.lew-badge-danger{color:var(--danger-text-color);background-color:var(--danger-color-light)}.lew-badge-normal{color:var(--normal-text-color);background-color:var(--normal-color-light)}.lew-title[data-v-391c178e]{display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--title-color);margin-bottom:10px}.lew-form-item[data-v-bd1d3568]{width:100%;margin-bottom:20px;text-align:left}.lew-form-item label[data-v-bd1d3568]{display:block;width:100%;margin:0 0 10px;font-size:14px;color:var(--text-color)}.lew-form-item-x[data-v-bd1d3568]{display:flex;align-items:flex-start}.lew-form-item-x label[data-v-bd1d3568]{white-space:nowrap;width:auto;margin-top:8px;padding-right:10px;display:inline-block}.lew-input[data-v-1364aebe]{width:100%;height:35px;padding:5px 12px;font-size:14px;line-height:24px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:var(--form-border);border-radius:var(--form-border-radius);background-color:var(--form-bgcolor);color:var(--form-text-color);box-sizing:border-box;transition:all .25s ease;outline:none}.lew-input[data-v-1364aebe]::placeholder{color:#a5a5a5}.lew-input[data-v-1364aebe]:hover{border:var(--form-border-hover);background-color:var(--form-bgcolor-hover)}.lew-input[data-v-1364aebe]:active{background-color:var(--form-bgcolor-active)}.lew-input[data-v-1364aebe]:focus{background-color:var(--form-bgcolor-focus);border:var(--form-border-focus)}.lew-select[data-v-63e71814]{position:relative;width:100%;display:flex;flex-direction:column}.lew-select .lew-input[data-v-63e71814]{width:100%}.lew-select .options-box[data-v-63e71814]{position:absolute;overflow-y:auto;overflow-x:hidden;height:300px;width:100%;border:var(--form-border);border-radius:var(--form-border-radius);background-color:#fff;box-shadow:0 10px 20px #0000001a;box-sizing:border-box;transition:all .25s ease;transform:translateY(60px);z-index:-9;opacity:0;padding:4px}.lew-select .options-box .item[data-v-63e71814]{width:100%;height:35px;line-height:35px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;color:#666;box-sizing:border-box;border-radius:6px;padding-left:15px}.lew-select .options-box .item[data-v-63e71814]:hover{color:#000;background-color:var(--form-bgcolor-hover)}.lew-select .isShowOptions[data-v-63e71814]{width:100%;z-index:99;opacity:1;transform:translateY(45px)}.lew-select .options-box[data-v-63e71814]::-webkit-scrollbar{background-color:#7e7e7e00;width:5px;height:5px}.lew-select .options-box[data-v-63e71814]::-webkit-scrollbar-thumb:hover{background-color:#7e7e7e}.lew-select .options-box[data-v-63e71814]::-webkit-scrollbar-thumb{background-color:#d1d5db00;border-radius:5px}.lew-select .options-box[data-v-63e71814]:hover::-webkit-scrollbar-thumb{background-color:#d1d5db;border-radius:5px}input[data-v-52343795]{position:relative;width:38px;height:24px;border:none;outline:none;box-sizing:border-box;appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none}input[data-v-52343795]:before{position:absolute;left:0px;top:0px;content:"";width:38px;height:24px;background:var(--form-bgcolor-high);border-radius:4px;transition:all .25s cubic-bezier(.65,0,.35,1);cursor:pointer}input[data-v-52343795]:hover:before{background:var(--form-bgcolor-high-hover)}input[data-v-52343795]:active:before{background:var(--form-bgcolor-high-active)}.round[data-v-52343795]:before{border-radius:50px}input[data-v-52343795]:after{position:absolute;width:16px;height:16px;content:"";border-radius:2px;background:#fff;transition:all .25s cubic-bezier(.65,0,.35,1);transform:translate(4px,4px);cursor:pointer}.round[data-v-52343795]:after{border-radius:50px}input[data-v-52343795]:checked:before{background:var(--primary-color)}input[data-v-52343795]:checked:after{transform:translate(18px,4px)}.lew-textarea[data-v-54e15f33]{width:100%;padding:5px 12px;font-size:14px;line-height:24px;min-height:35px;border:var(--form-border);border-radius:var(--form-border-radius);background-color:var(--form-bgcolor);color:var(--form-text-color);box-sizing:border-box;transition:all .25s ease;outline:none}.lew-textarea[data-v-54e15f33]::placeholder{color:#a5a5a5}.lew-textarea[data-v-54e15f33]:hover{background-color:var(--form-bgcolor-hover)}.lew-textarea[data-v-54e15f33]:active{background-color:var(--form-bgcolor-active)}.lew-textarea[data-v-54e15f33]:focus{background-color:var(--form-bgcolor-focus);border:var(--form-border-focus)}.resize-none[data-v-54e15f33]{resize:none}.resize-horizontal[data-v-54e15f33]{resize:horizontal}.resize-vertical[data-v-54e15f33]{resize:vertical}.resize-both[data-v-54e15f33]{resize:both}.resize-inline[data-v-54e15f33]{resize:inline}.lew-checkbox[data-v-0f975742]{display:inline-flex;align-items:center;user-select:none;margin:0 20px 15px 0;cursor:pointer;color:var(--text-color);font-size:14px;transition:all .25s ease}.lew-checkbox .icon-checkbox-box[data-v-0f975742]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:2px rgba(0,0,0,.1) solid;box-sizing:border-box;border-radius:5px;margin-right:5px;transition:all .25s ease}.lew-checkbox .icon-checkbox-box .icon-checkbox[data-v-0f975742]{transform:scale(.6) translateY(50%);transition:all .25s ease;opacity:0;color:#fff;font-size:12px}.lew-checkbox .icon-checked-box[data-v-0f975742]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-checkbox .icon-checked-box .icon-checkbox[data-v-0f975742]{transform:scale(.85) translateY(0);opacity:1}.lew-checkbox:hover .icon-checkbox-box[data-v-0f975742]{border:2px rgba(0,0,0,.2) solid}.lew-checkbox:hover .icon-checked-box[data-v-0f975742]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-checkbox-block[data-v-0f975742]{background:var(--form-bgcolor);padding:4px 8px 4px 6px;border:var(--form-border);border-radius:8px}.lew-checkbox-block .icon-checkbox-box[data-v-0f975742]{border:2px rgba(0,0,0,0) solid;background:var(--form-bgcolor-hover)}.lew-checkbox-block .icon-checked-box[data-v-0f975742]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-checkbox-block:hover .icon-checkbox-box[data-v-0f975742]{border:2px rgba(0,0,0,0) solid}.lew-checkbox-round[data-v-0f975742]{border-radius:50px}.lew-checkbox-round .icon-checkbox-box[data-v-0f975742]{border-radius:50%}.lew-checkbox-block[data-v-0f975742]:hover{background:var(--form-bgcolor-hover);border:var(--form-border-hover)}.lew-checkbox-block[data-v-0f975742]:active{background:var(--form-bgcolor-active);border:var(--form-border-active)}.lew-checkbox-group[data-v-95a0abfe]{display:flex;align-items:center;font-size:0px;flex-wrap:wrap}.lew-checkbox-group.lew-checkbox-group-x[data-v-95a0abfe]{flex-direction:row}.lew-checkbox-group.lew-checkbox-group-y[data-v-95a0abfe]{align-items:flex-start;flex-direction:column}.lew-radio[data-v-6be47ae3]{display:inline-flex;align-items:center;user-select:none;margin:0 20px 15px 0;cursor:pointer;color:var(--text-color);font-size:14px;border-radius:50px}.lew-radio .icon-radio-box[data-v-6be47ae3]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:2px rgba(0,0,0,.1) solid;box-sizing:border-box;margin-right:5px;transition:all .25s ease;overflow:hidden;border-radius:50px}.lew-radio .icon-radio-box .icon-radio[data-v-6be47ae3]{width:7px;height:7px;background-color:#fff;transform:translateY(100%);opacity:0;transition:all .25s ease;font-size:12px;border-radius:50px}.lew-radio .icon-checked-box[data-v-6be47ae3]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-radio .icon-checked-box .icon-radio[data-v-6be47ae3]{transform:translateY(0);opacity:1}.lew-radio:hover .icon-radio-box[data-v-6be47ae3]{border:2px rgba(0,0,0,.2) solid}.lew-radio:hover .icon-checked-box[data-v-6be47ae3]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-radio-block[data-v-6be47ae3]{background:var(--form-bgcolor);padding:4px 8px 4px 6px;border:var(--form-border);border-radius:30px}.lew-radio-block .icon-radio-box[data-v-6be47ae3]{border:2px rgba(0,0,0,0) solid;background:var(--form-bgcolor-hover)}.lew-radio-block .icon-checked-box[data-v-6be47ae3]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-radio-block:hover .icon-radio-box[data-v-6be47ae3]{border:2px rgba(0,0,0,0) solid}.lew-radio-block[data-v-6be47ae3]:hover{background:var(--form-bgcolor-hover);border:var(--form-border-hover)}.lew-radio-block[data-v-6be47ae3]:active{background:var(--form-bgcolor-active);border:var(--form-border-active)}.lew-radio-group[data-v-1c9758ec]{display:flex;align-items:center;flex-wrap:wrap;font-size:0px}.lew-radio-group.lew-radio-group-x[data-v-1c9758ec]{flex-direction:row}.lew-radio-group.lew-radio-group-y[data-v-1c9758ec]{flex-direction:column;align-items:start;justify-content:flex-start}.lew-tabs[data-v-2912852e]{position:relative;display:inline-flex;align-items:center;width:100%;background:var(--form-bgcolor-hover);height:34px;border-radius:10px;overflow:hidden}.lew-tabs .lew-tabs-item[data-v-2912852e]{position:relative;z-index:9;flex:1;text-align:center;height:28px;line-height:28px;border-radius:6px;margin:3px;color:var(--text-color);white-space:nowrap;cursor:pointer;transition:all .45s cubic-bezier(.65,0,.35,1);font-size:14px}.lew-tabs .activeItem[data-v-2912852e]{position:absolute;top:3px;left:0px;z-index:9;height:28px;border-radius:7px;transition:all .45s cubic-bezier(.65,0,.35,1);background:#fff;transform:translate(3px);box-shadow:0 0 5px #00000014}.lew-alert-group{width:100%;display:flex;flex-direction:column;font-size:0px}.lew-alert-group .lew-alert{position:relative;display:flex;align-items:flex-start;width:100%;min-height:40px;background-color:var(--normal-color);border-radius:8px;margin-bottom:10px;padding:12px;box-shadow:0 5px 15px -3px #0000001a,0 4px 6px -2px #0000000d;box-sizing:border-box;opacity:.8;transition:all .25s ease}.lew-alert-group .lew-alert .alert-icon{margin-right:5px}.lew-alert-group .lew-alert .close{position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:25px;height:25px;right:10px;border-radius:8px;box-sizing:border-box;cursor:pointer;user-select:none}.lew-alert-group .lew-alert .close:hover{background:rgba(0,0,0,.05)}.lew-alert-group .lew-alert .close:active{background:rgba(0,0,0,.15)}.lew-alert-group .lew-alert .message{width:calc(100% - 100px)}.lew-alert-group .lew-alert .message .title{font-size:15px;width:100%}.lew-alert-group .lew-alert .message .content{margin-top:7px;font-size:14px;width:100%}.lew-alert-group .lew-alert-normal{color:var(--normal-text-color);background-color:var(--normal-color-light)}.lew-alert-group .lew-alert-success{color:var(--success-text-color);background-color:var(--success-color-light)}.lew-alert-group .lew-alert-warning{color:var(--warning-text-color);background-color:var(--warning-color-light)}.lew-alert-group .lew-alert-danger{color:var(--danger-text-color);background-color:var(--danger-color-light)}.lew-alert-group .lew-alert-primary{color:var(--primary-text-color);background-color:var(--primary-color-light)}.lew-alert-group .lew-alert:hover{opacity:1}.lew-modal[data-v-3af6ad00]{position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:#00000059;outline:1000000px solid rgba(0,0,0,.35);display:flex;justify-content:center;align-items:center;z-index:2001}.lew-modal .lew-modal-box[data-v-3af6ad00]{border-radius:8px;background-color:#fff;box-shadow:0 15px 50px #0000000d}.fade-enter-active[data-v-3af6ad00],.fade-leave-active[data-v-3af6ad00]{transition:all .2s ease}.fade-enter-from[data-v-3af6ad00],.fade-leave-to[data-v-3af6ad00]{opacity:0;transform:translateY(10px)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translate(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translate(-5px)}.tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}body,dl,dt,dd,pre,form,fieldset,input,p,blockquote,th,td,a,button,select,h1,h2,h3,h4,h5{margin:0;padding:0}select{font-size:14px}table{border-collapse:collapse}fieldset,img{border:0 none}fieldset{margin:0;padding:0}fieldset p{margin:0;padding:0 0 0 8px}legend{display:none}address,caption,em,th,i{font-style:normal;font-weight:400}table caption{margin-left:-var(--border-width)}hr{border-bottom:var(--border-width) solid #ffffff;border-top:var(--border-width) solid #e4e4e4;border-width:var(--border-width) 0;clear:both;height:2px;margin:5px 0;overflow:hidden}ol,ul{list-style-image:none;list-style-position:outside}caption,th{text-align:left}q:before,q:after,blockquote:before,blockquote:after{content:""}a{color:#000;text-decoration:none;position:relative}body{color:var(--text-color)}.btf-scrollbar::-webkit-scrollbar{background-color:#7e7e7e00;width:5px;height:5px}.btf-scrollbar::-webkit-scrollbar-thumb:hover{background-color:#7e7e7e}.btf-scrollbar::-webkit-scrollbar-thumb{background-color:#d1d5db00;opacity:0;border-radius:5px}.btf-scrollbar:hover::-webkit-scrollbar-thumb{background-color:#d1d5db4d;opacity:1;border-radius:5px}:root{--body-bgcolor: #fff;--text-color: rgb(51, 54, 57);--text-color-invert: rgb(255, 255, 255);--border-radius: 8px;--primary-color: rgb(59, 121, 208);--primary-color-light: rgb(59, 121, 208, .2);--primary-text-color: rgb(47, 88, 146);--primary-color-hover: rgb(54, 109, 187);--primary-color-active: rgb(42, 94, 149);--success-color: rgb(49, 196, 141);--success-color-dark: rgb(35, 153, 110);--success-color-light: rgb(108, 176, 119, .2);--success-text-color: rgb(30, 107, 41);--success-color-hover: rgb(40, 176, 126);--success-color-active: rgb(28, 157, 110);--danger-color: rgb(249, 128, 128);--danger-color-dark: rgb(197, 88, 88);--danger-color-light: rgb(249, 128, 128, .2);--danger-text-color: #d10000;--danger-color-hover: rgb(231, 113, 113);--danger-color-active: rgb(204, 92, 92);--warning-color: rgb(227, 179, 68);--warning-color-dark: rgb(186, 132, 7);--warning-color-light: rgb(227, 160, 8, .2);--warning-text-color: rgb(187, 128, 9);--warning-color-hover: rgb(211, 150, 8);--warning-color-active: rgb(187, 133, 7);--normal-color: rgb(236, 235, 235);--normal-color-dark: rgb(177, 176, 176);--normal-color-light: rgba(154, 154, 154, .2);--normal-text-color: rgb(66, 66, 66);--normal-color-hover: rgb(224, 223, 223);--normal-color-active: rgb(165, 161, 161);--title-bold: 800;--title-color: rgb(33, 33, 33);--form-border: 1.5px rgba(0, 0, 0, .03) solid;--form-border-hover: 1.5px rgba(0, 0, 0, .08) solid;--form-border-active: 1.5px rgba(0, 0, 0, .12) solid;--form-border-radius: 8px;--form-border-focus: 1.5px solid var(--primary-color);--form-bgcolor-focus: rgb(255, 255, 255);--form-text-color: #333;--form-bgcolor: rgba(6, 57, 88, .022);--form-bgcolor-hover: rgba(6, 57, 88, .06);--form-bgcolor-active: rgba(6, 57, 88, .12);--form-bgcolor-high: rgba(6, 57, 88, .1);--form-bgcolor-high-hover: rgba(6, 57, 88, .16);--form-bgcolor-high-active: rgba(6, 57, 88, .2);--button-border-radius: 8px;--button-bgcolor: rgba(0, 0, 0, .022);--button-text-color: #000;--button-border: 1px rgba(0, 0, 0, .05) solid}.dark{--border: 1px #eee solid;--border-radius: 8px;--font-bold: 800;--bgcolor-body: #fff;--color-text: rgb(33, 33, 33);--color-title: rgb(33, 33, 33);--color-primary-1: rgb(30 66 159 / .6);--color-primary-2: rgb(30 66 159 / .8);--color-primary-3: rgb(30 66 159 / 1);--color-primary-1-hover: rgb(30 66 159 / .6);--color-primary-2-active: rgb(30 66 159 / .8);--color-primary-3-foucs: rgb(30 66 159 / 1);--color-danger-1: rgb(159, 30, 30, .6);--color-danger-2: rgb(159, 30, 30, .8);--color-danger-3: rgb(159, 30, 30, 1);--color-danger-1-hover: rgb(159, 30, 30, .6);--color-danger-2-active: rgb(159, 30, 30, .8);--color-danger-3-foucs: rgb(159, 30, 30, 1)}
|
|
1
|
+
.lew-avatar[data-v-303f2aca]{position:relative;display:inline-block;width:40px;height:40px}.lew-avatar img[data-v-303f2aca]{width:100%;height:100%;border-radius:5px}.lew-avatar .round[data-v-303f2aca]{border-radius:50%}.lew-avatar .dot[data-v-303f2aca]{position:absolute;top:-.25rem;left:-.25rem;content:"";width:.6rem;height:.6rem;border-radius:50%;z-index:99;border:2px #fff solid}.lew-avatar .dot-online[data-v-303f2aca]{background-color:var(--success-color)}.lew-avatar .dot-busy[data-v-303f2aca]{background-color:var(--danger-color)}.lew-avatar .dot-offline[data-v-303f2aca]{background-color:var(--normal-color-dark)}.lew-avatar .dot-away[data-v-303f2aca]{background-color:var(--warning-color)}.lew-avatar .dot-top-left[data-v-303f2aca]{top:-.25rem;left:-.25rem}.lew-avatar .dot-top-right[data-v-303f2aca]{top:-.25rem;left:auto;right:-.25rem}.lew-avatar .dot-bottom-left[data-v-303f2aca]{top:auto;bottom:-.25rem;left:-.25rem}.lew-avatar .dot-bottom-right[data-v-303f2aca]{top:auto;bottom:-.25rem;left:auto;right:-.25rem}.lew-button[data-v-15473bf4]{position:relative;display:inline-flex;align-items:center;justify-content:center;text-align:center;flex-shrink:0;user-select:none;width:auto;min-width:76px;height:32px;white-space:nowrap;box-sizing:border-box;transition:all .15s;font-size:14px;border:none;cursor:pointer;padding:0 13px;border-radius:var(--border-radius)}.lew-button svg[data-v-15473bf4]{font-size:15px;width:20px;height:20px}.lew-button[data-v-15473bf4]:after{position:absolute;top:50%;left:50%;content:"";border:3px solid rgba(0,0,0,.25);border-left-color:#ffffffd9;border-radius:50%;width:11px;height:11px;opacity:0;animation:donut-spin-15473bf4 .8s linear infinite;transition:all .15s;transform:translate(-50%,-50%)}.lew-button-round[data-v-15473bf4]{border-radius:50px}.lew-button-round[data-v-15473bf4]:before{border-radius:50px}.lew-button-primary[data-v-15473bf4]{background:var(--primary-color);color:var(--text-color-invert)}.lew-button-primary[data-v-15473bf4]:hover{background-color:var(--primary-color-hover)}.lew-button-primary[data-v-15473bf4]:active{background-color:var(--primary-color-active)}.lew-button-success[data-v-15473bf4]{background:var(--success-color);color:var(--text-color-invert)}.lew-button-success[data-v-15473bf4]:hover{background-color:var(--success-color-hover)}.lew-button-success[data-v-15473bf4]:active{background-color:var(--success-color-active)}.lew-button-danger[data-v-15473bf4]{background:var(--danger-color);color:var(--text-color-invert)}.lew-button-danger[data-v-15473bf4]:hover{background-color:var(--danger-color-hover)}.lew-button-danger[data-v-15473bf4]:active{background-color:var(--danger-color-active)}.lew-button-normal[data-v-15473bf4]{background:var(--normal-color);color:var(--text-color)}.lew-button-normal[data-v-15473bf4]:hover{background-color:var(--normal-color-hover)}.lew-button-normal[data-v-15473bf4]:active{background-color:var(--normal-color-active)}.lew-button-warning[data-v-15473bf4]{background:var(--warning-color);color:var(--text-color-invert)}.lew-button-warning[data-v-15473bf4]:hover{background-color:var(--warning-color-hover)}.lew-button-warning[data-v-15473bf4]:active{background-color:var(--warning-color-active)}@keyframes donut-spin-15473bf4{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.lew-button-loading[data-v-15473bf4],.lew-button-loading[data-v-15473bf4]:hover{font-size:0px}.lew-button-loading[data-v-15473bf4]:after{opacity:1}.lew-button-disabled[data-v-15473bf4]{cursor:not-allowed;font-size:14px;background:#eee;color:#999}.lew-button-disabled[data-v-15473bf4]:hover{font-size:14px;background:#eee}.lew-button-disabled[data-v-15473bf4]:after{opacity:0}.lew-button svg{font-size:15px;width:18px;height:18px;margin-right:5px}.lew-badge{min-width:14px;border-radius:.25rem;padding:2px 8px 3px;font-size:.75rem;margin-right:10px;cursor:default;color:var(--primary-text-color);background-color:var(--primary-color-light);font-weight:400}.lew-badge-bold{font-weight:600}.lew-badge-round{border-radius:30px}.lew-badge-href{cursor:pointer}.lew-badge-dot{display:inline-block;max-width:4px;max-height:4px;min-width:4px;min-height:4px;width:4px;height:4px;padding:2px}.lew-badge-dot.lew-badge-primary{background-color:var(--primary-color-hover)}.lew-badge-dot.lew-badge-success{background-color:var(--success-color-hover)}.lew-badge-dot.lew-badge-warning{background-color:var(--warning-color-hover)}.lew-badge-dot.lew-badge-danger{background-color:var(--danger-color-hover)}.lew-badge-dot.lew-badge-normal{background-color:var(--normal-color-hover)}.lew-badge-primary{color:var(--primary-text-color);background-color:var(--primary-color-light)}.lew-badge-success{color:var(--success-text-color);background-color:var(--success-color-light)}.lew-badge-warning{color:var(--warning-text-color);background-color:var(--warning-color-light)}.lew-badge-danger{color:var(--danger-text-color);background-color:var(--danger-color-light)}.lew-badge-normal{color:var(--normal-text-color);background-color:var(--normal-color-light)}.lew-title[data-v-701d9086]{display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--title-color);margin-bottom:10px}.lew-form-item[data-v-0e9705e2]{width:100%;margin-bottom:20px;text-align:left}.lew-form-item label[data-v-0e9705e2]{display:block;width:100%;margin:0 0 10px;font-size:14px;color:var(--text-color)}.lew-form-item-x[data-v-0e9705e2]{display:flex;align-items:flex-start}.lew-form-item-x label[data-v-0e9705e2]{white-space:nowrap;width:auto;margin-top:8px;padding-right:10px;display:inline-block}.lew-input[data-v-9b461d3c]{width:100%;height:35px;padding:5px 12px;font-size:14px;line-height:24px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:var(--form-border);border-radius:var(--form-border-radius);background-color:var(--form-bgcolor);color:var(--form-text-color);box-sizing:border-box;transition:all .25s ease;outline:none}.lew-input[data-v-9b461d3c]::placeholder{color:#a5a5a5}.lew-input[data-v-9b461d3c]:hover{border:var(--form-border-hover);background-color:var(--form-bgcolor-hover)}.lew-input[data-v-9b461d3c]:active{background-color:var(--form-bgcolor-active)}.lew-input[data-v-9b461d3c]:focus{background-color:var(--form-bgcolor-focus);border:var(--form-border-focus)}.lew-select[data-v-32f2a4d8]{position:relative;width:100%;display:flex;flex-direction:column}.lew-select .lew-input[data-v-32f2a4d8]{width:100%}.lew-select .options-box[data-v-32f2a4d8]{position:absolute;overflow-y:auto;overflow-x:hidden;height:300px;width:100%;border:var(--form-border);border-radius:var(--form-border-radius);background-color:#fff;box-shadow:0 10px 20px #0000001a;box-sizing:border-box;transition:all .25s ease;transform:translateY(60px);z-index:-9;opacity:0;padding:4px}.lew-select .options-box .item[data-v-32f2a4d8]{width:100%;height:35px;line-height:35px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;color:#666;box-sizing:border-box;border-radius:6px;padding-left:15px}.lew-select .options-box .item[data-v-32f2a4d8]:hover{color:#000;background-color:var(--form-bgcolor-hover)}.lew-select .isShowOptions[data-v-32f2a4d8]{width:100%;z-index:99;opacity:1;transform:translateY(45px)}.lew-select .options-box[data-v-32f2a4d8]::-webkit-scrollbar{background-color:#7e7e7e00;width:5px;height:5px}.lew-select .options-box[data-v-32f2a4d8]::-webkit-scrollbar-thumb:hover{background-color:#7e7e7e}.lew-select .options-box[data-v-32f2a4d8]::-webkit-scrollbar-thumb{background-color:#d1d5db00;border-radius:5px}.lew-select .options-box[data-v-32f2a4d8]:hover::-webkit-scrollbar-thumb{background-color:#d1d5db;border-radius:5px}input[data-v-348753cc]{position:relative;width:38px;height:24px;border:none;outline:none;box-sizing:border-box;appearance:none;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;-o-appearance:none}input[data-v-348753cc]:before{position:absolute;left:0px;top:0px;content:"";width:38px;height:24px;background:var(--form-bgcolor-high);border-radius:4px;transition:all .25s cubic-bezier(.65,0,.35,1);cursor:pointer}input[data-v-348753cc]:hover:before{background:var(--form-bgcolor-high-hover)}input[data-v-348753cc]:active:before{background:var(--form-bgcolor-high-active)}.round[data-v-348753cc]:before{border-radius:50px}input[data-v-348753cc]:after{position:absolute;width:16px;height:16px;content:"";border-radius:2px;background:#fff;transition:all .25s cubic-bezier(.65,0,.35,1);transform:translate(4px,4px);cursor:pointer}.round[data-v-348753cc]:after{border-radius:50px}input[data-v-348753cc]:checked:before{background:var(--primary-color)}input[data-v-348753cc]:checked:after{transform:translate(18px,4px)}.lew-textarea[data-v-a48a3e5c]{width:100%;padding:5px 12px;font-size:14px;line-height:24px;min-height:35px;border:var(--form-border);border-radius:var(--form-border-radius);background-color:var(--form-bgcolor);color:var(--form-text-color);box-sizing:border-box;transition:all .25s ease;outline:none}.lew-textarea[data-v-a48a3e5c]::placeholder{color:#a5a5a5}.lew-textarea[data-v-a48a3e5c]:hover{background-color:var(--form-bgcolor-hover)}.lew-textarea[data-v-a48a3e5c]:active{background-color:var(--form-bgcolor-active)}.lew-textarea[data-v-a48a3e5c]:focus{background-color:var(--form-bgcolor-focus);border:var(--form-border-focus)}.resize-none[data-v-a48a3e5c]{resize:none}.resize-horizontal[data-v-a48a3e5c]{resize:horizontal}.resize-vertical[data-v-a48a3e5c]{resize:vertical}.resize-both[data-v-a48a3e5c]{resize:both}.resize-inline[data-v-a48a3e5c]{resize:inline}.lew-checkbox[data-v-7b4a4e4a]{display:inline-flex;align-items:center;user-select:none;margin:0 20px 15px 0;cursor:pointer;color:var(--text-color);font-size:14px;transition:all .25s ease}.lew-checkbox .icon-checkbox-box[data-v-7b4a4e4a]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:2px rgba(0,0,0,.1) solid;box-sizing:border-box;border-radius:5px;margin-right:5px;transition:all .25s ease}.lew-checkbox .icon-checkbox-box .icon-checkbox[data-v-7b4a4e4a]{transform:scale(.6) translateY(50%);transition:all .25s ease;opacity:0;color:#fff;font-size:12px}.lew-checkbox .icon-checked-box[data-v-7b4a4e4a]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-checkbox .icon-checked-box .icon-checkbox[data-v-7b4a4e4a]{transform:scale(.85) translateY(0);opacity:1}.lew-checkbox:hover .icon-checkbox-box[data-v-7b4a4e4a]{border:2px rgba(0,0,0,.2) solid}.lew-checkbox:hover .icon-checked-box[data-v-7b4a4e4a]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-checkbox-block[data-v-7b4a4e4a]{background:var(--form-bgcolor);padding:4px 8px 4px 6px;border:var(--form-border);border-radius:8px}.lew-checkbox-block .icon-checkbox-box[data-v-7b4a4e4a]{border:2px rgba(0,0,0,0) solid;background:var(--form-bgcolor-hover)}.lew-checkbox-block .icon-checked-box[data-v-7b4a4e4a]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-checkbox-block:hover .icon-checkbox-box[data-v-7b4a4e4a]{border:2px rgba(0,0,0,0) solid}.lew-checkbox-round[data-v-7b4a4e4a]{border-radius:50px}.lew-checkbox-round .icon-checkbox-box[data-v-7b4a4e4a]{border-radius:50%}.lew-checkbox-block[data-v-7b4a4e4a]:hover{background:var(--form-bgcolor-hover);border:var(--form-border-hover)}.lew-checkbox-block[data-v-7b4a4e4a]:active{background:var(--form-bgcolor-active);border:var(--form-border-active)}.lew-checkbox-group[data-v-71b4bd14]{display:flex;align-items:center;font-size:0px;flex-wrap:wrap}.lew-checkbox-group.lew-checkbox-group-x[data-v-71b4bd14]{flex-direction:row}.lew-checkbox-group.lew-checkbox-group-y[data-v-71b4bd14]{align-items:flex-start;flex-direction:column}.lew-radio[data-v-12ca2d13]{display:inline-flex;align-items:center;user-select:none;margin:0 20px 15px 0;cursor:pointer;color:var(--text-color);font-size:14px;border-radius:50px}.lew-radio .icon-radio-box[data-v-12ca2d13]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:2px rgba(0,0,0,.1) solid;box-sizing:border-box;margin-right:5px;transition:all .25s ease;overflow:hidden;border-radius:50px}.lew-radio .icon-radio-box .icon-radio[data-v-12ca2d13]{width:7px;height:7px;background-color:#fff;transform:translateY(100%);opacity:0;transition:all .25s ease;font-size:12px;border-radius:50px}.lew-radio .icon-checked-box[data-v-12ca2d13]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-radio .icon-checked-box .icon-radio[data-v-12ca2d13]{transform:translateY(0);opacity:1}.lew-radio:hover .icon-radio-box[data-v-12ca2d13]{border:2px rgba(0,0,0,.2) solid}.lew-radio:hover .icon-checked-box[data-v-12ca2d13]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-radio-block[data-v-12ca2d13]{background:var(--form-bgcolor);padding:4px 8px 4px 6px;border:var(--form-border);border-radius:30px}.lew-radio-block .icon-radio-box[data-v-12ca2d13]{border:2px rgba(0,0,0,0) solid;background:var(--form-bgcolor-hover)}.lew-radio-block .icon-checked-box[data-v-12ca2d13]{border:2px var(--primary-color) solid;background:var(--primary-color)}.lew-radio-block:hover .icon-radio-box[data-v-12ca2d13]{border:2px rgba(0,0,0,0) solid}.lew-radio-block[data-v-12ca2d13]:hover{background:var(--form-bgcolor-hover);border:var(--form-border-hover)}.lew-radio-block[data-v-12ca2d13]:active{background:var(--form-bgcolor-active);border:var(--form-border-active)}.lew-radio-group[data-v-756d6848]{display:flex;align-items:center;flex-wrap:wrap;font-size:0px}.lew-radio-group.lew-radio-group-x[data-v-756d6848]{flex-direction:row}.lew-radio-group.lew-radio-group-y[data-v-756d6848]{flex-direction:column;align-items:start;justify-content:flex-start}.lew-tabs[data-v-7acf9b16]{position:relative;display:inline-flex;align-items:center;width:100%;background:var(--form-bgcolor-hover);height:34px;border-radius:10px;overflow:hidden}.lew-tabs .lew-tabs-item[data-v-7acf9b16]{position:relative;z-index:9;flex:1;text-align:center;height:28px;line-height:28px;border-radius:6px;margin:3px;color:var(--text-color);white-space:nowrap;cursor:pointer;transition:all .45s cubic-bezier(.65,0,.35,1);font-size:14px}.lew-tabs .activeItem[data-v-7acf9b16]{position:absolute;top:3px;left:0px;z-index:9;height:28px;border-radius:7px;transition:all .45s cubic-bezier(.65,0,.35,1);background:#fff;transform:translate(3px);box-shadow:0 0 5px #00000014}.lew-alert-group{width:100%;display:flex;flex-direction:column;font-size:0px}.lew-alert-group .lew-alert{position:relative;display:flex;align-items:flex-start;width:100%;min-height:40px;background-color:var(--normal-color);border-radius:8px;margin-bottom:10px;padding:12px;box-shadow:0 5px 15px -3px #0000001a,0 4px 6px -2px #0000000d;box-sizing:border-box;opacity:.8;transition:all .25s ease}.lew-alert-group .lew-alert .alert-icon{margin:-1px 5px 0 0}.lew-alert-group .lew-alert .close{position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:25px;height:25px;right:10px;border-radius:8px;box-sizing:border-box;cursor:pointer;user-select:none}.lew-alert-group .lew-alert .close:hover{background:rgba(0,0,0,.05)}.lew-alert-group .lew-alert .close:active{background:rgba(0,0,0,.15)}.lew-alert-group .lew-alert .message{width:calc(100% - 100px)}.lew-alert-group .lew-alert .message .title{margin-top:1px;font-size:15px;width:100%}.lew-alert-group .lew-alert .message .content{margin-top:7px;font-size:14px;width:100%}.lew-alert-group .lew-alert-normal{color:var(--normal-text-color);background-color:var(--normal-color-light)}.lew-alert-group .lew-alert-success{color:var(--success-text-color);background-color:var(--success-color-light)}.lew-alert-group .lew-alert-warning{color:var(--warning-text-color);background-color:var(--warning-color-light)}.lew-alert-group .lew-alert-danger{color:var(--danger-text-color);background-color:var(--danger-color-light)}.lew-alert-group .lew-alert-primary{color:var(--primary-text-color);background-color:var(--primary-color-light)}.lew-alert-group .lew-alert:hover{opacity:1}.lew-modal[data-v-f98cc7b8]{position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:#00000059;outline:1000000px solid rgba(0,0,0,.35);display:flex;justify-content:center;align-items:center;z-index:2001}.lew-modal .lew-modal-box[data-v-f98cc7b8]{border-radius:8px;background-color:#fff;box-shadow:0 15px 50px #0000000d}.lew-modal-enter-active[data-v-f98cc7b8],.lew-modal-leave-active[data-v-f98cc7b8]{transition:all .25s ease}.lew-modal-enter-from[data-v-f98cc7b8],.lew-modal-leave-to[data-v-f98cc7b8]{opacity:0;transform:translateY(10px)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-animation=shift-away-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=top]{transform:translateY(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=bottom]{transform:translateY(-5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=left]{transform:translate(5px)}.tippy-box[data-animation=shift-away-subtle][data-state=hidden][data-placement^=right]{transform:translate(-5px)}.tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.lew-dialog[data-v-21634138]{position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:#00000059;outline:1000000px solid rgba(0,0,0,.35);display:flex;justify-content:center;align-items:center;z-index:2050;animation-fill-mode:forwards}.lew-dialog .lew-dialog-box[data-v-21634138]{width:350px;height:auto;padding:20px;border-radius:8px;background-color:#fff;box-shadow:0 15px 50px #0000000d}.lew-dialog .lew-dialog-box header[data-v-21634138]{width:100%;font-size:16px;font-weight:600}.lew-dialog .lew-dialog-box main[data-v-21634138]{height:auto;font-size:14px;padding:10px 0 20px}.lew-dialog .lew-dialog-box footer[data-v-21634138]{display:flex;justify-content:end;width:100%}.lew-dialog .lew-dialog-box footer .lew-button[data-v-21634138]{margin-left:10px}@keyframes lewDialogOpen{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes lewDialogClose{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(15px)}}#lew-message{position:fixed;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:99;left:50%;transform:translate(-50%);top:80px}#lew-message .message{width:auto;display:flex;flex-shrink:0;align-items:center;justify-content:center;box-sizing:border-box;height:35px;line-height:35px;padding:15px 25px;transition:all ease .25s;opacity:0;margin-top:0;margin-bottom:10px;transform:translateY(-2px);white-space:nowrap;box-shadow:0 5px 15px #0000000d;font-size:14px;border-radius:6px;overflow:hidden;text-shadow:0px 0px 50px #000;background-color:var(--body-bgcolor)}#lew-message .message span{opacity:0;transition:all ease .25s}#lew-message .message svg{width:20px;height:20px;margin-right:10px;opacity:0;transition:all ease .25s}#lew-message .message-error{color:var(--danger-text-color)}#lew-message .message-success{color:var(--success-text-color)}#lew-message .message-info{color:var(--primary-text-color)}#lew-message .message-warning{color:var(--warning-text-color)}#lew-message .message-show{opacity:1;transform:translateY(0);box-shadow:0 5px 15px #0000001a}#lew-message .message-show span,#lew-message .message-show svg{opacity:1}#lew-message .message-hidden{opacity:0;margin-top:-40px}body,dl,dt,dd,pre,form,fieldset,input,p,blockquote,th,td,a,button,select,h1,h2,h3,h4,h5{margin:0;padding:0}select{font-size:14px}table{border-collapse:collapse}fieldset,img{border:0 none}fieldset{margin:0;padding:0}fieldset p{margin:0;padding:0 0 0 8px}legend{display:none}address,caption,em,th,i{font-style:normal;font-weight:400}table caption{margin-left:-var(--border-width)}hr{border-bottom:var(--border-width) solid #ffffff;border-top:var(--border-width) solid #e4e4e4;border-width:var(--border-width) 0;clear:both;height:2px;margin:5px 0;overflow:hidden}ol,ul{list-style-image:none;list-style-position:outside}caption,th{text-align:left}q:before,q:after,blockquote:before,blockquote:after{content:""}a{color:#000;text-decoration:none;position:relative}body{color:var(--text-color)}.btf-scrollbar::-webkit-scrollbar{background-color:#7e7e7e00;width:5px;height:5px}.btf-scrollbar::-webkit-scrollbar-thumb:hover{background-color:#7e7e7e}.btf-scrollbar::-webkit-scrollbar-thumb{background-color:#d1d5db00;opacity:0;border-radius:5px}.btf-scrollbar:hover::-webkit-scrollbar-thumb{background-color:#d1d5db4d;opacity:1;border-radius:5px}:root{--body-bgcolor: #fff;--text-color: rgb(51, 54, 57);--text-color-invert: rgb(255, 255, 255);--border-radius: 8px;--primary-color: rgb(59, 121, 208);--primary-color-light: rgb(59, 121, 208, .2);--primary-color-light2: rgb(59, 121, 208, .4);--primary-text-color: rgb(47, 88, 146);--primary-color-hover: rgb(54, 109, 187);--primary-color-active: rgb(42, 94, 149);--success-color: rgb(49, 196, 141);--success-color-dark: rgb(35, 153, 110);--success-color-light: rgb(108, 176, 119, .2);--success-color-light2: rgb(108, 176, 119, .4);--success-text-color: rgb(30, 107, 41);--success-color-hover: rgb(40, 176, 126);--success-color-active: rgb(28, 157, 110);--danger-color: rgb(249, 128, 128);--danger-color-dark: rgb(197, 88, 88);--danger-color-light: rgb(249, 128, 128, .2);--danger-color-light2: rgb(249, 128, 128, .4);--danger-text-color: #d10000;--danger-color-hover: rgb(231, 113, 113);--danger-color-active: rgb(204, 92, 92);--warning-color: rgb(227, 179, 68);--warning-color-dark: rgb(186, 132, 7);--warning-color-light: rgb(227, 160, 8, .2);--warning-color-light2: rgb(227, 160, 8, .4);--warning-text-color: rgb(187, 128, 9);--warning-color-hover: rgb(211, 150, 8);--warning-color-active: rgb(187, 133, 7);--normal-color: rgb(236, 235, 235);--normal-color-dark: rgb(177, 176, 176);--normal-color-light: rgba(154, 154, 154, .2);--normal-color-light2: rgba(154, 154, 154, .4);--normal-text-color: rgb(66, 66, 66);--normal-color-hover: rgb(224, 223, 223);--normal-color-active: rgb(165, 161, 161);--title-bold: 800;--title-color: rgb(33, 33, 33);--form-border: 1.5px rgba(0, 0, 0, .03) solid;--form-border-hover: 1.5px rgba(0, 0, 0, .08) solid;--form-border-active: 1.5px rgba(0, 0, 0, .12) solid;--form-border-radius: 8px;--form-border-focus: 1.5px solid var(--primary-color);--form-bgcolor-focus: rgb(255, 255, 255);--form-text-color: #333;--form-bgcolor: rgba(6, 57, 88, .022);--form-bgcolor-hover: rgba(6, 57, 88, .06);--form-bgcolor-active: rgba(6, 57, 88, .12);--form-bgcolor-high: rgba(6, 57, 88, .1);--form-bgcolor-high-hover: rgba(6, 57, 88, .16);--form-bgcolor-high-active: rgba(6, 57, 88, .2);--button-border-radius: 8px;--button-bgcolor: rgba(0, 0, 0, .022);--button-text-color: #000;--button-border: 1px rgba(0, 0, 0, .05) solid}.dark{--border: 1px #eee solid;--border-radius: 8px;--font-bold: 800;--bgcolor-body: #fff;--color-text: rgb(33, 33, 33);--color-title: rgb(33, 33, 33);--color-primary-1: rgb(30 66 159 / .6);--color-primary-2: rgb(30 66 159 / .8);--color-primary-3: rgb(30 66 159 / 1);--color-primary-1-hover: rgb(30 66 159 / .6);--color-primary-2-active: rgb(30 66 159 / .8);--color-primary-3-foucs: rgb(30 66 159 / 1);--color-danger-1: rgb(159, 30, 30, .6);--color-danger-2: rgb(159, 30, 30, .8);--color-danger-3: rgb(159, 30, 30, 1);--color-danger-1-hover: rgb(159, 30, 30, .6);--color-danger-2-active: rgb(159, 30, 30, .8);--color-danger-3-foucs: rgb(159, 30, 30, 1)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lew-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "A Component Library for Vue3.js.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue3",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "vite",
|
|
13
|
-
"build": "vue-tsc --noEmit && vite build",
|
|
13
|
+
"build": "vue-tsc --noEmit && vite build --mode demo",
|
|
14
|
+
"build:package": "vue-tsc --noEmit && vite build --mode package",
|
|
14
15
|
"preview": "vite preview",
|
|
15
16
|
"eslint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
|
|
16
17
|
"prettier": "prettier --write"
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"lew-ui": "^1.0.
|
|
35
|
+
"lew-ui": "^1.0.13",
|
|
35
36
|
"tippy.js": "^6.3.7",
|
|
36
37
|
"vue": "^3.2.25",
|
|
37
38
|
"vue-router": "^4.0.13"
|