@indfnd/common-mobile 1.0.30 → 1.0.31

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.31](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.30...v1.0.31) (2026-01-29)
6
+
7
+
8
+ ### Features
9
+
10
+ * 附件下载组件支持企业微信下载 ([3320eb2](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/3320eb2635945e0d35d3f76c1c32ed55dd61b5f8))
11
+ * iOS下载无响应问题修复 ([26704b3](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/26704b3fd6cdc145787ccd72e2056542866e6790))
12
+
5
13
  ### [1.0.30](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.29...v1.0.30) (2026-01-28)
6
14
 
7
15
  ### [1.0.29](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.28...v1.0.29) (2026-01-28)
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
3
3
  import Vue$1 from "vue";
4
4
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
5
5
  const name$1 = "@indfnd/common-mobile";
6
- const version$2 = "1.0.29";
6
+ const version$2 = "1.0.30";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -30452,23 +30452,9 @@ const __vue2_script$2 = {
30452
30452
  this.$emit("onChangeData", this.resultList);
30453
30453
  this.isshow = false;
30454
30454
  },
30455
- isAndroidMiniProgram() {
30456
- const ua = navigator.userAgent;
30457
- const isAndroid2 = /Android/i.test(ua);
30458
- const isMiniProgram = /miniProgram/i.test(ua) || typeof wx !== "undefined" && wx.miniProgram;
30459
- return isAndroid2 && isMiniProgram;
30460
- },
30461
- isIOSMiniProgram() {
30462
- const ua = navigator.userAgent;
30463
- const isIOS2 = /iPhone|iPad|iPod/i.test(ua);
30464
- const isMiniProgram = /miniProgram/i.test(ua) || typeof wx !== "undefined" && wx.miniProgram;
30465
- return isIOS2 && isMiniProgram;
30466
- },
30467
- isH5() {
30468
- return !this.isAndroidMiniProgram() && !this.isIOSMiniProgram();
30469
- },
30470
30455
  handleDownload(file) {
30471
- if (this.isAndroidMiniProgram() || this.isIOSMiniProgram()) {
30456
+ const ua = navigator.userAgent;
30457
+ if (/miniProgram/i.test(ua)) {
30472
30458
  this.goToMiniProgramDown(file);
30473
30459
  } else {
30474
30460
  this.h5Download(file);
@@ -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,gp,ke){"use strict";function Mo(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=Mo(Hi),Tt=Mo(gp),yp={name:"@indfnd/common-mobile",version:"1.0.29",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.26",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"}},bp=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)},Sp=[];function G(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 Cp={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)}}},Oo={};var wp=G(Cp,bp,Sp,!1,xp,null,null,null);function xp(e){for(let t in Oo)this[t]=Oo[t]}var $p=function(){return wp.exports}(),kp=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))])])])])},Tp=[];const _p={name:"IndErrorContent",components:{BackBtnGroup:$p},props:{code:String,desc:String,src:String}},Ao={};var Ip=G(_p,kp,Tp,!1,Ep,null,null,null);function Ep(e){for(let t in Ao)this[t]=Ao[t]}var Qr=function(){return Ip.exports}(),Dp=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}})},Mp=[];const Op={name:"IndNotFound",components:{ErrorContent:Qr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Lo={};var Ap=G(Op,Dp,Mp,!1,Lp,null,null,null);function Lp(e){for(let t in Lo)this[t]=Lo[t]}var Ui=function(){return Ap.exports}(),Po=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Np(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 No={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Po,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+)?$/,C=/\[([^\]]+)]|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 Y="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[Y])},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)},L=_;L.l=z,L.i=R,L.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[Y]=!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(L.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,y=(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,y)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,y)}}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 L},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 L.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=!!L.u(I)||I,H=L.p(g),S=function(kt,xt){var Ae=L.w(D.$u?Date.UTC(D.$y,xt,kt):new Date(D.$y,xt,kt),D);return j?Ae:Ae.endOf(c)},y=function(kt,xt){return L.w(D.toDate()[kt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(xt)),D)},w=this.$W,F=this.$M,K=this.$D,X="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=(w<tt?w+7:w)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return y(X+"Hours",0);case l:return y(X+"Minutes",1);case o:return y(X+"Seconds",2);case s:return y(X+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=L.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],y=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var w=this.clone().set(p,1);w.$d[S](y),w.init(),this.$d=w.set(p,Math.min(this.$D,w.daysInMonth())).$d}else S&&this.$d[S](y);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[L.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=L.p(I),S=function(F){var K=B(j);return L.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 y=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,w=this.$d.getTime()+g*y;return L.w(w,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=L.z(this),S=this.$H,y=this.$m,w=this.$M,F=D.weekdays,K=D.months,X=D.meridiem,tt=function(xt,Ae,Tn,Zr){return xt&&(xt[Ae]||xt(I,j))||Tn[Ae].slice(0,Zr)},ct=function(xt){return L.s(S%12||12,xt,"0")},kt=X||function(xt,Ae,Tn){var Zr=xt<12?"AM":"PM";return Tn?Zr.toLowerCase():Zr};return j.replace(C,function(xt,Ae){return Ae||function(Tn){switch(Tn){case"YY":return String(I.$y).slice(-2);case"YYYY":return L.s(I.$y,4,"0");case"M":return w+1;case"MM":return L.s(w+1,2,"0");case"MMM":return tt(D.monthsShort,w,K,3);case"MMMM":return tt(K,w);case"D":return I.$D;case"DD":return L.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 L.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,y,!0);case"A":return kt(S,y,!1);case"m":return String(y);case"mm":return L.s(y,2,"0");case"s":return String(I.$s);case"ss":return L.s(I.$s,2,"0");case"SSS":return L.s(I.$ms,3,"0");case"Z":return H}return null}(xt)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=L.p(I),y=B(g),w=(y.utcOffset()-this.utcOffset())*n,F=this-y,K=function(){return L.m(H,y)};switch(S){case f:j=K()/12;break;case d:j=K();break;case u:j=K()/3;break;case h:j=(F-w)/6048e5;break;case c:j=(F-w)/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:L.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 L.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})})(No);var Wt=No.exports,Bp=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)},Fp=[];const Bo=new Date().getFullYear(),Fo=new Date().getMonth()+1,Rp=`Q${M.getQuarterNum(Fo)}`,Vp=`H${M.getHalfYearNum(Fo)}`,Ro=10,Vo=10,zp={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?Wt(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Bo+Rp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+Vo;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:Bo+Vp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+Vo;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?Wt(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=Wt(this.dateValue).format("YYYYMM");else if(this.type=="date")i=Wt(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}}},zo={};var jp=G(zp,Bp,Fp,!1,Hp,null,null,null);function Hp(e){for(let t in zo)this[t]=zo[t]}var jo=function(){return jp.exports}();function _n(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Ho(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Up(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 ta(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Up(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=>ta(l)):o=[ta(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function In(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ta(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 Kp=!1;var Le=M.useConfig(Kp);function Wp(e){if(typeof e!="string"||!Wt(e).isValid())return e;switch(e.length){case 4:return Wt(e,"YYYY").format("YYYY");case 6:return Wt(e,"YYYYMM").format("YYYY-MM");case 8:return Wt(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return Wt(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function Yp(e,t){let i=Wt(e).diff(Wt(),"day");i<=Le.leftLockDays&&t(i)}const Xp={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},Gp=new Tt.default,qp=e=>e.children&&e.children.length,Jp=(e,t)=>e.some(i=>t.includes(i)),Uo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!Jp(e.meta.access,t):!0,Zp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Ko=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},Qp=()=>{},Wo=(e,t)=>{let i=[];return im(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(qp(n)||n.meta&&n.meta.showAlways)&&Uo(n,t)&&(r.children=Wo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Uo(n,t)&&i.push(r)}}),i},Yo=(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},tm=e=>e.meta.title,ea=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Xo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},En=(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=En(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Go=(e,t)=>{let i={};if(e.length===2)i=En(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 Zp(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,em=(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 im(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 nm=/([\:\-\_]+(.))/g,rm=/^moz([A-Z])/;function am(e){return e.replace(nm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(rm,"Moz$1")}function sm(e,t){if(!e||!t)return null;t=am(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 Jo={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,gp,ke){"use strict";function Mo(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=Mo(Hi),Tt=Mo(gp),yp={name:"@indfnd/common-mobile",version:"1.0.30",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.26",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"}},bp=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)},Sp=[];function G(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 Cp={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)}}},Oo={};var wp=G(Cp,bp,Sp,!1,xp,null,null,null);function xp(e){for(let t in Oo)this[t]=Oo[t]}var $p=function(){return wp.exports}(),kp=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))])])])])},Tp=[];const _p={name:"IndErrorContent",components:{BackBtnGroup:$p},props:{code:String,desc:String,src:String}},Ao={};var Ip=G(_p,kp,Tp,!1,Ep,null,null,null);function Ep(e){for(let t in Ao)this[t]=Ao[t]}var Qr=function(){return Ip.exports}(),Dp=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}})},Mp=[];const Op={name:"IndNotFound",components:{ErrorContent:Qr},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Lo={};var Ap=G(Op,Dp,Mp,!1,Lp,null,null,null);function Lp(e){for(let t in Lo)this[t]=Lo[t]}var Ui=function(){return Ap.exports}(),Po=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Np(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 No={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Po,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+)?$/,C=/\[([^\]]+)]|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 Y="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[Y])},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)},L=_;L.l=z,L.i=R,L.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[Y]=!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(L.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,y=(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,y)):new Date(H[1],S,H[3]||1,H[4]||0,H[5]||0,H[6]||0,y)}}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 L},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 L.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=!!L.u(I)||I,H=L.p(g),S=function(kt,xt){var Ae=L.w(D.$u?Date.UTC(D.$y,xt,kt):new Date(D.$y,xt,kt),D);return j?Ae:Ae.endOf(c)},y=function(kt,xt){return L.w(D.toDate()[kt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(xt)),D)},w=this.$W,F=this.$M,K=this.$D,X="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=(w<tt?w+7:w)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return y(X+"Hours",0);case l:return y(X+"Minutes",1);case o:return y(X+"Seconds",2);case s:return y(X+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=L.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],y=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var w=this.clone().set(p,1);w.$d[S](y),w.init(),this.$d=w.set(p,Math.min(this.$D,w.daysInMonth())).$d}else S&&this.$d[S](y);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[L.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=L.p(I),S=function(F){var K=B(j);return L.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 y=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,w=this.$d.getTime()+g*y;return L.w(w,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=L.z(this),S=this.$H,y=this.$m,w=this.$M,F=D.weekdays,K=D.months,X=D.meridiem,tt=function(xt,Ae,Tn,Zr){return xt&&(xt[Ae]||xt(I,j))||Tn[Ae].slice(0,Zr)},ct=function(xt){return L.s(S%12||12,xt,"0")},kt=X||function(xt,Ae,Tn){var Zr=xt<12?"AM":"PM";return Tn?Zr.toLowerCase():Zr};return j.replace(C,function(xt,Ae){return Ae||function(Tn){switch(Tn){case"YY":return String(I.$y).slice(-2);case"YYYY":return L.s(I.$y,4,"0");case"M":return w+1;case"MM":return L.s(w+1,2,"0");case"MMM":return tt(D.monthsShort,w,K,3);case"MMMM":return tt(K,w);case"D":return I.$D;case"DD":return L.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 L.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,y,!0);case"A":return kt(S,y,!1);case"m":return String(y);case"mm":return L.s(y,2,"0");case"s":return String(I.$s);case"ss":return L.s(I.$s,2,"0");case"SSS":return L.s(I.$ms,3,"0");case"Z":return H}return null}(xt)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=L.p(I),y=B(g),w=(y.utcOffset()-this.utcOffset())*n,F=this-y,K=function(){return L.m(H,y)};switch(S){case f:j=K()/12;break;case d:j=K();break;case u:j=K()/3;break;case h:j=(F-w)/6048e5;break;case c:j=(F-w)/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:L.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 L.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})})(No);var Wt=No.exports,Bp=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)},Fp=[];const Bo=new Date().getFullYear(),Fo=new Date().getMonth()+1,Rp=`Q${M.getQuarterNum(Fo)}`,Vp=`H${M.getHalfYearNum(Fo)}`,Ro=10,Vo=10,zp={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?Wt(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Bo+Rp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+Vo;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:Bo+Vp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+Vo;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?Wt(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=Wt(this.dateValue).format("YYYYMM");else if(this.type=="date")i=Wt(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}}},zo={};var jp=G(zp,Bp,Fp,!1,Hp,null,null,null);function Hp(e){for(let t in zo)this[t]=zo[t]}var jo=function(){return jp.exports}();function _n(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Ho(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Up(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 ta(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Up(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=>ta(l)):o=[ta(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function In(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ta(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 Kp=!1;var Le=M.useConfig(Kp);function Wp(e){if(typeof e!="string"||!Wt(e).isValid())return e;switch(e.length){case 4:return Wt(e,"YYYY").format("YYYY");case 6:return Wt(e,"YYYYMM").format("YYYY-MM");case 8:return Wt(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return Wt(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function Yp(e,t){let i=Wt(e).diff(Wt(),"day");i<=Le.leftLockDays&&t(i)}const Xp={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},Gp=new Tt.default,qp=e=>e.children&&e.children.length,Jp=(e,t)=>e.some(i=>t.includes(i)),Uo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!Jp(e.meta.access,t):!0,Zp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Ko=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},Qp=()=>{},Wo=(e,t)=>{let i=[];return im(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(qp(n)||n.meta&&n.meta.showAlways)&&Uo(n,t)&&(r.children=Wo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Uo(n,t)&&i.push(r)}}),i},Yo=(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},tm=e=>e.meta.title,ea=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Xo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},En=(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=En(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Go=(e,t)=>{let i={};if(e.length===2)i=En(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 Zp(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,em=(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 im(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 nm=/([\:\-\_]+(.))/g,rm=/^moz([A-Z])/;function am(e){return e.replace(nm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(rm,"Moz$1")}function sm(e,t){if(!e||!t)return null;t=am(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 Jo={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -17,5 +17,5 @@
17
17
  * @license MIT
18
18
  */function xr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xr=function(t){return typeof t}:xr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(e)}function Mx(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){Mx(e,r,i[r])})}return e}function Ox(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 Ax(e,t){if(e==null)return{};var i=Ox(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 Lx(e){return Px(e)||Nx(e)||Bx()}function Px(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 Nx(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Bx(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Fx="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),hn=je(/Edge/i),Ud=je(/firefox/i),zs=je(/safari/i)&&!je(/chrome/i)&&!je(/android/i),Kd=je(/iP(ad|od|hone)/i),Rx=je(/chrome/i)&&je(/android/i),Wd={capture:!1,passive:!1};function rt(e,t,i){e.addEventListener(t,i,!He&&Wd)}function Q(e,t,i){e.removeEventListener(t,i,!He&&Wd)}function $r(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 Vx(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ce(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&$r(e,t):$r(e,t))||n&&e===i)return e;if(e===i)break}while(e=Vx(e))}return null}var Yd=/\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(Yd," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Yd," ")}}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 Xd(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 Oe(){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!==Oe()?(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 Gd(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===Oe())break;n=ii(n,!1)}return!1}function kr(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&&Ce(a[r],i.draggable,e,!1)){if(n===t)return a[r];n++}r++}return null}function js(e,t){for(var i=e.lastElementChild;i&&(i===W.ghost||U(i,"display")==="none"||t&&!$r(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||$r(e,t))&&i++;return i}function qd(e){var t=0,i=0,n=Oe();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 zx(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 Oe();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 Oe();if(n||t)return i;n=!0}}while(i=i.parentNode);return Oe()}function jx(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Hs(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 dn;function Jd(e,t){return function(){if(!dn){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),dn=setTimeout(function(){dn=void 0},t)}}}function Hx(){clearTimeout(dn),dn=void 0}function Zd(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Us(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 Qd(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 Ks(e){U(e,"position",""),U(e,"top",""),U(e,"left",""),U(e,"width",""),U(e,"height","")}var Lt="Sortable"+new Date().getTime();function Ux(){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(zx(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&&Hs(u,d)&&!Hs(h,d)&&(p.top-d.top)/(p.left-d.left)===(h.top-d.top)/(h.left-d.left)&&(l=Wx(p,u,f,r.options)),Hs(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)"),Kx(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 Kx(e){return e.offsetWidth}function Wx(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 fn=[],Ws={initializeByDefault:!0},pn={mount:function(t){for(var i in Ws)Ws.hasOwnProperty(i)&&!(i in t)&&(t[i]=Ws[i]);fn.push(t)},pluginEvent:function(t,i,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=t+"Global";fn.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){fn.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 fn.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 fn.forEach(function(a){!t[a.pluginName]||a.optionListeners&&typeof a.optionListeners[i]=="function"&&(r=a.optionListeners[i].call(t[a.pluginName],n))}),r}};function mn(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[Lt],!!t){var m,v=t.options,C="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!He&&!hn?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,pn.getEventProperties(n,t));for(var E in x)m[E]=x[E];i&&i.dispatchEvent(m),v[C]&&v[C].call(t,m)}}var Kt=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=Ax(n,["evt"]);pn.pluginEvent.bind(W)(t,i,ei({dragEl:P,parentEl:yt,ghostEl:J,rootEl:dt,nextEl:gi,lastDownEl:Tr,cloneEl:vt,cloneHidden:ni,dragStarted:gn,putSortable:Dt,activeSortable:W.active,originalEvent:r,oldIndex:Bi,oldDraggableIndex:vn,newIndex:Gt,newDraggableIndex:ri,hideGhostForTarget:of,unhideGhostForTarget:lf,cloneNowHidden:function(){ni=!0},cloneNowShown:function(){ni=!1},dispatchSortableEvent:function(o){Ft({sortable:i,name:o,originalEvent:r})}},a))};function Ft(e){mn(ei({putSortable:Dt,cloneEl:vt,targetEl:P,rootEl:dt,oldIndex:Bi,oldDraggableIndex:vn,newIndex:Gt,newDraggableIndex:ri},e))}var P,yt,J,dt,gi,Tr,vt,ni,Bi,Gt,vn,ri,_r,Dt,Fi=!1,Ir=!1,Er=[],yi,we,Ys,Xs,tf,ef,gn,Ri,yn,bn=!1,Dr=!1,Mr,Pt,Gs=[],qs=!1,Or=[],Ar=typeof document!="undefined",Lr=Kd,nf=hn||He?"cssFloat":"float",Yx=Ar&&!Rx&&!Kd&&"draggable"in document.createElement("div"),rf=function(){if(!!Ar){if(He)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),af=function(t,i){var n=U(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=kr(t,0,i),s=kr(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[nf]==="none"||s&&n[nf]==="none"&&c+h>r)?"vertical":"horizontal"},Xx=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},Gx=function(t,i){var n;return Er.some(function(r){if(!js(r)){var a=pt(r),s=r[Lt].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},sf=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||xr(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},of=function(){!rf&&J&&U(J,"display","none")},lf=function(){!rf&&J&&U(J,"display","")};Ar&&document.addEventListener("click",function(e){if(Ir)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ir=!1,!1},!0);var bi=function(t){if(P){t=t.touches?t.touches[0]:t;var i=Gx(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[Lt]._onDragOver(n)}}},qx=function(t){P&&P.parentNode[Lt]._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[Lt]=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 af(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};pn.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);sf(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:Yx,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)),Er.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),oe(this,Ux())}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(n1(n),!P&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!c.isContentEditable&&(l=Ce(l,r.draggable,n,!1),!(l&&l.animated)&&Tr!==l)){if(Bi=mt(l),vn=mt(l,r.draggable),typeof h=="function"){if(h.call(this,t,l,this)){Ft({sortable:i,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),Kt("filter",i,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(d){if(d=Ce(c,d.trim(),n,!1),d)return Ft({sortable:i,rootEl:d,name:"filter",targetEl:l,fromEl:n,toEl:n}),Kt("filter",i,{evt:t}),!0}),h)){a&&t.cancelable&&t.preventDefault();return}r.handle&&!Ce(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,Tr=n,_r=s.group,W.dragged=P,yi={target:P,clientX:(i||t).clientX,clientY:(i||t).clientY},tf=yi.clientX-c.left,ef=yi.clientY-c.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,P.style["will-change"]="all",l=function(){if(Kt("delayEnded",r,{evt:t}),W.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ud&&r.nativeDraggable&&(P.draggable=!0),r._triggerDragStart(t,i),Ft({sortable:r,name:"choose",originalEvent:t}),ht(P,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Xd(P,h.trim(),Zs)}),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),Ud&&this.nativeDraggable&&(this.options.touchStartThreshold=4,P.draggable=!0),Kt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(hn||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&&Zs(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?Pr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(Fi=!1,dt&&P){Kt("dragStarted",this,{evt:i}),this.nativeDraggable&&rt(document,"dragover",qx);var n=this.options;!t&&ht(P,n.dragClass,!1),ht(P,n.ghostClass,!0),W.active=this,t&&this._appendGhost(),Ft({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(we){this._lastX=we.clientX,this._lastY=we.clientY,of();for(var t=document.elementFromPoint(we.clientX,we.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(we.clientX,we.clientY),t!==i);)i=t;if(P.parentNode[Lt]._isOutsideThisEl(t),i)do{if(i[Lt]){var n=void 0;if(n=i[Lt]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);lf()}},_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=Lr&&Pt&&qd(Pt),h=(a.clientX-yi.clientX+r.x)/(o||1)+(c?c[0]-Gs[0]:0)/(o||1),d=(a.clientY-yi.clientY+r.y)/(l||1)+(c?c[1]-Gs[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-(Ys||0),s.f+=d-(Xs||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),Ys=h,Xs=d,we=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!J){var t=this.options.fallbackOnBody?document.body:dt,i=pt(P,!0,Lr,!0,t),n=this.options;if(Lr){for(Pt=t;U(Pt,"position")==="static"&&U(Pt,"transform")==="none"&&Pt!==document;)Pt=Pt.parentNode;Pt!==document.body&&Pt!==document.documentElement?(Pt===document&&(Pt=Oe()),i.top+=Pt.scrollTop,i.left+=Pt.scrollLeft):Pt=Oe(),Gs=qd(Pt)}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",Lr?"absolute":"fixed"),U(J,"zIndex","100000"),U(J,"pointerEvents","none"),W.ghost=J,t.appendChild(J),U(J,"transform-origin",tf/parseInt(J.style.width)*100+"% "+ef/parseInt(J.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,r=t.dataTransfer,a=n.options;if(Kt("dragStart",this,{evt:t}),W.eventCanceled){this._onDrop();return}Kt("setupClone",this),W.eventCanceled||(vt=Us(P),vt.draggable=!1,vt.style["will-change"]="",this._hideClone(),ht(vt,this.options.chosenClass,!1),W.clone=vt),n.cloneId=Pr(function(){Kt("clone",n),!W.eventCanceled&&(n.options.removeCloneOnHide||dt.insertBefore(vt,P),n._hideClone(),Ft({sortable:n,name:"clone"}))}),!i&&ht(P,a.dragClass,!0),i?(Ir=!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=Pr(n._dragStarted.bind(n,i,t)),rt(document,"selectstart",n),gn=!0,zs&&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=_r===l,d=o.sort,u=Dt||c,f,p=this,m=!1;if(qs)return;function v(I,D){Kt(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 Js(dt,i,P,r,H,pt(H),t,S)},changed:E},D))}function C(){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,Dt?Dt.options.ghostClass:c.options.ghostClass,!1),ht(P,o.ghostClass,!0)),Dt!==p&&p!==W.active?Dt=p:p===W.active&&Dt&&(Dt=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[Lt]._isOutsideThisEl(t.target),!I&&bi(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function E(){Gt=mt(P),ri=mt(P,o.draggable),Ft({sortable:p,name:"change",toEl:i,newIndex:Gt,newDraggableIndex:ri,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Ce(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(Ir=!1,c&&!o.disabled&&(h?d||(s=!dt.contains(P)):Dt===this||(this.lastPutMode=_r.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,C(),this._hideClone(),v("revert"),W.eventCanceled||(gi?dt.insertBefore(P,gi):dt.appendChild(P)),x(!0);var _=js(i,o.draggable);if(!_||Qx(t,f,this)&&!_.animated){if(_===P)return x(!1);if(_&&i===t.target&&(n=_),n&&(a=pt(n)),Js(dt,i,P,r,n,a,t,!!n)!==!1)return C(),i.appendChild(P),yt=i,E(),x(!0)}else if(n.parentNode===i){a=pt(n);var T=0,O,Y=P.parentNode!==i,R=!Xx(P.animated&&P.toRect||r,n.animated&&n.toRect||a,f),z=f?"top":"left",B=Gd(n,"top","top")||Gd(P,"top","top"),L=B?B.scrollTop:void 0;Ri!==n&&(O=a[z],bn=!1,Dr=!R&&o.invertSwap||Y),T=t1(t,n,a,f,R?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Dr,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,yn=T;var V=n.nextElementSibling,k=!1;k=T===1;var g=Js(dt,i,P,r,n,a,t,k);if(g!==!1)return(g===1||g===-1)&&(k=g===1),qs=!0,setTimeout(Zx,30),C(),k&&!V?i.appendChild(P):n.parentNode.insertBefore(P,k?V:n),B&&Zd(B,0,L-B.scrollTop),yt=P.parentNode,O!==void 0&&!Dr&&(Mr=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),Kt("drop",this,{evt:t}),yt=P&&P.parentNode,Gt=mt(P),ri=mt(P,n.draggable),W.eventCanceled){this._nulling();return}Fi=!1,Dr=!1,bn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qs(this.cloneId),Qs(this._dragStartId),this.nativeDraggable&&(Q(document,"drop",this),Q(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),zs&&U(document.body,"user-select",""),U(P,"transform",""),t&&(gn&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(dt===yt||Dt&&Dt.lastPutMode!=="clone")&&vt&&vt.parentNode&&vt.parentNode.removeChild(vt),P&&(this.nativeDraggable&&Q(P,"dragend",this),Zs(P),P.style["will-change"]="",gn&&!Fi&&ht(P,Dt?Dt.options.ghostClass:this.options.ghostClass,!1),ht(P,this.options.chosenClass,!1),Ft({sortable:this,name:"unchoose",toEl:yt,newIndex:null,newDraggableIndex:null,originalEvent:t}),dt!==yt?(Gt>=0&&(Ft({rootEl:yt,name:"add",toEl:yt,fromEl:dt,originalEvent:t}),Ft({sortable:this,name:"remove",toEl:yt,originalEvent:t}),Ft({rootEl:yt,name:"sort",toEl:yt,fromEl:dt,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:yt,originalEvent:t})),Dt&&Dt.save()):Gt!==Bi&&Gt>=0&&(Ft({sortable:this,name:"update",toEl:yt,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:yt,originalEvent:t})),W.active&&((Gt==null||Gt===-1)&&(Gt=Bi,ri=vn),Ft({sortable:this,name:"end",toEl:yt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Kt("nulling",this),dt=P=yt=J=gi=vt=Tr=ni=yi=we=gn=Gt=ri=Bi=vn=Ri=yn=Dt=_r=W.dragged=W.ghost=W.clone=W.active=null,Or.forEach(function(t){t.checked=!0}),Or.length=Ys=Xs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":P&&(this._onDragOver(t),Jx(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],Ce(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];Ce(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 Ce(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=pn.modifyOption(this,t,i);typeof r!="undefined"?n[t]=r:n[t]=i,t==="group"&&sf(n)},destroy:function(){Kt("destroy",this);var t=this.el;t[Lt]=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(),Er.splice(Er.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ni){if(Kt("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(Kt("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 Jx(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Js(e,t,i,n,r,a,s,o){var l,c=e[Lt],h=c.options.onMove,d;return window.CustomEvent&&!He&&!hn?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 Zs(e){e.draggable=!1}function Zx(){qs=!1}function Qx(e,t,i){var n=pt(js(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&&Mr<c*r){if(!bn&&(yn===1?l>h+c*a/2:l<d-c*a/2)&&(bn=!0),bn)u=!0;else if(yn===1?l<h+Mr:l>d-Mr)return-yn}else if(l>h+c*(1-r)/2&&l<d-c*(1-r)/2)return e1(t)}return u=u||s,u&&(l<h+c*a/2||l>d-c*a/2)?l>h+c/2?1:-1:0}function e1(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 n1(e){Or.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&Or.push(n)}}function Pr(e){return setTimeout(e,0)}function Qs(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:Xd,is:function(t,i){return!!Ce(t,i,t,!1)},extend:jx,throttle:Jd,closest:Ce,toggleClass:ht,clone:Us,index:mt,nextTick:Pr,cancelNextTick:Qs,detectDirection:af,getChild:kr},W.get=function(e){return e[Lt]},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)),pn.mount(n)})},W.create=function(e,t){return new W(e,t)},W.version=Fx;var bt=[],Sn,to,eo=!1,io,no,Nr,Cn;function r1(){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)),cf(),Br(),Hx()},nulling:function(){Nr=to=Sn=eo=Cn=io=no=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(Nr=i,n||hn||He||zs){ro(i,this.options,o,n);var l=ii(o,!0);eo&&(!Cn||a!==io||s!==no)&&(Cn&&cf(),Cn=setInterval(function(){var c=ii(document.elementFromPoint(a,s),!0);c!==l&&(l=c,Br()),ro(i,r.options,c,n)},10),io=a,no=s)}else{if(!this.options.bubbleScroll||ii(o,!0)===Oe()){Br();return}ro(i,this.options,ii(o,!1),!1)}}},oe(e,{pluginName:"scroll",initializeByDefault:!0})}function Br(){bt.forEach(function(e){clearInterval(e.pid)}),bt=[]}function cf(){clearInterval(Cn)}var ro=Jd(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=Oe(),c=!1,h;to!==i&&(to=i,Br(),Sn=t.scroll,h=t.scrollFn,Sn===!0&&(Sn=ii(i,!0)));var d=0,u=Sn;do{var f=u,p=pt(f),m=p.top,v=p.bottom,C=p.left,x=p.right,E=p.width,_=p.height,T=void 0,O=void 0,Y=f.scrollWidth,R=f.scrollHeight,z=U(f),B=f.scrollLeft,L=f.scrollTop;f===l?(T=E<Y&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),O=_<R&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(T=E<Y&&(z.overflowX==="auto"||z.overflowX==="scroll"),O=_<R&&(z.overflowY==="auto"||z.overflowY==="scroll"));var it=T&&(Math.abs(x-r)<=s&&B+E<Y)-(Math.abs(C-r)<=s&&!!B),ot=O&&(Math.abs(v-a)<=s&&L+_<R)-(Math.abs(m-a)<=s&&!!L);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(Nr);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[Lt],g,k,e,Nr,bt[this.layer].el)!=="continue"||Zd(bt[this.layer].el,g,k)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&u!==l&&(u=ii(u,!1)));eo=c}},30),uf=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 ao(){}ao.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=kr(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:uf},oe(ao,{pluginName:"revertOnSpill"});function so(){}so.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:uf},oe(so,{pluginName:"removeOnSpill"});var le;function a1(){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(),s1(a,le),s.animateAll(),s!==n&&n.animateAll())},nulling:function(){le=null}},oe(e,{pluginName:"swap",eventProperties:function(){return{swapItem:le}}})}function s1(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=[],wn,xe,xn=!1,Jt=!1,Vi=!1,ut,$n,Fr;function o1(){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(Us(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&&(hf(!0,r),a("clone"),s())},showClone:function(i){var n=i.cloneNowShown,r=i.rootEl,a=i.cancel;!this.isMultiDrag||(hf(!1,r),qt.forEach(function(s){U(s,"display","")}),n(),Fr=!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(),Fr=!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&&Qd(s,a)}),Jt=!0,xn=!0}r.animateAll(function(){Jt=!1,xn=!1,n.options.animation&&q.forEach(function(s){Ks(s)}),n.options.sort&&Rr()})}},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}),Ks(o),o.fromRect=s,n.removeAnimationState(o)}),Jt=!1,l1(!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(),xn=!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&&(Qd(u,h),o.appendChild(u))}),Jt=!0}if(!r)if(Jt||Rr(),q.length>1){var d=Fr;s._showClone(n),s.options.animation&&!Fr&&d&&qt.forEach(function(u){s.addAnimationState({target:u,rect:$n}),u.fromRect=$n,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){$n=oe({},n);var s=vi(ut,!0);$n.top-=s.f,$n.left-=s.e}},dragOverAnimationComplete:function(){Jt&&(Jt=!1,Rr())},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),wn=null,mn({sortable:s,rootEl:r,name:"deselect",targetEl:ut,originalEvt:n});else{if(q.push(ut),mn({sortable:s,rootEl:r,name:"select",targetEl:ut,originalEvt:n}),n.shiftKey&&wn&&s.el.contains(wn)){var f=mt(wn),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]),mn({sortable:s,rootEl:r,name:"select",targetEl:u[v],originalEvt:n}))}}else wn=ut;xe=h}if(Vi&&this.isMultiDrag){if((a[Lt].options.sort||a!==r)&&q.length>1){var C=pt(ut),x=mt(ut,":not(."+this.options.selectedClass+")");if(!xn&&d.animation&&(ut.thisAnimationDuration=null),h.captureAnimationState(),!xn&&(d.animation&&(ut.fromRect=C,q.forEach(function(_){if(_.thisAnimationDuration=null,_!==ut){var T=Jt?pt(_):C;_.fromRect=T,h.addAnimationState({target:_,rect:T})}})),Rr(),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(_){Ks(_)}),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&&Ce(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(),mn({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[Lt];!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[Lt],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:Lx(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 l1(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 hf(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 Rr(){q.forEach(function(e){e!==ut&&e.parentNode&&e.parentNode.removeChild(e)})}W.mount(new r1),W.mount(so,ao);var c1=Object.freeze(Object.defineProperty({__proto__:null,default:W,MultiDrag:o1,Sortable:W,Swap:a1},Symbol.toStringTag,{value:"Module"})),u1=Np(c1);(function(e,t){(function(n,r){e.exports=r(u1)})(typeof self!="undefined"?self:Po,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",C="keys",x="values",E=function(){return this};n.exports=function(_,T,O,Y,R,z,B){d(O,T,Y);var L=function(w){if(!m&&w in k)return k[w];switch(w){case C:return function(){return new O(this,w)};case x:return function(){return new O(this,w)}}return function(){return new O(this,w)}},it=T+" Iterator",ot=R==x,V=!1,k=_.prototype,g=k[p]||k[v]||R&&k[R],I=g||L(R),D=R?ot?L("entries"):I:void 0,j=T=="Array"&&k.entries||g,H,S,y;if(j&&(y=f(j.call(new _)),y!==Object.prototype&&y.next&&(u(y,it,!0),!s&&typeof y[p]!="function"&&c(y,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:L(x),keys:z?I:L(C),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 C="ab".split(m);return C.length===2&&C[0]==="a"&&C[1]==="b"}();n.exports=function(m,v,C){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=C(c,x,""[m],function(B,L,it,ot,V){return L.exec===d?E&&!V?{done:!0,value:T.call(L,it,ot)}:{done:!0,value:B.call(it,L,ot)}:{done:!1}}),Y=O[0],R=O[1];s(String.prototype,m,Y),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 C=typeof m=="function";C&&(l(m,"name")||o(m,"name",p)),f[p]!==m&&(C&&(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=">",C;for(f.style.display="none",a("fab2").appendChild(f),f.src="javascript:",C=f.contentWindow.document,C.open(),C.write(m+"script"+v+"document.F=Object"+m+"/script"+v),C.close(),u=C.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,C,x,E,_;return u&&(x=new RegExp("^"+v.source+"$(?!\\s)",s.call(v))),d&&(C=v[h]),E=o.call(v,m),d&&E&&(v[h]=v.global?E.index+E[0].length:C),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,C=f&u.G,x=f&u.S,E=f&u.P,_=f&u.B,T=C?s:x?s[p]||(s[p]={}):(s[p]||{})[d],O=C?o:o[p]||(o[p]={}),Y=O[d]||(O[d]={}),R,z,B,L;C&&(m=p);for(R in m)z=!v&&T&&T[R]!==void 0,B=(z?T:m)[R],L=_&&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,L),E&&Y[R]!=B&&(Y[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,C=1,x=o.f,E=l.f;v>C;)for(var _=h(arguments[C++]),T=x?s(_).concat(x(_)):s(_),O=T.length,Y=0,R;O>Y;)E.call(_,R=T[Y++])&&(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,C=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),L=R==null?void 0:R[E];return L!==void 0?L.call(R,B,z):_.call(String(B),R,z)},function(Y,R){var z=T(_,Y,this,R);if(z.done)return z.value;var B=s(Y),L=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,L);if(g===null||(k.push(g),!ot))break;var I=String(g[0]);I===""&&(B.lastIndex=h(L,l(B.lastIndex),V))}for(var D="",j=0,H=0;H<k.length;H++){g=k[H];for(var S=String(g[0]),y=u(f(c(g.index),L.length),0),w=[],F=1;F<g.length;F++)w.push(C(g[F]));var K=g.groups;if(it){var X=[S].concat(w,y,L);K!==void 0&&X.push(K);var tt=String(R.apply(void 0,X))}else tt=O(S,L,y,w,K,R);y>=j&&(D+=L.slice(j,y)+tt,j=y+S.length)}return D+L.slice(j)}];function O(Y,R,z,B,L,it){var ot=z+Y.length,V=B.length,k=v;return L!==void 0&&(L=o(L),k=m),_.call(it,k,function(g,I){var D;switch(I.charAt(0)){case"$":return"$";case"&":return Y;case"`":return R.slice(0,z);case"'":return R.slice(ot);case"<":D=L[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},C=o(v),x=0;x<C.length;x++){var E=C[x],_=v[E],T=c[E],O=T&&T.prototype,Y;if(O&&(O[f]||h(O,f,m),O[p]||h(O,p,E),d[E]=m,_))for(Y in s)O[Y]||l(O,Y,s[Y],!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(C){var x=m[C];return x||(m[C]=p(C))}}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 C=v===0?p.children[0]:p.children[v-1].nextSibling;p.insertBefore(m,C)}}).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,y){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var w=[],F=!0,K=!1,X=void 0;try{for(var tt=S[Symbol.iterator](),ct;!(F=(ct=tt.next()).done)&&(w.push(ct.value),!(y&&w.length===y));F=!0);}catch(kt){K=!0,X=kt}finally{try{!F&&tt.return!=null&&tt.return()}finally{if(K)throw X}}return w}}function c(S,y){(y==null||y>S.length)&&(y=S.length);for(var w=0,F=new Array(y);w<y;w++)F[w]=S[w];return F}function h(S,y){if(!!S){if(typeof S=="string")return c(S,y);var w=Object.prototype.toString.call(S).slice(8,-1);if(w==="Object"&&S.constructor&&(w=S.constructor.name),w==="Map"||w==="Set")return Array.from(S);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return c(S,y)}}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,y){return o(S)||l(S,y)||h(S,y)||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 C=a("a352"),x=a.n(C),E=a("c649");function _(S,y,w){return w===void 0||(S=S||{},S[y]=w),S}function T(S,y){return S.map(function(w){return w.elm}).indexOf(y)}function O(S,y,w,F){if(!S)return[];var K=S.map(function(ct){return ct.elm}),X=y.length-F,tt=v(y).map(function(ct,kt){return kt>=X?K.length:K.indexOf(ct)});return w?tt.filter(function(ct){return ct!==-1}):tt}function Y(S,y){var w=this;this.$nextTick(function(){return w.$emit(S.toLowerCase(),y)})}function R(S){var y=this;return function(w){y.realList!==null&&y["onDrag"+S](w),Y.call(y,S,w)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function B(S){if(!S||S.length!==1)return!1;var y=u(S,1),w=y[0].componentOptions;return w?z(w.tag):!1}function L(S,y,w){return S[w]||(y[w]?y[w]():void 0)}function it(S,y,w){var F=0,K=0,X=L(y,w,"header");X&&(F=X.length,S=S?[].concat(v(X),v(S)):v(X));var tt=L(y,w,"footer");return tt&&(K=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:K}}function ot(S,y){var w=null,F=function(xt,Ae){w=_(w,xt,Ae)},K=Object.keys(S).filter(function(kt){return kt==="id"||kt.startsWith("data-")}).reduce(function(kt,xt){return kt[xt]=S[xt],kt},{});if(F("attrs",K),!y)return w;var X=y.on,tt=y.props,ct=y.attrs;return F("on",X),F("props",tt),Object.assign(w.attrs,ct),w}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(y){return y}},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(y){var w=this.$slots.default;this.transitionMode=B(w);var F=it(w,this.$slots,this.$scopedSlots),K=F.children,X=F.headerOffset,tt=F.footerOffset;this.headerOffset=X,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return y(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 y=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 w={};V.forEach(function(X){w["on"+X]=R.call(y,X)}),k.forEach(function(X){w["on"+X]=Y.bind(y,X)});var F=Object.keys(this.$attrs).reduce(function(X,tt){return X[Object(E.a)(tt)]=y.$attrs[tt],X},{}),K=Object.assign({},this.options,F,w,{onMove:function(tt,ct){return y.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(y){this.updateOptions(y)},deep:!0},$attrs:{handler:function(y){this.updateOptions(y)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var y=this._vnode.fnOptions;return y&&y.functional},getTag:function(){return this.tag||this.element},updateOptions:function(y){for(var w in y){var F=Object(E.a)(w);g.indexOf(F)===-1&&this._sortable.option(F,y[w])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var y=this.$slots.default;return this.transitionMode?y[0].child.$slots.default:y},computeIndexes:function(){var y=this;this.$nextTick(function(){y.visibleIndexes=O(y.getChildrenNodes(),y.rootContainer.children,y.transitionMode,y.footerOffset)})},getUnderlyingVm:function(y){var w=T(this.getChildrenNodes()||[],y);if(w===-1)return null;var F=this.realList[w];return{index:w,element:F}},getUnderlyingPotencialDraggableComponent:function(y){var w=y.__vue__;return!w||!w.$options||!z(w.$options._componentTag)?!("realList"in w)&&w.$children.length===1&&"realList"in w.$children[0]?w.$children[0]:w:w.$parent},emitChanges:function(y){var w=this;this.$nextTick(function(){w.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var w=v(this.value);y(w),this.$emit("input",w)},spliceList:function(){var y=arguments,w=function(K){return K.splice.apply(K,v(y))};this.alterList(w)},updatePosition:function(y,w){var F=function(X){return X.splice(w,0,X.splice(y,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(y){var w=y.to,F=y.related,K=this.getUnderlyingPotencialDraggableComponent(w);if(!K)return{component:K};var X=K.realList,tt={list:X,component:K};if(w!==F&&X&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(y){var w=this.visibleIndexes,F=w.length;return y>F-1?F:w[y]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(y){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var w=this.getChildrenNodes();w[y].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(y){this.context=this.getUnderlyingVm(y.item),y.item._underlying_vm_=this.clone(this.context.element),I=y.item},onDragAdd:function(y){var w=y.item._underlying_vm_;if(w!==void 0){Object(E.d)(y.item);var F=this.getVmIndex(y.newIndex);this.spliceList(F,0,w),this.computeIndexes();var K={element:w,newIndex:F};this.emitChanges({added:K})}},onDragRemove:function(y){if(Object(E.c)(this.rootContainer,y.item,y.oldIndex),y.pullMode==="clone"){Object(E.d)(y.clone);return}var w=this.context.index;this.spliceList(w,1);var F={element:this.context.element,oldIndex:w};this.resetTransitionData(w),this.emitChanges({removed:F})},onDragUpdate:function(y){Object(E.d)(y.item),Object(E.c)(y.from,y.item,y.oldIndex);var w=this.context.index,F=this.getVmIndex(y.newIndex);this.updatePosition(w,F);var K={element:this.context.element,oldIndex:w,newIndex:F};this.emitChanges({moved:K})},updateProperty:function(y,w){y.hasOwnProperty(w)&&(y[w]+=this.headerOffset)},computeFutureIndex:function(y,w){if(!y.element)return 0;var F=v(w.to.children).filter(function(ct){return ct.style.display!=="none"}),K=F.indexOf(w.related),X=y.component.getVmIndex(K),tt=F.indexOf(I)!==-1;return tt||!w.willInsertAfter?X:X+1},onDragMove:function(y,w){var F=this.move;if(!F||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(y),X=this.context,tt=this.computeFutureIndex(K,y);Object.assign(X,{futureIndex:tt});var ct=Object.assign({},y,{relatedContext:K,draggedContext:X});return F(ct,w)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var H=j;r.default=H}}).default})})(Hd);var h1=Pp(Hd.exports),d1=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)},f1=[];const p1={components:{tabbar:ti,MyApps:Vs,appsItem:ze,Draggable:h1},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;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&(e=e.find(r=>{var a;return r.extendProps&&((a=JSON.parse(r.extendProps))==null?void 0:a.mainMobile)=="1"}).children);let t=e.filter(n=>n.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){St("\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}}},df={};var m1=G(p1,d1,f1,!1,v1,null,null,null);function v1(e){for(let t in df)this[t]=df[t]}var oo=function(){return m1.exports}(),g1=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)},y1=[],RT="";const b1={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}}},ff={};var S1=G(b1,g1,y1,!1,C1,"1cee7da5",null,null);function C1(e){for(let t in ff)this[t]=ff[t]}var lo=function(){return S1.exports}(),w1=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)}})])}),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()])},x1=[];const $1={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){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},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})}}},pf={};var k1=G($1,w1,x1,!1,T1,null,null,null);function T1(e){for(let t in pf)this[t]=pf[t]}var co=function(){return k1.exports}(),_1=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)},I1=[];const E1={components:{tabbar:ti,appsItem:ze,myapp:co},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;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"&&(i=i.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let r=i.filter(a=>a.name===this.name);this.apps_menus=r[0].children,this.title=r[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((a,s)=>{this.$set(this.tabActiveKeys,s,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}}},mf={};var D1=G(E1,_1,I1,!1,M1,null,null,null);function M1(e){for(let t in mf)this[t]=mf[t]}var O1=function(){return D1.exports}(),A1=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)},L1=[];const P1={components:{tabbar:ti,appsItem:ze,myapp:co},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;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"&&(i=i.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let r=i.filter(a=>a.name===this.name);this.apps_menus=r[0].children,this.title=r[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((a,s)=>{this.$set(this.tabActiveKeys,s,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}}},vf={};var N1=G(P1,A1,L1,!1,B1,null,null,null);function B1(e){for(let t in vf)this[t]=vf[t]}var F1=function(){return N1.exports}(),R1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},V1=[];const z1={components:{abovelevelTwoOld:O1,abovelevelTwoNew:F1},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},gf={};var j1=G(z1,R1,V1,!1,H1,null,null,null);function H1(e){for(let t in gf)this[t]=gf[t]}var U1=function(){return j1.exports}(),K1=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)},W1=[];function uo(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 Y1={components:{tabbar:ti,appsItem:ze,myapp:co},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;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"&&(n=n.find(c=>{var h;return c.extendProps&&((h=JSON.parse(c.extendProps))==null?void 0:h.mainMobile)=="1"}).children);let a=n.filter(l=>l.name===this.name),s=a[0].children.map(l=>l.meta.title);this.titleList=["\u5168\u90E8",...s];const o=a[0].children.reduce((l,c)=>(l[c.meta.title]=c,l),{});this.allApps_menus={\u5168\u90E8:a[0].children,...o},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=uo(this.apps_menus),this.title=a[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=uo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=uo(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}}},yf={};var X1=G(Y1,K1,W1,!1,G1,null,null,null);function G1(e){for(let t in yf)this[t]=yf[t]}var q1=function(){return X1.exports}(),J1=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",style:{paddingLeft:e.expanded?"3px":"15px"},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)}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-new-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),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",{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()])},Z1=[];const Q1={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){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},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}},bf={};var t$=G(Q1,J1,Z1,!1,e$,null,null,null);function e$(e){for(let t in bf)this[t]=bf[t]}var i$=function(){return t$.exports}(),n$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-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-new-app-page"},[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"},[e._v("\u641C\u7D22")])]},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%",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 - 380px)":"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)}),0)])}),1)]),i("tabbar")],1)],1)},r$=[];function ho(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 a$={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:[]}},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;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"&&(n=n.find(c=>{var h;return c.extendProps&&((h=JSON.parse(c.extendProps))==null?void 0:h.mainMobile)=="1"}).children);let a=n.filter(l=>l.name===this.name),s=a[0].children.map(l=>l.meta.title);this.titleList=["\u5168\u90E8",...s];const o=a[0].children.reduce((l,c)=>(l[c.meta.title]=c,l),{});this.allApps_menus={\u5168\u90E8:a[0].children,...o},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=ho(this.apps_menus),this.title=a[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=ho(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=ho(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}}},Sf={};var s$=G(a$,n$,r$,!1,o$,null,null,null);function o$(e){for(let t in Sf)this[t]=Sf[t]}var l$=function(){return s$.exports}(),c$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},u$=[];const h$={components:{levelTwoOld:q1,levelTwoNew:l$},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},Cf={};var d$=G(h$,c$,u$,!1,f$,null,null,null);function f$(e){for(let t in Cf)this[t]=Cf[t]}var p$=function(){return d$.exports}(),m$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},v$=[];function wf(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=wf(n,t+1);r>i&&(i=r)}return i}function g$(e){let t=0;for(const i of e){const n=wf(i);n>t&&(t=n)}return t}const y$={components:{aboveleveltwo:U1,leveltwo:p$},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;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"&&(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.appsMenusExtended(this.apps_menus);const i=g$(this.apps_menus);this.depth=i},computed:{currentComponent(){var e,t;if(this.level=((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.theLevel)||3,this.depth=this.depth||4,this.level==2&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},xf={};var b$=G(y$,m$,v$,!1,S$,null,null,null);function S$(e){for(let t in xf)this[t]=xf[t]}var fo=function(){return b$.exports}(),C$=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..."))])])])])])},w$=[];const x$={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)}}},$f={};var $$=G(x$,C$,w$,!1,k$,null,null,null);function k$(e){for(let t in $f)this[t]=$f[t]}var kf=function(){return $$.exports}(),T$=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)},_$=[];const I$={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()}}},Tf={};var E$=G(I$,T$,_$,!1,D$,null,null,null);function D$(e){for(let t in Tf)this[t]=Tf[t]}var po=function(){return E$.exports}(),M$=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",attrs:{src:e.previewUrl,frameborder:"0"}}):i("div",{staticStyle:{width:"100%",height:"calc(100% - 46px)"},attrs:{id:"wps-preview-container"}})])],1)],1)},O$=[];function A$(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 L$={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=b.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:A$(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},isAndroidMiniProgram(){const e=navigator.userAgent,t=/Android/i.test(e),i=/miniProgram/i.test(e)||typeof wx!="undefined"&&wx.miniProgram;return t&&i},isIOSMiniProgram(){const e=navigator.userAgent,t=/iPhone|iPad|iPod/i.test(e),i=/miniProgram/i.test(e)||typeof wx!="undefined"&&wx.miniProgram;return t&&i},isH5(){return!this.isAndroidMiniProgram()&&!this.isIOSMiniProgram()},handleDownload(e){this.isAndroidMiniProgram()||this.isIOSMiniProgram()?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.pictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.docDownLoadApi}${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}},_f={};var P$=G(L$,M$,O$,!1,N$,null,null,null);function N$(e){for(let t in _f)this[t]=_f[t]}var If=function(){return P$.exports}(),B$=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("img",{attrs:{src:e.icon,alt:""}})]):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)])])])},F$=[];const R$={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"}}},Ef={};var V$=G(R$,B$,F$,!1,z$,null,null,null);function z$(e){for(let t in Ef)this[t]=Ef[t]}var Df=function(){return V$.exports}(),j$=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"},[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)])])},H$=[];const U$={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"}}},Mf={};var K$=G(U$,j$,H$,!1,W$,null,null,null);function W$(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return K$.exports}(),mo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:Qr,DatePicker:jo,Form:il,LoadMore:rl,User1:dl,BasicLayout:pl,EmptyLayout:$i,DetailView:gl,PageView:bl,PopupView:Cl,QueryView:xl,Login:Fs,Search:Ed,SelectPanel:Od,InputSelect:Ld,SelectBtn:Nd,User:Rs,Apps:oo,AppsEdit:lo,MyApps:Vs,AppsNew:fo,appItem:ze,tabbar:ti,LoadingPanel:kf,Setting:po,UploadFile:If,Card:Df,CardItem:Of},Symbol.toStringTag,{value:"Module"})),Af={install(e,{config:t}={}){e.prototype.$config=b.default.merge({},e.prototype.$config||{},t||M.config)}},Lf={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:b.default.cloneDeep(b.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)}}},Y$=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:Af,IndRouterPlugin:Lf},Symbol.toStringTag,{value:"Module"}));const Pf=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="")},Nf={bind:Pf,update:Pf};var vo=Object.freeze(Object.defineProperty({__proto__:null,permission:Nf},Symbol.toStringTag,{value:"Module"}));const Bf={name:Le.rootRouteName,path:"/",component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Le.homeRouteName,path:"home",meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},X$={name:Le.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:Fs},G$={name:"user",path:"/user",component:Rs,meta:{hideInMenu:!0,notCache:!0}},q$={name:"setting",path:"/setting",component:po,meta:{hideInMenu:!0,notCache:!0}},J$={name:"apps",path:"/apps",component:oo,meta:{hideInMenu:!0,notCache:!0}},Z$={name:"appsNew",path:"/appsNew",component:fo,meta:{hideInMenu:!0,notCache:!0}},Q$={name:"appsEdit",path:"/appsEdit",component:lo,meta:{hideInMenu:!0,notCache:!0}},tk={path:"/404",meta:{hideInMenu:!0},component:Ui};function ek({homeComponent:e,rootChildren:t}={}){const i=b.default.cloneDeep(Bf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[X$]:[];return[i,...n,G$,q$,J$,Q$,tk,Z$]}function ik({rootChildren:e}={}){const t=b.default.cloneDeep(Bf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const nk={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},Vr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Ff(e){return[Vr.DIRECTORY,Vr.MENU].includes(e)}function Rf(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 go({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 C=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(Ff(f)){let T={type:f,name:C,pid:d,path:Vf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:C},children:[],extendProps:v};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),Vr.DIRECTORY===f&&(T.component="EmptyLayout"),go({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(Vr.PAGE===f){let T={type:f,name:C,pid:d,path:Vf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),i.children.push(T)}}})}function Vf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function zf(e=[]){e=e.filter(i=>Ff(i.type));const t=[];return go({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function rk(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return go({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),yo(t)}function yo(e=[]){for(let t of e)if(t.component){const i=nk[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&&yo(t.children)}return e}var bo={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)}},ak=jf,Si=Object.prototype.toString;function So(e){return Si.call(e)==="[object Array]"}function Co(e){return typeof e=="undefined"}function sk(e){return e!==null&&!Co(e)&&e.constructor!==null&&!Co(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ok(e){return Si.call(e)==="[object ArrayBuffer]"}function lk(e){return typeof FormData!="undefined"&&e instanceof FormData}function ck(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function uk(e){return typeof e=="string"}function hk(e){return typeof e=="number"}function Hf(e){return e!==null&&typeof e=="object"}function zr(e){if(Si.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function dk(e){return Si.call(e)==="[object Date]"}function fk(e){return Si.call(e)==="[object File]"}function pk(e){return Si.call(e)==="[object Blob]"}function Uf(e){return Si.call(e)==="[object Function]"}function mk(e){return Hf(e)&&Uf(e.pipe)}function vk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function gk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function yk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function wo(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),So(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 xo(){var e={};function t(r,a){zr(e[a])&&zr(r)?e[a]=xo(e[a],r):zr(r)?e[a]=xo({},r):So(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)wo(arguments[i],t);return e}function bk(e,t,i){return wo(t,function(r,a){i&&typeof r=="function"?e[a]=ak(r,i):e[a]=r}),e}function Sk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:So,isArrayBuffer:ok,isBuffer:sk,isFormData:lk,isArrayBufferView:ck,isString:uk,isNumber:hk,isObject:Hf,isPlainObject:zr,isUndefined:Co,isDate:dk,isFile:fk,isBlob:pk,isFunction:Uf,isStream:mk,isURLSearchParams:vk,isStandardBrowserEnv:yk,forEach:wo,merge:xo,extend:bk,trim:gk,stripBOM:Sk},zi=Zt;function Kf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Wf=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(Kf(c)+"="+Kf(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Ck=Zt;function jr(){this.handlers=[]}jr.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},jr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},jr.prototype.forEach=function(t){Ck.forEach(this.handlers,function(n){n!==null&&t(n)})};var wk=jr,xk=Zt,$k=function(t,i){xk.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},Yf=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},kk=Yf,Xf=function(t,i,n,r,a){var s=new Error(t);return kk(s,i,n,r,a)},Tk=Xf,_k=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(Tk("Request failed with status code "+n.status,n.config,null,n.request,n))},Hr=Zt,Ik=Hr.isStandardBrowserEnv()?function(){return{write:function(i,n,r,a,s,o){var l=[];l.push(i+"="+encodeURIComponent(n)),Hr.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Hr.isString(a)&&l.push("path="+a),Hr.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(){}}}(),Ek=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},Dk=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},Mk=Ek,Ok=Dk,Ak=function(t,i){return t&&!Mk(i)?Ok(t,i):i},$o=Zt,Lk=["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"],Pk=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 C=a("a352"),x=a.n(C),E=a("c649");function _(S,y,w){return w===void 0||(S=S||{},S[y]=w),S}function T(S,y){return S.map(function(w){return w.elm}).indexOf(y)}function O(S,y,w,F){if(!S)return[];var K=S.map(function(ct){return ct.elm}),X=y.length-F,tt=v(y).map(function(ct,kt){return kt>=X?K.length:K.indexOf(ct)});return w?tt.filter(function(ct){return ct!==-1}):tt}function Y(S,y){var w=this;this.$nextTick(function(){return w.$emit(S.toLowerCase(),y)})}function R(S){var y=this;return function(w){y.realList!==null&&y["onDrag"+S](w),Y.call(y,S,w)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function B(S){if(!S||S.length!==1)return!1;var y=u(S,1),w=y[0].componentOptions;return w?z(w.tag):!1}function L(S,y,w){return S[w]||(y[w]?y[w]():void 0)}function it(S,y,w){var F=0,K=0,X=L(y,w,"header");X&&(F=X.length,S=S?[].concat(v(X),v(S)):v(X));var tt=L(y,w,"footer");return tt&&(K=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:K}}function ot(S,y){var w=null,F=function(xt,Ae){w=_(w,xt,Ae)},K=Object.keys(S).filter(function(kt){return kt==="id"||kt.startsWith("data-")}).reduce(function(kt,xt){return kt[xt]=S[xt],kt},{});if(F("attrs",K),!y)return w;var X=y.on,tt=y.props,ct=y.attrs;return F("on",X),F("props",tt),Object.assign(w.attrs,ct),w}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(y){return y}},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(y){var w=this.$slots.default;this.transitionMode=B(w);var F=it(w,this.$slots,this.$scopedSlots),K=F.children,X=F.headerOffset,tt=F.footerOffset;this.headerOffset=X,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return y(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 y=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 w={};V.forEach(function(X){w["on"+X]=R.call(y,X)}),k.forEach(function(X){w["on"+X]=Y.bind(y,X)});var F=Object.keys(this.$attrs).reduce(function(X,tt){return X[Object(E.a)(tt)]=y.$attrs[tt],X},{}),K=Object.assign({},this.options,F,w,{onMove:function(tt,ct){return y.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(y){this.updateOptions(y)},deep:!0},$attrs:{handler:function(y){this.updateOptions(y)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var y=this._vnode.fnOptions;return y&&y.functional},getTag:function(){return this.tag||this.element},updateOptions:function(y){for(var w in y){var F=Object(E.a)(w);g.indexOf(F)===-1&&this._sortable.option(F,y[w])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var y=this.$slots.default;return this.transitionMode?y[0].child.$slots.default:y},computeIndexes:function(){var y=this;this.$nextTick(function(){y.visibleIndexes=O(y.getChildrenNodes(),y.rootContainer.children,y.transitionMode,y.footerOffset)})},getUnderlyingVm:function(y){var w=T(this.getChildrenNodes()||[],y);if(w===-1)return null;var F=this.realList[w];return{index:w,element:F}},getUnderlyingPotencialDraggableComponent:function(y){var w=y.__vue__;return!w||!w.$options||!z(w.$options._componentTag)?!("realList"in w)&&w.$children.length===1&&"realList"in w.$children[0]?w.$children[0]:w:w.$parent},emitChanges:function(y){var w=this;this.$nextTick(function(){w.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var w=v(this.value);y(w),this.$emit("input",w)},spliceList:function(){var y=arguments,w=function(K){return K.splice.apply(K,v(y))};this.alterList(w)},updatePosition:function(y,w){var F=function(X){return X.splice(w,0,X.splice(y,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(y){var w=y.to,F=y.related,K=this.getUnderlyingPotencialDraggableComponent(w);if(!K)return{component:K};var X=K.realList,tt={list:X,component:K};if(w!==F&&X&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(y){var w=this.visibleIndexes,F=w.length;return y>F-1?F:w[y]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(y){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var w=this.getChildrenNodes();w[y].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(y){this.context=this.getUnderlyingVm(y.item),y.item._underlying_vm_=this.clone(this.context.element),I=y.item},onDragAdd:function(y){var w=y.item._underlying_vm_;if(w!==void 0){Object(E.d)(y.item);var F=this.getVmIndex(y.newIndex);this.spliceList(F,0,w),this.computeIndexes();var K={element:w,newIndex:F};this.emitChanges({added:K})}},onDragRemove:function(y){if(Object(E.c)(this.rootContainer,y.item,y.oldIndex),y.pullMode==="clone"){Object(E.d)(y.clone);return}var w=this.context.index;this.spliceList(w,1);var F={element:this.context.element,oldIndex:w};this.resetTransitionData(w),this.emitChanges({removed:F})},onDragUpdate:function(y){Object(E.d)(y.item),Object(E.c)(y.from,y.item,y.oldIndex);var w=this.context.index,F=this.getVmIndex(y.newIndex);this.updatePosition(w,F);var K={element:this.context.element,oldIndex:w,newIndex:F};this.emitChanges({moved:K})},updateProperty:function(y,w){y.hasOwnProperty(w)&&(y[w]+=this.headerOffset)},computeFutureIndex:function(y,w){if(!y.element)return 0;var F=v(w.to.children).filter(function(ct){return ct.style.display!=="none"}),K=F.indexOf(w.related),X=y.component.getVmIndex(K),tt=F.indexOf(I)!==-1;return tt||!w.willInsertAfter?X:X+1},onDragMove:function(y,w){var F=this.move;if(!F||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(y),X=this.context,tt=this.computeFutureIndex(K,y);Object.assign(X,{futureIndex:tt});var ct=Object.assign({},y,{relatedContext:K,draggedContext:X});return F(ct,w)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var H=j;r.default=H}}).default})})(Hd);var h1=Pp(Hd.exports),d1=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)},f1=[];const p1={components:{tabbar:ti,MyApps:Vs,appsItem:ze,Draggable:h1},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;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&(e=e.find(r=>{var a;return r.extendProps&&((a=JSON.parse(r.extendProps))==null?void 0:a.mainMobile)=="1"}).children);let t=e.filter(n=>n.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){St("\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}}},df={};var m1=G(p1,d1,f1,!1,v1,null,null,null);function v1(e){for(let t in df)this[t]=df[t]}var oo=function(){return m1.exports}(),g1=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)},y1=[],RT="";const b1={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}}},ff={};var S1=G(b1,g1,y1,!1,C1,"1cee7da5",null,null);function C1(e){for(let t in ff)this[t]=ff[t]}var lo=function(){return S1.exports}(),w1=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)}})])}),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()])},x1=[];const $1={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){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},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})}}},pf={};var k1=G($1,w1,x1,!1,T1,null,null,null);function T1(e){for(let t in pf)this[t]=pf[t]}var co=function(){return k1.exports}(),_1=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)},I1=[];const E1={components:{tabbar:ti,appsItem:ze,myapp:co},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;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"&&(i=i.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let r=i.filter(a=>a.name===this.name);this.apps_menus=r[0].children,this.title=r[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((a,s)=>{this.$set(this.tabActiveKeys,s,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}}},mf={};var D1=G(E1,_1,I1,!1,M1,null,null,null);function M1(e){for(let t in mf)this[t]=mf[t]}var O1=function(){return D1.exports}(),A1=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)},L1=[];const P1={components:{tabbar:ti,appsItem:ze,myapp:co},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;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"&&(i=i.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let r=i.filter(a=>a.name===this.name);this.apps_menus=r[0].children,this.title=r[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((a,s)=>{this.$set(this.tabActiveKeys,s,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}}},vf={};var N1=G(P1,A1,L1,!1,B1,null,null,null);function B1(e){for(let t in vf)this[t]=vf[t]}var F1=function(){return N1.exports}(),R1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},V1=[];const z1={components:{abovelevelTwoOld:O1,abovelevelTwoNew:F1},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},gf={};var j1=G(z1,R1,V1,!1,H1,null,null,null);function H1(e){for(let t in gf)this[t]=gf[t]}var U1=function(){return j1.exports}(),K1=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)},W1=[];function uo(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 Y1={components:{tabbar:ti,appsItem:ze,myapp:co},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;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"&&(n=n.find(c=>{var h;return c.extendProps&&((h=JSON.parse(c.extendProps))==null?void 0:h.mainMobile)=="1"}).children);let a=n.filter(l=>l.name===this.name),s=a[0].children.map(l=>l.meta.title);this.titleList=["\u5168\u90E8",...s];const o=a[0].children.reduce((l,c)=>(l[c.meta.title]=c,l),{});this.allApps_menus={\u5168\u90E8:a[0].children,...o},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=uo(this.apps_menus),this.title=a[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=uo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=uo(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}}},yf={};var X1=G(Y1,K1,W1,!1,G1,null,null,null);function G1(e){for(let t in yf)this[t]=yf[t]}var q1=function(){return X1.exports}(),J1=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",style:{paddingLeft:e.expanded?"3px":"15px"},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)}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-new-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),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",{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()])},Z1=[];const Q1={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){const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},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}},bf={};var t$=G(Q1,J1,Z1,!1,e$,null,null,null);function e$(e){for(let t in bf)this[t]=bf[t]}var i$=function(){return t$.exports}(),n$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-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-new-app-page"},[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"},[e._v("\u641C\u7D22")])]},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%",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 - 380px)":"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)}),0)])}),1)]),i("tabbar")],1)],1)},r$=[];function ho(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 a$={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:[]}},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;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"&&(n=n.find(c=>{var h;return c.extendProps&&((h=JSON.parse(c.extendProps))==null?void 0:h.mainMobile)=="1"}).children);let a=n.filter(l=>l.name===this.name),s=a[0].children.map(l=>l.meta.title);this.titleList=["\u5168\u90E8",...s];const o=a[0].children.reduce((l,c)=>(l[c.meta.title]=c,l),{});this.allApps_menus={\u5168\u90E8:a[0].children,...o},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=ho(this.apps_menus),this.title=a[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=ho(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=ho(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}}},Sf={};var s$=G(a$,n$,r$,!1,o$,null,null,null);function o$(e){for(let t in Sf)this[t]=Sf[t]}var l$=function(){return s$.exports}(),c$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},u$=[];const h$={components:{levelTwoOld:q1,levelTwoNew:l$},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},Cf={};var d$=G(h$,c$,u$,!1,f$,null,null,null);function f$(e){for(let t in Cf)this[t]=Cf[t]}var p$=function(){return d$.exports}(),m$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},v$=[];function wf(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=wf(n,t+1);r>i&&(i=r)}return i}function g$(e){let t=0;for(const i of e){const n=wf(i);n>t&&(t=n)}return t}const y$={components:{aboveleveltwo:U1,leveltwo:p$},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;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"&&(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.appsMenusExtended(this.apps_menus);const i=g$(this.apps_menus);this.depth=i},computed:{currentComponent(){var e,t;if(this.level=((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.theLevel)||3,this.depth=this.depth||4,this.level==2&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},xf={};var b$=G(y$,m$,v$,!1,S$,null,null,null);function S$(e){for(let t in xf)this[t]=xf[t]}var fo=function(){return b$.exports}(),C$=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..."))])])])])])},w$=[];const x$={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)}}},$f={};var $$=G(x$,C$,w$,!1,k$,null,null,null);function k$(e){for(let t in $f)this[t]=$f[t]}var kf=function(){return $$.exports}(),T$=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)},_$=[];const I$={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()}}},Tf={};var E$=G(I$,T$,_$,!1,D$,null,null,null);function D$(e){for(let t in Tf)this[t]=Tf[t]}var po=function(){return E$.exports}(),M$=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",attrs:{src:e.previewUrl,frameborder:"0"}}):i("div",{staticStyle:{width:"100%",height:"calc(100% - 46px)"},attrs:{id:"wps-preview-container"}})])],1)],1)},O$=[];function A$(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 L$={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=b.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:A$(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.pictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.docDownLoadApi}${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}},_f={};var P$=G(L$,M$,O$,!1,N$,null,null,null);function N$(e){for(let t in _f)this[t]=_f[t]}var If=function(){return P$.exports}(),B$=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("img",{attrs:{src:e.icon,alt:""}})]):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)])])])},F$=[];const R$={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"}}},Ef={};var V$=G(R$,B$,F$,!1,z$,null,null,null);function z$(e){for(let t in Ef)this[t]=Ef[t]}var Df=function(){return V$.exports}(),j$=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"},[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)])])},H$=[];const U$={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"}}},Mf={};var K$=G(U$,j$,H$,!1,W$,null,null,null);function W$(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return K$.exports}(),mo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:Qr,DatePicker:jo,Form:il,LoadMore:rl,User1:dl,BasicLayout:pl,EmptyLayout:$i,DetailView:gl,PageView:bl,PopupView:Cl,QueryView:xl,Login:Fs,Search:Ed,SelectPanel:Od,InputSelect:Ld,SelectBtn:Nd,User:Rs,Apps:oo,AppsEdit:lo,MyApps:Vs,AppsNew:fo,appItem:ze,tabbar:ti,LoadingPanel:kf,Setting:po,UploadFile:If,Card:Df,CardItem:Of},Symbol.toStringTag,{value:"Module"})),Af={install(e,{config:t}={}){e.prototype.$config=b.default.merge({},e.prototype.$config||{},t||M.config)}},Lf={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:b.default.cloneDeep(b.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)}}},Y$=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:Af,IndRouterPlugin:Lf},Symbol.toStringTag,{value:"Module"}));const Pf=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="")},Nf={bind:Pf,update:Pf};var vo=Object.freeze(Object.defineProperty({__proto__:null,permission:Nf},Symbol.toStringTag,{value:"Module"}));const Bf={name:Le.rootRouteName,path:"/",component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Le.homeRouteName,path:"home",meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},X$={name:Le.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:Fs},G$={name:"user",path:"/user",component:Rs,meta:{hideInMenu:!0,notCache:!0}},q$={name:"setting",path:"/setting",component:po,meta:{hideInMenu:!0,notCache:!0}},J$={name:"apps",path:"/apps",component:oo,meta:{hideInMenu:!0,notCache:!0}},Z$={name:"appsNew",path:"/appsNew",component:fo,meta:{hideInMenu:!0,notCache:!0}},Q$={name:"appsEdit",path:"/appsEdit",component:lo,meta:{hideInMenu:!0,notCache:!0}},tk={path:"/404",meta:{hideInMenu:!0},component:Ui};function ek({homeComponent:e,rootChildren:t}={}){const i=b.default.cloneDeep(Bf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[X$]:[];return[i,...n,G$,q$,J$,Q$,tk,Z$]}function ik({rootChildren:e}={}){const t=b.default.cloneDeep(Bf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const nk={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},Vr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Ff(e){return[Vr.DIRECTORY,Vr.MENU].includes(e)}function Rf(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 go({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 C=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(Ff(f)){let T={type:f,name:C,pid:d,path:Vf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:C},children:[],extendProps:v};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),Vr.DIRECTORY===f&&(T.component="EmptyLayout"),go({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(Vr.PAGE===f){let T={type:f,name:C,pid:d,path:Vf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),i.children.push(T)}}})}function Vf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function zf(e=[]){e=e.filter(i=>Ff(i.type));const t=[];return go({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function rk(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return go({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),yo(t)}function yo(e=[]){for(let t of e)if(t.component){const i=nk[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&&yo(t.children)}return e}var bo={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)}},ak=jf,Si=Object.prototype.toString;function So(e){return Si.call(e)==="[object Array]"}function Co(e){return typeof e=="undefined"}function sk(e){return e!==null&&!Co(e)&&e.constructor!==null&&!Co(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ok(e){return Si.call(e)==="[object ArrayBuffer]"}function lk(e){return typeof FormData!="undefined"&&e instanceof FormData}function ck(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function uk(e){return typeof e=="string"}function hk(e){return typeof e=="number"}function Hf(e){return e!==null&&typeof e=="object"}function zr(e){if(Si.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function dk(e){return Si.call(e)==="[object Date]"}function fk(e){return Si.call(e)==="[object File]"}function pk(e){return Si.call(e)==="[object Blob]"}function Uf(e){return Si.call(e)==="[object Function]"}function mk(e){return Hf(e)&&Uf(e.pipe)}function vk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function gk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function yk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function wo(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),So(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 xo(){var e={};function t(r,a){zr(e[a])&&zr(r)?e[a]=xo(e[a],r):zr(r)?e[a]=xo({},r):So(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)wo(arguments[i],t);return e}function bk(e,t,i){return wo(t,function(r,a){i&&typeof r=="function"?e[a]=ak(r,i):e[a]=r}),e}function Sk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:So,isArrayBuffer:ok,isBuffer:sk,isFormData:lk,isArrayBufferView:ck,isString:uk,isNumber:hk,isObject:Hf,isPlainObject:zr,isUndefined:Co,isDate:dk,isFile:fk,isBlob:pk,isFunction:Uf,isStream:mk,isURLSearchParams:vk,isStandardBrowserEnv:yk,forEach:wo,merge:xo,extend:bk,trim:gk,stripBOM:Sk},zi=Zt;function Kf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Wf=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(Kf(c)+"="+Kf(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Ck=Zt;function jr(){this.handlers=[]}jr.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},jr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},jr.prototype.forEach=function(t){Ck.forEach(this.handlers,function(n){n!==null&&t(n)})};var wk=jr,xk=Zt,$k=function(t,i){xk.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},Yf=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},kk=Yf,Xf=function(t,i,n,r,a){var s=new Error(t);return kk(s,i,n,r,a)},Tk=Xf,_k=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(Tk("Request failed with status code "+n.status,n.config,null,n.request,n))},Hr=Zt,Ik=Hr.isStandardBrowserEnv()?function(){return{write:function(i,n,r,a,s,o){var l=[];l.push(i+"="+encodeURIComponent(n)),Hr.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Hr.isString(a)&&l.push("path="+a),Hr.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(){}}}(),Ek=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},Dk=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},Mk=Ek,Ok=Dk,Ak=function(t,i){return t&&!Mk(i)?Ok(t,i):i},$o=Zt,Lk=["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"],Pk=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]&&Lk.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([r]):i[n]=i[n]?i[n]+", "+r:r}}),i},Gf=Zt,Nk=Gf.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=Gf.isString(s)?r(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),Ur=Zt,Bk=_k,Fk=Ik,Rk=Wf,Vk=Ak,zk=Pk,jk=Nk,ko=Xf,qf=function(t){return new Promise(function(n,r){var a=t.data,s=t.headers,o=t.responseType;Ur.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=Vk(t.baseURL,t.url);l.open(t.method.toUpperCase(),Rk(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!!l){var p="getAllResponseHeaders"in l?zk(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};Bk(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(ko("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(ko("Network Error",t,null,l)),l=null},l.ontimeout=function(){var m="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(ko(m,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},Ur.isStandardBrowserEnv()){var f=(t.withCredentials||jk(d))&&t.xsrfCookieName?Fk.read(t.xsrfCookieName):void 0;f&&(s[t.xsrfHeaderName]=f)}"setRequestHeader"in l&&Ur.forEach(s,function(m,v){typeof a=="undefined"&&v.toLowerCase()==="content-type"?delete s[v]:l.setRequestHeader(v,m)}),Ur.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)})},Mt=Zt,Jf=$k,Hk=Yf,Uk={"Content-Type":"application/x-www-form-urlencoded"};function Zf(e,t){!Mt.isUndefined(e)&&Mt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Kk(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=qf),e}function Wk(e,t,i){if(Mt.isString(e))try{return(t||JSON.parse)(e),Mt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}var Kr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Kk(),transformRequest:[function(t,i){return Jf(i,"Accept"),Jf(i,"Content-Type"),Mt.isFormData(t)||Mt.isArrayBuffer(t)||Mt.isBuffer(t)||Mt.isStream(t)||Mt.isFile(t)||Mt.isBlob(t)?t:Mt.isArrayBufferView(t)?t.buffer:Mt.isURLSearchParams(t)?(Zf(i,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Mt.isObject(t)||i&&i["Content-Type"]==="application/json"?(Zf(i,"application/json"),Wk(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&&Mt.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Hk(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}};Kr.headers={common:{Accept:"application/json, text/plain, */*"}},Mt.forEach(["delete","get","head"],function(t){Kr.headers[t]={}}),Mt.forEach(["post","put","patch"],function(t){Kr.headers[t]=Mt.merge(Uk)});var To=Kr,Yk=Zt,Xk=To,Gk=function(t,i,n){var r=this||Xk;return Yk.forEach(n,function(s){t=s.call(r,t,i)}),t},Qf=function(t){return!!(t&&t.__CANCEL__)},tp=Zt,_o=Gk,qk=Qf,Jk=To;function Io(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Zk=function(t){Io(t),t.headers=t.headers||{},t.data=_o.call(t,t.data,t.headers,t.transformRequest),t.headers=tp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),tp.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var i=t.adapter||Jk.adapter;return i(t).then(function(r){return Io(t),r.data=_o.call(t,r.data,r.headers,t.transformResponse),r},function(r){return qk(r)||(Io(t),r&&r.response&&(r.response.data=_o.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Nt=Zt,ep=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 Nt.isPlainObject(u)&&Nt.isPlainObject(f)?Nt.merge(u,f):Nt.isPlainObject(f)?Nt.merge({},f):Nt.isArray(f)?f.slice():f}function c(u){Nt.isUndefined(i[u])?Nt.isUndefined(t[u])||(n[u]=l(void 0,t[u])):n[u]=l(t[u],i[u])}Nt.forEach(r,function(f){Nt.isUndefined(i[f])||(n[f]=l(void 0,i[f]))}),Nt.forEach(a,c),Nt.forEach(s,function(f){Nt.isUndefined(i[f])?Nt.isUndefined(t[f])||(n[f]=l(void 0,t[f])):n[f]=l(void 0,i[f])}),Nt.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 Nt.forEach(d,c),n},Qk={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"}]},ip=Qk,Eo={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Eo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var np={},tT=ip.version.split(".");function rp(e,t){for(var i=t?t.split("."):tT,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}Eo.transitional=function(t,i,n){var r=i&&rp(i);function a(s,o){return"[Axios v"+ip.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&&!np[o]&&(np[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 eT(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 iT={isOlderVersion:rp,assertOptions:eT,validators:Eo},ap=Zt,nT=Wf,sp=wk,op=Zk,Wr=ep,lp=iT,ji=lp.validators;function kn(e){this.defaults=e,this.interceptors={request:new sp,response:new sp}}kn.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Wr(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&&lp.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=[op,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=op(l)}catch(d){return Promise.reject(d)}for(;a.length;)s=s.then(a.shift(),a.shift());return s},kn.prototype.getUri=function(t){return t=Wr(this.defaults,t),nT(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},ap.forEach(["delete","get","head","options"],function(t){kn.prototype[t]=function(i,n){return this.request(Wr(n||{},{method:t,url:i,data:(n||{}).data}))}}),ap.forEach(["post","put","patch"],function(t){kn.prototype[t]=function(i,n,r){return this.request(Wr(r||{},{method:t,url:i,data:n}))}});var rT=kn;function Do(e){this.message=e}Do.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Do.prototype.__CANCEL__=!0;var cp=Do,aT=cp;function Yr(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 aT(r),t(i.reason))})}Yr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Yr.source=function(){var t,i=new Yr(function(r){t=r});return{token:i,cancel:t}};var sT=Yr,oT=function(t){return function(n){return t.apply(null,n)}},lT=function(t){return typeof t=="object"&&t.isAxiosError===!0},up=Zt,cT=jf,Xr=rT,uT=ep,hT=To;function hp(e){var t=new Xr(e),i=cT(Xr.prototype.request,t);return up.extend(i,Xr.prototype,t),up.extend(i,t),i}var $e=hp(hT);$e.Axios=Xr,$e.create=function(t){return hp(uT($e.defaults,t))},$e.Cancel=cp,$e.CancelToken=sT,$e.isCancel=Qf,$e.all=function(t){return Promise.all(t)},$e.spread=oT,$e.isAxiosError=lT,bo.exports=$e,bo.exports.default=$e;var dT=bo.exports;const Gr=location.pathname.includes("scyxweb"),fT=navigator.userAgent.toLowerCase(),pT=!!/wxwork/.test(fT),dp={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 mT({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 C=window.location.href,x=new URL(C),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=b.default.cloneDeep(r);const c=Rf(i,s),h=rk(c);console.log("dynamicROuters",h);const d=e.options.routes.find(C=>C.path==="/");for(const C of h)e.addRoute(d.name,C),d.children.push(C);const f=Rf(i,n).filter(C=>e.options.routes.findIndex(x=>C.name===x.name)===-1);f.forEach(C=>{C.component=C.name,C.meta={hideInMenu:!0,title:C.label,activeName:C.name}});const p=yo(f);for(const C of p)e.addRoute(Le.rootRouteName,C)}function vT({router:e,store:t,microType:i,allowPermissionList:n}){Zo();const r=Le.loginRouteName,a=b.default.cloneDeep(e.options);window.sessionNotValidHandler=async function(){if(typeof window.Code!="undefined"||Gr){try{await pp(t)}catch(s){if(console.log("pluginLogin e",s),Gr)if(pT)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);if(p&&p.length>1&&c!==p[1]&&(c=p[1],t.dispatch("loginSuccess",c)),!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 mT({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:a}),console.log("router1");const C=getQueryVariable("state");let x={};!!C&&C!="null"?(x=JSON.parse(decodeURIComponent(decodeURIComponent(C))),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 pp(t),t.dispatch("loginSuccess",c),c}catch(p){return console.log("tryPluginLogin error",p),!1}}const f=getQueryVariable("code");typeof window.Code!="undefined"||f||Gr?c?await mp()?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 mp()?await d():await u()?await d():console.log("router9"))}),e.afterEach(s=>{ke.LoadingBar.finish(),window.scrollTo(0,0)})}let fp={};const pp=e=>{let t=getQueryVariable("code"),i=fp[t];return i?(console.log("\u91CD\u590D\u4F7F\u7528\u4E86code\u521B\u5EFA\u4F1A\u8BDD\uFF01"),i):(i=fp[t]=new Promise((n,r)=>{if(sessionStorage.removeItem("lambo-token"),sessionStorage.removeItem("sso_token"),sessionStorage.removeItem("userInfo"),localStorage.removeItem("v8-token"),localStorage.removeItem("userId"),localStorage.removeItem("userInfo"),dp.set("lambo-sso-key","",1),dp.set("TOKEN_KEY","",1),e.commit("setUserName",""),e.commit("setToken",""),Gr){let a=location.protocol+"//"+location.host+"/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";M.axios.get(a).then(async s=>{M.setToken(s.token),n(s.token),localStorage.setItem("v8-token",s.token),sessionStorage.setItem("lambo-token",s.token)}).catch(s=>{console.log("\u83B7\u53D6token\u5F02\u5E38",s),r(0)})}else console.log("1111`111"),t?M.axios.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code="+t).then(async a=>{M.setToken(a.token),n(a.token)}).catch(a=>{console.log("\u83B7\u53D6token\u5F02\u5E38",a),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}),r(0)}):(Code.postMessage(""),window.getCode=function(a){console.log("getCode res",a),M.axios.get("/ind-uc-ext-server/sso/ssoAppLogin?code="+a).then(async s=>{M.setToken(s.token),n(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}),r(0)})})}),i)};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 mp=async()=>{var e,t;if(localStorage.getItem("whoisyourdaddy")=="1")return Promise.resolve(!0);try{let i=M.getToken();const n=await dT.get(`${Le.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}},gT={mode:"history",base:"ind-mobile"};var yT={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 vp=location.pathname.includes("scyxweb");function bT(e){return M.axios.get(`${location.protocol}//${location.host}${vp?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,{params:e})}function ST(e){return M.axios.post(`${location.protocol}//${location.host}${vp?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,e)}const{homeRouteName:qr}=Le,CT=(e,t,i)=>{const n=Go(e.tagNavList,i);e.tagNavList=e.tagNavList.filter(r=>!Ki(r,i)),t.push(n)};var wT={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=En(i,qr)},setBreadCrumb(e,t){e.breadCrumbList=Yo(t,e.homeRoute)},setTagNavList(e,t){let i=[];t?i=[...t]:i=Xo()||[];let n=i.findIndex(r=>r.name===qr);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!==qr&&i.shift(),n>0){let r=i.splice(n,1)[0];i.unshift(r)}e.tagNavList=i,ea([...i])},closeTag(e,{$router:t,route:i}){let n=e.tagNavList.filter(r=>Ki(r,i));i=n[0]?n[0]:null,i&&CT(e,t,i)},addTag(e,{route:t,type:i="unshift"}){let n=Ko(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===qr?e.tagNavList.unshift(n):e.tagNavList.splice(1,e.tagNavList.length>=e.maxTabNum?1:0,n),ea([...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),Ci(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",zf(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",zf(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 ST(t)}catch(i){console.error("saveMyAppsList:",i)}},async getMyAppsList({commit:e},t){try{let{data:i}=await bT(t);i=i||"[]",e("setMyAppsList",i)}catch(i){console.error("getMyAppsList:",i)}}}};const xT={modules:{user:yT,app:wT}},Jr=function(e,t={theme:""}){var r;if(Jr.installed)return;const i=t.theme||Yi();let n=t.config||{};if(b.default.isEmpty(n)||b.default.forEach(n,(a,s)=>{M.setConfig(s,a)}),Ci(i),location.pathname.includes("scyxweb")){let a=location.protocol+"//"+location.host+"/hbwebchat/scyxweb/ind-mobile/manage/global?t="+new Date().getTime();M.axios.get(a).then(s=>{e.prototype.$config=b.default.merge({},e.prototype.$config||{},s)})}(r=e.prototype.$config)!=null&&r.systemDefaultConfig?console.log("\u4F7F\u7528\u5DF2\u7F13\u5B58\u7684\u914D\u7F6E",e.prototype.$config):M.axios.get("/user-manage-server/anon/system/qrySystemConfig",{params:{deviceType:"11"}}).then(a=>{var s;try{const o=JSON.parse(((s=a==null?void 0:a.data)==null?void 0:s.settingInfo)||"{}");if((o==null?void 0:o.systemDefaultConfig)&&o.systemDefaultConfig.extPropsList&&Array.isArray(o.systemDefaultConfig.extPropsList)){const l={};o.systemDefaultConfig.extPropsList.forEach(c=>{(c==null?void 0:c.key)&&c.value!==void 0&&(o.systemDefaultConfig.hasOwnProperty(c.key)&&console.warn(`\u914D\u7F6E\u952E\u540D ${c.key} \u91CD\u590D\uFF0C\u539F\u503C\u88AB\u8986\u76D6`,{oldValue:o.systemDefaultConfig[c.key],newValue:c.value}),l[c.key]=c.value)}),o.systemDefaultConfig={...o.systemDefaultConfig,...l}}e.prototype.$config=b.default.merge({},e.prototype.$config||{},o),console.log("\u7CFB\u7EDF\u914D\u7F6E\u5DF2\u52A0\u8F7D",e.prototype.$config),setTimeout(()=>{o.systemDefaultConfig.changeUI=="1"&&Ci(i+" "+o.systemDefaultConfig.theme)},0)}catch(o){console.error("\u89E3\u6790 settingInfo \u5931\u8D25:",o)}}).catch(a=>{console.error("\u8BF7\u6C42\u5931\u8D25:",a)}),Object.keys(mo).forEach(a=>{e.component(`IndM${a}`,mo[a])}),Object.keys(vo).forEach(a=>{e.directive(a,vo[a])}),window.lastInnerHeight=window.innerHeight,window.addEventListener("resize",function(){var a=window.innerHeight;a<window.lastInnerHeight?(console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86"),Ho(),window.lastInnerHeight=window.innerHeight):(console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86"),window.lastInnerHeight=window.innerHeight)})};typeof window!="undefined"&&window.Vue&&Jr(window.Vue);const $T={version:yp.version,install:Jr,components:mo,plugins:Y$,getDefaultTheme:Yi,doChangeTheme:Ci,directives:vo};N.Apps=oo,N.AppsEdit=lo,N.AppsNew=fo,N.BasicLayout=pl,N.CHINESE_WEEKDAY_MAP=Xp,N.Card=Df,N.CardItem=Of,N.DatePicker=jo,N.Debug=Zo,N.DetailView=gl,N.EmptyLayout=$i,N.ErrorContent=Qr,N.EventBus=Gp,N.Form=il,N.IndConfigPlugin=Af,N.IndRouterPlugin=Lf,N.InputSelect=Ld,N.LoadMore=rl,N.LoadingPanel=kf,N.Login=Fs,N.MyApps=Vs,N.NotFound=Ui,N.PageView=bl,N.PopupView=Cl,N.QueryView=xl,N.Search=Ed,N.SelectBtn=Nd,N.SelectPanel=Od,N.Setting=po,N.THEME_KEY=Wi,N.UploadFile=If,N.User=Rs,N.User1=dl,N.addRouterGuards=vT,N.appItem=ze,N.bindFocus=_n,N.createMacroBasicRoutes=ek,N.createMicroBasicRoutes=ik,N.default=$T,N.doChangeTheme=Ci,N.formatServerTime=Wp,N.generateConfigByXml=In,N.getBreadCrumbList=Yo,N.getDefaultTheme=Yi,N.getHomeRoute=En,N.getIconByPositionId=cm,N.getMenuByRouter=Wo,N.getNewTagList=em,N.getNextRoute=Go,N.getRouteTitleHandled=Ko,N.getStyle=sm,N.getTagNavListFromLocalstorage=Xo,N.handleExpiredTime=Yp,N.install=Jr,N.permission=Nf,N.routeEqual=Ki,N.routeHasExist=qo,N.routerOptions=gT,N.scrollToCurInput=Ho,N.setTagNavListInLocalstorage=ea,N.setTitle=Qp,N.showTitle=tm,N.store=xT,N.tabbar=ti,N.transferIncrease=lm,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indfnd/common-mobile",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "author": "huxuetong",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"