Files
nademitex_user/dist/assets/dist-BEjUUhLz.js
T

1 line
7.8 KiB
JavaScript
Raw Normal View History

2026-09-13 10:46:57 +03:30
import{H as e,K as t,U as n,W as r,bt as i,ct as a,et as o,ft as s,gt as c,ht as l,it as u,k as d,ot as f,pt as p,tt as m,ut as h,vt as g,xt as _,z as v}from"./BasicIcon-B6lR-mG3.js";function y(e,t){return f()?(h(e,t),!0):!1}var b=new WeakMap,x=(...t)=>{let r=t[0],i=v()?.proxy??f();if(i==null&&!e())throw Error(`injectLocal must be called in setup`);return i&&b.has(i)&&r in b.get(i)?b.get(i)[r]:n(...t)},S=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var C=Object.prototype.toString,w=e=>C.call(e)===`[object Object]`,T=()=>{},E=D();function D(){var e,t;return S&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function O(...e){if(e.length!==1)return g(...e);let t=e[0];return typeof t==`function`?s(u(()=>({get:t,set:T}))):p(t)}function k(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var A=e=>e();function j(e=A,t={}){let{initialState:n=`active`}=t,r=O(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:l(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function M(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function N(e){return Array.isArray(e)?e:[e]}function P(e){return e||v()}function F(e,t,n={}){let{eventFilter:r=A,...i}=n;return o(e,k(r,t),i)}function I(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=j(r,{initialState:i});return{stop:F(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function L(e,n=!0,i){P(i)?t(e,i):n?e():r(e)}function R(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:s=!1}=n,u=null,d=c(!1);function f(){u&&=(clearInterval(u),null)}function p(){d.value=!1,f()}function m(){let n=i(t);n<=0||(d.value=!0,s&&e(),f(),d.value&&(u=setInterval(e,n)))}return r&&S&&m(),(a(t)||typeof t==`function`)&&y(o(t,()=>{d.value&&S&&m()})),y(p),{isActive:l(d),pause:p,resume:m}}function z(e,t,n={}){let{immediate:r=!0,immediateCallback:a=!1}=n,o=c(!1),s;function u(){s&&=(clearTimeout(s),void 0)}function d(){o.value=!1,u()}function f(...n){a&&e(),u(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...n)},i(t))}return r&&(o.value=!0,S&&f()),y(d),{isPending:l(o),start:f,stop:d}}function B(e,t,n){return o(e,t,{...n,immediate:!0})}var V=S?window:void 0;S&&window.document,S&&window.navigator,S&&window.location;function H(e){let t=i(e);return t?.$el??t}function U(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=d(()=>{let t=N(i(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return B(()=>[n.value?.map(e=>H(e))??[V].filter(e=>e!=null),N(i(n.value?e[1]:e[0])),N(_(n.value?e[2]:e[1])),i(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=w(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var W=!1;function G(e,t,n={}){let{window:r=V,ignore:a=[],capture:o=!0,detectIframe:s=!1,controls:c=!1}=n;if(!r)return c?{stop:T,cancel:T,trigger:T}:T;if(E&&!W){W=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,T,e)),r.document.documentElement.addEventListener(`click`,T,e)}let l=!0,u=e=>i(a).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=H(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let t=i(e);return t&&t.$.subTree.shapeFlag===16}function f(e,t){let n=i(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let p=n=>{let r=H(e);if(n.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,n))&&!(!r||r===n.t