GateWay/web/js/960.29de40e4.js
2024-11-13 11:26:59 +08:00

1 line
14 KiB
JavaScript

"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(t.content)return!0;const{content:e,showZero:r}=n;return(0,c.C8)(e)&&""!==e&&(r||0!==e&&"0"!==e)},r=()=>{const{dot:r,max:o,content:u}=n;if(!r&&e())return t.content?t.content():(0,c.C8)(o)&&(0,c.kf)(u)&&+u>+o?`${o}+`:u},u=n=>n.startsWith("-")?n.replace("-",""):`-${n}`,i=(0,o.EW)((()=>{const e={background:n.color};if(n.offset){const[r,o]=n.offset,{position:i}=n,[c,s]=i.split("-");t.default?(e[c]="number"===typeof o?(0,a._V)("top"===c?o:-o):"top"===c?(0,a._V)(o):u(o),e[s]="number"===typeof r?(0,a._V)("left"===s?r:-r):"left"===s?(0,a._V)(r):u(r)):(e.marginTop=(0,a._V)(o),e.marginLeft=(0,a._V)(r))}return e})),s=()=>{if(e()||n.dot)return(0,o.bF)("div",{class:l([n.position,{dot:n.dot,fixed:!!t.default}]),style:i.value},[r()])};return()=>{if(t.default){const{tag:e}=n;return(0,o.bF)(e,{class:l("wrapper")},{default:()=>[t.default(),s()]})}return s()}}});const p=(0,r.G)(d)},8957:function(n,t,e){e.d(t,{V:function(){return u},q:function(){return o}});var r=e(6768);const o=Symbol();function u(n){const t=(0,r.WQ)(o,null);t&&(0,r.wB)(t,(t=>{t&&n()}))}},6438:function(n,t,e){e.d(t,{S:function(){return u},v:function(){return o}});let r=2e3;const o=()=>++r,u=n=>{r=n}},4548:function(n,t,e){e.d(t,{aI:function(){return o},lq:function(){return i},wE:function(){return u}});var r=e(6768);const o={to:[String,Object],url:String,replace:Boolean};function u({to:n,url:t,replace:e,$router:r}){n&&r?r[e?"replace":"push"](n):t&&(e?location.replace(t):location.href=t)}function i(){const n=(0,r.nI)().proxy;return()=>u(n)}},5632:function(n,t,e){e.d(t,{In:function(){return x}});var r=e(4726),o=e(6768),u=e(5828),i=e(6370),c=e(7905),a=e(3408),s=e(8442),l=e(6438);const[f,d]=(0,u.YX)("config-provider"),p=Symbol(f),v={tag:(0,i.Ts)("div"),theme:(0,i.Ts)("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:(0,i.Ts)("local"),iconPrefix:String};function m(n){return n.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function h(n){const t={};return Object.keys(n).forEach((e=>{const r=m((0,c.kW)(e));t[`--van-${r}`]=n[e]})),t}function g(n={},t={}){Object.keys(n).forEach((e=>{n[e]!==t[e]&&document.documentElement.style.setProperty(e,n[e])})),Object.keys(t).forEach((t=>{n[t]||document.documentElement.style.removeProperty(t)}))}(0,o.pM)({name:f,props:v,setup(n,{slots:t}){const e=(0,o.EW)((()=>h((0,s.X$)({},n.themeVars,"dark"===n.theme?n.themeVarsDark:n.themeVarsLight))));if(s.M){const t=()=>{document.documentElement.classList.add(`van-theme-${n.theme}`)},r=(t=n.theme)=>{document.documentElement.classList.remove(`van-theme-${t}`)};(0,o.wB)((()=>n.theme),((n,e)=>{e&&r(e),t()}),{immediate:!0}),(0,o.n)(t),(0,o.Y4)(r),(0,o.xo)(r),(0,o.wB)(e,((t,e)=>{"global"===n.themeVarsScope&&g(t,e)})),(0,o.wB)((()=>n.themeVarsScope),((n,t)=>{"global"===t&&g({},e.value),"global"===n&&g(e.value,{})})),"global"===n.themeVarsScope&&g(e.value,{})}return(0,o.Gt)(p,n),(0,o.nT)((()=>{void 0!==n.zIndex&&(0,l.S)(n.zIndex)})),()=>(0,o.bF)(n.tag,{class:d(),style:"local"===n.themeVarsScope?e.value:void 0},{default:()=>{var n;return[null==(n=t.default)?void 0:n.call(t)]}})}});const[y,b]=(0,u.YX)("icon"),w=n=>null==n?void 0:n.includes("/"),$={dot:Boolean,tag:(0,i.Ts)("i"),name:String,size:i.VQ,badge:i.VQ,color:String,badgeProps:Object,classPrefix:String};var k=(0,o.pM)({name:y,props:$,setup(n,{slots:t}){const e=(0,o.WQ)(p,null),r=(0,o.EW)((()=>n.classPrefix||(null==e?void 0:e.iconPrefix)||b()));return()=>{const{tag:e,dot:u,name:i,size:s,badge:l,color:f}=n,d=w(i);return(0,o.bF)(a.Ex,(0,o.v6)({dot:u,tag:e,class:[r.value,d?"":`${r.value}-${i}`],style:{color:f,fontSize:(0,c._V)(s)},content:l},n.badgeProps),{default:()=>{var n;return[null==(n=t.default)?void 0:n.call(t),d&&(0,o.bF)("img",{class:b("image"),src:i},null)]}})}}});const x=(0,r.G)(k)},8442:function(n,t,e){function r(){}e.d(t,{$r:function(){return m},C8:function(){return c},Ct:function(){return h},Gv:function(){return i},Jt:function(){return d},M:function(){return u},Tn:function(){return a},Up:function(){return p},X$:function(){return o},am:function(){return v},kf:function(){return l},lQ:function(){return r},un:function(){return f},yL:function(){return s}});const o=Object.assign,u="undefined"!==typeof window,i=n=>null!==n&&"object"===typeof n,c=n=>void 0!==n&&null!==n,a=n=>"function"===typeof n,s=n=>i(n)&&a(n.then)&&a(n.catch);const l=n=>"number"===typeof n||/^\d+(\.\d+)?$/.test(n),f=()=>!!u&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function d(n,t){const e=t.split(".");let r=n;return e.forEach((n=>{var t;r=i(r)&&null!=(t=r[n])?t:""})),r}function p(n,t,e){return t.reduce(((t,r)=>(e&&void 0===n[r]||(t[r]=n[r]),t)),{})}const v=(n,t)=>JSON.stringify(n)===JSON.stringify(t),m=n=>Array.isArray(n)?n:[n],h=n=>n.reduce(((n,t)=>n.concat(t)),[])},4612:function(n,t,e){e.d(t,{$i:function(){return s},Dk:function(){return a},Ez:function(){return l},kw:function(){return u},n_:function(){return o},pT:function(){return i},xm:function(){return c}});const r="van-hairline",o=`${r}--bottom`,u=`${r}--surround`,i=`${r}--top-bottom`,c=`${r}-unset--top-bottom`,a="van-haptics-feedback",s=Symbol("van-form"),l=5},5828:function(n,t,e){e.d(t,{YX:function(){return g}});var r=e(8442),o=e(7905),u=e(144);const{hasOwnProperty:i}=Object.prototype;function c(n,t,e){const o=t[e];(0,r.C8)(o)&&(i.call(n,e)&&(0,r.Gv)(o)?n[e]=a(Object(n[e]),o):n[e]=o)}function a(n,t){return Object.keys(t).forEach((e=>{c(n,t,e)})),n}var s={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(n,t)=>`${n}${t}`,rangePrompt:n=>`最多选择 ${n}`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:n=>`${n}`,condition:n=>`${n}元可用`},vanCouponCell:{title:"优惠券",count:n=>`${n}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const l=(0,u.KR)("zh-CN"),f=(0,u.Kh)({"zh-CN":s}),d={messages(){return f[l.value]},use(n,t){l.value=n,this.add({[n]:t})},add(n={}){a(f,n)}};var p=d;function v(n){const t=(0,o.PT)(n)+".";return(n,...e)=>{const o=p.messages(),u=(0,r.Jt)(o,t+n)||(0,r.Jt)(o,n);return(0,r.Tn)(u)?u(...e):u}}function m(n,t){return t?"string"===typeof t?` ${n}--${t}`:Array.isArray(t)?t.reduce(((t,e)=>t+m(n,e)),""):Object.keys(t).reduce(((e,r)=>e+(t[r]?m(n,r):"")),""):""}function h(n){return(t,e)=>(t&&"string"!==typeof t&&(e=t,t=""),t=t?`${n}__${t}`:n,`${t}${m(t,e)}`)}function g(n){const t=`van-${n}`;return[t,h(t),v(t)]}},240:function(n,t,e){e.d(t,{B0:function(){return d},C7:function(){return g},Fk:function(){return s},LR:function(){return c},Td:function(){return a},Xw:function(){return h},dG:function(){return p},dK:function(){return m},hY:function(){return i},mk:function(){return l},wo:function(){return v}});var r=e(6591),o=e(144),u=e(8442);function i(n){const t="scrollTop"in n?n.scrollTop:n.pageYOffset;return Math.max(t,0)}function c(n,t){"scrollTop"in n?n.scrollTop=t:n.scrollTo(n.scrollX,t)}function a(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function s(n){c(window,n),c(document.body,n)}function l(n,t){if(n===window)return 0;const e=t?i(t):a();return(0,r.yD)(n).top+e}const f=(0,u.un)();function d(){f&&s(a())}const p=n=>n.stopPropagation();function v(n,t){("boolean"!==typeof n.cancelable||n.cancelable)&&n.preventDefault(),t&&p(n)}function m(n){const t=(0,o.R1)(n);if(!t)return!1;const e=window.getComputedStyle(t),r="none"===e.display,u=null===t.offsetParent&&"fixed"!==e.position;return r||u}const{width:h,height:g}=(0,r.lW)()},7905:function(n,t,e){e.d(t,{AO:function(){return c},LF:function(){return w},PT:function(){return m},S7:function(){return p},ZV:function(){return b},_V:function(){return u},kW:function(){return h},qE:function(){return g},vE:function(){return i}});var r=e(8442),o=e(240);function u(n){if((0,r.C8)(n))return(0,r.kf)(n)?`${n}px`:String(n)}function i(n){if((0,r.C8)(n)){if(Array.isArray(n))return{width:u(n[0]),height:u(n[1])};const t=u(n);return{width:t,height:t}}}function c(n){const t={};return void 0!==n&&(t.zIndex=+n),t}let a;function s(){if(!a){const n=document.documentElement,t=n.style.fontSize||window.getComputedStyle(n).fontSize;a=parseFloat(t)}return a}function l(n){return n=n.replace(/rem/g,""),+n*s()}function f(n){return n=n.replace(/vw/g,""),+n*o.Xw.value/100}function d(n){return n=n.replace(/vh/g,""),+n*o.C7.value/100}function p(n){if("number"===typeof n)return n;if(r.M){if(n.includes("rem"))return l(n);if(n.includes("vw"))return f(n);if(n.includes("vh"))return d(n)}return parseFloat(n)}const v=/-(\w)/g,m=n=>n.replace(v,((n,t)=>t.toUpperCase())),h=n=>n.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");const g=(n,t,e)=>Math.min(Math.max(n,t),e);function y(n,t,e){const r=n.indexOf(t);return-1===r?n:"-"===t&&0!==r?n.slice(0,r):n.slice(0,r+1)+n.slice(r).replace(e,"")}function b(n,t=!0,e=!0){n=t?y(n,".",/\./g):n.split(".")[0],n=e?y(n,"-",/-/g):n.replace(/-/,"");const r=t?/[^-0-9.]/g:/[^-0-9]/g;return n.replace(r,"")}function w(n,t){const e=10**10;return Math.round((n+t)*e)/e}},9725:function(n,t,e){e.d(t,{m:function(){return o}});var r=e(8442);function o(n,{args:t=[],done:e,canceled:o,error:u}){if(n){const i=n.apply(null,t);(0,r.yL)(i)?i.then((n=>{n?e():o&&o()})).catch(u||r.lQ):i?e():o&&o()}else e()}},6370:function(n,t,e){e.d(t,{$g:function(){return i},E9:function(){return r},Jh:function(){return a},Rd:function(){return u},TU:function(){return s},Ts:function(){return l},VQ:function(){return o},zj:function(){return c}});const r=null,o=[Number,String],u={type:Boolean,default:!0},i=n=>({type:n,required:!0}),c=()=>({type:Array,default:()=>[]}),a=n=>({type:Number,default:n}),s=n=>({type:o,default:n}),l=n=>({type:String,default:n})},4726:function(n,t,e){e.d(t,{G:function(){return o}});var r=e(7905);function o(n){return n.install=t=>{const{name:e}=n;e&&(t.component(e,n),t.component((0,r.PT)(`-${e}`),n))},n}}}]);