1import{Dt as e,Ft as t,Jt as n,L as r,M as i,P as a,St as o,W as s,_t as c,h as l,i as u,kt as d,n as f,o as p,qt as m,sn as h,tn as g,vt as _,wt as v,z as y}from"./vue.runtime.esm-bundler-BIF-FFB3.js";import{Jt as b,bt as x,gt as S,vt as C}from"./dist-5ZmEWvOA.js";import{i as w}from"./config-provider-B_UWD2Q5.js";p(),y(),o();function T(n,o){let s,p=d(!1),m=e({...n,originalPosition:``,originalOverflow:``,visible:!1});function h(e){m.text=e}function g(){let e=m.parent,t=C.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute(`loading-number`);n=Number.parseInt(n)-1,n?e.setAttribute(`loading-number`,n.toString()):(x(e,t.bm(`parent`,`relative`)),e.removeAttribute(`loading-number`)),x(e,t.bm(`parent`,`hidden`))}v(),S.unmount()}function v(){C.$el?.parentNode?.removeChild(C.$el)}function y(){n.beforeClose&&!n.beforeClose()||(p.value=!0,clearTimeout(s),s=setTimeout(b,400),m.visible=!1,n.closed?.())}function b(){if(!p.value)return;let e=m.parent;p.value=!1,e.vLoadingAddClassList=void 0,g()}let S=u(a({name:`ElLoading`,setup(e,{expose:t}){let{ns:n,zIndex:a}=w(`loading`);return t({ns:n,zIndex:a}),()=>{let e=m.spinner||m.svg,t=r(`svg`,{class:`circular`,viewBox:m.svgViewBox?m.svgViewBox:`0 0 50 50`,...e?{innerHTML:e}:{}},[r(`circle`,{class:`path`,cx:`25`,cy:`25`,r:`20`,fill:`none`})]),a=m.text?r(`p`,{class:n.b(`text`)},[m.text]):void 0;return r(f,{name:n.b(`fade`),onAfterLeave:b},{default:c(()=>[_(i(`div`,{style:{backgroundColor:m.background||``},class:[n.b(`mask`),m.customClass,n.is(`fullscreen`,m.fullscreen)]},[r(`div`,{class:n.b(`spinner`)},[t,a])]),[[l,m.visible]])])})}}}));Object.assign(S._context,o??{});let C=S.mount(document.createElement(`div`));return{...t(m),setText:h,removeElLoadingChild:v,close:y,handleAfterLeave:b,vm:C,get $el(){return C.$el}}}n(),y();var E=void 0,D=function(e={},t){if(!b)return;let n=O(e);if(n.fullscreen&&E)return E;let r=T({...n,closed:()=>{n.closed?.(),n.fullscreen&&(E=void 0)}},t??D._context);k(n,n.parent,r),A(n,n.parent,r),n.parent.vLoadingAddClassList=()=>A(n,n.parent,r);let i=n.parent.getAttribute(`loading-number`);return i=i?`${Number.parseInt(i)+1}`:`1`,n.parent.setAttribute(`loading-number`,i),n.parent.appendChild(r.$el),s(()=>r.visible.value=n.visible),n.fullscreen&&(E=r),r},O=e=>{let t;return t=h(e.target)?document.querySelector(e.target)??document.body:e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||``,svg:e.svg||``,svgViewBox:e.svgViewBox||``,spinner:e.spinner||!1,text:e.text||``,fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||``,visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},k=async(e,t,n)=>{let{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,i={};if(e.fullscreen)n.originalPosition.value=C(document.body,`position`),n.originalOverflow.value=C(document.body,`overflow`),i.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=C(document.body,`position`),await s();for(let t of[`top`,`left`]){let n=t===`top`?`scrollTop`:`scrollLeft`;i[t]=`${e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt(C(document.body,`margin-${t}`),10)}px`}for(let t of[`height`,`width`])i[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=C(t,`position`);for(let[e,t]of Object.entries(i))n.$el.style[e]=t},A=(e,t,n)=>{let r=n.vm.ns||n.vm._.exposed.ns;[`absolute`,`fixed`,`sticky`].includes(n.originalPosition.value)?x(t,r.bm(`parent`,`relative`)):S(t,r.bm(`parent`,`relative`)),e.fullscreen&&e.lock?S(t,r.bm(`parent`,`hidden`)):x(t,r.bm(`parent`,`hidden`))};D._context=null,n(),o();var j=Symbol(`ElLoading`),M=e=>`element-loading-${m(e)}`,N=(e,t)=>{let n=t.instance,r=e=>g(t.value)?t.value[e]:void 0,i=e=>d(h(e)&&n?.[e]||e),a=t=>i(r(t)||e.getAttribute(M(t))),o=r(`fullscreen`)??t.modifiers.fullscreen,s={text:a(`text`),svg:a(`svg`),svgViewBox:a(`svgViewBox`),spinner:a(`spinner`),background:a(`background`),customClass:a(`customClass`),fullscreen:o,target:r(`target`)??(o?void 0:e),body:r(`body`)??t.modifiers.body,lock:r(`lock`)??t.modifiers.lock},c=D(s);c._context=F._context,e[j]={options:s,instance:c}},P=(e,t)=>{for(let n of Object.keys(e))v(e[n])&&(e[n].value=t[n])},F={mounted(e,t){t.value&&N(e,t)},updated(e,t){let n=e[j];if(!t.value){n?.instance.close(),e[j]=null;return}n?P(n.options,g(t.value)?t.value:{text:e.getAttribute(M(`text`)),svg:e.getAttribute(M(`svg`)),svgViewBox:e.getAttribute(M(`svgViewBox`)),spinner:e.getAttribute(M(`spinner`)),background:e.getAttribute(M(`background`)),customClass:e.getAttribute(M(`customClass`))}):N(e,t)},unmounted(e){e[j]?.instance.close(),e[j]=null}};F._context=null;var I={install(e){D._context=e._context,F._context=e._context,e.directive(`loading`,F),e.config.globalProperties.$loading=D},directive:F,service:D};export{I as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.