1import{Ht as e,Mt as t}from"./vue-D0d8k1b_qq.js";import{t as n}from"./Date-uz5FQk7Lzc.js";var r=e(!1),i=e(!1),a=e({cursor:`not-allowed`}),o=e({}),s=e({}),c={maskBackground:`transparent`,maskBackdropFilter:`none`},l={loadingColor:`var(--primary-color)`,loadingSize:16,loadingBorderWidth:2};function u(){if(!document.getElementById(`global-loading-style`)){let e=document.createElement(`style`);e.id=`global-loading-style`,e.textContent=` 2 @keyframes global-loading-spin { 3 0% { transform: rotate(0); } 4 100% { transform: rotate(360deg); } 5 } 6 `,document.head.appendChild(e)}}function d(e){let t=document.getElementById(`global-mask`);t&&(t.style.background=e.maskBackground??c.maskBackground,t.style.backdropFilter=e.maskBackdropFilter??c.maskBackdropFilter)}function f(e){let t=document.getElementById(`global-loading`);if(t){let n=e.loadingColor??l.loadingColor,r=e.loadingSize??l.loadingSize,i=e.loadingBorderWidth??l.loadingBorderWidth;t.style.width=`${r}px`,t.style.height=`${r}px`,t.style.borderWidth=`${i}px`,t.style.borderColor=`${n} transparent transparent ${n}`}}function p(){f(l)}t(()=>r.value,()=>{let e=document.getElementById(`app`),t=document.getElementById(`global-mask`);if(r.value){let n={"not-allowed":`url('https://cdn.pacdora.com/cursors/not-allowed.svg') 7 5, not-allowed`,wait:`url('https://cdn.pacdora.com/cursors/wait.svg') 7 5, wait`};if(document.body.style.cursor=n[a.value.cursor]||n[`not-allowed`],e&&!t){let t=document.createElement(`div`);t.id=`global-mask`,t.style.position=`fixed`,t.style.top=`0`,t.style.left=`0`,t.style.width=`100%`,t.style.height=`100%`,t.style.zIndex=`9999`,t.style.pointerEvents=`all`,t.style.display=`flex`,t.style.alignItems=`center`,t.style.justifyContent=`center`,u();let n=document.createElement(`div`);n.id=`global-loading`,n.style.cssText=` 7 width: ${l.loadingSize}px; 8 height: ${l.loadingSize}px; 9 border-width: ${l.loadingBorderWidth}px; 10 border-style: solid; 11 border-color: ${l.loadingColor} transparent transparent ${l.loadingColor}; 12 border-radius: 100%; 13 animation: global-loading-spin 0.75s linear infinite; 14 display: none; 15 `,t.appendChild(n),e.appendChild(t),d(o.value)}}else document.body.style.cursor=`url('https://cdn.pacdora.com/cursors/arrow.svg') 7 5, default`,e&&t&&e.removeChild(t),i.value=!1,s.value={},o.value={}}),t(()=>o.value,()=>{d(o.value)},{deep:!0}),t(()=>i.value,()=>{let e=document.getElementById(`global-loading`);e&&(i.value?(e.style.display=`block`,f(s.value)):(e.style.display=`none`,p(),s.value={}))});function m(e){a.value=e||{cursor:`not-allowed`};let t=e=>{o.value=e||{}},n=(e,t)=>{e&&t&&(s.value=t),i.value=e};return{setLoadingState:e=>{switch(e){case`idle`:t({}),r.value=!1;break;case`mask-only-without-mask`:r.value=!0,t({maskBackground:`transparent`,maskBackdropFilter:`none`}),n(!1);break;case`mask-only`:r.value=!0,t({maskBackground:`rgba(0, 0, 0, 0.4)`,maskBackdropFilter:`blur(10px)`}),n(!1);break;case`loading`:r.value=!0,t({maskBackground:`rgba(0, 0, 0, 0.4)`,maskBackdropFilter:`blur(10px)`}),n(!0,{loadingColor:`#BFBFBF`,loadingSize:56,loadingBorderWidth:4});break}},isLock:r}}var h={position:[0,0,30],direction:[0,.5,0]},g=e=>{e.camera.instance.position.fromArray(h.position),e.control.instance.target.fromArray(h.direction),e.camera.instance.updateProjectionMatrix(),e.control.instance.update()};function _(e,t=2e4){return new Promise(n=>{let r=document.querySelector(`.${e}`);if(!r){console.error(`Container with class "${e}" not found`),n(!1);return}if(r.querySelectorAll(`.animation-opacity`).length===0){console.warn(`No elements with class "animation-opacity" found`),n(!0);return}let i=()=>{let e=window.innerHeight,t=r.getBoundingClientRect(),a=r.querySelectorAll(`.animation-opacity`);if(a.length===0){console.warn(`No elements with class "animation-opacity" found`),n(!0);return}let o=Array.from(a).filter(n=>{let r=n.getBoundingClientRect();return r.top<e&&r.bottom>0&&r.top>=t.top&&r.bottom<=t.bottom});o.every(e=>{let t=window.getComputedStyle(e).getPropertyValue(`opacity`);return parseFloat(t)===1})&&o.length>0?n(!0):requestAnimationFrame(i)};requestAnimationFrame(i),setTimeout(()=>{n(!1)},t)})}function v(){function e(){var t;typeof((t=window)==null?void 0:t.createAnimationObserver)==`function`?window.createAnimationObserver(`enter-animation`):requestAnimationFrame(e)}e()}var y=e(!1),b=e(n(new Date,`hh:mm`));export{m as a,g as i,y as n,v as o,b as r,_ 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.