@indfnd/common-mobile 1.0.39 → 1.0.40
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,13 @@
|
|
|
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.40](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.39...v1.0.40) (2026-02-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改img图片获取逻辑 ([df4afe9](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/df4afe93ae036c7da63c8f36f8367312b0d18e50))
|
|
11
|
+
|
|
5
12
|
### [1.0.39](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.38...v1.0.39) (2026-02-05)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -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.
|
|
6
|
+
const version$2 = "1.0.39";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -31199,7 +31199,7 @@ const __vue2_script = {
|
|
|
31199
31199
|
},
|
|
31200
31200
|
ossServerContext: {
|
|
31201
31201
|
type: String,
|
|
31202
|
-
default:
|
|
31202
|
+
default: "/user-manage-server"
|
|
31203
31203
|
}
|
|
31204
31204
|
},
|
|
31205
31205
|
computed: {
|
|
@@ -31247,10 +31247,6 @@ const __vue2_script = {
|
|
|
31247
31247
|
return { display: "none" };
|
|
31248
31248
|
}
|
|
31249
31249
|
const ossServerContext = this.ossServerContext;
|
|
31250
|
-
if (!ossServerContext) {
|
|
31251
|
-
console.error("ossServerContext \u672A\u914D\u7F6E");
|
|
31252
|
-
return { display: "none" };
|
|
31253
|
-
}
|
|
31254
31250
|
return {
|
|
31255
31251
|
backgroundImage: `url(${ossServerContext}/oss/file/get/${fileId})`,
|
|
31256
31252
|
backgroundSize: this.size,
|
|
@@ -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,xp,ke){"use strict";function Lo(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=Lo(Hi),_t=Lo(xp),$p={name:"@indfnd/common-mobile",version:"1.0.38",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"}},kp=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)},Tp=[];function Y(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const _p={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)}}},Ao={};var Ip=Y(_p,kp,Tp,!1,Ep,null,null,null);function Ep(e){for(let t in Ao)this[t]=Ao[t]}var Dp=function(){return Ip.exports}(),Mp=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))])])])])},Op=[];const Lp={name:"IndErrorContent",components:{BackBtnGroup:Dp},props:{code:String,desc:String,src:String}},Po={};var Ap=Y(Lp,Mp,Op,!1,Pp,null,null,null);function Pp(e){for(let t in Po)this[t]=Po[t]}var Qr=function(){return Ap.exports}(),Np=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}})},Bp=[];const Fp={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"}}},No={};var Rp=Y(Fp,Np,Bp,!1,Vp,null,null,null);function Vp(e){for(let t in No)this[t]=No[t]}var Ui=function(){return Rp.exports}(),Bo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jp(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 Fo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Bo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},E=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:E,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),D=g%60;return(k<=0?"+":"-")+E(I,2,"0")+":"+E(D,2,"0")},m:function V(k,g){if(k.date()<g.date())return-V(g,k);var I=12*(g.year()-k.year())+(g.month()-k.month()),D=k.clone().add(I,d),j=g-D<0,H=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-D)/(j?D-H:H-D))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},T="en",O={};O[T]=x;var X="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[X])},z=function V(k,g,I){var D;if(!k)return T;if(typeof k=="string"){var j=k.toLowerCase();O[j]&&(D=j),g&&(O[j]=g,D=j);var H=k.split("-");if(!D&&H.length>1)return V(H[0])}else{var S=k.name;O[S]=k,D=S}return!I&&D&&(T=D),D||!I&&T},B=function(V,k){if(R(V))return V.clone();var g=typeof k=="object"?k:{};return g.date=V,g.args=arguments,new it(g)},A=_;A.l=z,A.i=R,A.w=function(V,k){return B(V,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var it=function(){function V(g){this.$L=z(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[X]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var D=I.date,j=I.utc;if(D===null)return new Date(NaN);if(A.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var S=H[2]-1||0,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 A},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(g,I){var D=B(g);return this.startOf(I)<=D&&D<=this.endOf(I)},k.isAfter=function(g,I){return B(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<B(g)},k.$g=function(g,I,D){return A.u(g)?this[I]:this.set(D,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var D=this,j=!!A.u(I)||I,H=A.p(g),S=function(Tt,$t){var Le=A.w(D.$u?Date.UTC(D.$y,$t,Tt):new Date(D.$y,$t,Tt),D);return j?Le:Le.endOf(c)},y=function(Tt,$t){return A.w(D.toDate()[Tt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),D)},C=this.$W,F=this.$M,K=this.$D,G="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(C<tt?C+7:C)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return y(G+"Hours",0);case l:return y(G+"Minutes",1);case o:return y(G+"Seconds",2);case s:return y(G+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=A.p(g),H="set"+(this.$u?"UTC":""),S=(D={},D[c]=H+"Date",D[p]=H+"Date",D[d]=H+"Month",D[f]=H+"FullYear",D[l]=H+"Hours",D[o]=H+"Minutes",D[s]=H+"Seconds",D[a]=H+"Milliseconds",D)[j],y=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](y),C.init(),this.$d=C.set(p,Math.min(this.$D,C.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[A.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=A.p(I),S=function(F){var K=B(j);return A.w(K.date(K.date()+Math.round(F*g)),j)};if(H===d)return this.set(d,this.$M+g);if(H===f)return this.set(f,this.$y+g);if(H===c)return S(1);if(H===h)return S(7);var y=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,C=this.$d.getTime()+g*y;return A.w(C,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),S=this.$H,y=this.$m,C=this.$M,F=D.weekdays,K=D.months,G=D.meridiem,tt=function($t,Le,Tn,Zr){return $t&&($t[Le]||$t(I,j))||Tn[Le].slice(0,Zr)},ct=function($t){return A.s(S%12||12,$t,"0")},Tt=G||function($t,Le,Tn){var Zr=$t<12?"AM":"PM";return Tn?Zr.toLowerCase():Zr};return j.replace(w,function($t,Le){return Le||function(Tn){switch(Tn){case"YY":return String(I.$y).slice(-2);case"YYYY":return A.s(I.$y,4,"0");case"M":return C+1;case"MM":return A.s(C+1,2,"0");case"MMM":return tt(D.monthsShort,C,K,3);case"MMMM":return tt(K,C);case"D":return I.$D;case"DD":return A.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(D.weekdaysMin,I.$W,F,2);case"ddd":return tt(D.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return A.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,y,!0);case"A":return Tt(S,y,!1);case"m":return String(y);case"mm":return A.s(y,2,"0");case"s":return String(I.$s);case"ss":return A.s(I.$s,2,"0");case"SSS":return A.s(I.$ms,3,"0");case"Z":return H}return null}($t)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=A.p(I),y=B(g),C=(y.utcOffset()-this.utcOffset())*n,F=this-y,K=function(){return A.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-C)/6048e5;break;case c:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return D?j:A.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return O[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var D=this.clone(),j=z(g,I,!0);return j&&(D.$L=j),D},k.clone=function(){return A.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},V}(),ot=it.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),B.extend=function(V,k){return V.$i||(V(k,it,B),V.$i=!0),B},B.locale=z,B.isDayjs=R,B.unix=function(V){return B(1e3*V)},B.en=O[T],B.Ls=O,B.p={},B})})(Fo);var St=Fo.exports,Hp=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)},Up=[];const Ro=new Date().getFullYear(),Vo=new Date().getMonth()+1,Kp=`Q${M.getQuarterNum(Vo)}`,Wp=`H${M.getHalfYearNum(Vo)}`,zo=10,jo=10,Yp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ro+Kp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;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:Ro+Wp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?M.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Ho={};var Xp=Y(Yp,Hp,Up,!1,Gp,null,null,null);function Gp(e){for(let t in Ho)this[t]=Ho[t]}var Uo=function(){return Xp.exports}();function _n(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Ko(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function qp(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?qp(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 Jp=!1;var Ae=M.useConfig(Jp);function Zp(e){if(typeof e!="string"||!St(e).isValid())return e;switch(e.length){case 4:return St(e,"YYYY").format("YYYY");case 6:return St(e,"YYYYMM").format("YYYY-MM");case 8:return St(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return St(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function Qp(e,t){let i=St(e).diff(St(),"day");i<=Ae.leftLockDays&&t(i)}const tm={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},em=new _t.default,im=e=>e.children&&e.children.length,nm=(e,t)=>e.some(i=>t.includes(i)),Wo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!nm(e.meta.access,t):!0,rm=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Yo=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},am=()=>{},Xo=(e,t)=>{let i=[];return lm(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(im(n)||n.meta&&n.meta.showAlways)&&Wo(n,t)&&(r.children=Xo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Wo(n,t)&&i.push(r)}}),i},Go=(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},sm=e=>e.meta.title,ea=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},qo=()=>{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},Jo=(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},Zo=(e,t)=>{let i=e.length,n=!1;return rm(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,om=(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 lm(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 cm=/([\:\-\_]+(.))/g,um=/^moz([A-Z])/;function hm(e){return e.replace(cm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(um,"Moz$1")}function dm(e,t){if(!e||!t)return null;t=hm(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 Qo={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,xp,ke){"use strict";function Lo(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=Lo(Hi),_t=Lo(xp),$p={name:"@indfnd/common-mobile",version:"1.0.39",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"}},kp=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)},Tp=[];function Y(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const _p={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)}}},Ao={};var Ip=Y(_p,kp,Tp,!1,Ep,null,null,null);function Ep(e){for(let t in Ao)this[t]=Ao[t]}var Dp=function(){return Ip.exports}(),Mp=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))])])])])},Op=[];const Lp={name:"IndErrorContent",components:{BackBtnGroup:Dp},props:{code:String,desc:String,src:String}},Po={};var Ap=Y(Lp,Mp,Op,!1,Pp,null,null,null);function Pp(e){for(let t in Po)this[t]=Po[t]}var Qr=function(){return Ap.exports}(),Np=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}})},Bp=[];const Fp={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"}}},No={};var Rp=Y(Fp,Np,Bp,!1,Vp,null,null,null);function Vp(e){for(let t in No)this[t]=No[t]}var Ui=function(){return Rp.exports}(),Bo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function zp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jp(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 Fo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(Bo,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},E=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:E,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),D=g%60;return(k<=0?"+":"-")+E(I,2,"0")+":"+E(D,2,"0")},m:function V(k,g){if(k.date()<g.date())return-V(g,k);var I=12*(g.year()-k.year())+(g.month()-k.month()),D=k.clone().add(I,d),j=g-D<0,H=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-D)/(j?D-H:H-D))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},T="en",O={};O[T]=x;var X="$isDayjsObject",R=function(V){return V instanceof it||!(!V||!V[X])},z=function V(k,g,I){var D;if(!k)return T;if(typeof k=="string"){var j=k.toLowerCase();O[j]&&(D=j),g&&(O[j]=g,D=j);var H=k.split("-");if(!D&&H.length>1)return V(H[0])}else{var S=k.name;O[S]=k,D=S}return!I&&D&&(T=D),D||!I&&T},B=function(V,k){if(R(V))return V.clone();var g=typeof k=="object"?k:{};return g.date=V,g.args=arguments,new it(g)},A=_;A.l=z,A.i=R,A.w=function(V,k){return B(V,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var it=function(){function V(g){this.$L=z(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[X]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var D=I.date,j=I.utc;if(D===null)return new Date(NaN);if(A.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var S=H[2]-1||0,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 A},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(g,I){var D=B(g);return this.startOf(I)<=D&&D<=this.endOf(I)},k.isAfter=function(g,I){return B(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<B(g)},k.$g=function(g,I,D){return A.u(g)?this[I]:this.set(D,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var D=this,j=!!A.u(I)||I,H=A.p(g),S=function(Tt,$t){var Le=A.w(D.$u?Date.UTC(D.$y,$t,Tt):new Date(D.$y,$t,Tt),D);return j?Le:Le.endOf(c)},y=function(Tt,$t){return A.w(D.toDate()[Tt].apply(D.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),D)},C=this.$W,F=this.$M,K=this.$D,G="set"+(this.$u?"UTC":"");switch(H){case f:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(C<tt?C+7:C)-tt;return S(j?K-ct:K+(6-ct),F);case c:case p:return y(G+"Hours",0);case l:return y(G+"Minutes",1);case o:return y(G+"Seconds",2);case s:return y(G+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var D,j=A.p(g),H="set"+(this.$u?"UTC":""),S=(D={},D[c]=H+"Date",D[p]=H+"Date",D[d]=H+"Month",D[f]=H+"FullYear",D[l]=H+"Hours",D[o]=H+"Minutes",D[s]=H+"Seconds",D[a]=H+"Milliseconds",D)[j],y=j===c?this.$D+(I-this.$W):I;if(j===d||j===f){var C=this.clone().set(p,1);C.$d[S](y),C.init(),this.$d=C.set(p,Math.min(this.$D,C.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[A.p(g)]()},k.add=function(g,I){var D,j=this;g=Number(g);var H=A.p(I),S=function(F){var K=B(j);return A.w(K.date(K.date()+Math.round(F*g)),j)};if(H===d)return this.set(d,this.$M+g);if(H===f)return this.set(f,this.$y+g);if(H===c)return S(1);if(H===h)return S(7);var y=(D={},D[o]=n,D[l]=r,D[s]=i,D)[H]||1,C=this.$d.getTime()+g*y;return A.w(C,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),S=this.$H,y=this.$m,C=this.$M,F=D.weekdays,K=D.months,G=D.meridiem,tt=function($t,Le,Tn,Zr){return $t&&($t[Le]||$t(I,j))||Tn[Le].slice(0,Zr)},ct=function($t){return A.s(S%12||12,$t,"0")},Tt=G||function($t,Le,Tn){var Zr=$t<12?"AM":"PM";return Tn?Zr.toLowerCase():Zr};return j.replace(w,function($t,Le){return Le||function(Tn){switch(Tn){case"YY":return String(I.$y).slice(-2);case"YYYY":return A.s(I.$y,4,"0");case"M":return C+1;case"MM":return A.s(C+1,2,"0");case"MMM":return tt(D.monthsShort,C,K,3);case"MMMM":return tt(K,C);case"D":return I.$D;case"DD":return A.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(D.weekdaysMin,I.$W,F,2);case"ddd":return tt(D.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return A.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,y,!0);case"A":return Tt(S,y,!1);case"m":return String(y);case"mm":return A.s(y,2,"0");case"s":return String(I.$s);case"ss":return A.s(I.$s,2,"0");case"SSS":return A.s(I.$ms,3,"0");case"Z":return H}return null}($t)||H.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,D){var j,H=this,S=A.p(I),y=B(g),C=(y.utcOffset()-this.utcOffset())*n,F=this-y,K=function(){return A.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-C)/6048e5;break;case c:j=(F-C)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return D?j:A.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return O[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var D=this.clone(),j=z(g,I,!0);return j&&(D.$L=j),D},k.clone=function(){return A.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},V}(),ot=it.prototype;return B.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),B.extend=function(V,k){return V.$i||(V(k,it,B),V.$i=!0),B},B.locale=z,B.isDayjs=R,B.unix=function(V){return B(1e3*V)},B.en=O[T],B.Ls=O,B.p={},B})})(Fo);var St=Fo.exports,Hp=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)},Up=[];const Ro=new Date().getFullYear(),Vo=new Date().getMonth()+1,Kp=`Q${M.getQuarterNum(Vo)}`,Wp=`H${M.getHalfYearNum(Vo)}`,zo=10,jo=10,Yp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Ro+Kp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;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:Ro+Wp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-zo;r<=e+jo;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?M.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Ho={};var Xp=Y(Yp,Hp,Up,!1,Gp,null,null,null);function Gp(e){for(let t in Ho)this[t]=Ho[t]}var Uo=function(){return Xp.exports}();function _n(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Ko(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function qp(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?qp(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 Jp=!1;var Ae=M.useConfig(Jp);function Zp(e){if(typeof e!="string"||!St(e).isValid())return e;switch(e.length){case 4:return St(e,"YYYY").format("YYYY");case 6:return St(e,"YYYYMM").format("YYYY-MM");case 8:return St(e,"YYYYMMDD").format("YYYY-MM-DD");case 14:return St(e,"YYYYMMDDhhmmss").format("YYYY-MM-DD hh:mm:ss");default:return e}}function Qp(e,t){let i=St(e).diff(St(),"day");i<=Ae.leftLockDays&&t(i)}const tm={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},em=new _t.default,im=e=>e.children&&e.children.length,nm=(e,t)=>e.some(i=>t.includes(i)),Wo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!nm(e.meta.access,t):!0,rm=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Yo=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},am=()=>{},Xo=(e,t)=>{let i=[];return lm(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(im(n)||n.meta&&n.meta.showAlways)&&Wo(n,t)&&(r.children=Xo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Wo(n,t)&&i.push(r)}}),i},Go=(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},sm=e=>e.meta.title,ea=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},qo=()=>{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},Jo=(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},Zo=(e,t)=>{let i=e.length,n=!1;return rm(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,om=(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 lm(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 cm=/([\:\-\_]+(.))/g,um=/^moz([A-Z])/;function hm(e){return e.replace(cm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(um,"Moz$1")}function dm(e,t){if(!e||!t)return null;t=hm(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 Qo={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 t1(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){t1(e,r,i[r])})}return e}function e1(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 i1(e,t){if(e==null)return{};var i=e1(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 n1(e){return r1(e)||a1(e)||s1()}function r1(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 a1(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function s1(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var o1="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),Xd=je(/firefox/i),Hs=je(/safari/i)&&!je(/chrome/i)&&!je(/android/i),Gd=je(/iP(ad|od|hone)/i),l1=je(/chrome/i)&&je(/android/i),qd={capture:!1,passive:!1};function rt(e,t,i){e.addEventListener(t,i,!He&&qd)}function Q(e,t,i){e.removeEventListener(t,i,!He&&qd)}function $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 c1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function we(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&$r(e,t):$r(e,t))||n&&e===i)return e;if(e===i)break}while(e=c1(e))}return null}var Jd=/\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(Jd," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Jd," ")}}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 Zd(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 Qd(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&&we(a[r],i.draggable,e,!1)){if(n===t)return a[r];n++}r++}return null}function Us(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 tf(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 u1(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 h1(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Ks(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 ef(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 d1(){clearTimeout(dn),dn=void 0}function nf(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Ws(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 rf(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 Ys(e){U(e,"position",""),U(e,"top",""),U(e,"left",""),U(e,"width",""),U(e,"height","")}var Pt="Sortable"+new Date().getTime();function f1(){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(u1(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&&Ks(u,d)&&!Ks(h,d)&&(p.top-d.top)/(p.left-d.left)===(h.top-d.top)/(h.left-d.left)&&(l=m1(p,u,f,r.options)),Ks(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)"),p1(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 p1(e){return e.offsetWidth}function m1(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=[],Xs={initializeByDefault:!0},pn={mount:function(t){for(var i in Xs)Xs.hasOwnProperty(i)&&!(i in t)&&(t[i]=Xs[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[Pt],!!t){var m,v=t.options,w="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[w]&&v[w].call(t,m)}}var Wt=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=i1(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:Mt,activeSortable:W.active,originalEvent:r,oldIndex:Bi,oldDraggableIndex:vn,newIndex:Gt,newDraggableIndex:ri,hideGhostForTarget:hf,unhideGhostForTarget:df,cloneNowHidden:function(){ni=!0},cloneNowShown:function(){ni=!1},dispatchSortableEvent:function(o){Rt({sortable:i,name:o,originalEvent:r})}},a))};function Rt(e){mn(ei({putSortable:Mt,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,Mt,Fi=!1,Ir=!1,Er=[],yi,Ce,Gs,qs,af,sf,gn,Ri,yn,bn=!1,Dr=!1,Mr,Nt,Js=[],Zs=!1,Or=[],Lr=typeof document!="undefined",Ar=Gd,of=hn||He?"cssFloat":"float",v1=Lr&&!l1&&!Gd&&"draggable"in document.createElement("div"),lf=function(){if(!!Lr){if(He)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),cf=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[of]==="none"||s&&n[of]==="none"&&c+h>r)?"vertical":"horizontal"},g1=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},y1=function(t,i){var n;return Er.some(function(r){if(!Us(r)){var a=pt(r),s=r[Pt].options.emptyInsertThreshold,o=t>=a.left-s&&t<=a.right+s,l=i>=a.top-s&&i<=a.bottom+s;if(s&&o&&l)return n=r}}),n},uf=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},hf=function(){!lf&&J&&U(J,"display","none")},df=function(){!lf&&J&&U(J,"display","")};Lr&&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=y1(t.clientX,t.clientY);if(i){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[Pt]._onDragOver(n)}}},b1=function(t){P&&P.parentNode[Pt]._isOutsideThisEl(t.target)};function W(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=oe({},t),e[Pt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return cf(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]);uf(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:v1,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,f1())}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(T1(n),!P&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!c.isContentEditable&&(l=we(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)){Rt({sortable:i,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),Wt("filter",i,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(d){if(d=we(c,d.trim(),n,!1),d)return Rt({sortable:i,rootEl:d,name:"filter",targetEl:l,fromEl:n,toEl:n}),Wt("filter",i,{evt:t}),!0}),h)){a&&t.cancelable&&t.preventDefault();return}r.handle&&!we(c,r.handle,n,!1)||this._prepareDragStart(t,o,l)}}},_prepareDragStart:function(t,i,n){var r=this,a=r.el,s=r.options,o=a.ownerDocument,l;if(n&&!P&&n.parentNode===a){var c=pt(n);if(dt=a,P=n,yt=P.parentNode,gi=P.nextSibling,Tr=n,_r=s.group,W.dragged=P,yi={target:P,clientX:(i||t).clientX,clientY:(i||t).clientY},af=yi.clientX-c.left,sf=yi.clientY-c.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,P.style["will-change"]="all",l=function(){if(Wt("delayEnded",r,{evt:t}),W.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Xd&&r.nativeDraggable&&(P.draggable=!0),r._triggerDragStart(t,i),Rt({sortable:r,name:"choose",originalEvent:t}),ht(P,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Zd(P,h.trim(),to)}),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),Xd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,P.draggable=!0),Wt("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&&to(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){Wt("dragStarted",this,{evt:i}),this.nativeDraggable&&rt(document,"dragover",b1);var n=this.options;!t&&ht(P,n.dragClass,!1),ht(P,n.ghostClass,!0),W.active=this,t&&this._appendGhost(),Rt({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(Ce){this._lastX=Ce.clientX,this._lastY=Ce.clientY,hf();for(var t=document.elementFromPoint(Ce.clientX,Ce.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ce.clientX,Ce.clientY),t!==i);)i=t;if(P.parentNode[Pt]._isOutsideThisEl(t),i)do{if(i[Pt]){var n=void 0;if(n=i[Pt]._onDragOver({clientX:Ce.clientX,clientY:Ce.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);df()}},_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=Ar&&Nt&&tf(Nt),h=(a.clientX-yi.clientX+r.x)/(o||1)+(c?c[0]-Js[0]:0)/(o||1),d=(a.clientY-yi.clientY+r.y)/(l||1)+(c?c[1]-Js[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-(Gs||0),s.f+=d-(qs||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),Gs=h,qs=d,Ce=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!J){var t=this.options.fallbackOnBody?document.body:dt,i=pt(P,!0,Ar,!0,t),n=this.options;if(Ar){for(Nt=t;U(Nt,"position")==="static"&&U(Nt,"transform")==="none"&&Nt!==document;)Nt=Nt.parentNode;Nt!==document.body&&Nt!==document.documentElement?(Nt===document&&(Nt=Oe()),i.top+=Nt.scrollTop,i.left+=Nt.scrollLeft):Nt=Oe(),Js=tf(Nt)}J=P.cloneNode(!0),ht(J,n.ghostClass,!1),ht(J,n.fallbackClass,!0),ht(J,n.dragClass,!0),U(J,"transition",""),U(J,"transform",""),U(J,"box-sizing","border-box"),U(J,"margin",0),U(J,"top",i.top),U(J,"left",i.left),U(J,"width",i.width),U(J,"height",i.height),U(J,"opacity","0.8"),U(J,"position",Ar?"absolute":"fixed"),U(J,"zIndex","100000"),U(J,"pointerEvents","none"),W.ghost=J,t.appendChild(J),U(J,"transform-origin",af/parseInt(J.style.width)*100+"% "+sf/parseInt(J.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,r=t.dataTransfer,a=n.options;if(Wt("dragStart",this,{evt:t}),W.eventCanceled){this._onDrop();return}Wt("setupClone",this),W.eventCanceled||(vt=Ws(P),vt.draggable=!1,vt.style["will-change"]="",this._hideClone(),ht(vt,this.options.chosenClass,!1),W.clone=vt),n.cloneId=Pr(function(){Wt("clone",n),!W.eventCanceled&&(n.options.removeCloneOnHide||dt.insertBefore(vt,P),n._hideClone(),Rt({sortable:n,name:"clone"}))}),!i&&ht(P,a.dragClass,!0),i?(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,Hs&&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=Mt||c,f,p=this,m=!1;if(Zs)return;function v(I,D){Wt(I,p,ei({evt:t,isOwner:h,axis:f?"vertical":"horizontal",revert:s,dragRect:r,targetRect:a,canSort:d,fromSortable:u,target:n,completed:x,onMove:function(H,S){return Qs(dt,i,P,r,H,pt(H),t,S)},changed:E},D))}function w(){v("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function x(I){return v("dragOverCompleted",{insertion:I}),I&&(h?c._hideClone():c._showClone(p),p!==u&&(ht(P,Mt?Mt.options.ghostClass:c.options.ghostClass,!1),ht(P,o.ghostClass,!0)),Mt!==p&&p!==W.active?Mt=p:p===W.active&&Mt&&(Mt=null),u===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){v("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(n===P&&!P.animated||n===i&&!n.animated)&&(Ri=null),!o.dragoverBubble&&!t.rootEl&&n!==document&&(P.parentNode[Pt]._isOutsideThisEl(t.target),!I&&bi(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function E(){Gt=mt(P),ri=mt(P,o.draggable),Rt({sortable:p,name:"change",toEl:i,newIndex:Gt,newDraggableIndex:ri,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=we(n,o.draggable,i,!0),v("dragOver"),W.eventCanceled)return m;if(P.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return x(!1);if(Ir=!1,c&&!o.disabled&&(h?d||(s=!dt.contains(P)):Mt===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,w(),this._hideClone(),v("revert"),W.eventCanceled||(gi?dt.insertBefore(P,gi):dt.appendChild(P)),x(!0);var _=Us(i,o.draggable);if(!_||C1(t,f,this)&&!_.animated){if(_===P)return x(!1);if(_&&i===t.target&&(n=_),n&&(a=pt(n)),Qs(dt,i,P,r,n,a,t,!!n)!==!1)return w(),i.appendChild(P),yt=i,E(),x(!0)}else if(n.parentNode===i){a=pt(n);var T=0,O,X=P.parentNode!==i,R=!g1(P.animated&&P.toRect||r,n.animated&&n.toRect||a,f),z=f?"top":"left",B=Qd(n,"top","top")||Qd(P,"top","top"),A=B?B.scrollTop:void 0;Ri!==n&&(O=a[z],bn=!1,Dr=!R&&o.invertSwap||X),T=x1(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=Qs(dt,i,P,r,n,a,t,k);if(g!==!1)return(g===1||g===-1)&&(k=g===1),Zs=!0,setTimeout(w1,30),w(),k&&!V?i.appendChild(P):n.parentNode.insertBefore(P,k?V:n),B&&nf(B,0,A-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),Wt("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),eo(this.cloneId),eo(this._dragStartId),this.nativeDraggable&&(Q(document,"drop",this),Q(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Hs&&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||Mt&&Mt.lastPutMode!=="clone")&&vt&&vt.parentNode&&vt.parentNode.removeChild(vt),P&&(this.nativeDraggable&&Q(P,"dragend",this),to(P),P.style["will-change"]="",gn&&!Fi&&ht(P,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),ht(P,this.options.chosenClass,!1),Rt({sortable:this,name:"unchoose",toEl:yt,newIndex:null,newDraggableIndex:null,originalEvent:t}),dt!==yt?(Gt>=0&&(Rt({rootEl:yt,name:"add",toEl:yt,fromEl:dt,originalEvent:t}),Rt({sortable:this,name:"remove",toEl:yt,originalEvent:t}),Rt({rootEl:yt,name:"sort",toEl:yt,fromEl:dt,originalEvent:t}),Rt({sortable:this,name:"sort",toEl:yt,originalEvent:t})),Mt&&Mt.save()):Gt!==Bi&&Gt>=0&&(Rt({sortable:this,name:"update",toEl:yt,originalEvent:t}),Rt({sortable:this,name:"sort",toEl:yt,originalEvent:t})),W.active&&((Gt==null||Gt===-1)&&(Gt=Bi,ri=vn),Rt({sortable:this,name:"end",toEl:yt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Wt("nulling",this),dt=P=yt=J=gi=vt=Tr=ni=yi=Ce=gn=Gt=ri=Bi=vn=Ri=yn=Mt=_r=W.dragged=W.ghost=W.clone=W.active=null,Or.forEach(function(t){t.checked=!0}),Or.length=Gs=qs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":P&&(this._onDragOver(t),S1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,r=0,a=n.length,s=this.options;r<a;r++)i=n[r],we(i,s.draggable,this.el,!1)&&t.push(i.getAttribute(s.dataIdAttr)||k1(i));return t},sort:function(t){var i={},n=this.el;this.toArray().forEach(function(r,a){var s=n.children[a];we(s,this.options.draggable,n,!1)&&(i[r]=s)},this),t.forEach(function(r){i[r]&&(n.removeChild(i[r]),n.appendChild(i[r]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return we(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(i===void 0)return n[t];var r=pn.modifyOption(this,t,i);typeof r!="undefined"?n[t]=r:n[t]=i,t==="group"&&uf(n)},destroy:function(){Wt("destroy",this);var t=this.el;t[Pt]=null,Q(t,"mousedown",this._onTapStart),Q(t,"touchstart",this._onTapStart),Q(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Q(t,"dragover",this),Q(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Er.splice(Er.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ni){if(Wt("hideClone",this),W.eventCanceled)return;U(vt,"display","none"),this.options.removeCloneOnHide&&vt.parentNode&&vt.parentNode.removeChild(vt),ni=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ni){if(Wt("showClone",this),W.eventCanceled)return;dt.contains(P)&&!this.options.group.revertClone?dt.insertBefore(vt,P):gi?dt.insertBefore(vt,gi):dt.appendChild(vt),this.options.group.revertClone&&this.animate(P,vt),U(vt,"display",""),ni=!1}}};function S1(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Qs(e,t,i,n,r,a,s,o){var l,c=e[Pt],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 to(e){e.draggable=!1}function w1(){Zs=!1}function C1(e,t,i){var n=pt(Us(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 x1(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 $1(t)}return u=u||s,u&&(l<h+c*a/2||l>d-c*a/2)?l>h+c/2?1:-1:0}function $1(e){return mt(P)<mt(e)?1:-1}function k1(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 T1(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 eo(e){return clearTimeout(e)}Lr&&rt(document,"touchmove",function(e){(W.active||Fi)&&e.cancelable&&e.preventDefault()}),W.utils={on:rt,off:Q,css:U,find:Zd,is:function(t,i){return!!we(t,i,t,!1)},extend:h1,throttle:ef,closest:we,toggleClass:ht,clone:Ws,index:mt,nextTick:Pr,cancelNextTick:eo,detectDirection:cf,getChild:kr},W.get=function(e){return e[Pt]},W.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(W.utils=ei({},W.utils,n.utils)),pn.mount(n)})},W.create=function(e,t){return new W(e,t)},W.version=o1;var bt=[],Sn,io,no=!1,ro,ao,Nr,wn;function _1(){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)),ff(),Br(),d1()},nulling:function(){Nr=io=Sn=no=wn=ro=ao=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||Hs){so(i,this.options,o,n);var l=ii(o,!0);no&&(!wn||a!==ro||s!==ao)&&(wn&&ff(),wn=setInterval(function(){var c=ii(document.elementFromPoint(a,s),!0);c!==l&&(l=c,Br()),so(i,r.options,c,n)},10),ro=a,ao=s)}else{if(!this.options.bubbleScroll||ii(o,!0)===Oe()){Br();return}so(i,this.options,ii(o,!1),!1)}}},oe(e,{pluginName:"scroll",initializeByDefault:!0})}function Br(){bt.forEach(function(e){clearInterval(e.pid)}),bt=[]}function ff(){clearInterval(wn)}var so=ef(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;io!==i&&(io=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,w=p.left,x=p.right,E=p.width,_=p.height,T=void 0,O=void 0,X=f.scrollWidth,R=f.scrollHeight,z=U(f),B=f.scrollLeft,A=f.scrollTop;f===l?(T=E<X&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),O=_<R&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(T=E<X&&(z.overflowX==="auto"||z.overflowX==="scroll"),O=_<R&&(z.overflowY==="auto"||z.overflowY==="scroll"));var it=T&&(Math.abs(x-r)<=s&&B+E<X)-(Math.abs(w-r)<=s&&!!B),ot=O&&(Math.abs(v-a)<=s&&A+_<R)-(Math.abs(m-a)<=s&&!!A);if(!bt[d])for(var V=0;V<=d;V++)bt[V]||(bt[V]={});(bt[d].vx!=it||bt[d].vy!=ot||bt[d].el!==f)&&(bt[d].el=f,bt[d].vx=it,bt[d].vy=ot,clearInterval(bt[d].pid),(it!=0||ot!=0)&&(c=!0,bt[d].pid=setInterval(function(){n&&this.layer===0&&W.active._onTouchMove(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[Pt],g,k,e,Nr,bt[this.layer].el)!=="continue"||nf(bt[this.layer].el,g,k)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&u!==l&&(u=ii(u,!1)));no=c}},30),pf=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 oo(){}oo.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:pf},oe(oo,{pluginName:"revertOnSpill"});function lo(){}lo.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:pf},oe(lo,{pluginName:"removeOnSpill"});var le;function I1(){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(),E1(a,le),s.animateAll(),s!==n&&n.animateAll())},nulling:function(){le=null}},oe(e,{pluginName:"swap",eventProperties:function(){return{swapItem:le}}})}function E1(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=[],Cn,xe,xn=!1,Jt=!1,Vi=!1,ut,$n,Fr;function D1(){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(Ws(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&&(mf(!0,r),a("clone"),s())},showClone:function(i){var n=i.cloneNowShown,r=i.rootEl,a=i.cancel;!this.isMultiDrag||(mf(!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&&rf(s,a)}),Jt=!0,xn=!0}r.animateAll(function(){Jt=!1,xn=!1,n.options.animation&&q.forEach(function(s){Ys(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}),Ys(o),o.fromRect=s,n.removeAnimationState(o)}),Jt=!1,M1(!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&&(rf(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),Cn=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&&Cn&&s.el.contains(Cn)){var f=mt(Cn),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 Cn=ut;xe=h}if(Vi&&this.isMultiDrag){if((a[Pt].options.sort||a!==r)&&q.length>1){var w=pt(ut),x=mt(ut,":not(."+this.options.selectedClass+")");if(!xn&&d.animation&&(ut.thisAnimationDuration=null),h.captureAnimationState(),!xn&&(d.animation&&(ut.fromRect=w,q.forEach(function(_){if(_.thisAnimationDuration=null,_!==ut){var T=Jt?pt(_):w;_.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(_){Ys(_)}),h.animateAll()}xe=h}(r===a||c&&c.lastPutMode!=="clone")&&qt.forEach(function(_){_.parentNode&&_.parentNode.removeChild(_)})}},nullingGlobal:function(){this.isMultiDrag=Vi=!1,qt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Q(document,"pointerup",this._deselectMultiDrag),Q(document,"mouseup",this._deselectMultiDrag),Q(document,"touchend",this._deselectMultiDrag),Q(document,"keydown",this._checkKeyDown),Q(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof Vi!="undefined"&&Vi)&&xe===this.sortable&&!(i&&we(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;q.length;){var n=q[0];ht(n,this.options.selectedClass,!1),q.shift(),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[Pt];!n||!n.options.multiDrag||~q.indexOf(i)||(xe&&xe!==n&&(xe.multiDrag._deselectMultiDrag(),xe=n),ht(i,n.options.selectedClass,!0),q.push(i))},deselect:function(i){var n=i.parentNode[Pt],r=q.indexOf(i);!n||!n.options.multiDrag||!~r||(ht(i,n.options.selectedClass,!1),q.splice(r,1))}},eventProperties:function(){var i=this,n=[],r=[];return q.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var s;Jt&&a!==ut?s=-1:Jt?s=mt(a,":not(."+i.options.selectedClass+")"):s=mt(a),r.push({multiDragElement:a,index:s})}),{items:n1(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 M1(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 mf(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 _1),W.mount(lo,oo);var O1=Object.freeze(Object.defineProperty({__proto__:null,default:W,MultiDrag:D1,Sortable:W,Swap:I1},Symbol.toStringTag,{value:"Module"})),L1=jp(O1);(function(e,t){(function(n,r){e.exports=r(L1)})(typeof self!="undefined"?self:Bo,function(i){return function(n){var r={};function a(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=r,a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},a.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(o&1&&(s=a(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)a.d(l,c,function(h){return s[h]}.bind(null,c));return l},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s="fb15")}({"01f9":function(n,r,a){var s=a("2d00"),o=a("5ca1"),l=a("2aba"),c=a("32e9"),h=a("84f2"),d=a("41a0"),u=a("7f20"),f=a("38fd"),p=a("2b4c")("iterator"),m=!([].keys&&"next"in[].keys()),v="@@iterator",w="keys",x="values",E=function(){return this};n.exports=function(_,T,O,X,R,z,B){d(O,T,X);var A=function(C){if(!m&&C in k)return k[C];switch(C){case w:return function(){return new O(this,C)};case x:return function(){return new O(this,C)}}return function(){return new O(this,C)}},it=T+" Iterator",ot=R==x,V=!1,k=_.prototype,g=k[p]||k[v]||R&&k[R],I=g||A(R),D=R?ot?A("entries"):I:void 0,j=T=="Array"&&k.entries||g,H,S,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:A(x),keys:z?I:A(w),entries:D},B)for(S in H)S in k||l(k,S,H[S]);else o(o.P+o.F*(m||V),T,H);return H}},"02f4":function(n,r,a){var s=a("4588"),o=a("be13");n.exports=function(l){return function(c,h){var d=String(o(c)),u=s(h),f=d.length,p,m;return u<0||u>=f?l?"":void 0:(p=d.charCodeAt(u),p<55296||p>56319||u+1===f||(m=d.charCodeAt(u+1))<56320||m>57343?l?d.charAt(u):p:l?d.slice(u,u+2):(p-55296<<10)+(m-56320)+65536)}}},"0390":function(n,r,a){var s=a("02f4")(!0);n.exports=function(o,l,c){return l+(c?s(o,l).length:1)}},"0bfb":function(n,r,a){var s=a("cb7c");n.exports=function(){var o=s(this),l="";return o.global&&(l+="g"),o.ignoreCase&&(l+="i"),o.multiline&&(l+="m"),o.unicode&&(l+="u"),o.sticky&&(l+="y"),l}},"0d58":function(n,r,a){var s=a("ce10"),o=a("e11e");n.exports=Object.keys||function(c){return s(c,o)}},1495:function(n,r,a){var s=a("86cc"),o=a("cb7c"),l=a("0d58");n.exports=a("9e1e")?Object.defineProperties:function(h,d){o(h);for(var u=l(d),f=u.length,p=0,m;f>p;)s.f(h,m=u[p++],d[m]);return h}},"214f":function(n,r,a){a("b0c5");var s=a("2aba"),o=a("32e9"),l=a("79e5"),c=a("be13"),h=a("2b4c"),d=a("520a"),u=h("species"),f=!l(function(){var m=/./;return m.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(m,"$<a>")!=="7"}),p=function(){var m=/(?:)/,v=m.exec;m.exec=function(){return v.apply(this,arguments)};var w="ab".split(m);return w.length===2&&w[0]==="a"&&w[1]==="b"}();n.exports=function(m,v,w){var x=h(m),E=!l(function(){var z={};return z[x]=function(){return 7},""[m](z)!=7}),_=E?!l(function(){var z=!1,B=/a/;return B.exec=function(){return z=!0,null},m==="split"&&(B.constructor={},B.constructor[u]=function(){return B}),B[x](""),!z}):void 0;if(!E||!_||m==="replace"&&!f||m==="split"&&!p){var T=/./[x],O=w(c,x,""[m],function(B,A,it,ot,V){return A.exec===d?E&&!V?{done:!0,value:T.call(A,it,ot)}:{done:!0,value:B.call(it,A,ot)}:{done:!1}}),X=O[0],R=O[1];s(String.prototype,m,X),o(RegExp.prototype,x,v==2?function(z,B){return R.call(z,this,B)}:function(z){return R.call(z,this)})}}},"230e":function(n,r,a){var s=a("d3f4"),o=a("7726").document,l=s(o)&&s(o.createElement);n.exports=function(c){return l?o.createElement(c):{}}},"23c6":function(n,r,a){var s=a("2d95"),o=a("2b4c")("toStringTag"),l=s(function(){return arguments}())=="Arguments",c=function(h,d){try{return h[d]}catch{}};n.exports=function(h){var d,u,f;return h===void 0?"Undefined":h===null?"Null":typeof(u=c(d=Object(h),o))=="string"?u:l?s(d):(f=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":f}},2621:function(n,r){r.f=Object.getOwnPropertySymbols},"2aba":function(n,r,a){var s=a("7726"),o=a("32e9"),l=a("69a8"),c=a("ca5a")("src"),h=a("fa5b"),d="toString",u=(""+h).split(d);a("8378").inspectSource=function(f){return h.call(f)},(n.exports=function(f,p,m,v){var w=typeof m=="function";w&&(l(m,"name")||o(m,"name",p)),f[p]!==m&&(w&&(l(m,c)||o(m,c,f[p]?""+f[p]:u.join(String(p)))),f===s?f[p]=m:v?f[p]?f[p]=m:o(f,p,m):(delete f[p],o(f,p,m)))})(Function.prototype,d,function(){return typeof this=="function"&&this[c]||h.call(this)})},"2aeb":function(n,r,a){var s=a("cb7c"),o=a("1495"),l=a("e11e"),c=a("613b")("IE_PROTO"),h=function(){},d="prototype",u=function(){var f=a("230e")("iframe"),p=l.length,m="<",v=">",w;for(f.style.display="none",a("fab2").appendChild(f),f.src="javascript:",w=f.contentWindow.document,w.open(),w.write(m+"script"+v+"document.F=Object"+m+"/script"+v),w.close(),u=w.F;p--;)delete u[d][l[p]];return u()};n.exports=Object.create||function(p,m){var v;return p!==null?(h[d]=s(p),v=new h,h[d]=null,v[c]=p):v=u(),m===void 0?v:o(v,m)}},"2b4c":function(n,r,a){var s=a("5537")("wks"),o=a("ca5a"),l=a("7726").Symbol,c=typeof l=="function",h=n.exports=function(d){return s[d]||(s[d]=c&&l[d]||(c?l:o)("Symbol."+d))};h.store=s},"2d00":function(n,r){n.exports=!1},"2d95":function(n,r){var a={}.toString;n.exports=function(s){return a.call(s).slice(8,-1)}},"2fdb":function(n,r,a){var s=a("5ca1"),o=a("d2c8"),l="includes";s(s.P+s.F*a("5147")(l),"String",{includes:function(h){return!!~o(this,h,l).indexOf(h,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(n,r,a){var s=a("86cc"),o=a("4630");n.exports=a("9e1e")?function(l,c,h){return s.f(l,c,o(1,h))}:function(l,c,h){return l[c]=h,l}},"38fd":function(n,r,a){var s=a("69a8"),o=a("4bf8"),l=a("613b")("IE_PROTO"),c=Object.prototype;n.exports=Object.getPrototypeOf||function(h){return h=o(h),s(h,l)?h[l]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?c:null}},"41a0":function(n,r,a){var s=a("2aeb"),o=a("4630"),l=a("7f20"),c={};a("32e9")(c,a("2b4c")("iterator"),function(){return this}),n.exports=function(h,d,u){h.prototype=s(c,{next:o(1,u)}),l(h,d+" Iterator")}},"456d":function(n,r,a){var s=a("4bf8"),o=a("0d58");a("5eda")("keys",function(){return function(c){return o(s(c))}})},4588:function(n,r){var a=Math.ceil,s=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?s:a)(o)}},4630:function(n,r){n.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"4bf8":function(n,r,a){var s=a("be13");n.exports=function(o){return Object(s(o))}},5147:function(n,r,a){var s=a("2b4c")("match");n.exports=function(o){var l=/./;try{"/./"[o](l)}catch{try{return l[s]=!1,!"/./"[o](l)}catch{}}return!0}},"520a":function(n,r,a){var s=a("0bfb"),o=RegExp.prototype.exec,l=String.prototype.replace,c=o,h="lastIndex",d=function(){var p=/a/,m=/b*/g;return o.call(p,"a"),o.call(m,"a"),p[h]!==0||m[h]!==0}(),u=/()??/.exec("")[1]!==void 0,f=d||u;f&&(c=function(m){var v=this,w,x,E,_;return u&&(x=new RegExp("^"+v.source+"$(?!\\s)",s.call(v))),d&&(w=v[h]),E=o.call(v,m),d&&E&&(v[h]=v.global?E.index+E[0].length:w),u&&E&&E.length>1&&l.call(E[0],x,function(){for(_=1;_<arguments.length-2;_++)arguments[_]===void 0&&(E[_]=void 0)}),E}),n.exports=c},"52a7":function(n,r){r.f={}.propertyIsEnumerable},5537:function(n,r,a){var s=a("8378"),o=a("7726"),l="__core-js_shared__",c=o[l]||(o[l]={});(n.exports=function(h,d){return c[h]||(c[h]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:a("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(n,r,a){var s=a("7726"),o=a("8378"),l=a("32e9"),c=a("2aba"),h=a("9b43"),d="prototype",u=function(f,p,m){var v=f&u.F,w=f&u.G,x=f&u.S,E=f&u.P,_=f&u.B,T=w?s:x?s[p]||(s[p]={}):(s[p]||{})[d],O=w?o:o[p]||(o[p]={}),X=O[d]||(O[d]={}),R,z,B,A;w&&(m=p);for(R in m)z=!v&&T&&T[R]!==void 0,B=(z?T:m)[R],A=_&&z?h(B,s):E&&typeof B=="function"?h(Function.call,B):B,T&&c(T,R,B,f&u.U),O[R]!=B&&l(O,R,A),E&&X[R]!=B&&(X[R]=B)};s.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,n.exports=u},"5eda":function(n,r,a){var s=a("5ca1"),o=a("8378"),l=a("79e5");n.exports=function(c,h){var d=(o.Object||{})[c]||Object[c],u={};u[c]=h(d),s(s.S+s.F*l(function(){d(1)}),"Object",u)}},"5f1b":function(n,r,a){var s=a("23c6"),o=RegExp.prototype.exec;n.exports=function(l,c){var h=l.exec;if(typeof h=="function"){var d=h.call(l,c);if(typeof d!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(l)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(l,c)}},"613b":function(n,r,a){var s=a("5537")("keys"),o=a("ca5a");n.exports=function(l){return s[l]||(s[l]=o(l))}},"626a":function(n,r,a){var s=a("2d95");n.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return s(o)=="String"?o.split(""):Object(o)}},6762:function(n,r,a){var s=a("5ca1"),o=a("c366")(!0);s(s.P,"Array",{includes:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},6821:function(n,r,a){var s=a("626a"),o=a("be13");n.exports=function(l){return s(o(l))}},"69a8":function(n,r){var a={}.hasOwnProperty;n.exports=function(s,o){return a.call(s,o)}},"6a99":function(n,r,a){var s=a("d3f4");n.exports=function(o,l){if(!s(o))return o;var c,h;if(l&&typeof(c=o.toString)=="function"&&!s(h=c.call(o))||typeof(c=o.valueOf)=="function"&&!s(h=c.call(o))||!l&&typeof(c=o.toString)=="function"&&!s(h=c.call(o)))return h;throw TypeError("Can't convert object to primitive value")}},7333:function(n,r,a){var s=a("0d58"),o=a("2621"),l=a("52a7"),c=a("4bf8"),h=a("626a"),d=Object.assign;n.exports=!d||a("79e5")(function(){var u={},f={},p=Symbol(),m="abcdefghijklmnopqrst";return u[p]=7,m.split("").forEach(function(v){f[v]=v}),d({},u)[p]!=7||Object.keys(d({},f)).join("")!=m})?function(f,p){for(var m=c(f),v=arguments.length,w=1,x=o.f,E=l.f;v>w;)for(var _=h(arguments[w++]),T=x?s(_).concat(x(_)):s(_),O=T.length,X=0,R;O>X;)E.call(_,R=T[X++])&&(m[R]=_[R]);return m}:d},7726:function(n,r){var a=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},"77f1":function(n,r,a){var s=a("4588"),o=Math.max,l=Math.min;n.exports=function(c,h){return c=s(c),c<0?o(c+h,0):l(c,h)}},"79e5":function(n,r){n.exports=function(a){try{return!!a()}catch{return!0}}},"7f20":function(n,r,a){var s=a("86cc").f,o=a("69a8"),l=a("2b4c")("toStringTag");n.exports=function(c,h,d){c&&!o(c=d?c:c.prototype,l)&&s(c,l,{configurable:!0,value:h})}},8378:function(n,r){var a=n.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)},"84f2":function(n,r){n.exports={}},"86cc":function(n,r,a){var s=a("cb7c"),o=a("c69a"),l=a("6a99"),c=Object.defineProperty;r.f=a("9e1e")?Object.defineProperty:function(d,u,f){if(s(d),u=l(u,!0),s(f),o)try{return c(d,u,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(d[u]=f.value),d}},"9b43":function(n,r,a){var s=a("d8e8");n.exports=function(o,l,c){if(s(o),l===void 0)return o;switch(c){case 1:return function(h){return o.call(l,h)};case 2:return function(h,d){return o.call(l,h,d)};case 3:return function(h,d,u){return o.call(l,h,d,u)}}return function(){return o.apply(l,arguments)}}},"9c6c":function(n,r,a){var s=a("2b4c")("unscopables"),o=Array.prototype;o[s]==null&&a("32e9")(o,s,{}),n.exports=function(l){o[s][l]=!0}},"9def":function(n,r,a){var s=a("4588"),o=Math.min;n.exports=function(l){return l>0?o(s(l),9007199254740991):0}},"9e1e":function(n,r,a){n.exports=!a("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(n,r){n.exports=i},a481:function(n,r,a){var s=a("cb7c"),o=a("4bf8"),l=a("9def"),c=a("4588"),h=a("0390"),d=a("5f1b"),u=Math.max,f=Math.min,p=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,w=function(x){return x===void 0?x:String(x)};a("214f")("replace",2,function(x,E,_,T){return[function(R,z){var B=x(this),A=R==null?void 0:R[E];return A!==void 0?A.call(R,B,z):_.call(String(B),R,z)},function(X,R){var z=T(_,X,this,R);if(z.done)return z.value;var B=s(X),A=String(this),it=typeof R=="function";it||(R=String(R));var ot=B.global;if(ot){var V=B.unicode;B.lastIndex=0}for(var k=[];;){var g=d(B,A);if(g===null||(k.push(g),!ot))break;var I=String(g[0]);I===""&&(B.lastIndex=h(A,l(B.lastIndex),V))}for(var D="",j=0,H=0;H<k.length;H++){g=k[H];for(var S=String(g[0]),y=u(f(c(g.index),A.length),0),C=[],F=1;F<g.length;F++)C.push(w(g[F]));var K=g.groups;if(it){var G=[S].concat(C,y,A);K!==void 0&&G.push(K);var tt=String(R.apply(void 0,G))}else tt=O(S,A,y,C,K,R);y>=j&&(D+=A.slice(j,y)+tt,j=y+S.length)}return D+A.slice(j)}];function O(X,R,z,B,A,it){var ot=z+X.length,V=B.length,k=v;return A!==void 0&&(A=o(A),k=m),_.call(it,k,function(g,I){var D;switch(I.charAt(0)){case"$":return"$";case"&":return X;case"`":return R.slice(0,z);case"'":return R.slice(ot);case"<":D=A[I.slice(1,-1)];break;default:var j=+I;if(j===0)return g;if(j>V){var H=p(j/10);return H===0?g:H<=V?B[H-1]===void 0?I.charAt(1):B[H-1]+I.charAt(1):g}D=B[j-1]}return D===void 0?"":D})}})},aae3:function(n,r,a){var s=a("d3f4"),o=a("2d95"),l=a("2b4c")("match");n.exports=function(c){var h;return s(c)&&((h=c[l])!==void 0?!!h:o(c)=="RegExp")}},ac6a:function(n,r,a){for(var s=a("cadf"),o=a("0d58"),l=a("2aba"),c=a("7726"),h=a("32e9"),d=a("84f2"),u=a("2b4c"),f=u("iterator"),p=u("toStringTag"),m=d.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},w=o(v),x=0;x<w.length;x++){var E=w[x],_=v[E],T=c[E],O=T&&T.prototype,X;if(O&&(O[f]||h(O,f,m),O[p]||h(O,p,E),d[E]=m,_))for(X in s)O[X]||l(O,X,s[X],!0)}},b0c5:function(n,r,a){var s=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(n,r){n.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},c366:function(n,r,a){var s=a("6821"),o=a("9def"),l=a("77f1");n.exports=function(c){return function(h,d,u){var f=s(h),p=o(f.length),m=l(u,p),v;if(c&&d!=d){for(;p>m;)if(v=f[m++],v!=v)return!0}else for(;p>m;m++)if((c||m in f)&&f[m]===d)return c||m||0;return!c&&-1}}},c649:function(n,r,a){(function(s){a.d(r,"c",function(){return f}),a.d(r,"a",function(){return d}),a.d(r,"b",function(){return l}),a.d(r,"d",function(){return u}),a("a481");function o(){return typeof window!="undefined"?window.console:s.console}var l=o();function c(p){var m=Object.create(null);return function(w){var x=m[w];return x||(m[w]=p(w))}}var h=/-(\w)/g,d=c(function(p){return p.replace(h,function(m,v){return v?v.toUpperCase():""})});function u(p){p.parentElement!==null&&p.parentElement.removeChild(p)}function f(p,m,v){var w=v===0?p.children[0]:p.children[v-1].nextSibling;p.insertBefore(m,w)}}).call(this,a("c8ba"))},c69a:function(n,r,a){n.exports=!a("9e1e")&&!a("79e5")(function(){return Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(n,r){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}n.exports=a},ca5a:function(n,r){var a=0,s=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++a+s).toString(36))}},cadf:function(n,r,a){var s=a("9c6c"),o=a("d53b"),l=a("84f2"),c=a("6821");n.exports=a("01f9")(Array,"Array",function(h,d){this._t=c(h),this._i=0,this._k=d},function(){var h=this._t,d=this._k,u=this._i++;return!h||u>=h.length?(this._t=void 0,o(1)):d=="keys"?o(0,u):d=="values"?o(0,h[u]):o(0,[u,h[u]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},cb7c:function(n,r,a){var s=a("d3f4");n.exports=function(o){if(!s(o))throw TypeError(o+" is not an object!");return o}},ce10:function(n,r,a){var s=a("69a8"),o=a("6821"),l=a("c366")(!1),c=a("613b")("IE_PROTO");n.exports=function(h,d){var u=o(h),f=0,p=[],m;for(m in u)m!=c&&s(u,m)&&p.push(m);for(;d.length>f;)s(u,m=d[f++])&&(~l(p,m)||p.push(m));return p}},d2c8:function(n,r,a){var s=a("aae3"),o=a("be13");n.exports=function(l,c,h){if(s(c))throw TypeError("String#"+h+" doesn't accept regex!");return String(o(l))}},d3f4:function(n,r){n.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},d53b:function(n,r){n.exports=function(a,s){return{value:s,done:!!a}}},d8e8:function(n,r){n.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},e11e:function(n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(n,r,a){var s=a("5ca1"),o=a("9def"),l=a("d2c8"),c="startsWith",h=""[c];s(s.P+s.F*a("5147")(c),"String",{startsWith:function(u){var f=l(this,u,c),p=o(Math.min(arguments.length>1?arguments[1]:void 0,f.length)),m=String(u);return h?h.call(f,m,p):f.slice(p,p+m.length)===m}})},f6fd:function(n,r){(function(a){var s="currentScript",o=a.getElementsByTagName("script");s in a||Object.defineProperty(a,s,{get:function(){try{throw new Error}catch(h){var l,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(h.stack)||[!1])[1];for(l in o)if(o[l].src==c||o[l].readyState=="interactive")return o[l];return null}}})})(document)},f751:function(n,r,a){var s=a("5ca1");s(s.S+s.F,"Object",{assign:a("7333")})},fa5b:function(n,r,a){n.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(n,r,a){var s=a("7726").document;n.exports=s&&s.documentElement},fb15:function(n,r,a){if(a.r(r),typeof window!="undefined"){a("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1])}a("f751"),a("f559"),a("ac6a"),a("cadf"),a("456d");function o(S){if(Array.isArray(S))return S}function l(S,y){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var C=[],F=!0,K=!1,G=void 0;try{for(var tt=S[Symbol.iterator](),ct;!(F=(ct=tt.next()).done)&&(C.push(ct.value),!(y&&C.length===y));F=!0);}catch(Tt){K=!0,G=Tt}finally{try{!F&&tt.return!=null&&tt.return()}finally{if(K)throw G}}return C}}function c(S,y){(y==null||y>S.length)&&(y=S.length);for(var C=0,F=new Array(y);C<y;C++)F[C]=S[C];return F}function h(S,y){if(!!S){if(typeof S=="string")return c(S,y);var C=Object.prototype.toString.call(S).slice(8,-1);if(C==="Object"&&S.constructor&&(C=S.constructor.name),C==="Map"||C==="Set")return Array.from(S);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(S,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 w=a("a352"),x=a.n(w),E=a("c649");function _(S,y,C){return C===void 0||(S=S||{},S[y]=C),S}function T(S,y){return S.map(function(C){return C.elm}).indexOf(y)}function O(S,y,C,F){if(!S)return[];var K=S.map(function(ct){return ct.elm}),G=y.length-F,tt=v(y).map(function(ct,Tt){return Tt>=G?K.length:K.indexOf(ct)});return C?tt.filter(function(ct){return ct!==-1}):tt}function X(S,y){var C=this;this.$nextTick(function(){return C.$emit(S.toLowerCase(),y)})}function R(S){var y=this;return function(C){y.realList!==null&&y["onDrag"+S](C),X.call(y,S,C)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function B(S){if(!S||S.length!==1)return!1;var y=u(S,1),C=y[0].componentOptions;return C?z(C.tag):!1}function A(S,y,C){return S[C]||(y[C]?y[C]():void 0)}function it(S,y,C){var F=0,K=0,G=A(y,C,"header");G&&(F=G.length,S=S?[].concat(v(G),v(S)):v(G));var tt=A(y,C,"footer");return tt&&(K=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:K}}function ot(S,y){var C=null,F=function($t,Le){C=_(C,$t,Le)},K=Object.keys(S).filter(function(Tt){return Tt==="id"||Tt.startsWith("data-")}).reduce(function(Tt,$t){return Tt[$t]=S[$t],Tt},{});if(F("attrs",K),!y)return C;var G=y.on,tt=y.props,ct=y.attrs;return F("on",G),F("props",tt),Object.assign(C.attrs,ct),C}var V=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(V,k).map(function(S){return"on"+S}),I=null,D={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(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 C=this.$slots.default;this.transitionMode=B(C);var F=it(C,this.$slots,this.$scopedSlots),K=F.children,G=F.headerOffset,tt=F.footerOffset;this.headerOffset=G,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return 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 C={};V.forEach(function(G){C["on"+G]=R.call(y,G)}),k.forEach(function(G){C["on"+G]=X.bind(y,G)});var F=Object.keys(this.$attrs).reduce(function(G,tt){return G[Object(E.a)(tt)]=y.$attrs[tt],G},{}),K=Object.assign({},this.options,F,C,{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 C in y){var F=Object(E.a)(C);g.indexOf(F)===-1&&this._sortable.option(F,y[C])}},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 C=T(this.getChildrenNodes()||[],y);if(C===-1)return null;var F=this.realList[C];return{index:C,element:F}},getUnderlyingPotencialDraggableComponent:function(y){var C=y.__vue__;return!C||!C.$options||!z(C.$options._componentTag)?!("realList"in C)&&C.$children.length===1&&"realList"in C.$children[0]?C.$children[0]:C:C.$parent},emitChanges:function(y){var C=this;this.$nextTick(function(){C.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var C=v(this.value);y(C),this.$emit("input",C)},spliceList:function(){var y=arguments,C=function(K){return K.splice.apply(K,v(y))};this.alterList(C)},updatePosition:function(y,C){var F=function(G){return G.splice(C,0,G.splice(y,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(y){var C=y.to,F=y.related,K=this.getUnderlyingPotencialDraggableComponent(C);if(!K)return{component:K};var G=K.realList,tt={list:G,component:K};if(C!==F&&G&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(y){var C=this.visibleIndexes,F=C.length;return y>F-1?F:C[y]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(y){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var C=this.getChildrenNodes();C[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 C=y.item._underlying_vm_;if(C!==void 0){Object(E.d)(y.item);var F=this.getVmIndex(y.newIndex);this.spliceList(F,0,C),this.computeIndexes();var K={element:C,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 C=this.context.index;this.spliceList(C,1);var F={element:this.context.element,oldIndex:C};this.resetTransitionData(C),this.emitChanges({removed:F})},onDragUpdate:function(y){Object(E.d)(y.item),Object(E.c)(y.from,y.item,y.oldIndex);var C=this.context.index,F=this.getVmIndex(y.newIndex);this.updatePosition(C,F);var K={element:this.context.element,oldIndex:C,newIndex:F};this.emitChanges({moved:K})},updateProperty:function(y,C){y.hasOwnProperty(C)&&(y[C]+=this.headerOffset)},computeFutureIndex:function(y,C){if(!y.element)return 0;var F=v(C.to.children).filter(function(ct){return ct.style.display!=="none"}),K=F.indexOf(C.related),G=y.component.getVmIndex(K),tt=F.indexOf(I)!==-1;return tt||!C.willInsertAfter?G:G+1},onDragMove:function(y,C){var F=this.move;if(!F||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(y),G=this.context,tt=this.computeFutureIndex(K,y);Object.assign(G,{futureIndex:tt});var ct=Object.assign({},y,{relatedContext:K,draggedContext:G});return F(ct,C)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var H=j;r.default=H}}).default})})(Yd);var A1=zp(Yd.exports),P1=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)},N1=[];const B1={components:{tabbar:ti,MyApps:js,appsItem:ze,Draggable:A1},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){wt("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},vf={};var F1=Y(B1,P1,N1,!1,R1,null,null,null);function R1(e){for(let t in vf)this[t]=vf[t]}var co=function(){return F1.exports}(),V1=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)},z1=[],f_="";const j1={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}}},gf={};var H1=Y(j1,V1,z1,!1,U1,"1cee7da5",null,null);function U1(e){for(let t in gf)this[t]=gf[t]}var uo=function(){return H1.exports}(),K1=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()])},W1=[];const Y1={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})}}},yf={};var X1=Y(Y1,K1,W1,!1,G1,null,null,null);function G1(e){for(let t in yf)this[t]=yf[t]}var ho=function(){return X1.exports}(),q1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",{staticClass:"customnnnmmmm-tabs-container"},[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-custom-tabs-content"},[i("div",{staticClass:"ind-m-custom-sidebar"},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,class:["ind-m-sidebar-item",{active:e.activeKey===r}],on:{click:function(a){return e.handleSidebarClick(r)}}},[i("span",{class:["ind-m-sidebar-text",{active:e.activeKey===r}]},[e._v(" "+e._s(n.meta.title)+" ")])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"300px",height:"100%"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,staticClass:"ind-m-menu-section",attrs:{id:"section-"+e.active+"-"+r,"data-index":r}},[i("div",{staticClass:"ind-m-divider-container"},[i("van-divider",{staticClass:"ind-m-custom-divider"},[e._v(" "+e._s(n.meta.title)+" ")])],1),i("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row"}},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,style:{width:e.getTreeTotalDepth(n)>2?"100%":"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:e.getTreeTotalDepth(n)>2?null:"center",justifyContent:"center",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row",marginBottom:e.getTreeTotalDepth(n)>2?"20px":"0px"}},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}}),a.children?i("div",{staticClass:"ind-m-category-header"},[i("div",{staticClass:"ind-m-category-indicator"}),i("div",{staticClass:"ind-m-category-title"},[e._v(e._s(a.meta.title))])]):e._e(),a.children?i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children[r]&&e.apps_menus[e.active].children[r].children[s]&&e.apps_menus[e.active].children[r].children[s].children||[],function(o){return i("div",{key:o.meta.permissionId,style:{width:"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},J1=[];const Z1={components:{tabbar:ti,appsItem:ze,myapp:ho},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}}},bf={};var Q1=Y(Z1,q1,J1,!1,t$,null,null,null);function t$(e){for(let t in bf)this[t]=bf[t]}var e$=function(){return Q1.exports}(),i$=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)},n$=[];const r$={components:{tabbar:ti,appsItem:ze,myapp:ho},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}}},Sf={};var a$=Y(r$,i$,n$,!1,s$,null,null,null);function s$(e){for(let t in Sf)this[t]=Sf[t]}var o$=function(){return a$.exports}(),l$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},c$=[];const u$={components:{abovelevelTwoOld:e$,abovelevelTwoNew:o$},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},wf={};var h$=Y(u$,l$,c$,!1,d$,null,null,null);function d$(e){for(let t in wf)this[t]=wf[t]}var f$=function(){return h$.exports}(),p$=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)},m$=[];function fo(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 v$={components:{tabbar:ti,appsItem:ze,myapp:ho},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=fo(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=fo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=fo(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}}},Cf={};var g$=Y(v$,p$,m$,!1,y$,null,null,null);function y$(e){for(let t in Cf)this[t]=Cf[t]}var b$=function(){return g$.exports}(),S$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndMCard",{attrs:{showHeader:!1,innerPadding:"0px"}},[i("div",{staticClass:"ind-myApp-slim-new-content"},[i("div",{staticClass:"ind-myApp-slim-new-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-new-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-new-icon-group"},e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-new-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"8px","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon)}})])}),0),e.icons.length!==0&&!e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-forward"}}):e._e(),e.icons.length!==0&&e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-down"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-new-content-button"},[i("div",{staticClass:"ind-myApp-slim-new-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto"}},[i("van-swipe",{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()])},w$=[];const C$={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}},xf={};var x$=Y(C$,S$,w$,!1,$$,null,null,null);function $$(e){for(let t in xf)this[t]=xf[t]}var k$=function(){return x$.exports}(),T$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-app-center",staticStyle:{position:"relative"}},[i("van-sticky",{directives:[{name:"show",rawName:"v-show",value:!e.isHb,expression:"!isHb"}]},[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-new-app-page"},[i("div",{staticStyle:{position:"absolute",left:"0",width:"100%",height:"22vh","z-index":"0"},style:{top:e.isHb?"0px":"48px"}},[i("IndMImgLoad",{attrs:{pick:"ind:appNew:bg",type:"TableData"}})],1),i("div",{staticClass:"ind-m-new-placeholder"},[i("van-search",{staticClass:"ind-m-new-placeholder-search",attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-left"},[i("Icon",{attrs:{type:"md-search"}})],1)]},proxy:!0},{key:"right-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-right",on:{click:e.onSearch}},[e._v("\u641C\u7D22")])]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"90vw",height:"50vh","background-color":"var(--ind-m-home-bg-color)"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 4)",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myappNew",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"custom-new-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"custom-new-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"custom-new-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"custom-new-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"custom-new-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-new-app-container",staticStyle:{padding:"0px 0px 150px 0px"},style:{height:e.disMyapp?"calc(100vh - 410px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("IndMCard",{key:r,attrs:{padding:"0px 10px 10px 10px",title:n.meta.title,icon:"/public/imgs/resource/card-icon.png"}},[i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(n.children,function(a){return i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])}),1)]),i("tabbar")],1)],1)},_$=[];function po(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 I$={components:{tabbar:ti,appsItem:ze,myappNew:k$},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=po(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=po(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=po(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},$f={};var E$=Y(I$,T$,_$,!1,D$,null,null,null);function D$(e){for(let t in $f)this[t]=$f[t]}var M$=function(){return E$.exports}(),O$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},L$=[];const A$={components:{levelTwoOld:b$,levelTwoNew:M$},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},kf={};var P$=Y(A$,O$,L$,!1,N$,null,null,null);function N$(e){for(let t in kf)this[t]=kf[t]}var B$=function(){return P$.exports}(),F$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},R$=[];function Tf(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=Tf(n,t+1);r>i&&(i=r)}return i}function V$(e){let t=0;for(const i of e){const n=Tf(i);n>t&&(t=n)}return t}const z$={components:{aboveleveltwo:f$,leveltwo:B$},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=V$(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"}}},_f={};var j$=Y(z$,F$,R$,!1,H$,null,null,null);function H$(e){for(let t in _f)this[t]=_f[t]}var mo=function(){return j$.exports}(),U$=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..."))])])])])])},K$=[];const W$={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)}}},If={};var Y$=Y(W$,U$,K$,!1,X$,null,null,null);function X$(e){for(let t in If)this[t]=If[t]}var Ef=function(){return Y$.exports}(),G$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-page"},[i("van-sticky",[i("van-nav-bar",{attrs:{fixed:!0,"left-arrow":"",placeholder:!0,"safe-area-inset-top":!0,title:"\u8BBE\u7F6E"},on:{"click-left":e.onClickLeft}})],1),i("van-cell-group",{attrs:{title:"\u8BBE\u7F6E"}},[i("van-cell",{attrs:{title:"vconsole\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.vconsoleChecked,callback:function(n){e.vconsoleChecked=n},expression:"vconsoleChecked"}})],1),e.isHb?i("van-cell",{attrs:{title:"\u8FDC\u7A0B\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.chiiChecked,callback:function(n){e.chiiChecked=n},expression:"chiiChecked"}})],1):e._e()],1)],1)},q$=[];const J$={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()}}},Df={};var Z$=Y(J$,G$,q$,!1,Q$,null,null,null);function Q$(e){for(let t in Df)this[t]=Df[t]}var vo=function(){return Z$.exports}(),tk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticStyle:{width:"100%",height:"100%","text-align":"right"},on:{click:function(n){e.isshow=!0}}},[i("span",{staticStyle:{color:"#c5d2e3"}},[e._v(e._s(e.resultList.length?"\u5DF2\u4E0A\u4F20"+e.resultList.length+"\u4E2A\u6587\u4EF6":"\u8BF7\u4E0A\u4F20"))]),i("Icon",{staticStyle:{"font-size":"16px",color:"#808695 !important"},attrs:{type:"ios-arrow-forward"}})],1),i("van-popup",{attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.isshow,callback:function(n){e.isshow=n},expression:"isshow"}},[i("van-overlay",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-up-loading-overlay",attrs:{"z-index":"9999",show:e.loading}},[i("div",{staticClass:"ind-up-loading-wrapper"},[i("van-loading",{attrs:{color:"#1989fa",size:"25px"}}),i("div",{staticClass:"ind-up-loading-text"},[e._v("\u4E0A\u4F20\u4E2D...")])],1)]),i("div",{staticStyle:{height:"100vh",width:"100vw",display:"flex","flex-direction":"column","justify-content":"space-between","background-color":"rgb(240 240 240)"}},[i("div",{staticStyle:{height:"48px",width:"100vw"}},[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u4E0A\u4F20","left-text":"","left-arrow":""},on:{"click-left":function(n){e.isshow=!1}}})],1),i("div",{style:{height:e.readonly?"100%":"calc(100vh - 100px)"}},[e.readonly?e._e():i("div",{staticClass:"ind-upLoad-clickHere",on:{click:e.uploadFile}},[i("div",{staticClass:"ind-upLoad-clickHere-icon"},[i("Icon",{staticClass:"ind-upLoad-clickHere-icon-icon",attrs:{type:"ios-cloud-upload"}}),i("div",{staticClass:"ind-upLoad-clickHere-icon-text"},[e._v("\u70B9\u51FB\u4E0A\u4F20")])],1)]),i("div",{staticClass:"ind-upLoad-file-list",staticStyle:{"overflow-y":"auto"},style:{height:e.readonly?"100%":"calc(100% - 220px)",padding:"10px"}},[e.resultList.length?i("div",{staticStyle:{"background-color":"#fff",height:"100%","overflow-y":"auto","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),e._l(e.resultList||e.defaultList,function(n,r){return i("van-cell",{key:r},[i("div",{staticClass:"ind-upLoad-file-list-container-item"},[i("div",{staticClass:"ind-upLoad-file-list-container-ititle",on:{click:function(a){return e.handleClickAttachment(n)}}},[e._v(" "+e._s(n.fileName)+" ")]),e.readonly?e._e():i("div",{staticClass:"ind-upLoad-file-list-container-idel",on:{click:function(a){return e.deleteFile(n.fileId)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idel-btn"},[i("Icon",{staticStyle:{"font-size":"16px"},attrs:{type:"md-trash"}}),e._v("\u5220\u9664 ")],1)]),e.shouldShowDelete?i("div",{staticClass:"ind-upLoad-file-list-container-idownload",on:{click:function(a){return e.handleDownload(n)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idownload-btn"},[i("Icon",{staticStyle:{"font-size":"18px"},attrs:{type:"md-cloud-download"}}),e._v(" \u4E0B\u8F7D ")],1)]):e._e()])])})],2):i("div",{staticStyle:{"background-color":"#fff",height:"100%",overflow:"hidden","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),i("van-empty",{attrs:{description:"\u6682\u65E0\u6587\u4EF6"}})],1)])]),e.readonly?e._e():i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1),i("input",{ref:"uploadInput",staticStyle:{position:"absolute",clip:"rect(0 0 0 0)"},attrs:{type:"file",disabled:!1,multiple:!0,accept:e.accept},on:{change:function(n){return e.readFile(n)}}})])],1),i("van-popup",{style:{width:"100%",height:"100%"},attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.previewVisible,callback:function(n){e.previewVisible=n},expression:"previewVisible"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u9884\u89C8","left-text":"","left-arrow":""},on:{"click-left":e.closePreview}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[e.isHB?i("iframe",{staticClass:"preview-iframe",staticStyle:{height:"calc(100vh - 48px)"},attrs:{src:e.previewUrl,frameborder:"0"}}):i("div",{staticStyle:{width:"100%",height:"calc(100% - 46px)"},attrs:{id:"wps-preview-container"}})])],1)],1)},ek=[];function ik(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 nk={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:ik(s.length),otherParam:e.otherParam};e.resultList.push(o)})}else e.loading=!1;e.$refs.uploadInput.value=null}).catch(()=>{e.loading=!1,e.$refs.uploadInput.value=null})},uploadFile(){this.$refs.uploadInput.click()},deleteFile(e){if(e){let t=[];this.resultList.forEach(i=>{i.fileId!==e&&t.push(i)}),this.resultList=t}},cancel(){this.resultList=this.deepdefaultList,this.$emit("onChangeData",this.resultList),this.isshow=!1},confirm(){this.$emit("onChangeData",this.resultList),this.isshow=!1},handleDownload(e){const t=navigator.userAgent;/miniProgram/i.test(t)?this.goToMiniProgramDown(e):this.h5Download(e)},async h5Download(e){var n;const t=e.fileUrl?e.fileUrl:`${this.ossServerContext}/oss/file/get/${e.fileId}`,i=M.getToken();try{const r=await fetch(t,{headers:{token:i}});if(!r.ok)throw new Error(`\u4E0B\u8F7D\u5931\u8D25: ${r.status}`);const a=await r.blob();let s="application/octet-stream";const l=((n=e==null?void 0:e.fileName)==null?void 0:n.toLowerCase()).match(/\.([a-z0-9]+)$/),c=l==null?void 0:l[1];M.MIME_TYPE[c]&&(s=M.MIME_TYPE[c]);const h=new Blob([a],{type:s}),d=window.URL.createObjectURL(h),u=document.createElement("a");u.href=d,u.download=e.fileName,u.style.display="none",u.target="_blank",document.body.appendChild(u),u.click(),document.body.removeChild(u)}catch(r){console.error("\u4E0B\u8F7D\u51FA\u9519:",r),this.$Message.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},goToMiniProgramDown(e){e.fileId?wx.miniProgram.navigateTo({url:`/pages/download/index?downloadFileId=${e.fileId}`}):console.error("\u6587\u4EF6ID\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8DF3\u8F6C")},async handleClickAttachment(e){let t=this;if(e.fileName.endsWith("psd")||e.fileName.endsWith("m4v")||e.fileName.endsWith("rar")||e.fileName.endsWith("zip"))return this.$Message.error("\u8BE5\u683C\u5F0F\u7684\u6587\u4EF6\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8"),!1;if(location.pathname.includes("scyxweb")){let i="";await M.axios.get("/user-manage-server/manage/user/getCurrentInfo").then(n=>{if(n.code===1){const r=e.fileName.endsWith(".jpg")||e.fileName.endsWith(".jpeg")||e.fileName.endsWith(".png")||e.fileName.endsWith(".gif");let a="";r?a=`${t.$config.mdPictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.mdDocDownLoadApi}${e.fileId}&fullfilename=${e.fileName}`;const s=e.fileName.endsWith(".doc")||e.fileName.endsWith(".docx")||e.fileName.endsWith(".ppt")||e.fileName.endsWith(".pptx")||e.fileName.endsWith(".xls")||e.fileName.endsWith(".xlsx")||e.fileName.endsWith(".pdf");let o="";s&&(o="&officePreviewType=pdf&tifPreviewType=jpg"),t.watermark==="0"?t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}${o}`:(i=n.data.displayName+n.data.loginName,t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}&watermarkTxt=${i}${t.$config.KKfilePrevieWatermarkStyle||""}${o}`),t.previewVisible=!0}})}else this.openPreview(e)},getPreviewUrlApi(e){var n;const t=location.protocol==="https:"?"1":"",i=M.getToken()||sessionStorage.getItem("sso_token");return M.axios.get(`${location.protocol}//${location.host}/ind-uc-ext-server/api/wps/getPreviewUrl/${e}?isWeb=${t}&previewMode=high_definition`,{headers:{Authorization:`Bearer ${i}`,"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.content)||""}})},async openPreview(e){try{const t=await this.getPreviewUrlApi(e.fileId);if(t.code!=1)throw new Error("\u83B7\u53D6\u9884\u89C8\u94FE\u63A5\u5931\u8D25");const i=t.data;this.previewVisible=!0,await this.$nextTick();const n=document.getElementById("wps-preview-container");if(!n)throw new Error("\u672A\u627E\u5230\u9884\u89C8\u6302\u8F7D\u8282\u70B9");const r=OpenSDK.config({url:i,mount:n}),a=M.getToken()||sessionStorage.getItem("sso_token");if(!a)throw new Error("\u672A\u627E\u5230\u6709\u6548 Token");r.setToken({token:a,timeout:10*60*1e3})}catch(t){console.error("\u9884\u89C8\u5931\u8D25:",t),this.$Message.error(`\u9884\u89C8\u5931\u8D25: ${t.message}`)}},closePreview(){this.previewVisible=!1},readFile(e){let t=this;if(!e.target.files||e.target.files.length===0)return this.$Message.warning({content:"\u6CA1\u6709\u9009\u62E9\u6587\u4EF6\u6216\u6587\u4EF6\u5217\u8868\u4E3A\u7A7A"}),!1;const i=e.target.files[0],n=this.fileSuffix.split("|"),r="\\.("+n.join("|")+")$";if(!new RegExp(r,"i").test(i.name))return this.$Message.warning({content:"\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F pdf\uFF0Cdoc\uFF0Cdocx\uFF0Ctxt\uFF0Cxls\uFF0Cxlsx\uFF0Czip\uFF0Ccsv\uFF0Cmp4\uFF0Cmov\uFF0Cjpg\uFF0Cjpeg\uFF0Cpng\uFF0Cgif \u4E2D\u7684\u4E00\u79CD"}),t.$refs.uploadInput.value=null,!1;if(i.size/(1024*1024)>t.fileSizeLimit)return this.$Message.warning({content:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${t.fileSizeLimit}MB`}),t.$refs.uploadInput.value=null,!1;let l=i.name;l.indexOf("/")>0&&(l=l.substring(l.lastIndexOf("/")+1)),l.indexOf("\\")>0&&(l=l.substring(l.lastIndexOf("\\")+1));const c=l.lastIndexOf("."),h=c>-1?l.substring(c+1):"";t.attachmentFile={fileName:l,fileType:h,size:i.size},t.uploadFileToServer()}},mounted(){location.pathname.includes("scyxweb")?this.isHB=!0:this.isHB=!1}},Mf={};var rk=Y(nk,tk,ek,!1,ak,null,null,null);function ak(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return rk.exports}(),sk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-inner"},[i("div",{staticClass:"ind-common-m-card-inner-inner"},[e.showHeader?i("div",{staticClass:"ind-common-m-card-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-title-icon"},[i("IndMImgLoad",{attrs:{pick:"cardIcon",width:"12px",height:"14px"}})],1):e._e(),i("div",{staticClass:"ind-common-m-card-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-content",style:{padding:e.innerPadding}},[e._t("default")],2)])])])},ok=[];const lk={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"}}},Lf={};var ck=Y(lk,sk,ok,!1,uk,null,null,null);function uk(e){for(let t in Lf)this[t]=Lf[t]}var Af=function(){return ck.exports}(),hk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-item-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-item-inner-inner"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-common-m-card-item-loading-mask"},[i("div",{staticClass:"ind-common-m-card-item-loading-spinner"}),i("div",{staticStyle:{"margin-top":"5px",color:"var(--ind-m-new-font-color5)"}},[e._v("\u52A0\u8F7D\u4E2D")])]),e.showHeader?i("div",{staticClass:"ind-common-m-card-item-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-item-title-icon"},[i("div",{staticClass:"ind-common-m-card-item-title-icon-icon"})]):e._e(),i("div",{staticClass:"ind-common-m-card-item-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-item-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-item-content"},[e._t("default")],2)])])},dk=[];const fk={name:"GlassCard-item",props:{title:{type:String,default:""},icon:{type:String,default:""},showTitle:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},width:{type:String,default:"100%"},padding:{type:String,default:"10px 10px 0px 10px"},margin:{type:String,default:"0px"},loading:{type:Boolean,default:!1}}},Pf={};var pk=Y(fk,hk,dk,!1,mk,null,null,null);function mk(e){for(let t in Pf)this[t]=Pf[t]}var Nf=function(){return pk.exports}(),vk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{width:e.width,height:e.height}},[i("div",{style:e.getIcon},[e._t("default")],2)])},gk=[];const yk={props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},pick:{type:String,default:"home-bg"},type:{type:String,default:"TableData"},size:{type:String,default:"cover"},position:{type:String,default:"center"},repeat:{type:String,default:"no-repeat"},ossServerContext:{type:String,default:(location.pathname.includes("scyxweb")?"/scyxgateway":"")+"/ind-uc-ext-server"}},computed:{getIcon(){var i,n;const e=`icon${this.type}`,t=(n=(i=this.$config)==null?void 0:i.systemDefaultConfig)==null?void 0:n[e];try{if(!Array.isArray(t))return console.error("\u914D\u7F6E\u4E0D\u662F\u6570\u7EC4:",t),{display:"none"};if(t.length===0)return console.error("\u6570\u7EC4\u4E3A\u7A7A"),{display:"none"};const r=t.find(h=>(h==null?void 0:h.positionId)===this.pick);if(!r)return console.error(`\u672A\u627E\u5230\u5339\u914D\u7684\u56FE\u6807\u914D\u7F6E\u3002pick: ${this.pick}`),{display:"none"};const a=r.iconFieldId||r.iconFielId;if(!a)return console.error("iconFieldId/iconFielId \u4E3A\u7A7A\uFF0C\u53EF\u7528\u5B57\u6BB5:",Object.keys(r)),{display:"none"};let s;try{s=JSON.parse(a)}catch(h){return console.error("JSON \u89E3\u6790\u5931\u8D25:",h,"\u539F\u59CB\u503C:",a),{display:"none"}}if(!Array.isArray(s)||s.length===0)return console.error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u975E\u7A7A\u6570\u7EC4:",s),{display:"none"};const o=s[0],l=o==null?void 0:o.fileId;if(!l)return console.error("fileId \u4E3A\u7A7A\uFF0C\u89E3\u6790\u7ED3\u679C:",o),{display:"none"};const c=this.ossServerContext;return c?{backgroundImage:`url(${c}/oss/file/get/${l})`,backgroundSize:this.size,backgroundRepeat:this.repeat,backgroundPosition:this.position,width:"100%",height:"100%"}:(console.error("ossServerContext \u672A\u914D\u7F6E"),{display:"none"})}catch(r){return console.error("getIcon \u6267\u884C\u51FA\u9519:",r),{display:"none"}}}},methods:{}},Bf={};var bk=Y(yk,vk,gk,!1,Sk,null,null,null);function Sk(e){for(let t in Bf)this[t]=Bf[t]}var Ff=function(){return bk.exports}(),go=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:Qr,DatePicker:Uo,Form:rl,LoadMore:sl,User1:pl,BasicLayout:vl,EmptyLayout:$i,DetailView:wl,PageView:xl,PopupView:kl,QueryView:_l,Login:Vs,Search:Md,SelectPanel:Ad,InputSelect:Nd,SelectBtn:Fd,User:zs,Apps:co,AppsEdit:uo,MyApps:js,AppsNew:mo,appItem:ze,tabbar:ti,LoadingPanel:Ef,Setting:vo,UploadFile:Of,Card:Af,CardItem:Nf,ImgLoad:Ff},Symbol.toStringTag,{value:"Module"})),Rf={install(e,{config:t}={}){e.prototype.$config=b.default.merge({},e.prototype.$config||{},t||M.config)}},Vf={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)}}},wk=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:Rf,IndRouterPlugin:Vf},Symbol.toStringTag,{value:"Module"}));const zf=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="")},jf={bind:zf,update:zf};var yo=Object.freeze(Object.defineProperty({__proto__:null,permission:jf},Symbol.toStringTag,{value:"Module"}));const Hf={name:Ae.rootRouteName,path:"/",component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Ae.homeRouteName,path:"home",meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},Ck={name:Ae.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:Vs},xk={name:"user",path:"/user",component:zs,meta:{hideInMenu:!0,notCache:!0}},$k={name:"setting",path:"/setting",component:vo,meta:{hideInMenu:!0,notCache:!0}},kk={name:"apps",path:"/apps",component:co,meta:{hideInMenu:!0,notCache:!0}},Tk={name:"appsNew",path:"/appsNew",component:mo,meta:{hideInMenu:!0,notCache:!0}},_k={name:"appsEdit",path:"/appsEdit",component:uo,meta:{hideInMenu:!0,notCache:!0}},Ik={path:"/404",meta:{hideInMenu:!0},component:Ui};function Ek({homeComponent:e,rootChildren:t}={}){const i=b.default.cloneDeep(Hf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[Ck]:[];return[i,...n,xk,$k,kk,_k,Ik,Tk]}function Dk({rootChildren:e}={}){const t=b.default.cloneDeep(Hf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const Mk={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},Vr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Uf(e){return[Vr.DIRECTORY,Vr.MENU].includes(e)}function Kf(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 bo({list:e,menuTree:t,pageNode:i,parentId:n,crumbs:r,root:a}){if(!e)return;let s=M.getSessionStorage("appInfo");e.forEach(o=>{var _;const{permissionId:l,label:c,appId:h,pid:d,icon:u,type:f,uri:p,permissionValue:m,extendProps:v}=o;if(h!=s.appId)return;const w=m;let x=!1,E=!1;if(o&&o.extendProps)try{x=((_=JSON.parse(o.extendProps))==null?void 0:_.hideInIbp)==="1"}catch{x=!1}try{if(o&&o.extension){const T=JSON.parse(o.extension);if(T.extendProps){const O=typeof T.extendProps=="string"?JSON.parse(T.extendProps):T.extendProps;(O==null?void 0:O.hideInMenu)==1&&(E=!0)}}}catch{E=!1}if(d===n&&!(x||E)){if(Uf(f)){let T={type:f,name:w,pid:d,path:Wf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:w},children:[],extendProps:v};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),Vr.DIRECTORY===f&&(T.component="EmptyLayout"),bo({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:w,pid:d,path:Wf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),i.children.push(T)}}})}function Wf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function Yf(e=[]){e=e.filter(i=>Uf(i.type));const t=[];return bo({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function Ok(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return bo({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),So(t)}function So(e=[]){for(let t of e)if(t.component){const i=Mk[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&&So(t.children)}return e}var wo={exports:{}},Xf=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)}},Lk=Xf,Si=Object.prototype.toString;function Co(e){return Si.call(e)==="[object Array]"}function xo(e){return typeof e=="undefined"}function Ak(e){return e!==null&&!xo(e)&&e.constructor!==null&&!xo(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Pk(e){return Si.call(e)==="[object ArrayBuffer]"}function Nk(e){return typeof FormData!="undefined"&&e instanceof FormData}function Bk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Fk(e){return typeof e=="string"}function Rk(e){return typeof e=="number"}function Gf(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 Vk(e){return Si.call(e)==="[object Date]"}function zk(e){return Si.call(e)==="[object File]"}function jk(e){return Si.call(e)==="[object Blob]"}function qf(e){return Si.call(e)==="[object Function]"}function Hk(e){return Gf(e)&&qf(e.pipe)}function Uk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Kk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Wk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function $o(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Co(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 ko(){var e={};function t(r,a){zr(e[a])&&zr(r)?e[a]=ko(e[a],r):zr(r)?e[a]=ko({},r):Co(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)$o(arguments[i],t);return e}function Yk(e,t,i){return $o(t,function(r,a){i&&typeof r=="function"?e[a]=Lk(r,i):e[a]=r}),e}function Xk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:Co,isArrayBuffer:Pk,isBuffer:Ak,isFormData:Nk,isArrayBufferView:Bk,isString:Fk,isNumber:Rk,isObject:Gf,isPlainObject:zr,isUndefined:xo,isDate:Vk,isFile:zk,isBlob:jk,isFunction:qf,isStream:Hk,isURLSearchParams:Uk,isStandardBrowserEnv:Wk,forEach:$o,merge:ko,extend:Yk,trim:Kk,stripBOM:Xk},zi=Zt;function Jf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Zf=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(Jf(c)+"="+Jf(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Gk=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){Gk.forEach(this.handlers,function(n){n!==null&&t(n)})};var qk=jr,Jk=Zt,Zk=function(t,i){Jk.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},Qf=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},Qk=Qf,tp=function(t,i,n,r,a){var s=new Error(t);return Qk(s,i,n,r,a)},tT=tp,eT=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(tT("Request failed with status code "+n.status,n.config,null,n.request,n))},Hr=Zt,iT=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(){}}}(),nT=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},rT=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},aT=nT,sT=rT,oT=function(t,i){return t&&!aT(i)?sT(t,i):i},To=Zt,lT=["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"],cT=function(t){var i={},n,r,a;return t&&To.forEach(t.split(`
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(S){return f(S)||p(S)||h(S)||m()}var w=a("a352"),x=a.n(w),E=a("c649");function _(S,y,C){return C===void 0||(S=S||{},S[y]=C),S}function T(S,y){return S.map(function(C){return C.elm}).indexOf(y)}function O(S,y,C,F){if(!S)return[];var K=S.map(function(ct){return ct.elm}),G=y.length-F,tt=v(y).map(function(ct,Tt){return Tt>=G?K.length:K.indexOf(ct)});return C?tt.filter(function(ct){return ct!==-1}):tt}function X(S,y){var C=this;this.$nextTick(function(){return C.$emit(S.toLowerCase(),y)})}function R(S){var y=this;return function(C){y.realList!==null&&y["onDrag"+S](C),X.call(y,S,C)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function B(S){if(!S||S.length!==1)return!1;var y=u(S,1),C=y[0].componentOptions;return C?z(C.tag):!1}function A(S,y,C){return S[C]||(y[C]?y[C]():void 0)}function it(S,y,C){var F=0,K=0,G=A(y,C,"header");G&&(F=G.length,S=S?[].concat(v(G),v(S)):v(G));var tt=A(y,C,"footer");return tt&&(K=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:K}}function ot(S,y){var C=null,F=function($t,Le){C=_(C,$t,Le)},K=Object.keys(S).filter(function(Tt){return Tt==="id"||Tt.startsWith("data-")}).reduce(function(Tt,$t){return Tt[$t]=S[$t],Tt},{});if(F("attrs",K),!y)return C;var G=y.on,tt=y.props,ct=y.attrs;return F("on",G),F("props",tt),Object.assign(C.attrs,ct),C}var V=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(V,k).map(function(S){return"on"+S}),I=null,D={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(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 C=this.$slots.default;this.transitionMode=B(C);var F=it(C,this.$slots,this.$scopedSlots),K=F.children,G=F.headerOffset,tt=F.footerOffset;this.headerOffset=G,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return 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 C={};V.forEach(function(G){C["on"+G]=R.call(y,G)}),k.forEach(function(G){C["on"+G]=X.bind(y,G)});var F=Object.keys(this.$attrs).reduce(function(G,tt){return G[Object(E.a)(tt)]=y.$attrs[tt],G},{}),K=Object.assign({},this.options,F,C,{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 C in y){var F=Object(E.a)(C);g.indexOf(F)===-1&&this._sortable.option(F,y[C])}},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 C=T(this.getChildrenNodes()||[],y);if(C===-1)return null;var F=this.realList[C];return{index:C,element:F}},getUnderlyingPotencialDraggableComponent:function(y){var C=y.__vue__;return!C||!C.$options||!z(C.$options._componentTag)?!("realList"in C)&&C.$children.length===1&&"realList"in C.$children[0]?C.$children[0]:C:C.$parent},emitChanges:function(y){var C=this;this.$nextTick(function(){C.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var C=v(this.value);y(C),this.$emit("input",C)},spliceList:function(){var y=arguments,C=function(K){return K.splice.apply(K,v(y))};this.alterList(C)},updatePosition:function(y,C){var F=function(G){return G.splice(C,0,G.splice(y,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(y){var C=y.to,F=y.related,K=this.getUnderlyingPotencialDraggableComponent(C);if(!K)return{component:K};var G=K.realList,tt={list:G,component:K};if(C!==F&&G&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(y){var C=this.visibleIndexes,F=C.length;return y>F-1?F:C[y]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(y){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var C=this.getChildrenNodes();C[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 C=y.item._underlying_vm_;if(C!==void 0){Object(E.d)(y.item);var F=this.getVmIndex(y.newIndex);this.spliceList(F,0,C),this.computeIndexes();var K={element:C,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 C=this.context.index;this.spliceList(C,1);var F={element:this.context.element,oldIndex:C};this.resetTransitionData(C),this.emitChanges({removed:F})},onDragUpdate:function(y){Object(E.d)(y.item),Object(E.c)(y.from,y.item,y.oldIndex);var C=this.context.index,F=this.getVmIndex(y.newIndex);this.updatePosition(C,F);var K={element:this.context.element,oldIndex:C,newIndex:F};this.emitChanges({moved:K})},updateProperty:function(y,C){y.hasOwnProperty(C)&&(y[C]+=this.headerOffset)},computeFutureIndex:function(y,C){if(!y.element)return 0;var F=v(C.to.children).filter(function(ct){return ct.style.display!=="none"}),K=F.indexOf(C.related),G=y.component.getVmIndex(K),tt=F.indexOf(I)!==-1;return tt||!C.willInsertAfter?G:G+1},onDragMove:function(y,C){var F=this.move;if(!F||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(y),G=this.context,tt=this.computeFutureIndex(K,y);Object.assign(G,{futureIndex:tt});var ct=Object.assign({},y,{relatedContext:K,draggedContext:G});return F(ct,C)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var H=j;r.default=H}}).default})})(Yd);var A1=zp(Yd.exports),P1=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)},N1=[];const B1={components:{tabbar:ti,MyApps:js,appsItem:ze,Draggable:A1},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){wt("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},vf={};var F1=Y(B1,P1,N1,!1,R1,null,null,null);function R1(e){for(let t in vf)this[t]=vf[t]}var co=function(){return F1.exports}(),V1=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)},z1=[],f_="";const j1={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}}},gf={};var H1=Y(j1,V1,z1,!1,U1,"1cee7da5",null,null);function U1(e){for(let t in gf)this[t]=gf[t]}var uo=function(){return H1.exports}(),K1=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()])},W1=[];const Y1={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})}}},yf={};var X1=Y(Y1,K1,W1,!1,G1,null,null,null);function G1(e){for(let t in yf)this[t]=yf[t]}var ho=function(){return X1.exports}(),q1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-app-center"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-app-page"},[i("div",{staticClass:"ind-m-placeholder"},[i("van-search",{attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("van-icon",{attrs:{name:"search"}})]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"80%",height:"50%"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 5)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myapp",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",{staticClass:"customnnnmmmm-tabs-container"},[i("div",{staticClass:"customnnnmmmm-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"customnnnmmmm-tabs-header"},e._l(e.apps_menus,function(n,r){return i("div",{key:"tab"+r,staticClass:"customnnnmmmm-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(r)}}},[i("div",{staticClass:"customnnnmmmm-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n.meta.title)+" ")]),i("div",{staticClass:"customnnnmmmm-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-custom-tabs-content"},[i("div",{staticClass:"ind-m-custom-sidebar"},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,class:["ind-m-sidebar-item",{active:e.activeKey===r}],on:{click:function(a){return e.handleSidebarClick(r)}}},[i("span",{class:["ind-m-sidebar-text",{active:e.activeKey===r}]},[e._v(" "+e._s(n.meta.title)+" ")])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"300px",height:"100%"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children||[],function(n,r){return i("div",{key:r,staticClass:"ind-m-menu-section",attrs:{id:"section-"+e.active+"-"+r,"data-index":r}},[i("div",{staticClass:"ind-m-divider-container"},[i("van-divider",{staticClass:"ind-m-custom-divider"},[e._v(" "+e._s(n.meta.title)+" ")])],1),i("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row"}},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,style:{width:e.getTreeTotalDepth(n)>2?"100%":"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:e.getTreeTotalDepth(n)>2?null:"center",justifyContent:"center",flexDirection:e.getTreeTotalDepth(n)>2?"column":"row",marginBottom:e.getTreeTotalDepth(n)>2?"20px":"0px"}},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}}),a.children?i("div",{staticClass:"ind-m-category-header"},[i("div",{staticClass:"ind-m-category-indicator"}),i("div",{staticClass:"ind-m-category-title"},[e._v(e._s(a.meta.title))])]):e._e(),a.children?i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.apps_menus[e.active]&&e.apps_menus[e.active].children[r]&&e.apps_menus[e.active].children[r].children[s]&&e.apps_menus[e.active].children[r].children[s].children||[],function(o){return i("div",{key:o.meta.permissionId,style:{width:"calc(100% / 3)",height:"100%",backgroundColor:"#fff",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},J1=[];const Z1={components:{tabbar:ti,appsItem:ze,myapp:ho},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}}},bf={};var Q1=Y(Z1,q1,J1,!1,t$,null,null,null);function t$(e){for(let t in bf)this[t]=bf[t]}var e$=function(){return Q1.exports}(),i$=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)},n$=[];const r$={components:{tabbar:ti,appsItem:ze,myapp:ho},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}}},Sf={};var a$=Y(r$,i$,n$,!1,s$,null,null,null);function s$(e){for(let t in Sf)this[t]=Sf[t]}var o$=function(){return a$.exports}(),l$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},c$=[];const u$={components:{abovelevelTwoOld:e$,abovelevelTwoNew:o$},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},wf={};var h$=Y(u$,l$,c$,!1,d$,null,null,null);function d$(e){for(let t in wf)this[t]=wf[t]}var f$=function(){return h$.exports}(),p$=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)},m$=[];function fo(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 v$={components:{tabbar:ti,appsItem:ze,myapp:ho},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=fo(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=fo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=fo(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}}},Cf={};var g$=Y(v$,p$,m$,!1,y$,null,null,null);function y$(e){for(let t in Cf)this[t]=Cf[t]}var b$=function(){return g$.exports}(),S$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndMCard",{attrs:{showHeader:!1,innerPadding:"0px"}},[i("div",{staticClass:"ind-myApp-slim-new-content"},[i("div",{staticClass:"ind-myApp-slim-new-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-new-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-new-icon-group"},e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-new-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"8px","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon)}})])}),0),e.icons.length!==0&&!e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-forward"}}):e._e(),e.icons.length!==0&&e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-down"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-new-content-button"},[i("div",{staticClass:"ind-myApp-slim-new-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto"}},[i("van-swipe",{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()])},w$=[];const C$={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}},xf={};var x$=Y(C$,S$,w$,!1,$$,null,null,null);function $$(e){for(let t in xf)this[t]=xf[t]}var k$=function(){return x$.exports}(),T$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-app-center",staticStyle:{position:"relative"}},[i("van-sticky",{directives:[{name:"show",rawName:"v-show",value:!e.isHb,expression:"!isHb"}]},[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-new-app-page"},[i("div",{staticStyle:{position:"absolute",left:"0",width:"100%",height:"22vh","z-index":"0"},style:{top:e.isHb?"0px":"48px"}},[i("IndMImgLoad",{attrs:{pick:"ind:appNew:bg",type:"TableData"}})],1),i("div",{staticClass:"ind-m-new-placeholder"},[i("van-search",{staticClass:"ind-m-new-placeholder-search",attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-left"},[i("Icon",{attrs:{type:"md-search"}})],1)]},proxy:!0},{key:"right-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-right",on:{click:e.onSearch}},[e._v("\u641C\u7D22")])]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"90vw",height:"50vh","background-color":"var(--ind-m-home-bg-color)"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 4)",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myappNew",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"custom-new-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"custom-new-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"custom-new-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"custom-new-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"custom-new-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-new-app-container",staticStyle:{padding:"0px 0px 150px 0px"},style:{height:e.disMyapp?"calc(100vh - 410px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("IndMCard",{key:r,attrs:{padding:"0px 10px 10px 10px",title:n.meta.title,icon:"/public/imgs/resource/card-icon.png"}},[i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(n.children,function(a){return i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])}),1)]),i("tabbar")],1)],1)},_$=[];function po(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 I$={components:{tabbar:ti,appsItem:ze,myappNew:k$},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=po(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=po(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=po(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},$f={};var E$=Y(I$,T$,_$,!1,D$,null,null,null);function D$(e){for(let t in $f)this[t]=$f[t]}var M$=function(){return E$.exports}(),O$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},L$=[];const A$={components:{levelTwoOld:b$,levelTwoNew:M$},computed:{changeUI(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.changeUI)||"0"}}},kf={};var P$=Y(A$,O$,L$,!1,N$,null,null,null);function N$(e){for(let t in kf)this[t]=kf[t]}var B$=function(){return P$.exports}(),F$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},R$=[];function Tf(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=Tf(n,t+1);r>i&&(i=r)}return i}function V$(e){let t=0;for(const i of e){const n=Tf(i);n>t&&(t=n)}return t}const z$={components:{aboveleveltwo:f$,leveltwo:B$},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=V$(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"}}},_f={};var j$=Y(z$,F$,R$,!1,H$,null,null,null);function H$(e){for(let t in _f)this[t]=_f[t]}var mo=function(){return j$.exports}(),U$=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..."))])])])])])},K$=[];const W$={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)}}},If={};var Y$=Y(W$,U$,K$,!1,X$,null,null,null);function X$(e){for(let t in If)this[t]=If[t]}var Ef=function(){return Y$.exports}(),G$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-page"},[i("van-sticky",[i("van-nav-bar",{attrs:{fixed:!0,"left-arrow":"",placeholder:!0,"safe-area-inset-top":!0,title:"\u8BBE\u7F6E"},on:{"click-left":e.onClickLeft}})],1),i("van-cell-group",{attrs:{title:"\u8BBE\u7F6E"}},[i("van-cell",{attrs:{title:"vconsole\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.vconsoleChecked,callback:function(n){e.vconsoleChecked=n},expression:"vconsoleChecked"}})],1),e.isHb?i("van-cell",{attrs:{title:"\u8FDC\u7A0B\u8C03\u8BD5"}},[i("van-switch",{model:{value:e.chiiChecked,callback:function(n){e.chiiChecked=n},expression:"chiiChecked"}})],1):e._e()],1)],1)},q$=[];const J$={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()}}},Df={};var Z$=Y(J$,G$,q$,!1,Q$,null,null,null);function Q$(e){for(let t in Df)this[t]=Df[t]}var vo=function(){return Z$.exports}(),tk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticStyle:{width:"100%",height:"100%","text-align":"right"},on:{click:function(n){e.isshow=!0}}},[i("span",{staticStyle:{color:"#c5d2e3"}},[e._v(e._s(e.resultList.length?"\u5DF2\u4E0A\u4F20"+e.resultList.length+"\u4E2A\u6587\u4EF6":"\u8BF7\u4E0A\u4F20"))]),i("Icon",{staticStyle:{"font-size":"16px",color:"#808695 !important"},attrs:{type:"ios-arrow-forward"}})],1),i("van-popup",{attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.isshow,callback:function(n){e.isshow=n},expression:"isshow"}},[i("van-overlay",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-up-loading-overlay",attrs:{"z-index":"9999",show:e.loading}},[i("div",{staticClass:"ind-up-loading-wrapper"},[i("van-loading",{attrs:{color:"#1989fa",size:"25px"}}),i("div",{staticClass:"ind-up-loading-text"},[e._v("\u4E0A\u4F20\u4E2D...")])],1)]),i("div",{staticStyle:{height:"100vh",width:"100vw",display:"flex","flex-direction":"column","justify-content":"space-between","background-color":"rgb(240 240 240)"}},[i("div",{staticStyle:{height:"48px",width:"100vw"}},[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u4E0A\u4F20","left-text":"","left-arrow":""},on:{"click-left":function(n){e.isshow=!1}}})],1),i("div",{style:{height:e.readonly?"100%":"calc(100vh - 100px)"}},[e.readonly?e._e():i("div",{staticClass:"ind-upLoad-clickHere",on:{click:e.uploadFile}},[i("div",{staticClass:"ind-upLoad-clickHere-icon"},[i("Icon",{staticClass:"ind-upLoad-clickHere-icon-icon",attrs:{type:"ios-cloud-upload"}}),i("div",{staticClass:"ind-upLoad-clickHere-icon-text"},[e._v("\u70B9\u51FB\u4E0A\u4F20")])],1)]),i("div",{staticClass:"ind-upLoad-file-list",staticStyle:{"overflow-y":"auto"},style:{height:e.readonly?"100%":"calc(100% - 220px)",padding:"10px"}},[e.resultList.length?i("div",{staticStyle:{"background-color":"#fff",height:"100%","overflow-y":"auto","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),e._l(e.resultList||e.defaultList,function(n,r){return i("van-cell",{key:r},[i("div",{staticClass:"ind-upLoad-file-list-container-item"},[i("div",{staticClass:"ind-upLoad-file-list-container-ititle",on:{click:function(a){return e.handleClickAttachment(n)}}},[e._v(" "+e._s(n.fileName)+" ")]),e.readonly?e._e():i("div",{staticClass:"ind-upLoad-file-list-container-idel",on:{click:function(a){return e.deleteFile(n.fileId)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idel-btn"},[i("Icon",{staticStyle:{"font-size":"16px"},attrs:{type:"md-trash"}}),e._v("\u5220\u9664 ")],1)]),e.shouldShowDelete?i("div",{staticClass:"ind-upLoad-file-list-container-idownload",on:{click:function(a){return e.handleDownload(n)}}},[i("div",{staticClass:"ind-upLoad-file-list-container-idownload-btn"},[i("Icon",{staticStyle:{"font-size":"18px"},attrs:{type:"md-cloud-download"}}),e._v(" \u4E0B\u8F7D ")],1)]):e._e()])])})],2):i("div",{staticStyle:{"background-color":"#fff",height:"100%",overflow:"hidden","border-radius":"8px"}},[i("van-cell",{staticStyle:{color:"#1989fa"},attrs:{icon:"description",title:"\u9644\u4EF6\u5217\u8868"}}),i("van-empty",{attrs:{description:"\u6682\u65E0\u6587\u4EF6"}})],1)])]),e.readonly?e._e():i("div",{staticClass:"ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between"},[i("IndButton",{attrs:{bizType:"reset"},on:{click:e.cancel}},[e._v("\u53D6\u6D88")]),i("IndButton",{attrs:{bizType:"primary"},on:{click:e.confirm}},[e._v("\u786E\u8BA4")])],1),i("input",{ref:"uploadInput",staticStyle:{position:"absolute",clip:"rect(0 0 0 0)"},attrs:{type:"file",disabled:!1,multiple:!0,accept:e.accept},on:{change:function(n){return e.readFile(n)}}})])],1),i("van-popup",{style:{width:"100%",height:"100%"},attrs:{position:"right","get-container":"body","lazy-render":!0},model:{value:e.previewVisible,callback:function(n){e.previewVisible=n},expression:"previewVisible"}},[i("van-sticky",[i("van-nav-bar",{staticClass:"ind-flex-no-shrink",attrs:{title:"\u6587\u4EF6\u9884\u89C8","left-text":"","left-arrow":""},on:{"click-left":e.closePreview}})],1),i("div",{staticClass:"ind-main-content-wrapper ind-flex-grow ind-vcenter"},[e.isHB?i("iframe",{staticClass:"preview-iframe",staticStyle:{height:"calc(100vh - 48px)"},attrs:{src:e.previewUrl,frameborder:"0"}}):i("div",{staticStyle:{width:"100%",height:"calc(100% - 46px)"},attrs:{id:"wps-preview-container"}})])],1)],1)},ek=[];function ik(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 nk={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:ik(s.length),otherParam:e.otherParam};e.resultList.push(o)})}else e.loading=!1;e.$refs.uploadInput.value=null}).catch(()=>{e.loading=!1,e.$refs.uploadInput.value=null})},uploadFile(){this.$refs.uploadInput.click()},deleteFile(e){if(e){let t=[];this.resultList.forEach(i=>{i.fileId!==e&&t.push(i)}),this.resultList=t}},cancel(){this.resultList=this.deepdefaultList,this.$emit("onChangeData",this.resultList),this.isshow=!1},confirm(){this.$emit("onChangeData",this.resultList),this.isshow=!1},handleDownload(e){const t=navigator.userAgent;/miniProgram/i.test(t)?this.goToMiniProgramDown(e):this.h5Download(e)},async h5Download(e){var n;const t=e.fileUrl?e.fileUrl:`${this.ossServerContext}/oss/file/get/${e.fileId}`,i=M.getToken();try{const r=await fetch(t,{headers:{token:i}});if(!r.ok)throw new Error(`\u4E0B\u8F7D\u5931\u8D25: ${r.status}`);const a=await r.blob();let s="application/octet-stream";const l=((n=e==null?void 0:e.fileName)==null?void 0:n.toLowerCase()).match(/\.([a-z0-9]+)$/),c=l==null?void 0:l[1];M.MIME_TYPE[c]&&(s=M.MIME_TYPE[c]);const h=new Blob([a],{type:s}),d=window.URL.createObjectURL(h),u=document.createElement("a");u.href=d,u.download=e.fileName,u.style.display="none",u.target="_blank",document.body.appendChild(u),u.click(),document.body.removeChild(u)}catch(r){console.error("\u4E0B\u8F7D\u51FA\u9519:",r),this.$Message.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},goToMiniProgramDown(e){e.fileId?wx.miniProgram.navigateTo({url:`/pages/download/index?downloadFileId=${e.fileId}`}):console.error("\u6587\u4EF6ID\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8DF3\u8F6C")},async handleClickAttachment(e){let t=this;if(e.fileName.endsWith("psd")||e.fileName.endsWith("m4v")||e.fileName.endsWith("rar")||e.fileName.endsWith("zip"))return this.$Message.error("\u8BE5\u683C\u5F0F\u7684\u6587\u4EF6\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8"),!1;if(location.pathname.includes("scyxweb")){let i="";await M.axios.get("/user-manage-server/manage/user/getCurrentInfo").then(n=>{if(n.code===1){const r=e.fileName.endsWith(".jpg")||e.fileName.endsWith(".jpeg")||e.fileName.endsWith(".png")||e.fileName.endsWith(".gif");let a="";r?a=`${t.$config.mdPictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.mdDocDownLoadApi}${e.fileId}&fullfilename=${e.fileName}`;const s=e.fileName.endsWith(".doc")||e.fileName.endsWith(".docx")||e.fileName.endsWith(".ppt")||e.fileName.endsWith(".pptx")||e.fileName.endsWith(".xls")||e.fileName.endsWith(".xlsx")||e.fileName.endsWith(".pdf");let o="";s&&(o="&officePreviewType=pdf&tifPreviewType=jpg"),t.watermark==="0"?t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}${o}`:(i=n.data.displayName+n.data.loginName,t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}&watermarkTxt=${i}${t.$config.KKfilePrevieWatermarkStyle||""}${o}`),t.previewVisible=!0}})}else this.openPreview(e)},getPreviewUrlApi(e){var n;const t=location.protocol==="https:"?"1":"",i=M.getToken()||sessionStorage.getItem("sso_token");return M.axios.get(`${location.protocol}//${location.host}/ind-uc-ext-server/api/wps/getPreviewUrl/${e}?isWeb=${t}&previewMode=high_definition`,{headers:{Authorization:`Bearer ${i}`,"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.content)||""}})},async openPreview(e){try{const t=await this.getPreviewUrlApi(e.fileId);if(t.code!=1)throw new Error("\u83B7\u53D6\u9884\u89C8\u94FE\u63A5\u5931\u8D25");const i=t.data;this.previewVisible=!0,await this.$nextTick();const n=document.getElementById("wps-preview-container");if(!n)throw new Error("\u672A\u627E\u5230\u9884\u89C8\u6302\u8F7D\u8282\u70B9");const r=OpenSDK.config({url:i,mount:n}),a=M.getToken()||sessionStorage.getItem("sso_token");if(!a)throw new Error("\u672A\u627E\u5230\u6709\u6548 Token");r.setToken({token:a,timeout:10*60*1e3})}catch(t){console.error("\u9884\u89C8\u5931\u8D25:",t),this.$Message.error(`\u9884\u89C8\u5931\u8D25: ${t.message}`)}},closePreview(){this.previewVisible=!1},readFile(e){let t=this;if(!e.target.files||e.target.files.length===0)return this.$Message.warning({content:"\u6CA1\u6709\u9009\u62E9\u6587\u4EF6\u6216\u6587\u4EF6\u5217\u8868\u4E3A\u7A7A"}),!1;const i=e.target.files[0],n=this.fileSuffix.split("|"),r="\\.("+n.join("|")+")$";if(!new RegExp(r,"i").test(i.name))return this.$Message.warning({content:"\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F pdf\uFF0Cdoc\uFF0Cdocx\uFF0Ctxt\uFF0Cxls\uFF0Cxlsx\uFF0Czip\uFF0Ccsv\uFF0Cmp4\uFF0Cmov\uFF0Cjpg\uFF0Cjpeg\uFF0Cpng\uFF0Cgif \u4E2D\u7684\u4E00\u79CD"}),t.$refs.uploadInput.value=null,!1;if(i.size/(1024*1024)>t.fileSizeLimit)return this.$Message.warning({content:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${t.fileSizeLimit}MB`}),t.$refs.uploadInput.value=null,!1;let l=i.name;l.indexOf("/")>0&&(l=l.substring(l.lastIndexOf("/")+1)),l.indexOf("\\")>0&&(l=l.substring(l.lastIndexOf("\\")+1));const c=l.lastIndexOf("."),h=c>-1?l.substring(c+1):"";t.attachmentFile={fileName:l,fileType:h,size:i.size},t.uploadFileToServer()}},mounted(){location.pathname.includes("scyxweb")?this.isHB=!0:this.isHB=!1}},Mf={};var rk=Y(nk,tk,ek,!1,ak,null,null,null);function ak(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return rk.exports}(),sk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-inner"},[i("div",{staticClass:"ind-common-m-card-inner-inner"},[e.showHeader?i("div",{staticClass:"ind-common-m-card-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-title-icon"},[i("IndMImgLoad",{attrs:{pick:"cardIcon",width:"12px",height:"14px"}})],1):e._e(),i("div",{staticClass:"ind-common-m-card-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-content",style:{padding:e.innerPadding}},[e._t("default")],2)])])])},ok=[];const lk={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"}}},Lf={};var ck=Y(lk,sk,ok,!1,uk,null,null,null);function uk(e){for(let t in Lf)this[t]=Lf[t]}var Af=function(){return ck.exports}(),hk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-common-m-card-item-outer",style:{width:e.width,margin:e.margin,padding:e.padding}},[i("div",{staticClass:"ind-common-m-card-item-inner-inner"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"ind-common-m-card-item-loading-mask"},[i("div",{staticClass:"ind-common-m-card-item-loading-spinner"}),i("div",{staticStyle:{"margin-top":"5px",color:"var(--ind-m-new-font-color5)"}},[e._v("\u52A0\u8F7D\u4E2D")])]),e.showHeader?i("div",{staticClass:"ind-common-m-card-item-title"},[e.showIcon?i("div",{staticClass:"ind-common-m-card-item-title-icon"},[i("div",{staticClass:"ind-common-m-card-item-title-icon-icon"})]):e._e(),i("div",{staticClass:"ind-common-m-card-item-title-text"},[e._v(e._s(e.title))]),i("div",{staticClass:"ind-common-m-card-item-title-arrow"},[e._t("right-icon")],2)]):e._e(),i("div",{staticClass:"ind-common-m-card-item-content"},[e._t("default")],2)])])},dk=[];const fk={name:"GlassCard-item",props:{title:{type:String,default:""},icon:{type:String,default:""},showTitle:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},width:{type:String,default:"100%"},padding:{type:String,default:"10px 10px 0px 10px"},margin:{type:String,default:"0px"},loading:{type:Boolean,default:!1}}},Pf={};var pk=Y(fk,hk,dk,!1,mk,null,null,null);function mk(e){for(let t in Pf)this[t]=Pf[t]}var Nf=function(){return pk.exports}(),vk=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{width:e.width,height:e.height}},[i("div",{style:e.getIcon},[e._t("default")],2)])},gk=[];const yk={props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},pick:{type:String,default:"home-bg"},type:{type:String,default:"TableData"},size:{type:String,default:"cover"},position:{type:String,default:"center"},repeat:{type:String,default:"no-repeat"},ossServerContext:{type:String,default:"/user-manage-server"}},computed:{getIcon(){var i,n;const e=`icon${this.type}`,t=(n=(i=this.$config)==null?void 0:i.systemDefaultConfig)==null?void 0:n[e];try{if(!Array.isArray(t))return console.error("\u914D\u7F6E\u4E0D\u662F\u6570\u7EC4:",t),{display:"none"};if(t.length===0)return console.error("\u6570\u7EC4\u4E3A\u7A7A"),{display:"none"};const r=t.find(h=>(h==null?void 0:h.positionId)===this.pick);if(!r)return console.error(`\u672A\u627E\u5230\u5339\u914D\u7684\u56FE\u6807\u914D\u7F6E\u3002pick: ${this.pick}`),{display:"none"};const a=r.iconFieldId||r.iconFielId;if(!a)return console.error("iconFieldId/iconFielId \u4E3A\u7A7A\uFF0C\u53EF\u7528\u5B57\u6BB5:",Object.keys(r)),{display:"none"};let s;try{s=JSON.parse(a)}catch(h){return console.error("JSON \u89E3\u6790\u5931\u8D25:",h,"\u539F\u59CB\u503C:",a),{display:"none"}}if(!Array.isArray(s)||s.length===0)return console.error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u975E\u7A7A\u6570\u7EC4:",s),{display:"none"};const o=s[0],l=o==null?void 0:o.fileId;return l?{backgroundImage:`url(${this.ossServerContext}/oss/file/get/${l})`,backgroundSize:this.size,backgroundRepeat:this.repeat,backgroundPosition:this.position,width:"100%",height:"100%"}:(console.error("fileId \u4E3A\u7A7A\uFF0C\u89E3\u6790\u7ED3\u679C:",o),{display:"none"})}catch(r){return console.error("getIcon \u6267\u884C\u51FA\u9519:",r),{display:"none"}}}},methods:{}},Bf={};var bk=Y(yk,vk,gk,!1,Sk,null,null,null);function Sk(e){for(let t in Bf)this[t]=Bf[t]}var Ff=function(){return bk.exports}(),go=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:Qr,DatePicker:Uo,Form:rl,LoadMore:sl,User1:pl,BasicLayout:vl,EmptyLayout:$i,DetailView:wl,PageView:xl,PopupView:kl,QueryView:_l,Login:Vs,Search:Md,SelectPanel:Ad,InputSelect:Nd,SelectBtn:Fd,User:zs,Apps:co,AppsEdit:uo,MyApps:js,AppsNew:mo,appItem:ze,tabbar:ti,LoadingPanel:Ef,Setting:vo,UploadFile:Of,Card:Af,CardItem:Nf,ImgLoad:Ff},Symbol.toStringTag,{value:"Module"})),Rf={install(e,{config:t}={}){e.prototype.$config=b.default.merge({},e.prototype.$config||{},t||M.config)}},Vf={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)}}},wk=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:Rf,IndRouterPlugin:Vf},Symbol.toStringTag,{value:"Module"}));const zf=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="")},jf={bind:zf,update:zf};var yo=Object.freeze(Object.defineProperty({__proto__:null,permission:jf},Symbol.toStringTag,{value:"Module"}));const Hf={name:Ae.rootRouteName,path:"/",component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Ae.homeRouteName,path:"home",meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},Ck={name:Ae.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:Vs},xk={name:"user",path:"/user",component:zs,meta:{hideInMenu:!0,notCache:!0}},$k={name:"setting",path:"/setting",component:vo,meta:{hideInMenu:!0,notCache:!0}},kk={name:"apps",path:"/apps",component:co,meta:{hideInMenu:!0,notCache:!0}},Tk={name:"appsNew",path:"/appsNew",component:mo,meta:{hideInMenu:!0,notCache:!0}},_k={name:"appsEdit",path:"/appsEdit",component:uo,meta:{hideInMenu:!0,notCache:!0}},Ik={path:"/404",meta:{hideInMenu:!0},component:Ui};function Ek({homeComponent:e,rootChildren:t}={}){const i=b.default.cloneDeep(Hf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[Ck]:[];return[i,...n,xk,$k,kk,_k,Ik,Tk]}function Dk({rootChildren:e}={}){const t=b.default.cloneDeep(Hf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const Mk={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},Vr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Uf(e){return[Vr.DIRECTORY,Vr.MENU].includes(e)}function Kf(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 bo({list:e,menuTree:t,pageNode:i,parentId:n,crumbs:r,root:a}){if(!e)return;let s=M.getSessionStorage("appInfo");e.forEach(o=>{var _;const{permissionId:l,label:c,appId:h,pid:d,icon:u,type:f,uri:p,permissionValue:m,extendProps:v}=o;if(h!=s.appId)return;const w=m;let x=!1,E=!1;if(o&&o.extendProps)try{x=((_=JSON.parse(o.extendProps))==null?void 0:_.hideInIbp)==="1"}catch{x=!1}try{if(o&&o.extension){const T=JSON.parse(o.extension);if(T.extendProps){const O=typeof T.extendProps=="string"?JSON.parse(T.extendProps):T.extendProps;(O==null?void 0:O.hideInMenu)==1&&(E=!0)}}}catch{E=!1}if(d===n&&!(x||E)){if(Uf(f)){let T={type:f,name:w,pid:d,path:Wf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:w},children:[],extendProps:v};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),Vr.DIRECTORY===f&&(T.component="EmptyLayout"),bo({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:w,pid:d,path:Wf(p),uri:p,component:w,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:w,title:c,type:f}),i.children.push(T)}}})}function Wf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function Yf(e=[]){e=e.filter(i=>Uf(i.type));const t=[];return bo({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function Ok(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return bo({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),So(t)}function So(e=[]){for(let t of e)if(t.component){const i=Mk[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&&So(t.children)}return e}var wo={exports:{}},Xf=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)}},Lk=Xf,Si=Object.prototype.toString;function Co(e){return Si.call(e)==="[object Array]"}function xo(e){return typeof e=="undefined"}function Ak(e){return e!==null&&!xo(e)&&e.constructor!==null&&!xo(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Pk(e){return Si.call(e)==="[object ArrayBuffer]"}function Nk(e){return typeof FormData!="undefined"&&e instanceof FormData}function Bk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Fk(e){return typeof e=="string"}function Rk(e){return typeof e=="number"}function Gf(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 Vk(e){return Si.call(e)==="[object Date]"}function zk(e){return Si.call(e)==="[object File]"}function jk(e){return Si.call(e)==="[object Blob]"}function qf(e){return Si.call(e)==="[object Function]"}function Hk(e){return Gf(e)&&qf(e.pipe)}function Uk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Kk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Wk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function $o(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Co(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 ko(){var e={};function t(r,a){zr(e[a])&&zr(r)?e[a]=ko(e[a],r):zr(r)?e[a]=ko({},r):Co(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)$o(arguments[i],t);return e}function Yk(e,t,i){return $o(t,function(r,a){i&&typeof r=="function"?e[a]=Lk(r,i):e[a]=r}),e}function Xk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:Co,isArrayBuffer:Pk,isBuffer:Ak,isFormData:Nk,isArrayBufferView:Bk,isString:Fk,isNumber:Rk,isObject:Gf,isPlainObject:zr,isUndefined:xo,isDate:Vk,isFile:zk,isBlob:jk,isFunction:qf,isStream:Hk,isURLSearchParams:Uk,isStandardBrowserEnv:Wk,forEach:$o,merge:ko,extend:Yk,trim:Kk,stripBOM:Xk},zi=Zt;function Jf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Zf=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(Jf(c)+"="+Jf(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Gk=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){Gk.forEach(this.handlers,function(n){n!==null&&t(n)})};var qk=jr,Jk=Zt,Zk=function(t,i){Jk.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},Qf=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},Qk=Qf,tp=function(t,i,n,r,a){var s=new Error(t);return Qk(s,i,n,r,a)},tT=tp,eT=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(tT("Request failed with status code "+n.status,n.config,null,n.request,n))},Hr=Zt,iT=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(){}}}(),nT=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},rT=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},aT=nT,sT=rT,oT=function(t,i){return t&&!aT(i)?sT(t,i):i},To=Zt,lT=["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"],cT=function(t){var i={},n,r,a;return t&&To.forEach(t.split(`
|
|
21
21
|
`),function(o){if(a=o.indexOf(":"),n=To.trim(o.substr(0,a)).toLowerCase(),r=To.trim(o.substr(a+1)),n){if(i[n]&&lT.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([r]):i[n]=i[n]?i[n]+", "+r:r}}),i},ep=Zt,uT=ep.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=ep.isString(s)?r(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),Ur=Zt,hT=eT,dT=iT,fT=Zf,pT=oT,mT=cT,vT=uT,_o=tp,ip=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=pT(t.baseURL,t.url);l.open(t.method.toUpperCase(),fT(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!!l){var p="getAllResponseHeaders"in l?mT(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};hT(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(_o("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(_o("Network Error",t,null,l)),l=null},l.ontimeout=function(){var m="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(_o(m,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},Ur.isStandardBrowserEnv()){var f=(t.withCredentials||vT(d))&&t.xsrfCookieName?dT.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)})},Ot=Zt,np=Zk,gT=Qf,yT={"Content-Type":"application/x-www-form-urlencoded"};function rp(e,t){!Ot.isUndefined(e)&&Ot.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function bT(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=ip),e}function ST(e,t,i){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}var Kr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:bT(),transformRequest:[function(t,i){return np(i,"Accept"),np(i,"Content-Type"),Ot.isFormData(t)||Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t)?t:Ot.isArrayBufferView(t)?t.buffer:Ot.isURLSearchParams(t)?(rp(i,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Ot.isObject(t)||i&&i["Content-Type"]==="application/json"?(rp(i,"application/json"),ST(t)):t}],transformResponse:[function(t){var i=this.transitional,n=i&&i.silentJSONParsing,r=i&&i.forcedJSONParsing,a=!n&&this.responseType==="json";if(a||r&&Ot.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?gT(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, */*"}},Ot.forEach(["delete","get","head"],function(t){Kr.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){Kr.headers[t]=Ot.merge(yT)});var Io=Kr,wT=Zt,CT=Io,xT=function(t,i,n){var r=this||CT;return wT.forEach(n,function(s){t=s.call(r,t,i)}),t},ap=function(t){return!!(t&&t.__CANCEL__)},sp=Zt,Eo=xT,$T=ap,kT=Io;function Do(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var TT=function(t){Do(t),t.headers=t.headers||{},t.data=Eo.call(t,t.data,t.headers,t.transformRequest),t.headers=sp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),sp.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var i=t.adapter||kT.adapter;return i(t).then(function(r){return Do(t),r.data=Eo.call(t,r.data,r.headers,t.transformResponse),r},function(r){return $T(r)||(Do(t),r&&r.response&&(r.response.data=Eo.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Bt=Zt,op=function(t,i){i=i||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(u,f){return Bt.isPlainObject(u)&&Bt.isPlainObject(f)?Bt.merge(u,f):Bt.isPlainObject(f)?Bt.merge({},f):Bt.isArray(f)?f.slice():f}function c(u){Bt.isUndefined(i[u])?Bt.isUndefined(t[u])||(n[u]=l(void 0,t[u])):n[u]=l(t[u],i[u])}Bt.forEach(r,function(f){Bt.isUndefined(i[f])||(n[f]=l(void 0,i[f]))}),Bt.forEach(a,c),Bt.forEach(s,function(f){Bt.isUndefined(i[f])?Bt.isUndefined(t[f])||(n[f]=l(void 0,t[f])):n[f]=l(void 0,i[f])}),Bt.forEach(o,function(f){f in i?n[f]=l(t[f],i[f]):f in t&&(n[f]=l(void 0,t[f]))});var h=r.concat(a).concat(s).concat(o),d=Object.keys(t).concat(Object.keys(i)).filter(function(f){return h.indexOf(f)===-1});return Bt.forEach(d,c),n},_T={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"}]},lp=_T,Mo={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Mo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var cp={},IT=lp.version.split(".");function up(e,t){for(var i=t?t.split("."):IT,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}Mo.transitional=function(t,i,n){var r=i&&up(i);function a(s,o){return"[Axios v"+lp.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&&!cp[o]&&(cp[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 DT={isOlderVersion:up,assertOptions:ET,validators:Mo},hp=Zt,MT=Zf,dp=qk,fp=TT,Wr=op,pp=DT,ji=pp.validators;function kn(e){this.defaults=e,this.interceptors={request:new dp,response:new dp}}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&&pp.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=[fp,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=fp(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),MT(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},hp.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}))}}),hp.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 OT=kn;function Oo(e){this.message=e}Oo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Oo.prototype.__CANCEL__=!0;var mp=Oo,LT=mp;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 LT(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 AT=Yr,PT=function(t){return function(n){return t.apply(null,n)}},NT=function(t){return typeof t=="object"&&t.isAxiosError===!0},vp=Zt,BT=Xf,Xr=OT,FT=op,RT=Io;function gp(e){var t=new Xr(e),i=BT(Xr.prototype.request,t);return vp.extend(i,Xr.prototype,t),vp.extend(i,t),i}var $e=gp(RT);$e.Axios=Xr,$e.create=function(t){return gp(FT($e.defaults,t))},$e.Cancel=mp,$e.CancelToken=AT,$e.isCancel=ap,$e.all=function(t){return Promise.all(t)},$e.spread=PT,$e.isAxiosError=NT,wo.exports=$e,wo.exports.default=$e;var VT=wo.exports;const Gr=location.pathname.includes("scyxweb"),zT=navigator.userAgent.toLowerCase(),jT=!!/wxwork/.test(zT),yp={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 HT({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:r}){var m,v;let a=await t.dispatch("getUserInfo");await t.dispatch("getAppListData"),await t.dispatch("getMyAppsList",{userId:a.userId,funId:"store-my-app"});const s=await t.dispatch("getPermissionData"),o=JSON.parse(((v=(m=M.getSessionStorage("appInfo"))==null?void 0:m.extendProps)==null?void 0:v.extendProps)||"{}"),l=M.getLocalStorage("versionInfo");if(l){if(o.appVersion>l.appVersion){M.setLocalStorage("versionInfo",o);let w=window.location.href,x=new URL(w),E=new URLSearchParams(x.search);E.set("v",o.appVersion),x.search=E.toString(),window.location.href=x.href}}else M.setLocalStorage("versionInfo",o);e.options=b.default.cloneDeep(r);const c=Kf(i,s),h=Ok(c);console.log("dynamicROuters",h);const d=e.options.routes.find(w=>w.path==="/");for(const w of h)e.addRoute(d.name,w),d.children.push(w);const f=Kf(i,n).filter(w=>e.options.routes.findIndex(x=>w.name===x.name)===-1);f.forEach(w=>{w.component=w.name,w.meta={hideInMenu:!0,title:w.label,activeName:w.name}});const p=So(f);for(const w of p)e.addRoute(Ae.rootRouteName,w)}function UT({router:e,store:t,microType:i,allowPermissionList:n}){tl();const r=Ae.loginRouteName,a=b.default.cloneDeep(e.options);window.sessionNotValidHandler=async function(){if(typeof window.Code!="undefined"||Gr){try{await Sp(t)}catch(s){if(console.log("pluginLogin e",s),Gr)if(jT)location.href=location.protocol+"//"+location.host+"/hbwebchat/wxmain?syscode=gtptrpxebl";else try{await ft.alert({title:"\u63D0\u793A",message:"\u5F53\u524D\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u7CFB\u7EDF\u5C06\u91CD\u65B0\u767B\u9646"}),console.log("\u4F1A\u8BDD\u5931\u6548-------2"),wx.miniProgram.navigateTo({url:"/pages/index/reload"})}catch(o){return console.log(o),!1}}await t.dispatch("getUserInfo"),await t.dispatch("getAppListData"),await t.dispatch("getPermissionData")}else window.confirm("\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u662F\u5426\u91CD\u65B0\u767B\u5F55\uFF1F")&&e.push({name:r},()=>{window.location.reload()})},window.apiErrorHandler=function(s){ke.Message.error({content:s,duration:10,closable:!0})},e.beforeEach(async(s,o,l)=>{console.log("router.beforeEach at guard"),ke.LoadingBar.start();let c=M.getToken(),h=location.search;if(h){let p=/token=(.*)/.exec(h);p&&p.length>1&&c!==p[1]&&(c=p[1],t.dispatch("loginSuccess",c));let m=window.getQueryVariable("tokenWeapp");m&&(console.log("tokenInQuery",m),M.setToken(m),c=m)}console.log("typeof window.Code",typeof window.Code);async function d(){var p,m,v;if(t.state.user.userName)console.log("window?.selectInst?.show",(p=window==null?void 0:window.selectInst)==null?void 0:p.show),(m=window==null?void 0:window.selectInst)!=null&&m.show?(window.selectInst.$emit("update:show",!1),console.log("router3"),l(!1)):(v=window==null?void 0:window.popupPageInst)!=null&&v.value?(window.popupPageInst.$emit("input",!1),console.log("router4"),l(!1)):(console.log("router5"),l());else{ke.Spin.show();try{await HT({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:a}),console.log("router1");const w=getQueryVariable("state");let x={};!!w&&w!="null"?(x=JSON.parse(decodeURIComponent(decodeURIComponent(w))),console.log("state",x),sessionStorage.setItem("isFromIM","1"),console.log("isFromIM\u6807\u8BC61\u5DF2\u6DFB\u52A0\u5230sessionStorage"),l({path:x.url,replace:!0})):l({...s,replace:!0})}catch{console.log("router2"),l({name:r})}ke.Spin.hide()}}async function u(){try{return c=await Sp(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 wp()?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 wp()?await d():await u()?await d():console.log("router9"))}),e.afterEach(s=>{ke.LoadingBar.finish(),window.scrollTo(0,0)})}let bp={};const Sp=e=>{let t=getQueryVariable("code"),i=bp[t];return i?(console.log("\u91CD\u590D\u4F7F\u7528\u4E86code\u521B\u5EFA\u4F1A\u8BDD\uFF01"),i):(i=bp[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"),yp.set("lambo-sso-key","",1),yp.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 wp=async()=>{var e,t;if(localStorage.getItem("whoisyourdaddy")=="1")return Promise.resolve(!0);try{let i=M.getToken();const n=await VT.get(`${Ae.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}},KT={mode:"history",base:"ind-mobile"};var WT={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 Cp=location.pathname.includes("scyxweb");function YT(e){return M.axios.get(`${location.protocol}//${location.host}${Cp?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,{params:e})}function XT(e){return M.axios.post(`${location.protocol}//${location.host}${Cp?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,e)}const{homeRouteName:qr}=Ae,GT=(e,t,i)=>{const n=Jo(e.tagNavList,i);e.tagNavList=e.tagNavList.filter(r=>!Ki(r,i)),t.push(n)};var qT={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=Go(t,e.homeRoute)},setTagNavList(e,t){let i=[];t?i=[...t]:i=qo()||[];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&>(e,t,i)},addTag(e,{route:t,type:i="unshift"}){let n=Yo(t);Zo(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),wi(t)}},actions:{async getAppListData({commit:e,getters:t}){let i=t.getAppList;if(!i.length){const{data:r=[]}=await M.getAppListApi();i=r.filter(a=>a.basepath!=="/cmsadmin"),e("setAppList",i)}let n="";if(location.search){let r=/appId=([^&]*)/.exec(location.search);r&&r.length>1&&(n=r[1])}if(i.length==1&&(n=i[0].appId||""),!n){let r=i.find(a=>{var s;return((s=a.application)==null?void 0:s.appBizCode)=="mobile-main"})||{};n=(r==null?void 0:r.appId)||""}if(!n){const r=M.getSessionStorage("appInfo");n=(r==null?void 0:r.appId)||""}return n||(n=i.find(a=>{var s,o;return((o=(s=a.application)==null?void 0:s.extendProps)==null?void 0:o.is_mobile_app)=="1"}).appId||""),e("setAppInfo",n),i},async getPermissionData({commit:e}){const t=M.getPermissionCache();if(t){const i={};for(const n of t)n.permissionValue&&(i[n.permissionValue]=!0);return e("setPermissionList",t),e("setPermission",i),e("setMenuTreeList",Yf(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",Yf(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 XT(t)}catch(i){console.error("saveMyAppsList:",i)}},async getMyAppsList({commit:e},t){try{let{data:i}=await YT(t);i=i||"[]",e("setMyAppsList",i)}catch(i){console.error("getMyAppsList:",i)}}}};const JT={modules:{user:WT,app:qT}},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)}),wi(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"&&wi(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(go).forEach(a=>{e.component(`IndM${a}`,go[a])}),Object.keys(yo).forEach(a=>{e.directive(a,yo[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"),Ko(),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 ZT={version:$p.version,install:Jr,components:go,plugins:wk,getDefaultTheme:Yi,doChangeTheme:wi,directives:yo};N.Apps=co,N.AppsEdit=uo,N.AppsNew=mo,N.BasicLayout=vl,N.CHINESE_WEEKDAY_MAP=tm,N.Card=Af,N.CardItem=Nf,N.DatePicker=Uo,N.Debug=tl,N.DetailView=wl,N.EmptyLayout=$i,N.ErrorContent=Qr,N.EventBus=em,N.Form=rl,N.ImgLoad=Ff,N.IndConfigPlugin=Rf,N.IndRouterPlugin=Vf,N.InputSelect=Nd,N.LoadMore=sl,N.LoadingPanel=Ef,N.Login=Vs,N.MyApps=js,N.NotFound=Ui,N.PageView=xl,N.PopupView=kl,N.QueryView=_l,N.Search=Md,N.SelectBtn=Fd,N.SelectPanel=Ad,N.Setting=vo,N.THEME_KEY=Wi,N.UploadFile=Of,N.User=zs,N.User1=pl,N.addRouterGuards=UT,N.appItem=ze,N.bindFocus=_n,N.createMacroBasicRoutes=Ek,N.createMicroBasicRoutes=Dk,N.default=ZT,N.doChangeTheme=wi,N.formatServerTime=Zp,N.generateConfigByXml=In,N.getBreadCrumbList=Go,N.getDefaultTheme=Yi,N.getHomeRoute=En,N.getIconByPositionId=mm,N.getMenuByRouter=Xo,N.getNewTagList=om,N.getNextRoute=Jo,N.getRouteTitleHandled=Yo,N.getStyle=dm,N.getTagNavListFromLocalstorage=qo,N.handleExpiredTime=Qp,N.install=Jr,N.permission=jf,N.routeEqual=Ki,N.routeHasExist=Zo,N.routerOptions=KT,N.scrollToCurInput=Ko,N.setTagNavListInLocalstorage=ea,N.setTitle=am,N.showTitle=sm,N.store=JT,N.tabbar=ti,N.transferIncrease=pm,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|