Files
machartaa_admin_dist/dist/assets/DialogWrap-b41f46aa.js
T

2 lines
13 KiB
JavaScript
Raw Normal View History

2026-07-22 17:08:59 +03:30
import{am as W,aD as re,d as $,ai as x,g as k,an as xe,v as Ee,E as Z,aK as le,O as ye,P as Ce,b as g,be as Oe,al as _e,X as Te,ap as v,h as Re,aL as be,V as pe,aM as ke,ak as we,a9 as De,a7 as Me}from"./index-02897754.js";import{Q as $e,R as Ae,K as se,V as Ie}from"./isSymbol-792a2a97.js";import{o as Le}from"./vnode-65917850.js";import{p as Be}from"./pickAttrs-66d27c5c.js";import{w as ue,i as Ne}from"./_plugin-vue_export-helper-2dea18d7.js";import{a as We,d as Ve}from"./button.vue_vue_type_style_index_0_lang-58c562e7.js";var q;function ee(r){if(typeof document>"u")return 0;if(r||q===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var o=e.offsetWidth;t.style.overflow="scroll";var a=e.offsetWidth;o===a&&(a=t.clientWidth),document.body.removeChild(t),q=o-a}return q}function ce(r){var e=r.match(/^(.*)px$/),t=Number(e==null?void 0:e[1]);return Number.isNaN(t)?ee():t}function at(r){if(typeof document>"u"||!r||!(r instanceof Element))return{width:0,height:0};var e=getComputedStyle(r,"::-webkit-scrollbar"),t=e.width,n=e.height;return{width:ce(t),height:ce(n)}}function R(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.element,n=t===void 0?document.body:t,o={},a=Object.keys(r);return a.forEach(function(f){o[f]=n.style[f]}),a.forEach(function(f){n.style[f]=r[f]}),o}function je(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var G={};const fe=function(r){if(!(!je()&&!r)){var e="ant-scrolling-effect",t=new RegExp("".concat(e),"g"),n=document.body.className;if(r){if(!t.test(n))return;R(G),G={},document.body.className=n.replace(t,"").trim();return}var o=ee();if(o&&(G=R({position:"relative",width:"calc(100% - ".concat(o,"px)")}),!t.test(n))){var a="".concat(n," ").concat(e);document.body.className=a.trim()}}};var S=[],Se="ant-scrolling-effect",Q=new RegExp("".concat(Se),"g"),ze=0,J=new Map,Fe=We(function r(e){var t=this;Ve(this,r),W(this,"getContainer",function(){var n;return(n=t.options)===null||n===void 0?void 0:n.container}),W(this,"reLock",function(n){var o=S.find(function(a){var f=a.target;return f===t.lockTarget});o&&t.unLock(),t.options=n,o&&(o.options=n,t.lock())}),W(this,"lock",function(){var n;if(!S.some(function(s){var d=s.target;return d===t.lockTarget})){if(S.some(function(s){var d,C=s.options;return(C==null?void 0:C.container)===((d=t.options)===null||d===void 0?void 0:d.container)})){S=[].concat(re(S),[{target:t.lockTarget,options:t.options}]);return}var o=0,a=((n=t.options)===null||n===void 0?void 0:n.container)||document.body;(a===document.body&&window.innerWidth-document.documentElement.clientWidth>0||a.scrollHeight>a.clientHeight)&&(o=ee());var f=a.className;if(S.filter(function(s){var d,C=s.options;return(C==null?void 0:C.container)===((d=t.options)===null||d===void 0?void 0:d.container)}).length===0&&J.set(a,R({width:o!==0?"calc(100% - ".concat(o,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:a})),!Q.test(f)){var m="".concat(f," ").concat(Se);a.className=m.trim()}S=[].concat(re(S),[{target:t.lockTarget,options:t.options}])}}),W(this,"unLock",function(){var n,o=S.find(function(m){var s=m.target;return s===t.lockTarget});if(S=S.filter(function(m){var s=m.target;return s!==t.lockTarget}),!(!o||S.some(function(m){var s,d=m.options;return(d==null?void 0:d.container)===((s=o.options)===null||s===void 0?void 0:s.container)}))){var a=((n=t.options)===null||n===void 0?void 0:n.container)||document.body,f=a.className;Q.test(f)&&(R(J.get(a),{element:a}),J.delete(a),a.className=a.className.replace(Q,"").trim())}}),this.lockTarget=ze++,this.options=e}),O=0,M=Oe(),V={},T=function(e){if(!M)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(_e(e)==="o