2 lines
9.5 KiB
JavaScript
2 lines
9.5 KiB
JavaScript
import{_ as C,g as k,i as _,o as R,p as N,h as B}from"./md5.RtphNWHi.js";import{d as h,g as l,o as S,c as T,n as v,O as L,k as O,a6 as z,h as H,y as j,j as P,a8 as U,S as W}from"./framework.FVQzxbLi.js";const V=h({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=k("icon"),o=l(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),i=l(()=>{const s={};return e.size&&(s.fontSize=_(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:o,innerStyle:i,onClick:s=>{t("click",s)}}}}),Y=["stroke-width","stroke-linecap","stroke-linejoin"],Z=O("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1),x=[Z];function K(e,t,n,o,i,r){return S(),T("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:v(e.cls),style:L(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},x,14,Y)}var d=C(V,[["render",K]]);const pe=Object.assign(d,{install:(e,t)=>{var n;const o=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(o+d.name,d)}}),G=h({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=k("icon"),o=l(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),i=l(()=>{const s={};return e.size&&(s.fontSize=_(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:o,innerStyle:i,onClick:s=>{t("click",s)}}}}),X=["stroke-width","stroke-linecap","stroke-linejoin"],q=O("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1),J=[q];function Q(e,t,n,o,i,r){return S(),T("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:v(e.cls),style:L(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},J,14,X)}var a=C(G,[["render",Q]]);const me=Object.assign(a,{install:(e,t)=>{var n;const o=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(o+a.name,a)}}),F=h({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=k("icon"),o=l(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),i=l(()=>{const s={};return e.size&&(s.fontSize=_(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:o,innerStyle:i,onClick:s=>{t("click",s)}}}}),ee=["stroke-width","stroke-linecap","stroke-linejoin"],te=O("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1),ne=[te];function oe(e,t,n,o,i,r){return S(),T("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:v(e.cls),style:L(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},ne,14,ee)}var f=C(F,[["render",oe]]);const Ce=Object.assign(f,{install:(e,t)=>{var n;const o=(n=t==null?void 0:t.iconPrefix)!=null?n:"";e.component(o+f.name,f)}});var g;(function(e){e[e.ELEMENT=1]="ELEMENT",e[e.FUNCTIONAL_COMPONENT=2]="FUNCTIONAL_COMPONENT",e[e.STATEFUL_COMPONENT=4]="STATEFUL_COMPONENT",e[e.COMPONENT=6]="COMPONENT",e[e.TEXT_CHILDREN=8]="TEXT_CHILDREN",e[e.ARRAY_CHILDREN=16]="ARRAY_CHILDREN",e[e.SLOTS_CHILDREN=32]="SLOTS_CHILDREN",e[e.TELEPORT=64]="TELEPORT",e[e.SUSPENSE=128]="SUSPENSE",e[e.COMPONENT_SHOULD_KEEP_ALIVE=256]="COMPONENT_SHOULD_KEEP_ALIVE",e[e.COMPONENT_KEPT_ALIVE=512]="COMPONENT_KEPT_ALIVE"})(g||(g={}));var I;(function(e){e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.DEV_ROOT_FRAGMENT=2048]="DEV_ROOT_FRAGMENT",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL"})(I||(I={}));const c=e=>!!(e&&e.shapeFlag&1),u=(e,t)=>!!(e&&e.shapeFlag&6),ie=(e,t)=>!!(e&&e.shapeFlag&8),y=(e,t)=>!!(e&&e.shapeFlag&16),$=(e,t)=>!!(e&&e.shapeFlag&32),E=e=>{var t,n;if(e)for(const o of e){if(c(o)||u(o))return o;if(y(o,o.children)){const i=E(o.children);if(i)return i}else if($(o,o.children)){const i=(n=(t=o.children).default)==null?void 0:n.call(t);if(i){const r=E(i);if(r)return r}}else if(N(o)){const i=E(o);if(i)return i}}},ke=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},re=(e,t)=>{if(e&&e.length>0)for(let n=0;n<e.length;n++){const o=e[n];if(c(o)||u(o)){const r=R(t)?t(o):t;return e[n]=z(o,r,!0),!0}const i=b(o);if(i&&i.length>0&&re(i,t))return!0}return!1},b=e=>{if(y(e,e.children))return e.children;if(N(e))return e},M=e=>{var t,n;if(c(e))return e.el;if(u(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const o=M(e.component.subTree);if(o)return o}}else{const o=b(e);return se(o)}},se=e=>{if(e&&e.length>0)for(const t of e){const n=M(t);if(n)return n}},p=(e,t=!1)=>{var n,o;const i=[];for(const r of e??[])c(r)||u(r)||t&&ie(r,r.children)?i.push(r):y(r,r.children)?i.push(...p(r.children,t)):$(r,r.children)?i.push(...p((o=(n=r.children).default)==null?void 0:o.call(n),t)):N(r)&&i.push(...p(r,t));return i},_e=e=>{if(e)return R(e)?e:()=>e},A=()=>{},Ne=()=>{const{body:e}=document,t=document.documentElement;let n;try{n=(window.top||window.self||window).document.body}catch{}return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight,(n==null?void 0:n.scrollHeight)||0,(n==null?void 0:n.clientHeight)||0),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth,(n==null?void 0:n.scrollWidth)||0,(n==null?void 0:n.clientWidth)||0)}},w=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),he=w?A:(e,t,n,o=!1)=>{e.addEventListener(t,n,o)},Se=w?A:(e,t,n,o=!1)=>{e.removeEventListener(t,n,o)},Te=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},le=(e,t)=>{var n;return w?A():(n=(t??document).querySelector(e))!=null?n:void 0},ve=(e,t)=>{if(B(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return le(n,t)}return e},Le=(e,t)=>{const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{top:n.top-o.top,bottom:o.bottom-n.bottom,left:n.left-o.left,right:o.right-n.right,width:n.width,height:n.height}},Oe=["info","success","warning","error"],ye=["onFocus","onFocusin","onFocusout","onBlur","onChange","onBeforeinput","onInput","onReset","onSubmit","onInvalid","onKeydown","onKeypress","onKeyup","onCopy","onCut","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onSelect","autocomplete","autofocus","maxlength","minlength","name","pattern","readonly","required"],ce=1e3,ue=5e3,de=1;class ae{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||ue:Array.from(this.popupStack.popup).pop()||ce)+de,this.add=t=>{const n=this.getNextZIndex(t);return this.popupStack[t].add(n),t==="dialog"&&this.popupStack.popup.add(n),n},this.delete=(t,n)=>{this.popupStack[n].delete(t),n==="dialog"&&this.popupStack.popup.delete(t)},this.isLastDialog=t=>this.popupStack.dialog.size>1?t===Array.from(this.popupStack.dialog).pop():!0}}const m=new ae;function Ae(e,{visible:t,runOnMounted:n}={}){const o=H(0),i=()=>{o.value=m.add(e)},r=()=>{m.delete(o.value,e)},s=()=>e==="dialog"?m.isLastDialog(o.value):!1;return j(()=>t==null?void 0:t.value,D=>{D?i():r()},{immediate:!0}),n&&(P(()=>{i()}),U(()=>{r()})),{zIndex:W(o),open:i,close:r,isLastDialog:s}}export{pe as I,Oe as M,Ce as a,me as b,ye as c,Ne as d,se as e,ve as f,E as g,Se as h,ke as i,Le as j,p as k,_e as l,re as m,Te as n,he as o,Ae as u};
|