@indfnd/common-mobile 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/ind-common-mobile.es.js +17 -17
- package/dist/ind-common-mobile.umd.cjs +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(N,Hi){typeof exports=="object"&&typeof module!="undefined"?Hi(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],Hi):(N=typeof globalThis!="undefined"?globalThis:N||self,Hi(N.IndMobileCommon={},N.lodash,N["@indfnd/utils"],N.vue,N["view-design"]))})(this,function(N,Hi,M,kp,ke){"use strict";function Ao(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var y=Ao(Hi),_t=Ao(kp),Tp={name:"@indfnd/common-mobile",version:"1.0.69",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.40",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},_p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backHome}},[e._v("\u8FD4\u56DE\u9996\u9875")]),i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backPrev}},[e._v("\u8FD4\u56DE\u4E0A\u4E00\u9875("+e._s(e.second)+"s)")])],1)},Ip=[];function Y(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Ep={name:"IndBackBtnGroup",data(){return{second:5,timer:null}},mounted(){this.timer=setInterval(()=>{this.second===0?this.backPrev():this.second--},1e3)},beforeDestroy(){clearInterval(this.timer)},methods:{backHome(){this.$router.replace({name:this.$config.homeRouteName})},backPrev(){this.$router.go(-1)}}},Po={};var Dp=Y(Ep,_p,Ip,!1,Mp,null,null,null);function Mp(e){for(let t in Po)this[t]=Po[t]}var Op=function(){return Dp.exports}(),Lp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-error-page"},[i("div",{staticClass:"content-con"},[i("img",{attrs:{src:e.src,alt:e.code}}),i("div",{staticClass:"text-con"},[i("h4",[e._v(e._s(e.code))]),i("h5",[e._v(e._s(e.desc))])])])])},Ap=[];const Pp={name:"IndErrorContent",components:{BackBtnGroup:Op},props:{code:String,desc:String,src:String}},No={};var Np=Y(Pp,Lp,Ap,!1,Bp,null,null,null);function Bp(e){for(let t in No)this[t]=No[t]}var ta=function(){return Np.exports}(),Fp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},Rp=[];const Vp={name:"IndNotFound",components:{ErrorContent:ta},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Bo={};var zp=Y(Vp,Fp,Rp,!1,jp,null,null,null);function jp(e){for(let t in Bo)this[t]=Bo[t]}var Ui=function(){return zp.exports}(),Fo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Up(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var Ro={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Fo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},E=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:E,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),D=g%60;return(k<=0?"+":"-")+E(I,2,"0")+":"+E(D,2,"0")},m:function V(k,g){if(k.date()<g.date())return-V(g,k);var I=12*(g.year()-k.year())+(g.month()-k.month()),D=k.clone().add(I,d),j=g-D<0,H=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-D)/(j?D-H:H-D))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},T="en",O={};O[T]=x;var X="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[X])},z=function V(k,g,I){var D;if(!k)return T;if(typeof k=="string"){var j=k.toLowerCase();O[j]&&(D=j),g&&(O[j]=g,D=j);var H=k.split("-");if(!D&&H.length>1)return V(H[0])}else{var S=k.name;O[S]=k,D=S}return!I&&D&&(T=D),D||!I&&T},B=function(V,k){if(R(V))return V.clone();var g=typeof k=="object"?k:{};return g.date=V,g.args=arguments,new it(g)},A=_;A.l=z,A.i=R,A.w=function(V,k){return B(V,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var it=function(){function V(g){this.$L=z(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[X]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var D=I.date,j=I.utc;if(D===null)return new Date(NaN);if(A.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var S=H[2]-1||0,b=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)}}return new Date(D)}(g),this.init()},k.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},k.$utils=function(){return A},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(g,I){var D=B(g);return this.startOf(I)<=D&&D<=this.endOf(I)},k.isAfter=function(g,I){return B(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<B(g)},k.$g=function(g,I,D){return A.u(g)?this[I]:this.set(D,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var D=this,j=!!A.u(I)||I,H=A.p(g),S=function(Tt,$t){var Ae=A.w(D.$u?Date.UTC(D.$y,$t,Tt):new Date(D.$y,$t,Tt),D);return j?Ae:Ae.endOf(c)},b=function(Tt,$t){return A.w(D.toDate()[Tt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),D)},C=this.$W,F=this.$M,K=this.$D,G="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(C<tt?C+7:C)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return b(G+"Hours",0);case l:return b(G+"Minutes",1);case o:return b(G+"Seconds",2);case s:return b(G+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=A.p(g),H="set"+(this.$u?"UTC":""),S=(D={},D[c]=H+"Date",D[p]=H+"Date",D[d]=H+"Month",D[f]=H+"FullYear",D[l]=H+"Hours",D[o]=H+"Minutes",D[s]=H+"Seconds",D[a]=H+"Milliseconds",D)[j],b=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](b),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](b);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[A.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=A.p(I),S=function(F){var K=B(j);return A.w(K.date(K.date()+Math.round(F*g)),j)};if(H===d)return this.set(d,this.$M+g);if(H===f)return this.set(f,this.$y+g);if(H===c)return S(1);if(H===h)return S(7);var b=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,C=this.$d.getTime()+g*b;return A.w(C,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),S=this.$H,b=this.$m,C=this.$M,F=D.weekdays,K=D.months,G=D.meridiem,tt=function($t,Ae,_n,Qr){return $t&&($t[Ae]||$t(I,j))||_n[Ae].slice(0,Qr)},ct=function($t){return A.s(S%12||12,$t,"0")},Tt=G||function($t,Ae,_n){var Qr=$t<12?"AM":"PM";return _n?Qr.toLowerCase():Qr};return j.replace(w,function($t,Ae){return Ae||function(_n){switch(_n){case"YY":return String(I.$y).slice(-2);case"YYYY":return A.s(I.$y,4,"0");case"M":return C+1;case"MM":return A.s(C+1,2,"0");case"MMM":return tt(D.monthsShort,C,K,3);case"MMMM":return tt(K,C);case"D":return I.$D;case"DD":return A.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(D.weekdaysMin,I.$W,F,2);case"ddd":return tt(D.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return A.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,b,!0);case"A":return Tt(S,b,!1);case"m":return String(b);case"mm":return A.s(b,2,"0");case"s":return String(I.$s);case"ss":return A.s(I.$s,2,"0");case"SSS":return A.s(I.$ms,3,"0");case"Z":return H}return null}($t)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=A.p(I),b=B(g),C=(b.utcOffset()-this.utcOffset())*n,F=this-b,K=function(){return A.m(H,b)};switch(S){case f:j=K()/12;break;case d:j=K();break;case u:j=K()/3;break;case h:j=(F-C)/6048e5;break;case c:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return D?j:A.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return O[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var D=this.clone(),j=z(g,I,!0);return j&&(D.$L=j),D},k.clone=function(){return A.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},V}(),ot=it.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),B.extend=function(V,k){return V.$i||(V(k,it,B),V.$i=!0),B},B.locale=z,B.isDayjs=R,B.unix=function(V){return B(1e3*V)},B.en=O[T],B.Ls=O,B.p={},B})})(Ro);var St=Ro.exports,Kp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.formatValue,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},on:{"on-clear":e.clear},nativeOn:{click:function(n){e.visible=!0}}}),i("van-popup",{style:{height:"40%"},attrs:{position:"bottom","get-container":"body"},model:{value:e.visible,callback:function(n){e.visible=n},expression:"visible"}},[e.type!="year-quarter"&&e.type!="year-half"?i("van-datetime-picker",e._b({attrs:{type:e.type,value:e.dateValue},on:{confirm:e.confirm,cancel:e.cancel}},"van-datetime-picker",Object.assign({},e.$attrs),!1)):i("van-picker",{attrs:{"show-toolbar":"",title:e.$attrs.placeholder,columns:e.dataList},on:{confirm:e.confirm,cancel:e.cancel}})],1)],1)},Wp=[];const Vo=new Date().getFullYear(),zo=new Date().getMonth()+1,Yp=`Q${M.getQuarterNum(zo)}`,Xp=`H${M.getHalfYearNum(zo)}`,jo=10,Ho=10,Gp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Vo+Yp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Vo+Xp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?M.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Uo={};var qp=Y(Gp,Kp,Wp,!1,Jp,null,null,null);function Jp(e){for(let t in Uo)this[t]=Uo[t]}var Ko=function(){return qp.exports}();function In(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Wo(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Zp(e){let t=e.split("_");for(let i=1;i<t.length;i++)t[i]=t[i].substring(0,1).toUpperCase()+t[i].substring(1);return t.join("")}function ea(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Zp(c.id):c.id;let h=c.props;if(h)try{h=JSON.parse(h)}catch{console.log("props \u89E3\u6790\u5F02\u5E38",h),h=null}c.props=h;let d=c.enumList;if(d)try{d=JSON.parse(d)}catch{console.log("enumList \u89E3\u6790\u5F02\u5E38",d),d=null}return c.enumList=d,c});let n=i.filter(l=>l.frontHide!="true").map(l=>({...l,title:l.name,width:200,field:l.id,sortable:!0,align:l.type=="INTEGER"?"right":"left",type:l.inputType||null})),r=i.filter(l=>l.listSearch=="true").map(l=>({...l,formKey:l.id,title:l.name,type:l.searchType||"input"})),a=i.filter(l=>l.frontHide!="true").map(l=>({...l,formKey:l.id,title:l.name,isTitle:l.isTitle==="true",type:l.inputType||null,required:l.required==="true"})),s=e.table,o=null;return s&&(s instanceof Array?o=s.map(l=>ea(l)):o=[ea(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function En(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ea(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const Qp=!1;var Te=M.useConfig(Qp);function tm(e){if(typeof e!="string"||!St(e).isValid())return e;switch(e.length){case 4:return St(e,"YYYY").format("YYYY");case 6:return St(e,"YYYYMM").format("YYYY-MM");case 8:return St(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return St(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function em(e,t){let i=St(e).diff(St(),"day");i<=Te.leftLockDays&&t(i)}const im={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},nm=new _t.default,rm=e=>e.children&&e.children.length,am=(e,t)=>e.some(i=>t.includes(i)),Yo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!am(e.meta.access,t):!0,sm=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Xo=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},om=()=>{},Go=(e,t)=>{let i=[];return um(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(rm(n)||n.meta&&n.meta.showAlways)&&Yo(n,t)&&(r.children=Go(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Yo(n,t)&&i.push(r)}}),i},qo=(e,t)=>{let i={...t,icon:t.meta.icon};const{crumbs:n}=e.meta;n&&n.length>0&&n.forEach(a=>{a.meta={title:a.title},a.type===2&&(a.to=a.name)});let r=[{...i,to:t.name}];return n&&n.length>0&&(r=r.concat(n)),r},lm=e=>e.meta.title,ia=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Jo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},Dn=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=Dn(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Zo=(e,t)=>{let i={};if(e.length===2)i=Dn(e);else{const n=e.findIndex(r=>Ki(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Qo=(e,t)=>{let i=e.length,n=!1;return sm(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,cm=(e,t)=>{const{name:i,path:n,meta:r}=t;let a=[...e];return a.findIndex(s=>s.name===i)>=0||a.push({name:i,path:n,meta:r}),a};function um(e,t){if(!e.length||!t)return;let i=-1,n=e.length;for(;++i<n;){let r=e[i];t(r,i,e)}}const hm=/([\:\-\_]+(.))/g,dm=/^moz([A-Z])/;function fm(e){return e.replace(hm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(dm,"Moz$1")}function pm(e,t){if(!e||!t)return null;t=fm(t),t==="float"&&(t="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch{return e.style[t]}}var tl={exports:{}};/*!
|
|
1
|
+
(function(N,Hi){typeof exports=="object"&&typeof module!="undefined"?Hi(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],Hi):(N=typeof globalThis!="undefined"?globalThis:N||self,Hi(N.IndMobileCommon={},N.lodash,N["@indfnd/utils"],N.vue,N["view-design"]))})(this,function(N,Hi,M,kp,ke){"use strict";function Ao(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var y=Ao(Hi),_t=Ao(kp),Tp={name:"@indfnd/common-mobile",version:"1.0.70",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.40",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},_p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backHome}},[e._v("\u8FD4\u56DE\u9996\u9875")]),i("Button",{attrs:{size:"large",type:"text"},on:{click:e.backPrev}},[e._v("\u8FD4\u56DE\u4E0A\u4E00\u9875("+e._s(e.second)+"s)")])],1)},Ip=[];function Y(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Ep={name:"IndBackBtnGroup",data(){return{second:5,timer:null}},mounted(){this.timer=setInterval(()=>{this.second===0?this.backPrev():this.second--},1e3)},beforeDestroy(){clearInterval(this.timer)},methods:{backHome(){this.$router.replace({name:this.$config.homeRouteName})},backPrev(){this.$router.go(-1)}}},Po={};var Dp=Y(Ep,_p,Ip,!1,Mp,null,null,null);function Mp(e){for(let t in Po)this[t]=Po[t]}var Op=function(){return Dp.exports}(),Lp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-error-page"},[i("div",{staticClass:"content-con"},[i("img",{attrs:{src:e.src,alt:e.code}}),i("div",{staticClass:"text-con"},[i("h4",[e._v(e._s(e.code))]),i("h5",[e._v(e._s(e.desc))])])])])},Ap=[];const Pp={name:"IndErrorContent",components:{BackBtnGroup:Op},props:{code:String,desc:String,src:String}},No={};var Np=Y(Pp,Lp,Ap,!1,Bp,null,null,null);function Bp(e){for(let t in No)this[t]=No[t]}var ta=function(){return Np.exports}(),Fp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},Rp=[];const Vp={name:"IndNotFound",components:{ErrorContent:ta},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Bo={};var zp=Y(Vp,Fp,Rp,!1,jp,null,null,null);function jp(e){for(let t in Bo)this[t]=Bo[t]}var Ui=function(){return zp.exports}(),Fo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Up(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var Ro={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Fo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},E=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:E,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),D=g%60;return(k<=0?"+":"-")+E(I,2,"0")+":"+E(D,2,"0")},m:function V(k,g){if(k.date()<g.date())return-V(g,k);var I=12*(g.year()-k.year())+(g.month()-k.month()),D=k.clone().add(I,d),j=g-D<0,H=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-D)/(j?D-H:H-D))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},T="en",O={};O[T]=x;var X="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[X])},z=function V(k,g,I){var D;if(!k)return T;if(typeof k=="string"){var j=k.toLowerCase();O[j]&&(D=j),g&&(O[j]=g,D=j);var H=k.split("-");if(!D&&H.length>1)return V(H[0])}else{var S=k.name;O[S]=k,D=S}return!I&&D&&(T=D),D||!I&&T},B=function(V,k){if(R(V))return V.clone();var g=typeof k=="object"?k:{};return g.date=V,g.args=arguments,new it(g)},A=_;A.l=z,A.i=R,A.w=function(V,k){return B(V,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var it=function(){function V(g){this.$L=z(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[X]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var D=I.date,j=I.utc;if(D===null)return new Date(NaN);if(A.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var S=H[2]-1||0,b=(H[7]||"0").substring(0,3);return j?new Date(Date.UTC(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,b)}}return new Date(D)}(g),this.init()},k.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},k.$utils=function(){return A},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(g,I){var D=B(g);return this.startOf(I)<=D&&D<=this.endOf(I)},k.isAfter=function(g,I){return B(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<B(g)},k.$g=function(g,I,D){return A.u(g)?this[I]:this.set(D,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var D=this,j=!!A.u(I)||I,H=A.p(g),S=function(Tt,$t){var Ae=A.w(D.$u?Date.UTC(D.$y,$t,Tt):new Date(D.$y,$t,Tt),D);return j?Ae:Ae.endOf(c)},b=function(Tt,$t){return A.w(D.toDate()[Tt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),D)},C=this.$W,F=this.$M,K=this.$D,G="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(C<tt?C+7:C)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return b(G+"Hours",0);case l:return b(G+"Minutes",1);case o:return b(G+"Seconds",2);case s:return b(G+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=A.p(g),H="set"+(this.$u?"UTC":""),S=(D={},D[c]=H+"Date",D[p]=H+"Date",D[d]=H+"Month",D[f]=H+"FullYear",D[l]=H+"Hours",D[o]=H+"Minutes",D[s]=H+"Seconds",D[a]=H+"Milliseconds",D)[j],b=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](b),C.init(),this.$d=C.set(p,Math.min(this.$D,C.daysInMonth())).$d}else S&&this.$d[S](b);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[A.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=A.p(I),S=function(F){var K=B(j);return A.w(K.date(K.date()+Math.round(F*g)),j)};if(H===d)return this.set(d,this.$M+g);if(H===f)return this.set(f,this.$y+g);if(H===c)return S(1);if(H===h)return S(7);var b=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,C=this.$d.getTime()+g*b;return A.w(C,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),S=this.$H,b=this.$m,C=this.$M,F=D.weekdays,K=D.months,G=D.meridiem,tt=function($t,Ae,_n,Qr){return $t&&($t[Ae]||$t(I,j))||_n[Ae].slice(0,Qr)},ct=function($t){return A.s(S%12||12,$t,"0")},Tt=G||function($t,Ae,_n){var Qr=$t<12?"AM":"PM";return _n?Qr.toLowerCase():Qr};return j.replace(w,function($t,Ae){return Ae||function(_n){switch(_n){case"YY":return String(I.$y).slice(-2);case"YYYY":return A.s(I.$y,4,"0");case"M":return C+1;case"MM":return A.s(C+1,2,"0");case"MMM":return tt(D.monthsShort,C,K,3);case"MMMM":return tt(K,C);case"D":return I.$D;case"DD":return A.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(D.weekdaysMin,I.$W,F,2);case"ddd":return tt(D.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return A.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,b,!0);case"A":return Tt(S,b,!1);case"m":return String(b);case"mm":return A.s(b,2,"0");case"s":return String(I.$s);case"ss":return A.s(I.$s,2,"0");case"SSS":return A.s(I.$ms,3,"0");case"Z":return H}return null}($t)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=A.p(I),b=B(g),C=(b.utcOffset()-this.utcOffset())*n,F=this-b,K=function(){return A.m(H,b)};switch(S){case f:j=K()/12;break;case d:j=K();break;case u:j=K()/3;break;case h:j=(F-C)/6048e5;break;case c:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return D?j:A.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return O[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var D=this.clone(),j=z(g,I,!0);return j&&(D.$L=j),D},k.clone=function(){return A.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},V}(),ot=it.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),B.extend=function(V,k){return V.$i||(V(k,it,B),V.$i=!0),B},B.locale=z,B.isDayjs=R,B.unix=function(V){return B(1e3*V)},B.en=O[T],B.Ls=O,B.p={},B})})(Ro);var St=Ro.exports,Kp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.formatValue,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},on:{"on-clear":e.clear},nativeOn:{click:function(n){e.visible=!0}}}),i("van-popup",{style:{height:"40%"},attrs:{position:"bottom","get-container":"body"},model:{value:e.visible,callback:function(n){e.visible=n},expression:"visible"}},[e.type!="year-quarter"&&e.type!="year-half"?i("van-datetime-picker",e._b({attrs:{type:e.type,value:e.dateValue},on:{confirm:e.confirm,cancel:e.cancel}},"van-datetime-picker",Object.assign({},e.$attrs),!1)):i("van-picker",{attrs:{"show-toolbar":"",title:e.$attrs.placeholder,columns:e.dataList},on:{confirm:e.confirm,cancel:e.cancel}})],1)],1)},Wp=[];const Vo=new Date().getFullYear(),zo=new Date().getMonth()+1,Yp=`Q${M.getQuarterNum(zo)}`,Xp=`H${M.getHalfYearNum(zo)}`,jo=10,Ho=10,Gp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Vo+Yp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Vo+Xp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?M.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Uo={};var qp=Y(Gp,Kp,Wp,!1,Jp,null,null,null);function Jp(e){for(let t in Uo)this[t]=Uo[t]}var Ko=function(){return qp.exports}();function In(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Wo(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Zp(e){let t=e.split("_");for(let i=1;i<t.length;i++)t[i]=t[i].substring(0,1).toUpperCase()+t[i].substring(1);return t.join("")}function ea(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Zp(c.id):c.id;let h=c.props;if(h)try{h=JSON.parse(h)}catch{console.log("props \u89E3\u6790\u5F02\u5E38",h),h=null}c.props=h;let d=c.enumList;if(d)try{d=JSON.parse(d)}catch{console.log("enumList \u89E3\u6790\u5F02\u5E38",d),d=null}return c.enumList=d,c});let n=i.filter(l=>l.frontHide!="true").map(l=>({...l,title:l.name,width:200,field:l.id,sortable:!0,align:l.type=="INTEGER"?"right":"left",type:l.inputType||null})),r=i.filter(l=>l.listSearch=="true").map(l=>({...l,formKey:l.id,title:l.name,type:l.searchType||"input"})),a=i.filter(l=>l.frontHide!="true").map(l=>({...l,formKey:l.id,title:l.name,isTitle:l.isTitle==="true",type:l.inputType||null,required:l.required==="true"})),s=e.table,o=null;return s&&(s instanceof Array?o=s.map(l=>ea(l)):o=[ea(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function En(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ea(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const Qp=!1;var Te=M.useConfig(Qp);function tm(e){if(typeof e!="string"||!St(e).isValid())return e;switch(e.length){case 4:return St(e,"YYYY").format("YYYY");case 6:return St(e,"YYYYMM").format("YYYY-MM");case 8:return St(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return St(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function em(e,t){let i=St(e).diff(St(),"day");i<=Te.leftLockDays&&t(i)}const im={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},nm=new _t.default,rm=e=>e.children&&e.children.length,am=(e,t)=>e.some(i=>t.includes(i)),Yo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!am(e.meta.access,t):!0,sm=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Xo=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},om=()=>{},Go=(e,t)=>{let i=[];return um(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(rm(n)||n.meta&&n.meta.showAlways)&&Yo(n,t)&&(r.children=Go(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Yo(n,t)&&i.push(r)}}),i},qo=(e,t)=>{let i={...t,icon:t.meta.icon};const{crumbs:n}=e.meta;n&&n.length>0&&n.forEach(a=>{a.meta={title:a.title},a.type===2&&(a.to=a.name)});let r=[{...i,to:t.name}];return n&&n.length>0&&(r=r.concat(n)),r},lm=e=>e.meta.title,ia=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Jo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},Dn=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=Dn(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Zo=(e,t)=>{let i={};if(e.length===2)i=Dn(e);else{const n=e.findIndex(r=>Ki(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Qo=(e,t)=>{let i=e.length,n=!1;return sm(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,cm=(e,t)=>{const{name:i,path:n,meta:r}=t;let a=[...e];return a.findIndex(s=>s.name===i)>=0||a.push({name:i,path:n,meta:r}),a};function um(e,t){if(!e.length||!t)return;let i=-1,n=e.length;for(;++i<n;){let r=e[i];t(r,i,e)}}const hm=/([\:\-\_]+(.))/g,dm=/^moz([A-Z])/;function fm(e){return e.replace(hm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(dm,"Moz$1")}function pm(e,t){if(!e||!t)return null;t=fm(t),t==="float"&&(t="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch{return e.style[t]}}var tl={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
12
12
|
|
|
13
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:dr(t.placement),variation:Sh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$h(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$h(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var U0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H0,data:{}};function K0(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!ye(a)||!Re(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function W0(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),o=s.reduce(function(l,c){return l[c]="",l},{});!ye(r)||!Re(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var Y0={name:"applyStyles",enabled:!0,phase:"write",fn:K0,effect:W0,requires:["computeStyles"]},X0=[F0,V0,U0,Y0],G0=N0({defaultModifiers:X0});function q0(e,t,i){var n=dr(e),r=[hi,Ai].indexOf(n)>=0?-1:1,a=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[hi,un].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function J0(e){var t=e.state,i=e.options,n=e.name,r=i.offset,a=r===void 0?[0,0]:r,s=v0.reduce(function(h,d){return h[d]=q0(d,t.rects,a),h},{}),o=s[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}var Z0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:J0},kh=$("popover"),Q0=kh[0],fi=kh[1],tw=Q0({mixins:[ls({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(zt||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=G0(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},L({},Z0,{options:{offset:this.offset}})]});return zt||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),t},updateLocation:function(){var t=this;this.$nextTick(function(){!t.value||(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())})},renderAction:function(t,i){var n=this,r=this.$createElement,a=t.icon,s=t.text,o=t.disabled,l=t.className;return r("div",{attrs:{role:"menuitem"},class:[fi("action",{disabled:o,"with-icon":a}),l],on:{click:function(){return n.onClickAction(t,i)}}},[a&&r(Z,{attrs:{name:a},class:fi("action-icon")}),r("div",{class:[fi("action-text"),Ji]},[s])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){this.trigger==="click"&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,i){t.disabled||(this.$emit("select",t,i),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:fi("wrapper"),on:{click:this.onClickWrapper}},[t(_e,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:fi([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:fi("arrow")}),t("div",{class:fi("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),Th=$("progress"),ew=Th[0],$s=Th[1],iw=ew({mixins:[he(function(e){e(window,"resize",this.resize,!0),e(window,"orientationchange",this.resize,!0)})],props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(){var t=arguments[0],i=this.pivotText,n=this.percentage,r=i!=null?i:n+"%",a=this.showPivot&&r,s=this.inactive?"#cacaca":this.color,o={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||s},l={background:s,width:this.progressWidth*n/100+"px"},c={background:this.trackColor,height:st(this.strokeWidth)};return t("div",{class:$s(),style:c},[t("span",{class:$s("portion"),style:l},[a&&t("span",{ref:"pivot",style:o,class:$s("pivot")},[r])])])}}),ks=$("pull-refresh"),nw=ks[0],pr=ks[1],rw=ks[2],_h=50,aw=["pulling","loosing","success"],sw=nw({mixins:[ee],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:_h}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return this.status!=="loading"&&this.status!=="success"&&!this.disabled},headStyle:function(){if(this.headHeight!==_h)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=si(this.$el)},methods:{checkPullStart:function(t){this.ceiling=oi(this.scrollEl)===0,this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){!this.touchable||(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&this.direction==="vertical"&&(It(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,this.status==="loosing"?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){t.$emit("refresh")})):this.setStatus(0))},ease:function(t){var i=+(this.pullDistance||this.headHeight);return t>i&&(t<i*2?t=i+(t-i)/2:t=i*1.5+(t-i*2)/4),Math.round(t)},setStatus:function(t,i){var n;i?n="loading":t===0?n="normal":n=t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,i=this.status,n=this.distance,r=this.slots(i,{distance:n});if(r)return r;var a=[],s=this[i+"Text"]||rw(i);return aw.indexOf(i)!==-1&&a.push(t("div",{class:pr("text")},[s])),i==="loading"&&a.push(t(de,{attrs:{size:"16"}},[s])),a},showSuccessTip:function(){var t=this;this.status="success",setTimeout(function(){t.setStatus(0)},this.successDuration)}},render:function(){var t=arguments[0],i={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:pr()},[t("div",{ref:"track",class:pr("track"),style:i},[t("div",{class:pr("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Ih=$("rate"),ow=Ih[0],mr=Ih[1];function lw(e,t,i){return e>=t?"full":e+.5>=t&&i?"half":"void"}var cw=ow({mixins:[ee,We],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t=[],i=1;i<=this.count;i++)t.push(lw(this.value,i,this.allowHalf));return t},sizeWithUnit:function(){return st(this.size)},gutterWithUnit:function(){return st(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){!this.disabled&&!this.readonly&&t!==this.value&&(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var i=this;if(!(this.readonly||this.disabled||!this.touchable)){this.touchStart(t);var n=this.$refs.items.map(function(a){return a.getBoundingClientRect()}),r=[];n.forEach(function(a,s){i.allowHalf?r.push({score:s+.5,left:a.left},{score:s+1,left:a.left+a.width/2}):r.push({score:s+1,left:a.left})}),this.ranges=r}},onTouchMove:function(t){if(!(this.readonly||this.disabled||!this.touchable)&&(this.touchMove(t),this.direction==="horizontal")){It(t);var i=t.touches[0].clientX;this.select(this.getScoreByPosition(i))}},getScoreByPosition:function(t){for(var i=this.ranges.length-1;i>0;i--)if(t>this.ranges[i].left)return this.ranges[i].score;return this.allowHalf?.5:1},genStar:function(t,i){var n=this,r=this.$createElement,a=this.icon,s=this.color,o=this.count,l=this.voidIcon,c=this.disabled,h=this.voidColor,d=this.disabledColor,u=i+1,f=t==="full",p=t==="void",m;return this.gutterWithUnit&&u!==+o&&(m={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:i,attrs:{role:"radio",tabindex:"0","aria-setsize":o,"aria-posinset":u,"aria-checked":String(!p)},style:m,class:mr("item")},[r(Z,{attrs:{size:this.sizeWithUnit,name:f?a:l,color:c?d:f?s:h,classPrefix:this.iconPrefix,"data-score":u},class:mr("icon",{disabled:c,full:f}),on:{click:function(){n.select(u)}}}),this.allowHalf&&r(Z,{attrs:{size:this.sizeWithUnit,name:p?l:a,color:c?d:p?h:s,classPrefix:this.iconPrefix,"data-score":u-.5},class:mr("icon",["half",{disabled:c,full:!p}]),on:{click:function(){n.select(u-.5)}}})])}},render:function(){var t=this,i=arguments[0];return i("div",{class:mr({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(n,r){return t.genStar(n,r)})])}}),Eh=$("row"),uw=Eh[0],hw=Eh[1],dw=uw({mixins:[Ut("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(!!t){var i=[],n=[[]],r=0;return this.children.forEach(function(a,s){r+=Number(a.span),r>24?(n.push([s]),r-=24):n[n.length-1].push(s)}),n.forEach(function(a){var s=t*(a.length-1)/a.length;a.forEach(function(o,l){if(l===0)i.push({right:s});else{var c=t-i[o-1].right,h=s-c;i.push({left:c,right:h})}})}),i}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,i=arguments[0],n=this.align,r=this.justify,a=this.type==="flex";return i(this.tag,{class:hw((t={flex:a},t["align-"+n]=a&&n,t["justify-"+r]=a&&r,t)),on:{click:this.onClick}},[this.slots()])}}),Ts=$("search"),fw=Ts[0],vr=Ts[1],pw=Ts[2];function Dh(e,t,i,n){function r(){if(i.label||t.label)return e("div",{class:vr("label")},[i.label?i.label():t.label])}function a(){if(!t.showAction)return;function l(){i.action||(at(n,"input",""),at(n,"cancel"))}return e("div",{class:vr("action"),attrs:{role:"button",tabindex:"0"},on:{click:l}},[i.action?i.action():t.actionText||pw("cancel")])}var s={attrs:n.data.attrs,on:L({},n.listeners,{keypress:function(c){c.keyCode===13&&(It(c),at(n,"search",t.value)),at(n,"keypress",c)}})},o=lt(n);return o.attrs=void 0,e("div",et([{class:vr({"show-action":t.showAction}),style:{background:t.background}},o]),[i.left==null?void 0:i.left(),e("div",{class:vr("content",t.shape)},[r(),e(ie,et([{attrs:{type:"search",border:!1,value:t.value,leftIcon:t.leftIcon,rightIcon:t.rightIcon,clearable:t.clearable,clearTrigger:t.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},s]))]),a()])}Dh.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var mw=fw(Dh),vw=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],_s=$("share-sheet"),gw=_s[0],Me=_s[1],yw=_s[2],bw=gw({props:L({},Bn,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,i){this.$emit("select",t,i)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return vw.indexOf(t)!==-1?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,i=this.slots("title")||this.title,n=this.slots("description")||this.description;if(!(!i&&!n))return t("div",{class:Me("header")},[i&&t("h2",{class:Me("title")},[i]),n&&t("span",{class:Me("description")},[n])])},genOptions:function(t,i){var n=this,r=this.$createElement;return r("div",{class:Me("options",{border:i})},[t.map(function(a,s){return r("div",{attrs:{role:"button",tabindex:"0"},class:[Me("option"),a.className],on:{click:function(){n.onSelect(a,s)}}},[r("img",{attrs:{src:n.getIconURL(a.icon)},class:Me("icon")}),a.name&&r("span",{class:Me("name")},[a.name]),a.description&&r("span",{class:Me("option-description")},[a.description])])})])},genRows:function(){var t=this,i=this.options;return Array.isArray(i[0])?i.map(function(n,r){return t.genOptions(n,r!==0)}):this.genOptions(i)},genCancelText:function(){var t,i=this.$createElement,n=(t=this.cancelText)!=null?t:yw("cancel");if(n)return i("button",{attrs:{type:"button"},class:Me("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(_e,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Me(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),Mh=$("sidebar"),Sw=Mh[0],ww=Mh[1],Oh=Sw({mixins:[Ut("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:ww()},[this.slots()])}}),Lh=$("sidebar-item"),Cw=Lh[0],Is=Lh[1],Ah=Cw({mixins:[Ht("vanSidebar")],props:L({},Ke,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),ci(this.$router,this))}},render:function(){var t,i,n=arguments[0];return n("a",{class:Is({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:Is("text")},[(t=this.slots("title"))!=null?t:this.title,n(li,{attrs:{dot:this.dot,info:(i=this.badge)!=null?i:this.info},class:Is("info")})])])}}),Ph=$("skeleton"),xw=Ph[0],hn=Ph[1],Nh="100%",$w="60%";function Bh(e,t,i,n){if(!t.loading)return i.default&&i.default();function r(){if(t.title)return e("h3",{class:hn("title"),style:{width:st(t.titleWidth)}})}function a(){var o=[],l=t.rowWidth;function c(d){return l===Nh&&d===+t.row-1?$w:Array.isArray(l)?l[d]:l}for(var h=0;h<t.row;h++)o.push(e("div",{class:hn("row"),style:{width:st(c(h))}}));return o}function s(){if(t.avatar){var o=st(t.avatarSize);return e("div",{class:hn("avatar",t.avatarShape),style:{width:o,height:o}})}}return e("div",et([{class:hn({animate:t.animate,round:t.round})},lt(n)]),[s(),e("div",{class:hn("content")},[r(),a()])])}Bh.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:Nh}};var kw=xw(Bh),Tw={"zh-CN":{vanSku:{select:"\u8BF7\u9009\u62E9",selected:"\u5DF2\u9009",selectSku:"\u8BF7\u5148\u9009\u62E9\u5546\u54C1\u89C4\u683C",soldout:"\u5E93\u5B58\u4E0D\u8DB3",originPrice:"\u539F\u4EF7",minusTip:"\u81F3\u5C11\u9009\u62E9\u4E00\u4EF6",minusStartTip:function(t){return t+"\u4EF6\u8D77\u552E"},unavailable:"\u5546\u54C1\u5DF2\u7ECF\u65E0\u6CD5\u8D2D\u4E70\u5566",stock:"\u5269\u4F59",stockUnit:"\u4EF6",quotaTip:function(t){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6"},quotaUsedTip:function(t,i){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6\uFF0C\u4F60\u5DF2\u8D2D\u4E70"+i+"\u4EF6"}},vanSkuActions:{buy:"\u7ACB\u5373\u8D2D\u4E70",addCart:"\u52A0\u5165\u8D2D\u7269\u8F66"},vanSkuImgUploader:{oversize:function(t){return"\u6700\u5927\u53EF\u4E0A\u4F20\u56FE\u7247\u4E3A"+t+"MB\uFF0C\u8BF7\u5C1D\u8BD5\u538B\u7F29\u56FE\u7247\u5C3A\u5BF8"},fail:"\u4E0A\u4F20\u5931\u8D25",uploading:"\u4E0A\u4F20\u4E2D..."},vanSkuStepper:{quotaLimit:function(t){return"\u9650\u8D2D"+t+"\u4EF6"},quotaStart:function(t){return t+"\u4EF6\u8D77\u552E"},comma:"\uFF0C",num:"\u8D2D\u4E70\u6570\u91CF"},vanSkuMessages:{fill:"\u8BF7\u586B\u5199",upload:"\u8BF7\u4E0A\u4F20",imageLabel:"\u4EC5\u9650\u4E00\u5F20",invalid:{tel:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u6570\u5B57\u683C\u5F0F\u7559\u8A00",mobile:"\u624B\u673A\u53F7\u957F\u5EA6\u4E3A6-20\u4F4D\u6570\u5B57",email:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u90AE\u7BB1",id_no:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"},placeholder:{id_no:"\u8BF7\u586B\u5199\u8EAB\u4EFD\u8BC1\u53F7",text:"\u8BF7\u586B\u5199\u7559\u8A00",tel:"\u8BF7\u586B\u5199\u6570\u5B57",email:"\u8BF7\u586B\u5199\u90AE\u7BB1",date:"\u8BF7\u9009\u62E9\u65E5\u671F",time:"\u8BF7\u9009\u62E9\u65F6\u95F4",textarea:"\u8BF7\u586B\u5199\u7559\u8A00",mobile:"\u8BF7\u586B\u5199\u624B\u673A\u53F7"}},vanSkuRow:{multiple:"\u53EF\u591A\u9009"},vanSkuDatetimeField:{title:{date:"\u9009\u62E9\u5E74\u6708\u65E5",time:"\u9009\u62E9\u65F6\u95F4",datetime:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4"},format:{year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u65F6",minute:"\u5206"}}}},gr={QUOTA_LIMIT:0,STOCK_LIMIT:1},pi="",_w={LIMIT_TYPE:gr,UNSELECTED_SKU_VALUE_ID:pi},Fh=function(t){var i={};return t.forEach(function(n){i[n.k_s]=n.v}),i},Iw=function(t){var i={};return t.forEach(function(n){var r={};n.v.forEach(function(a){r[a.id]=a}),i[n.k_id]=r}),i},Rh=function(t,i){var n=Object.keys(i).filter(function(r){return i[r]!==pi});return t.length===n.length},Vh=function(t,i){var n=t.filter(function(r){return Object.keys(i).every(function(a){return String(r[a])===String(i[a])})});return n[0]},zh=function(t,i){var n=Fh(t);return Object.keys(i).reduce(function(r,a){var s=n[a]||[],o=i[a];if(o!==pi&&s.length>0){var l=s.filter(function(c){return c.id===o})[0];l&&r.push(l)}return r},[])},Es=function(t,i,n){var r,a=n.key,s=n.valueId,o=L({},i,(r={},r[a]=s,r)),l=Object.keys(o).filter(function(d){return o[d]!==pi}),c=t.filter(function(d){return l.every(function(u){return String(o[u])===String(d[u])})}),h=c.reduce(function(d,u){return d+=u.stock_num,d},0);return h>0},jh=function(t,i){var n=Iw(t);return Object.keys(i).reduce(function(r,a){return i[a].forEach(function(s){r.push(L({},n[a][s]))}),r},[])},Hh=function(t,i){var n=[];return(t||[]).forEach(function(r){if(i[r.k_id]&&i[r.k_id].length>0){var a=[];r.v.forEach(function(s){i[r.k_id].indexOf(s.id)>-1&&a.push(L({},s))}),n.push(L({},r,{v:a}))}}),n},Ew={normalizeSkuTree:Fh,getSkuComb:Vh,getSelectedSkuValues:zh,isAllSelected:Rh,isSkuChoosable:Es,getSelectedPropValues:jh,getSelectedProperties:Hh},Uh=$("sku-header"),Dw=Uh[0],Ds=Uh[1];function Mw(e,t){var i;return e.tree.some(function(n){var r=t[n.k_s];if(r&&n.v){var a=n.v.filter(function(o){return o.id===r})[0]||{},s=a.previewImgUrl||a.imgUrl||a.img_url;if(s)return i=L({},a,{ks:n.k_s,imgUrl:s}),!0}return!1}),i}function Kh(e,t,i,n){var r,a=t.sku,s=t.goods,o=t.skuEventBus,l=t.selectedSku,c=t.showHeaderImage,h=c===void 0?!0:c,d=Mw(a,l),u=d?d.imgUrl:s.picture,f=function(){o.$emit("sku:previewImage",d)};return e("div",et([{class:[Ds(),Ji]},lt(n)]),[h&&e(Mi,{attrs:{fit:"cover",src:u},class:Ds("img-wrap"),on:{click:f}},[(r=i["sku-header-image-extra"])==null?void 0:r.call(i)]),e("div",{class:Ds("goods-info")},[i.default==null?void 0:i.default()])])}Kh.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Wh=Dw(Kh),Yh=$("sku-header-item"),Ow=Yh[0],Lw=Yh[1];function Aw(e,t,i,n){return e("div",et([{class:Lw()},lt(n)]),[i.default&&i.default()])}var yr=Ow(Aw),Ms=$("sku-row"),Pw=Ms[0],be=Ms[1],Nw=Ms[2],Os=Pw({mixins:[Ut("vanSkuRows"),he(function(e){this.scrollable&&this.$refs.scroller&&e(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,i=t.scroller,n=t.row,r=n.offsetWidth-i.offsetWidth;this.progress=i.scrollLeft/r},genTitle:function(){var t=this.$createElement;return t("div",{class:be("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:be("title-multiple")},["\uFF08",Nw("multiple"),"\uFF09"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var i={transform:"translate3d("+this.progress*20+"px, 0, 0)"};return t("div",{class:be("indicator-wrapper")},[t("div",{class:be("indicator")},[t("div",{class:be("indicator-slider"),style:i})])])}},genContent:function(){var t=this.$createElement,i=this.slots();if(this.skuRow.largeImageMode){var n=[],r=[];return i.forEach(function(a,s){var o=Math.floor(s/3)%2===0?n:r;o.push(a)}),t("div",{class:be("scroller"),ref:"scroller"},[t("div",{class:be("row"),ref:"row"},[n]),r.length?t("div",{class:be("row")},[r]):null])}return i},centerItem:function(t){if(!(!this.skuRow.largeImageMode||!t)){var i=this.children,n=i===void 0?[]:i,r=this.$refs,a=r.scroller,s=r.row,o=n.find(function(h){return+h.skuValue.id==+t});if(a&&s&&o&&o.$el){var l=o.$el,c=l.offsetLeft-(a.offsetWidth-l.offsetWidth)/2;a.scrollLeft=c}}}},render:function(){var t=arguments[0];return t("div",{class:[be(),Ji]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),Bw=$("sku-row-item"),Fw=Bw[0],Xh=Fw({mixins:[Ht("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return this.disableSoldoutSku?Es(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",L({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var i=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",L({},i,{ks:n,imgUrl:i.imgUrl||i.img_url}))},genImage:function(t){var i=this.$createElement;if(this.imgUrl)return i(Mi,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],i=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?be("image-item"):be("item");return t("span",{class:[n,i?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(Z,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),Rw=$("sku-row-prop-item"),Vw=Rw[0],Gh=Vw({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean,disabled:Boolean},computed:{choosed:function(){var t=this.selectedProp,i=this.skuKeyStr,n=this.skuValue;return t&&t[i]?t[i].indexOf(n.id)>-1:!1}},methods:{onSelect:function(){this.disabled||this.skuEventBus.$emit("sku:propSelect",L({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed},{"van-sku-row__item--disabled":this.disabled}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),qh=$("stepper"),zw=qh[0],br=qh[1],jw=600,Hw=200;function Sr(e,t){return String(e)===String(t)}var Jh=zw({mixins:[We],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,i=(t=this.value)!=null?t:this.defaultValue,n=this.format(i);return Sr(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=st(this.inputWidth)),this.buttonSize&&(t.height=st(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){Sr(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);Sr(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return sc(String(t),!this.integer)},format:function(t){return this.allowEmpty&&t===""||(t=this.formatNumber(t),t=t===""?0:+t,t=ua(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),nt(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var i=t.target.value,n=this.formatNumber(i);if(nt(this.decimalLength)&&n.indexOf(".")!==-1){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}Sr(i,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"]){this.$emit("overlimit",t);return}var i=t==="minus"?-this.step:+this.step,n=this.format(oc(+this.currentValue,i));this.emitChange(n),this.$emit(t)},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var i=this.format(t.target.value);t.target.value=i,this.emitChange(i),this.$emit("blur",t),yc()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},Hw)},onTouchStart:function(){var t=this;!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},jw))},onTouchEnd:function(t){!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress&&It(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,i=arguments[0],n=function(a){return{on:{click:function(o){o.preventDefault(),t.type=a,t.onChange()},touchstart:function(){t.type=a,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return i("div",{class:br([this.theme])},[i("button",et([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:br("minus",{disabled:this.minusDisabled})},n("minus")])),i("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:br("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),i("button",et([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:br("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),Zh=$("sku-stepper"),Uw=Zh[0],wr=Zh[2],Kw=gr.QUOTA_LIMIT,Qh=gr.STOCK_LIMIT,td=Uw({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Qh}},watch:{currentNum:function(t){var i=parseInt(t,10);i>=this.stepperMinLimit&&i<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",i)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t=this.quota-this.quotaUsed,i;return this.quota>0&&t<=this.stock?(i=t<0?0:t,this.limitType=Kw):(i=this.stock,this.limitType=Qh),i},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,i=t.quotaText,n=t.hideQuotaText;if(n)return"";var r="";if(i)r=i;else{var a=[];this.startSaleNum>1&&a.push(wr("quotaStart",this.startSaleNum)),this.quota>0&&a.push(wr("quotaLimit",this.quota)),r=a.join(wr("comma"))}return r}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var i=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(i),this.$emit("change",i)},checkState:function(t,i){this.currentNum<t||t>i?this.currentNum=t:this.currentNum>i&&(this.currentNum=i),this.skuEventBus.$emit("sku:stepperState",{valid:t<=i,min:t,max:i,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,i=arguments[0];return i("div",{class:"van-sku-stepper-stock"},[i("div",{class:"van-sku__stepper-title"},[this.stepperTitle||wr("num")]),i(Jh,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(r){t.currentNum=r}}}),!this.hideQuotaText&&this.quotaText&&i("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function Ww(e){var t=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return t.test(e.trim())}function ed(e){return Array.isArray(e)?e:[e]}function id(e,t){return new Promise(function(i){if(t==="file"){i(null);return}var n=new FileReader;n.onload=function(r){i(r.target.result)},t==="dataUrl"?n.readAsDataURL(e):t==="text"&&n.readAsText(e)})}function nd(e,t){return ed(e).some(function(i){return i?Ti(t)?t(i):i.size>t:!1})}var Yw=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Xw(e){return Yw.test(e)}function rd(e){return e.isImage?!0:e.file&&e.file.type?e.file.type.indexOf("image")===0:e.url?Xw(e.url):e.content?e.content.indexOf("data:image")===0:!1}var ad=$("uploader"),Gw=ad[0],xt=ad[1],sd=Gw({inheritAttrs:!1,mixins:[We],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return st(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach(function(t){return URL.revokeObjectURL(t)})},methods:{getDetail:function(t){return t===void 0&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var i=this,n=t.target.files;if(!(this.disabled||!n.length)){if(n=n.length===1?n[0]:[].slice.call(n),this.beforeRead){var r=this.beforeRead(n,this.getDetail());if(!r){this.resetInput();return}if(An(r)){r.then(function(a){a?i.readFile(a):i.readFile(n)}).catch(this.resetInput);return}}this.readFile(n)}},readFile:function(t){var i=this,n=nd(t,this.maxSize);if(Array.isArray(t)){var r=this.maxCount-this.fileList.length;t.length>r&&(t=t.slice(0,r)),Promise.all(t.map(function(a){return id(a,i.resultType)})).then(function(a){var s=t.map(function(o,l){var c={file:o,status:"",message:""};return a[l]&&(c.content=a[l]),c});i.onAfterRead(s,n)})}else id(t,this.resultType).then(function(a){var s={file:t,status:"",message:""};a&&(s.content=a),i.onAfterRead(s,n)})},onAfterRead:function(t,i){var n=this;this.resetInput();var r=t;if(i){var a=t;Array.isArray(t)?(a=[],r=[],t.forEach(function(o){o.file&&(nd(o.file,n.maxSize)?a.push(o):r.push(o))})):r=null,this.$emit("oversize",a,this.getDetail())}var s=Array.isArray(r)?Boolean(r.length):Boolean(r);s&&(this.$emit("input",[].concat(this.fileList,ed(r))),this.afterRead&&this.afterRead(r,this.getDetail()))},onDelete:function(t,i){var n,r=this,a=(n=t.beforeDelete)!=null?n:this.beforeDelete;if(a){var s=a(t,this.getDetail(i));if(!s)return;if(An(s)){s.then(function(){r.deleteFile(t,i)}).catch(Gi);return}}this.deleteFile(t,i)},deleteFile:function(t,i){var n=this.fileList.slice(0);n.splice(i,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(i))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var i=this;if(!!this.previewFullImage){var n=this.fileList.filter(function(a){return rd(a)}),r=n.map(function(a){return a.file&&!a.url&&a.status!=="failed"&&(a.url=URL.createObjectURL(a.file),i.urls.push(a.url)),a.url});this.imagePreview=ds(L({images:r,startPosition:n.indexOf(t),onClose:function(){i.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var i=this.$createElement,n=t.status,r=t.message;if(n==="uploading"||n==="failed"){var a=n==="failed"?i(Z,{attrs:{name:"close"},class:xt("mask-icon")}):i(de,{class:xt("loading")}),s=nt(r)&&r!=="";return i("div",{class:xt("mask")},[a,s&&i("div",{class:xt("mask-message")},[r])])}},genPreviewItem:function(t,i){var n,r=this,a,s,o=this.$createElement,l=(n=t.deletable)!=null?n:this.deletable,c=t.status!=="uploading"&&l,h=c&&o("div",{class:xt("preview-delete"),on:{click:function(w){w.stopPropagation(),r.onDelete(t,i)}}},[o(Z,{attrs:{name:"cross"},class:xt("preview-delete-icon")})]),d=this.slots("preview-cover",L({index:i},t)),u=d&&o("div",{class:xt("preview-cover")},[d]),f=(a=t.previewSize)!=null?a:this.previewSize,p=(s=t.imageFit)!=null?s:this.imageFit,m=rd(t)?o(Mi,{attrs:{fit:p,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:xt("preview-image"),on:{click:function(){r.onPreviewImage(t)}}},[u]):o("div",{class:xt("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(Z,{class:xt("file-icon"),attrs:{name:"description"}}),o("div",{class:[xt("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),u]);return o("div",{class:xt("preview"),on:{click:function(){r.$emit("click-preview",t,r.getDetail(i))}}},[m,this.genPreviewMask(t),h])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)){var i=this.slots(),n=this.readonly?null:t("input",{attrs:L({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:xt("input"),on:{change:this.onChange}});if(i)return t("div",{class:xt("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[i,n]);var r;if(this.previewSize){var a=this.previewSizeWithUnit;r={width:a,height:a}}return t("div",{directives:[{name:"show",value:this.showUpload}],class:xt("upload",{readonly:this.readonly}),style:r,on:{click:this.onClickUpload}},[t(Z,{attrs:{name:this.uploadIcon},class:xt("upload-icon")}),this.uploadText&&t("span",{class:xt("upload-text")},[this.uploadText]),n])}}},render:function(){var t=arguments[0];return t("div",{class:xt()},[t("div",{class:xt("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),od=$("sku-img-uploader"),qw=od[0],Ls=od[2],Jw=qw({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){t?this.fileList=[{url:t,isImage:!0}]:this.fileList=[]}},methods:{afterReadFile:function(t){var i=this;t.status="uploading",t.message=Ls("uploading"),this.uploadImg(t.file,t.content).then(function(n){t.status="done",i.$emit("input",n)}).catch(function(){t.status="failed",t.message=Ls("fail")})},onOversize:function(){this.$toast(Ls("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var t=this;this.customUpload&&this.customUpload().then(function(i){t.fileList.push({url:i}),t.$emit("input",i)})}},render:function(){var t=this,i=arguments[0];return i(sd,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:this.maxSize*1024*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:t.fileList,callback:function(r){t.fileList=r}}})}});function Zw(e){return e?new Date(e.replace(/-/g,"/")):null}function Qw(e,t){if(t===void 0&&(t="date"),!e)return"";var i=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),a=i+"-"+gt(n)+"-"+gt(r);if(t==="datetime"){var s=e.getHours(),o=e.getMinutes();a+=" "+gt(s)+":"+gt(o)}return a}var ld=$("sku-datetime-field"),tC=ld[0],cd=ld[2],eC=tC({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:this.type==="time"?"":new Date,minDate:new Date(new Date().getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=Zw(t)||new Date;break}}},computed:{title:function(){return cd("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var i=t;this.type!=="time"&&(i=Qw(t,this.type)),this.$emit("input",i),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,i){var n=cd("format."+t);return""+i+n}},render:function(){var t=this,i=arguments[0];return i(ie,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[i(_e,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(r){t.showDatePicker=r}}},[i(Pu,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),As=$("sku-messages"),iC=As[0],Pi=As[1],mi=As[2],ud=iC({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var i=this.messageConfig,n=i.initialMessages,r=n===void 0?{}:n;return(t||[]).map(function(a){return{value:r[a.name]||""}})},getType:function(t){return+t.multiple==1?"textarea":t.type==="id_no"?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach(function(i,n){t["message_"+n]=i.value}),t},getCartMessages:function(){var t=this,i={};return this.messageValues.forEach(function(n,r){var a=t.messages[r];i[a.name]=n.value}),i},getPlaceholder:function(t){var i=+t.multiple==1?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[i]||mi("placeholder."+i)},validateMessages:function(){for(var t=this.messageValues,i=0;i<t.length;i++){var n=t[i].value,r=this.messages[i];if(n===""){if(String(r.required)==="1"){var a=mi(r.type==="image"?"upload":"fill");return a+r.name}}else{if(r.type==="tel"&&!ca(n))return mi("invalid.tel");if(r.type==="mobile"&&!/^\d{6,20}$/.test(n))return mi("invalid.mobile");if(r.type==="email"&&!Ww(n))return mi("invalid.email");if(r.type==="id_no"&&(n.length<15||n.length>18))return mi("invalid.id_no")}}},getFormatter:function(t){return function(n){return t.type==="mobile"||t.type==="tel"?n.replace(/[^\d.]/g,""):n}},getExtraDesc:function(t){var i=this.$createElement,n=t.extraDesc;if(n)return i("div",{class:Pi("extra-message")},[n])},genMessage:function(t,i){var n=this,r=this.$createElement;if(t.type==="image")return r(Ft,{key:this.goodsId+"-"+i,attrs:{title:t.name,required:String(t.required)==="1",valueClass:Pi("image-cell-value")},class:Pi("image-cell")},[r(Jw,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),r("div",{class:Pi("image-cell-label")},[mi("imageLabel")])]);var a=["date","time"].indexOf(t.type)>-1;return a?r(eC,{attrs:{label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}):r("div",{class:Pi("cell-block")},[r(ie,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t),border:!1},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),this.getExtraDesc(t)])}},render:function(){var t=arguments[0];return t("div",{class:Pi()},[this.messages.map(this.genMessage)])}}),Ps=$("sku-actions"),nC=Ps[0],rC=Ps[1],hd=Ps[2];function dd(e,t,i,n){var r=function(s){return function(){t.skuEventBus.$emit(s)}};return e("div",et([{class:rC()},lt(n)]),[t.showAddCartBtn&&e(At,{attrs:{size:"large",type:"warning",text:t.addCartText||hd("addCart")},on:{click:r("sku:addCart")}}),e(At,{attrs:{size:"large",type:"danger",text:t.buyText||hd("buy")},on:{click:r("sku:buy")}})])}dd.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var fd=nC(dd),Ns=$("sku"),aC=Ns[0],sC=Ns[1],se=Ns[2],oC=gr.QUOTA_LIMIT,Se=aC({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var t=window.innerHeight-this.bodyOffsetTop;return{maxHeight:t+"px"}}},isSkuCombSelected:function(){var t=this;return this.hasSku&&!Rh(this.skuTree,this.selectedSku)?!1:!this.propList.filter(function(i){return i.is_necessary!==!1}).some(function(i){return(t.selectedProp[i.k_id]||[]).length===0})},isSkuEmpty:function(){return Object.keys(this.sku).length===0},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(this.hasSku?t=Vh(this.skuList,this.selectedSku):t={id:this.sku.collection_id,price:Math.round(this.sku.price*100),stock_num:this.sku.stock_num},t&&(t.properties=Hh(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(i,n){return i+(n.price||0)},0))),t},selectedSkuValues:function(){return zh(this.skuTree,this.selectedSku)},selectedPropValues:function(){return jh(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(i){!i.v||i.v.forEach(function(n){var r=n.previewImgUrl||n.imgUrl||n.img_url;r&&t.indexOf(r)===-1&&t.push(r)})}),t},stock:function(){var t=this.customStepperConfig.stockNum;return t!==void 0?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,i=this.customStepperConfig.stockFormatter;return i?i(this.stock):[se("stock")+" ",t("span",{class:sC("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+se("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var i=this.selectedSkuValues.concat(this.selectedPropValues);return se("selected")+" "+i.map(function(a){return a.name}).join(" ")}var n=this.skuTree.filter(function(a){return t.selectedSku[a.k_s]===pi}).map(function(a){return a.k}),r=this.propList.filter(function(a){return(t.selectedProp[a.k_id]||[]).length<1}).map(function(a){return a.k});return se("select")+" "+n.concat(r).join(" ")}},created:function(){var t=new _t.default;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,i=this.initialSku.selectedNum,n=i!=null?i:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach(function(s){t.selectedSku[s.k_s]=pi}),this.skuTree.forEach(function(s){var o=s.k_s,l=s.v.length===1?s.v[0].id:t.initialSku[o];l&&Es(t.skuList,t.selectedSku,{key:o,valueId:l})&&(t.selectedSku[o]=l)});var i=this.selectedSkuValues;i.length>0&&this.$nextTick(function(){t.$emit("sku-selected",{skuValue:i[i.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})}),this.selectedProp={};var n=this.initialSku.selectedProp,r=n===void 0?{}:n;this.propList.forEach(function(s){r[s.k_id]&&(t.selectedProp[s.k_id]=r[s.k_id])}),ug(this.selectedProp)&&this.propList.forEach(function(s){var o;if((s==null||(o=s.v)==null?void 0:o.length)>0){var l=s.v,c=s.k_id,h=l.some(function(u){return+u.price!=0});if(!h){var d=l.find(function(u){return u.text_status!==0});d&&(t.selectedProp[c]=[d.id])}}});var a=this.selectedPropValues;a.length>0&&this.$emit("sku-prop-selected",{propValue:a[a.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(this.selectedNum===0)return se("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return se("selectSku")},onSelect:function(t){var i,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?L({},this.selectedSku,(i={},i[t.skuKeyStr]=pi,i)):L({},this.selectedSku,(n={},n[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var i,n=this.selectedProp[t.skuKeyStr]||[],r=n.indexOf(t.id);r>-1?n.splice(r,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=L({},this.selectedProp,(i={},i[t.skuKeyStr]=n,i)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var i=this,n=this.imageList,r=0,a=n[0];t&&t.imgUrl&&(this.imageList.some(function(o,l){return o===t.imgUrl?(r=l,!0):!1}),a=t.imgUrl);var s=L({},t,{index:r,imageList:this.imageList,indexImage:a});this.$emit("open-preview",s),this.previewOnClickImage&&ds({images:this.imageList,startPosition:r,onClose:function(){i.$emit("close-preview",s)}})},onOverLimit:function(t){var i=t.action,n=t.limitType,r=t.quota,a=t.quotaUsed,s=this.customStepperConfig.handleOverLimit;if(s){s(t);return}i==="minus"?this.startSaleNum>1?wt(se("minusStartTip",this.startSaleNum)):wt(se("minusTip")):i==="plus"&&(n===oC?a>0?wt(se("quotaUsedTip",r,a)):wt(se("quotaTip",r)):wt(se("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:L({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var i=this.validateSku();i?wt(i):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach(function(i){var n=i.skuRow||{},r=n.k_s;i.centerItem(t.initialSku[r])})}},render:function(){var t=this,i=arguments[0];if(!this.isSkuEmpty){var n=this.sku,r=this.skuList,a=this.goods,s=this.price,o=this.lazyLoad,l=this.originPrice,c=this.skuEventBus,h=this.selectedSku,d=this.selectedProp,u=this.selectedNum,f=this.stepperTitle,p=this.selectedSkuComb,m=this.showHeaderImage,v=this.disableSoldoutSku,w={price:s,originPrice:l,selectedNum:u,skuEventBus:c,selectedSku:h,selectedSkuComb:p},x=function(z){return t.slots(z,w)},E=x("sku-header")||i(Wh,{attrs:{sku:n,goods:a,skuEventBus:c,selectedSku:h,showHeaderImage:m}},[i("template",{slot:"sku-header-image-extra"},[x("sku-header-image-extra")]),x("sku-header-price")||i("div",{class:"van-sku__goods-price"},[i("span",{class:"van-sku__price-symbol"},["\uFFE5"]),i("span",{class:"van-sku__price-num"},[s]),this.priceTag&&i("span",{class:"van-sku__price-tag"},[this.priceTag])]),x("sku-header-origin-price")||l&&i(yr,[se("originPrice")," \uFFE5",l]),!this.hideStock&&i(yr,[i("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&i(yr,[this.selectedText]),x("sku-header-extra")]),_=x("sku-group")||this.hasSkuOrAttr&&i("div",{class:this.skuGroupClass},[this.skuTree.map(function(R){return i(Os,{attrs:{skuRow:R},ref:"skuRows",refInFor:!0},[R.v.map(function(z){return i(Xh,{attrs:{skuList:r,lazyLoad:o,skuValue:z,skuKeyStr:R.k_s,selectedSku:h,skuEventBus:c,disableSoldoutSku:v,largeImageMode:R.largeImageMode}})})])}),this.propList.map(function(R){return i(Os,{attrs:{skuRow:R}},[R.v.map(function(z){return i(Gh,{attrs:{skuValue:z,skuKeyStr:R.k_id+"",selectedProp:d,skuEventBus:c,multiple:R.is_multiple,disabled:z.text_status===0}})})])})]),T=x("sku-stepper")||i(td,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:c,selectedNum:u,stepperTitle:f,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(z){t.$emit("stepper-change",z)}}}),O=x("sku-messages")||i(ud,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),X=x("sku-actions")||i(fd,{attrs:{buyText:this.buyText,skuEventBus:c,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return i(_e,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(z){t.show=z}}},[E,i("div",{class:"van-sku-body",style:this.bodyStyle},[x("sku-body-top"),_,x("extra-sku-group"),T,x("before-sku-messages"),O,x("after-sku-messages")]),x("sku-actions-top"),X])}}});la.add(Tw),Se.SkuActions=fd,Se.SkuHeader=Wh,Se.SkuHeaderItem=yr,Se.SkuMessages=ud,Se.SkuStepper=td,Se.SkuRow=Os,Se.SkuRowItem=Xh,Se.SkuRowPropItem=Gh,Se.skuHelper=Ew,Se.skuConstants=_w;var pd=$("slider"),lC=pd[0],Cr=pd[1],md=function(t,i){return JSON.stringify(t)===JSON.stringify(i)},cC=lC({mixins:[ee,We],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){this.dragStatus==="start"&&this.$emit("drag-start"),It(t,!0),this.touchMove(t),this.dragStatus="draging";var i=this.$el.getBoundingClientRect(),n=this.vertical?this.deltaY:this.deltaX,r=this.vertical?i.height:i.width,a=n/r*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+a:this.currentValue=this.startValue+a,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||(this.dragStatus==="draging"&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var i=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-i.top:t.clientX-i.left,r=this.vertical?i.height:i.width,a=+this.min+n/r*this.scope;if(this.range){var s=this.value,o=s[0],l=s[1],c=(o+l)/2;a<=c?o=a:l=a,a=[o,l]}this.startValue=this.value,this.updateValue(a,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=Zi(t),t.reverse()):t},updateValue:function(t,i){this.range?t=this.handleOverlap(t).map(this.format):t=this.format(t),md(t,this.value)||this.$emit("input",t),i&&!md(t,this.startValue)&&this.$emit("change",t)},format:function(t){var i=+this.min,n=+this.max,r=+this.step;t=Lt(t,i,n);var a=Math.round((t-i)/r)*r;return oc(i,a)}},render:function(){var t,i=this,n,r=arguments[0],a=this.vertical,s=a?"height":"width",o=a?"width":"height",l=(t={background:this.inactiveColor},t[o]=st(this.barHeight),t),c=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[1]-p[0])*100/w+"%":(p-m)*100/w+"%"},h=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[0]-m)*100/w+"%":null},d=(n={},n[s]=c(),n.left=this.vertical?null:h(),n.top=this.vertical?h():null,n.background=this.activeColor,n);this.dragStatus&&(d.transition="none");var u=function(p){var m=["left","right"],v=typeof p=="number",w=v?i.value[p]:i.value,x=function(){return v?"button-wrapper-"+m[p]:"button-wrapper"},E=function(){return v?"wrapper"+p:"wrapper"},_=function(){if(v){var O=i.slots(p===0?"left-button":"right-button",{value:w});if(O)return O}return i.slots("button")?i.slots("button"):r("div",{class:Cr("button"),style:i.buttonStyle})};return r("div",{ref:E(),attrs:{role:"slider",tabindex:i.disabled?-1:0,"aria-valuemin":i.min,"aria-valuenow":i.value,"aria-valuemax":i.max,"aria-orientation":i.vertical?"vertical":"horizontal"},class:Cr(x()),on:{touchstart:function(){v&&(i.index=p)},click:function(O){return O.stopPropagation()}}},[_()])};return r("div",{style:l,class:Cr({disabled:this.disabled,vertical:a}),on:{click:this.onClick}},[r("div",{class:Cr("bar"),style:d},[this.range?[u(0),u(1)]:u()])])}}),vd=$("step"),uC=vd[0],Qe=vd[1],hC=uC({mixins:[Ht("vanSteps")],computed:{status:function(){if(this.index<this.parent.active)return"finish";if(this.index===+this.parent.active)return"process"},active:function(){return this.status==="process"},lineStyle:function(){var t=this.parent,i=t.activeColor,n=t.inactiveColor,r=t.center,a=t.direction,s={background:this.status==="finish"?i:n};return r&&a==="vertical"&&(s.top="50%"),s},circleContainerStyle:function(){if(this.parent.center&&this.parent.direction==="vertical")return{top:"50%"}},titleStyle:function(){if(this.active)return{color:this.parent.activeColor};if(!this.status)return{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,i=this.parent,n=i.activeIcon,r=i.iconPrefix,a=i.activeColor,s=i.finishIcon,o=i.inactiveIcon;if(this.active)return this.slots("active-icon")||t(Z,{class:Qe("icon","active"),attrs:{name:n,color:a,classPrefix:r}});var l=this.slots("finish-icon");if(this.status==="finish"&&(s||l))return l||t(Z,{class:Qe("icon","finish"),attrs:{name:s,color:a,classPrefix:r}});var c=this.slots("inactive-icon");return o||c?c||t(Z,{class:Qe("icon"),attrs:{name:o,classPrefix:r}}):t("i",{class:Qe("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,i=arguments[0],n=this.status,r=this.active,a=this.parent.direction;return i("div",{class:[pe,Qe([a,(t={},t[n]=n,t)])]},[i("div",{class:Qe("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),i("div",{class:Qe("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),i("div",{class:Qe("line"),style:this.lineStyle})])}}),gd=$("steps"),dC=gd[0],yd=gd[1],fC=dC({mixins:[Ut("vanSteps")],props:{center:Boolean,iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:yd([this.direction])},[t("div",{class:yd("items")},[this.slots()])])}}),Bs=$("submit-bar"),pC=Bs[0],Oe=Bs[1],mC=Bs[2];function bd(e,t,i,n){var r=t.tip,a=t.price,s=t.tipIcon;function o(){if(typeof a=="number"){var c=(a/100).toFixed(t.decimalLength).split("."),h=t.decimalLength?"."+c[1]:"";return e("div",{style:{textAlign:t.textAlign?t.textAlign:""},class:Oe("text")},[e("span",[t.label||mC("label")]),e("span",{class:Oe("price")},[t.currency,e("span",{class:Oe("price","integer")},[c[0]]),h]),t.suffixLabel&&e("span",{class:Oe("suffix-label")},[t.suffixLabel])])}}function l(){if(i.tip||r)return e("div",{class:Oe("tip")},[s&&e(Z,{class:Oe("tip-icon"),attrs:{name:s}}),r&&e("span",{class:Oe("tip-text")},[r]),i.tip&&i.tip()])}return e("div",et([{class:Oe({unfit:!t.safeAreaInsetBottom})},lt(n)]),[i.top&&i.top(),l(),e("div",{class:Oe("bar")},[i.default&&i.default(),o(),i.button?i.button():e(At,{attrs:{round:!0,type:t.buttonType,text:t.loading?"":t.buttonText,color:t.buttonColor,loading:t.loading,disabled:t.disabled},class:Oe("button",t.buttonType),on:{click:function(){at(n,"submit")}}})])])}bd.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"\xA5"},buttonType:{type:String,default:"danger"}};var vC=pC(bd),Sd=$("swipe-cell"),gC=Sd[0],xr=Sd[1],wd=.15,yC=gC({mixins:[ee,ls({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){if(this.$refs[t]){var i=this.$refs[t].getBoundingClientRect();return i.width}return 0},open:function(t){var i=t==="left"?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=i,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){if(!this.disabled&&(this.touchMove(t),this.direction==="horizontal")){this.dragging=!0,this.lockClick=!0;var i=!this.opened||this.deltaX*this.startOffset<0;i&&It(t,this.stopPropagation),this.offset=Lt(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){t.lockClick=!1},0))},toggle:function(t){var i=Math.abs(this.offset),n=this.opened?1-wd:wd,r=this.computedLeftWidth,a=this.computedRightWidth;a&&t==="right"&&i>a*n?this.open("right"):r&&t==="left"&&i>r*n?this.open("left"):this.close()},onClick:function(t){t===void 0&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,i){var n=this;return function(r){i&&r.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,i=this.slots("left");if(i)return t("div",{ref:"left",class:xr("left"),on:{click:this.getClickHandler("left",!0)}},[i])},genRightPart:function(){var t=this.$createElement,i=this.slots("right");if(i)return t("div",{ref:"right",class:xr("right"),on:{click:this.getClickHandler("right",!0)}},[i])}},render:function(){var t=arguments[0],i={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:xr(),on:{click:this.getClickHandler("cell")}},[t("div",{class:xr("wrapper"),style:i},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Cd=$("switch-cell"),bC=Cd[0],SC=Cd[1];function xd(e,t,i,n){return e(Ft,et([{attrs:{center:!0,size:t.cellSize,title:t.title,border:t.border},class:SC([t.cellSize])},lt(n)]),[e(Xn,{props:L({},t),on:L({},n.listeners)})])}xd.props=L({},Mc,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var wC=bC(xd),$d=$("tabbar"),CC=$d[0],kd=$d[1],Fs=CC({mixins:[Ut("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return this.safeAreaInsetBottom!==null?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){var t=this;if(this.placeholder&&this.fixed){var i=function(){t.height=t.$refs.tabbar.getBoundingClientRect().height};i(),setTimeout(i,100)}},methods:{setActiveItem:function(){var t=this;this.children.forEach(function(i,n){i.nameMatched=i.name===t.value||n===t.value})},triggerChange:function(t,i){var n=this;Qc({interceptor:this.beforeChange,args:[t],done:function(){n.$emit("input",t),n.$emit("change",t),i()}})},genTabbar:function(){var t,i=this.$createElement;return i("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[zn]=this.border,t),kd({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:kd("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),Td=$("tabbar-item"),xC=Td[0],Rs=Td[1],Vs=xC({mixins:[Ht("vanTabbar")],props:L({},Ke,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{nameMatched:!1}},computed:{active:function(){var t=this.parent.route;if(t&&"$route"in this){var i=this.to,n=this.$route,r=ue(i)?i:{path:i};return!!n.matched.find(function(a){var s=a.path===""?"/":a.path,o=r.path===s,l=nt(r.name)&&r.name===a.name;return o||l})}return this.nameMatched}},methods:{onClick:function(t){var i=this;this.active||this.parent.triggerChange(this.name||this.index,function(){ci(i.$router,i)}),this.$emit("click",t)},genIcon:function(){var t=this.$createElement,i=this.slots("icon",{active:this.active});if(i)return i;if(this.icon)return t(Z,{attrs:{name:this.icon,classPrefix:this.iconPrefix}})}},render:function(){var t,i=arguments[0],n=this.active,r=this.parent[n?"activeColor":"inactiveColor"];return i("div",{class:Rs({active:n}),style:{color:r},on:{click:this.onClick}},[i("div",{class:Rs("icon")},[this.genIcon(),i(li,{attrs:{dot:this.dot,info:(t=this.badge)!=null?t:this.info}})]),i("div",{class:Rs("text")},[this.slots("default",{active:n})])])}}),_d=$("tree-select"),$C=_d[0],Ni=_d[1];function Id(e,t,i,n){var r=t.items,a=t.height,s=t.activeId,o=t.selectedIcon,l=t.mainActiveIndex,c=r[+l]||{},h=c.children||[],d=Array.isArray(s);function u(m){return d?s.indexOf(m)!==-1:s===m}var f=r.map(function(m){var v;return e(Ah,{attrs:{dot:m.dot,info:(v=m.badge)!=null?v:m.info,title:m.text,disabled:m.disabled},class:[Ni("nav-item"),m.className]})});function p(){return i.content?i.content():h.map(function(m){return e("div",{key:m.id,class:["van-ellipsis",Ni("item",{active:u(m.id),disabled:m.disabled})],on:{click:function(){if(!m.disabled){var w=m.id;if(d){w=s.slice();var x=w.indexOf(m.id);x!==-1?w.splice(x,1):w.length<t.max&&w.push(m.id)}at(n,"update:active-id",w),at(n,"click-item",m),at(n,"itemclick",m)}}}},[m.text,u(m.id)&&e(Z,{attrs:{name:o},class:Ni("selected")})])})}return e("div",et([{class:Ni(),style:{height:st(a)}},lt(n)]),[e(Oh,{class:Ni("nav"),attrs:{activeKey:l},on:{change:function(v){at(n,"update:main-active-index",v),at(n,"click-nav",v),at(n,"navclick",v)}}},[f]),e("div",{class:Ni("content")},[p()])])}Id.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var kC=$C(Id);function TC(e){var t=[Fg,wy,My,pc,Ly,At,Xy,Jy,hb,Ft,cu,hu,gb,wb,$b,_b,Db,Ob,Ab,Bb,Hb,is,Gb,Zb,Pu,ft,oS,cS,hS,mS,ie,yS,Ic,Ta,SS,xS,kS,Z,Mi,ds,PS,FS,li,zS,de,la,HS,KS,ae,QS,zl,e0,n0,a0,xa,tw,_e,iw,sw,Aa,La,cw,dw,mw,bw,Oh,Ah,kw,Se,cC,hC,Jh,fC,iu,vC,Yu,yC,Gu,Xn,wC,Zn,Fs,Vs,Ua,qn,wt,kC,sd];t.forEach(function(i){i.install?e.use(i):i.name&&e.component(i.name,i)})}typeof window!="undefined"&&window.Vue&&TC(window.Vue);const zs=location.pathname.includes("scyxweb");function _C(e){return M.axios.get(`${location.protocol}//${location.host}${zs?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,{params:e})}function IC(e){return M.axios.post(`${location.protocol}//${location.host}${zs?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,e)}function Ed(){return console.log("getUserDefaultUrl begin"),M.axios.get(`${location.protocol}//${location.host}${zs?"/scyxgateway":""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`)}var EC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-login"},[i("div",{staticClass:"ind-login-con"},[i("div",{staticClass:"ind-panel"},[i("div",{staticClass:"ind-panel-title"},[e._v("\u6B22\u8FCE\u767B\u5F55")]),i("LoginForm",{ref:"login",attrs:{msg:e.msg,loading:e.loading},on:{"on-success-valid":e.handleSubmit}})],1)])])},DC=[];const MC={name:"IndMLogin",components:{LoginForm:jv},data(){return{loading:!1,msg:""}},mounted(){M.clearSessionStorage();let e=this.$store.getters.getTheme;wi(e)},methods:{...pl(["handleLogin"]),async handleSubmit({userName:e,password:t,validCodeInput:i,validCodeId:n}){this.msg="",this.loading=!0;try{const r=await this.handleLogin({userName:e,password:t,validCodeId:n,validCodeInput:i});r?r.startsWith("http://")||r.startsWith("https://")?location.href=r:this.$router.push(r,()=>{this.loading=!1}):(Ed().then(a=>{location.href=a.data||"/hbwebchat/scyxweb/ind-mobile/workBench"}),this.$router.push({name:Te.homeRouteName},()=>{this.loading=!1}))}catch(r){this.msg=r.msg,this.loading=!1}},getCryptorPassword(e,t){return M.cryptor.encryptForLogin(M.cryptor.encryptForLogin(e,"sm3",!0)+t,"sm3",!1)}}},Dd={};var OC=Y(MC,EC,DC,!1,LC,null,null,null);function LC(e){for(let t in Dd)this[t]=Dd[t]}var js=function(){return OC.exports}(),AC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-search",{attrs:{"show-action":e.showFilter,placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:function(n){return e.$emit("doSearch",e.searchVal)}},scopedSlots:e._u([{key:"action",fn:function(){return[i("div",{class:["toggle-condition",e.isFiltering?"active":""],on:{click:function(n){return e.$emit("showCondition")}}})]},proxy:!0}]),model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}})},PC=[];const NC={props:{value:String,showFilter:Boolean,isFiltering:Boolean},data(){return{searchVal:""}},created(){this.searchVal=this.value},watch:{searchVal(){this.$emit("input",this.searchVal)}},methods:{}},Md={};var BC=Y(NC,AC,PC,!1,FC,null,null,null);function FC(e){for(let t in Md)this[t]=Md[t]}var RC=function(){return BC.exports}(),VC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-condition-bar"},e._l(e.searchFormFields,function(n,r){return i("div",{key:"item"+r,staticClass:"ind-mobile-condition-item"},[e._v(" "+e._s(e.searchForm[n.formKey]||n.title)+" ")])}),0)},zC=[];const jC={props:{searchForm:Object,searchFormFields:Array}},Od={};var HC=Y(jC,VC,zC,!1,UC,null,null,null);function UC(e){for(let t in Od)this[t]=Od[t]}var KC=function(){return HC.exports}(),WC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-search ind-flex-no-shrink"},[i("SearchTop",{attrs:{value:e.searchVal,isFiltering:e.isFiltering,showFilter:e.showFilter},on:{input:function(n){return e.$emit("update:searchVal",n)},doSearch:function(n){return e.$emit("doSearchFilter",n)},showCondition:e.showCondition}}),e.showFilter?i("van-popup",{style:{width:"80%",marginTop:e.$config.searchPaddingTop||"0px",height:"calc(100vh - "+(e.$config.searchPaddingTop||"0px")+")",top:"calc(50% - "+(e.$config.searchPaddingTop/2||"0px")+")"},attrs:{position:"right",overlay:!e.$config.hideOverlay},model:{value:e.displayCondition,callback:function(n){e.displayCondition=n},expression:"displayCondition"}},[i("div",{staticClass:"ind-page-view ind-flex-column",staticStyle:{height:"100% !important"}},[i("IndMForm",{staticClass:"height100",staticStyle:{background:"var(--ind-white)"},attrs:{formType:"searchMobile",fieldList:e.fieldList},model:{value:e.searchForm,callback:function(n){e.searchForm=n},expression:"searchForm"}}),i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)],1)]):e._e()],1)},YC=[];const XC={components:{SearchTop:RC,ConditionBar:KC},props:{showFilter:Boolean,value:Object,searchVal:String,fieldList:Array},data(){return{displayCondition:!1,searchForm:{}}},created(){this.searchForm=this.value},computed:{isFiltering(){return!y.default.isEmpty(this.searchForm)}},watch:{value:{handler:function(){this.searchForm=this.value},deep:!0}},methods:{showCondition(){this.displayCondition=!0},cancel(){this.displayCondition=!1,this.$emit("cancel")},confirm(){this.displayCondition=!1,this.$emit("doSearch",this.searchForm)}}},Ld={};var GC=Y(XC,WC,YC,!1,qC,null,null,null);function qC(e){for(let t in Ld)this[t]=Ld[t]}var Ad=function(){return GC.exports}(),JC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-popup",{style:{width:"100%",height:"100%"},attrs:{value:e.show,position:"right","lazy-render":!0,"get-container":"body"},on:{opened:e.getTableData}},[i("div",{staticClass:"ind-select-panel ind-vcenter",class:[e.isTree?"ind-mobile-tree":"",e.showHeader?"ind-select-panel-widthheader":""],staticStyle:{width:"100%",height:"100vh"},style:{paddingBottom:e.multiple&&!e.showHeader?"20px":"0"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u8BF7\u9009\u62E9"+e.title,"left-text":"","left-arrow":""},on:{"click-left":e.cancel}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[i("van-search",{staticClass:"ind-flex-no-shrink",staticStyle:{position:"relative","z-index":"3"},attrs:{placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:e.doSearch},model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}}),i("IndTable",{ref:"table",attrs:{rowClick:"",rowBuffer:1e3,headerHeight:49,rowMultiSelectWithClick:e.multiple,isRowSelectable:e.isRowSelectable,groupSelectsChildren:e.multiple,showBottom:!1,dataApi:e.selectDataApi,searchParams:e.searchParams,columns:e.columnsData,rowKey:e.selectRowKey,showTableOption:!1,groupDefaultExpanded:3,disablePage:""},on:{"on-select-change":e.onSelectChange,"on-data-format-load":e.setLength}}),i("div",{staticClass:"ind-bottom-info ind-bottom-btn",style:{position:e.showHeader?"static":"absolute",bottom:0},attrs:{slot:"bottom"},slot:"bottom"},[e.multiple?i("div",{staticClass:"ind-flex"},[e._v(" \u5171\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.dataLen))]),e._v("\xA0\u6761\u6570\u636E\uFF0C\u5DF2\u9009\u62E9\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.selectedRows.length))]),e._v("\xA0\u6761 ")]):e._e(),i("div",{staticClass:"ind-flex ind-space-between",class:[e.multiple?"ind-mt":""]},[e.multiple?i("div",{staticClass:"ind-flex ind-flex-no-shrink ind-checkbox-bottom ag-theme-balham ag-theme-balham-dark",staticStyle:{"margin-right":"20px"},style:{top:e.showHeader?"7px":""},on:{click:e.toggleCheckAll}},[i("div",{staticClass:"ag-checkbox-input-wrapper",class:e.allCheck?"ag-checked":""}),e._v(" \u5168\u9009 ")]):e._e(),i("div",{staticClass:"ind-flex",staticStyle:{width:"100%"}},[i("IndButton",{attrs:{bizType:"cancel"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)])])],1)],1)])},ZC=[];function Pd(e,t,i){Array.isArray(t)&&t.length&&y.default.forEach(t,(n,r)=>{let a=!1;if(typeof i=="function")try{const s=i(n,e,r);typeof s=="boolean"&&(a=s)}catch(s){console.error(s)}a||Pd(n,n.children,i)})}const QC={props:{title:String,show:Boolean,value:Array,type:String,multiple:Boolean,options:Array,dataApi:Function,searchParams:Object,columns:Array,rowKey:String,defaultVisible:Boolean,showHeader:{type:Boolean,default:!1},enableSelectAll:Boolean},data(){return{loading:!1,searchVal:"",rows:[],selectRowKey:"",selectDataApi:null,columnsData:[],dataInited:!1,dataLen:0,allCheck:!1,selectedRows:[]}},created(){this.initConfig()},activited(){this.show&&(window.selectInst=this)},watch:{show(){window.selectInst=this},type(){this.initConfig()},multiple(){this.initConfig()},searchVal(){this.doSearch()},dataApi(){this.initConfig()},value:{handler:function(){this.setSelected()},deep:!0}},computed:{isTree(){return y.default.some(this.columnsData,e=>e.tree==!0)}},methods:{setLength(e){var t;if(this.isTree){let i=(e==null?void 0:e.data)||e,n=[];Pd({},i,(r,a,s)=>{var o;(o=r==null?void 0:r.children)!=null&&o.length||n.push(r)}),this.dataLen=(n==null?void 0:n.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.data)==null?void 0:t.length)},toggleCheckAll(){this.allCheck?this.$refs.table.deselectAll():this.$refs.table.gridApi.selectAllFiltered()},isRowSelectable(e){return e.data.disabled?!1:this.enableSelectAll||this.multiple||!this.multiple&&!(e.data.children&&e.data.children.length)},async initConfig(){if(this.dataInited=!1,!this.type){this.selectDataApi=this.dataApi,this.columnsData=this.columns,this.selectRowKey=this.rowKey,(this.defaultVisible||this.show)&&this.getTableData();return}const e={comTree:M.listComTreeApi,itemTree:M.listItemTreeApi};this.selectDataApi=e[this.type];const t={comTree:[{headerName:"\u5546\u4E1A\u516C\u53F8",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}],itemTree:[{headerName:"\u5377\u70DF\u89C4\u683C",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}]};this.columnsData=t[this.type];const i={comTree:"id",itemTree:"id"};this.selectRowKey=i[this.type],this.defaultVisible&&this.getTableData()},doSearch:y.default.debounce(function(){this.$refs.table.gridApi.setQuickFilter(this.searchVal),this.getFilteredData()},5),cancel(){this.$emit("update:show",!1)},confirm(){var t;let e=(t=this.$refs.table)==null?void 0:t.getSelection();this.$emit("input",e),this.$emit("update:show",!1)},getFilteredData(){var t;var e=[];if(this.$refs.table.gridApi.forEachNodeAfterFilterAndSort(function(i){e.push(i.data)}),this.isTree){let i=[];y.default.forEach(e,n=>{n.children.length===0&&i.push(n)}),this.dataLen=(i==null?void 0:i.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.filteredRows)==null?void 0:t.length)},getTableData(){if(console.log("getTableData",this.dataInited),this.dataInited){setTimeout(()=>{this.setSelected()},5);return}setTimeout(()=>{var e,t;this.dataInited=!0,(t=(e=this.$refs)==null?void 0:e.table)==null||t.tableRefresh(),this.setSelected()},5)},onSelectChange(e){var t,i,n,r;if(!this.multiple){let a=this.selectedRows.length,s=e.length;if(a===1&&s===0){(i=(t=this.$refs)==null?void 0:t.table)==null||i.setSelection(this.selectedRows,!0);return}else if(a===1&&s===2){let o=y.default.cloneDeep(e);y.default.remove(o,l=>y.default.some(this.selectedRows,c=>c[this.rowKey||"id"]==l[this.rowKey||"id"])),(r=(n=this.$refs)==null?void 0:n.table)==null||r.setSelection(o,!0);return}}this.isTree&&!this.enableSelectAll?this.selectedRows=y.default.filter(e,a=>{var s;return!((s=a==null?void 0:a.children)!=null&&s.length)}):this.selectedRows=e,this.allCheck=this.selectedRows.length==this.dataLen},async setSelected(){var e,t;await this.$nextTick(),(t=(e=this.$refs)==null?void 0:e.table)==null||t.setSelection(this.value,!this.multiple)}}},Nd={};var tx=Y(QC,JC,ZC,!1,ex,null,null,null);function ex(e){for(let t in Nd)this[t]=Nd[t]}var Bd=function(){return tx.exports}(),ix=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.selectedTitles,title:e.selectedTitles,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},nativeOn:{click:function(n){return e.setVisible.apply(null,arguments)}}}),i("IndMSelectPanel",e._b({attrs:{defaultVisible:e.defaultVisible,title:e.title,multiple:e.showCheckbox||e.multiple,show:e.visible,value:e.value,type:e.type,dataApi:e.dataApiComp,columns:e.columnsComp,rowKey:e.rowKeyComp,enableSelectAll:e.enableSelectAll},on:{"update:show":function(n){e.visible=n},input:function(n){return e.$emit("input",n)}}},"IndMSelectPanel",Object.assign({},e.$attrs),!1))],1)},nx=[];const rx={inheritAttrs:!1,props:{title:String,type:{type:String,default:""},multiple:Boolean,options:Array,value:Array,defaultValue:Array,defaultVisible:Boolean,singleSel:Boolean,expandNode:Boolean,readonly:Boolean,showCheckbox:Boolean,expandAll:Boolean,defaultExpandLevel:Number,dataApi:Function,columns:Array,rowKey:String,enableSelectAll:Boolean},data(){return{loading:!1,visible:!1,searchValue:"",selectedTitles:"",searchNum:0,inputIcon:"ios-arrow-forward"}},computed:{dataApiComp:function(){var e;return this.dataApi?this.dataApi:(e=this.options)!=null&&e.length?()=>Promise.resolve({data:this.options}):null},columnsComp:function(){return this.columns?this.columns:[{headerName:"\u9009\u62E9",minWidth:40,width:50,showDisabledCheckboxes:!0,type:this.multiple?"checkbox":"radio"},{headerName:"\u9009\u9879",minWidth:100,flex:1,field:"V",align:"left",showDisabledCheckboxes:!0}]},rowKeyComp:function(){var e;return this.rowKey?this.rowKey:(e=this.options)!=null&&e.length?"K":null}},created(){this.visible=this.defaultVisible,this.updateSelectedTitles()},deactivated(){this.visible=!1},watch:{value(){this.updateSelectedTitles()},options(){this.updateSelectedTitles()}},methods:{setVisible(){this.readonly||(this.visible=!0)},initSelectedTitles(e,t){this.updateSelectedTitles(t),this.loading=!1},onSelectChange(e){this.updateSelectedTitles(e),this.$emit("on-select-change",e),this.$emit("input",e),this.visible=!1},clearSelected(){this.selectedTitles=""},updateSearchNum(e){this.searchNum=e},updateSelectedTitles(){var i,n,r,a,s,o,l,c;let e=[];this.enableSelectAll?e=this.value:e=y.default.filter(this.value,h=>!h.children||h.children.length==0);let t="title";((i=this.columnsComp)==null?void 0:i.length)>1?t=this.columnsComp[1].field:(n=this.options)!=null&&n.length&&(t="V"),console.log("textField is",t),this.selectedTitles=e!=null&&e.length?(e==null?void 0:e.length)==1?(r=this.options)!=null&&r.length?((a=this.options.find(h=>h.K==e[0].K))==null?void 0:a.V)||((s=e[0])==null?void 0:s.V)||((o=e[0])==null?void 0:o.title):e[0][t]||((l=e[0])==null?void 0:l.V)||((c=e[0])==null?void 0:c.title):"\u5171\u9009\u62E9"+((e==null?void 0:e.length)||0)+"\u4E2A"+this.title:""},setSelectedTitles(e){this.selectedTitles=e}}},Fd={};var ax=Y(rx,ix,nx,!1,sx,null,null,null);function sx(e){for(let t in Fd)this[t]=Fd[t]}var Rd=function(){return ax.exports}(),ox=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"item-select-btn-panel"},[e.multiple?i("div",{class:["ind-item-btn",e.allChecked?"checked":""],on:{click:e.toggleAll}},[e._v(" \u5168\u9009 ")]):e._e(),e._l(e.options,function(n,r){return i("div",{key:"item"+r,class:["ind-item-btn",!e.multiple&&e.value==n.K||e.multiple&&e.value&&e.value.includes(n.K)?"checked":""],on:{click:function(a){return e.toggle(n)}}},[e._v(" "+e._s(n.V)+" ")])})],2)},lx=[];const cx={props:{multiple:Boolean,options:Array,value:[String,Array]},data(){return{}},computed:{allChecked:function(){var e,t;return this.multiple&&((e=this.options)==null?void 0:e.length)==((t=this.value)==null?void 0:t.length)}},methods:{toggle(e){if(this.multiple){let t=y.default.cloneDeep(this.value);t.includes(e.K)?y.default.remove(t,i=>i==e.K):t.push(e.K),this.$emit("input",t)}else this.$emit("input",e.K==this.value?"":e.K)},toggleAll(){this.allChecked?this.$emit("input",[]):this.$emit("input",this.options.map(e=>e.K))}}},Vd={};var ux=Y(cx,ox,lx,!1,hx,null,null,null);function hx(e){for(let t in Vd)this[t]=Vd[t]}var zd=function(){return ux.exports}(),dx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:""},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},fx=[];const px={name:"IndMTabbar",components:{Tabbar:Fs,TabbarItem:Vs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){var r,a;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(s=>s.extendProps).map(s=>({key:s.permissionId,parseResult:this.tryParseJson(s.extendProps)})).filter(s=>s.parseResult.success&&s.parseResult.result.hideInAppCenter).map(s=>s.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((a=this.$config)==null?void 0:a.isMobileSeparate)!="1"){let s=e.find(o=>{var l;return o.extendProps&&((l=JSON.parse(o.extendProps))==null?void 0:l.mainMobile)=="1"});e=(s==null?void 0:s.children)||[]}let n=e.filter(s=>s.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(s.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},methods:{onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},jd={};var mx=Y(px,dx,fx,!1,vx,null,null,null);function vx(e){for(let t in jd)this[t]=jd[t]}var gx=function(){return mx.exports}(),yx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:"","active-color":"var(--ind-m-van-swipe-dot-active-color)","inactive-color":"var(--ind-m-van-swipe-dot-color)"},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},bx=[];const Sx={name:"IndMTabbar",components:{Tabbar:Fs,TabbarItem:Vs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){this.renderTabBar()},watch:{menuTreeList:{handler:function(){console.log("menuTreeList changed trigger renderTabBar"),this.renderTabBar()},deep:!0}},computed:{menuTreeList(){return console.log("menuTreeList changed in tabbar"),this.$store.getters.getMenuTreeList}},methods:{renderTabBar(){var r,a;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(s=>s.extendProps).map(s=>({key:s.permissionId,parseResult:this.tryParseJson(s.extendProps)})).filter(s=>s.parseResult.success&&s.parseResult.result.hideInAppCenter).map(s=>s.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((a=this.$config)==null?void 0:a.isMobileSeparate)!="1"){let s=e.find(o=>{var l;return o.extendProps&&((l=JSON.parse(o.extendProps))==null?void 0:l.mainMobile)=="1"});e=(s==null?void 0:s.children)||[]}let n=e.filter(s=>s.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(s.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},Hd={};var Cx=Y(Sx,yx,bx,!1,xx,null,null,null);function xx(e){for(let t in Hd)this[t]=Hd[t]}var $x=function(){return Cx.exports}(),kx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("tabOld"):i("tabNew")},Tx=[];const _x={components:{tabNew:$x,tabOld:gx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},Ud={};var Ix=Y(_x,kx,Tx,!1,Ex,null,null,null);function Ex(e){for(let t in Ud)this[t]=Ud[t]}var ti=function(){return Ix.exports}(),Dx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticClass:"app-page",staticStyle:{"padding-top":"0"}},[i("van-cell-group",{attrs:{title:"\u4E2A\u4EBA\u4FE1\u606F"}},[i("van-cell",{attrs:{title:"\u7528\u6237\u540D",value:e.user.userName}})],1),i("van-cell-group",{attrs:{title:"\u5E94\u7528"}},[i("van-cell",{attrs:{title:"\u540D\u79F0",value:e.app.name}}),i("van-cell",{attrs:{title:"\u7F16\u7801",value:e.app.appId}}),i("van-cell",{attrs:{title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{attrs:{title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}})],1),i("van-cell-group",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],attrs:{title:"v-permission=['1221001111']",value:e.app.version}}),i("van-cell",{attrs:{title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("tabbar")],1)],1)},Mx=[];const Ox={components:{tabbar:ti},data(){return{app:{},user:{},message:"\u66F4\u591A\u8BE6\u7EC6\u4FE1\u606F\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u83B7\u53D6"}},mounted(){this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},Kd={};var Lx=Y(Ox,Dx,Mx,!1,Ax,null,null,null);function Ax(e){for(let t in Kd)this[t]=Kd[t]}var Px=function(){return Lx.exports}(),Nx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-user-wrapper",staticStyle:{position:"relative"}},[i("van-sticky",{directives:[{name:"show",rawName:"v-show",value:!e.isHb,expression:"!isHb"}]},[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticStyle:{position:"absolute",left:"0",width:"100%",height:"40vh","z-index":"0"},style:{top:e.isHb?"0px":"48px"}},[i("IndMImgLoad",{attrs:{pick:"home-bg",position:"center top",type:"TableData"}})],1),i("div",{staticClass:"ind-m-user-avatar-con"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar-img"},[i("van-image",{attrs:{round:"",width:"5rem",height:"5rem",fit:"cover",position:"center",src:e.user.avatar}})],1)]),i("div",{staticClass:"ind-m-user-avatar-con-name"},[e._v(e._s(e.user.userName))])]),i("IndMCard",{attrs:{title:"\u5E94\u7528\u4FE1\u606F"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"apps-o",title:"\u5E94\u7528\u540D\u79F0",value:e.app.name}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"qr",title:"\u5E94\u7528\u7F16\u7801",value:e.app.appId}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switch",title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switching",title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['1221001111']",value:e.app.version}})],1),i("IndMCard",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"setting-o",title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("IndMtabbar")],1)},Bx=[];const Fx={data(){return{app:{},user:{},isHb:!1}},mounted(){this.isHb=location.pathname.includes("scyxweb"),this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},Wd={};var Rx=Y(Fx,Nx,Bx,!1,Vx,null,null,null);function Vx(e){for(let t in Wd)this[t]=Wd[t]}var zx=function(){return Rx.exports}(),jx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("userOld"):i("userNew")},Hx=[];const Ux={components:{userOld:Px,userNew:zx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},Yd={};var Kx=Y(Ux,jx,Hx,!1,Wx,null,null,null);function Wx(e){for(let t in Yd)this[t]=Yd[t]}var Hs=function(){return Kx.exports}(),Yx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" "+e._s(e.title)+" ")])]),i("van-grid",{attrs:{border:!1}},e._l(e.myAppList,function(n){return i("van-grid-item",{key:n.meta.permissionId,attrs:{to:n.uri}},[i("div",{staticStyle:{height:"100%"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(n.meta.icon,n)}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(n.meta.title))])])])])}),1)],1)},Xx=[];const Gx={name:"IndMMyApps",data(){return{myAppList:[],title:"\u6211\u7684\u5E94\u7528"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})}}},Xd={};var qx=Y(Gx,Yx,Xx,!1,Jx,null,null,null);function Jx(e){for(let t in Xd)this[t]=Xd[t]}var Us=function(){return qx.exports}(),Zx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-app-item",on:{touchstart:function(n){return e.ontouchstart(e.item)},touchmove:function(n){return e.ontouchmove(e.item)},touchend:function(n){return e.ontouchend(e.item)},click:function(n){return e.ontouchend(e.item)}}},[e.editStatus=="minus"||e.editStatus=="plus"&&e.state?i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon,e.item)}}),i("van-badge",{staticClass:"ind-app-item-icon-imgbadge",attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:e.editStatus}})]},proxy:!0}],null,!1,1274909998)})],1)]):i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon,e.item)}})])]),i("div",{class:["ind-app-item-title",e.$config.ellipsis?"ellipsis":""]},[e._v(" "+e._s(e.item.meta.title)+" ")])])},Qx=[];const t1={name:"appsItem",props:{item:{type:Object,default:()=>({})},state:{type:Boolean,default:!1},editStatus:{type:String,default:"off"},ossServerContext:{type:String,default:"/user-manage-server"}},computed:{iconSize:function(){var e,t,i,n;return(t=(e=this.$config)==null?void 0:e.systemDefaultConfig)!=null&&t.iconSize?`${(n=(i=this.$config)==null?void 0:i.systemDefaultConfig)==null?void 0:n.iconSize}px`:"2.5rem"}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config,ossServerContext:this.ossServerContext})},ontouchstart(e){e.move=!1},ontouchmove(e){e.move=!0},ontouchend(e){e.move||this.$emit("touchend",e)}}},Gd={};var e1=Y(t1,Zx,Qx,!1,i1,null,null,null);function i1(e){for(let t in Gd)this[t]=Gd[t]}var ze=function(){return e1.exports}(),qd={exports:{}};/**!
|
|
13
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:dr(t.placement),variation:Sh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$h(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$h(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var U0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H0,data:{}};function K0(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!ye(a)||!Re(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function W0(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),o=s.reduce(function(l,c){return l[c]="",l},{});!ye(r)||!Re(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var Y0={name:"applyStyles",enabled:!0,phase:"write",fn:K0,effect:W0,requires:["computeStyles"]},X0=[F0,V0,U0,Y0],G0=N0({defaultModifiers:X0});function q0(e,t,i){var n=dr(e),r=[hi,Ai].indexOf(n)>=0?-1:1,a=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[hi,un].indexOf(n)>=0?{x:o,y:s}:{x:s,y:o}}function J0(e){var t=e.state,i=e.options,n=e.name,r=i.offset,a=r===void 0?[0,0]:r,s=v0.reduce(function(h,d){return h[d]=q0(d,t.rects,a),h},{}),o=s[t.placement],l=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}var Z0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:J0},kh=$("popover"),Q0=kh[0],fi=kh[1],tw=Q0({mixins:[ls({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(zt||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var t=G0(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},L({},Z0,{options:{offset:this.offset}})]});return zt||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),t},updateLocation:function(){var t=this;this.$nextTick(function(){!t.value||(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())})},renderAction:function(t,i){var n=this,r=this.$createElement,a=t.icon,s=t.text,o=t.disabled,l=t.className;return r("div",{attrs:{role:"menuitem"},class:[fi("action",{disabled:o,"with-icon":a}),l],on:{click:function(){return n.onClickAction(t,i)}}},[a&&r(Z,{attrs:{name:a},class:fi("action-icon")}),r("div",{class:[fi("action-text"),Ji]},[s])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){this.trigger==="click"&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,i){t.disabled||(this.$emit("select",t,i),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:fi("wrapper"),on:{click:this.onClickWrapper}},[t(_e,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:fi([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:fi("arrow")}),t("div",{class:fi("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),Th=$("progress"),ew=Th[0],$s=Th[1],iw=ew({mixins:[he(function(e){e(window,"resize",this.resize,!0),e(window,"orientationchange",this.resize,!0)})],props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(){var t=arguments[0],i=this.pivotText,n=this.percentage,r=i!=null?i:n+"%",a=this.showPivot&&r,s=this.inactive?"#cacaca":this.color,o={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||s},l={background:s,width:this.progressWidth*n/100+"px"},c={background:this.trackColor,height:st(this.strokeWidth)};return t("div",{class:$s(),style:c},[t("span",{class:$s("portion"),style:l},[a&&t("span",{ref:"pivot",style:o,class:$s("pivot")},[r])])])}}),ks=$("pull-refresh"),nw=ks[0],pr=ks[1],rw=ks[2],_h=50,aw=["pulling","loosing","success"],sw=nw({mixins:[ee],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:_h}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return this.status!=="loading"&&this.status!=="success"&&!this.disabled},headStyle:function(){if(this.headHeight!==_h)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=si(this.$el)},methods:{checkPullStart:function(t){this.ceiling=oi(this.scrollEl)===0,this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){!this.touchable||(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&this.direction==="vertical"&&(It(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,this.status==="loosing"?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){t.$emit("refresh")})):this.setStatus(0))},ease:function(t){var i=+(this.pullDistance||this.headHeight);return t>i&&(t<i*2?t=i+(t-i)/2:t=i*1.5+(t-i*2)/4),Math.round(t)},setStatus:function(t,i){var n;i?n="loading":t===0?n="normal":n=t<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,i=this.status,n=this.distance,r=this.slots(i,{distance:n});if(r)return r;var a=[],s=this[i+"Text"]||rw(i);return aw.indexOf(i)!==-1&&a.push(t("div",{class:pr("text")},[s])),i==="loading"&&a.push(t(de,{attrs:{size:"16"}},[s])),a},showSuccessTip:function(){var t=this;this.status="success",setTimeout(function(){t.setStatus(0)},this.successDuration)}},render:function(){var t=arguments[0],i={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:pr()},[t("div",{ref:"track",class:pr("track"),style:i},[t("div",{class:pr("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Ih=$("rate"),ow=Ih[0],mr=Ih[1];function lw(e,t,i){return e>=t?"full":e+.5>=t&&i?"half":"void"}var cw=ow({mixins:[ee,We],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t=[],i=1;i<=this.count;i++)t.push(lw(this.value,i,this.allowHalf));return t},sizeWithUnit:function(){return st(this.size)},gutterWithUnit:function(){return st(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){!this.disabled&&!this.readonly&&t!==this.value&&(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var i=this;if(!(this.readonly||this.disabled||!this.touchable)){this.touchStart(t);var n=this.$refs.items.map(function(a){return a.getBoundingClientRect()}),r=[];n.forEach(function(a,s){i.allowHalf?r.push({score:s+.5,left:a.left},{score:s+1,left:a.left+a.width/2}):r.push({score:s+1,left:a.left})}),this.ranges=r}},onTouchMove:function(t){if(!(this.readonly||this.disabled||!this.touchable)&&(this.touchMove(t),this.direction==="horizontal")){It(t);var i=t.touches[0].clientX;this.select(this.getScoreByPosition(i))}},getScoreByPosition:function(t){for(var i=this.ranges.length-1;i>0;i--)if(t>this.ranges[i].left)return this.ranges[i].score;return this.allowHalf?.5:1},genStar:function(t,i){var n=this,r=this.$createElement,a=this.icon,s=this.color,o=this.count,l=this.voidIcon,c=this.disabled,h=this.voidColor,d=this.disabledColor,u=i+1,f=t==="full",p=t==="void",m;return this.gutterWithUnit&&u!==+o&&(m={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:i,attrs:{role:"radio",tabindex:"0","aria-setsize":o,"aria-posinset":u,"aria-checked":String(!p)},style:m,class:mr("item")},[r(Z,{attrs:{size:this.sizeWithUnit,name:f?a:l,color:c?d:f?s:h,classPrefix:this.iconPrefix,"data-score":u},class:mr("icon",{disabled:c,full:f}),on:{click:function(){n.select(u)}}}),this.allowHalf&&r(Z,{attrs:{size:this.sizeWithUnit,name:p?l:a,color:c?d:p?h:s,classPrefix:this.iconPrefix,"data-score":u-.5},class:mr("icon",["half",{disabled:c,full:!p}]),on:{click:function(){n.select(u-.5)}}})])}},render:function(){var t=this,i=arguments[0];return i("div",{class:mr({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(n,r){return t.genStar(n,r)})])}}),Eh=$("row"),uw=Eh[0],hw=Eh[1],dw=uw({mixins:[Ut("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(!!t){var i=[],n=[[]],r=0;return this.children.forEach(function(a,s){r+=Number(a.span),r>24?(n.push([s]),r-=24):n[n.length-1].push(s)}),n.forEach(function(a){var s=t*(a.length-1)/a.length;a.forEach(function(o,l){if(l===0)i.push({right:s});else{var c=t-i[o-1].right,h=s-c;i.push({left:c,right:h})}})}),i}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,i=arguments[0],n=this.align,r=this.justify,a=this.type==="flex";return i(this.tag,{class:hw((t={flex:a},t["align-"+n]=a&&n,t["justify-"+r]=a&&r,t)),on:{click:this.onClick}},[this.slots()])}}),Ts=$("search"),fw=Ts[0],vr=Ts[1],pw=Ts[2];function Dh(e,t,i,n){function r(){if(i.label||t.label)return e("div",{class:vr("label")},[i.label?i.label():t.label])}function a(){if(!t.showAction)return;function l(){i.action||(at(n,"input",""),at(n,"cancel"))}return e("div",{class:vr("action"),attrs:{role:"button",tabindex:"0"},on:{click:l}},[i.action?i.action():t.actionText||pw("cancel")])}var s={attrs:n.data.attrs,on:L({},n.listeners,{keypress:function(c){c.keyCode===13&&(It(c),at(n,"search",t.value)),at(n,"keypress",c)}})},o=lt(n);return o.attrs=void 0,e("div",et([{class:vr({"show-action":t.showAction}),style:{background:t.background}},o]),[i.left==null?void 0:i.left(),e("div",{class:vr("content",t.shape)},[r(),e(ie,et([{attrs:{type:"search",border:!1,value:t.value,leftIcon:t.leftIcon,rightIcon:t.rightIcon,clearable:t.clearable,clearTrigger:t.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},s]))]),a()])}Dh.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var mw=fw(Dh),vw=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],_s=$("share-sheet"),gw=_s[0],Me=_s[1],yw=_s[2],bw=gw({props:L({},Bn,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,i){this.$emit("select",t,i)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return vw.indexOf(t)!==-1?"https://img01.yzcdn.cn/vant/share-sheet-"+t+".png":t},genHeader:function(){var t=this.$createElement,i=this.slots("title")||this.title,n=this.slots("description")||this.description;if(!(!i&&!n))return t("div",{class:Me("header")},[i&&t("h2",{class:Me("title")},[i]),n&&t("span",{class:Me("description")},[n])])},genOptions:function(t,i){var n=this,r=this.$createElement;return r("div",{class:Me("options",{border:i})},[t.map(function(a,s){return r("div",{attrs:{role:"button",tabindex:"0"},class:[Me("option"),a.className],on:{click:function(){n.onSelect(a,s)}}},[r("img",{attrs:{src:n.getIconURL(a.icon)},class:Me("icon")}),a.name&&r("span",{class:Me("name")},[a.name]),a.description&&r("span",{class:Me("option-description")},[a.description])])})])},genRows:function(){var t=this,i=this.options;return Array.isArray(i[0])?i.map(function(n,r){return t.genOptions(n,r!==0)}):this.genOptions(i)},genCancelText:function(){var t,i=this.$createElement,n=(t=this.cancelText)!=null?t:yw("cancel");if(n)return i("button",{attrs:{type:"button"},class:Me("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var t=arguments[0];return t(_e,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Me(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),Mh=$("sidebar"),Sw=Mh[0],ww=Mh[1],Oh=Sw({mixins:[Ut("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:ww()},[this.slots()])}}),Lh=$("sidebar-item"),Cw=Lh[0],Is=Lh[1],Ah=Cw({mixins:[Ht("vanSidebar")],props:L({},Ke,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),ci(this.$router,this))}},render:function(){var t,i,n=arguments[0];return n("a",{class:Is({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:Is("text")},[(t=this.slots("title"))!=null?t:this.title,n(li,{attrs:{dot:this.dot,info:(i=this.badge)!=null?i:this.info},class:Is("info")})])])}}),Ph=$("skeleton"),xw=Ph[0],hn=Ph[1],Nh="100%",$w="60%";function Bh(e,t,i,n){if(!t.loading)return i.default&&i.default();function r(){if(t.title)return e("h3",{class:hn("title"),style:{width:st(t.titleWidth)}})}function a(){var o=[],l=t.rowWidth;function c(d){return l===Nh&&d===+t.row-1?$w:Array.isArray(l)?l[d]:l}for(var h=0;h<t.row;h++)o.push(e("div",{class:hn("row"),style:{width:st(c(h))}}));return o}function s(){if(t.avatar){var o=st(t.avatarSize);return e("div",{class:hn("avatar",t.avatarShape),style:{width:o,height:o}})}}return e("div",et([{class:hn({animate:t.animate,round:t.round})},lt(n)]),[s(),e("div",{class:hn("content")},[r(),a()])])}Bh.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:Nh}};var kw=xw(Bh),Tw={"zh-CN":{vanSku:{select:"\u8BF7\u9009\u62E9",selected:"\u5DF2\u9009",selectSku:"\u8BF7\u5148\u9009\u62E9\u5546\u54C1\u89C4\u683C",soldout:"\u5E93\u5B58\u4E0D\u8DB3",originPrice:"\u539F\u4EF7",minusTip:"\u81F3\u5C11\u9009\u62E9\u4E00\u4EF6",minusStartTip:function(t){return t+"\u4EF6\u8D77\u552E"},unavailable:"\u5546\u54C1\u5DF2\u7ECF\u65E0\u6CD5\u8D2D\u4E70\u5566",stock:"\u5269\u4F59",stockUnit:"\u4EF6",quotaTip:function(t){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6"},quotaUsedTip:function(t,i){return"\u6BCF\u4EBA\u9650\u8D2D"+t+"\u4EF6\uFF0C\u4F60\u5DF2\u8D2D\u4E70"+i+"\u4EF6"}},vanSkuActions:{buy:"\u7ACB\u5373\u8D2D\u4E70",addCart:"\u52A0\u5165\u8D2D\u7269\u8F66"},vanSkuImgUploader:{oversize:function(t){return"\u6700\u5927\u53EF\u4E0A\u4F20\u56FE\u7247\u4E3A"+t+"MB\uFF0C\u8BF7\u5C1D\u8BD5\u538B\u7F29\u56FE\u7247\u5C3A\u5BF8"},fail:"\u4E0A\u4F20\u5931\u8D25",uploading:"\u4E0A\u4F20\u4E2D..."},vanSkuStepper:{quotaLimit:function(t){return"\u9650\u8D2D"+t+"\u4EF6"},quotaStart:function(t){return t+"\u4EF6\u8D77\u552E"},comma:"\uFF0C",num:"\u8D2D\u4E70\u6570\u91CF"},vanSkuMessages:{fill:"\u8BF7\u586B\u5199",upload:"\u8BF7\u4E0A\u4F20",imageLabel:"\u4EC5\u9650\u4E00\u5F20",invalid:{tel:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u6570\u5B57\u683C\u5F0F\u7559\u8A00",mobile:"\u624B\u673A\u53F7\u957F\u5EA6\u4E3A6-20\u4F4D\u6570\u5B57",email:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u90AE\u7BB1",id_no:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801"},placeholder:{id_no:"\u8BF7\u586B\u5199\u8EAB\u4EFD\u8BC1\u53F7",text:"\u8BF7\u586B\u5199\u7559\u8A00",tel:"\u8BF7\u586B\u5199\u6570\u5B57",email:"\u8BF7\u586B\u5199\u90AE\u7BB1",date:"\u8BF7\u9009\u62E9\u65E5\u671F",time:"\u8BF7\u9009\u62E9\u65F6\u95F4",textarea:"\u8BF7\u586B\u5199\u7559\u8A00",mobile:"\u8BF7\u586B\u5199\u624B\u673A\u53F7"}},vanSkuRow:{multiple:"\u53EF\u591A\u9009"},vanSkuDatetimeField:{title:{date:"\u9009\u62E9\u5E74\u6708\u65E5",time:"\u9009\u62E9\u65F6\u95F4",datetime:"\u9009\u62E9\u65E5\u671F\u65F6\u95F4"},format:{year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u65F6",minute:"\u5206"}}}},gr={QUOTA_LIMIT:0,STOCK_LIMIT:1},pi="",_w={LIMIT_TYPE:gr,UNSELECTED_SKU_VALUE_ID:pi},Fh=function(t){var i={};return t.forEach(function(n){i[n.k_s]=n.v}),i},Iw=function(t){var i={};return t.forEach(function(n){var r={};n.v.forEach(function(a){r[a.id]=a}),i[n.k_id]=r}),i},Rh=function(t,i){var n=Object.keys(i).filter(function(r){return i[r]!==pi});return t.length===n.length},Vh=function(t,i){var n=t.filter(function(r){return Object.keys(i).every(function(a){return String(r[a])===String(i[a])})});return n[0]},zh=function(t,i){var n=Fh(t);return Object.keys(i).reduce(function(r,a){var s=n[a]||[],o=i[a];if(o!==pi&&s.length>0){var l=s.filter(function(c){return c.id===o})[0];l&&r.push(l)}return r},[])},Es=function(t,i,n){var r,a=n.key,s=n.valueId,o=L({},i,(r={},r[a]=s,r)),l=Object.keys(o).filter(function(d){return o[d]!==pi}),c=t.filter(function(d){return l.every(function(u){return String(o[u])===String(d[u])})}),h=c.reduce(function(d,u){return d+=u.stock_num,d},0);return h>0},jh=function(t,i){var n=Iw(t);return Object.keys(i).reduce(function(r,a){return i[a].forEach(function(s){r.push(L({},n[a][s]))}),r},[])},Hh=function(t,i){var n=[];return(t||[]).forEach(function(r){if(i[r.k_id]&&i[r.k_id].length>0){var a=[];r.v.forEach(function(s){i[r.k_id].indexOf(s.id)>-1&&a.push(L({},s))}),n.push(L({},r,{v:a}))}}),n},Ew={normalizeSkuTree:Fh,getSkuComb:Vh,getSelectedSkuValues:zh,isAllSelected:Rh,isSkuChoosable:Es,getSelectedPropValues:jh,getSelectedProperties:Hh},Uh=$("sku-header"),Dw=Uh[0],Ds=Uh[1];function Mw(e,t){var i;return e.tree.some(function(n){var r=t[n.k_s];if(r&&n.v){var a=n.v.filter(function(o){return o.id===r})[0]||{},s=a.previewImgUrl||a.imgUrl||a.img_url;if(s)return i=L({},a,{ks:n.k_s,imgUrl:s}),!0}return!1}),i}function Kh(e,t,i,n){var r,a=t.sku,s=t.goods,o=t.skuEventBus,l=t.selectedSku,c=t.showHeaderImage,h=c===void 0?!0:c,d=Mw(a,l),u=d?d.imgUrl:s.picture,f=function(){o.$emit("sku:previewImage",d)};return e("div",et([{class:[Ds(),Ji]},lt(n)]),[h&&e(Mi,{attrs:{fit:"cover",src:u},class:Ds("img-wrap"),on:{click:f}},[(r=i["sku-header-image-extra"])==null?void 0:r.call(i)]),e("div",{class:Ds("goods-info")},[i.default==null?void 0:i.default()])])}Kh.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Wh=Dw(Kh),Yh=$("sku-header-item"),Ow=Yh[0],Lw=Yh[1];function Aw(e,t,i,n){return e("div",et([{class:Lw()},lt(n)]),[i.default&&i.default()])}var yr=Ow(Aw),Ms=$("sku-row"),Pw=Ms[0],be=Ms[1],Nw=Ms[2],Os=Pw({mixins:[Ut("vanSkuRows"),he(function(e){this.scrollable&&this.$refs.scroller&&e(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,i=t.scroller,n=t.row,r=n.offsetWidth-i.offsetWidth;this.progress=i.scrollLeft/r},genTitle:function(){var t=this.$createElement;return t("div",{class:be("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:be("title-multiple")},["\uFF08",Nw("multiple"),"\uFF09"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var i={transform:"translate3d("+this.progress*20+"px, 0, 0)"};return t("div",{class:be("indicator-wrapper")},[t("div",{class:be("indicator")},[t("div",{class:be("indicator-slider"),style:i})])])}},genContent:function(){var t=this.$createElement,i=this.slots();if(this.skuRow.largeImageMode){var n=[],r=[];return i.forEach(function(a,s){var o=Math.floor(s/3)%2===0?n:r;o.push(a)}),t("div",{class:be("scroller"),ref:"scroller"},[t("div",{class:be("row"),ref:"row"},[n]),r.length?t("div",{class:be("row")},[r]):null])}return i},centerItem:function(t){if(!(!this.skuRow.largeImageMode||!t)){var i=this.children,n=i===void 0?[]:i,r=this.$refs,a=r.scroller,s=r.row,o=n.find(function(h){return+h.skuValue.id==+t});if(a&&s&&o&&o.$el){var l=o.$el,c=l.offsetLeft-(a.offsetWidth-l.offsetWidth)/2;a.scrollLeft=c}}}},render:function(){var t=arguments[0];return t("div",{class:[be(),Ji]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),Bw=$("sku-row-item"),Fw=Bw[0],Xh=Fw({mixins:[Ht("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return this.disableSoldoutSku?Es(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",L({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var i=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",L({},i,{ks:n,imgUrl:i.imgUrl||i.img_url}))},genImage:function(t){var i=this.$createElement;if(this.imgUrl)return i(Mi,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],i=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?be("image-item"):be("item");return t("span",{class:[n,i?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t(Z,{attrs:{name:"enlarge"},class:n+"-img-icon",on:{click:this.onPreviewImg}})])}}),Rw=$("sku-row-prop-item"),Vw=Rw[0],Gh=Vw({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean,disabled:Boolean},computed:{choosed:function(){var t=this.selectedProp,i=this.skuKeyStr,n=this.skuValue;return t&&t[i]?t[i].indexOf(n.id)>-1:!1}},methods:{onSelect:function(){this.disabled||this.skuEventBus.$emit("sku:propSelect",L({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed},{"van-sku-row__item--disabled":this.disabled}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),qh=$("stepper"),zw=qh[0],br=qh[1],jw=600,Hw=200;function Sr(e,t){return String(e)===String(t)}var Jh=zw({mixins:[We],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,i=(t=this.value)!=null?t:this.defaultValue,n=this.format(i);return Sr(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=st(this.inputWidth)),this.buttonSize&&(t.height=st(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){Sr(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);Sr(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return sc(String(t),!this.integer)},format:function(t){return this.allowEmpty&&t===""||(t=this.formatNumber(t),t=t===""?0:+t,t=ua(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),nt(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var i=t.target.value,n=this.formatNumber(i);if(nt(this.decimalLength)&&n.indexOf(".")!==-1){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}Sr(i,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"]){this.$emit("overlimit",t);return}var i=t==="minus"?-this.step:+this.step,n=this.format(oc(+this.currentValue,i));this.emitChange(n),this.$emit(t)},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var i=this.format(t.target.value);t.target.value=i,this.emitChange(i),this.$emit("blur",t),yc()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},Hw)},onTouchStart:function(){var t=this;!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},jw))},onTouchEnd:function(t){!this.longPress||(clearTimeout(this.longPressTimer),this.isLongPress&&It(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,i=arguments[0],n=function(a){return{on:{click:function(o){o.preventDefault(),t.type=a,t.onChange()},touchstart:function(){t.type=a,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return i("div",{class:br([this.theme])},[i("button",et([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:br("minus",{disabled:this.minusDisabled})},n("minus")])),i("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:br("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),i("button",et([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:br("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),Zh=$("sku-stepper"),Uw=Zh[0],wr=Zh[2],Kw=gr.QUOTA_LIMIT,Qh=gr.STOCK_LIMIT,td=Uw({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Qh}},watch:{currentNum:function(t){var i=parseInt(t,10);i>=this.stepperMinLimit&&i<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",i)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t=this.quota-this.quotaUsed,i;return this.quota>0&&t<=this.stock?(i=t<0?0:t,this.limitType=Kw):(i=this.stock,this.limitType=Qh),i},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,i=t.quotaText,n=t.hideQuotaText;if(n)return"";var r="";if(i)r=i;else{var a=[];this.startSaleNum>1&&a.push(wr("quotaStart",this.startSaleNum)),this.quota>0&&a.push(wr("quotaLimit",this.quota)),r=a.join(wr("comma"))}return r}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var i=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(i),this.$emit("change",i)},checkState:function(t,i){this.currentNum<t||t>i?this.currentNum=t:this.currentNum>i&&(this.currentNum=i),this.skuEventBus.$emit("sku:stepperState",{valid:t<=i,min:t,max:i,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,i=arguments[0];return i("div",{class:"van-sku-stepper-stock"},[i("div",{class:"van-sku__stepper-title"},[this.stepperTitle||wr("num")]),i(Jh,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(r){t.currentNum=r}}}),!this.hideQuotaText&&this.quotaText&&i("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function Ww(e){var t=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return t.test(e.trim())}function ed(e){return Array.isArray(e)?e:[e]}function id(e,t){return new Promise(function(i){if(t==="file"){i(null);return}var n=new FileReader;n.onload=function(r){i(r.target.result)},t==="dataUrl"?n.readAsDataURL(e):t==="text"&&n.readAsText(e)})}function nd(e,t){return ed(e).some(function(i){return i?Ti(t)?t(i):i.size>t:!1})}var Yw=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Xw(e){return Yw.test(e)}function rd(e){return e.isImage?!0:e.file&&e.file.type?e.file.type.indexOf("image")===0:e.url?Xw(e.url):e.content?e.content.indexOf("data:image")===0:!1}var ad=$("uploader"),Gw=ad[0],xt=ad[1],sd=Gw({inheritAttrs:!1,mixins:[We],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return st(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach(function(t){return URL.revokeObjectURL(t)})},methods:{getDetail:function(t){return t===void 0&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var i=this,n=t.target.files;if(!(this.disabled||!n.length)){if(n=n.length===1?n[0]:[].slice.call(n),this.beforeRead){var r=this.beforeRead(n,this.getDetail());if(!r){this.resetInput();return}if(An(r)){r.then(function(a){a?i.readFile(a):i.readFile(n)}).catch(this.resetInput);return}}this.readFile(n)}},readFile:function(t){var i=this,n=nd(t,this.maxSize);if(Array.isArray(t)){var r=this.maxCount-this.fileList.length;t.length>r&&(t=t.slice(0,r)),Promise.all(t.map(function(a){return id(a,i.resultType)})).then(function(a){var s=t.map(function(o,l){var c={file:o,status:"",message:""};return a[l]&&(c.content=a[l]),c});i.onAfterRead(s,n)})}else id(t,this.resultType).then(function(a){var s={file:t,status:"",message:""};a&&(s.content=a),i.onAfterRead(s,n)})},onAfterRead:function(t,i){var n=this;this.resetInput();var r=t;if(i){var a=t;Array.isArray(t)?(a=[],r=[],t.forEach(function(o){o.file&&(nd(o.file,n.maxSize)?a.push(o):r.push(o))})):r=null,this.$emit("oversize",a,this.getDetail())}var s=Array.isArray(r)?Boolean(r.length):Boolean(r);s&&(this.$emit("input",[].concat(this.fileList,ed(r))),this.afterRead&&this.afterRead(r,this.getDetail()))},onDelete:function(t,i){var n,r=this,a=(n=t.beforeDelete)!=null?n:this.beforeDelete;if(a){var s=a(t,this.getDetail(i));if(!s)return;if(An(s)){s.then(function(){r.deleteFile(t,i)}).catch(Gi);return}}this.deleteFile(t,i)},deleteFile:function(t,i){var n=this.fileList.slice(0);n.splice(i,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(i))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var i=this;if(!!this.previewFullImage){var n=this.fileList.filter(function(a){return rd(a)}),r=n.map(function(a){return a.file&&!a.url&&a.status!=="failed"&&(a.url=URL.createObjectURL(a.file),i.urls.push(a.url)),a.url});this.imagePreview=ds(L({images:r,startPosition:n.indexOf(t),onClose:function(){i.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var i=this.$createElement,n=t.status,r=t.message;if(n==="uploading"||n==="failed"){var a=n==="failed"?i(Z,{attrs:{name:"close"},class:xt("mask-icon")}):i(de,{class:xt("loading")}),s=nt(r)&&r!=="";return i("div",{class:xt("mask")},[a,s&&i("div",{class:xt("mask-message")},[r])])}},genPreviewItem:function(t,i){var n,r=this,a,s,o=this.$createElement,l=(n=t.deletable)!=null?n:this.deletable,c=t.status!=="uploading"&&l,h=c&&o("div",{class:xt("preview-delete"),on:{click:function(w){w.stopPropagation(),r.onDelete(t,i)}}},[o(Z,{attrs:{name:"cross"},class:xt("preview-delete-icon")})]),d=this.slots("preview-cover",L({index:i},t)),u=d&&o("div",{class:xt("preview-cover")},[d]),f=(a=t.previewSize)!=null?a:this.previewSize,p=(s=t.imageFit)!=null?s:this.imageFit,m=rd(t)?o(Mi,{attrs:{fit:p,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:xt("preview-image"),on:{click:function(){r.onPreviewImage(t)}}},[u]):o("div",{class:xt("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[o(Z,{class:xt("file-icon"),attrs:{name:"description"}}),o("div",{class:[xt("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),u]);return o("div",{class:xt("preview"),on:{click:function(){r.$emit("click-preview",t,r.getDetail(i))}}},[m,this.genPreviewMask(t),h])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)){var i=this.slots(),n=this.readonly?null:t("input",{attrs:L({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:xt("input"),on:{change:this.onChange}});if(i)return t("div",{class:xt("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[i,n]);var r;if(this.previewSize){var a=this.previewSizeWithUnit;r={width:a,height:a}}return t("div",{directives:[{name:"show",value:this.showUpload}],class:xt("upload",{readonly:this.readonly}),style:r,on:{click:this.onClickUpload}},[t(Z,{attrs:{name:this.uploadIcon},class:xt("upload-icon")}),this.uploadText&&t("span",{class:xt("upload-text")},[this.uploadText]),n])}}},render:function(){var t=arguments[0];return t("div",{class:xt()},[t("div",{class:xt("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),od=$("sku-img-uploader"),qw=od[0],Ls=od[2],Jw=qw({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){t?this.fileList=[{url:t,isImage:!0}]:this.fileList=[]}},methods:{afterReadFile:function(t){var i=this;t.status="uploading",t.message=Ls("uploading"),this.uploadImg(t.file,t.content).then(function(n){t.status="done",i.$emit("input",n)}).catch(function(){t.status="failed",t.message=Ls("fail")})},onOversize:function(){this.$toast(Ls("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var t=this;this.customUpload&&this.customUpload().then(function(i){t.fileList.push({url:i}),t.$emit("input",i)})}},render:function(){var t=this,i=arguments[0];return i(sd,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:this.maxSize*1024*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:t.fileList,callback:function(r){t.fileList=r}}})}});function Zw(e){return e?new Date(e.replace(/-/g,"/")):null}function Qw(e,t){if(t===void 0&&(t="date"),!e)return"";var i=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),a=i+"-"+gt(n)+"-"+gt(r);if(t==="datetime"){var s=e.getHours(),o=e.getMinutes();a+=" "+gt(s)+":"+gt(o)}return a}var ld=$("sku-datetime-field"),tC=ld[0],cd=ld[2],eC=tC({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:this.type==="time"?"":new Date,minDate:new Date(new Date().getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=Zw(t)||new Date;break}}},computed:{title:function(){return cd("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var i=t;this.type!=="time"&&(i=Qw(t,this.type)),this.$emit("input",i),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,i){var n=cd("format."+t);return""+i+n}},render:function(){var t=this,i=arguments[0];return i(ie,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[i(_e,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(r){t.showDatePicker=r}}},[i(Pu,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),As=$("sku-messages"),iC=As[0],Pi=As[1],mi=As[2],ud=iC({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var i=this.messageConfig,n=i.initialMessages,r=n===void 0?{}:n;return(t||[]).map(function(a){return{value:r[a.name]||""}})},getType:function(t){return+t.multiple==1?"textarea":t.type==="id_no"?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach(function(i,n){t["message_"+n]=i.value}),t},getCartMessages:function(){var t=this,i={};return this.messageValues.forEach(function(n,r){var a=t.messages[r];i[a.name]=n.value}),i},getPlaceholder:function(t){var i=+t.multiple==1?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[i]||mi("placeholder."+i)},validateMessages:function(){for(var t=this.messageValues,i=0;i<t.length;i++){var n=t[i].value,r=this.messages[i];if(n===""){if(String(r.required)==="1"){var a=mi(r.type==="image"?"upload":"fill");return a+r.name}}else{if(r.type==="tel"&&!ca(n))return mi("invalid.tel");if(r.type==="mobile"&&!/^\d{6,20}$/.test(n))return mi("invalid.mobile");if(r.type==="email"&&!Ww(n))return mi("invalid.email");if(r.type==="id_no"&&(n.length<15||n.length>18))return mi("invalid.id_no")}}},getFormatter:function(t){return function(n){return t.type==="mobile"||t.type==="tel"?n.replace(/[^\d.]/g,""):n}},getExtraDesc:function(t){var i=this.$createElement,n=t.extraDesc;if(n)return i("div",{class:Pi("extra-message")},[n])},genMessage:function(t,i){var n=this,r=this.$createElement;if(t.type==="image")return r(Ft,{key:this.goodsId+"-"+i,attrs:{title:t.name,required:String(t.required)==="1",valueClass:Pi("image-cell-value")},class:Pi("image-cell")},[r(Jw,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),r("div",{class:Pi("image-cell-label")},[mi("imageLabel")])]);var a=["date","time"].indexOf(t.type)>-1;return a?r(eC,{attrs:{label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}):r("div",{class:Pi("cell-block")},[r(ie,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:String(t.required)==="1",placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t),border:!1},key:this.goodsId+"-"+i,model:{value:n.messageValues[i].value,callback:function(o){n.$set(n.messageValues[i],"value",o)}}}),this.getExtraDesc(t)])}},render:function(){var t=arguments[0];return t("div",{class:Pi()},[this.messages.map(this.genMessage)])}}),Ps=$("sku-actions"),nC=Ps[0],rC=Ps[1],hd=Ps[2];function dd(e,t,i,n){var r=function(s){return function(){t.skuEventBus.$emit(s)}};return e("div",et([{class:rC()},lt(n)]),[t.showAddCartBtn&&e(At,{attrs:{size:"large",type:"warning",text:t.addCartText||hd("addCart")},on:{click:r("sku:addCart")}}),e(At,{attrs:{size:"large",type:"danger",text:t.buyText||hd("buy")},on:{click:r("sku:buy")}})])}dd.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var fd=nC(dd),Ns=$("sku"),aC=Ns[0],sC=Ns[1],se=Ns[2],oC=gr.QUOTA_LIMIT,Se=aC({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var t=window.innerHeight-this.bodyOffsetTop;return{maxHeight:t+"px"}}},isSkuCombSelected:function(){var t=this;return this.hasSku&&!Rh(this.skuTree,this.selectedSku)?!1:!this.propList.filter(function(i){return i.is_necessary!==!1}).some(function(i){return(t.selectedProp[i.k_id]||[]).length===0})},isSkuEmpty:function(){return Object.keys(this.sku).length===0},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(this.hasSku?t=Vh(this.skuList,this.selectedSku):t={id:this.sku.collection_id,price:Math.round(this.sku.price*100),stock_num:this.sku.stock_num},t&&(t.properties=Hh(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(i,n){return i+(n.price||0)},0))),t},selectedSkuValues:function(){return zh(this.skuTree,this.selectedSku)},selectedPropValues:function(){return jh(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(i){!i.v||i.v.forEach(function(n){var r=n.previewImgUrl||n.imgUrl||n.img_url;r&&t.indexOf(r)===-1&&t.push(r)})}),t},stock:function(){var t=this.customStepperConfig.stockNum;return t!==void 0?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,i=this.customStepperConfig.stockFormatter;return i?i(this.stock):[se("stock")+" ",t("span",{class:sC("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+se("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var i=this.selectedSkuValues.concat(this.selectedPropValues);return se("selected")+" "+i.map(function(a){return a.name}).join(" ")}var n=this.skuTree.filter(function(a){return t.selectedSku[a.k_s]===pi}).map(function(a){return a.k}),r=this.propList.filter(function(a){return(t.selectedProp[a.k_id]||[]).length<1}).map(function(a){return a.k});return se("select")+" "+n.concat(r).join(" ")}},created:function(){var t=new _t.default;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,i=this.initialSku.selectedNum,n=i!=null?i:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach(function(s){t.selectedSku[s.k_s]=pi}),this.skuTree.forEach(function(s){var o=s.k_s,l=s.v.length===1?s.v[0].id:t.initialSku[o];l&&Es(t.skuList,t.selectedSku,{key:o,valueId:l})&&(t.selectedSku[o]=l)});var i=this.selectedSkuValues;i.length>0&&this.$nextTick(function(){t.$emit("sku-selected",{skuValue:i[i.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})}),this.selectedProp={};var n=this.initialSku.selectedProp,r=n===void 0?{}:n;this.propList.forEach(function(s){r[s.k_id]&&(t.selectedProp[s.k_id]=r[s.k_id])}),ug(this.selectedProp)&&this.propList.forEach(function(s){var o;if((s==null||(o=s.v)==null?void 0:o.length)>0){var l=s.v,c=s.k_id,h=l.some(function(u){return+u.price!=0});if(!h){var d=l.find(function(u){return u.text_status!==0});d&&(t.selectedProp[c]=[d.id])}}});var a=this.selectedPropValues;a.length>0&&this.$emit("sku-prop-selected",{propValue:a[a.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(this.selectedNum===0)return se("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return se("selectSku")},onSelect:function(t){var i,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?L({},this.selectedSku,(i={},i[t.skuKeyStr]=pi,i)):L({},this.selectedSku,(n={},n[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var i,n=this.selectedProp[t.skuKeyStr]||[],r=n.indexOf(t.id);r>-1?n.splice(r,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=L({},this.selectedProp,(i={},i[t.skuKeyStr]=n,i)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var i=this,n=this.imageList,r=0,a=n[0];t&&t.imgUrl&&(this.imageList.some(function(o,l){return o===t.imgUrl?(r=l,!0):!1}),a=t.imgUrl);var s=L({},t,{index:r,imageList:this.imageList,indexImage:a});this.$emit("open-preview",s),this.previewOnClickImage&&ds({images:this.imageList,startPosition:r,onClose:function(){i.$emit("close-preview",s)}})},onOverLimit:function(t){var i=t.action,n=t.limitType,r=t.quota,a=t.quotaUsed,s=this.customStepperConfig.handleOverLimit;if(s){s(t);return}i==="minus"?this.startSaleNum>1?wt(se("minusStartTip",this.startSaleNum)):wt(se("minusTip")):i==="plus"&&(n===oC?a>0?wt(se("quotaUsedTip",r,a)):wt(se("quotaTip",r)):wt(se("soldout")))},onStepperState:function(t){this.stepperError=t.valid?null:L({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var i=this.validateSku();i?wt(i):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach(function(i){var n=i.skuRow||{},r=n.k_s;i.centerItem(t.initialSku[r])})}},render:function(){var t=this,i=arguments[0];if(!this.isSkuEmpty){var n=this.sku,r=this.skuList,a=this.goods,s=this.price,o=this.lazyLoad,l=this.originPrice,c=this.skuEventBus,h=this.selectedSku,d=this.selectedProp,u=this.selectedNum,f=this.stepperTitle,p=this.selectedSkuComb,m=this.showHeaderImage,v=this.disableSoldoutSku,w={price:s,originPrice:l,selectedNum:u,skuEventBus:c,selectedSku:h,selectedSkuComb:p},x=function(z){return t.slots(z,w)},E=x("sku-header")||i(Wh,{attrs:{sku:n,goods:a,skuEventBus:c,selectedSku:h,showHeaderImage:m}},[i("template",{slot:"sku-header-image-extra"},[x("sku-header-image-extra")]),x("sku-header-price")||i("div",{class:"van-sku__goods-price"},[i("span",{class:"van-sku__price-symbol"},["\uFFE5"]),i("span",{class:"van-sku__price-num"},[s]),this.priceTag&&i("span",{class:"van-sku__price-tag"},[this.priceTag])]),x("sku-header-origin-price")||l&&i(yr,[se("originPrice")," \uFFE5",l]),!this.hideStock&&i(yr,[i("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&i(yr,[this.selectedText]),x("sku-header-extra")]),_=x("sku-group")||this.hasSkuOrAttr&&i("div",{class:this.skuGroupClass},[this.skuTree.map(function(R){return i(Os,{attrs:{skuRow:R},ref:"skuRows",refInFor:!0},[R.v.map(function(z){return i(Xh,{attrs:{skuList:r,lazyLoad:o,skuValue:z,skuKeyStr:R.k_s,selectedSku:h,skuEventBus:c,disableSoldoutSku:v,largeImageMode:R.largeImageMode}})})])}),this.propList.map(function(R){return i(Os,{attrs:{skuRow:R}},[R.v.map(function(z){return i(Gh,{attrs:{skuValue:z,skuKeyStr:R.k_id+"",selectedProp:d,skuEventBus:c,multiple:R.is_multiple,disabled:z.text_status===0}})})])})]),T=x("sku-stepper")||i(td,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:c,selectedNum:u,stepperTitle:f,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(z){t.$emit("stepper-change",z)}}}),O=x("sku-messages")||i(ud,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),X=x("sku-actions")||i(fd,{attrs:{buyText:this.buyText,skuEventBus:c,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return i(_e,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(z){t.show=z}}},[E,i("div",{class:"van-sku-body",style:this.bodyStyle},[x("sku-body-top"),_,x("extra-sku-group"),T,x("before-sku-messages"),O,x("after-sku-messages")]),x("sku-actions-top"),X])}}});la.add(Tw),Se.SkuActions=fd,Se.SkuHeader=Wh,Se.SkuHeaderItem=yr,Se.SkuMessages=ud,Se.SkuStepper=td,Se.SkuRow=Os,Se.SkuRowItem=Xh,Se.SkuRowPropItem=Gh,Se.skuHelper=Ew,Se.skuConstants=_w;var pd=$("slider"),lC=pd[0],Cr=pd[1],md=function(t,i){return JSON.stringify(t)===JSON.stringify(i)},cC=lC({mixins:[ee,We],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=st(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){this.dragStatus==="start"&&this.$emit("drag-start"),It(t,!0),this.touchMove(t),this.dragStatus="draging";var i=this.$el.getBoundingClientRect(),n=this.vertical?this.deltaY:this.deltaX,r=this.vertical?i.height:i.width,a=n/r*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+a:this.currentValue=this.startValue+a,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||(this.dragStatus==="draging"&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var i=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-i.top:t.clientX-i.left,r=this.vertical?i.height:i.width,a=+this.min+n/r*this.scope;if(this.range){var s=this.value,o=s[0],l=s[1],c=(o+l)/2;a<=c?o=a:l=a,a=[o,l]}this.startValue=this.value,this.updateValue(a,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=Zi(t),t.reverse()):t},updateValue:function(t,i){this.range?t=this.handleOverlap(t).map(this.format):t=this.format(t),md(t,this.value)||this.$emit("input",t),i&&!md(t,this.startValue)&&this.$emit("change",t)},format:function(t){var i=+this.min,n=+this.max,r=+this.step;t=Lt(t,i,n);var a=Math.round((t-i)/r)*r;return oc(i,a)}},render:function(){var t,i=this,n,r=arguments[0],a=this.vertical,s=a?"height":"width",o=a?"width":"height",l=(t={background:this.inactiveColor},t[o]=st(this.barHeight),t),c=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[1]-p[0])*100/w+"%":(p-m)*100/w+"%"},h=function(){var p=i.value,m=i.min,v=i.range,w=i.scope;return v?(p[0]-m)*100/w+"%":null},d=(n={},n[s]=c(),n.left=this.vertical?null:h(),n.top=this.vertical?h():null,n.background=this.activeColor,n);this.dragStatus&&(d.transition="none");var u=function(p){var m=["left","right"],v=typeof p=="number",w=v?i.value[p]:i.value,x=function(){return v?"button-wrapper-"+m[p]:"button-wrapper"},E=function(){return v?"wrapper"+p:"wrapper"},_=function(){if(v){var O=i.slots(p===0?"left-button":"right-button",{value:w});if(O)return O}return i.slots("button")?i.slots("button"):r("div",{class:Cr("button"),style:i.buttonStyle})};return r("div",{ref:E(),attrs:{role:"slider",tabindex:i.disabled?-1:0,"aria-valuemin":i.min,"aria-valuenow":i.value,"aria-valuemax":i.max,"aria-orientation":i.vertical?"vertical":"horizontal"},class:Cr(x()),on:{touchstart:function(){v&&(i.index=p)},click:function(O){return O.stopPropagation()}}},[_()])};return r("div",{style:l,class:Cr({disabled:this.disabled,vertical:a}),on:{click:this.onClick}},[r("div",{class:Cr("bar"),style:d},[this.range?[u(0),u(1)]:u()])])}}),vd=$("step"),uC=vd[0],Qe=vd[1],hC=uC({mixins:[Ht("vanSteps")],computed:{status:function(){if(this.index<this.parent.active)return"finish";if(this.index===+this.parent.active)return"process"},active:function(){return this.status==="process"},lineStyle:function(){var t=this.parent,i=t.activeColor,n=t.inactiveColor,r=t.center,a=t.direction,s={background:this.status==="finish"?i:n};return r&&a==="vertical"&&(s.top="50%"),s},circleContainerStyle:function(){if(this.parent.center&&this.parent.direction==="vertical")return{top:"50%"}},titleStyle:function(){if(this.active)return{color:this.parent.activeColor};if(!this.status)return{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,i=this.parent,n=i.activeIcon,r=i.iconPrefix,a=i.activeColor,s=i.finishIcon,o=i.inactiveIcon;if(this.active)return this.slots("active-icon")||t(Z,{class:Qe("icon","active"),attrs:{name:n,color:a,classPrefix:r}});var l=this.slots("finish-icon");if(this.status==="finish"&&(s||l))return l||t(Z,{class:Qe("icon","finish"),attrs:{name:s,color:a,classPrefix:r}});var c=this.slots("inactive-icon");return o||c?c||t(Z,{class:Qe("icon"),attrs:{name:o,classPrefix:r}}):t("i",{class:Qe("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,i=arguments[0],n=this.status,r=this.active,a=this.parent.direction;return i("div",{class:[pe,Qe([a,(t={},t[n]=n,t)])]},[i("div",{class:Qe("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),i("div",{class:Qe("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),i("div",{class:Qe("line"),style:this.lineStyle})])}}),gd=$("steps"),dC=gd[0],yd=gd[1],fC=dC({mixins:[Ut("vanSteps")],props:{center:Boolean,iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:yd([this.direction])},[t("div",{class:yd("items")},[this.slots()])])}}),Bs=$("submit-bar"),pC=Bs[0],Oe=Bs[1],mC=Bs[2];function bd(e,t,i,n){var r=t.tip,a=t.price,s=t.tipIcon;function o(){if(typeof a=="number"){var c=(a/100).toFixed(t.decimalLength).split("."),h=t.decimalLength?"."+c[1]:"";return e("div",{style:{textAlign:t.textAlign?t.textAlign:""},class:Oe("text")},[e("span",[t.label||mC("label")]),e("span",{class:Oe("price")},[t.currency,e("span",{class:Oe("price","integer")},[c[0]]),h]),t.suffixLabel&&e("span",{class:Oe("suffix-label")},[t.suffixLabel])])}}function l(){if(i.tip||r)return e("div",{class:Oe("tip")},[s&&e(Z,{class:Oe("tip-icon"),attrs:{name:s}}),r&&e("span",{class:Oe("tip-text")},[r]),i.tip&&i.tip()])}return e("div",et([{class:Oe({unfit:!t.safeAreaInsetBottom})},lt(n)]),[i.top&&i.top(),l(),e("div",{class:Oe("bar")},[i.default&&i.default(),o(),i.button?i.button():e(At,{attrs:{round:!0,type:t.buttonType,text:t.loading?"":t.buttonText,color:t.buttonColor,loading:t.loading,disabled:t.disabled},class:Oe("button",t.buttonType),on:{click:function(){at(n,"submit")}}})])])}bd.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"\xA5"},buttonType:{type:String,default:"danger"}};var vC=pC(bd),Sd=$("swipe-cell"),gC=Sd[0],xr=Sd[1],wd=.15,yC=gC({mixins:[ee,ls({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){if(this.$refs[t]){var i=this.$refs[t].getBoundingClientRect();return i.width}return 0},open:function(t){var i=t==="left"?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=i,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){if(!this.disabled&&(this.touchMove(t),this.direction==="horizontal")){this.dragging=!0,this.lockClick=!0;var i=!this.opened||this.deltaX*this.startOffset<0;i&&It(t,this.stopPropagation),this.offset=Lt(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){t.lockClick=!1},0))},toggle:function(t){var i=Math.abs(this.offset),n=this.opened?1-wd:wd,r=this.computedLeftWidth,a=this.computedRightWidth;a&&t==="right"&&i>a*n?this.open("right"):r&&t==="left"&&i>r*n?this.open("left"):this.close()},onClick:function(t){t===void 0&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,i){var n=this;return function(r){i&&r.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,i=this.slots("left");if(i)return t("div",{ref:"left",class:xr("left"),on:{click:this.getClickHandler("left",!0)}},[i])},genRightPart:function(){var t=this.$createElement,i=this.slots("right");if(i)return t("div",{ref:"right",class:xr("right"),on:{click:this.getClickHandler("right",!0)}},[i])}},render:function(){var t=arguments[0],i={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:xr(),on:{click:this.getClickHandler("cell")}},[t("div",{class:xr("wrapper"),style:i},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Cd=$("switch-cell"),bC=Cd[0],SC=Cd[1];function xd(e,t,i,n){return e(Ft,et([{attrs:{center:!0,size:t.cellSize,title:t.title,border:t.border},class:SC([t.cellSize])},lt(n)]),[e(Xn,{props:L({},t),on:L({},n.listeners)})])}xd.props=L({},Mc,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var wC=bC(xd),$d=$("tabbar"),CC=$d[0],kd=$d[1],Fs=CC({mixins:[Ut("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return this.safeAreaInsetBottom!==null?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){var t=this;if(this.placeholder&&this.fixed){var i=function(){t.height=t.$refs.tabbar.getBoundingClientRect().height};i(),setTimeout(i,100)}},methods:{setActiveItem:function(){var t=this;this.children.forEach(function(i,n){i.nameMatched=i.name===t.value||n===t.value})},triggerChange:function(t,i){var n=this;Qc({interceptor:this.beforeChange,args:[t],done:function(){n.$emit("input",t),n.$emit("change",t),i()}})},genTabbar:function(){var t,i=this.$createElement;return i("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[zn]=this.border,t),kd({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:kd("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),Td=$("tabbar-item"),xC=Td[0],Rs=Td[1],Vs=xC({mixins:[Ht("vanTabbar")],props:L({},Ke,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{nameMatched:!1}},computed:{active:function(){var t=this.parent.route;if(t&&"$route"in this){var i=this.to,n=this.$route,r=ue(i)?i:{path:i};return!!n.matched.find(function(a){var s=a.path===""?"/":a.path,o=r.path===s,l=nt(r.name)&&r.name===a.name;return o||l})}return this.nameMatched}},methods:{onClick:function(t){var i=this;this.active||this.parent.triggerChange(this.name||this.index,function(){ci(i.$router,i)}),this.$emit("click",t)},genIcon:function(){var t=this.$createElement,i=this.slots("icon",{active:this.active});if(i)return i;if(this.icon)return t(Z,{attrs:{name:this.icon,classPrefix:this.iconPrefix}})}},render:function(){var t,i=arguments[0],n=this.active,r=this.parent[n?"activeColor":"inactiveColor"];return i("div",{class:Rs({active:n}),style:{color:r},on:{click:this.onClick}},[i("div",{class:Rs("icon")},[this.genIcon(),i(li,{attrs:{dot:this.dot,info:(t=this.badge)!=null?t:this.info}})]),i("div",{class:Rs("text")},[this.slots("default",{active:n})])])}}),_d=$("tree-select"),$C=_d[0],Ni=_d[1];function Id(e,t,i,n){var r=t.items,a=t.height,s=t.activeId,o=t.selectedIcon,l=t.mainActiveIndex,c=r[+l]||{},h=c.children||[],d=Array.isArray(s);function u(m){return d?s.indexOf(m)!==-1:s===m}var f=r.map(function(m){var v;return e(Ah,{attrs:{dot:m.dot,info:(v=m.badge)!=null?v:m.info,title:m.text,disabled:m.disabled},class:[Ni("nav-item"),m.className]})});function p(){return i.content?i.content():h.map(function(m){return e("div",{key:m.id,class:["van-ellipsis",Ni("item",{active:u(m.id),disabled:m.disabled})],on:{click:function(){if(!m.disabled){var w=m.id;if(d){w=s.slice();var x=w.indexOf(m.id);x!==-1?w.splice(x,1):w.length<t.max&&w.push(m.id)}at(n,"update:active-id",w),at(n,"click-item",m),at(n,"itemclick",m)}}}},[m.text,u(m.id)&&e(Z,{attrs:{name:o},class:Ni("selected")})])})}return e("div",et([{class:Ni(),style:{height:st(a)}},lt(n)]),[e(Oh,{class:Ni("nav"),attrs:{activeKey:l},on:{change:function(v){at(n,"update:main-active-index",v),at(n,"click-nav",v),at(n,"navclick",v)}}},[f]),e("div",{class:Ni("content")},[p()])])}Id.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var kC=$C(Id);function TC(e){var t=[Fg,wy,My,pc,Ly,At,Xy,Jy,hb,Ft,cu,hu,gb,wb,$b,_b,Db,Ob,Ab,Bb,Hb,is,Gb,Zb,Pu,ft,oS,cS,hS,mS,ie,yS,Ic,Ta,SS,xS,kS,Z,Mi,ds,PS,FS,li,zS,de,la,HS,KS,ae,QS,zl,e0,n0,a0,xa,tw,_e,iw,sw,Aa,La,cw,dw,mw,bw,Oh,Ah,kw,Se,cC,hC,Jh,fC,iu,vC,Yu,yC,Gu,Xn,wC,Zn,Fs,Vs,Ua,qn,wt,kC,sd];t.forEach(function(i){i.install?e.use(i):i.name&&e.component(i.name,i)})}typeof window!="undefined"&&window.Vue&&TC(window.Vue);const zs=location.pathname.includes("scyxweb");function _C(e){return M.axios.get(`${location.protocol}//${location.host}${zs?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,{params:e})}function IC(e){return M.axios.post(`${location.protocol}//${location.host}${zs?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,e)}function Ed(){return console.log("getUserDefaultUrl begin"),M.axios.get(`${location.protocol}//${location.host}${zs?"/scyxgateway":""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`)}var EC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-login"},[i("div",{staticClass:"ind-login-con"},[i("div",{staticClass:"ind-panel"},[i("div",{staticClass:"ind-panel-title"},[e._v("\u6B22\u8FCE\u767B\u5F55")]),i("LoginForm",{ref:"login",attrs:{msg:e.msg,loading:e.loading},on:{"on-success-valid":e.handleSubmit}})],1)])])},DC=[];const MC={name:"IndMLogin",components:{LoginForm:jv},data(){return{loading:!1,msg:""}},mounted(){M.clearSessionStorage();let e=this.$store.getters.getTheme;wi(e)},methods:{...pl(["handleLogin"]),async handleSubmit({userName:e,password:t,validCodeInput:i,validCodeId:n}){this.msg="",this.loading=!0;try{const r=await this.handleLogin({userName:e,password:t,validCodeId:n,validCodeInput:i});r?r.startsWith("http://")||r.startsWith("https://")?location.href=r:this.$router.push(r,()=>{this.loading=!1}):(Ed().then(a=>{location.href=a.data||"/hbwebchat/scyxweb/ind-mobile/workBench"}),this.$router.push({name:Te.homeRouteName},()=>{this.loading=!1}))}catch(r){this.msg=r.msg,this.loading=!1}},getCryptorPassword(e,t){return M.cryptor.encryptForLogin(M.cryptor.encryptForLogin(e,"sm3",!0)+t,"sm3",!1)}}},Dd={};var OC=Y(MC,EC,DC,!1,LC,null,null,null);function LC(e){for(let t in Dd)this[t]=Dd[t]}var js=function(){return OC.exports}(),AC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-search",{attrs:{"show-action":e.showFilter,placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:function(n){return e.$emit("doSearch",e.searchVal)}},scopedSlots:e._u([{key:"action",fn:function(){return[i("div",{class:["toggle-condition",e.isFiltering?"active":""],on:{click:function(n){return e.$emit("showCondition")}}})]},proxy:!0}]),model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}})},PC=[];const NC={props:{value:String,showFilter:Boolean,isFiltering:Boolean},data(){return{searchVal:""}},created(){this.searchVal=this.value},watch:{searchVal(){this.$emit("input",this.searchVal)}},methods:{}},Md={};var BC=Y(NC,AC,PC,!1,FC,null,null,null);function FC(e){for(let t in Md)this[t]=Md[t]}var RC=function(){return BC.exports}(),VC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-condition-bar"},e._l(e.searchFormFields,function(n,r){return i("div",{key:"item"+r,staticClass:"ind-mobile-condition-item"},[e._v(" "+e._s(e.searchForm[n.formKey]||n.title)+" ")])}),0)},zC=[];const jC={props:{searchForm:Object,searchFormFields:Array}},Od={};var HC=Y(jC,VC,zC,!1,UC,null,null,null);function UC(e){for(let t in Od)this[t]=Od[t]}var KC=function(){return HC.exports}(),WC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-mobile-search ind-flex-no-shrink"},[i("SearchTop",{attrs:{value:e.searchVal,isFiltering:e.isFiltering,showFilter:e.showFilter},on:{input:function(n){return e.$emit("update:searchVal",n)},doSearch:function(n){return e.$emit("doSearchFilter",n)},showCondition:e.showCondition}}),e.showFilter?i("van-popup",{style:{width:"80%",marginTop:e.$config.searchPaddingTop||"0px",height:"calc(100vh - "+(e.$config.searchPaddingTop||"0px")+")",top:"calc(50% - "+(e.$config.searchPaddingTop/2||"0px")+")"},attrs:{position:"right",overlay:!e.$config.hideOverlay},model:{value:e.displayCondition,callback:function(n){e.displayCondition=n},expression:"displayCondition"}},[i("div",{staticClass:"ind-page-view ind-flex-column",staticStyle:{height:"100% !important"}},[i("IndMForm",{staticClass:"height100",staticStyle:{background:"var(--ind-white)"},attrs:{formType:"searchMobile",fieldList:e.fieldList},model:{value:e.searchForm,callback:function(n){e.searchForm=n},expression:"searchForm"}}),i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)],1)]):e._e()],1)},YC=[];const XC={components:{SearchTop:RC,ConditionBar:KC},props:{showFilter:Boolean,value:Object,searchVal:String,fieldList:Array},data(){return{displayCondition:!1,searchForm:{}}},created(){this.searchForm=this.value},computed:{isFiltering(){return!y.default.isEmpty(this.searchForm)}},watch:{value:{handler:function(){this.searchForm=this.value},deep:!0}},methods:{showCondition(){this.displayCondition=!0},cancel(){this.displayCondition=!1,this.$emit("cancel")},confirm(){this.displayCondition=!1,this.$emit("doSearch",this.searchForm)}}},Ld={};var GC=Y(XC,WC,YC,!1,qC,null,null,null);function qC(e){for(let t in Ld)this[t]=Ld[t]}var Ad=function(){return GC.exports}(),JC=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-popup",{style:{width:"100%",height:"100%"},attrs:{value:e.show,position:"right","lazy-render":!0,"get-container":"body"},on:{opened:e.getTableData}},[i("div",{staticClass:"ind-select-panel ind-vcenter",class:[e.isTree?"ind-mobile-tree":"",e.showHeader?"ind-select-panel-widthheader":""],staticStyle:{width:"100%",height:"100vh"},style:{paddingBottom:e.multiple&&!e.showHeader?"20px":"0"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u8BF7\u9009\u62E9"+e.title,"left-text":"","left-arrow":""},on:{"click-left":e.cancel}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[i("van-search",{staticClass:"ind-flex-no-shrink",staticStyle:{position:"relative","z-index":"3"},attrs:{placeholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"},on:{search:e.doSearch},model:{value:e.searchVal,callback:function(n){e.searchVal=n},expression:"searchVal"}}),i("IndTable",{ref:"table",attrs:{rowClick:"",rowBuffer:1e3,headerHeight:49,rowMultiSelectWithClick:e.multiple,isRowSelectable:e.isRowSelectable,groupSelectsChildren:e.multiple,showBottom:!1,dataApi:e.selectDataApi,searchParams:e.searchParams,columns:e.columnsData,rowKey:e.selectRowKey,showTableOption:!1,groupDefaultExpanded:3,disablePage:""},on:{"on-select-change":e.onSelectChange,"on-data-format-load":e.setLength}}),i("div",{staticClass:"ind-bottom-info ind-bottom-btn",style:{position:e.showHeader?"static":"absolute",bottom:0},attrs:{slot:"bottom"},slot:"bottom"},[e.multiple?i("div",{staticClass:"ind-flex"},[e._v(" \u5171\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.dataLen))]),e._v("\xA0\u6761\u6570\u636E\uFF0C\u5DF2\u9009\u62E9\xA0"),i("span",{staticClass:"ind-orange ind-large"},[e._v(e._s(e.selectedRows.length))]),e._v("\xA0\u6761 ")]):e._e(),i("div",{staticClass:"ind-flex ind-space-between",class:[e.multiple?"ind-mt":""]},[e.multiple?i("div",{staticClass:"ind-flex ind-flex-no-shrink ind-checkbox-bottom ag-theme-balham ag-theme-balham-dark",staticStyle:{"margin-right":"20px"},style:{top:e.showHeader?"7px":""},on:{click:e.toggleCheckAll}},[i("div",{staticClass:"ag-checkbox-input-wrapper",class:e.allCheck?"ag-checked":""}),e._v(" \u5168\u9009 ")]):e._e(),i("div",{staticClass:"ind-flex",staticStyle:{width:"100%"}},[i("IndButton",{attrs:{bizType:"cancel"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1)])])],1)],1)])},ZC=[];function Pd(e,t,i){Array.isArray(t)&&t.length&&y.default.forEach(t,(n,r)=>{let a=!1;if(typeof i=="function")try{const s=i(n,e,r);typeof s=="boolean"&&(a=s)}catch(s){console.error(s)}a||Pd(n,n.children,i)})}const QC={props:{title:String,show:Boolean,value:Array,type:String,multiple:Boolean,options:Array,dataApi:Function,searchParams:Object,columns:Array,rowKey:String,defaultVisible:Boolean,showHeader:{type:Boolean,default:!1},enableSelectAll:Boolean},data(){return{loading:!1,searchVal:"",rows:[],selectRowKey:"",selectDataApi:null,columnsData:[],dataInited:!1,dataLen:0,allCheck:!1,selectedRows:[]}},created(){this.initConfig()},activited(){this.show&&(window.selectInst=this)},watch:{show(){window.selectInst=this},type(){this.initConfig()},multiple(){this.initConfig()},searchVal(){this.doSearch()},dataApi(){this.initConfig()},value:{handler:function(){this.setSelected()},deep:!0}},computed:{isTree(){return y.default.some(this.columnsData,e=>e.tree==!0)}},methods:{setLength(e){var t;if(this.isTree){let i=(e==null?void 0:e.data)||e,n=[];Pd({},i,(r,a,s)=>{var o;(o=r==null?void 0:r.children)!=null&&o.length||n.push(r)}),this.dataLen=(n==null?void 0:n.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.data)==null?void 0:t.length)},toggleCheckAll(){this.allCheck?this.$refs.table.deselectAll():this.$refs.table.gridApi.selectAllFiltered()},isRowSelectable(e){return e.data.disabled?!1:this.enableSelectAll||this.multiple||!this.multiple&&!(e.data.children&&e.data.children.length)},async initConfig(){if(this.dataInited=!1,!this.type){this.selectDataApi=this.dataApi,this.columnsData=this.columns,this.selectRowKey=this.rowKey,(this.defaultVisible||this.show)&&this.getTableData();return}const e={comTree:M.listComTreeApi,itemTree:M.listItemTreeApi};this.selectDataApi=e[this.type];const t={comTree:[{headerName:"\u5546\u4E1A\u516C\u53F8",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}],itemTree:[{headerName:"\u5377\u70DF\u89C4\u683C",minWidth:200,flex:1,field:"title",align:"left",tree:!0,showDisabledCheckboxes:!0,cellClass:this.multiple?"":"ind-radio",cellRendererParams:{checkbox:!0,suppressCount:!0}}]};this.columnsData=t[this.type];const i={comTree:"id",itemTree:"id"};this.selectRowKey=i[this.type],this.defaultVisible&&this.getTableData()},doSearch:y.default.debounce(function(){this.$refs.table.gridApi.setQuickFilter(this.searchVal),this.getFilteredData()},5),cancel(){this.$emit("update:show",!1)},confirm(){var t;let e=(t=this.$refs.table)==null?void 0:t.getSelection();this.$emit("input",e),this.$emit("update:show",!1)},getFilteredData(){var t;var e=[];if(this.$refs.table.gridApi.forEachNodeAfterFilterAndSort(function(i){e.push(i.data)}),this.isTree){let i=[];y.default.forEach(e,n=>{n.children.length===0&&i.push(n)}),this.dataLen=(i==null?void 0:i.length)||0}else this.dataLen=(e==null?void 0:e.length)||((t=e==null?void 0:e.filteredRows)==null?void 0:t.length)},getTableData(){if(console.log("getTableData",this.dataInited),this.dataInited){setTimeout(()=>{this.setSelected()},5);return}setTimeout(()=>{var e,t;this.dataInited=!0,(t=(e=this.$refs)==null?void 0:e.table)==null||t.tableRefresh(),this.setSelected()},5)},onSelectChange(e){var t,i,n,r;if(!this.multiple){let a=this.selectedRows.length,s=e.length;if(a===1&&s===0){(i=(t=this.$refs)==null?void 0:t.table)==null||i.setSelection(this.selectedRows,!0);return}else if(a===1&&s===2){let o=y.default.cloneDeep(e);y.default.remove(o,l=>y.default.some(this.selectedRows,c=>c[this.rowKey||"id"]==l[this.rowKey||"id"])),(r=(n=this.$refs)==null?void 0:n.table)==null||r.setSelection(o,!0);return}}this.isTree&&!this.enableSelectAll?this.selectedRows=y.default.filter(e,a=>{var s;return!((s=a==null?void 0:a.children)!=null&&s.length)}):this.selectedRows=e,this.allCheck=this.selectedRows.length==this.dataLen},async setSelected(){var e,t;await this.$nextTick(),(t=(e=this.$refs)==null?void 0:e.table)==null||t.setSelection(this.value,!this.multiple)}}},Nd={};var tx=Y(QC,JC,ZC,!1,ex,null,null,null);function ex(e){for(let t in Nd)this[t]=Nd[t]}var Bd=function(){return tx.exports}(),ix=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-input-select"},[i("Input",{staticClass:"selected-input",class:{readonly:e.readonly},attrs:{value:e.selectedTitles,title:e.selectedTitles,icon:e.readonly?"":e.inputIcon,placeholder:"\u8BF7\u9009\u62E9",readonly:""},nativeOn:{click:function(n){return e.setVisible.apply(null,arguments)}}}),i("IndMSelectPanel",e._b({attrs:{defaultVisible:e.defaultVisible,title:e.title,multiple:e.showCheckbox||e.multiple,show:e.visible,value:e.value,type:e.type,dataApi:e.dataApiComp,columns:e.columnsComp,rowKey:e.rowKeyComp,enableSelectAll:e.enableSelectAll},on:{"update:show":function(n){e.visible=n},input:function(n){return e.$emit("input",n)}}},"IndMSelectPanel",Object.assign({},e.$attrs),!1))],1)},nx=[];const rx={inheritAttrs:!1,props:{title:String,type:{type:String,default:""},multiple:Boolean,options:Array,value:Array,defaultValue:Array,defaultVisible:Boolean,singleSel:Boolean,expandNode:Boolean,readonly:Boolean,showCheckbox:Boolean,expandAll:Boolean,defaultExpandLevel:Number,dataApi:Function,columns:Array,rowKey:String,enableSelectAll:Boolean},data(){return{loading:!1,visible:!1,searchValue:"",selectedTitles:"",searchNum:0,inputIcon:"ios-arrow-forward"}},computed:{dataApiComp:function(){var e;return this.dataApi?this.dataApi:(e=this.options)!=null&&e.length?()=>Promise.resolve({data:this.options}):null},columnsComp:function(){return this.columns?this.columns:[{headerName:"\u9009\u62E9",minWidth:40,width:50,showDisabledCheckboxes:!0,type:this.multiple?"checkbox":"radio"},{headerName:"\u9009\u9879",minWidth:100,flex:1,field:"V",align:"left",showDisabledCheckboxes:!0}]},rowKeyComp:function(){var e;return this.rowKey?this.rowKey:(e=this.options)!=null&&e.length?"K":null}},created(){this.visible=this.defaultVisible,this.updateSelectedTitles()},deactivated(){this.visible=!1},watch:{value(){this.updateSelectedTitles()},options(){this.updateSelectedTitles()}},methods:{setVisible(){this.readonly||(this.visible=!0)},initSelectedTitles(e,t){this.updateSelectedTitles(t),this.loading=!1},onSelectChange(e){this.updateSelectedTitles(e),this.$emit("on-select-change",e),this.$emit("input",e),this.visible=!1},clearSelected(){this.selectedTitles=""},updateSearchNum(e){this.searchNum=e},updateSelectedTitles(){var i,n,r,a,s,o,l,c;let e=[];this.enableSelectAll?e=this.value:e=y.default.filter(this.value,h=>!h.children||h.children.length==0);let t="title";((i=this.columnsComp)==null?void 0:i.length)>1?t=this.columnsComp[1].field:(n=this.options)!=null&&n.length&&(t="V"),console.log("textField is",t),this.selectedTitles=e!=null&&e.length?(e==null?void 0:e.length)==1?(r=this.options)!=null&&r.length?((a=this.options.find(h=>h.K==e[0].K))==null?void 0:a.V)||((s=e[0])==null?void 0:s.V)||((o=e[0])==null?void 0:o.title):e[0][t]||((l=e[0])==null?void 0:l.V)||((c=e[0])==null?void 0:c.title):"\u5171\u9009\u62E9"+((e==null?void 0:e.length)||0)+"\u4E2A"+this.title:""},setSelectedTitles(e){this.selectedTitles=e}}},Fd={};var ax=Y(rx,ix,nx,!1,sx,null,null,null);function sx(e){for(let t in Fd)this[t]=Fd[t]}var Rd=function(){return ax.exports}(),ox=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"item-select-btn-panel"},[e.multiple?i("div",{class:["ind-item-btn",e.allChecked?"checked":""],on:{click:e.toggleAll}},[e._v(" \u5168\u9009 ")]):e._e(),e._l(e.options,function(n,r){return i("div",{key:"item"+r,class:["ind-item-btn",!e.multiple&&e.value==n.K||e.multiple&&e.value&&e.value.includes(n.K)?"checked":""],on:{click:function(a){return e.toggle(n)}}},[e._v(" "+e._s(n.V)+" ")])})],2)},lx=[];const cx={props:{multiple:Boolean,options:Array,value:[String,Array]},data(){return{}},computed:{allChecked:function(){var e,t;return this.multiple&&((e=this.options)==null?void 0:e.length)==((t=this.value)==null?void 0:t.length)}},methods:{toggle(e){if(this.multiple){let t=y.default.cloneDeep(this.value);t.includes(e.K)?y.default.remove(t,i=>i==e.K):t.push(e.K),this.$emit("input",t)}else this.$emit("input",e.K==this.value?"":e.K)},toggleAll(){this.allChecked?this.$emit("input",[]):this.$emit("input",this.options.map(e=>e.K))}}},Vd={};var ux=Y(cx,ox,lx,!1,hx,null,null,null);function hx(e){for(let t in Vd)this[t]=Vd[t]}var zd=function(){return ux.exports}(),dx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:""},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},fx=[];const px={name:"IndMTabbar",components:{Tabbar:Fs,TabbarItem:Vs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){var r,a,s;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(o=>o.extendProps).map(o=>({key:o.permissionId,parseResult:this.tryParseJson(o.extendProps)})).filter(o=>o.parseResult.success&&o.parseResult.result.hideInAppCenter).map(o=>o.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((s=(a=this.$config)==null?void 0:a.systemDefaultConfig)==null?void 0:s.isMobileSeparate)!="1"){let o=e.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"});e=(o==null?void 0:o.children)||[]}let n=e.filter(o=>o.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(o.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},methods:{onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},jd={};var mx=Y(px,dx,fx,!1,vx,null,null,null);function vx(e){for(let t in jd)this[t]=jd[t]}var gx=function(){return mx.exports}(),yx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("van-tabbar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,route:"","active-color":"var(--ind-m-van-swipe-dot-active-color)","inactive-color":"var(--ind-m-van-swipe-dot-color)"},on:{change:e.onChange}},e._l(e.tab_menus,function(n,r){return i("van-tabbar-item",{key:"tab"+r,attrs:{to:"/"+n.name,icon:n.meta.icon}},[e._v(e._s(n.meta.title)+" ")])}),1)],1)},bx=[];const Sx={name:"IndMTabbar",components:{Tabbar:Fs,TabbarItem:Vs},data(){return{tab_menus:[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}]}},mounted(){this.renderTabBar()},watch:{menuTreeList:{handler:function(){console.log("menuTreeList changed trigger renderTabBar"),this.renderTabBar()},deep:!0}},computed:{menuTreeList(){return console.log("menuTreeList changed in tabbar"),this.$store.getters.getMenuTreeList}},methods:{renderTabBar(){var r,a,s;let e=this.$store.getters.getMenuTreeList,i=this.$store.state.app.permissionList.filter(o=>o.extendProps).map(o=>({key:o.permissionId,parseResult:this.tryParseJson(o.extendProps)})).filter(o=>o.parseResult.success&&o.parseResult.result.hideInAppCenter).map(o=>o.key);if(((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((s=(a=this.$config)==null?void 0:a.systemDefaultConfig)==null?void 0:s.isMobileSeparate)!="1"){let o=e.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"});e=(o==null?void 0:o.children)||[]}let n=e.filter(o=>o.meta.appId===this.$store.state.app.appInfo.appId&&!i.includes(o.meta.permissionId));Array.isArray(n)&&n.length>0?this.tab_menus=n:this.tab_menus=[{type:1,name:"appsNew",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",icon:"apps-o"},extendProps:""},{type:1,name:"workBench",pid:"0",path:"",uri:"",component:"EmptyLayout",meta:{title:"\u5DE5\u4F5C\u53F0",icon:"home-o"},extendProps:""},{type:1,name:"user",pid:"0",path:"/",uri:"/",component:"EmptyLayout",meta:{title:"\u6211\u7684",icon:"user-o"},extendProps:""}],console.log(this.tab_menus)},onChange(e){console.log(e)},tryParseJson(e){try{const t=JSON.parse(e);return{success:!0,result:t}}catch(t){return{success:!1,error:t.message}}}}},Hd={};var Cx=Y(Sx,yx,bx,!1,xx,null,null,null);function xx(e){for(let t in Hd)this[t]=Hd[t]}var $x=function(){return Cx.exports}(),kx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("tabOld"):i("tabNew")},Tx=[];const _x={components:{tabNew:$x,tabOld:gx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},Ud={};var Ix=Y(_x,kx,Tx,!1,Ex,null,null,null);function Ex(e){for(let t in Ud)this[t]=Ud[t]}var ti=function(){return Ix.exports}(),Dx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticClass:"app-page",staticStyle:{"padding-top":"0"}},[i("van-cell-group",{attrs:{title:"\u4E2A\u4EBA\u4FE1\u606F"}},[i("van-cell",{attrs:{title:"\u7528\u6237\u540D",value:e.user.userName}})],1),i("van-cell-group",{attrs:{title:"\u5E94\u7528"}},[i("van-cell",{attrs:{title:"\u540D\u79F0",value:e.app.name}}),i("van-cell",{attrs:{title:"\u7F16\u7801",value:e.app.appId}}),i("van-cell",{attrs:{title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{attrs:{title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}})],1),i("van-cell-group",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],attrs:{title:"v-permission=['1221001111']",value:e.app.version}}),i("van-cell",{attrs:{title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("tabbar")],1)],1)},Mx=[];const Ox={components:{tabbar:ti},data(){return{app:{},user:{},message:"\u66F4\u591A\u8BE6\u7EC6\u4FE1\u606F\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u83B7\u53D6"}},mounted(){this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},Kd={};var Lx=Y(Ox,Dx,Mx,!1,Ax,null,null,null);function Ax(e){for(let t in Kd)this[t]=Kd[t]}var Px=function(){return Lx.exports}(),Nx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-user-wrapper",staticStyle:{position:"relative"}},[i("van-sticky",{directives:[{name:"show",rawName:"v-show",value:!e.isHb,expression:"!isHb"}]},[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:"\u6211\u7684"}})],1),i("div",{staticStyle:{position:"absolute",left:"0",width:"100%",height:"40vh","z-index":"0"},style:{top:e.isHb?"0px":"48px"}},[i("IndMImgLoad",{attrs:{pick:"home-bg",position:"center top",type:"TableData"}})],1),i("div",{staticClass:"ind-m-user-avatar-con"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar"},[i("div",{staticClass:"ind-m-user-avatar-con-avatar-img"},[i("van-image",{attrs:{round:"",width:"5rem",height:"5rem",fit:"cover",position:"center",src:e.user.avatar}})],1)]),i("div",{staticClass:"ind-m-user-avatar-con-name"},[e._v(e._s(e.user.userName))])]),i("IndMCard",{attrs:{title:"\u5E94\u7528\u4FE1\u606F"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"apps-o",title:"\u5E94\u7528\u540D\u79F0",value:e.app.name}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"qr",title:"\u5E94\u7528\u7F16\u7801",value:e.app.appId}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switch",title:"\u5E94\u7528\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).appVersion}}),i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"list-switching",title:"\u914D\u7F6E\u7248\u672C",value:e.app.extendProps.extendProps&&JSON.parse(e.app.extendProps.extendProps).profileVersion}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["12210071"],expression:"['12210071']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['12210071']",value:e.app.version}}),i("van-cell",{directives:[{name:"permission",rawName:"v-permission",value:["1221001111"],expression:"['1221001111']"}],staticClass:"ind-van-cell-bg-color",attrs:{title:"v-permission=['1221001111']",value:e.app.version}})],1),i("IndMCard",{attrs:{title:"\u901A\u7528"}},[i("van-cell",{staticClass:"ind-van-cell-bg-color",attrs:{icon:"setting-o",title:"\u8BBE\u7F6E","is-link":"",to:"/setting"}})],1),i("IndMtabbar")],1)},Bx=[];const Fx={data(){return{app:{},user:{},isHb:!1}},mounted(){this.isHb=location.pathname.includes("scyxweb"),this.app=this.$store.state.app.appInfo,this.user=this.$store.state.user}},Wd={};var Rx=Y(Fx,Nx,Bx,!1,Vx,null,null,null);function Vx(e){for(let t in Wd)this[t]=Wd[t]}var zx=function(){return Rx.exports}(),jx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("userOld"):i("userNew")},Hx=[];const Ux={components:{userOld:Px,userNew:zx},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},Yd={};var Kx=Y(Ux,jx,Hx,!1,Wx,null,null,null);function Wx(e){for(let t in Yd)this[t]=Yd[t]}var Hs=function(){return Kx.exports}(),Yx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" "+e._s(e.title)+" ")])]),i("van-grid",{attrs:{border:!1}},e._l(e.myAppList,function(n){return i("van-grid-item",{key:n.meta.permissionId,attrs:{to:n.uri}},[i("div",{staticStyle:{height:"100%"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:e.getImg(n.meta.icon,n)}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(n.meta.title))])])])])}),1)],1)},Xx=[];const Gx={name:"IndMMyApps",data(){return{myAppList:[],title:"\u6211\u7684\u5E94\u7528"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})}}},Xd={};var qx=Y(Gx,Yx,Xx,!1,Jx,null,null,null);function Jx(e){for(let t in Xd)this[t]=Xd[t]}var Us=function(){return qx.exports}(),Zx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-app-item",on:{touchstart:function(n){return e.ontouchstart(e.item)},touchmove:function(n){return e.ontouchmove(e.item)},touchend:function(n){return e.ontouchend(e.item)},click:function(n){return e.ontouchend(e.item)}}},[e.editStatus=="minus"||e.editStatus=="plus"&&e.state?i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon,e.item)}}),i("van-badge",{staticClass:"ind-app-item-icon-imgbadge",attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:e.editStatus}})]},proxy:!0}],null,!1,1274909998)})],1)]):i("div",{staticClass:"ind-app-item-icon"},[i("div",{staticClass:"ind-app-item-icon-img",style:{width:e.iconSize,height:e.iconSize}},[i("img",{attrs:{src:e.getImg(e.item.meta.icon,e.item)}})])]),i("div",{class:["ind-app-item-title",e.$config.ellipsis?"ellipsis":""]},[e._v(" "+e._s(e.item.meta.title)+" ")])])},Qx=[];const t1={name:"appsItem",props:{item:{type:Object,default:()=>({})},state:{type:Boolean,default:!1},editStatus:{type:String,default:"off"},ossServerContext:{type:String,default:"/user-manage-server"}},computed:{iconSize:function(){var e,t,i,n;return(t=(e=this.$config)==null?void 0:e.systemDefaultConfig)!=null&&t.iconSize?`${(n=(i=this.$config)==null?void 0:i.systemDefaultConfig)==null?void 0:n.iconSize}px`:"2.5rem"}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config,ossServerContext:this.ossServerContext})},ontouchstart(e){e.move=!1},ontouchmove(e){e.move=!0},ontouchend(e){e.move||this.$emit("touchend",e)}}},Gd={};var e1=Y(t1,Zx,Qx,!1,i1,null,null,null);function i1(e){for(let t in Gd)this[t]=Gd[t]}var ze=function(){return e1.exports}(),qd={exports:{}};/**!
|
|
14
14
|
* Sortable 1.10.2
|
|
15
15
|
* @author RubaXa <trash@rubaxa.org>
|
|
16
16
|
* @author owenm <owen23355@gmail.com>
|
|
17
17
|
* @license MIT
|
|
18
18
|
*/function $r(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$r=function(t){return typeof t}:$r=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}function n1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function oe(){return oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},oe.apply(this,arguments)}function ei(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable}))),n.forEach(function(r){n1(e,r,i[r])})}return e}function r1(e,t){if(e==null)return{};var i={},n=Object.keys(e),r,a;for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&(i[r]=e[r]);return i}function a1(e,t){if(e==null)return{};var i=r1(e,t),n,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(i[n]=e[n]))}return i}function s1(e){return o1(e)||l1(e)||c1()}function o1(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}function l1(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function c1(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var u1="1.10.2";function je(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var He=je(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dn=je(/Edge/i),Jd=je(/firefox/i),Ks=je(/safari/i)&&!je(/chrome/i)&&!je(/android/i),Zd=je(/iP(ad|od|hone)/i),h1=je(/chrome/i)&&je(/android/i),Qd={capture:!1,passive:!1};function rt(e,t,i){e.addEventListener(t,i,!He&&Qd)}function Q(e,t,i){e.removeEventListener(t,i,!He&&Qd)}function kr(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function d1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function we(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&kr(e,t):kr(e,t))||n&&e===i)return e;if(e===i)break}while(e=d1(e))}return null}var tf=/\s+/g;function ht(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(tf," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(tf," ")}}function U(e,t,i){var n=e&&e.style;if(n){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=i+(typeof i=="string"?"":"px")}}function vi(e,t){var i="";if(typeof e=="string")i=e;else do{var n=U(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function ef(e,t,i){if(e){var n=e.getElementsByTagName(t),r=0,a=n.length;if(i)for(;r<a;r++)i(n[r],r);return n}return[]}function Le(){var e=document.scrollingElement;return e||document.documentElement}function pt(e,t,i,n,r){if(!(!e.getBoundingClientRect&&e!==window)){var a,s,o,l,c,h,d;if(e!==window&&e!==Le()?(a=e.getBoundingClientRect(),s=a.top,o=a.left,l=a.bottom,c=a.right,h=a.height,d=a.width):(s=0,o=0,l=window.innerHeight,c=window.innerWidth,h=window.innerHeight,d=window.innerWidth),(t||i)&&e!==window&&(r=r||e.parentNode,!He))do if(r&&r.getBoundingClientRect&&(U(r,"transform")!=="none"||i&&U(r,"position")!=="static")){var u=r.getBoundingClientRect();s-=u.top+parseInt(U(r,"border-top-width")),o-=u.left+parseInt(U(r,"border-left-width")),l=s+a.height,c=o+a.width;break}while(r=r.parentNode);if(n&&e!==window){var f=vi(r||e),p=f&&f.a,m=f&&f.d;f&&(s/=m,o/=p,d/=p,h/=m,l=s+h,c=o+d)}return{top:s,left:o,bottom:l,right:c,width:d,height:h}}}function nf(e,t,i){for(var n=ii(e,!0),r=pt(e)[t];n;){var a=pt(n)[i],s=void 0;if(i==="top"||i==="left"?s=r>=a:s=r<=a,!s)return n;if(n===Le())break;n=ii(n,!1)}return!1}function Tr(e,t,i){for(var n=0,r=0,a=e.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==W.ghost&&a[r]!==W.dragged&&we(a[r],i.draggable,e,!1)){if(n===t)return a[r];n++}r++}return null}function Ws(e,t){for(var i=e.lastElementChild;i&&(i===W.ghost||U(i,"display")==="none"||t&&!kr(i,t));)i=i.previousElementSibling;return i||null}function mt(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==W.clone&&(!t||kr(e,t))&&i++;return i}function rf(e){var t=0,i=0,n=Le();if(e)do{var r=vi(e),a=r.a,s=r.d;t+=e.scrollLeft*a,i+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,i]}function f1(e,t){for(var i in e)if(!!e.hasOwnProperty(i)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i)}return-1}function ii(e,t){if(!e||!e.getBoundingClientRect)return Le();var i=e,n=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=U(i);if(i.clientWidth<i.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Le();if(n||t)return i;n=!0}}while(i=i.parentNode);return Le()}function p1(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Ys(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var fn;function af(e,t){return function(){if(!fn){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),fn=setTimeout(function(){fn=void 0},t)}}}function m1(){clearTimeout(fn),fn=void 0}function sf(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Xs(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}function of(e,t){U(e,"position","absolute"),U(e,"top",t.top),U(e,"left",t.left),U(e,"width",t.width),U(e,"height",t.height)}function Gs(e){U(e,"position",""),U(e,"top",""),U(e,"left",""),U(e,"width",""),U(e,"height","")}var Pt="Sortable"+new Date().getTime();function v1(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(U(r,"display")==="none"||r===W.ghost)){e.push({target:r,rect:pt(r)});var a=ei({},e[e.length-1].rect);if(r.thisAnimationDuration){var s=vi(r,!0);s&&(a.top-=s.f,a.left-=s.e)}r.fromRect=a}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(f1(e,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var a=!1,s=0;e.forEach(function(o){var l=0,c=o.target,h=c.fromRect,d=pt(c),u=c.prevFromRect,f=c.prevToRect,p=o.rect,m=vi(c,!0);m&&(d.top-=m.f,d.left-=m.e),c.toRect=d,c.thisAnimationDuration&&Ys(u,d)&&!Ys(h,d)&&(p.top-d.top)/(p.left-d.left)===(h.top-d.top)/(h.left-d.left)&&(l=y1(p,u,f,r.options)),Ys(d,h)||(c.prevFromRect=h,c.prevToRect=d,l||(l=r.options.animation),r.animate(c,p,d,l)),l&&(a=!0,s=Math.max(s,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,r,a,s){if(s){U(n,"transition",""),U(n,"transform","");var o=vi(this.el),l=o&&o.a,c=o&&o.d,h=(r.left-a.left)/(l||1),d=(r.top-a.top)/(c||1);n.animatingX=!!h,n.animatingY=!!d,U(n,"transform","translate3d("+h+"px,"+d+"px,0)"),g1(n),U(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),U(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){U(n,"transition",""),U(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function g1(e){return e.offsetWidth}function y1(e,t,i,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*n.animation}var pn=[],qs={initializeByDefault:!0},mn={mount:function(t){for(var i in qs)qs.hasOwnProperty(i)&&!(i in t)&&(t[i]=qs[i]);pn.push(t)},pluginEvent:function(t,i,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=t+"Global";pn.forEach(function(s){!i[s.pluginName]||(i[s.pluginName][a]&&i[s.pluginName][a](ei({sortable:i},n)),i.options[s.pluginName]&&i[s.pluginName][t]&&i[s.pluginName][t](ei({sortable:i},n)))})},initializePlugins:function(t,i,n,r){pn.forEach(function(o){var l=o.pluginName;if(!(!t.options[l]&&!o.initializeByDefault)){var c=new o(t,i,t.options);c.sortable=t,c.options=t.options,t[l]=c,oe(n,c.defaults)}});for(var a in t.options)if(!!t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s!="undefined"&&(t.options[a]=s)}},getEventProperties:function(t,i){var n={};return pn.forEach(function(r){typeof r.eventProperties=="function"&&oe(n,r.eventProperties.call(i[r.pluginName],t))}),n},modifyOption:function(t,i,n){var r;return pn.forEach(function(a){!t[a.pluginName]||a.optionListeners&&typeof a.optionListeners[i]=="function"&&(r=a.optionListeners[i].call(t[a.pluginName],n))}),r}};function vn(e){var t=e.sortable,i=e.rootEl,n=e.name,r=e.targetEl,a=e.cloneEl,s=e.toEl,o=e.fromEl,l=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,d=e.newDraggableIndex,u=e.originalEvent,f=e.putSortable,p=e.extraEventProperties;if(t=t||i&&i[Pt],!!t){var m,v=t.options,w="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!He&&!dn?m=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(n,!0,!0)),m.to=s||i,m.from=o||i,m.item=r||i,m.clone=a,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=h,m.newDraggableIndex=d,m.originalEvent=u,m.pullMode=f?f.lastPutMode:void 0;var x=ei({},p,mn.getEventProperties(n,t));for(var E in x)m[E]=x[E];i&&i.dispatchEvent(m),v[w]&&v[w].call(t,m)}}var Wt=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=a1(n,["evt"]);mn.pluginEvent.bind(W)(t,i,ei({dragEl:P,parentEl:yt,ghostEl:J,rootEl:dt,nextEl:gi,lastDownEl:_r,cloneEl:vt,cloneHidden:ni,dragStarted:yn,putSortable:Mt,activeSortable:W.active,originalEvent:r,oldIndex:Bi,oldDraggableIndex:gn,newIndex:Gt,newDraggableIndex:ri,hideGhostForTarget:pf,unhideGhostForTarget:mf,cloneNowHidden:function(){ni=!0},cloneNowShown:function(){ni=!1},dispatchSortableEvent:function(o){Rt({sortable:i,name:o,originalEvent:r})}},a))};function Rt(e){vn(ei({putSortable:Mt,cloneEl:vt,targetEl:P,rootEl:dt,oldIndex:Bi,oldDraggableIndex:gn,newIndex:Gt,newDraggableIndex:ri},e))}var P,yt,J,dt,gi,_r,vt,ni,Bi,Gt,gn,ri,Ir,Mt,Fi=!1,Er=!1,Dr=[],yi,Ce,Js,Zs,lf,cf,yn,Ri,bn,Sn=!1,Mr=!1,Or,Nt,Qs=[],to=!1,Lr=[],Ar=typeof document!="undefined",Pr=Zd,uf=dn||He?"cssFloat":"float",b1=Ar&&!h1&&!Zd&&"draggable"in document.createElement("div"),hf=function(){if(!!Ar){if(He)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),df=function(t,i){var n=U(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Tr(t,0,i),s=Tr(t,1,i),o=a&&U(a),l=s&&U(s),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+pt(a).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+pt(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return a&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||c>=r&&n[uf]==="none"||s&&n[uf]==="none"&&c+h>r)?"vertical":"horizontal"},S1=function(t,i,n){var r=n?t.left:t.top,a=n?t.right:t.bottom,s=n?t.width:t.height,o=n?i.left:i.top,l=n?i.right:i.bottom,c=n?i.width:i.height;return r===o||a===l||r+s/2===o+c/2},w1=function(t,i){var n;return Dr.some(function(r){if(!Ws(r)){var a=pt(r),s=r[Pt].options.emptyInsertThreshold,o=t>=a.left-s&&t<=a.right+s,l=i>=a.top-s&&i<=a.bottom+s;if(s&&o&&l)return n=r}}),n},ff=function(t){function i(a,s){return function(o,l,c,h){var d=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(a==null&&(s||d))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return i(a(o,l,c,h),s)(o,l,c,h);var u=(s?o:l).options.group.name;return a===!0||typeof a=="string"&&a===u||a.join&&a.indexOf(u)>-1}}var n={},r=t.group;(!r||$r(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=i(r.pull,!0),n.checkPut=i(r.put),n.revertClone=r.revertClone,t.group=n},pf=function(){!hf&&J&&U(J,"display","none")},mf=function(){!hf&&J&&U(J,"display","")};Ar&&document.addEventListener("click",function(e){if(Er)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Er=!1,!1},!0);var bi=function(t){if(P){t=t.touches?t.touches[0]:t;var i=w1(t.clientX,t.clientY);if(i){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[Pt]._onDragOver(n)}}},C1=function(t){P&&P.parentNode[Pt]._isOutsideThisEl(t.target)};function W(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=oe({},t),e[Pt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return df(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,o){s.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:W.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};mn.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);ff(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:b1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?rt(e,"pointerdown",this._onTapStart):(rt(e,"mousedown",this._onTapStart),rt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(rt(e,"dragover",this),rt(e,"dragenter",this)),Dr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),oe(this,v1())}W.prototype={constructor:W,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ri=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,P):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var i=this,n=this.el,r=this.options,a=r.preventOnFilter,s=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(o||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,h=r.filter;if(E1(n),!P&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!c.isContentEditable&&(l=we(l,r.draggable,n,!1),!(l&&l.animated)&&_r!==l)){if(Bi=mt(l),gn=mt(l,r.draggable),typeof h=="function"){if(h.call(this,t,l,this)){Rt({sortable:i,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),Wt("filter",i,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(d){if(d=we(c,d.trim(),n,!1),d)return Rt({sortable:i,rootEl:d,name:"filter",targetEl:l,fromEl:n,toEl:n}),Wt("filter",i,{evt:t}),!0}),h)){a&&t.cancelable&&t.preventDefault();return}r.handle&&!we(c,r.handle,n,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function(t,i,n){var r=this,a=r.el,s=r.options,o=a.ownerDocument,l;if(n&&!P&&n.parentNode===a){var c=pt(n);if(dt=a,P=n,yt=P.parentNode,gi=P.nextSibling,_r=n,Ir=s.group,W.dragged=P,yi={target:P,clientX:(i||t).clientX,clientY:(i||t).clientY},lf=yi.clientX-c.left,cf=yi.clientY-c.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,P.style["will-change"]="all",l=function(){if(Wt("delayEnded",r,{evt:t}),W.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Jd&&r.nativeDraggable&&(P.draggable=!0),r._triggerDragStart(t,i),Rt({sortable:r,name:"choose",originalEvent:t}),ht(P,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){ef(P,h.trim(),io)}),rt(o,"dragover",bi),rt(o,"mousemove",bi),rt(o,"touchmove",bi),rt(o,"mouseup",r._onDrop),rt(o,"touchend",r._onDrop),rt(o,"touchcancel",r._onDrop),Jd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,P.draggable=!0),Wt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(dn||He))){if(W.eventCanceled){this._onDrop();return}rt(o,"mouseup",r._disableDelayedDrag),rt(o,"touchend",r._disableDelayedDrag),rt(o,"touchcancel",r._disableDelayedDrag),rt(o,"mousemove",r._delayedDragTouchMoveHandler),rt(o,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&rt(o,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){P&&io(P),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Q(t,"mouseup",this._disableDelayedDrag),Q(t,"touchend",this._disableDelayedDrag),Q(t,"touchcancel",this._disableDelayedDrag),Q(t,"mousemove",this._delayedDragTouchMoveHandler),Q(t,"touchmove",this._delayedDragTouchMoveHandler),Q(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?rt(document,"pointermove",this._onTouchMove):i?rt(document,"touchmove",this._onTouchMove):rt(document,"mousemove",this._onTouchMove):(rt(P,"dragend",this),rt(dt,"dragstart",this._onDragStart));try{document.selection?Nr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(Fi=!1,dt&&P){Wt("dragStarted",this,{evt:i}),this.nativeDraggable&&rt(document,"dragover",C1);var n=this.options;!t&&ht(P,n.dragClass,!1),ht(P,n.ghostClass,!0),W.active=this,t&&this._appendGhost(),Rt({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(Ce){this._lastX=Ce.clientX,this._lastY=Ce.clientY,pf();for(var t=document.elementFromPoint(Ce.clientX,Ce.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ce.clientX,Ce.clientY),t!==i);)i=t;if(P.parentNode[Pt]._isOutsideThisEl(t),i)do{if(i[Pt]){var n=void 0;if(n=i[Pt]._onDragOver({clientX:Ce.clientX,clientY:Ce.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);mf()}},_onTouchMove:function(t){if(yi){var i=this.options,n=i.fallbackTolerance,r=i.fallbackOffset,a=t.touches?t.touches[0]:t,s=J&&vi(J,!0),o=J&&s&&s.a,l=J&&s&&s.d,c=Pr&&Nt&&rf(Nt),h=(a.clientX-yi.clientX+r.x)/(o||1)+(c?c[0]-Qs[0]:0)/(o||1),d=(a.clientY-yi.clientY+r.y)/(l||1)+(c?c[1]-Qs[1]:0)/(l||1);if(!W.active&&!Fi){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(J){s?(s.e+=h-(Js||0),s.f+=d-(Zs||0)):s={a:1,b:0,c:0,d:1,e:h,f:d};var u="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");U(J,"webkitTransform",u),U(J,"mozTransform",u),U(J,"msTransform",u),U(J,"transform",u),Js=h,Zs=d,Ce=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!J){var t=this.options.fallbackOnBody?document.body:dt,i=pt(P,!0,Pr,!0,t),n=this.options;if(Pr){for(Nt=t;U(Nt,"position")==="static"&&U(Nt,"transform")==="none"&&Nt!==document;)Nt=Nt.parentNode;Nt!==document.body&&Nt!==document.documentElement?(Nt===document&&(Nt=Le()),i.top+=Nt.scrollTop,i.left+=Nt.scrollLeft):Nt=Le(),Qs=rf(Nt)}J=P.cloneNode(!0),ht(J,n.ghostClass,!1),ht(J,n.fallbackClass,!0),ht(J,n.dragClass,!0),U(J,"transition",""),U(J,"transform",""),U(J,"box-sizing","border-box"),U(J,"margin",0),U(J,"top",i.top),U(J,"left",i.left),U(J,"width",i.width),U(J,"height",i.height),U(J,"opacity","0.8"),U(J,"position",Pr?"absolute":"fixed"),U(J,"zIndex","100000"),U(J,"pointerEvents","none"),W.ghost=J,t.appendChild(J),U(J,"transform-origin",lf/parseInt(J.style.width)*100+"% "+cf/parseInt(J.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,r=t.dataTransfer,a=n.options;if(Wt("dragStart",this,{evt:t}),W.eventCanceled){this._onDrop();return}Wt("setupClone",this),W.eventCanceled||(vt=Xs(P),vt.draggable=!1,vt.style["will-change"]="",this._hideClone(),ht(vt,this.options.chosenClass,!1),W.clone=vt),n.cloneId=Nr(function(){Wt("clone",n),!W.eventCanceled&&(n.options.removeCloneOnHide||dt.insertBefore(vt,P),n._hideClone(),Rt({sortable:n,name:"clone"}))}),!i&&ht(P,a.dragClass,!0),i?(Er=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Q(document,"mouseup",n._onDrop),Q(document,"touchend",n._onDrop),Q(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(n,r,P)),rt(document,"drop",n),U(P,"transform","translateZ(0)")),Fi=!0,n._dragStartId=Nr(n._dragStarted.bind(n,i,t)),rt(document,"selectstart",n),yn=!0,Ks&&U(document.body,"user-select","none")},_onDragOver:function(t){var i=this.el,n=t.target,r,a,s,o=this.options,l=o.group,c=W.active,h=Ir===l,d=o.sort,u=Mt||c,f,p=this,m=!1;if(to)return;function v(I,D){Wt(I,p,ei({evt:t,isOwner:h,axis:f?"vertical":"horizontal",revert:s,dragRect:r,targetRect:a,canSort:d,fromSortable:u,target:n,completed:x,onMove:function(H,S){return eo(dt,i,P,r,H,pt(H),t,S)},changed:E},D))}function w(){v("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function x(I){return v("dragOverCompleted",{insertion:I}),I&&(h?c._hideClone():c._showClone(p),p!==u&&(ht(P,Mt?Mt.options.ghostClass:c.options.ghostClass,!1),ht(P,o.ghostClass,!0)),Mt!==p&&p!==W.active?Mt=p:p===W.active&&Mt&&(Mt=null),u===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){v("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(n===P&&!P.animated||n===i&&!n.animated)&&(Ri=null),!o.dragoverBubble&&!t.rootEl&&n!==document&&(P.parentNode[Pt]._isOutsideThisEl(t.target),!I&&bi(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function E(){Gt=mt(P),ri=mt(P,o.draggable),Rt({sortable:p,name:"change",toEl:i,newIndex:Gt,newDraggableIndex:ri,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=we(n,o.draggable,i,!0),v("dragOver"),W.eventCanceled)return m;if(P.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return x(!1);if(Er=!1,c&&!o.disabled&&(h?d||(s=!dt.contains(P)):Mt===this||(this.lastPutMode=Ir.checkPull(this,c,P,t))&&l.checkPut(this,c,P,t))){if(f=this._getDirection(t,n)==="vertical",r=pt(P),v("dragOverValid"),W.eventCanceled)return m;if(s)return yt=dt,w(),this._hideClone(),v("revert"),W.eventCanceled||(gi?dt.insertBefore(P,gi):dt.appendChild(P)),x(!0);var _=Ws(i,o.draggable);if(!_||k1(t,f,this)&&!_.animated){if(_===P)return x(!1);if(_&&i===t.target&&(n=_),n&&(a=pt(n)),eo(dt,i,P,r,n,a,t,!!n)!==!1)return w(),i.appendChild(P),yt=i,E(),x(!0)}else if(n.parentNode===i){a=pt(n);var T=0,O,X=P.parentNode!==i,R=!S1(P.animated&&P.toRect||r,n.animated&&n.toRect||a,f),z=f?"top":"left",B=nf(n,"top","top")||nf(P,"top","top"),A=B?B.scrollTop:void 0;Ri!==n&&(O=a[z],Sn=!1,Mr=!R&&o.invertSwap||X),T=T1(t,n,a,f,R?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Mr,Ri===n);var it;if(T!==0){var ot=mt(P);do ot-=T,it=yt.children[ot];while(it&&(U(it,"display")==="none"||it===J))}if(T===0||it===n)return x(!1);Ri=n,bn=T;var V=n.nextElementSibling,k=!1;k=T===1;var g=eo(dt,i,P,r,n,a,t,k);if(g!==!1)return(g===1||g===-1)&&(k=g===1),to=!0,setTimeout($1,30),w(),k&&!V?i.appendChild(P):n.parentNode.insertBefore(P,k?V:n),B&&sf(B,0,A-B.scrollTop),yt=P.parentNode,O!==void 0&&!Mr&&(Or=Math.abs(O-pt(n)[z])),E(),x(!0)}if(i.contains(P))return x(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Q(document,"mousemove",this._onTouchMove),Q(document,"touchmove",this._onTouchMove),Q(document,"pointermove",this._onTouchMove),Q(document,"dragover",bi),Q(document,"mousemove",bi),Q(document,"touchmove",bi)},_offUpEvents:function(){var t=this.el.ownerDocument;Q(t,"mouseup",this._onDrop),Q(t,"touchend",this._onDrop),Q(t,"pointerup",this._onDrop),Q(t,"touchcancel",this._onDrop),Q(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;if(Gt=mt(P),ri=mt(P,n.draggable),Wt("drop",this,{evt:t}),yt=P&&P.parentNode,Gt=mt(P),ri=mt(P,n.draggable),W.eventCanceled){this._nulling();return}Fi=!1,Mr=!1,Sn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),no(this.cloneId),no(this._dragStartId),this.nativeDraggable&&(Q(document,"drop",this),Q(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ks&&U(document.body,"user-select",""),U(P,"transform",""),t&&(yn&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(dt===yt||Mt&&Mt.lastPutMode!=="clone")&&vt&&vt.parentNode&&vt.parentNode.removeChild(vt),P&&(this.nativeDraggable&&Q(P,"dragend",this),io(P),P.style["will-change"]="",yn&&!Fi&&ht(P,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),ht(P,this.options.chosenClass,!1),Rt({sortable:this,name:"unchoose",toEl:yt,newIndex:null,newDraggableIndex:null,originalEvent:t}),dt!==yt?(Gt>=0&&(Rt({rootEl:yt,name:"add",toEl:yt,fromEl:dt,originalEvent:t}),Rt({sortable:this,name:"remove",toEl:yt,originalEvent:t}),Rt({rootEl:yt,name:"sort",toEl:yt,fromEl:dt,originalEvent:t}),Rt({sortable:this,name:"sort",toEl:yt,originalEvent:t})),Mt&&Mt.save()):Gt!==Bi&&Gt>=0&&(Rt({sortable:this,name:"update",toEl:yt,originalEvent:t}),Rt({sortable:this,name:"sort",toEl:yt,originalEvent:t})),W.active&&((Gt==null||Gt===-1)&&(Gt=Bi,ri=gn),Rt({sortable:this,name:"end",toEl:yt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Wt("nulling",this),dt=P=yt=J=gi=vt=_r=ni=yi=Ce=yn=Gt=ri=Bi=gn=Ri=bn=Mt=Ir=W.dragged=W.ghost=W.clone=W.active=null,Lr.forEach(function(t){t.checked=!0}),Lr.length=Js=Zs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":P&&(this._onDragOver(t),x1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,r=0,a=n.length,s=this.options;r<a;r++)i=n[r],we(i,s.draggable,this.el,!1)&&t.push(i.getAttribute(s.dataIdAttr)||I1(i));return t},sort:function(t){var i={},n=this.el;this.toArray().forEach(function(r,a){var s=n.children[a];we(s,this.options.draggable,n,!1)&&(i[r]=s)},this),t.forEach(function(r){i[r]&&(n.removeChild(i[r]),n.appendChild(i[r]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return we(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(i===void 0)return n[t];var r=mn.modifyOption(this,t,i);typeof r!="undefined"?n[t]=r:n[t]=i,t==="group"&&ff(n)},destroy:function(){Wt("destroy",this);var t=this.el;t[Pt]=null,Q(t,"mousedown",this._onTapStart),Q(t,"touchstart",this._onTapStart),Q(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Q(t,"dragover",this),Q(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Dr.splice(Dr.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ni){if(Wt("hideClone",this),W.eventCanceled)return;U(vt,"display","none"),this.options.removeCloneOnHide&&vt.parentNode&&vt.parentNode.removeChild(vt),ni=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ni){if(Wt("showClone",this),W.eventCanceled)return;dt.contains(P)&&!this.options.group.revertClone?dt.insertBefore(vt,P):gi?dt.insertBefore(vt,gi):dt.appendChild(vt),this.options.group.revertClone&&this.animate(P,vt),U(vt,"display",""),ni=!1}}};function x1(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function eo(e,t,i,n,r,a,s,o){var l,c=e[Pt],h=c.options.onMove,d;return window.CustomEvent&&!He&&!dn?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=i,l.draggedRect=n,l.related=r||t,l.relatedRect=a||pt(t),l.willInsertAfter=o,l.originalEvent=s,e.dispatchEvent(l),h&&(d=h.call(c,l,s)),d}function io(e){e.draggable=!1}function $1(){to=!1}function k1(e,t,i){var n=pt(Ws(i.el,i.options.draggable)),r=10;return t?e.clientX>n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}function T1(e,t,i,n,r,a,s,o){var l=n?e.clientY:e.clientX,c=n?i.height:i.width,h=n?i.top:i.left,d=n?i.bottom:i.right,u=!1;if(!s){if(o&&Or<c*r){if(!Sn&&(bn===1?l>h+c*a/2:l<d-c*a/2)&&(Sn=!0),Sn)u=!0;else if(bn===1?l<h+Or:l>d-Or)return-bn}else if(l>h+c*(1-r)/2&&l<d-c*(1-r)/2)return _1(t)}return u=u||s,u&&(l<h+c*a/2||l>d-c*a/2)?l>h+c/2?1:-1:0}function _1(e){return mt(P)<mt(e)?1:-1}function I1(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;i--;)n+=t.charCodeAt(i);return n.toString(36)}function E1(e){Lr.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&Lr.push(n)}}function Nr(e){return setTimeout(e,0)}function no(e){return clearTimeout(e)}Ar&&rt(document,"touchmove",function(e){(W.active||Fi)&&e.cancelable&&e.preventDefault()}),W.utils={on:rt,off:Q,css:U,find:ef,is:function(t,i){return!!we(t,i,t,!1)},extend:p1,throttle:af,closest:we,toggleClass:ht,clone:Xs,index:mt,nextTick:Nr,cancelNextTick:no,detectDirection:df,getChild:Tr},W.get=function(e){return e[Pt]},W.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(W.utils=ei({},W.utils,n.utils)),mn.mount(n)})},W.create=function(e,t){return new W(e,t)},W.version=u1;var bt=[],wn,ro,ao=!1,so,oo,Br,Cn;function D1(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(i){var n=i.originalEvent;this.sortable.nativeDraggable?rt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?rt(document,"pointermove",this._handleFallbackAutoScroll):n.touches?rt(document,"touchmove",this._handleFallbackAutoScroll):rt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var n=i.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Q(document,"dragover",this._handleAutoScroll):(Q(document,"pointermove",this._handleFallbackAutoScroll),Q(document,"touchmove",this._handleFallbackAutoScroll),Q(document,"mousemove",this._handleFallbackAutoScroll)),vf(),Fr(),m1()},nulling:function(){Br=ro=wn=ao=Cn=so=oo=null,bt.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,n){var r=this,a=(i.touches?i.touches[0]:i).clientX,s=(i.touches?i.touches[0]:i).clientY,o=document.elementFromPoint(a,s);if(Br=i,n||dn||He||Ks){lo(i,this.options,o,n);var l=ii(o,!0);ao&&(!Cn||a!==so||s!==oo)&&(Cn&&vf(),Cn=setInterval(function(){var c=ii(document.elementFromPoint(a,s),!0);c!==l&&(l=c,Fr()),lo(i,r.options,c,n)},10),so=a,oo=s)}else{if(!this.options.bubbleScroll||ii(o,!0)===Le()){Fr();return}lo(i,this.options,ii(o,!1),!1)}}},oe(e,{pluginName:"scroll",initializeByDefault:!0})}function Fr(){bt.forEach(function(e){clearInterval(e.pid)}),bt=[]}function vf(){clearInterval(Cn)}var lo=af(function(e,t,i,n){if(!!t.scroll){var r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,o=t.scrollSpeed,l=Le(),c=!1,h;ro!==i&&(ro=i,Fr(),wn=t.scroll,h=t.scrollFn,wn===!0&&(wn=ii(i,!0)));var d=0,u=wn;do{var f=u,p=pt(f),m=p.top,v=p.bottom,w=p.left,x=p.right,E=p.width,_=p.height,T=void 0,O=void 0,X=f.scrollWidth,R=f.scrollHeight,z=U(f),B=f.scrollLeft,A=f.scrollTop;f===l?(T=E<X&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),O=_<R&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(T=E<X&&(z.overflowX==="auto"||z.overflowX==="scroll"),O=_<R&&(z.overflowY==="auto"||z.overflowY==="scroll"));var it=T&&(Math.abs(x-r)<=s&&B+E<X)-(Math.abs(w-r)<=s&&!!B),ot=O&&(Math.abs(v-a)<=s&&A+_<R)-(Math.abs(m-a)<=s&&!!A);if(!bt[d])for(var V=0;V<=d;V++)bt[V]||(bt[V]={});(bt[d].vx!=it||bt[d].vy!=ot||bt[d].el!==f)&&(bt[d].el=f,bt[d].vx=it,bt[d].vy=ot,clearInterval(bt[d].pid),(it!=0||ot!=0)&&(c=!0,bt[d].pid=setInterval(function(){n&&this.layer===0&&W.active._onTouchMove(Br);var k=bt[this.layer].vy?bt[this.layer].vy*o:0,g=bt[this.layer].vx?bt[this.layer].vx*o:0;typeof h=="function"&&h.call(W.dragged.parentNode[Pt],g,k,e,Br,bt[this.layer].el)!=="continue"||sf(bt[this.layer].el,g,k)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&u!==l&&(u=ii(u,!1)));ao=c}},30),gf=function(t){var i=t.originalEvent,n=t.putSortable,r=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!i){var c=n||a;o();var h=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,d=document.elementFromPoint(h.clientX,h.clientY);l(),c&&!c.el.contains(d)&&(s("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function co(){}co.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Tr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(i,r):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:gf},oe(co,{pluginName:"revertOnSpill"});function uo(){}uo.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),r.animateAll()},drop:gf},oe(uo,{pluginName:"removeOnSpill"});var le;function M1(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(i){var n=i.dragEl;le=n},dragOverValid:function(i){var n=i.completed,r=i.target,a=i.onMove,s=i.activeSortable,o=i.changed,l=i.cancel;if(!!s.options.swap){var c=this.sortable.el,h=this.options;if(r&&r!==c){var d=le;a(r)!==!1?(ht(r,h.swapClass,!0),le=r):le=null,d&&d!==le&&ht(d,h.swapClass,!1)}o(),n(!0),l()}},drop:function(i){var n=i.activeSortable,r=i.putSortable,a=i.dragEl,s=r||this.sortable,o=this.options;le&&ht(le,o.swapClass,!1),le&&(o.swap||r&&r.options.swap)&&a!==le&&(s.captureAnimationState(),s!==n&&n.captureAnimationState(),O1(a,le),s.animateAll(),s!==n&&n.animateAll())},nulling:function(){le=null}},oe(e,{pluginName:"swap",eventProperties:function(){return{swapItem:le}}})}function O1(e,t){var i=e.parentNode,n=t.parentNode,r,a;!i||!n||i.isEqualNode(t)||n.isEqualNode(e)||(r=mt(e),a=mt(t),i.isEqualNode(n)&&r<a&&a++,i.insertBefore(t,i.children[r]),n.insertBefore(e,n.children[a]))}var q=[],qt=[],xn,xe,$n=!1,Jt=!1,Vi=!1,ut,kn,Rr;function L1(){function e(t){for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));t.options.supportPointer?rt(document,"pointerup",this._deselectMultiDrag):(rt(document,"mouseup",this._deselectMultiDrag),rt(document,"touchend",this._deselectMultiDrag)),rt(document,"keydown",this._checkKeyDown),rt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(r,a){var s="";q.length&&xe===t?q.forEach(function(o,l){s+=(l?", ":"")+o.textContent}):s=a.textContent,r.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(i){var n=i.dragEl;ut=n},delayEnded:function(){this.isMultiDrag=~q.indexOf(ut)},setupClone:function(i){var n=i.sortable,r=i.cancel;if(!!this.isMultiDrag){for(var a=0;a<q.length;a++)qt.push(Xs(q[a])),qt[a].sortableIndex=q[a].sortableIndex,qt[a].draggable=!1,qt[a].style["will-change"]="",ht(qt[a],this.options.selectedClass,!1),q[a]===ut&&ht(qt[a],this.options.chosenClass,!1);n._hideClone(),r()}},clone:function(i){var n=i.sortable,r=i.rootEl,a=i.dispatchSortableEvent,s=i.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||q.length&&xe===n&&(yf(!0,r),a("clone"),s())},showClone:function(i){var n=i.cloneNowShown,r=i.rootEl,a=i.cancel;!this.isMultiDrag||(yf(!1,r),qt.forEach(function(s){U(s,"display","")}),n(),Rr=!1,a())},hideClone:function(i){var n=this;i.sortable;var r=i.cloneNowHidden,a=i.cancel;!this.isMultiDrag||(qt.forEach(function(s){U(s,"display","none"),n.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),r(),Rr=!0,a())},dragStartGlobal:function(i){i.sortable,!this.isMultiDrag&&xe&&xe.multiDrag._deselectMultiDrag(),q.forEach(function(n){n.sortableIndex=mt(n)}),q=q.sort(function(n,r){return n.sortableIndex-r.sortableIndex}),Vi=!0},dragStarted:function(i){var n=this,r=i.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(r.captureAnimationState(),this.options.animation)){q.forEach(function(s){s!==ut&&U(s,"position","absolute")});var a=pt(ut,!1,!0,!0);q.forEach(function(s){s!==ut&&of(s,a)}),Jt=!0,$n=!0}r.animateAll(function(){Jt=!1,$n=!1,n.options.animation&&q.forEach(function(s){Gs(s)}),n.options.sort&&Vr()})}},dragOver:function(i){var n=i.target,r=i.completed,a=i.cancel;Jt&&~q.indexOf(n)&&(r(!1),a())},revert:function(i){var n=i.fromSortable,r=i.rootEl,a=i.sortable,s=i.dragRect;q.length>1&&(q.forEach(function(o){a.addAnimationState({target:o,rect:Jt?pt(o):s}),Gs(o),o.fromRect=s,n.removeAnimationState(o)}),Jt=!1,A1(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(i){var n=i.sortable,r=i.isOwner,a=i.insertion,s=i.activeSortable,o=i.parentEl,l=i.putSortable,c=this.options;if(a){if(r&&s._hideClone(),$n=!1,c.animation&&q.length>1&&(Jt||!r&&!s.options.sort&&!l)){var h=pt(ut,!1,!0,!0);q.forEach(function(u){u!==ut&&(of(u,h),o.appendChild(u))}),Jt=!0}if(!r)if(Jt||Vr(),q.length>1){var d=Rr;s._showClone(n),s.options.animation&&!Rr&&d&&qt.forEach(function(u){s.addAnimationState({target:u,rect:kn}),u.fromRect=kn,u.thisAnimationDuration=null})}else s._showClone(n)}},dragOverAnimationCapture:function(i){var n=i.dragRect,r=i.isOwner,a=i.activeSortable;if(q.forEach(function(o){o.thisAnimationDuration=null}),a.options.animation&&!r&&a.multiDrag.isMultiDrag){kn=oe({},n);var s=vi(ut,!0);kn.top-=s.f,kn.left-=s.e}},dragOverAnimationComplete:function(){Jt&&(Jt=!1,Vr())},drop:function(i){var n=i.originalEvent,r=i.rootEl,a=i.parentEl,s=i.sortable,o=i.dispatchSortableEvent,l=i.oldIndex,c=i.putSortable,h=c||this.sortable;if(!!n){var d=this.options,u=a.children;if(!Vi)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ht(ut,d.selectedClass,!~q.indexOf(ut)),~q.indexOf(ut))q.splice(q.indexOf(ut),1),xn=null,vn({sortable:s,rootEl:r,name:"deselect",targetEl:ut,originalEvt:n});else{if(q.push(ut),vn({sortable:s,rootEl:r,name:"select",targetEl:ut,originalEvt:n}),n.shiftKey&&xn&&s.el.contains(xn)){var f=mt(xn),p=mt(ut);if(~f&&~p&&f!==p){var m,v;for(p>f?(v=f,m=p):(v=p,m=f+1);v<m;v++)~q.indexOf(u[v])||(ht(u[v],d.selectedClass,!0),q.push(u[v]),vn({sortable:s,rootEl:r,name:"select",targetEl:u[v],originalEvt:n}))}}else xn=ut;xe=h}if(Vi&&this.isMultiDrag){if((a[Pt].options.sort||a!==r)&&q.length>1){var w=pt(ut),x=mt(ut,":not(."+this.options.selectedClass+")");if(!$n&&d.animation&&(ut.thisAnimationDuration=null),h.captureAnimationState(),!$n&&(d.animation&&(ut.fromRect=w,q.forEach(function(_){if(_.thisAnimationDuration=null,_!==ut){var T=Jt?pt(_):w;_.fromRect=T,h.addAnimationState({target:_,rect:T})}})),Vr(),q.forEach(function(_){u[x]?a.insertBefore(_,u[x]):a.appendChild(_),x++}),l===mt(ut))){var E=!1;q.forEach(function(_){if(_.sortableIndex!==mt(_)){E=!0;return}}),E&&o("update")}q.forEach(function(_){Gs(_)}),h.animateAll()}xe=h}(r===a||c&&c.lastPutMode!=="clone")&&qt.forEach(function(_){_.parentNode&&_.parentNode.removeChild(_)})}},nullingGlobal:function(){this.isMultiDrag=Vi=!1,qt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Q(document,"pointerup",this._deselectMultiDrag),Q(document,"mouseup",this._deselectMultiDrag),Q(document,"touchend",this._deselectMultiDrag),Q(document,"keydown",this._checkKeyDown),Q(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof Vi!="undefined"&&Vi)&&xe===this.sortable&&!(i&&we(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;q.length;){var n=q[0];ht(n,this.options.selectedClass,!1),q.shift(),vn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:i})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},oe(e,{pluginName:"multiDrag",utils:{select:function(i){var n=i.parentNode[Pt];!n||!n.options.multiDrag||~q.indexOf(i)||(xe&&xe!==n&&(xe.multiDrag._deselectMultiDrag(),xe=n),ht(i,n.options.selectedClass,!0),q.push(i))},deselect:function(i){var n=i.parentNode[Pt],r=q.indexOf(i);!n||!n.options.multiDrag||!~r||(ht(i,n.options.selectedClass,!1),q.splice(r,1))}},eventProperties:function(){var i=this,n=[],r=[];return q.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var s;Jt&&a!==ut?s=-1:Jt?s=mt(a,":not(."+i.options.selectedClass+")"):s=mt(a),r.push({multiDragElement:a,index:s})}),{items:s1(q),clones:[].concat(qt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function A1(e,t){q.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function yf(e,t){qt.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function Vr(){q.forEach(function(e){e!==ut&&e.parentNode&&e.parentNode.removeChild(e)})}W.mount(new D1),W.mount(uo,co);var P1=Object.freeze(Object.defineProperty({__proto__:null,default:W,MultiDrag:L1,Sortable:W,Swap:M1},Symbol.toStringTag,{value:"Module"})),N1=Up(P1);(function(e,t){(function(n,r){e.exports=r(N1)})(typeof self!="undefined"?self:Fo,function(i){return function(n){var r={};function a(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=r,a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},a.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(o&1&&(s=a(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)a.d(l,c,function(h){return s[h]}.bind(null,c));return l},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s="fb15")}({"01f9":function(n,r,a){var s=a("2d00"),o=a("5ca1"),l=a("2aba"),c=a("32e9"),h=a("84f2"),d=a("41a0"),u=a("7f20"),f=a("38fd"),p=a("2b4c")("iterator"),m=!([].keys&&"next"in[].keys()),v="@@iterator",w="keys",x="values",E=function(){return this};n.exports=function(_,T,O,X,R,z,B){d(O,T,X);var A=function(C){if(!m&&C in k)return k[C];switch(C){case w:return function(){return new O(this,C)};case x:return function(){return new O(this,C)}}return function(){return new O(this,C)}},it=T+" Iterator",ot=R==x,V=!1,k=_.prototype,g=k[p]||k[v]||R&&k[R],I=g||A(R),D=R?ot?A("entries"):I:void 0,j=T=="Array"&&k.entries||g,H,S,b;if(j&&(b=f(j.call(new _)),b!==Object.prototype&&b.next&&(u(b,it,!0),!s&&typeof b[p]!="function"&&c(b,p,E))),ot&&g&&g.name!==x&&(V=!0,I=function(){return g.call(this)}),(!s||B)&&(m||V||!k[p])&&c(k,p,I),h[T]=I,h[it]=E,R)if(H={values:ot?I:A(x),keys:z?I:A(w),entries:D},B)for(S in H)S in k||l(k,S,H[S]);else o(o.P+o.F*(m||V),T,H);return H}},"02f4":function(n,r,a){var s=a("4588"),o=a("be13");n.exports=function(l){return function(c,h){var d=String(o(c)),u=s(h),f=d.length,p,m;return u<0||u>=f?l?"":void 0:(p=d.charCodeAt(u),p<55296||p>56319||u+1===f||(m=d.charCodeAt(u+1))<56320||m>57343?l?d.charAt(u):p:l?d.slice(u,u+2):(p-55296<<10)+(m-56320)+65536)}}},"0390":function(n,r,a){var s=a("02f4")(!0);n.exports=function(o,l,c){return l+(c?s(o,l).length:1)}},"0bfb":function(n,r,a){var s=a("cb7c");n.exports=function(){var o=s(this),l="";return o.global&&(l+="g"),o.ignoreCase&&(l+="i"),o.multiline&&(l+="m"),o.unicode&&(l+="u"),o.sticky&&(l+="y"),l}},"0d58":function(n,r,a){var s=a("ce10"),o=a("e11e");n.exports=Object.keys||function(c){return s(c,o)}},1495:function(n,r,a){var s=a("86cc"),o=a("cb7c"),l=a("0d58");n.exports=a("9e1e")?Object.defineProperties:function(h,d){o(h);for(var u=l(d),f=u.length,p=0,m;f>p;)s.f(h,m=u[p++],d[m]);return h}},"214f":function(n,r,a){a("b0c5");var s=a("2aba"),o=a("32e9"),l=a("79e5"),c=a("be13"),h=a("2b4c"),d=a("520a"),u=h("species"),f=!l(function(){var m=/./;return m.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(m,"$<a>")!=="7"}),p=function(){var m=/(?:)/,v=m.exec;m.exec=function(){return v.apply(this,arguments)};var w="ab".split(m);return w.length===2&&w[0]==="a"&&w[1]==="b"}();n.exports=function(m,v,w){var x=h(m),E=!l(function(){var z={};return z[x]=function(){return 7},""[m](z)!=7}),_=E?!l(function(){var z=!1,B=/a/;return B.exec=function(){return z=!0,null},m==="split"&&(B.constructor={},B.constructor[u]=function(){return B}),B[x](""),!z}):void 0;if(!E||!_||m==="replace"&&!f||m==="split"&&!p){var T=/./[x],O=w(c,x,""[m],function(B,A,it,ot,V){return A.exec===d?E&&!V?{done:!0,value:T.call(A,it,ot)}:{done:!0,value:B.call(it,A,ot)}:{done:!1}}),X=O[0],R=O[1];s(String.prototype,m,X),o(RegExp.prototype,x,v==2?function(z,B){return R.call(z,this,B)}:function(z){return R.call(z,this)})}}},"230e":function(n,r,a){var s=a("d3f4"),o=a("7726").document,l=s(o)&&s(o.createElement);n.exports=function(c){return l?o.createElement(c):{}}},"23c6":function(n,r,a){var s=a("2d95"),o=a("2b4c")("toStringTag"),l=s(function(){return arguments}())=="Arguments",c=function(h,d){try{return h[d]}catch{}};n.exports=function(h){var d,u,f;return h===void 0?"Undefined":h===null?"Null":typeof(u=c(d=Object(h),o))=="string"?u:l?s(d):(f=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":f}},2621:function(n,r){r.f=Object.getOwnPropertySymbols},"2aba":function(n,r,a){var s=a("7726"),o=a("32e9"),l=a("69a8"),c=a("ca5a")("src"),h=a("fa5b"),d="toString",u=(""+h).split(d);a("8378").inspectSource=function(f){return h.call(f)},(n.exports=function(f,p,m,v){var w=typeof m=="function";w&&(l(m,"name")||o(m,"name",p)),f[p]!==m&&(w&&(l(m,c)||o(m,c,f[p]?""+f[p]:u.join(String(p)))),f===s?f[p]=m:v?f[p]?f[p]=m:o(f,p,m):(delete f[p],o(f,p,m)))})(Function.prototype,d,function(){return typeof this=="function"&&this[c]||h.call(this)})},"2aeb":function(n,r,a){var s=a("cb7c"),o=a("1495"),l=a("e11e"),c=a("613b")("IE_PROTO"),h=function(){},d="prototype",u=function(){var f=a("230e")("iframe"),p=l.length,m="<",v=">",w;for(f.style.display="none",a("fab2").appendChild(f),f.src="javascript:",w=f.contentWindow.document,w.open(),w.write(m+"script"+v+"document.F=Object"+m+"/script"+v),w.close(),u=w.F;p--;)delete u[d][l[p]];return u()};n.exports=Object.create||function(p,m){var v;return p!==null?(h[d]=s(p),v=new h,h[d]=null,v[c]=p):v=u(),m===void 0?v:o(v,m)}},"2b4c":function(n,r,a){var s=a("5537")("wks"),o=a("ca5a"),l=a("7726").Symbol,c=typeof l=="function",h=n.exports=function(d){return s[d]||(s[d]=c&&l[d]||(c?l:o)("Symbol."+d))};h.store=s},"2d00":function(n,r){n.exports=!1},"2d95":function(n,r){var a={}.toString;n.exports=function(s){return a.call(s).slice(8,-1)}},"2fdb":function(n,r,a){var s=a("5ca1"),o=a("d2c8"),l="includes";s(s.P+s.F*a("5147")(l),"String",{includes:function(h){return!!~o(this,h,l).indexOf(h,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(n,r,a){var s=a("86cc"),o=a("4630");n.exports=a("9e1e")?function(l,c,h){return s.f(l,c,o(1,h))}:function(l,c,h){return l[c]=h,l}},"38fd":function(n,r,a){var s=a("69a8"),o=a("4bf8"),l=a("613b")("IE_PROTO"),c=Object.prototype;n.exports=Object.getPrototypeOf||function(h){return h=o(h),s(h,l)?h[l]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?c:null}},"41a0":function(n,r,a){var s=a("2aeb"),o=a("4630"),l=a("7f20"),c={};a("32e9")(c,a("2b4c")("iterator"),function(){return this}),n.exports=function(h,d,u){h.prototype=s(c,{next:o(1,u)}),l(h,d+" Iterator")}},"456d":function(n,r,a){var s=a("4bf8"),o=a("0d58");a("5eda")("keys",function(){return function(c){return o(s(c))}})},4588:function(n,r){var a=Math.ceil,s=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?s:a)(o)}},4630:function(n,r){n.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"4bf8":function(n,r,a){var s=a("be13");n.exports=function(o){return Object(s(o))}},5147:function(n,r,a){var s=a("2b4c")("match");n.exports=function(o){var l=/./;try{"/./"[o](l)}catch{try{return l[s]=!1,!"/./"[o](l)}catch{}}return!0}},"520a":function(n,r,a){var s=a("0bfb"),o=RegExp.prototype.exec,l=String.prototype.replace,c=o,h="lastIndex",d=function(){var p=/a/,m=/b*/g;return o.call(p,"a"),o.call(m,"a"),p[h]!==0||m[h]!==0}(),u=/()??/.exec("")[1]!==void 0,f=d||u;f&&(c=function(m){var v=this,w,x,E,_;return u&&(x=new RegExp("^"+v.source+"$(?!\\s)",s.call(v))),d&&(w=v[h]),E=o.call(v,m),d&&E&&(v[h]=v.global?E.index+E[0].length:w),u&&E&&E.length>1&&l.call(E[0],x,function(){for(_=1;_<arguments.length-2;_++)arguments[_]===void 0&&(E[_]=void 0)}),E}),n.exports=c},"52a7":function(n,r){r.f={}.propertyIsEnumerable},5537:function(n,r,a){var s=a("8378"),o=a("7726"),l="__core-js_shared__",c=o[l]||(o[l]={});(n.exports=function(h,d){return c[h]||(c[h]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:a("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(n,r,a){var s=a("7726"),o=a("8378"),l=a("32e9"),c=a("2aba"),h=a("9b43"),d="prototype",u=function(f,p,m){var v=f&u.F,w=f&u.G,x=f&u.S,E=f&u.P,_=f&u.B,T=w?s:x?s[p]||(s[p]={}):(s[p]||{})[d],O=w?o:o[p]||(o[p]={}),X=O[d]||(O[d]={}),R,z,B,A;w&&(m=p);for(R in m)z=!v&&T&&T[R]!==void 0,B=(z?T:m)[R],A=_&&z?h(B,s):E&&typeof B=="function"?h(Function.call,B):B,T&&c(T,R,B,f&u.U),O[R]!=B&&l(O,R,A),E&&X[R]!=B&&(X[R]=B)};s.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,n.exports=u},"5eda":function(n,r,a){var s=a("5ca1"),o=a("8378"),l=a("79e5");n.exports=function(c,h){var d=(o.Object||{})[c]||Object[c],u={};u[c]=h(d),s(s.S+s.F*l(function(){d(1)}),"Object",u)}},"5f1b":function(n,r,a){var s=a("23c6"),o=RegExp.prototype.exec;n.exports=function(l,c){var h=l.exec;if(typeof h=="function"){var d=h.call(l,c);if(typeof d!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(l)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(l,c)}},"613b":function(n,r,a){var s=a("5537")("keys"),o=a("ca5a");n.exports=function(l){return s[l]||(s[l]=o(l))}},"626a":function(n,r,a){var s=a("2d95");n.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return s(o)=="String"?o.split(""):Object(o)}},6762:function(n,r,a){var s=a("5ca1"),o=a("c366")(!0);s(s.P,"Array",{includes:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},6821:function(n,r,a){var s=a("626a"),o=a("be13");n.exports=function(l){return s(o(l))}},"69a8":function(n,r){var a={}.hasOwnProperty;n.exports=function(s,o){return a.call(s,o)}},"6a99":function(n,r,a){var s=a("d3f4");n.exports=function(o,l){if(!s(o))return o;var c,h;if(l&&typeof(c=o.toString)=="function"&&!s(h=c.call(o))||typeof(c=o.valueOf)=="function"&&!s(h=c.call(o))||!l&&typeof(c=o.toString)=="function"&&!s(h=c.call(o)))return h;throw TypeError("Can't convert object to primitive value")}},7333:function(n,r,a){var s=a("0d58"),o=a("2621"),l=a("52a7"),c=a("4bf8"),h=a("626a"),d=Object.assign;n.exports=!d||a("79e5")(function(){var u={},f={},p=Symbol(),m="abcdefghijklmnopqrst";return u[p]=7,m.split("").forEach(function(v){f[v]=v}),d({},u)[p]!=7||Object.keys(d({},f)).join("")!=m})?function(f,p){for(var m=c(f),v=arguments.length,w=1,x=o.f,E=l.f;v>w;)for(var _=h(arguments[w++]),T=x?s(_).concat(x(_)):s(_),O=T.length,X=0,R;O>X;)E.call(_,R=T[X++])&&(m[R]=_[R]);return m}:d},7726:function(n,r){var a=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},"77f1":function(n,r,a){var s=a("4588"),o=Math.max,l=Math.min;n.exports=function(c,h){return c=s(c),c<0?o(c+h,0):l(c,h)}},"79e5":function(n,r){n.exports=function(a){try{return!!a()}catch{return!0}}},"7f20":function(n,r,a){var s=a("86cc").f,o=a("69a8"),l=a("2b4c")("toStringTag");n.exports=function(c,h,d){c&&!o(c=d?c:c.prototype,l)&&s(c,l,{configurable:!0,value:h})}},8378:function(n,r){var a=n.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)},"84f2":function(n,r){n.exports={}},"86cc":function(n,r,a){var s=a("cb7c"),o=a("c69a"),l=a("6a99"),c=Object.defineProperty;r.f=a("9e1e")?Object.defineProperty:function(d,u,f){if(s(d),u=l(u,!0),s(f),o)try{return c(d,u,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(d[u]=f.value),d}},"9b43":function(n,r,a){var s=a("d8e8");n.exports=function(o,l,c){if(s(o),l===void 0)return o;switch(c){case 1:return function(h){return o.call(l,h)};case 2:return function(h,d){return o.call(l,h,d)};case 3:return function(h,d,u){return o.call(l,h,d,u)}}return function(){return o.apply(l,arguments)}}},"9c6c":function(n,r,a){var s=a("2b4c")("unscopables"),o=Array.prototype;o[s]==null&&a("32e9")(o,s,{}),n.exports=function(l){o[s][l]=!0}},"9def":function(n,r,a){var s=a("4588"),o=Math.min;n.exports=function(l){return l>0?o(s(l),9007199254740991):0}},"9e1e":function(n,r,a){n.exports=!a("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(n,r){n.exports=i},a481:function(n,r,a){var s=a("cb7c"),o=a("4bf8"),l=a("9def"),c=a("4588"),h=a("0390"),d=a("5f1b"),u=Math.max,f=Math.min,p=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,w=function(x){return x===void 0?x:String(x)};a("214f")("replace",2,function(x,E,_,T){return[function(R,z){var B=x(this),A=R==null?void 0:R[E];return A!==void 0?A.call(R,B,z):_.call(String(B),R,z)},function(X,R){var z=T(_,X,this,R);if(z.done)return z.value;var B=s(X),A=String(this),it=typeof R=="function";it||(R=String(R));var ot=B.global;if(ot){var V=B.unicode;B.lastIndex=0}for(var k=[];;){var g=d(B,A);if(g===null||(k.push(g),!ot))break;var I=String(g[0]);I===""&&(B.lastIndex=h(A,l(B.lastIndex),V))}for(var D="",j=0,H=0;H<k.length;H++){g=k[H];for(var S=String(g[0]),b=u(f(c(g.index),A.length),0),C=[],F=1;F<g.length;F++)C.push(w(g[F]));var K=g.groups;if(it){var G=[S].concat(C,b,A);K!==void 0&&G.push(K);var tt=String(R.apply(void 0,G))}else tt=O(S,A,b,C,K,R);b>=j&&(D+=A.slice(j,b)+tt,j=b+S.length)}return D+A.slice(j)}];function O(X,R,z,B,A,it){var ot=z+X.length,V=B.length,k=v;return A!==void 0&&(A=o(A),k=m),_.call(it,k,function(g,I){var D;switch(I.charAt(0)){case"$":return"$";case"&":return X;case"`":return R.slice(0,z);case"'":return R.slice(ot);case"<":D=A[I.slice(1,-1)];break;default:var j=+I;if(j===0)return g;if(j>V){var H=p(j/10);return H===0?g:H<=V?B[H-1]===void 0?I.charAt(1):B[H-1]+I.charAt(1):g}D=B[j-1]}return D===void 0?"":D})}})},aae3:function(n,r,a){var s=a("d3f4"),o=a("2d95"),l=a("2b4c")("match");n.exports=function(c){var h;return s(c)&&((h=c[l])!==void 0?!!h:o(c)=="RegExp")}},ac6a:function(n,r,a){for(var s=a("cadf"),o=a("0d58"),l=a("2aba"),c=a("7726"),h=a("32e9"),d=a("84f2"),u=a("2b4c"),f=u("iterator"),p=u("toStringTag"),m=d.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},w=o(v),x=0;x<w.length;x++){var E=w[x],_=v[E],T=c[E],O=T&&T.prototype,X;if(O&&(O[f]||h(O,f,m),O[p]||h(O,p,E),d[E]=m,_))for(X in s)O[X]||l(O,X,s[X],!0)}},b0c5:function(n,r,a){var s=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(n,r){n.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},c366:function(n,r,a){var s=a("6821"),o=a("9def"),l=a("77f1");n.exports=function(c){return function(h,d,u){var f=s(h),p=o(f.length),m=l(u,p),v;if(c&&d!=d){for(;p>m;)if(v=f[m++],v!=v)return!0}else for(;p>m;m++)if((c||m in f)&&f[m]===d)return c||m||0;return!c&&-1}}},c649:function(n,r,a){(function(s){a.d(r,"c",function(){return f}),a.d(r,"a",function(){return d}),a.d(r,"b",function(){return l}),a.d(r,"d",function(){return u}),a("a481");function o(){return typeof window!="undefined"?window.console:s.console}var l=o();function c(p){var m=Object.create(null);return function(w){var x=m[w];return x||(m[w]=p(w))}}var h=/-(\w)/g,d=c(function(p){return p.replace(h,function(m,v){return v?v.toUpperCase():""})});function u(p){p.parentElement!==null&&p.parentElement.removeChild(p)}function f(p,m,v){var w=v===0?p.children[0]:p.children[v-1].nextSibling;p.insertBefore(m,w)}}).call(this,a("c8ba"))},c69a:function(n,r,a){n.exports=!a("9e1e")&&!a("79e5")(function(){return Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(n,r){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}n.exports=a},ca5a:function(n,r){var a=0,s=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++a+s).toString(36))}},cadf:function(n,r,a){var s=a("9c6c"),o=a("d53b"),l=a("84f2"),c=a("6821");n.exports=a("01f9")(Array,"Array",function(h,d){this._t=c(h),this._i=0,this._k=d},function(){var h=this._t,d=this._k,u=this._i++;return!h||u>=h.length?(this._t=void 0,o(1)):d=="keys"?o(0,u):d=="values"?o(0,h[u]):o(0,[u,h[u]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},cb7c:function(n,r,a){var s=a("d3f4");n.exports=function(o){if(!s(o))throw TypeError(o+" is not an object!");return o}},ce10:function(n,r,a){var s=a("69a8"),o=a("6821"),l=a("c366")(!1),c=a("613b")("IE_PROTO");n.exports=function(h,d){var u=o(h),f=0,p=[],m;for(m in u)m!=c&&s(u,m)&&p.push(m);for(;d.length>f;)s(u,m=d[f++])&&(~l(p,m)||p.push(m));return p}},d2c8:function(n,r,a){var s=a("aae3"),o=a("be13");n.exports=function(l,c,h){if(s(c))throw TypeError("String#"+h+" doesn't accept regex!");return String(o(l))}},d3f4:function(n,r){n.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},d53b:function(n,r){n.exports=function(a,s){return{value:s,done:!!a}}},d8e8:function(n,r){n.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},e11e:function(n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(n,r,a){var s=a("5ca1"),o=a("9def"),l=a("d2c8"),c="startsWith",h=""[c];s(s.P+s.F*a("5147")(c),"String",{startsWith:function(u){var f=l(this,u,c),p=o(Math.min(arguments.length>1?arguments[1]:void 0,f.length)),m=String(u);return h?h.call(f,m,p):f.slice(p,p+m.length)===m}})},f6fd:function(n,r){(function(a){var s="currentScript",o=a.getElementsByTagName("script");s in a||Object.defineProperty(a,s,{get:function(){try{throw new Error}catch(h){var l,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(h.stack)||[!1])[1];for(l in o)if(o[l].src==c||o[l].readyState=="interactive")return o[l];return null}}})})(document)},f751:function(n,r,a){var s=a("5ca1");s(s.S+s.F,"Object",{assign:a("7333")})},fa5b:function(n,r,a){n.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(n,r,a){var s=a("7726").document;n.exports=s&&s.documentElement},fb15:function(n,r,a){if(a.r(r),typeof window!="undefined"){a("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1])}a("f751"),a("f559"),a("ac6a"),a("cadf"),a("456d");function o(S){if(Array.isArray(S))return S}function l(S,b){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var C=[],F=!0,K=!1,G=void 0;try{for(var tt=S[Symbol.iterator](),ct;!(F=(ct=tt.next()).done)&&(C.push(ct.value),!(b&&C.length===b));F=!0);}catch(Tt){K=!0,G=Tt}finally{try{!F&&tt.return!=null&&tt.return()}finally{if(K)throw G}}return C}}function c(S,b){(b==null||b>S.length)&&(b=S.length);for(var C=0,F=new Array(b);C<b;C++)F[C]=S[C];return F}function h(S,b){if(!!S){if(typeof S=="string")return c(S,b);var C=Object.prototype.toString.call(S).slice(8,-1);if(C==="Object"&&S.constructor&&(C=S.constructor.name),C==="Map"||C==="Set")return Array.from(S);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(S,b)}}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
19
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(S,b){return o(S)||l(S,b)||h(S,b)||d()}a("6762"),a("2fdb");function f(S){if(Array.isArray(S))return c(S)}function p(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(S){return f(S)||p(S)||h(S)||m()}var w=a("a352"),x=a.n(w),E=a("c649");function _(S,b,C){return C===void 0||(S=S||{},S[b]=C),S}function T(S,b){return S.map(function(C){return C.elm}).indexOf(b)}function O(S,b,C,F){if(!S)return[];var K=S.map(function(ct){return ct.elm}),G=b.length-F,tt=v(b).map(function(ct,Tt){return Tt>=G?K.length:K.indexOf(ct)});return C?tt.filter(function(ct){return ct!==-1}):tt}function X(S,b){var C=this;this.$nextTick(function(){return C.$emit(S.toLowerCase(),b)})}function R(S){var b=this;return function(C){b.realList!==null&&b["onDrag"+S](C),X.call(b,S,C)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function B(S){if(!S||S.length!==1)return!1;var b=u(S,1),C=b[0].componentOptions;return C?z(C.tag):!1}function A(S,b,C){return S[C]||(b[C]?b[C]():void 0)}function it(S,b,C){var F=0,K=0,G=A(b,C,"header");G&&(F=G.length,S=S?[].concat(v(G),v(S)):v(G));var tt=A(b,C,"footer");return tt&&(K=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:K}}function ot(S,b){var C=null,F=function($t,Ae){C=_(C,$t,Ae)},K=Object.keys(S).filter(function(Tt){return Tt==="id"||Tt.startsWith("data-")}).reduce(function(Tt,$t){return Tt[$t]=S[$t],Tt},{});if(F("attrs",K),!b)return C;var G=b.on,tt=b.props,ct=b.attrs;return F("on",G),F("props",tt),Object.assign(C.attrs,ct),C}var V=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(V,k).map(function(S){return"on"+S}),I=null,D={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(b){return b}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},j={name:"draggable",inheritAttrs:!1,props:D,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(b){var C=this.$slots.default;this.transitionMode=B(C);var F=it(C,this.$slots,this.$scopedSlots),K=F.children,G=F.headerOffset,tt=F.footerOffset;this.headerOffset=G,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return b(this.getTag(),ct,K)},created:function(){this.list!==null&&this.value!==null&&E.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&E.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&E.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var b=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var C={};V.forEach(function(G){C["on"+G]=R.call(b,G)}),k.forEach(function(G){C["on"+G]=X.bind(b,G)});var F=Object.keys(this.$attrs).reduce(function(G,tt){return G[Object(E.a)(tt)]=b.$attrs[tt],G},{}),K=Object.assign({},this.options,F,C,{onMove:function(tt,ct){return b.onDragMove(tt,ct)}});!("draggable"in K)&&(K.draggable=">*"),this._sortable=new x.a(this.rootContainer,K),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(b){this.updateOptions(b)},deep:!0},$attrs:{handler:function(b){this.updateOptions(b)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var b=this._vnode.fnOptions;return b&&b.functional},getTag:function(){return this.tag||this.element},updateOptions:function(b){for(var C in b){var F=Object(E.a)(C);g.indexOf(F)===-1&&this._sortable.option(F,b[C])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var b=this.$slots.default;return this.transitionMode?b[0].child.$slots.default:b},computeIndexes:function(){var b=this;this.$nextTick(function(){b.visibleIndexes=O(b.getChildrenNodes(),b.rootContainer.children,b.transitionMode,b.footerOffset)})},getUnderlyingVm:function(b){var C=T(this.getChildrenNodes()||[],b);if(C===-1)return null;var F=this.realList[C];return{index:C,element:F}},getUnderlyingPotencialDraggableComponent:function(b){var C=b.__vue__;return!C||!C.$options||!z(C.$options._componentTag)?!("realList"in C)&&C.$children.length===1&&"realList"in C.$children[0]?C.$children[0]:C:C.$parent},emitChanges:function(b){var C=this;this.$nextTick(function(){C.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var C=v(this.value);b(C),this.$emit("input",C)},spliceList:function(){var b=arguments,C=function(K){return K.splice.apply(K,v(b))};this.alterList(C)},updatePosition:function(b,C){var F=function(G){return G.splice(C,0,G.splice(b,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(b){var C=b.to,F=b.related,K=this.getUnderlyingPotencialDraggableComponent(C);if(!K)return{component:K};var G=K.realList,tt={list:G,component:K};if(C!==F&&G&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(b){var C=this.visibleIndexes,F=C.length;return b>F-1?F:C[b]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(b){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var C=this.getChildrenNodes();C[b].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(b){this.context=this.getUnderlyingVm(b.item),b.item._underlying_vm_=this.clone(this.context.element),I=b.item},onDragAdd:function(b){var C=b.item._underlying_vm_;if(C!==void 0){Object(E.d)(b.item);var F=this.getVmIndex(b.newIndex);this.spliceList(F,0,C),this.computeIndexes();var K={element:C,newIndex:F};this.emitChanges({added:K})}},onDragRemove:function(b){if(Object(E.c)(this.rootContainer,b.item,b.oldIndex),b.pullMode==="clone"){Object(E.d)(b.clone);return}var C=this.context.index;this.spliceList(C,1);var F={element:this.context.element,oldIndex:C};this.resetTransitionData(C),this.emitChanges({removed:F})},onDragUpdate:function(b){Object(E.d)(b.item),Object(E.c)(b.from,b.item,b.oldIndex);var C=this.context.index,F=this.getVmIndex(b.newIndex);this.updatePosition(C,F);var K={element:this.context.element,oldIndex:C,newIndex:F};this.emitChanges({moved:K})},updateProperty:function(b,C){b.hasOwnProperty(C)&&(b[C]+=this.headerOffset)},computeFutureIndex:function(b,C){if(!b.element)return 0;var F=v(C.to.children).filter(function(ct){return ct.style.display!=="none"}),K=F.indexOf(C.related),G=b.component.getVmIndex(K),tt=F.indexOf(I)!==-1;return tt||!C.willInsertAfter?G:G+1},onDragMove:function(b,C){var F=this.move;if(!F||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(b),G=this.context,tt=this.computeFutureIndex(K,b);Object.assign(G,{futureIndex:tt});var ct=Object.assign({},b,{relatedContext:K,draggedContext:G});return F(ct,C)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var H=j;r.default=H}}).default})})(qd);var B1=Hp(qd.exports),F1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"app-page"},[i("van-sticky",{staticClass:"myapp-sticky",attrs:{"offset-top":48}},[i("div",{ref:"myapp",staticClass:"myapp",style:{width:"-webkit-fill-available"}},[i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" \u6211\u7684\u5E94\u7528 "),i("van-button",{staticClass:"edit-btn",attrs:{size:"small",type:"info",text:this.editButtonName},on:{click:e.toggleEdit}})],1)]),i("draggable",{staticClass:"wrapper",attrs:{options:{disabled:e.disableDraggable}},model:{value:e.my_apps,callback:function(n){e.my_apps=n},expression:"my_apps"}},[i("transition-group",{staticClass:"my-app-list",staticStyle:{display:"flex","flex-wrap":"wrap"}},e._l(e.my_apps,function(n,r){return i("apps-item",{key:r,staticClass:"item",staticStyle:{width:"25%",padding:"16px 8px","box-sizing":"border-box"},attrs:{item:n,state:n.state,editStatus:e.currentEditStatus=="on"?"minus":"off"},on:{touchend:e.rmFromMyAppsClick}})}),1)],1)],1)])]),i("van-tabs",{attrs:{color:"#488aff",scrollspy:"",sticky:"","offset-top":e.offsetTop},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,staticClass:"menu"},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:e.currentEditStatus=="on"?"plus":"off"},on:{touchend:e.addToMyAppsClick}})],1)}),1)],1)}),1),i("tabbar")],1)],1)},R1=[];const V1={components:{tabbar:ti,MyApps:Us,appsItem:ze,Draggable:B1},name:"IndMApps",data(){return{active:0,name:"apps",apps_menus:[],my_apps:[],title:"",currentEditStatus:"off",userAppTip:"\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",editButtonName:"\u7F16\u8F91",editClass:"",rmFromMyAppsClick:this.routeTo,addToMyAppsClick:this.routeTo,offsetTop:"246px",maxApps:8}},watch:{currentEditStatus(e){switch(e){case"on":{this.userAppTip="\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F",this.editButtonName="\u5B8C\u6210",this.editClass="editing",this.rmFromMyAppsClick=this.rmFromMyApps,this.addToMyAppsClick=this.addToMyApps,this.disableDraggable=!1;break}case"off":{this.userAppTip="\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",this.editButtonName="\u7F16\u8F91",this.editClass="",this.rmFromMyAppsClick=this.routeTo,this.addToMyAppsClick=this.routeTo,this.saveMyApps(),this.disableDraggable=!0;break}}},my_apps(){setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48},200)}},updated(){this.$store.commit("setMyAppsList",this.my_apps)},mounted(){var i,n;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&((n=this.$config)==null?void 0:n.isMobileSeparate)!="1"&&(e=e.find(a=>{var s;return a.extendProps&&((s=JSON.parse(a.extendProps))==null?void 0:s.mainMobile)=="1"}).children);let t=e.filter(r=>r.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.processState(this.my_apps,t),console.log(this.apps_menus),setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48+10},100)},methods:{routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},toggleEdit(){switch(this.currentEditStatus){case"on":{this.currentEditStatus="off";break}case"off":{this.currentEditStatus="on";break}}},saveMyApps(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.my_apps)}).catch(()=>{})},processState(e,t){return t.forEach(i=>{let n=!1;for(let r of e){if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1,r.meta.icon=i.meta.icon;break}r.state=!0}n||(i.state=!0),i.children&&this.processState(e,i.children)}),t},addToMyApps(e){if(this.my_apps.length==this.maxApps){wt("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},bf={};var z1=Y(V1,F1,R1,!1,j1,null,null,null);function j1(e){for(let t in bf)this[t]=bf[t]}var ho=function(){return z1.exports}(),H1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app"},[i("van-sticky",[i("van-nav-bar",{attrs:{title:e.title,"right-text":"\u4FDD\u5B58","left-arrow":""},on:{"click-left":e.back,"click-right":e.save}})],1),i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(e.title))])]),i("van-grid",{attrs:{border:!1}},e._l(e.myAppList,function(n){return i("van-grid-item",{key:n.meta.permissionId,on:{click:function(r){return e.rmFromMyApps(n)}}},[i("div",{staticStyle:{height:"100%"}},[i("van-badge",{attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:"minus"}})]},proxy:!0}],null,!0)},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1)]),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(n.meta.title))])])],1)])}),1)],1),i("van-tabs",{attrs:{scrollspy:"",sticky:""},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:10,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,on:{click:function(s){return e.addToMyApps(a)}}},[a.state?i("div",{staticStyle:{height:"100%"}},[i("van-badge",{attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:"plus"}})]},proxy:!0}],null,!0)},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1)]),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(a.meta.title))])])],1):i("div",{staticStyle:{height:"100%"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(a.meta.title))])])])])}),1)],1)}),1)],1)},U1=[],p_="";const K1={name:"IndMAppsEdit",data(){return{myAppList:[],active:0,name:"apps",apps_menus:[],title:"\u5E94\u7528\u7BA1\u7406"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList;let t=this.$store.getters.getMenuTreeList.filter(i=>i.name===this.name)[0].children;this.title=t[0].meta.title,this.mergeData(this.myAppList,t),this.apps_menus=t,console.log(t)},methods:{back(){this.$router.back()},save(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.myAppList),this.$router.back()}).catch(()=>{})},mergeData(e,t){return t.forEach(i=>{let n=!1;for(let r of e)if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1;break}n||(i.state=!0),i.children&&this.mergeData(e,i.children)}),t},addToMyApps(e){if(this.myAppList.length!==0)for(var t=0;t<this.myAppList.length;t++)if(this.myAppList.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.myAppList.push(this.findMenu(this.apps_menus,e,!1));break}else this.myAppList.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.myAppList.length;t++)if(this.myAppList[t].meta.permissionId===e.meta.permissionId){this.myAppList.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},Sf={};var W1=Y(K1,H1,U1,!1,Y1,"1cee7da5",null,null);function Y1(e){for(let t in Sf)this[t]=Sf[t]}var fo=function(){return W1.exports}(),X1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-myApp-slim"},[i("div",{staticClass:"ind-myApp-slim-content"},[i("div",{staticClass:"ind-myApp-slim-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-icon-group"},[e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"50%","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),e.icons.length!==0?i("van-icon",{staticClass:"ind-myApp-slim-toggle-icon",class:{"ind-myApp-slim-rotate-down":e.expanded},attrs:{name:"arrow"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-content-button"},[i("div",{staticClass:"ind-myApp-slim-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},G1=[];const q1={components:{appsItem:ze},props:{icons:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1}},computed:{getIcons(){return this.icons},displayedIcons(){return this.icons.slice(0,9)},showMoreIcon(){return this.icons.length>9},moreCount(){const e=this.icons.length-9;return e>99?"99":e},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}}},wf={};var J1=Y(q1,X1,G1,!1,Z1,null,null,null);function Z1(e){for(let t in wf)this[t]=wf[t]}var po=function(){return J1.exports}(),Q1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",{staticClass:"customnnnmmmm-tabs-container"},[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-custom-tabs-content"},[i("div",{staticClass:"ind-m-custom-sidebar"},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,class:["ind-m-sidebar-item",{active:e.activeKey===r}],on:{click:function(a){return e.handleSidebarClick(r)}}},[i("span",{class:["ind-m-sidebar-text",{active:e.activeKey===r}]},[e._v(" "+e._s(n.meta.title)+" ")])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"300px",height:"100%"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,staticClass:"ind-m-menu-section",attrs:{id:"section-"+e.active+"-"+r,"data-index":r}},[i("div",{staticClass:"ind-m-divider-container"},[i("van-divider",{staticClass:"ind-m-custom-divider"},[e._v(" "+e._s(n.meta.title)+" ")])],1),i("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row"}},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,style:{width:e.getTreeTotalDepth(n)>2?"100%":"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:e.getTreeTotalDepth(n)>2?null:"center",justifyContent:"center",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row",marginBottom:e.getTreeTotalDepth(n)>2?"20px":"0px"}},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}}),a.children?i("div",{staticClass:"ind-m-category-header"},[i("div",{staticClass:"ind-m-category-indicator"}),i("div",{staticClass:"ind-m-category-title"},[e._v(e._s(a.meta.title))])]):e._e(),a.children?i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children[r]&&e.apps_menus[e.active].children[r].children[s]&&e.apps_menus[e.active].children[r].children[s].children||[],function(o){return i("div",{key:o.meta.permissionId,style:{width:"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},t$=[];const e$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((r=this.$config)==null?void 0:r.isMobileSeparate)!="1"&&(i=i.find(o=>{var l;return o.extendProps&&((l=JSON.parse(o.extendProps))==null?void 0:l.mainMobile)=="1"}).children);let a=i.filter(s=>s.name===this.name);this.apps_menus=a[0].children,this.title=a[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((s,o)=>{this.$set(this.tabActiveKeys,o,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},Cf={};var i$=Y(e$,Q1,t$,!1,n$,null,null,null);function n$(e){for(let t in Cf)this[t]=Cf[t]}var r$=function(){return i$.exports}(),a$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",{staticClass:"customnnnmmmm-tabs-container"},[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-custom-tabs-content"},[i("div",{staticClass:"ind-m-custom-sidebar"},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,class:["ind-m-sidebar-item",{active:e.activeKey===r}],on:{click:function(a){return e.handleSidebarClick(r)}}},[i("span",{class:["ind-m-sidebar-text",{active:e.activeKey===r}]},[e._v(" "+e._s(n.meta.title)+" ")])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"300px",height:"100%"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,staticClass:"ind-m-menu-section",attrs:{id:"section-"+e.active+"-"+r,"data-index":r}},[i("div",{staticClass:"ind-m-divider-container"},[i("van-divider",{staticClass:"ind-m-custom-divider"},[e._v(" "+e._s(n.meta.title)+" ")])],1),i("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row"}},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,style:{width:e.getTreeTotalDepth(n)>2?"100%":"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:e.getTreeTotalDepth(n)>2?null:"center",justifyContent:"center",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row",marginBottom:e.getTreeTotalDepth(n)>2?"20px":"0px"}},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}}),a.children?i("div",{staticClass:"ind-m-category-header"},[i("div",{staticClass:"ind-m-category-indicator"}),i("div",{staticClass:"ind-m-category-title"},[e._v(e._s(a.meta.title))])]):e._e(),a.children?i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children[r]&&e.apps_menus[e.active].children[r].children[s]&&e.apps_menus[e.active].children[r].children[s].children||[],function(o){return i("div",{key:o.meta.permissionId,style:{width:"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},s$=[];const o$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((r=this.$config)==null?void 0:r.isMobileSeparate)!="1"&&(i=i.find(o=>{var l;return o.extendProps&&((l=JSON.parse(o.extendProps))==null?void 0:l.mainMobile)=="1"}).children);let a=i.filter(s=>s.name===this.name);this.apps_menus=a[0].children,this.title=a[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((s,o)=>{this.$set(this.tabActiveKeys,o,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},xf={};var l$=Y(o$,a$,s$,!1,c$,null,null,null);function c$(e){for(let t in xf)this[t]=xf[t]}var u$=function(){return l$.exports}(),h$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},d$=[];const f$={components:{abovelevelTwoOld:r$,abovelevelTwoNew:u$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},$f={};var p$=Y(f$,h$,d$,!1,m$,null,null,null);function m$(e){for(let t in $f)this[t]=$f[t]}var v$=function(){return p$.exports}(),g$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528old"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-my-app-container",staticStyle:{"padding-bottom":"150px"},style:{height:e.disMyapp?"calc(100vh - 380px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("div",{key:r,staticClass:"ind-my-app-container-square"},[i("div",{staticClass:"ind-my-app-container-square-title"},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(n.children,function(a){return i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])}),0)]),i("tabbar")],1)],1)},y$=[];function mo(e){return e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),{...t,children:i.map(r=>({...r,children:void 0}))}})}const b$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[]}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0;const t=50;let i=setInterval(()=>{var r,a;e++;let n=this.$store.getters.getMenuTreeList||[];if(n&&n.length>0){clearInterval(i),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,n),((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((a=this.$config)==null?void 0:a.isMobileSeparate)!="1"&&(n=n.find(h=>{var d;return h.extendProps&&((d=JSON.parse(h.extendProps))==null?void 0:d.mainMobile)=="1"}).children);let s=n.filter(c=>c.name===this.name),o=s[0].children.map(c=>c.meta.title);this.titleList=["\u5168\u90E8",...o];const l=s[0].children.reduce((c,h)=>(c[h.meta.title]=h,c),{});this.allApps_menus={\u5168\u90E8:s[0].children,...l},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=mo(this.apps_menus),this.title=s[0].meta.title}else e>=t?(clearInterval(i),console.warn(`\u5C1D\u8BD5${t}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],e!=="\u5168\u90E8"?this.apps_menus=mo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=mo(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},kf={};var S$=Y(b$,g$,y$,!1,w$,null,null,null);function w$(e){for(let t in kf)this[t]=kf[t]}var C$=function(){return S$.exports}(),x$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndMCard",{attrs:{showHeader:!1,innerPadding:"0px"}},[i("div",{staticClass:"ind-myApp-slim-new-content"},[i("div",{staticClass:"ind-myApp-slim-new-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-new-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-new-icon-group"},e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-new-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"8px","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),0),e.icons.length!==0&&!e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-forward"}}):e._e(),e.icons.length!==0&&e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-down"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-new-content-button"},[i("div",{staticClass:"ind-myApp-slim-new-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto"}},[i("van-swipe",{staticClass:"ind-myApp-slim-new-content-swipe",attrs:{"show-indicators":!0,loop:!1}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-new-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-new-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("appsItem",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},$$=[];const k$={components:{appsItem:ze},data(){return{iconscount:5}},props:{icons:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1}},computed:{displayedIcons(){return this.icons.slice(0,this.iconscount)},showMoreIcon(){return this.icons.length>this.iconscount},moreCount(){const e=this.icons.length-this.iconscount;return e>99?"99":e},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},created(){const e=window.innerWidth,i=[{maxWidth:375,count:5},{maxWidth:412,count:6},{maxWidth:430,count:7},{maxWidth:768,count:21},{maxWidth:820,count:23},{maxWidth:912,count:26},{maxWidth:1024,count:31},{maxWidth:1280,count:41},{maxWidth:1366,count:45},{maxWidth:1440,count:48}].find(n=>e<=n.maxWidth);this.iconscount=i?i.count:7}},Tf={};var T$=Y(k$,x$,$$,!1,_$,null,null,null);function _$(e){for(let t in Tf)this[t]=Tf[t]}var I$=function(){return T$.exports}(),E$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-app-center"},[e.isHb?e._e():i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-new-app-page",staticStyle:{position:"relative"},style:{minHeight:e.isHb?"100vh":"calc(100vh - 48px)"}},[i("div",{style:{top:"0px",position:"absolute",left:"0px",width:"100%",height:"213px",zIndex:0}},[i("IndMImgLoad",{attrs:{position:"center top",size:"100% 100%",pick:"ind:appNew:bg",type:"TableData"}})],1),i("div",{staticClass:"ind-m-new-placeholder"},[i("van-search",{staticClass:"ind-m-new-placeholder-search",attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-left"},[i("Icon",{attrs:{type:"md-search"}})],1)]},proxy:!0},{key:"right-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-right",on:{click:e.onSearch}},[e._v("\u641C\u7D22")])]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"90vw",height:"50vh","background-color":"var(--ind-m-home-bg-color)"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 4)",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myappNew",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"custom-new-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"custom-new-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"custom-new-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"custom-new-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"custom-new-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-new-app-container",staticStyle:{padding:"0px 0px 150px 0px"},style:{height:e.disMyapp?"calc(100vh - 410px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("IndMCard",{key:r,attrs:{padding:"0px 10px 10px 10px",title:n.meta.title,icon:"/public/imgs/resource/card-icon.png"}},[i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},[e._l(n.children,function(a){return[i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)]})],2),e._l(n.foldChildren,function(a){return[i("div",{key:a.meta.permissionId,staticStyle:{"padding-left":"16px","margin-top":"4px","font-size":"14px","font-weight":"bold",color:"#333"}},[e._v(" "+e._s(a.meta.title)+" ")]),i("div",{key:a.meta.permissionId,style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(a.children,function(s){return i("div",{key:s.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:s,state:s.state,title:s.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]})],2)}),1)]),i("tabbar")],1)],1)},D$=[];const M$={components:{tabbar:ti,appsItem:ze,myappNew:I$},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[],level:"2",curTabl:"\u5168\u90E8"}},mounted(){var a;this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(s){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",s.message),"{}"}this.level=((a=t==null?void 0:t.systemDefaultConfig)==null?void 0:a.theLevel)||3;let i=0;const n=50;let r=setInterval(()=>{var o,l;i++;let s=this.$store.getters.getMenuTreeList||[];if(s&&s.length>0){clearInterval(r),console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,s),((o=this.$config)==null?void 0:o.mainType)=="singleApp"&&((l=this.$config)==null?void 0:l.isMobileSeparate)!="1"&&(s=s.find(f=>{var p;return f.extendProps&&((p=JSON.parse(f.extendProps))==null?void 0:p.mainMobile)=="1"}).children);let c=s.filter(u=>u.name===this.name),h=c[0].children.map(u=>u.meta.title);this.titleList=["\u5168\u90E8",...h];const d=c[0].children.reduce((u,f)=>(u[f.meta.title]=f,u),{});this.allApps_menus={\u5168\u90E8:c[0].children,...d},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.title=c[0].meta.title}else i>=n?(clearInterval(r),console.warn(`\u5C1D\u8BD5${n}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{simplifyMenuTree(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),console.log({...t,children:i.map(r=>({...r,children:void 0}))}),{...t,children:i.map(r=>({...r,children:void 0}))}})):[]},simplifyMenuTree2N(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{var s;const i=[],n=[];function r(o){var l;((l=o==null?void 0:o.children)==null?void 0:l.length)>0?n.push(o):(o.path||o.uri)&&i.push(o)}function a(o,l){var c,h;((c=o==null?void 0:o.children)==null?void 0:c.length)>0?(h=o.children)==null||h.forEach(d=>a(d,l)):(o.path||o.uri)&&l.push(o)}return this.curTabl=="\u5168\u90E8"?(s=t==null?void 0:t.children)==null||s.forEach(r):r(t),i.forEach(o=>{o.children=null}),n.forEach(o=>{let l=[];a(o,l),o.children=l}),{...t,children:i,foldChildren:n}})):[]},handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],this.curTabl=e,e!=="\u5168\u90E8"?this.apps_menus=this.simplifyMenuTree((i=this.apps_menus)==null?void 0:i.children):this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},_f={};var O$=Y(M$,E$,D$,!1,L$,null,null,null);function L$(e){for(let t in _f)this[t]=_f[t]}var A$=function(){return O$.exports}(),P$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},N$=[];const B$={components:{levelTwoOld:C$,levelTwoNew:A$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},If={};var F$=Y(B$,P$,N$,!1,R$,null,null,null);function R$(e){for(let t in If)this[t]=If[t]}var V$=function(){return F$.exports}(),z$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},j$=[];function Ef(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=Ef(n,t+1);r>i&&(i=r)}return i}function H$(e){let t=0;for(const i of e){const n=Ef(i);n>t&&(t=n)}return t}const U$={components:{aboveleveltwo:v$,leveltwo:V$},data(){return{level:3,name:"appsNew",apps_menus:[],isHb:!1,depth:"4"}},methods:{appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},created(){var n,r;this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList||[];e.length||console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC"),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((r=this.$config)==null?void 0:r.isMobileSeparate)!="1"&&(e=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let t=e.filter(a=>a.name===this.name);this.apps_menus=t[0].children,this.appsMenusExtended(this.apps_menus);const i=H$(this.apps_menus);this.depth=i},computed:{currentComponent(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"{}"}if(this.level=((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.theLevel)||3,this.depth=this.depth||4,(this.level==2||this.level=="2N")&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},Df={};var K$=Y(U$,z$,j$,!1,W$,null,null,null);function W$(e){for(let t in Df)this[t]=Df[t]}var vo=function(){return K$.exports}(),Y$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"custom-overlay",class:{show:e.loading},on:{click:function(n){n.stopPropagation()}}},[e.isFullScreenLoading&&e.loadingImageUrl(!0)?i("div",{staticClass:"ind-loading-wrapper-global"},[i("img",{staticStyle:{height:"100%",width:"100%"},attrs:{src:e.loadingImageUrl(!0),alt:""}}),i("div",{staticClass:"ind-loading-wrapper-text"},[e._v(" "+e._s(e.text||"\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...")+" ")])]):!e.isFullScreenLoading&&e.loadingImageUrl(!1)?i("div",{staticClass:"ind-loading-wrapper-local"},[i("div",{staticClass:"ind-loading-block ind-vcenter"},[i("div",{staticClass:"ind-loading-block-center"},[i("img",{attrs:{src:e.loadingImageUrl(!1),alt:""}}),i("div",{staticClass:"ind-loading-block-text"},[e._v(e._s(e.text||"\u52A0\u8F7D\u4E2D..."))])])])]):e.loadingImageUrl(!1)?e._e():i("div",{staticClass:"ind-loading-wrapper-local"},[i("div",{staticClass:"ind-loading-block ind-vcenter"},[i("div",{staticClass:"ind-loading-block-center"},[i("div",{staticClass:"img-divv"},[i("van-loading")],1),i("div",{staticClass:"ind-loading-block-text"},[e._v(e._s(e.text||"\u52A0\u8F7D\u4E2D..."))])])])])])},X$=[];const G$={props:{loading:Boolean,isFullScreenLoading:{type:Boolean,default:!1},text:String},data(){return{}},methods:{loadingImageUrl(e){const t=e?"systemDefaultConfig.globalLoading":"systemDefaultConfig.localLoading",i=this.getSafeConfigValue(t);return i&&i.trim()!==""?`/user-manage-server/oss/file/get/${i}`:!1},getSafeConfigValue(e){if(!!this.$config)return e.split(".").reduce((t,i)=>t&&t[i]!==void 0?t[i]:void 0,this.$config)}}},Mf={};var q$=Y(G$,Y$,X$,!1,J$,null,null,null);function J$(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return q$.exports}(),Z$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-page"},[i("van-sticky",[i("van-nav-bar",{attrs:{fixed:!0,"left-arrow":"",placeholder:!0,"safe-area-inset-top":!0,title:"\u8BBE\u7F6E"},on:{"click-left":e.onClickLeft}})],1),i("van-cell-group",{attrs:{title:"\u8BBE\u7F6E"}},[i("van-cell",{attrs:{title:"vconsole\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.vconsoleChecked,callback:function(n){e.vconsoleChecked=n},expression:"vconsoleChecked"}})],1),e.isHb?i("van-cell",{attrs:{title:"\u8FDC\u7A0B\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.chiiChecked,callback:function(n){e.chiiChecked=n},expression:"chiiChecked"}})],1):e._e()],1)],1)},Q$=[];const tk={data(){return{vconsoleChecked:!1,chiiChecked:!1,isHb:location.pathname.includes("scyxweb")}},watch:{vconsoleChecked:function(){if(this.vconsoleChecked){const e=document.createElement("script");e.src="vconsole.min.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e.onload=function(){window.vConsole=new VConsole}}this.vconsoleChecked=!0},chiiChecked:function(){if(this.chiiChecked){const e=document.createElement("script");e.src="//dev.sunquan.tech/inspect/target.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}this.chiiChecked=!0}},methods:{onClickLeft(){this.$router.back()}}},Lf={};var ek=Y(tk,Z$,Q$,!1,ik,null,null,null);function ik(e){for(let t in Lf)this[t]=Lf[t]}var go=function(){return ek.exports}(),nk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticStyle:{width:"100%",height:"100%","text-align":"right"},on:{click:function(n){e.isshow=!0}}},[i("span",{staticStyle:{color:"#c5d2e3"}},[e._v(e._s(e.resultList.length?"\u5DF2\u4E0A\u4F20"+e.resultList.length+"\u4E2A\u6587\u4EF6":"\u8BF7\u4E0A\u4F20"))]),i("Icon",{staticStyle:{"font-size":"16px",color:"#808695 !important"},attrs:{type:"ios-arrow-forward"}})],1),i("van-popup",{attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.isshow,callback:function(n){e.isshow=n},expression:"isshow"}},[i("van-overlay",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-up-loading-overlay",attrs:{"z-index":"9999",show:e.loading}},[i("div",{staticClass:"ind-up-loading-wrapper"},[i("van-loading",{attrs:{color:"#1989fa",size:"25px"}}),i("div",{staticClass:"ind-up-loading-text"},[e._v("\u4E0A\u4F20\u4E2D...")])],1)]),i("div",{staticStyle:{height:"100vh",width:"100vw",display:"flex","flex-direction":"column","justify-content":"space-between","background-color":"rgb(240 240 240)"}},[i("div",{staticStyle:{height:"48px",width:"100vw"}},[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u4E0A\u4F20","left-text":"","left-arrow":""},on:{"click-left":function(n){e.isshow=!1}}})],1),i("div",{style:{height:e.readonly?"100%":"calc(100vh - 100px)"}},[e.readonly?e._e():i("div",{staticClass:"ind-upLoad-clickHere",on:{click:e.uploadFile}},[i("div",{staticClass:"ind-upLoad-clickHere-icon"},[i("Icon",{staticClass:"ind-upLoad-clickHere-icon-icon",attrs:{type:"ios-cloud-upload"}}),i("div",{staticClass:"ind-upLoad-clickHere-icon-text"},[e._v("\u70B9\u51FB\u4E0A\u4F20")])],1)]),i("div",{staticClass:"ind-upLoad-file-list",staticStyle:{"overflow-y":"auto"},style:{height:e.readonly?"100%":"calc(100% - 220px)",padding:"10px"}},[e.resultList.length?i("div",{staticStyle:{"background-color":"#fff",height:"100%","overflow-y":"auto","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),e._l(e.resultList||e.defaultList,function(n,r){return i("van-cell",{key:r},[i("div",{staticClass:"ind-upLoad-file-list-container-item"},[i("div",{staticClass:"ind-upLoad-file-list-container-ititle",on:{click:function(a){return e.handleClickAttachment(n)}}},[e._v(" "+e._s(n.fileName)+" ")]),e.readonly?e._e():i("div",{staticClass:"ind-upLoad-file-list-container-idel",on:{click:function(a){return e.deleteFile(n.fileId)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idel-btn"},[i("Icon",{staticStyle:{"font-size":"16px"},attrs:{type:"md-trash"}}),e._v("\u5220\u9664 ")],1)]),e.shouldShowDelete?i("div",{staticClass:"ind-upLoad-file-list-container-idownload",on:{click:function(a){return e.handleDownload(n)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idownload-btn"},[i("Icon",{staticStyle:{"font-size":"18px"},attrs:{type:"md-cloud-download"}}),e._v(" \u4E0B\u8F7D ")],1)]):e._e()])])})],2):i("div",{staticStyle:{"background-color":"#fff",height:"100%",overflow:"hidden","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),i("van-empty",{attrs:{description:"\u6682\u65E0\u6587\u4EF6"}})],1)])]),e.readonly?e._e():i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1),i("input",{ref:"uploadInput",staticStyle:{position:"absolute",clip:"rect(0 0 0 0)"},attrs:{type:"file",disabled:!1,multiple:!0,accept:e.accept},on:{change:function(n){return e.readFile(n)}}})])],1),i("van-popup",{style:{width:"100%",height:"100%"},attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.previewVisible,callback:function(n){e.previewVisible=n},expression:"previewVisible"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u9884\u89C8","left-text":"","left-arrow":""},on:{"click-left":e.closePreview}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[e.isHB?i("iframe",{staticClass:"preview-iframe",staticStyle:{height:"calc(100vh - 48px)"},attrs:{src:e.previewUrl,frameborder:"0"}}):i("div",{staticStyle:{width:"100%",height:"calc(100% - 46px)"},attrs:{id:"wps-preview-container"}})])],1)],1)},rk=[];function ak(e){if(e){let t=parseInt(e);return t<1024?t+" B":t<1024*1024?parseInt(t/1024)+" KB":t<1024*1024*1024?parseInt(t/(1024*1024))+" MB":parseInt(t/(1024*1024*1024))+" GB"}}const sk={name:"UploadFile",props:{accept:{type:String,required:!1,default:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,image/jpeg,image/png,image/gif,video/mp4,video/mov,application/pdf,application/zip,text/csv,text/plain,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},fileSuffix:{type:String,required:!1,default:"pdf|doc|docx|txt|xls|xlsx|zip|csv|mp4|mov|jpg|jpeg|png|gif"},multiple:{type:Boolean,default:!1},otherParam:{type:String,default:""},defaultList:{type:Array,required:!1,default:()=>[]},ossServerContext:{type:String,default:(location.pathname.includes("scyxweb")?"/scyxgateway":"")+"/ind-uc-ext-server"},ossFilePutUrl:{type:String,default:"/oss/file/put"},ossFileGetUrl:{type:String,default:"/oss/file/get/"},onSuccess:{type:Function,default(){return()=>{}}},onChangeData:{type:Function,default(){return()=>{}}},readonly:{type:Boolean,default:!1},candel:{type:Boolean,default:!0}},data(){return{isHB:!1,loading:!1,resultList:[],isshow:!1,previewVisible:!1,attachmentFile:{fileId:"",fileType:"",fileName:"",size:""},deepdefaultList:[]}},computed:{shouldShowDelete(){return this.readonly?!!this.candel:!0},downloadUrl(){return this.ossServerContext+this.ossFileGetUrl},dynamicFileTypeAlertMessage(){return`\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F ${this.fileSuffix.split("|").join("\uFF0C")} \u4E2D\u7684\u4E00\u79CD`},fileSizeLimit(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.fileSizeLimit)||500}},watch:{defaultList:{handler(e){this.resultList=e||[],this.deepdefaultList=y.default.cloneDeep(e)},immediate:!0,deep:!0}},methods:{uploadFileToServer(){let e=this;e.loading=!0;const i=this.$refs.uploadInput.files;let n=new FormData;for(let r of i)n.append("file",r);M.axios.post(e.ossServerContext+e.ossFilePutUrl,n,{payload:!0}).then(r=>{if(r.code===1){e.loading=!1;const a=r.data;a.length>=1&&a.forEach(s=>{let o={fileUrl:e.ossServerContext+e.ossFileGetUrl+s.fileId,fileId:s.fileId,fileName:s.fileName,fileType:s.fileName.substring(s.fileName.lastIndexOf(".")+1),size:s.length,showSize:ak(s.length),otherParam:e.otherParam};e.resultList.push(o)})}else e.loading=!1;e.$refs.uploadInput.value=null}).catch(()=>{e.loading=!1,e.$refs.uploadInput.value=null})},uploadFile(){this.$refs.uploadInput.click()},deleteFile(e){if(e){let t=[];this.resultList.forEach(i=>{i.fileId!==e&&t.push(i)}),this.resultList=t}},cancel(){this.resultList=this.deepdefaultList,this.$emit("onChangeData",this.resultList),this.isshow=!1},confirm(){this.$emit("onChangeData",this.resultList),this.isshow=!1},handleDownload(e){const t=navigator.userAgent;/miniProgram/i.test(t)?this.goToMiniProgramDown(e):this.h5Download(e)},async h5Download(e){var n;const t=e.fileUrl?e.fileUrl:`${this.ossServerContext}/oss/file/get/${e.fileId}`,i=M.getToken();try{const r=await fetch(t,{headers:{token:i}});if(!r.ok)throw new Error(`\u4E0B\u8F7D\u5931\u8D25: ${r.status}`);const a=await r.blob();let s="application/octet-stream";const l=((n=e==null?void 0:e.fileName)==null?void 0:n.toLowerCase()).match(/\.([a-z0-9]+)$/),c=l==null?void 0:l[1];M.MIME_TYPE[c]&&(s=M.MIME_TYPE[c]);const h=new Blob([a],{type:s}),d=window.URL.createObjectURL(h),u=document.createElement("a");u.href=d,u.download=e.fileName,u.style.display="none",u.target="_blank",document.body.appendChild(u),u.click(),document.body.removeChild(u)}catch(r){console.error("\u4E0B\u8F7D\u51FA\u9519:",r),this.$Message.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},goToMiniProgramDown(e){e.fileId?wx.miniProgram.navigateTo({url:`/pages/download/index?downloadFileId=${e.fileId}`}):console.error("\u6587\u4EF6ID\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8DF3\u8F6C")},async handleClickAttachment(e){let t=this;if(e.fileName.endsWith("psd")||e.fileName.endsWith("m4v")||e.fileName.endsWith("rar")||e.fileName.endsWith("zip"))return this.$Message.error("\u8BE5\u683C\u5F0F\u7684\u6587\u4EF6\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8"),!1;if(location.pathname.includes("scyxweb")){let i="";await M.axios.get("/user-manage-server/manage/user/getCurrentInfo").then(n=>{if(n.code===1){const r=e.fileName.endsWith(".jpg")||e.fileName.endsWith(".jpeg")||e.fileName.endsWith(".png")||e.fileName.endsWith(".gif");let a="";r?a=`${t.$config.mdPictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.mdDocDownLoadApi}${e.fileId}&fullfilename=${e.fileName}`;const s=e.fileName.endsWith(".doc")||e.fileName.endsWith(".docx")||e.fileName.endsWith(".ppt")||e.fileName.endsWith(".pptx")||e.fileName.endsWith(".xls")||e.fileName.endsWith(".xlsx")||e.fileName.endsWith(".pdf");let o="";s&&(o="&officePreviewType=pdf&tifPreviewType=jpg"),t.watermark==="0"?t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}${o}`:(i=n.data.displayName+n.data.loginName,t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}&watermarkTxt=${i}${t.$config.KKfilePrevieWatermarkStyle||""}${o}`),t.previewVisible=!0}})}else this.openPreview(e)},getPreviewUrlApi(e){var n;const t=location.protocol==="https:"?"1":"",i=M.getToken()||sessionStorage.getItem("sso_token");return M.axios.get(`${location.protocol}//${location.host}/ind-uc-ext-server/api/wps/getPreviewUrl/${e}?isWeb=${t}&previewMode=high_definition`,{headers:{Authorization:`Bearer ${i}`,"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.content)||""}})},async openPreview(e){try{const t=await this.getPreviewUrlApi(e.fileId);if(t.code!=1)throw new Error("\u83B7\u53D6\u9884\u89C8\u94FE\u63A5\u5931\u8D25");const i=t.data;this.previewVisible=!0,await this.$nextTick();const n=document.getElementById("wps-preview-container");if(!n)throw new Error("\u672A\u627E\u5230\u9884\u89C8\u6302\u8F7D\u8282\u70B9");const r=OpenSDK.config({url:i,mount:n}),a=M.getToken()||sessionStorage.getItem("sso_token");if(!a)throw new Error("\u672A\u627E\u5230\u6709\u6548 Token");r.setToken({token:a,timeout:10*60*1e3})}catch(t){console.error("\u9884\u89C8\u5931\u8D25:",t),this.$Message.error(`\u9884\u89C8\u5931\u8D25: ${t.message}`)}},closePreview(){this.previewVisible=!1},readFile(e){let t=this;if(!e.target.files||e.target.files.length===0)return this.$Message.warning({content:"\u6CA1\u6709\u9009\u62E9\u6587\u4EF6\u6216\u6587\u4EF6\u5217\u8868\u4E3A\u7A7A"}),!1;const i=e.target.files[0],n=this.fileSuffix.split("|"),r="\\.("+n.join("|")+")$";if(!new RegExp(r,"i").test(i.name))return this.$Message.warning({content:"\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F pdf\uFF0Cdoc\uFF0Cdocx\uFF0Ctxt\uFF0Cxls\uFF0Cxlsx\uFF0Czip\uFF0Ccsv\uFF0Cmp4\uFF0Cmov\uFF0Cjpg\uFF0Cjpeg\uFF0Cpng\uFF0Cgif \u4E2D\u7684\u4E00\u79CD"}),t.$refs.uploadInput.value=null,!1;if(i.size/(1024*1024)>t.fileSizeLimit)return this.$Message.warning({content:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${t.fileSizeLimit}MB`}),t.$refs.uploadInput.value=null,!1;let l=i.name;l.indexOf("/")>0&&(l=l.substring(l.lastIndexOf("/")+1)),l.indexOf("\\")>0&&(l=l.substring(l.lastIndexOf("\\")+1));const c=l.lastIndexOf("."),h=c>-1?l.substring(c+1):"";t.attachmentFile={fileName:l,fileType:h,size:i.size},t.uploadFileToServer()}},mounted(){location.pathname.includes("scyxweb")?this.isHB=!0:this.isHB=!1}},Af={};var ok=Y(sk,nk,rk,!1,lk,null,null,null);function lk(e){for(let t in Af)this[t]=Af[t]}var Pf=function(){return ok.exports}(),ck=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-inner"},[i("div",{staticClass:"ind-common-m-card-inner-inner"},[e.showHeader?i("div",{staticClass:"ind-common-m-card-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-title-icon"},[i("IndMImgLoad",{attrs:{pick:"cardIcon",width:"12px",height:"14px"}})],1):e._e(),i("div",{staticClass:"ind-common-m-card-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-content",style:{padding:e.innerPadding}},[e._t("default")],2)])])])},uk=[];const hk={name:"GlassCard",props:{title:{type:String,default:""},icon:{type:String,default:""},showTitle:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},width:{type:String,default:"100%"},padding:{type:String,default:"10px 10px 0px 10px"},margin:{type:String,default:"0px"},innerPadding:{type:String,default:"0px 0px 15px 0px"}}},Nf={};var dk=Y(hk,ck,uk,!1,fk,null,null,null);function fk(e){for(let t in Nf)this[t]=Nf[t]}var Bf=function(){return dk.exports}(),pk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-item-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-item-inner-inner"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-common-m-card-item-loading-mask"},[i("div",{staticClass:"ind-common-m-card-item-loading-spinner"}),i("div",{staticStyle:{"margin-top":"5px",color:"var(--ind-m-new-font-color5)"}},[e._v("\u52A0\u8F7D\u4E2D")])]),e.showHeader?i("div",{staticClass:"ind-common-m-card-item-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-item-title-icon"},[i("div",{staticClass:"ind-common-m-card-item-title-icon-icon"})]):e._e(),i("div",{staticClass:"ind-common-m-card-item-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-item-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-item-content"},[e._t("default")],2)])])},mk=[];const vk={name:"GlassCard-item",props:{title:{type:String,default:""},icon:{type:String,default:""},showTitle:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},width:{type:String,default:"100%"},padding:{type:String,default:"10px 10px 0px 10px"},margin:{type:String,default:"0px"},loading:{type:Boolean,default:!1}}},Ff={};var gk=Y(vk,pk,mk,!1,yk,null,null,null);function yk(e){for(let t in Ff)this[t]=Ff[t]}var Rf=function(){return gk.exports}(),bk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{width:e.width,height:e.height}},[i("div",{style:e.getIcon},[e._t("default")],2)])},Sk=[];const wk={props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},pick:{type:String,default:"home-bg"},type:{type:String,default:"TableData"},size:{type:String,default:"cover"},position:{type:String,default:"center"},repeat:{type:String,default:"no-repeat"},ossServerContext:{type:String,default:"/user-manage-server"}},computed:{getIcon(){var r;const e=`icon${this.type}`,t=localStorage.getItem("systemDefaultConfig");if(!t||typeof t!="string")return"";let i;try{i=JSON.parse(t)}catch(a){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",a.message),""}const n=(r=i==null?void 0:i.systemDefaultConfig)==null?void 0:r[e];try{if(!Array.isArray(n))return console.error("\u914D\u7F6E\u4E0D\u662F\u6570\u7EC4:",n),{display:"none"};if(n.length===0)return console.error("\u6570\u7EC4\u4E3A\u7A7A"),{display:"none"};const a=n.find(d=>(d==null?void 0:d.positionId)===this.pick);if(!a)return console.error(`\u672A\u627E\u5230\u5339\u914D\u7684\u56FE\u6807\u914D\u7F6E\u3002pick: ${this.pick}`),{display:"none"};const s=a.iconFieldId||a.iconFielId;if(!s)return console.error("iconFieldId/iconFielId \u4E3A\u7A7A\uFF0C\u53EF\u7528\u5B57\u6BB5:",Object.keys(a)),{display:"none"};let o;try{o=JSON.parse(s)}catch(d){return console.error("JSON \u89E3\u6790\u5931\u8D25:",d,"\u539F\u59CB\u503C:",s),{display:"none"}}if(!Array.isArray(o)||o.length===0)return console.error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u975E\u7A7A\u6570\u7EC4:",o),{display:"none"};const l=o[0],c=l==null?void 0:l.fileId;return c?{backgroundImage:`url(${this.ossServerContext}/oss/file/get/${c})`,backgroundSize:this.size,backgroundRepeat:this.repeat,backgroundPosition:this.position,width:"100%",height:"100%"}:(console.error("fileId \u4E3A\u7A7A\uFF0C\u89E3\u6790\u7ED3\u679C:",l),{display:"none"})}catch(a){return console.error("getIcon \u6267\u884C\u51FA\u9519:",a),{display:"none"}}}},methods:{}},Vf={};var Ck=Y(wk,bk,Sk,!1,xk,null,null,null);function xk(e){for(let t in Vf)this[t]=Vf[t]}var zf=function(){return Ck.exports}(),yo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:ta,DatePicker:Ko,Form:sl,LoadMore:ll,User1:vl,BasicLayout:yl,EmptyLayout:$i,DetailView:xl,PageView:kl,PopupView:_l,QueryView:El,Login:js,Search:Ad,SelectPanel:Bd,InputSelect:Rd,SelectBtn:zd,User:Hs,Apps:ho,AppsEdit:fo,MyApps:Us,AppsNew:vo,appItem:ze,tabbar:ti,LoadingPanel:Of,Setting:go,UploadFile:Pf,Card:Bf,CardItem:Rf,ImgLoad:zf},Symbol.toStringTag,{value:"Module"})),jf={install(e,{config:t}={}){e.prototype.$config=y.default.merge({},e.prototype.$config||{},t||M.config)}},Hf={install(e,{router:t,store:i}){e.prototype.$backToMenu=function(){if(console.log("trigger $backToMenu"),this.$config.showMenus){const n=i.state.app.breadCrumbList;i.commit("closeTag",{$router:t,route:y.default.cloneDeep(y.default.find(i.state.app.tagNavList,{name:n[n.length-1].name})||{})}),t.push({name:n[n.length-2].name}).catch(()=>{})}else t.go(-1)}}},$k=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:jf,IndRouterPlugin:Hf},Symbol.toStringTag,{value:"Module"}));const Uf=function(e,t,i){const n=i.context;e.style.display="none";const r=t.value;(n.$store.state.app.permission[r]||r==="all")&&(e.style.display="")},Kf={bind:Uf,update:Uf};var bo=Object.freeze(Object.defineProperty({__proto__:null,permission:Kf},Symbol.toStringTag,{value:"Module"}));const Wf={name:Te.rootRouteName,path:"/",component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Te.homeRouteName,path:"home",meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},kk={name:Te.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:js},Tk={name:"user",path:"/user",component:Hs,meta:{hideInMenu:!0,notCache:!0}},_k={name:"setting",path:"/setting",component:go,meta:{hideInMenu:!0,notCache:!0}},Ik={name:"apps",path:"/apps",component:ho,meta:{hideInMenu:!0,notCache:!0}},Ek={name:"appsNew",path:"/appsNew",component:vo,meta:{hideInMenu:!0,notCache:!0}},Dk={name:"appsEdit",path:"/appsEdit",component:fo,meta:{hideInMenu:!0,notCache:!0}},Mk={path:"/404",meta:{hideInMenu:!0},component:Ui};function Ok({homeComponent:e,rootChildren:t}={}){const i=y.default.cloneDeep(Wf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[kk]:[];return[i,...n,Tk,_k,Ik,Dk,Mk,Ek]}function Lk({rootChildren:e}={}){const t=y.default.cloneDeep(Wf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const Ak={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},zr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Yf(e){return[zr.DIRECTORY,zr.MENU].includes(e)}function Xf(e,t=[]){return e?t.filter(i=>{const n=(i==null?void 0:i.permissionValue)||"";return n.startsWith(e)||n.startsWith(`${M.config.routerBase}-${e}`)}):t}function So({list:e,menuTree:t,pageNode:i,parentId:n,crumbs:r,root:a}){if(!e)return;let s=M.getSessionStorage("appInfo");e.forEach(o=>{var _;const{permissionId:l,label:c,appId:h,pid:d,icon:u,type:f,uri:p,permissionValue:m,extendProps:v}=o;if(h!=s.appId)return;const w=m;let x=!1,E=!1;if(o&&o.extendProps)try{x=((_=JSON.parse(o.extendProps))==null?void 0:_.hideInIbp)==="1"}catch{x=!1}try{if(o&&o.extension){const T=JSON.parse(o.extension);if(T.extendProps){const O=typeof T.extendProps=="string"?JSON.parse(T.extendProps):T.extendProps;(O==null?void 0:O.hideInMenu)==1&&(E=!0)}}}catch{E=!1}if(d===n&&!(x||E)){if(Yf(f)){let T={type:f,name:w,pid:d,path:Gf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:w},children:[],extendProps:v};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),zr.DIRECTORY===f&&(T.component="EmptyLayout"),So({list:e,menuTree:T.children,pageNode:i,parentId:l,crumbs:T.meta.crumbs,root:!1}),T.children.length||delete T.children,t.push(T)}if(zr.PAGE===f){let T={type:f,name:w,pid:d,path:Gf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),i.children.push(T)}}})}function Gf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function qf(e=[]){e=e.filter(i=>Yf(i.type));const t=[];return So({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function Pk(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return So({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),wo(t)}function wo(e=[]){for(let t of e)if(t.component){const i=Ak[t.component];i?t.component=i.component:t.path?window.loadComponentHandler&&(t.component=window.loadComponentHandler(t.path,t.name)||Ui):(console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${t.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`),t.component=Ui),t.children&&t.children.length>0&&wo(t.children)}return e}var Co={exports:{}},Jf=function(t,i){return function(){for(var r=new Array(arguments.length),a=0;a<r.length;a++)r[a]=arguments[a];return t.apply(i,r)}},Nk=Jf,Si=Object.prototype.toString;function xo(e){return Si.call(e)==="[object Array]"}function $o(e){return typeof e=="undefined"}function Bk(e){return e!==null&&!$o(e)&&e.constructor!==null&&!$o(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Fk(e){return Si.call(e)==="[object ArrayBuffer]"}function Rk(e){return typeof FormData!="undefined"&&e instanceof FormData}function Vk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function zk(e){return typeof e=="string"}function jk(e){return typeof e=="number"}function Zf(e){return e!==null&&typeof e=="object"}function jr(e){if(Si.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Hk(e){return Si.call(e)==="[object Date]"}function Uk(e){return Si.call(e)==="[object File]"}function Kk(e){return Si.call(e)==="[object Blob]"}function Qf(e){return Si.call(e)==="[object Function]"}function Wk(e){return Zf(e)&&Qf(e.pipe)}function Yk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Xk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Gk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function ko(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),xo(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function To(){var e={};function t(r,a){jr(e[a])&&jr(r)?e[a]=To(e[a],r):jr(r)?e[a]=To({},r):xo(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)ko(arguments[i],t);return e}function qk(e,t,i){return ko(t,function(r,a){i&&typeof r=="function"?e[a]=Nk(r,i):e[a]=r}),e}function Jk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:xo,isArrayBuffer:Fk,isBuffer:Bk,isFormData:Rk,isArrayBufferView:Vk,isString:zk,isNumber:jk,isObject:Zf,isPlainObject:jr,isUndefined:$o,isDate:Hk,isFile:Uk,isBlob:Kk,isFunction:Qf,isStream:Wk,isURLSearchParams:Yk,isStandardBrowserEnv:Gk,forEach:ko,merge:To,extend:qk,trim:Xk,stripBOM:Jk},zi=Zt;function tp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ep=function(t,i,n){if(!i)return t;var r;if(n)r=n(i);else if(zi.isURLSearchParams(i))r=i.toString();else{var a=[];zi.forEach(i,function(l,c){l===null||typeof l=="undefined"||(zi.isArray(l)?c=c+"[]":l=[l],zi.forEach(l,function(d){zi.isDate(d)?d=d.toISOString():zi.isObject(d)&&(d=JSON.stringify(d)),a.push(tp(c)+"="+tp(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Zk=Zt;function Hr(){this.handlers=[]}Hr.prototype.use=function(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},Hr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Hr.prototype.forEach=function(t){Zk.forEach(this.handlers,function(n){n!==null&&t(n)})};var Qk=Hr,tT=Zt,eT=function(t,i){tT.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},ip=function(t,i,n,r,a){return t.config=i,n&&(t.code=n),t.request=r,t.response=a,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},iT=ip,np=function(t,i,n,r,a){var s=new Error(t);return iT(s,i,n,r,a)},nT=np,rT=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(nT("Request failed with status code "+n.status,n.config,null,n.request,n))},Ur=Zt,aT=Ur.isStandardBrowserEnv()?function(){return{write:function(i,n,r,a,s,o){var l=[];l.push(i+"="+encodeURIComponent(n)),Ur.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Ur.isString(a)&&l.push("path="+a),Ur.isString(s)&&l.push("domain="+s),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(i){var n=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),sT=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},oT=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},lT=sT,cT=oT,uT=function(t,i){return t&&!lT(i)?cT(t,i):i},_o=Zt,hT=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],dT=function(t){var i={},n,r,a;return t&&_o.forEach(t.split(`
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(S){return f(S)||p(S)||h(S)||m()}var w=a("a352"),x=a.n(w),E=a("c649");function _(S,b,C){return C===void 0||(S=S||{},S[b]=C),S}function T(S,b){return S.map(function(C){return C.elm}).indexOf(b)}function O(S,b,C,F){if(!S)return[];var K=S.map(function(ct){return ct.elm}),G=b.length-F,tt=v(b).map(function(ct,Tt){return Tt>=G?K.length:K.indexOf(ct)});return C?tt.filter(function(ct){return ct!==-1}):tt}function X(S,b){var C=this;this.$nextTick(function(){return C.$emit(S.toLowerCase(),b)})}function R(S){var b=this;return function(C){b.realList!==null&&b["onDrag"+S](C),X.call(b,S,C)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function B(S){if(!S||S.length!==1)return!1;var b=u(S,1),C=b[0].componentOptions;return C?z(C.tag):!1}function A(S,b,C){return S[C]||(b[C]?b[C]():void 0)}function it(S,b,C){var F=0,K=0,G=A(b,C,"header");G&&(F=G.length,S=S?[].concat(v(G),v(S)):v(G));var tt=A(b,C,"footer");return tt&&(K=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:K}}function ot(S,b){var C=null,F=function($t,Ae){C=_(C,$t,Ae)},K=Object.keys(S).filter(function(Tt){return Tt==="id"||Tt.startsWith("data-")}).reduce(function(Tt,$t){return Tt[$t]=S[$t],Tt},{});if(F("attrs",K),!b)return C;var G=b.on,tt=b.props,ct=b.attrs;return F("on",G),F("props",tt),Object.assign(C.attrs,ct),C}var V=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(V,k).map(function(S){return"on"+S}),I=null,D={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(b){return b}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},j={name:"draggable",inheritAttrs:!1,props:D,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(b){var C=this.$slots.default;this.transitionMode=B(C);var F=it(C,this.$slots,this.$scopedSlots),K=F.children,G=F.headerOffset,tt=F.footerOffset;this.headerOffset=G,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return b(this.getTag(),ct,K)},created:function(){this.list!==null&&this.value!==null&&E.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&E.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&E.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var b=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var C={};V.forEach(function(G){C["on"+G]=R.call(b,G)}),k.forEach(function(G){C["on"+G]=X.bind(b,G)});var F=Object.keys(this.$attrs).reduce(function(G,tt){return G[Object(E.a)(tt)]=b.$attrs[tt],G},{}),K=Object.assign({},this.options,F,C,{onMove:function(tt,ct){return b.onDragMove(tt,ct)}});!("draggable"in K)&&(K.draggable=">*"),this._sortable=new x.a(this.rootContainer,K),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(b){this.updateOptions(b)},deep:!0},$attrs:{handler:function(b){this.updateOptions(b)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var b=this._vnode.fnOptions;return b&&b.functional},getTag:function(){return this.tag||this.element},updateOptions:function(b){for(var C in b){var F=Object(E.a)(C);g.indexOf(F)===-1&&this._sortable.option(F,b[C])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var b=this.$slots.default;return this.transitionMode?b[0].child.$slots.default:b},computeIndexes:function(){var b=this;this.$nextTick(function(){b.visibleIndexes=O(b.getChildrenNodes(),b.rootContainer.children,b.transitionMode,b.footerOffset)})},getUnderlyingVm:function(b){var C=T(this.getChildrenNodes()||[],b);if(C===-1)return null;var F=this.realList[C];return{index:C,element:F}},getUnderlyingPotencialDraggableComponent:function(b){var C=b.__vue__;return!C||!C.$options||!z(C.$options._componentTag)?!("realList"in C)&&C.$children.length===1&&"realList"in C.$children[0]?C.$children[0]:C:C.$parent},emitChanges:function(b){var C=this;this.$nextTick(function(){C.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var C=v(this.value);b(C),this.$emit("input",C)},spliceList:function(){var b=arguments,C=function(K){return K.splice.apply(K,v(b))};this.alterList(C)},updatePosition:function(b,C){var F=function(G){return G.splice(C,0,G.splice(b,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(b){var C=b.to,F=b.related,K=this.getUnderlyingPotencialDraggableComponent(C);if(!K)return{component:K};var G=K.realList,tt={list:G,component:K};if(C!==F&&G&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(b){var C=this.visibleIndexes,F=C.length;return b>F-1?F:C[b]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(b){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var C=this.getChildrenNodes();C[b].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(b){this.context=this.getUnderlyingVm(b.item),b.item._underlying_vm_=this.clone(this.context.element),I=b.item},onDragAdd:function(b){var C=b.item._underlying_vm_;if(C!==void 0){Object(E.d)(b.item);var F=this.getVmIndex(b.newIndex);this.spliceList(F,0,C),this.computeIndexes();var K={element:C,newIndex:F};this.emitChanges({added:K})}},onDragRemove:function(b){if(Object(E.c)(this.rootContainer,b.item,b.oldIndex),b.pullMode==="clone"){Object(E.d)(b.clone);return}var C=this.context.index;this.spliceList(C,1);var F={element:this.context.element,oldIndex:C};this.resetTransitionData(C),this.emitChanges({removed:F})},onDragUpdate:function(b){Object(E.d)(b.item),Object(E.c)(b.from,b.item,b.oldIndex);var C=this.context.index,F=this.getVmIndex(b.newIndex);this.updatePosition(C,F);var K={element:this.context.element,oldIndex:C,newIndex:F};this.emitChanges({moved:K})},updateProperty:function(b,C){b.hasOwnProperty(C)&&(b[C]+=this.headerOffset)},computeFutureIndex:function(b,C){if(!b.element)return 0;var F=v(C.to.children).filter(function(ct){return ct.style.display!=="none"}),K=F.indexOf(C.related),G=b.component.getVmIndex(K),tt=F.indexOf(I)!==-1;return tt||!C.willInsertAfter?G:G+1},onDragMove:function(b,C){var F=this.move;if(!F||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(b),G=this.context,tt=this.computeFutureIndex(K,b);Object.assign(G,{futureIndex:tt});var ct=Object.assign({},b,{relatedContext:K,draggedContext:G});return F(ct,C)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var H=j;r.default=H}}).default})})(qd);var B1=Hp(qd.exports),F1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"app-page"},[i("van-sticky",{staticClass:"myapp-sticky",attrs:{"offset-top":48}},[i("div",{ref:"myapp",staticClass:"myapp",style:{width:"-webkit-fill-available"}},[i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" \u6211\u7684\u5E94\u7528 "),i("van-button",{staticClass:"edit-btn",attrs:{size:"small",type:"info",text:this.editButtonName},on:{click:e.toggleEdit}})],1)]),i("draggable",{staticClass:"wrapper",attrs:{options:{disabled:e.disableDraggable}},model:{value:e.my_apps,callback:function(n){e.my_apps=n},expression:"my_apps"}},[i("transition-group",{staticClass:"my-app-list",staticStyle:{display:"flex","flex-wrap":"wrap"}},e._l(e.my_apps,function(n,r){return i("apps-item",{key:r,staticClass:"item",staticStyle:{width:"25%",padding:"16px 8px","box-sizing":"border-box"},attrs:{item:n,state:n.state,editStatus:e.currentEditStatus=="on"?"minus":"off"},on:{touchend:e.rmFromMyAppsClick}})}),1)],1)],1)])]),i("van-tabs",{attrs:{color:"#488aff",scrollspy:"",sticky:"","offset-top":e.offsetTop},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,staticClass:"menu"},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:e.currentEditStatus=="on"?"plus":"off"},on:{touchend:e.addToMyAppsClick}})],1)}),1)],1)}),1),i("tabbar")],1)],1)},R1=[];const V1={components:{tabbar:ti,MyApps:Us,appsItem:ze,Draggable:B1},name:"IndMApps",data(){return{active:0,name:"apps",apps_menus:[],my_apps:[],title:"",currentEditStatus:"off",userAppTip:"\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",editButtonName:"\u7F16\u8F91",editClass:"",rmFromMyAppsClick:this.routeTo,addToMyAppsClick:this.routeTo,offsetTop:"246px",maxApps:8}},watch:{currentEditStatus(e){switch(e){case"on":{this.userAppTip="\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F",this.editButtonName="\u5B8C\u6210",this.editClass="editing",this.rmFromMyAppsClick=this.rmFromMyApps,this.addToMyAppsClick=this.addToMyApps,this.disableDraggable=!1;break}case"off":{this.userAppTip="\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",this.editButtonName="\u7F16\u8F91",this.editClass="",this.rmFromMyAppsClick=this.routeTo,this.addToMyAppsClick=this.routeTo,this.saveMyApps(),this.disableDraggable=!0;break}}},my_apps(){setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48},200)}},updated(){this.$store.commit("setMyAppsList",this.my_apps)},mounted(){var i,n,r;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&((r=(n=this.$config)==null?void 0:n.systemDefaultConfig)==null?void 0:r.isMobileSeparate)!="1"&&(e=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let t=e.filter(a=>a.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.processState(this.my_apps,t),console.log(this.apps_menus),setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48+10},100)},methods:{routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},toggleEdit(){switch(this.currentEditStatus){case"on":{this.currentEditStatus="off";break}case"off":{this.currentEditStatus="on";break}}},saveMyApps(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.my_apps)}).catch(()=>{})},processState(e,t){return t.forEach(i=>{let n=!1;for(let r of e){if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1,r.meta.icon=i.meta.icon;break}r.state=!0}n||(i.state=!0),i.children&&this.processState(e,i.children)}),t},addToMyApps(e){if(this.my_apps.length==this.maxApps){wt("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},bf={};var z1=Y(V1,F1,R1,!1,j1,null,null,null);function j1(e){for(let t in bf)this[t]=bf[t]}var ho=function(){return z1.exports}(),H1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app"},[i("van-sticky",[i("van-nav-bar",{attrs:{title:e.title,"right-text":"\u4FDD\u5B58","left-arrow":""},on:{"click-left":e.back,"click-right":e.save}})],1),i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(e.title))])]),i("van-grid",{attrs:{border:!1}},e._l(e.myAppList,function(n){return i("van-grid-item",{key:n.meta.permissionId,on:{click:function(r){return e.rmFromMyApps(n)}}},[i("div",{staticStyle:{height:"100%"}},[i("van-badge",{attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:"minus"}})]},proxy:!0}],null,!0)},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1)]),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(n.meta.title))])])],1)])}),1)],1),i("van-tabs",{attrs:{scrollspy:"",sticky:""},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:10,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,on:{click:function(s){return e.addToMyApps(a)}}},[a.state?i("div",{staticStyle:{height:"100%"}},[i("van-badge",{attrs:{color:"#999"},scopedSlots:e._u([{key:"content",fn:function(){return[i("van-icon",{staticStyle:{"line-height":"1.5"},attrs:{name:"plus"}})]},proxy:!0}],null,!0)},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1)]),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(a.meta.title))])])],1):i("div",{staticStyle:{height:"100%"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-image",{attrs:{with:"3rem",height:"3rem",fit:"cover",src:"https://img01.yzcdn.cn/vant/cat.jpeg"}})],1),i("div",{staticStyle:{"text-align":"center"}},[i("div",[e._v(e._s(a.meta.title))])])])])}),1)],1)}),1)],1)},U1=[],p_="";const K1={name:"IndMAppsEdit",data(){return{myAppList:[],active:0,name:"apps",apps_menus:[],title:"\u5E94\u7528\u7BA1\u7406"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList;let t=this.$store.getters.getMenuTreeList.filter(i=>i.name===this.name)[0].children;this.title=t[0].meta.title,this.mergeData(this.myAppList,t),this.apps_menus=t,console.log(t)},methods:{back(){this.$router.back()},save(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.myAppList),this.$router.back()}).catch(()=>{})},mergeData(e,t){return t.forEach(i=>{let n=!1;for(let r of e)if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1;break}n||(i.state=!0),i.children&&this.mergeData(e,i.children)}),t},addToMyApps(e){if(this.myAppList.length!==0)for(var t=0;t<this.myAppList.length;t++)if(this.myAppList.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.myAppList.push(this.findMenu(this.apps_menus,e,!1));break}else this.myAppList.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.myAppList.length;t++)if(this.myAppList[t].meta.permissionId===e.meta.permissionId){this.myAppList.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},Sf={};var W1=Y(K1,H1,U1,!1,Y1,"1cee7da5",null,null);function Y1(e){for(let t in Sf)this[t]=Sf[t]}var fo=function(){return W1.exports}(),X1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-myApp-slim"},[i("div",{staticClass:"ind-myApp-slim-content"},[i("div",{staticClass:"ind-myApp-slim-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-icon-group"},[e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"50%","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),e.icons.length!==0?i("van-icon",{staticClass:"ind-myApp-slim-toggle-icon",class:{"ind-myApp-slim-rotate-down":e.expanded},attrs:{name:"arrow"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-content-button"},[i("div",{staticClass:"ind-myApp-slim-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},G1=[];const q1={components:{appsItem:ze},props:{icons:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1}},computed:{getIcons(){return this.icons},displayedIcons(){return this.icons.slice(0,9)},showMoreIcon(){return this.icons.length>9},moreCount(){const e=this.icons.length-9;return e>99?"99":e},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}}},wf={};var J1=Y(q1,X1,G1,!1,Z1,null,null,null);function Z1(e){for(let t in wf)this[t]=wf[t]}var po=function(){return J1.exports}(),Q1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",{staticClass:"customnnnmmmm-tabs-container"},[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-custom-tabs-content"},[i("div",{staticClass:"ind-m-custom-sidebar"},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,class:["ind-m-sidebar-item",{active:e.activeKey===r}],on:{click:function(a){return e.handleSidebarClick(r)}}},[i("span",{class:["ind-m-sidebar-text",{active:e.activeKey===r}]},[e._v(" "+e._s(n.meta.title)+" ")])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"300px",height:"100%"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,staticClass:"ind-m-menu-section",attrs:{id:"section-"+e.active+"-"+r,"data-index":r}},[i("div",{staticClass:"ind-m-divider-container"},[i("van-divider",{staticClass:"ind-m-custom-divider"},[e._v(" "+e._s(n.meta.title)+" ")])],1),i("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row"}},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,style:{width:e.getTreeTotalDepth(n)>2?"100%":"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:e.getTreeTotalDepth(n)>2?null:"center",justifyContent:"center",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row",marginBottom:e.getTreeTotalDepth(n)>2?"20px":"0px"}},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}}),a.children?i("div",{staticClass:"ind-m-category-header"},[i("div",{staticClass:"ind-m-category-indicator"}),i("div",{staticClass:"ind-m-category-title"},[e._v(e._s(a.meta.title))])]):e._e(),a.children?i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children[r]&&e.apps_menus[e.active].children[r].children[s]&&e.apps_menus[e.active].children[r].children[s].children||[],function(o){return i("div",{key:o.meta.permissionId,style:{width:"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},t$=[];const e$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r,a;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(i=i.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"}).children);let s=i.filter(o=>o.name===this.name);this.apps_menus=s[0].children,this.title=s[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((o,l)=>{this.$set(this.tabActiveKeys,l,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},Cf={};var i$=Y(e$,Q1,t$,!1,n$,null,null,null);function n$(e){for(let t in Cf)this[t]=Cf[t]}var r$=function(){return i$.exports}(),a$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",{staticClass:"customnnnmmmm-tabs-container"},[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-custom-tabs-content"},[i("div",{staticClass:"ind-m-custom-sidebar"},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,class:["ind-m-sidebar-item",{active:e.activeKey===r}],on:{click:function(a){return e.handleSidebarClick(r)}}},[i("span",{class:["ind-m-sidebar-text",{active:e.activeKey===r}]},[e._v(" "+e._s(n.meta.title)+" ")])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"300px",height:"100%"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,staticClass:"ind-m-menu-section",attrs:{id:"section-"+e.active+"-"+r,"data-index":r}},[i("div",{staticClass:"ind-m-divider-container"},[i("van-divider",{staticClass:"ind-m-custom-divider"},[e._v(" "+e._s(n.meta.title)+" ")])],1),i("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row"}},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,style:{width:e.getTreeTotalDepth(n)>2?"100%":"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:e.getTreeTotalDepth(n)>2?null:"center",justifyContent:"center",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row",marginBottom:e.getTreeTotalDepth(n)>2?"20px":"0px"}},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}}),a.children?i("div",{staticClass:"ind-m-category-header"},[i("div",{staticClass:"ind-m-category-indicator"}),i("div",{staticClass:"ind-m-category-title"},[e._v(e._s(a.meta.title))])]):e._e(),a.children?i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children[r]&&e.apps_menus[e.active].children[r].children[s]&&e.apps_menus[e.active].children[r].children[s].children||[],function(o){return i("div",{key:o.meta.permissionId,style:{width:"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},s$=[];const o$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r,a;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(i=i.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"}).children);let s=i.filter(o=>o.name===this.name);this.apps_menus=s[0].children,this.title=s[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((o,l)=>{this.$set(this.tabActiveKeys,l,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},xf={};var l$=Y(o$,a$,s$,!1,c$,null,null,null);function c$(e){for(let t in xf)this[t]=xf[t]}var u$=function(){return l$.exports}(),h$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},d$=[];const f$={components:{abovelevelTwoOld:r$,abovelevelTwoNew:u$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},$f={};var p$=Y(f$,h$,d$,!1,m$,null,null,null);function m$(e){for(let t in $f)this[t]=$f[t]}var v$=function(){return p$.exports}(),g$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528old"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-my-app-container",staticStyle:{"padding-bottom":"150px"},style:{height:e.disMyapp?"calc(100vh - 380px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("div",{key:r,staticClass:"ind-my-app-container-square"},[i("div",{staticClass:"ind-my-app-container-square-title"},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(n.children,function(a){return i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])}),0)]),i("tabbar")],1)],1)},y$=[];function mo(e){return e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),{...t,children:i.map(r=>({...r,children:void 0}))}})}const b$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[]}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0;const t=50;let i=setInterval(()=>{var r,a,s;e++;let n=this.$store.getters.getMenuTreeList||[];if(n&&n.length>0){clearInterval(i),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,n),((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((s=(a=this.$config)==null?void 0:a.systemDefaultConfig)==null?void 0:s.isMobileSeparate)!="1"&&(n=n.find(d=>{var u;return d.extendProps&&((u=JSON.parse(d.extendProps))==null?void 0:u.mainMobile)=="1"}).children);let o=n.filter(h=>h.name===this.name),l=o[0].children.map(h=>h.meta.title);this.titleList=["\u5168\u90E8",...l];const c=o[0].children.reduce((h,d)=>(h[d.meta.title]=d,h),{});this.allApps_menus={\u5168\u90E8:o[0].children,...c},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=mo(this.apps_menus),this.title=o[0].meta.title}else e>=t?(clearInterval(i),console.warn(`\u5C1D\u8BD5${t}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],e!=="\u5168\u90E8"?this.apps_menus=mo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=mo(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},kf={};var S$=Y(b$,g$,y$,!1,w$,null,null,null);function w$(e){for(let t in kf)this[t]=kf[t]}var C$=function(){return S$.exports}(),x$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndMCard",{attrs:{showHeader:!1,innerPadding:"0px"}},[i("div",{staticClass:"ind-myApp-slim-new-content"},[i("div",{staticClass:"ind-myApp-slim-new-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-new-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-new-icon-group"},e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-new-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"8px","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),0),e.icons.length!==0&&!e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-forward"}}):e._e(),e.icons.length!==0&&e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-down"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-new-content-button"},[i("div",{staticClass:"ind-myApp-slim-new-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto"}},[i("van-swipe",{staticClass:"ind-myApp-slim-new-content-swipe",attrs:{"show-indicators":!0,loop:!1}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-new-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-new-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("appsItem",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},$$=[];const k$={components:{appsItem:ze},data(){return{iconscount:5}},props:{icons:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1}},computed:{displayedIcons(){return this.icons.slice(0,this.iconscount)},showMoreIcon(){return this.icons.length>this.iconscount},moreCount(){const e=this.icons.length-this.iconscount;return e>99?"99":e},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},created(){const e=window.innerWidth,i=[{maxWidth:375,count:5},{maxWidth:412,count:6},{maxWidth:430,count:7},{maxWidth:768,count:21},{maxWidth:820,count:23},{maxWidth:912,count:26},{maxWidth:1024,count:31},{maxWidth:1280,count:41},{maxWidth:1366,count:45},{maxWidth:1440,count:48}].find(n=>e<=n.maxWidth);this.iconscount=i?i.count:7}},Tf={};var T$=Y(k$,x$,$$,!1,_$,null,null,null);function _$(e){for(let t in Tf)this[t]=Tf[t]}var I$=function(){return T$.exports}(),E$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-app-center"},[e.isHb?e._e():i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-new-app-page",staticStyle:{position:"relative"},style:{minHeight:e.isHb?"100vh":"calc(100vh - 48px)"}},[i("div",{style:{top:"0px",position:"absolute",left:"0px",width:"100%",height:"213px",zIndex:0}},[i("IndMImgLoad",{attrs:{position:"center top",size:"100% 100%",pick:"ind:appNew:bg",type:"TableData"}})],1),i("div",{staticClass:"ind-m-new-placeholder"},[i("van-search",{staticClass:"ind-m-new-placeholder-search",attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-left"},[i("Icon",{attrs:{type:"md-search"}})],1)]},proxy:!0},{key:"right-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-right",on:{click:e.onSearch}},[e._v("\u641C\u7D22")])]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"90vw",height:"50vh","background-color":"var(--ind-m-home-bg-color)"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 4)",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myappNew",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"custom-new-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"custom-new-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"custom-new-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"custom-new-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"custom-new-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-new-app-container",staticStyle:{padding:"0px 0px 150px 0px"},style:{height:e.disMyapp?"calc(100vh - 410px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("IndMCard",{key:r,attrs:{padding:"0px 10px 10px 10px",title:n.meta.title,icon:"/public/imgs/resource/card-icon.png"}},[i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},[e._l(n.children,function(a){return[i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)]})],2),e._l(n.foldChildren,function(a){return[i("div",{key:a.meta.permissionId,staticStyle:{"padding-left":"16px","margin-top":"4px","font-size":"14px","font-weight":"bold",color:"#333"}},[e._v(" "+e._s(a.meta.title)+" ")]),i("div",{key:a.meta.permissionId,style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(a.children,function(s){return i("div",{key:s.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:s,state:s.state,title:s.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]})],2)}),1)]),i("tabbar")],1)],1)},D$=[];const M$={components:{tabbar:ti,appsItem:ze,myappNew:I$},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[],level:"2",curTabl:"\u5168\u90E8"}},mounted(){var a;this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(s){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",s.message),"{}"}this.level=((a=t==null?void 0:t.systemDefaultConfig)==null?void 0:a.theLevel)||3;let i=0;const n=50;let r=setInterval(()=>{var o,l,c;i++;let s=this.$store.getters.getMenuTreeList||[];if(s&&s.length>0){clearInterval(r),console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,s),((o=this.$config)==null?void 0:o.mainType)=="singleApp"&&((c=(l=this.$config)==null?void 0:l.systemDefaultConfig)==null?void 0:c.isMobileSeparate)!="1"&&(s=s.find(p=>{var m;return p.extendProps&&((m=JSON.parse(p.extendProps))==null?void 0:m.mainMobile)=="1"}).children);let h=s.filter(f=>f.name===this.name),d=h[0].children.map(f=>f.meta.title);this.titleList=["\u5168\u90E8",...d];const u=h[0].children.reduce((f,p)=>(f[p.meta.title]=p,f),{});this.allApps_menus={\u5168\u90E8:h[0].children,...u},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.title=h[0].meta.title}else i>=n?(clearInterval(r),console.warn(`\u5C1D\u8BD5${n}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{simplifyMenuTree(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),console.log({...t,children:i.map(r=>({...r,children:void 0}))}),{...t,children:i.map(r=>({...r,children:void 0}))}})):[]},simplifyMenuTree2N(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{var s;const i=[],n=[];function r(o){var l;((l=o==null?void 0:o.children)==null?void 0:l.length)>0?n.push(o):(o.path||o.uri)&&i.push(o)}function a(o,l){var c,h;((c=o==null?void 0:o.children)==null?void 0:c.length)>0?(h=o.children)==null||h.forEach(d=>a(d,l)):(o.path||o.uri)&&l.push(o)}return this.curTabl=="\u5168\u90E8"?(s=t==null?void 0:t.children)==null||s.forEach(r):r(t),i.forEach(o=>{o.children=null}),n.forEach(o=>{let l=[];a(o,l),o.children=l}),{...t,children:i,foldChildren:n}})):[]},handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],this.curTabl=e,e!=="\u5168\u90E8"?this.apps_menus=this.simplifyMenuTree((i=this.apps_menus)==null?void 0:i.children):this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},_f={};var O$=Y(M$,E$,D$,!1,L$,null,null,null);function L$(e){for(let t in _f)this[t]=_f[t]}var A$=function(){return O$.exports}(),P$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},N$=[];const B$={components:{levelTwoOld:C$,levelTwoNew:A$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},If={};var F$=Y(B$,P$,N$,!1,R$,null,null,null);function R$(e){for(let t in If)this[t]=If[t]}var V$=function(){return F$.exports}(),z$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},j$=[];function Ef(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=Ef(n,t+1);r>i&&(i=r)}return i}function H$(e){let t=0;for(const i of e){const n=Ef(i);n>t&&(t=n)}return t}const U$={components:{aboveleveltwo:v$,leveltwo:V$},data(){return{level:3,name:"appsNew",apps_menus:[],isHb:!1,depth:"4"}},methods:{appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},created(){var n,r,a;this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList||[];e.length||console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC"),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(e=e.find(o=>{var l;return o.extendProps&&((l=JSON.parse(o.extendProps))==null?void 0:l.mainMobile)=="1"}).children);let t=e.filter(s=>s.name===this.name);this.apps_menus=t[0].children,this.appsMenusExtended(this.apps_menus);const i=H$(this.apps_menus);this.depth=i},computed:{currentComponent(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"{}"}if(this.level=((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.theLevel)||3,this.depth=this.depth||4,(this.level==2||this.level=="2N")&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},Df={};var K$=Y(U$,z$,j$,!1,W$,null,null,null);function W$(e){for(let t in Df)this[t]=Df[t]}var vo=function(){return K$.exports}(),Y$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"custom-overlay",class:{show:e.loading},on:{click:function(n){n.stopPropagation()}}},[e.isFullScreenLoading&&e.loadingImageUrl(!0)?i("div",{staticClass:"ind-loading-wrapper-global"},[i("img",{staticStyle:{height:"100%",width:"100%"},attrs:{src:e.loadingImageUrl(!0),alt:""}}),i("div",{staticClass:"ind-loading-wrapper-text"},[e._v(" "+e._s(e.text||"\u7CFB\u7EDF\u52A0\u8F7D\u4E2D...")+" ")])]):!e.isFullScreenLoading&&e.loadingImageUrl(!1)?i("div",{staticClass:"ind-loading-wrapper-local"},[i("div",{staticClass:"ind-loading-block ind-vcenter"},[i("div",{staticClass:"ind-loading-block-center"},[i("img",{attrs:{src:e.loadingImageUrl(!1),alt:""}}),i("div",{staticClass:"ind-loading-block-text"},[e._v(e._s(e.text||"\u52A0\u8F7D\u4E2D..."))])])])]):e.loadingImageUrl(!1)?e._e():i("div",{staticClass:"ind-loading-wrapper-local"},[i("div",{staticClass:"ind-loading-block ind-vcenter"},[i("div",{staticClass:"ind-loading-block-center"},[i("div",{staticClass:"img-divv"},[i("van-loading")],1),i("div",{staticClass:"ind-loading-block-text"},[e._v(e._s(e.text||"\u52A0\u8F7D\u4E2D..."))])])])])])},X$=[];const G$={props:{loading:Boolean,isFullScreenLoading:{type:Boolean,default:!1},text:String},data(){return{}},methods:{loadingImageUrl(e){const t=e?"systemDefaultConfig.globalLoading":"systemDefaultConfig.localLoading",i=this.getSafeConfigValue(t);return i&&i.trim()!==""?`/user-manage-server/oss/file/get/${i}`:!1},getSafeConfigValue(e){if(!!this.$config)return e.split(".").reduce((t,i)=>t&&t[i]!==void 0?t[i]:void 0,this.$config)}}},Mf={};var q$=Y(G$,Y$,X$,!1,J$,null,null,null);function J$(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return q$.exports}(),Z$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-page"},[i("van-sticky",[i("van-nav-bar",{attrs:{fixed:!0,"left-arrow":"",placeholder:!0,"safe-area-inset-top":!0,title:"\u8BBE\u7F6E"},on:{"click-left":e.onClickLeft}})],1),i("van-cell-group",{attrs:{title:"\u8BBE\u7F6E"}},[i("van-cell",{attrs:{title:"vconsole\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.vconsoleChecked,callback:function(n){e.vconsoleChecked=n},expression:"vconsoleChecked"}})],1),e.isHb?i("van-cell",{attrs:{title:"\u8FDC\u7A0B\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.chiiChecked,callback:function(n){e.chiiChecked=n},expression:"chiiChecked"}})],1):e._e()],1)],1)},Q$=[];const tk={data(){return{vconsoleChecked:!1,chiiChecked:!1,isHb:location.pathname.includes("scyxweb")}},watch:{vconsoleChecked:function(){if(this.vconsoleChecked){const e=document.createElement("script");e.src="vconsole.min.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e.onload=function(){window.vConsole=new VConsole}}this.vconsoleChecked=!0},chiiChecked:function(){if(this.chiiChecked){const e=document.createElement("script");e.src="//dev.sunquan.tech/inspect/target.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}this.chiiChecked=!0}},methods:{onClickLeft(){this.$router.back()}}},Lf={};var ek=Y(tk,Z$,Q$,!1,ik,null,null,null);function ik(e){for(let t in Lf)this[t]=Lf[t]}var go=function(){return ek.exports}(),nk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticStyle:{width:"100%",height:"100%","text-align":"right"},on:{click:function(n){e.isshow=!0}}},[i("span",{staticStyle:{color:"#c5d2e3"}},[e._v(e._s(e.resultList.length?"\u5DF2\u4E0A\u4F20"+e.resultList.length+"\u4E2A\u6587\u4EF6":"\u8BF7\u4E0A\u4F20"))]),i("Icon",{staticStyle:{"font-size":"16px",color:"#808695 !important"},attrs:{type:"ios-arrow-forward"}})],1),i("van-popup",{attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.isshow,callback:function(n){e.isshow=n},expression:"isshow"}},[i("van-overlay",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-up-loading-overlay",attrs:{"z-index":"9999",show:e.loading}},[i("div",{staticClass:"ind-up-loading-wrapper"},[i("van-loading",{attrs:{color:"#1989fa",size:"25px"}}),i("div",{staticClass:"ind-up-loading-text"},[e._v("\u4E0A\u4F20\u4E2D...")])],1)]),i("div",{staticStyle:{height:"100vh",width:"100vw",display:"flex","flex-direction":"column","justify-content":"space-between","background-color":"rgb(240 240 240)"}},[i("div",{staticStyle:{height:"48px",width:"100vw"}},[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u4E0A\u4F20","left-text":"","left-arrow":""},on:{"click-left":function(n){e.isshow=!1}}})],1),i("div",{style:{height:e.readonly?"100%":"calc(100vh - 100px)"}},[e.readonly?e._e():i("div",{staticClass:"ind-upLoad-clickHere",on:{click:e.uploadFile}},[i("div",{staticClass:"ind-upLoad-clickHere-icon"},[i("Icon",{staticClass:"ind-upLoad-clickHere-icon-icon",attrs:{type:"ios-cloud-upload"}}),i("div",{staticClass:"ind-upLoad-clickHere-icon-text"},[e._v("\u70B9\u51FB\u4E0A\u4F20")])],1)]),i("div",{staticClass:"ind-upLoad-file-list",staticStyle:{"overflow-y":"auto"},style:{height:e.readonly?"100%":"calc(100% - 220px)",padding:"10px"}},[e.resultList.length?i("div",{staticStyle:{"background-color":"#fff",height:"100%","overflow-y":"auto","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),e._l(e.resultList||e.defaultList,function(n,r){return i("van-cell",{key:r},[i("div",{staticClass:"ind-upLoad-file-list-container-item"},[i("div",{staticClass:"ind-upLoad-file-list-container-ititle",on:{click:function(a){return e.handleClickAttachment(n)}}},[e._v(" "+e._s(n.fileName)+" ")]),e.readonly?e._e():i("div",{staticClass:"ind-upLoad-file-list-container-idel",on:{click:function(a){return e.deleteFile(n.fileId)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idel-btn"},[i("Icon",{staticStyle:{"font-size":"16px"},attrs:{type:"md-trash"}}),e._v("\u5220\u9664 ")],1)]),e.shouldShowDelete?i("div",{staticClass:"ind-upLoad-file-list-container-idownload",on:{click:function(a){return e.handleDownload(n)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idownload-btn"},[i("Icon",{staticStyle:{"font-size":"18px"},attrs:{type:"md-cloud-download"}}),e._v(" \u4E0B\u8F7D ")],1)]):e._e()])])})],2):i("div",{staticStyle:{"background-color":"#fff",height:"100%",overflow:"hidden","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),i("van-empty",{attrs:{description:"\u6682\u65E0\u6587\u4EF6"}})],1)])]),e.readonly?e._e():i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1),i("input",{ref:"uploadInput",staticStyle:{position:"absolute",clip:"rect(0 0 0 0)"},attrs:{type:"file",disabled:!1,multiple:!0,accept:e.accept},on:{change:function(n){return e.readFile(n)}}})])],1),i("van-popup",{style:{width:"100%",height:"100%"},attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.previewVisible,callback:function(n){e.previewVisible=n},expression:"previewVisible"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u9884\u89C8","left-text":"","left-arrow":""},on:{"click-left":e.closePreview}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[e.isHB?i("iframe",{staticClass:"preview-iframe",staticStyle:{height:"calc(100vh - 48px)"},attrs:{src:e.previewUrl,frameborder:"0"}}):i("div",{staticStyle:{width:"100%",height:"calc(100% - 46px)"},attrs:{id:"wps-preview-container"}})])],1)],1)},rk=[];function ak(e){if(e){let t=parseInt(e);return t<1024?t+" B":t<1024*1024?parseInt(t/1024)+" KB":t<1024*1024*1024?parseInt(t/(1024*1024))+" MB":parseInt(t/(1024*1024*1024))+" GB"}}const sk={name:"UploadFile",props:{accept:{type:String,required:!1,default:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,image/jpeg,image/png,image/gif,video/mp4,video/mov,application/pdf,application/zip,text/csv,text/plain,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},fileSuffix:{type:String,required:!1,default:"pdf|doc|docx|txt|xls|xlsx|zip|csv|mp4|mov|jpg|jpeg|png|gif"},multiple:{type:Boolean,default:!1},otherParam:{type:String,default:""},defaultList:{type:Array,required:!1,default:()=>[]},ossServerContext:{type:String,default:(location.pathname.includes("scyxweb")?"/scyxgateway":"")+"/ind-uc-ext-server"},ossFilePutUrl:{type:String,default:"/oss/file/put"},ossFileGetUrl:{type:String,default:"/oss/file/get/"},onSuccess:{type:Function,default(){return()=>{}}},onChangeData:{type:Function,default(){return()=>{}}},readonly:{type:Boolean,default:!1},candel:{type:Boolean,default:!0}},data(){return{isHB:!1,loading:!1,resultList:[],isshow:!1,previewVisible:!1,attachmentFile:{fileId:"",fileType:"",fileName:"",size:""},deepdefaultList:[]}},computed:{shouldShowDelete(){return this.readonly?!!this.candel:!0},downloadUrl(){return this.ossServerContext+this.ossFileGetUrl},dynamicFileTypeAlertMessage(){return`\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F ${this.fileSuffix.split("|").join("\uFF0C")} \u4E2D\u7684\u4E00\u79CD`},fileSizeLimit(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.fileSizeLimit)||500}},watch:{defaultList:{handler(e){this.resultList=e||[],this.deepdefaultList=y.default.cloneDeep(e)},immediate:!0,deep:!0}},methods:{uploadFileToServer(){let e=this;e.loading=!0;const i=this.$refs.uploadInput.files;let n=new FormData;for(let r of i)n.append("file",r);M.axios.post(e.ossServerContext+e.ossFilePutUrl,n,{payload:!0}).then(r=>{if(r.code===1){e.loading=!1;const a=r.data;a.length>=1&&a.forEach(s=>{let o={fileUrl:e.ossServerContext+e.ossFileGetUrl+s.fileId,fileId:s.fileId,fileName:s.fileName,fileType:s.fileName.substring(s.fileName.lastIndexOf(".")+1),size:s.length,showSize:ak(s.length),otherParam:e.otherParam};e.resultList.push(o)})}else e.loading=!1;e.$refs.uploadInput.value=null}).catch(()=>{e.loading=!1,e.$refs.uploadInput.value=null})},uploadFile(){this.$refs.uploadInput.click()},deleteFile(e){if(e){let t=[];this.resultList.forEach(i=>{i.fileId!==e&&t.push(i)}),this.resultList=t}},cancel(){this.resultList=this.deepdefaultList,this.$emit("onChangeData",this.resultList),this.isshow=!1},confirm(){this.$emit("onChangeData",this.resultList),this.isshow=!1},handleDownload(e){const t=navigator.userAgent;/miniProgram/i.test(t)?this.goToMiniProgramDown(e):this.h5Download(e)},async h5Download(e){var n;const t=e.fileUrl?e.fileUrl:`${this.ossServerContext}/oss/file/get/${e.fileId}`,i=M.getToken();try{const r=await fetch(t,{headers:{token:i}});if(!r.ok)throw new Error(`\u4E0B\u8F7D\u5931\u8D25: ${r.status}`);const a=await r.blob();let s="application/octet-stream";const l=((n=e==null?void 0:e.fileName)==null?void 0:n.toLowerCase()).match(/\.([a-z0-9]+)$/),c=l==null?void 0:l[1];M.MIME_TYPE[c]&&(s=M.MIME_TYPE[c]);const h=new Blob([a],{type:s}),d=window.URL.createObjectURL(h),u=document.createElement("a");u.href=d,u.download=e.fileName,u.style.display="none",u.target="_blank",document.body.appendChild(u),u.click(),document.body.removeChild(u)}catch(r){console.error("\u4E0B\u8F7D\u51FA\u9519:",r),this.$Message.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},goToMiniProgramDown(e){e.fileId?wx.miniProgram.navigateTo({url:`/pages/download/index?downloadFileId=${e.fileId}`}):console.error("\u6587\u4EF6ID\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8DF3\u8F6C")},async handleClickAttachment(e){let t=this;if(e.fileName.endsWith("psd")||e.fileName.endsWith("m4v")||e.fileName.endsWith("rar")||e.fileName.endsWith("zip"))return this.$Message.error("\u8BE5\u683C\u5F0F\u7684\u6587\u4EF6\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8"),!1;if(location.pathname.includes("scyxweb")){let i="";await M.axios.get("/user-manage-server/manage/user/getCurrentInfo").then(n=>{if(n.code===1){const r=e.fileName.endsWith(".jpg")||e.fileName.endsWith(".jpeg")||e.fileName.endsWith(".png")||e.fileName.endsWith(".gif");let a="";r?a=`${t.$config.mdPictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.mdDocDownLoadApi}${e.fileId}&fullfilename=${e.fileName}`;const s=e.fileName.endsWith(".doc")||e.fileName.endsWith(".docx")||e.fileName.endsWith(".ppt")||e.fileName.endsWith(".pptx")||e.fileName.endsWith(".xls")||e.fileName.endsWith(".xlsx")||e.fileName.endsWith(".pdf");let o="";s&&(o="&officePreviewType=pdf&tifPreviewType=jpg"),t.watermark==="0"?t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}${o}`:(i=n.data.displayName+n.data.loginName,t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}&watermarkTxt=${i}${t.$config.KKfilePrevieWatermarkStyle||""}${o}`),t.previewVisible=!0}})}else this.openPreview(e)},getPreviewUrlApi(e){var n;const t=location.protocol==="https:"?"1":"",i=M.getToken()||sessionStorage.getItem("sso_token");return M.axios.get(`${location.protocol}//${location.host}/ind-uc-ext-server/api/wps/getPreviewUrl/${e}?isWeb=${t}&previewMode=high_definition`,{headers:{Authorization:`Bearer ${i}`,"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.content)||""}})},async openPreview(e){try{const t=await this.getPreviewUrlApi(e.fileId);if(t.code!=1)throw new Error("\u83B7\u53D6\u9884\u89C8\u94FE\u63A5\u5931\u8D25");const i=t.data;this.previewVisible=!0,await this.$nextTick();const n=document.getElementById("wps-preview-container");if(!n)throw new Error("\u672A\u627E\u5230\u9884\u89C8\u6302\u8F7D\u8282\u70B9");const r=OpenSDK.config({url:i,mount:n}),a=M.getToken()||sessionStorage.getItem("sso_token");if(!a)throw new Error("\u672A\u627E\u5230\u6709\u6548 Token");r.setToken({token:a,timeout:10*60*1e3})}catch(t){console.error("\u9884\u89C8\u5931\u8D25:",t),this.$Message.error(`\u9884\u89C8\u5931\u8D25: ${t.message}`)}},closePreview(){this.previewVisible=!1},readFile(e){let t=this;if(!e.target.files||e.target.files.length===0)return this.$Message.warning({content:"\u6CA1\u6709\u9009\u62E9\u6587\u4EF6\u6216\u6587\u4EF6\u5217\u8868\u4E3A\u7A7A"}),!1;const i=e.target.files[0],n=this.fileSuffix.split("|"),r="\\.("+n.join("|")+")$";if(!new RegExp(r,"i").test(i.name))return this.$Message.warning({content:"\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F pdf\uFF0Cdoc\uFF0Cdocx\uFF0Ctxt\uFF0Cxls\uFF0Cxlsx\uFF0Czip\uFF0Ccsv\uFF0Cmp4\uFF0Cmov\uFF0Cjpg\uFF0Cjpeg\uFF0Cpng\uFF0Cgif \u4E2D\u7684\u4E00\u79CD"}),t.$refs.uploadInput.value=null,!1;if(i.size/(1024*1024)>t.fileSizeLimit)return this.$Message.warning({content:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${t.fileSizeLimit}MB`}),t.$refs.uploadInput.value=null,!1;let l=i.name;l.indexOf("/")>0&&(l=l.substring(l.lastIndexOf("/")+1)),l.indexOf("\\")>0&&(l=l.substring(l.lastIndexOf("\\")+1));const c=l.lastIndexOf("."),h=c>-1?l.substring(c+1):"";t.attachmentFile={fileName:l,fileType:h,size:i.size},t.uploadFileToServer()}},mounted(){location.pathname.includes("scyxweb")?this.isHB=!0:this.isHB=!1}},Af={};var ok=Y(sk,nk,rk,!1,lk,null,null,null);function lk(e){for(let t in Af)this[t]=Af[t]}var Pf=function(){return ok.exports}(),ck=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-inner"},[i("div",{staticClass:"ind-common-m-card-inner-inner"},[e.showHeader?i("div",{staticClass:"ind-common-m-card-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-title-icon"},[i("IndMImgLoad",{attrs:{pick:"cardIcon",width:"12px",height:"14px"}})],1):e._e(),i("div",{staticClass:"ind-common-m-card-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-content",style:{padding:e.innerPadding}},[e._t("default")],2)])])])},uk=[];const hk={name:"GlassCard",props:{title:{type:String,default:""},icon:{type:String,default:""},showTitle:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},width:{type:String,default:"100%"},padding:{type:String,default:"10px 10px 0px 10px"},margin:{type:String,default:"0px"},innerPadding:{type:String,default:"0px 0px 15px 0px"}}},Nf={};var dk=Y(hk,ck,uk,!1,fk,null,null,null);function fk(e){for(let t in Nf)this[t]=Nf[t]}var Bf=function(){return dk.exports}(),pk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-item-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-item-inner-inner"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-common-m-card-item-loading-mask"},[i("div",{staticClass:"ind-common-m-card-item-loading-spinner"}),i("div",{staticStyle:{"margin-top":"5px",color:"var(--ind-m-new-font-color5)"}},[e._v("\u52A0\u8F7D\u4E2D")])]),e.showHeader?i("div",{staticClass:"ind-common-m-card-item-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-item-title-icon"},[i("div",{staticClass:"ind-common-m-card-item-title-icon-icon"})]):e._e(),i("div",{staticClass:"ind-common-m-card-item-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-item-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-item-content"},[e._t("default")],2)])])},mk=[];const vk={name:"GlassCard-item",props:{title:{type:String,default:""},icon:{type:String,default:""},showTitle:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},width:{type:String,default:"100%"},padding:{type:String,default:"10px 10px 0px 10px"},margin:{type:String,default:"0px"},loading:{type:Boolean,default:!1}}},Ff={};var gk=Y(vk,pk,mk,!1,yk,null,null,null);function yk(e){for(let t in Ff)this[t]=Ff[t]}var Rf=function(){return gk.exports}(),bk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{width:e.width,height:e.height}},[i("div",{style:e.getIcon},[e._t("default")],2)])},Sk=[];const wk={props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},pick:{type:String,default:"home-bg"},type:{type:String,default:"TableData"},size:{type:String,default:"cover"},position:{type:String,default:"center"},repeat:{type:String,default:"no-repeat"},ossServerContext:{type:String,default:"/user-manage-server"}},computed:{getIcon(){var r;const e=`icon${this.type}`,t=localStorage.getItem("systemDefaultConfig");if(!t||typeof t!="string")return"";let i;try{i=JSON.parse(t)}catch(a){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",a.message),""}const n=(r=i==null?void 0:i.systemDefaultConfig)==null?void 0:r[e];try{if(!Array.isArray(n))return console.error("\u914D\u7F6E\u4E0D\u662F\u6570\u7EC4:",n),{display:"none"};if(n.length===0)return console.error("\u6570\u7EC4\u4E3A\u7A7A"),{display:"none"};const a=n.find(d=>(d==null?void 0:d.positionId)===this.pick);if(!a)return console.error(`\u672A\u627E\u5230\u5339\u914D\u7684\u56FE\u6807\u914D\u7F6E\u3002pick: ${this.pick}`),{display:"none"};const s=a.iconFieldId||a.iconFielId;if(!s)return console.error("iconFieldId/iconFielId \u4E3A\u7A7A\uFF0C\u53EF\u7528\u5B57\u6BB5:",Object.keys(a)),{display:"none"};let o;try{o=JSON.parse(s)}catch(d){return console.error("JSON \u89E3\u6790\u5931\u8D25:",d,"\u539F\u59CB\u503C:",s),{display:"none"}}if(!Array.isArray(o)||o.length===0)return console.error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u975E\u7A7A\u6570\u7EC4:",o),{display:"none"};const l=o[0],c=l==null?void 0:l.fileId;return c?{backgroundImage:`url(${this.ossServerContext}/oss/file/get/${c})`,backgroundSize:this.size,backgroundRepeat:this.repeat,backgroundPosition:this.position,width:"100%",height:"100%"}:(console.error("fileId \u4E3A\u7A7A\uFF0C\u89E3\u6790\u7ED3\u679C:",l),{display:"none"})}catch(a){return console.error("getIcon \u6267\u884C\u51FA\u9519:",a),{display:"none"}}}},methods:{}},Vf={};var Ck=Y(wk,bk,Sk,!1,xk,null,null,null);function xk(e){for(let t in Vf)this[t]=Vf[t]}var zf=function(){return Ck.exports}(),yo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:ta,DatePicker:Ko,Form:sl,LoadMore:ll,User1:vl,BasicLayout:yl,EmptyLayout:$i,DetailView:xl,PageView:kl,PopupView:_l,QueryView:El,Login:js,Search:Ad,SelectPanel:Bd,InputSelect:Rd,SelectBtn:zd,User:Hs,Apps:ho,AppsEdit:fo,MyApps:Us,AppsNew:vo,appItem:ze,tabbar:ti,LoadingPanel:Of,Setting:go,UploadFile:Pf,Card:Bf,CardItem:Rf,ImgLoad:zf},Symbol.toStringTag,{value:"Module"})),jf={install(e,{config:t}={}){e.prototype.$config=y.default.merge({},e.prototype.$config||{},t||M.config)}},Hf={install(e,{router:t,store:i}){e.prototype.$backToMenu=function(){if(console.log("trigger $backToMenu"),this.$config.showMenus){const n=i.state.app.breadCrumbList;i.commit("closeTag",{$router:t,route:y.default.cloneDeep(y.default.find(i.state.app.tagNavList,{name:n[n.length-1].name})||{})}),t.push({name:n[n.length-2].name}).catch(()=>{})}else t.go(-1)}}},$k=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:jf,IndRouterPlugin:Hf},Symbol.toStringTag,{value:"Module"}));const Uf=function(e,t,i){const n=i.context;e.style.display="none";const r=t.value;(n.$store.state.app.permission[r]||r==="all")&&(e.style.display="")},Kf={bind:Uf,update:Uf};var bo=Object.freeze(Object.defineProperty({__proto__:null,permission:Kf},Symbol.toStringTag,{value:"Module"}));const Wf={name:Te.rootRouteName,path:"/",component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Te.homeRouteName,path:"home",meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},kk={name:Te.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:js},Tk={name:"user",path:"/user",component:Hs,meta:{hideInMenu:!0,notCache:!0}},_k={name:"setting",path:"/setting",component:go,meta:{hideInMenu:!0,notCache:!0}},Ik={name:"apps",path:"/apps",component:ho,meta:{hideInMenu:!0,notCache:!0}},Ek={name:"appsNew",path:"/appsNew",component:vo,meta:{hideInMenu:!0,notCache:!0}},Dk={name:"appsEdit",path:"/appsEdit",component:fo,meta:{hideInMenu:!0,notCache:!0}},Mk={path:"/404",meta:{hideInMenu:!0},component:Ui};function Ok({homeComponent:e,rootChildren:t}={}){const i=y.default.cloneDeep(Wf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[kk]:[];return[i,...n,Tk,_k,Ik,Dk,Mk,Ek]}function Lk({rootChildren:e}={}){const t=y.default.cloneDeep(Wf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const Ak={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},zr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Yf(e){return[zr.DIRECTORY,zr.MENU].includes(e)}function Xf(e,t=[]){return e?t.filter(i=>{const n=(i==null?void 0:i.permissionValue)||"";return n.startsWith(e)||n.startsWith(`${M.config.routerBase}-${e}`)}):t}function So({list:e,menuTree:t,pageNode:i,parentId:n,crumbs:r,root:a}){if(!e)return;let s=M.getSessionStorage("appInfo");e.forEach(o=>{var _;const{permissionId:l,label:c,appId:h,pid:d,icon:u,type:f,uri:p,permissionValue:m,extendProps:v}=o;if(h!=s.appId)return;const w=m;let x=!1,E=!1;if(o&&o.extendProps)try{x=((_=JSON.parse(o.extendProps))==null?void 0:_.hideInIbp)==="1"}catch{x=!1}try{if(o&&o.extension){const T=JSON.parse(o.extension);if(T.extendProps){const O=typeof T.extendProps=="string"?JSON.parse(T.extendProps):T.extendProps;(O==null?void 0:O.hideInMenu)==1&&(E=!0)}}}catch{E=!1}if(d===n&&!(x||E)){if(Yf(f)){let T={type:f,name:w,pid:d,path:Gf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:w},children:[],extendProps:v};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),zr.DIRECTORY===f&&(T.component="EmptyLayout"),So({list:e,menuTree:T.children,pageNode:i,parentId:l,crumbs:T.meta.crumbs,root:!1}),T.children.length||delete T.children,t.push(T)}if(zr.PAGE===f){let T={type:f,name:w,pid:d,path:Gf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),i.children.push(T)}}})}function Gf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function qf(e=[]){e=e.filter(i=>Yf(i.type));const t=[];return So({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function Pk(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return So({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),wo(t)}function wo(e=[]){for(let t of e)if(t.component){const i=Ak[t.component];i?t.component=i.component:t.path?window.loadComponentHandler&&(t.component=window.loadComponentHandler(t.path,t.name)||Ui):(console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${t.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`),t.component=Ui),t.children&&t.children.length>0&&wo(t.children)}return e}var Co={exports:{}},Jf=function(t,i){return function(){for(var r=new Array(arguments.length),a=0;a<r.length;a++)r[a]=arguments[a];return t.apply(i,r)}},Nk=Jf,Si=Object.prototype.toString;function xo(e){return Si.call(e)==="[object Array]"}function $o(e){return typeof e=="undefined"}function Bk(e){return e!==null&&!$o(e)&&e.constructor!==null&&!$o(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Fk(e){return Si.call(e)==="[object ArrayBuffer]"}function Rk(e){return typeof FormData!="undefined"&&e instanceof FormData}function Vk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function zk(e){return typeof e=="string"}function jk(e){return typeof e=="number"}function Zf(e){return e!==null&&typeof e=="object"}function jr(e){if(Si.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Hk(e){return Si.call(e)==="[object Date]"}function Uk(e){return Si.call(e)==="[object File]"}function Kk(e){return Si.call(e)==="[object Blob]"}function Qf(e){return Si.call(e)==="[object Function]"}function Wk(e){return Zf(e)&&Qf(e.pipe)}function Yk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Xk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Gk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function ko(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),xo(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function To(){var e={};function t(r,a){jr(e[a])&&jr(r)?e[a]=To(e[a],r):jr(r)?e[a]=To({},r):xo(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)ko(arguments[i],t);return e}function qk(e,t,i){return ko(t,function(r,a){i&&typeof r=="function"?e[a]=Nk(r,i):e[a]=r}),e}function Jk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:xo,isArrayBuffer:Fk,isBuffer:Bk,isFormData:Rk,isArrayBufferView:Vk,isString:zk,isNumber:jk,isObject:Zf,isPlainObject:jr,isUndefined:$o,isDate:Hk,isFile:Uk,isBlob:Kk,isFunction:Qf,isStream:Wk,isURLSearchParams:Yk,isStandardBrowserEnv:Gk,forEach:ko,merge:To,extend:qk,trim:Xk,stripBOM:Jk},zi=Zt;function tp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ep=function(t,i,n){if(!i)return t;var r;if(n)r=n(i);else if(zi.isURLSearchParams(i))r=i.toString();else{var a=[];zi.forEach(i,function(l,c){l===null||typeof l=="undefined"||(zi.isArray(l)?c=c+"[]":l=[l],zi.forEach(l,function(d){zi.isDate(d)?d=d.toISOString():zi.isObject(d)&&(d=JSON.stringify(d)),a.push(tp(c)+"="+tp(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Zk=Zt;function Hr(){this.handlers=[]}Hr.prototype.use=function(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},Hr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Hr.prototype.forEach=function(t){Zk.forEach(this.handlers,function(n){n!==null&&t(n)})};var Qk=Hr,tT=Zt,eT=function(t,i){tT.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},ip=function(t,i,n,r,a){return t.config=i,n&&(t.code=n),t.request=r,t.response=a,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},iT=ip,np=function(t,i,n,r,a){var s=new Error(t);return iT(s,i,n,r,a)},nT=np,rT=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(nT("Request failed with status code "+n.status,n.config,null,n.request,n))},Ur=Zt,aT=Ur.isStandardBrowserEnv()?function(){return{write:function(i,n,r,a,s,o){var l=[];l.push(i+"="+encodeURIComponent(n)),Ur.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Ur.isString(a)&&l.push("path="+a),Ur.isString(s)&&l.push("domain="+s),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(i){var n=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),sT=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},oT=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},lT=sT,cT=oT,uT=function(t,i){return t&&!lT(i)?cT(t,i):i},_o=Zt,hT=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],dT=function(t){var i={},n,r,a;return t&&_o.forEach(t.split(`
|
|
21
21
|
`),function(o){if(a=o.indexOf(":"),n=_o.trim(o.substr(0,a)).toLowerCase(),r=_o.trim(o.substr(a+1)),n){if(i[n]&&hT.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([r]):i[n]=i[n]?i[n]+", "+r:r}}),i},rp=Zt,fT=rp.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n;function r(a){var s=a;return t&&(i.setAttribute("href",s),s=i.href),i.setAttribute("href",s),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=r(window.location.href),function(s){var o=rp.isString(s)?r(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),Kr=Zt,pT=rT,mT=aT,vT=ep,gT=uT,yT=dT,bT=fT,Io=np,ap=function(t){return new Promise(function(n,r){var a=t.data,s=t.headers,o=t.responseType;Kr.isFormData(a)&&delete s["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(c+":"+h)}var d=gT(t.baseURL,t.url);l.open(t.method.toUpperCase(),vT(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!!l){var p="getAllResponseHeaders"in l?yT(l.getAllResponseHeaders()):null,m=!o||o==="text"||o==="json"?l.responseText:l.response,v={data:m,status:l.status,statusText:l.statusText,headers:p,config:t,request:l};pT(n,r,v),l=null}}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){!l||(r(Io("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(Io("Network Error",t,null,l)),l=null},l.ontimeout=function(){var m="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(Io(m,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},Kr.isStandardBrowserEnv()){var f=(t.withCredentials||bT(d))&&t.xsrfCookieName?mT.read(t.xsrfCookieName):void 0;f&&(s[t.xsrfHeaderName]=f)}"setRequestHeader"in l&&Kr.forEach(s,function(m,v){typeof a=="undefined"&&v.toLowerCase()==="content-type"?delete s[v]:l.setRequestHeader(v,m)}),Kr.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(m){!l||(l.abort(),r(m),l=null)}),a||(a=null),l.send(a)})},Ot=Zt,sp=eT,ST=ip,wT={"Content-Type":"application/x-www-form-urlencoded"};function op(e,t){!Ot.isUndefined(e)&&Ot.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function CT(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=ap),e}function xT(e,t,i){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}var Wr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:CT(),transformRequest:[function(t,i){return sp(i,"Accept"),sp(i,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t)?t:Ot.isArrayBufferView(t)?t.buffer:Ot.isURLSearchParams(t)?(op(i,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Ot.isObject(t)||i&&i["Content-Type"]==="application/json"?(op(i,"application/json"),xT(t)):t}],transformResponse:[function(t){var i=this.transitional,n=i&&i.silentJSONParsing,r=i&&i.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?ST(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Wr.headers={common:{Accept:"application/json, text/plain, */*"}},Ot.forEach(["delete","get","head"],function(t){Wr.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){Wr.headers[t]=Ot.merge(wT)});var Eo=Wr,$T=Zt,kT=Eo,TT=function(t,i,n){var r=this||kT;return $T.forEach(n,function(s){t=s.call(r,t,i)}),t},lp=function(t){return!!(t&&t.__CANCEL__)},cp=Zt,Do=TT,_T=lp,IT=Eo;function Mo(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var ET=function(t){Mo(t),t.headers=t.headers||{},t.data=Do.call(t,t.data,t.headers,t.transformRequest),t.headers=cp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),cp.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var i=t.adapter||IT.adapter;return i(t).then(function(r){return Mo(t),r.data=Do.call(t,r.data,r.headers,t.transformResponse),r},function(r){return _T(r)||(Mo(t),r&&r.response&&(r.response.data=Do.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Bt=Zt,up=function(t,i){i=i||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(u,f){return Bt.isPlainObject(u)&&Bt.isPlainObject(f)?Bt.merge(u,f):Bt.isPlainObject(f)?Bt.merge({},f):Bt.isArray(f)?f.slice():f}function c(u){Bt.isUndefined(i[u])?Bt.isUndefined(t[u])||(n[u]=l(void 0,t[u])):n[u]=l(t[u],i[u])}Bt.forEach(r,function(f){Bt.isUndefined(i[f])||(n[f]=l(void 0,i[f]))}),Bt.forEach(a,c),Bt.forEach(s,function(f){Bt.isUndefined(i[f])?Bt.isUndefined(t[f])||(n[f]=l(void 0,t[f])):n[f]=l(void 0,i[f])}),Bt.forEach(o,function(f){f in i?n[f]=l(t[f],i[f]):f in t&&(n[f]=l(void 0,t[f]))});var h=r.concat(a).concat(s).concat(o),d=Object.keys(t).concat(Object.keys(i)).filter(function(f){return h.indexOf(f)===-1});return Bt.forEach(d,c),n},DT={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},hp=DT,Oo={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Oo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var dp={},MT=hp.version.split(".");function fp(e,t){for(var i=t?t.split("."):MT,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}Oo.transitional=function(t,i,n){var r=i&&fp(i);function a(s,o){return"[Axios v"+hp.version+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return function(s,o,l){if(t===!1)throw new Error(a(o," has been removed in "+i));return r&&!dp[o]&&(dp[o]=!0,console.warn(a(o," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,o,l):!0}};function OT(e,t,i){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],s=t[a];if(s){var o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new TypeError("option "+a+" must be "+l);continue}if(i!==!0)throw Error("Unknown option "+a)}}var LT={isOlderVersion:fp,assertOptions:OT,validators:Oo},pp=Zt,AT=ep,mp=Qk,vp=ET,Yr=up,gp=LT,ji=gp.validators;function Tn(e){this.defaults=e,this.interceptors={request:new mp,response:new mp}}Tn.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Yr(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;i!==void 0&&gp.assertOptions(i,{silentJSONParsing:ji.transitional(ji.boolean,"1.0.0"),forcedJSONParsing:ji.transitional(ji.boolean,"1.0.0"),clarifyTimeoutError:ji.transitional(ji.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(t)===!1||(r=r&&u.synchronous,n.unshift(u.fulfilled,u.rejected))});var a=[];this.interceptors.response.forEach(function(u){a.push(u.fulfilled,u.rejected)});var s;if(!r){var o=[vp,void 0];for(Array.prototype.unshift.apply(o,n),o=o.concat(a),s=Promise.resolve(t);o.length;)s=s.then(o.shift(),o.shift());return s}for(var l=t;n.length;){var c=n.shift(),h=n.shift();try{l=c(l)}catch(d){h(d);break}}try{s=vp(l)}catch(d){return Promise.reject(d)}for(;a.length;)s=s.then(a.shift(),a.shift());return s},Tn.prototype.getUri=function(t){return t=Yr(this.defaults,t),AT(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},pp.forEach(["delete","get","head","options"],function(t){Tn.prototype[t]=function(i,n){return this.request(Yr(n||{},{method:t,url:i,data:(n||{}).data}))}}),pp.forEach(["post","put","patch"],function(t){Tn.prototype[t]=function(i,n,r){return this.request(Yr(r||{},{method:t,url:i,data:n}))}});var PT=Tn;function Lo(e){this.message=e}Lo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Lo.prototype.__CANCEL__=!0;var yp=Lo,NT=yp;function Xr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(r){t=r});var i=this;e(function(r){i.reason||(i.reason=new NT(r),t(i.reason))})}Xr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Xr.source=function(){var t,i=new Xr(function(r){t=r});return{token:i,cancel:t}};var BT=Xr,FT=function(t){return function(n){return t.apply(null,n)}},RT=function(t){return typeof t=="object"&&t.isAxiosError===!0},bp=Zt,VT=Jf,Gr=PT,zT=up,jT=Eo;function Sp(e){var t=new Gr(e),i=VT(Gr.prototype.request,t);return bp.extend(i,Gr.prototype,t),bp.extend(i,t),i}var $e=Sp(jT);$e.Axios=Gr,$e.create=function(t){return Sp(zT($e.defaults,t))},$e.Cancel=yp,$e.CancelToken=BT,$e.isCancel=lp,$e.all=function(t){return Promise.all(t)},$e.spread=FT,$e.isAxiosError=RT,Co.exports=$e,Co.exports.default=$e;var HT=Co.exports;const qr=location.pathname.includes("scyxweb"),UT=navigator.userAgent.toLowerCase(),KT=!!/wxwork/.test(UT),wp={set:function(e,t,i){if(e.indexOf("=")!==-1)throw new Error("Cookie\u4E0D\u652F\u6301key\u4E2D\u4F7F\u7528\u7B49\u53F7\u3010=\u3011, key:"+e);let n=new Date;n.setTime(n.getTime()+24*60*60*1e3*i),window.document.cookie=e+"="+t+";path=/;expires="+n.toGMTString()},get:function(e){if(document.cookie.length>0){var t=document.cookie.split("; ");for(let n=0;n<t.length;n++){let r=t[n].split("=");if(r[0]===e){var i=r[1];for(let a=2;a<r.length;a++)i+="="+r[a];return i}}}}};async function WT({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:r}){var m,v;let a=await t.dispatch("getUserInfo");await t.dispatch("getAppListData"),await t.dispatch("getMyAppsList",{userId:a.userId,funId:"store-my-app"});const s=await t.dispatch("getPermissionData"),o=JSON.parse(((v=(m=M.getSessionStorage("appInfo"))==null?void 0:m.extendProps)==null?void 0:v.extendProps)||"{}"),l=M.getLocalStorage("versionInfo");if(l){if(o.appVersion>l.appVersion){M.setLocalStorage("versionInfo",o);let w=window.location.href,x=new URL(w),E=new URLSearchParams(x.search);E.set("v",o.appVersion),x.search=E.toString(),window.location.href=x.href}}else M.setLocalStorage("versionInfo",o);e.options=y.default.cloneDeep(r);const c=Xf(i,s),h=Pk(c);console.log("dynamicROuters",h);const d=e.options.routes.find(w=>w.path==="/");for(const w of h)e.addRoute(d.name,w),d.children.push(w);const f=Xf(i,n).filter(w=>e.options.routes.findIndex(x=>w.name===x.name)===-1);f.forEach(w=>{w.component=w.name,w.meta={hideInMenu:!0,title:w.label,activeName:w.name}});const p=wo(f);for(const w of p)e.addRoute(Te.rootRouteName,w)}function YT({router:e,store:t,microType:i,allowPermissionList:n}){el();const r=Te.loginRouteName,a=y.default.cloneDeep(e.options);window.sessionNotValidHandler=async function(){if(typeof window.Code!="undefined"||qr){try{await xp(t,e)}catch(s){if(console.log("pluginLogin e",s),qr)if(KT)location.href=location.protocol+"//"+location.host+"/hbwebchat/wxmain?syscode=gtptrpxebl";else try{await ft.alert({title:"\u63D0\u793A",message:"\u5F53\u524D\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u7CFB\u7EDF\u5C06\u91CD\u65B0\u767B\u9646"}),console.log("\u4F1A\u8BDD\u5931\u6548-------2"),wx.miniProgram.navigateTo({url:"/pages/index/reload"})}catch(o){return console.log(o),!1}}await t.dispatch("getUserInfo"),await t.dispatch("getAppListData"),await t.dispatch("getPermissionData")}else window.confirm("\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u662F\u5426\u91CD\u65B0\u767B\u5F55\uFF1F")&&e.push({name:r},()=>{window.location.reload()})},window.apiErrorHandler=function(s){ke.Message.error({content:s,duration:10,closable:!0})},e.beforeEach(async(s,o,l)=>{console.log("router.beforeEach at guard"),ke.LoadingBar.start();let c=M.getToken(),h=location.search;if(h){let p=/token=(.*)/.exec(h);p&&p.length>1&&c!==p[1]&&(c=p[1],t.dispatch("loginSuccess",c));let m=window.getQueryVariable("tokenWeapp");m&&(console.log("tokenInQuery",m),M.setToken(m),c=m)}console.log("typeof window.Code",typeof window.Code);async function d(){var p,m,v;if(t.state.user.userName)console.log("window?.selectInst?.show",(p=window==null?void 0:window.selectInst)==null?void 0:p.show),(m=window==null?void 0:window.selectInst)!=null&&m.show?(window.selectInst.$emit("update:show",!1),console.log("router3"),l(!1)):(v=window==null?void 0:window.popupPageInst)!=null&&v.value?(window.popupPageInst.$emit("input",!1),console.log("router4"),l(!1)):(console.log("router5"),l());else{ke.Spin.show();try{await WT({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:a}),console.log("router1");const w=getQueryVariable("state");let x={};!!w&&w!="null"?(x=JSON.parse(decodeURIComponent(decodeURIComponent(w))),console.log("state",x),sessionStorage.setItem("isFromIM","1"),console.log("isFromIM\u6807\u8BC61\u5DF2\u6DFB\u52A0\u5230sessionStorage"),l({path:x.url,replace:!0})):l({...s,replace:!0})}catch{console.log("router2"),l({name:r})}ke.Spin.hide()}}async function u(){try{return c=await xp(t,e),t.dispatch("loginSuccess",c),c}catch(p){return console.log("tryPluginLogin error",p),!1}}const f=getQueryVariable("code");typeof window.Code!="undefined"||f||qr?c?await $p()?await d():await u()&&await d():await u()&&await d():!c&&s.name!==r?(console.log("router6"),l({name:r})):s.name===r?(console.log("router7"),l()):(console.log("router8"),await $p()?await d():await u()?await d():console.log("router9"))}),e.afterEach(s=>{ke.LoadingBar.finish(),window.scrollTo(0,0)})}let Cp={};const xp=(e,t)=>{let i=getQueryVariable("code"),n=Cp[i];return n?(console.log("\u91CD\u590D\u4F7F\u7528\u4E86code\u521B\u5EFA\u4F1A\u8BDD\uFF01"),n):(n=Cp[i]=new Promise((r,a)=>{if(sessionStorage.removeItem("lambo-token"),sessionStorage.removeItem("sso_token"),sessionStorage.removeItem("userInfo"),localStorage.removeItem("v8-token"),localStorage.removeItem("userId"),localStorage.removeItem("userInfo"),wp.set("lambo-sso-key","",1),wp.set("TOKEN_KEY","",1),e.commit("setUserName",""),e.commit("setToken",""),qr){let s=location.protocol+"//"+location.host+"/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";M.axios.get(s).then(async o=>{M.setToken(o.token),localStorage.setItem("v8-token",o.token),sessionStorage.setItem("lambo-token",o.token),setTimeout(()=>{console.log("before getUserDefaultUrl"),Ed().then(l=>{var c;console.log("getUserDefaultUrl data",l),(c=l.data)!=null&&c.includes("home")?t.push({name:Te.homeRouteName,replace:!0}):t.push({name:"workBench",replace:!0}),a(0),console.log("location.href",location.href)})},0)}).catch(o=>{console.log("\u83B7\u53D6token\u5F02\u5E38",o),a(0)})}else console.log("1111`111"),i?M.axios.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code="+i).then(async s=>{M.setToken(s.token),r(s.token)}).catch(s=>{console.log("\u83B7\u53D6token\u5F02\u5E38",s),ke.Message.error({content:"\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",duration:10,closable:!0}),a(0)}):(Code.postMessage(""),window.getCode=function(s){console.log("getCode res",s),M.axios.get("/ind-uc-ext-server/sso/ssoAppLogin?code="+s).then(async o=>{M.setToken(o.token),r(o.token)}).catch(o=>{console.log("\u83B7\u53D6token\u5F02\u5E38",o),ke.Message.error({content:"\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",duration:10,closable:!0}),a(0)})})}),n)};window.getQueryVariable=function(t){var i=window.location.search.substring(1),n=i.split("&");for(let a=0;a<n.length;a++){let s=n[a].split("=");if(s[0]==t)return s.slice(1).join("=")}let r=window.location.hash.substring(2);r.includes("?")&&(i=r.split("?")[1]),n=i.split("&");for(let a=0;a<n.length;a++){let s=n[a].split("=");if(s[0]==t)return s.slice(1).join("=")}return!1};const $p=async()=>{var e,t;if(console.log("checkLogin trigger"),localStorage.getItem("whoisyourdaddy")=="1")return Promise.resolve(!0);try{let i=M.getToken();console.log("checkLogin token",i);const n=await HT.get(`${Te.authServerContext}/manage/user/getCurrentInfo`,{params:{},headers:{token:i}});return console.log(((e=n.data)==null?void 0:e.code)==1?"\u6709\u4F1A\u8BDD\u4E86\uFF01":"\u6CA1\u6709\u4F1A\u8BDD\u3002\u3002\u3002"),((t=n.data)==null?void 0:t.code)==1}catch(i){return console.log("getLoginData e",i),ke.Message.error({content:"\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01",duration:10,closable:!0}),!1}},XT={mode:"history",base:"ind-mobile"};var GT={state:{userName:"",avatarImgPath:"",userManageUnitId:"",token:M.getToken()},mutations:{setAvatar(e,t){e.avatarImgPath=t},setUserName(e,t){e.userName=t},setUserManageUnitId(e,t){e.userManageUnitId=t},setToken(e,t){e.token=t,M.setToken(t)}},actions:{async handleLogin({dispatch:e},{userName:t,password:i,validCodeId:n,validCodeInput:r}){const a=await M.loginApi({userName:t,password:i,validCodeId:n,validCodeInput:r});return e("loginSuccess",a.token),a.url},loginSuccess({commit:e,dispatch:t},i){M.clearUserInfoCache(),e("setToken",i),e("setTagNavList",[]),window.top===window.self&&M.clearPermissionCache()},async handleLogout({state:e,commit:t}){await M.logoutApi(e.token),t("setToken",""),t("setUserName",""),t("setUserManageUnitId",""),setTimeout(()=>{window.location.reload()},0)},async getUserInfo({commit:e}){const t=M.getUserInfoCache();if(t)return e("setAvatar",t.userAvater),e("setUserName",t.userName),e("setUserManageUnitId",t.manageUnitId),t;const{data:i}=await M.getUserInfoApi();return e("setAvatar",i.userAvater),e("setUserName",i.userName),e("setUserManageUnitId",i.manageUnitId),M.setUserInfoCache(i),i}}};const{homeRouteName:Jr}=Te,qT=(e,t,i)=>{const n=Zo(e.tagNavList,i);e.tagNavList=e.tagNavList.filter(r=>!Ki(r,i)),t.push(n)};var JT={state:{appInfo:"",appList:[],permissionList:[],permission:{},menuTreeList:[],myAppsList:[],homeRoute:{},breadCrumbList:[],tagNavList:[],activeName:"",collectMenuList:[],maxTabNum:5,theme:Yi()},getters:{getAppInfo(e){let t=e.appInfo;return t||(t=M.getSessionStorage("appInfo")),t||{}},getAppList(e){let t=e.appList;return t.length||(t=M.getSessionStorage("appList")),t||[]},getMenuTreeList(e){let t=e.menuTreeList;return t.length||(t=M.getSessionStorage("menuTreeList")),t||[]},getMaxTabNum(e){let t=e.maxTabNum;return t||(t=M.getSessionStorage("maxTabNum")),t||5},getTheme(e){let t=e.theme;return t||(t=Yi()),t},getMyAppsList(e){let t=e.myAppsList;return t.length||(t=M.getSessionStorage("myAppsList")),t||[]}},mutations:{setAppList(e,t){M.setSessionStorage("appList",t),e.appList=t},setAppInfo(e,t){let i=e.appList;i.length<=0&&(i=M.getSessionStorage("appList")||[]);const n=i.find(r=>r.appId==t);n&&(M.setSessionStorage("appInfo",n),e.appInfo=n)},setPermission(e,t){e.permission=t},setPermissionList(e,t){e.permissionList=t},setMenuTreeList(e,t){M.setSessionStorage("menuTreeList",t),e.menuTreeList=t},setMyAppsList(e,t){M.setSessionStorage("myAppsList",t),e.myAppsList=t},setHomeRoute(e,t){const i=t.options.routes;e.homeRoute=Dn(i,Jr)},setBreadCrumb(e,t){e.breadCrumbList=qo(t,e.homeRoute)},setTagNavList(e,t){let i=[];t?i=[...t]:i=Jo()||[];let n=i.findIndex(r=>r.name===Jr);if(n==-1&&i.unshift({meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"},hideInMenu:!0,icon:"md-home",title:"\u9996\u9875",name:"home",params:{},query:{}}),i[0]&&i[0].name!==Jr&&i.shift(),n>0){let r=i.splice(n,1)[0];i.unshift(r)}e.tagNavList=i,ia([...i])},closeTag(e,{$router:t,route:i}){let n=e.tagNavList.filter(r=>Ki(r,i));i=n[0]?n[0]:null,i&&qT(e,t,i)},addTag(e,{route:t,type:i="unshift"}){let n=Xo(t);Qo(e.tagNavList,n)||(console.log("type=="+i),i==="push"?(e.tagNavList.length>=e.maxTabNum+1&&e.tagNavList.splice(1,1),e.tagNavList.push(n)):n.name===Jr?e.tagNavList.unshift(n):e.tagNavList.splice(1,e.tagNavList.length>=e.maxTabNum?1:0,n),ia([...e.tagNavList]))},setActiveName(e,t){e.activeName=t},setCollectMenuList(e,t){e.collectMenuList=t},setMaxTabNum(e,t=5){M.setSessionStorage("maxTabNum",t),e.maxTabNum=t},setTheme(e,t){e.theme=t,M.setLocalStorage(Wi,t),wi(t)}},actions:{async getAppListData({commit:e,getters:t}){let i=t.getAppList;if(!i.length){const{data:r=[]}=await M.getAppListApi();i=r.filter(a=>a.basepath!=="/cmsadmin"),e("setAppList",i)}let n="";if(location.search){let r=/appId=([^&]*)/.exec(location.search);r&&r.length>1&&(n=r[1])}if(i.length==1&&(n=i[0].appId||""),!n){let r=i.find(a=>{var s;return((s=a.application)==null?void 0:s.appBizCode)=="mobile-main"})||{};n=(r==null?void 0:r.appId)||""}if(!n){const r=M.getSessionStorage("appInfo");n=(r==null?void 0:r.appId)||""}return n||(n=i.find(a=>{var s,o;return((o=(s=a.application)==null?void 0:s.extendProps)==null?void 0:o.is_mobile_app)=="1"}).appId||""),e("setAppInfo",n),i},async getPermissionData({commit:e}){const t=M.getPermissionCache();if(t){const i={};for(const n of t)n.permissionValue&&(i[n.permissionValue]=!0);return e("setPermissionList",t),e("setPermission",i),e("setMenuTreeList",qf(t)),t}try{const{data:i}=await M.getPermissionApi(),n={};for(const r of i)r.permissionValue&&(n[r.permissionValue]=!0);return e("setPermissionList",i),e("setPermission",n),e("setMenuTreeList",qf(i)),M.setPermissionCache(i),i}catch(i){console.log("getPermissionData: "+i)}},async addMenuHistory({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};n&&r&&await M.menuHistoryApi({appId:n,permissionId:r})},async addMenuCollect({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};if(!n||!r||item.type!=="2")return Promise.reject("\u8BE5\u9875\u9762\u4E0D\u80FD\u88AB\u6536\u85CF");await M.addMenuCollectApi({appId:n,permissionId:r})},async removeMenuCollect({state:e},{name:t}){const i=e.permissionList,{appId:n,permissionId:r}=i.find(a=>a.name===t)||{};if(!n||!r||item.type!=="2")return Promise.reject("\u8BE5\u9875\u9762\u4E0D\u80FD\u88AB\u6536\u85CF");await M.removeMenuCollectApi({appId:n,permissionId:r})},async saveMyAppsList({commit:e},t){try{await IC(t)}catch(i){console.error("saveMyAppsList:",i)}},async getMyAppsList({commit:e},t){try{let{data:i}=await _C(t);i=i||"[]",e("setMyAppsList",i)}catch(i){console.error("getMyAppsList:",i)}}}};const ZT={modules:{user:GT,app:JT}},Zr=function(e,t={theme:""}){if(Zr.installed)return;const i=t.theme||Yi();let n=t.config||{};if(y.default.isEmpty(n)||y.default.forEach(n,(r,a)=>{M.setConfig(a,r)}),wi(i),location.pathname.includes("scyxweb")){let r=location.protocol+"//"+location.host+"/hbwebchat/scyxweb/ind-mobile/manage/global?t="+new Date().getTime();M.axios.get(r).then(a=>{e.prototype.$config=y.default.merge({},e.prototype.$config||{},a)})}e.ready=M.axios.get("/user-manage-server/anon/system/qrySystemConfig",{params:{deviceType:"11"}}).then(r=>{var a;try{const s=JSON.parse(((a=r==null?void 0:r.data)==null?void 0:a.settingInfo)||"{}");if((s==null?void 0:s.systemDefaultConfig)&&s.systemDefaultConfig.extPropsList&&Array.isArray(s.systemDefaultConfig.extPropsList)){const l={};s.systemDefaultConfig.extPropsList.forEach(c=>{(c==null?void 0:c.key)&&c.value!==void 0&&(s.systemDefaultConfig.hasOwnProperty(c.key)&&console.warn(`\u914D\u7F6E\u952E\u540D ${c.key} \u91CD\u590D\uFF0C\u539F\u503C\u88AB\u8986\u76D6`,{oldValue:s.systemDefaultConfig[c.key],newValue:c.value}),l[c.key]=c.value)}),s.systemDefaultConfig={...s.systemDefaultConfig,...l}}e.prototype.$config=y.default.merge({},e.prototype.$config||{},s);const o=localStorage.getItem("systemDefaultConfig");if(o){const l=JSON.parse(o);y.default.isEqual(l,s)?console.log("\u914D\u7F6E\u76F8\u540C\uFF0C\u65E0\u9700\u66F4\u65B0"):(localStorage.removeItem("systemDefaultConfig"),localStorage.setItem("systemDefaultConfig",JSON.stringify(s)),console.log("\u914D\u7F6E\u4E0D\u540C\uFF0C\u5DF2\u66F4\u65B0"))}else localStorage.setItem("systemDefaultConfig",JSON.stringify(s)),console.log("\u9996\u6B21\u5B58\u50A8\u914D\u7F6E");return s.systemDefaultConfig.changeUI=="1"&&wi(i+" "+s.systemDefaultConfig.theme),s}catch(s){console.error("\u89E3\u6790 settingInfo \u5931\u8D25:",s)}}).catch(r=>{console.error("\u8BF7\u6C42\u5931\u8D25:",r)}),Object.keys(yo).forEach(r=>{e.component(`IndM${r}`,yo[r])}),Object.keys(bo).forEach(r=>{e.directive(r,bo[r])}),window.lastInnerHeight=window.innerHeight,window.addEventListener("resize",function(){var r=window.innerHeight;r<window.lastInnerHeight?(console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86"),Wo(),window.lastInnerHeight=window.innerHeight):(console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86"),window.lastInnerHeight=window.innerHeight)})};typeof window!="undefined"&&window.Vue&&Zr(window.Vue);const QT={version:Tp.version,install:Zr,components:yo,plugins:$k,getDefaultTheme:Yi,doChangeTheme:wi,directives:bo};N.Apps=ho,N.AppsEdit=fo,N.AppsNew=vo,N.BasicLayout=yl,N.CHINESE_WEEKDAY_MAP=im,N.Card=Bf,N.CardItem=Rf,N.DatePicker=Ko,N.Debug=el,N.DetailView=xl,N.EmptyLayout=$i,N.ErrorContent=ta,N.EventBus=nm,N.Form=sl,N.ImgLoad=zf,N.IndConfigPlugin=jf,N.IndRouterPlugin=Hf,N.InputSelect=Rd,N.LoadMore=ll,N.LoadingPanel=Of,N.Login=js,N.MyApps=Us,N.NotFound=Ui,N.PageView=kl,N.PopupView=_l,N.QueryView=El,N.Search=Ad,N.SelectBtn=zd,N.SelectPanel=Bd,N.Setting=go,N.THEME_KEY=Wi,N.UploadFile=Pf,N.User=Hs,N.User1=vl,N.addRouterGuards=YT,N.appItem=ze,N.bindFocus=In,N.createMacroBasicRoutes=Ok,N.createMicroBasicRoutes=Lk,N.default=QT,N.doChangeTheme=wi,N.formatServerTime=tm,N.generateConfigByXml=En,N.getBreadCrumbList=qo,N.getDefaultTheme=Yi,N.getHomeRoute=Dn,N.getIconByPositionId=il,N.getImgByPermission=Xi,N.getMenuByRouter=Go,N.getNewTagList=cm,N.getNextRoute=Zo,N.getRouteTitleHandled=Xo,N.getStyle=pm,N.getTagNavListFromLocalstorage=Jo,N.handleExpiredTime=em,N.install=Zr,N.permission=Kf,N.routeEqual=Ki,N.routeHasExist=Qo,N.routerOptions=XT,N.scrollToCurInput=Wo,N.setTagNavListInLocalstorage=ia,N.setTitle=om,N.showTitle=lm,N.store=ZT,N.tabbar=ti,N.transferIncrease=vm,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|