GateWay/web/js/960.29de40e4.js

1 line
14 KiB
JavaScript
Raw Normal View History

2024-11-13 11:26:59 +08:00
"use strict";(self["webpackChunkset_vue"]=self["webpackChunkset_vue"]||[]).push([[960],{7708:function(){},7484:function(){},6647:function(){},6591:function(n,t,e){e.d(t,{Gp:function(){return L},ML:function(){return w},Py:function(){return h},SA:function(){return c},TU:function(){return O},W3:function(){return $},cJ:function(){return d},er:function(){return i},f:function(){return A},f$:function(){return V},kz:function(){return b},lW:function(){return k},mH:function(){return S},r7:function(){return a},yD:function(){return f}});e(4114);var r=e(144),o=e(6768),u="undefined"!==typeof window;function i(n){return u?requestAnimationFrame(n):-1}function c(n){u&&cancelAnimationFrame(n)}function a(n){i((()=>i(n)))}var s=n=>n===window,l=(n,t)=>({top:0,left:0,right:n,bottom:t,width:n,height:t}),f=n=>{const t=(0,r.R1)(n);if(s(t)){const n=t.innerWidth,e=t.innerHeight;return l(n,e)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():l(0,0)};function d(n){const t=(0,o.WQ)(n,null);if(t){const n=(0,o.nI)(),{link:e,unlink:r,internalChildren:u}=t;e(n),(0,o.hi)((()=>r(n)));const i=(0,o.EW)((()=>u.indexOf(n)));return{parent:t,index:i}}return{parent:null,index:(0,r.KR)(-1)}}function p(n){const t=[],e=n=>{Array.isArray(n)&&n.forEach((n=>{var r;(0,o.vv)(n)&&(t.push(n),(null==(r=n.component)?void 0:r.subTree)&&(t.push(n.component.subTree),e(n.component.subTree.children)),n.children&&e(n.children))}))};return e(n),t}var v=(n,t)=>{const e=n.indexOf(t);return-1===e?n.findIndex((n=>void 0!==t.key&&null!==t.key&&n.type===t.type&&n.key===t.key)):e};function m(n,t,e){const r=p(n.subTree.children);e.sort(((n,t)=>v(r,n.vnode)-v(r,t.vnode)));const o=e.map((n=>n.proxy));t.sort(((n,t)=>{const e=o.indexOf(n),r=o.indexOf(t);return e-r}))}function h(n){const t=(0,r.Kh)([]),e=(0,r.Kh)([]),u=(0,o.nI)(),i=r=>{const i=n=>{n.proxy&&(e.push(n),t.push(n.proxy),m(u,t,e))},c=n=>{const r=e.indexOf(n);t.splice(r,1),e.splice(r,1)};(0,o.Gt)(n,Object.assign({link:i,unlink:c,children:t,internalChildren:e},r))};return{children:t,linkChildren:i}}var g,y;function b(n){let t;(0,o.sV)((()=>{n(),(0,o.dY)((()=>{t=!0}))})),(0,o.n)((()=>{t&&n()}))}function w(n,t,e={}){if(!u)return;const{target:i=window,passive:c=!1,capture:a=!1}=e;let s,l=!1;const f=e=>{if(l)return;const o=(0,r.R1)(e);o&&!s&&(o.addEventListener(n,t,{capture:a,passive:c}),s=!0)},d=e=>{if(l)return;const o=(0,r.R1)(e);o&&s&&(o.removeEventListener(n,t,a),s=!1)};let p;return(0,o.hi)((()=>d(i))),(0,o.Y4)((()=>d(i))),b((()=>f(i))),(0,r.i9)(i)&&(p=(0,o.wB)(i,((n,t)=>{d(t),f(n)}))),()=>{null==p||p(),d(i),l=!0}}function $(n,t,e={}){if(!u)return;const{eventName:o="click"}=e,i=e=>{const o=Array.isArray(n)?n:[n],u=o.every((n=>{const t=(0,r.R1)(n);return t&&!t.contains(e.target)}));u&&t(e)};w(o,i,{target:document})}function k(){if(!g&&(g=(0,r.KR)(0),y=(0,r.KR)(0),u)){const n=()=>{g.value=window.innerWidth,y.value=window.innerHeight};n(),window.addEventListener("resize",n,{passive:!0}),window.addEventListener("orientationchange",n,{passive:!0})}return{width:g,height:y}}var x,C=/scroll|auto|overlay/i,T=u?window:void 0;function E(n){const t=1;return"HTML"!==n.tagName&&"BODY"!==n.tagName&&n.nodeType===t}function S(n,t=T){let e=n;while(e&&e!==t&&E(e)){const{overflowY:n}=window.getComputedStyle(e);if(C.test(n))return e;e=e.parentNode}return t}function V(n,t=T){const e=(0,r.KR)();return(0,o.sV)((()=>{n.value&&(e.value=S(n.value,t))})),e}function O(){if(!x&&(x=(0,r.KR)("visible"),u)){const n=()=>{x.value=document.hidden?"hidden":"visible"};n(),window.addEventListener("visibilitychange",n)}return x}var A=Symbol("van-field");function L(n){const t=(0,o.WQ)(A,null);t&&!t.customValue.value&&(t.customValue.value=n,(0,o.wB)(n,(()=>{t.resetValidation(),t.validateWithTrigger("onChange")})))}},3408:function(n,t,e){e.d(t,{Ex:function(){return p}});var r=e(4726),o=e(6768),u=e(5828),i=e(6370),c=e(8442),a=e(7905);const[s,l]=(0,u.YX)("badge"),f={dot:Boolean,max:i.VQ,tag:(0,i.Ts)("div"),color:String,offset:Array,content:i.VQ,showZero:i.Rd,position:(0,i.Ts)("top-right")};var d=(0,o.pM)({name:s,props:f,setup(n,{slots:t}){const e=()=>{if(