@indfnd/common-mobile 1.0.77 → 1.0.80
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 +12 -0
- package/dist/ind-common-mobile.es.js +10 -6
- package/dist/ind-common-mobile.umd.cjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.80](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.79...v1.0.80) (2026-04-09)
|
|
6
|
+
|
|
7
|
+
### [1.0.79](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.78...v1.0.79) (2026-04-09)
|
|
8
|
+
|
|
9
|
+
### [1.0.78](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.77...v1.0.78) (2026-04-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* 去掉打日志打印 ([31af101](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/31af101af8d18f73f86b66e99246f72be68f9cda))
|
|
15
|
+
* 优化路由计算算法 ([951f18d](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/951f18de0bbf9651c5f3040b3eda2c8875c1cc5c))
|
|
16
|
+
|
|
5
17
|
### [1.0.77](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.76...v1.0.77) (2026-04-07)
|
|
6
18
|
|
|
7
19
|
### [1.0.76](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.75...v1.0.76) (2026-04-07)
|
|
@@ -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.79";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -1455,6 +1455,11 @@ var FormImpl = {
|
|
|
1455
1455
|
});
|
|
1456
1456
|
}
|
|
1457
1457
|
let renderFieldList = _.cloneDeep(this.fieldList);
|
|
1458
|
+
_.forEach(renderFieldList, (field) => {
|
|
1459
|
+
if (field.class && typeof (field == null ? void 0 : field.class) == "function") {
|
|
1460
|
+
field.class = field.class(this.form);
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1458
1463
|
if (this.formType == "card") {
|
|
1459
1464
|
let titleField = _.remove(renderFieldList, (d) => {
|
|
1460
1465
|
return d.isTitle === "true" || d.isTitle === true;
|
|
@@ -1522,14 +1527,14 @@ var FormImpl = {
|
|
|
1522
1527
|
h(
|
|
1523
1528
|
"div",
|
|
1524
1529
|
{
|
|
1525
|
-
class: "ind-page-title"
|
|
1530
|
+
class: "ind-page-title" + (titleField.class || "")
|
|
1526
1531
|
},
|
|
1527
1532
|
[this.form[titleField == null ? void 0 : titleField.formKey]]
|
|
1528
1533
|
),
|
|
1529
1534
|
h(
|
|
1530
1535
|
"div",
|
|
1531
1536
|
{
|
|
1532
|
-
class: "ind-page-sub-title"
|
|
1537
|
+
class: "ind-page-sub-title" + (subTitleField.class || "")
|
|
1533
1538
|
},
|
|
1534
1539
|
[
|
|
1535
1540
|
(subTitleField == null ? void 0 : subTitleField.dateFormat) ? formatDate(this.form[subTitleField == null ? void 0 : subTitleField.formKey]) : this.form[subTitleField == null ? void 0 : subTitleField.formKey]
|
|
@@ -1594,14 +1599,14 @@ var FormImpl = {
|
|
|
1594
1599
|
h(
|
|
1595
1600
|
"div",
|
|
1596
1601
|
{
|
|
1597
|
-
class: "ind-page-title"
|
|
1602
|
+
class: "ind-page-title" + (titleField.class || "")
|
|
1598
1603
|
},
|
|
1599
1604
|
[this.form[titleField == null ? void 0 : titleField.formKey]]
|
|
1600
1605
|
),
|
|
1601
1606
|
h(
|
|
1602
1607
|
"div",
|
|
1603
1608
|
{
|
|
1604
|
-
class: "ind-page-sub-title"
|
|
1609
|
+
class: "ind-page-sub-title" + (subTitleField.class || "")
|
|
1605
1610
|
},
|
|
1606
1611
|
[
|
|
1607
1612
|
(subTitleField == null ? void 0 : subTitleField.formatDate) ? formatDate(this.form[subTitleField == null ? void 0 : subTitleField.formKey]) : this.form[subTitleField == null ? void 0 : subTitleField.formKey]
|
|
@@ -31804,7 +31809,6 @@ function listToMenuTree({ list: list2, childrenMap, menuTree, pageNode, parentId
|
|
|
31804
31809
|
if (!childrenMap) {
|
|
31805
31810
|
childrenMap = buildChildrenMap(list2);
|
|
31806
31811
|
}
|
|
31807
|
-
console.log("childrenMap now is", childrenMap);
|
|
31808
31812
|
let appInfo = getSessionStorage("appInfo");
|
|
31809
31813
|
const siblings = childrenMap.get(parentId) || [];
|
|
31810
31814
|
siblings.forEach((item2) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(P,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):(P=typeof globalThis!="undefined"?globalThis:P||self,Hi(P.IndMobileCommon={},P.lodash,P["@indfnd/utils"],P.vue,P["view-design"]))})(this,function(P,Hi,M,Tp,ke){"use strict";function Ao(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var y=Ao(Hi),_t=Ao(Tp),_p={name:"@indfnd/common-mobile",version:"1.0.76",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.40",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},Ip=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)},Ep=[];function X(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(p,f){return c.call(f),h(p,f)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Dp={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)}}},No={};var Mp=X(Dp,Ip,Ep,!1,Op,null,null,null);function Op(e){for(let t in No)this[t]=No[t]}var Lp=function(){return Mp.exports}(),Ap=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))])])])])},Np=[];const Pp={name:"IndErrorContent",components:{BackBtnGroup:Lp},props:{code:String,desc:String,src:String}},Po={};var Bp=X(Pp,Ap,Np,!1,Rp,null,null,null);function Rp(e){for(let t in Po)this[t]=Po[t]}var ta=function(){return Bp.exports}(),Fp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},Vp=[];const zp={name:"IndNotFound",components:{ErrorContent:ta},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Bo={};var jp=X(zp,Fp,Vp,!1,Hp,null,null,null);function Hp(e){for(let t in Bo)this[t]=Bo[t]}var Ui=function(){return jp.exports}(),Ro=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kp(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()})(Ro,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",p="year",f="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},T=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:T,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),E=g%60;return(k<=0?"+":"-")+T(I,2,"0")+":"+T(E,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()),E=k.clone().add(I,d),j=g-E<0,U=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-E)/(j?E-U:U-E))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:p,w:h,d:c,D:f,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},D="en",L={};L[D]=x;var H="$isDayjsObject",B=function(V){return V instanceof it||!(!V||!V[H])},z=function V(k,g,I){var E;if(!k)return D;if(typeof k=="string"){var j=k.toLowerCase();L[j]&&(E=j),g&&(L[j]=g,E=j);var U=k.split("-");if(!E&&U.length>1)return V(U[0])}else{var S=k.name;L[S]=k,E=S}return!I&&E&&(D=E),E||!I&&D},R=function(V,k){if(B(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=B,A.w=function(V,k){return R(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[H]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var E=I.date,j=I.utc;if(E===null)return new Date(NaN);if(A.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var U=E.match(v);if(U){var S=U[2]-1||0,b=(U[7]||"0").substring(0,3);return j?new Date(Date.UTC(U[1],S,U[3]||1,U[4]||0,U[5]||0,U[6]||0,b)):new Date(U[1],S,U[3]||1,U[4]||0,U[5]||0,U[6]||0,b)}}return new Date(E)}(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 E=R(g);return this.startOf(I)<=E&&E<=this.endOf(I)},k.isAfter=function(g,I){return R(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<R(g)},k.$g=function(g,I,E){return A.u(g)?this[I]:this.set(E,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var E=this,j=!!A.u(I)||I,U=A.p(g),S=function(Tt,$t){var Ae=A.w(E.$u?Date.UTC(E.$y,$t,Tt):new Date(E.$y,$t,Tt),E);return j?Ae:Ae.endOf(c)},b=function(Tt,$t){return A.w(E.toDate()[Tt].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),E)},w=this.$W,F=this.$M,W=this.$D,q="set"+(this.$u?"UTC":"");switch(U){case p:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(w<tt?w+7:w)-tt;return S(j?W-ct:W+(6-ct),F);case c:case f:return b(q+"Hours",0);case l:return b(q+"Minutes",1);case o:return b(q+"Seconds",2);case s:return b(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var E,j=A.p(g),U="set"+(this.$u?"UTC":""),S=(E={},E[c]=U+"Date",E[f]=U+"Date",E[d]=U+"Month",E[p]=U+"FullYear",E[l]=U+"Hours",E[o]=U+"Minutes",E[s]=U+"Seconds",E[a]=U+"Milliseconds",E)[j],b=j===c?this.$D+(I-this.$W):I;if(j===d||j===p){var w=this.clone().set(f,1);w.$d[S](b),w.init(),this.$d=w.set(f,Math.min(this.$D,w.daysInMonth())).$d}else S&&this.$d[S](b);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[A.p(g)]()},k.add=function(g,I){var E,j=this;g=Number(g);var U=A.p(I),S=function(F){var W=R(j);return A.w(W.date(W.date()+Math.round(F*g)),j)};if(U===d)return this.set(d,this.$M+g);if(U===p)return this.set(p,this.$y+g);if(U===c)return S(1);if(U===h)return S(7);var b=(E={},E[o]=n,E[l]=r,E[s]=i,E)[U]||1,w=this.$d.getTime()+g*b;return A.w(w,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,E=this.$locale();if(!this.isValid())return E.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",U=A.z(this),S=this.$H,b=this.$m,w=this.$M,F=E.weekdays,W=E.months,q=E.meridiem,tt=function($t,Ae,_n,Qr){return $t&&($t[Ae]||$t(I,j))||_n[Ae].slice(0,Qr)},ct=function($t){return A.s(S%12||12,$t,"0")},Tt=q||function($t,Ae,_n){var Qr=$t<12?"AM":"PM";return _n?Qr.toLowerCase():Qr};return j.replace(C,function($t,Ae){return Ae||function(_n){switch(_n){case"YY":return String(I.$y).slice(-2);case"YYYY":return A.s(I.$y,4,"0");case"M":return w+1;case"MM":return A.s(w+1,2,"0");case"MMM":return tt(E.monthsShort,w,W,3);case"MMMM":return tt(W,w);case"D":return I.$D;case"DD":return A.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(E.weekdaysMin,I.$W,F,2);case"ddd":return tt(E.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return A.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,b,!0);case"A":return Tt(S,b,!1);case"m":return String(b);case"mm":return A.s(b,2,"0");case"s":return String(I.$s);case"ss":return A.s(I.$s,2,"0");case"SSS":return A.s(I.$ms,3,"0");case"Z":return U}return null}($t)||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,E){var j,U=this,S=A.p(I),b=R(g),w=(b.utcOffset()-this.utcOffset())*n,F=this-b,W=function(){return A.m(U,b)};switch(S){case p:j=W()/12;break;case d:j=W();break;case u:j=W()/3;break;case h:j=(F-w)/6048e5;break;case c:j=(F-w)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return E?j:A.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return L[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var E=this.clone(),j=z(g,I,!0);return j&&(E.$L=j),E},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 R.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",p],["$D",f]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),R.extend=function(V,k){return V.$i||(V(k,it,R),V.$i=!0),R},R.locale=z,R.isDayjs=B,R.unix=function(V){return R(1e3*V)},R.en=L[D],R.Ls=L,R.p={},R})})(Fo);var St=Fo.exports,Wp=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)},Yp=[];const Vo=new Date().getFullYear(),zo=new Date().getMonth()+1,Xp=`Q${M.getQuarterNum(zo)}`,qp=`H${M.getHalfYearNum(zo)}`,jo=10,Ho=10,Gp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Vo+Xp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Vo+qp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?M.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Uo={};var Jp=X(Gp,Wp,Yp,!1,Zp,null,null,null);function Zp(e){for(let t in Uo)this[t]=Uo[t]}var Ko=function(){return Jp.exports}();function In(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Wo(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function 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 ea(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=>ea(l)):o=[ea(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function En(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ea(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const tm=!1;var Te=M.useConfig(tm);function em(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 im(e,t){let i=St(e).diff(St(),"day");i<=Te.leftLockDays&&t(i)}const nm={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},rm=new _t.default,am=e=>e.children&&e.children.length,sm=(e,t)=>e.some(i=>t.includes(i)),Yo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!sm(e.meta.access,t):!0,om=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Xo=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},lm=()=>{},qo=(e,t)=>{let i=[];return hm(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(am(n)||n.meta&&n.meta.showAlways)&&Yo(n,t)&&(r.children=qo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Yo(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},cm=e=>e.meta.title,ia=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Jo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},Dn=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=Dn(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Zo=(e,t)=>{let i={};if(e.length===2)i=Dn(e);else{const n=e.findIndex(r=>Ki(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Qo=(e,t)=>{let i=e.length,n=!1;return om(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,um=(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 hm(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 dm=/([\:\-\_]+(.))/g,fm=/^moz([A-Z])/;function pm(e){return e.replace(dm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(fm,"Moz$1")}function mm(e,t){if(!e||!t)return null;t=pm(t),t==="float"&&(t="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch{return e.style[t]}}var tl={exports:{}};/*!
|
|
1
|
+
(function(P,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):(P=typeof globalThis!="undefined"?globalThis:P||self,Hi(P.IndMobileCommon={},P.lodash,P["@indfnd/utils"],P.vue,P["view-design"]))})(this,function(P,Hi,M,Tp,ke){"use strict";function Ao(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var y=Ao(Hi),_t=Ao(Tp),_p={name:"@indfnd/common-mobile",version:"1.0.79",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.40",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},Ip=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)},Ep=[];function X(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(p,f){return c.call(f),h(p,f)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Dp={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)}}},No={};var Mp=X(Dp,Ip,Ep,!1,Op,null,null,null);function Op(e){for(let t in No)this[t]=No[t]}var Lp=function(){return Mp.exports}(),Ap=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))])])])])},Np=[];const Pp={name:"IndErrorContent",components:{BackBtnGroup:Lp},props:{code:String,desc:String,src:String}},Po={};var Bp=X(Pp,Ap,Np,!1,Rp,null,null,null);function Rp(e){for(let t in Po)this[t]=Po[t]}var ta=function(){return Bp.exports}(),Fp=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ErrorContent",{attrs:{code:"404",desc:"Oh~~\u60A8\u7684\u9875\u9762\u597D\u50CF\u98DE\u8D70\u4E86~",src:e.src}})},Vp=[];const zp={name:"IndNotFound",components:{ErrorContent:ta},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Bo={};var jp=X(zp,Fp,Vp,!1,Hp,null,null,null);function Hp(e){for(let t in Bo)this[t]=Bo[t]}var Ui=function(){return jp.exports}(),Ro=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kp(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()})(Ro,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",p="year",f="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var k=["th","st","nd","rd"],g=V%100;return"["+V+(k[(g-20)%10]||k[g]||k[0])+"]"}},T=function(V,k,g){var I=String(V);return!I||I.length>=k?V:""+Array(k+1-I.length).join(g)+V},_={s:T,z:function(V){var k=-V.utcOffset(),g=Math.abs(k),I=Math.floor(g/60),E=g%60;return(k<=0?"+":"-")+T(I,2,"0")+":"+T(E,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()),E=k.clone().add(I,d),j=g-E<0,U=k.clone().add(I+(j?-1:1),d);return+(-(I+(g-E)/(j?E-U:U-E))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:p,w:h,d:c,D:f,h:l,m:o,s,ms:a,Q:u}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},D="en",L={};L[D]=x;var H="$isDayjsObject",B=function(V){return V instanceof it||!(!V||!V[H])},z=function V(k,g,I){var E;if(!k)return D;if(typeof k=="string"){var j=k.toLowerCase();L[j]&&(E=j),g&&(L[j]=g,E=j);var U=k.split("-");if(!E&&U.length>1)return V(U[0])}else{var S=k.name;L[S]=k,E=S}return!I&&E&&(D=E),E||!I&&D},R=function(V,k){if(B(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=B,A.w=function(V,k){return R(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[H]=!0}var k=V.prototype;return k.parse=function(g){this.$d=function(I){var E=I.date,j=I.utc;if(E===null)return new Date(NaN);if(A.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var U=E.match(v);if(U){var S=U[2]-1||0,b=(U[7]||"0").substring(0,3);return j?new Date(Date.UTC(U[1],S,U[3]||1,U[4]||0,U[5]||0,U[6]||0,b)):new Date(U[1],S,U[3]||1,U[4]||0,U[5]||0,U[6]||0,b)}}return new Date(E)}(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 E=R(g);return this.startOf(I)<=E&&E<=this.endOf(I)},k.isAfter=function(g,I){return R(g)<this.startOf(I)},k.isBefore=function(g,I){return this.endOf(I)<R(g)},k.$g=function(g,I,E){return A.u(g)?this[I]:this.set(E,g)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(g,I){var E=this,j=!!A.u(I)||I,U=A.p(g),S=function(Tt,$t){var Ae=A.w(E.$u?Date.UTC(E.$y,$t,Tt):new Date(E.$y,$t,Tt),E);return j?Ae:Ae.endOf(c)},b=function(Tt,$t){return A.w(E.toDate()[Tt].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice($t)),E)},w=this.$W,F=this.$M,W=this.$D,q="set"+(this.$u?"UTC":"");switch(U){case p:return j?S(1,0):S(31,11);case d:return j?S(1,F):S(0,F+1);case h:var tt=this.$locale().weekStart||0,ct=(w<tt?w+7:w)-tt;return S(j?W-ct:W+(6-ct),F);case c:case f:return b(q+"Hours",0);case l:return b(q+"Minutes",1);case o:return b(q+"Seconds",2);case s:return b(q+"Milliseconds",3);default:return this.clone()}},k.endOf=function(g){return this.startOf(g,!1)},k.$set=function(g,I){var E,j=A.p(g),U="set"+(this.$u?"UTC":""),S=(E={},E[c]=U+"Date",E[f]=U+"Date",E[d]=U+"Month",E[p]=U+"FullYear",E[l]=U+"Hours",E[o]=U+"Minutes",E[s]=U+"Seconds",E[a]=U+"Milliseconds",E)[j],b=j===c?this.$D+(I-this.$W):I;if(j===d||j===p){var w=this.clone().set(f,1);w.$d[S](b),w.init(),this.$d=w.set(f,Math.min(this.$D,w.daysInMonth())).$d}else S&&this.$d[S](b);return this.init(),this},k.set=function(g,I){return this.clone().$set(g,I)},k.get=function(g){return this[A.p(g)]()},k.add=function(g,I){var E,j=this;g=Number(g);var U=A.p(I),S=function(F){var W=R(j);return A.w(W.date(W.date()+Math.round(F*g)),j)};if(U===d)return this.set(d,this.$M+g);if(U===p)return this.set(p,this.$y+g);if(U===c)return S(1);if(U===h)return S(7);var b=(E={},E[o]=n,E[l]=r,E[s]=i,E)[U]||1,w=this.$d.getTime()+g*b;return A.w(w,this)},k.subtract=function(g,I){return this.add(-1*g,I)},k.format=function(g){var I=this,E=this.$locale();if(!this.isValid())return E.invalidDate||m;var j=g||"YYYY-MM-DDTHH:mm:ssZ",U=A.z(this),S=this.$H,b=this.$m,w=this.$M,F=E.weekdays,W=E.months,q=E.meridiem,tt=function($t,Ae,_n,Qr){return $t&&($t[Ae]||$t(I,j))||_n[Ae].slice(0,Qr)},ct=function($t){return A.s(S%12||12,$t,"0")},Tt=q||function($t,Ae,_n){var Qr=$t<12?"AM":"PM";return _n?Qr.toLowerCase():Qr};return j.replace(C,function($t,Ae){return Ae||function(_n){switch(_n){case"YY":return String(I.$y).slice(-2);case"YYYY":return A.s(I.$y,4,"0");case"M":return w+1;case"MM":return A.s(w+1,2,"0");case"MMM":return tt(E.monthsShort,w,W,3);case"MMMM":return tt(W,w);case"D":return I.$D;case"DD":return A.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return tt(E.weekdaysMin,I.$W,F,2);case"ddd":return tt(E.weekdaysShort,I.$W,F,3);case"dddd":return F[I.$W];case"H":return String(S);case"HH":return A.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return Tt(S,b,!0);case"A":return Tt(S,b,!1);case"m":return String(b);case"mm":return A.s(b,2,"0");case"s":return String(I.$s);case"ss":return A.s(I.$s,2,"0");case"SSS":return A.s(I.$ms,3,"0");case"Z":return U}return null}($t)||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(g,I,E){var j,U=this,S=A.p(I),b=R(g),w=(b.utcOffset()-this.utcOffset())*n,F=this-b,W=function(){return A.m(U,b)};switch(S){case p:j=W()/12;break;case d:j=W();break;case u:j=W()/3;break;case h:j=(F-w)/6048e5;break;case c:j=(F-w)/864e5;break;case l:j=F/r;break;case o:j=F/n;break;case s:j=F/i;break;default:j=F}return E?j:A.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return L[this.$L]},k.locale=function(g,I){if(!g)return this.$L;var E=this.clone(),j=z(g,I,!0);return j&&(E.$L=j),E},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 R.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",p],["$D",f]].forEach(function(V){ot[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),R.extend=function(V,k){return V.$i||(V(k,it,R),V.$i=!0),R},R.locale=z,R.isDayjs=B,R.unix=function(V){return R(1e3*V)},R.en=L[D],R.Ls=L,R.p={},R})})(Fo);var St=Fo.exports,Wp=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)},Yp=[];const Vo=new Date().getFullYear(),zo=new Date().getMonth()+1,Xp=`Q${M.getQuarterNum(zo)}`,qp=`H${M.getHalfYearNum(zo)}`,jo=10,Ho=10,Gp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?St(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Vo+Xp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.quarterList.findIndex(r=>r.value==t);this.dataList[1].values=["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"],this.dataList[1].defaultIndex=n}else if(this.type=="year-half"){this.fullYear&&(this.halfList=[{label:"\u5168\u5E74",value:"H0",startMonth:"01",endMonth:"12"},{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]),this.dateValue=this.value?this.value:Vo+qp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-jo;r<=e+Ho;r++)this.dataList[0].values.push(r);let i=this.dataList[0].values.findIndex(r=>r==e);this.dataList[0].defaultIndex=i;let n=this.halfList.findIndex(r=>r.value==t);this.dataList[1].values=["\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"],this.fullYear&&(this.dataList[1].values=["\u5168\u5E74","\u4E0A\u534A\u5E74","\u4E0B\u534A\u5E74"]),this.dataList[1].defaultIndex=n,console.log(this.dataList)}},deactivated(){this.visible=!1},watch:{value(){console.log("value change",this.value),this.dateValue=this.value?St(this.value).toDate():new Date}},computed:{formatValue:function(){if(this.value&&this.type=="year-quarter"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.quarterList.find(i=>i.value==t),`${e}${t.label}`}else if(this.value&&this.type=="year-half"){let e=parseInt(this.value.substring(0,4)),t=this.value.substring(4,6);return t=this.halfList.find(i=>i.value==t),`${e}${t.label}`}return this.value?M.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=St(this.dateValue).format("YYYYMM");else if(this.type=="date")i=St(this.dateValue).format("YYYYMMDD");else if(this.type=="year-quarter"){let n=this.quarterList[t[1]];i=`${e[0]}${n.value}`}else if(this.type=="year-half"){let n=this.halfList[t[1]];i=`${e[0]}${n.value}`}this.$emit("input",i)},clear(){this.dateValue=new Date,this.$emit("input","")},confirm(e,t){this.dateValue=e,this.emitValue(e,t),this.visible=!1},cancel(){this.visible=!1}}},Uo={};var Jp=X(Gp,Wp,Yp,!1,Zp,null,null,null);function Zp(e){for(let t in Uo)this[t]=Uo[t]}var Ko=function(){return Jp.exports}();function In(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Wo(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function 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 ea(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=>ea(l)):o=[ea(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function En(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return ea(n,t)}catch(i){return console.log("\u914D\u7F6E\u5185\u5BB9",e),console.error("\u89E3\u6790\u529F\u80FD\u914D\u7F6E\u4FE1\u606F\u5F02\u5E38",i),{}}}const tm=!1;var Te=M.useConfig(tm);function em(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 im(e,t){let i=St(e).diff(St(),"day");i<=Te.leftLockDays&&t(i)}const nm={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"},rm=new _t.default,am=e=>e.children&&e.children.length,sm=(e,t)=>e.some(i=>t.includes(i)),Yo=(e,t)=>e.meta&&e.meta.access&&e.meta.access.length?!!sm(e.meta.access,t):!0,om=(e,t)=>{let i=-1;for(;++i<e;)t(i)},Xo=e=>{let t={...e},i={...e.meta},n="";return i.title&&(typeof i.title=="function"?(i.__titleIsFunction__=!0,n=i.title(t)):n=i.title),i.title=n,t.meta=i,t},lm=()=>{},qo=(e,t)=>{let i=[];return hm(e,n=>{if(!n.meta||n.meta&&!n.meta.hideInMenu){let r={icon:n.meta&&n.meta.icon||"",name:n.name,meta:n.meta};(am(n)||n.meta&&n.meta.showAlways)&&Yo(n,t)&&(r.children=qo(n.children,t)),n.meta&&n.meta.href&&(r.href=n.meta.href),Yo(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},cm=e=>e.meta.title,ia=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Jo=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},Dn=(e,t="home")=>{let i=-1,n=e.length,r={};for(;++i<n;){let a=e[i];if(a.children&&a.children.length){let s=Dn(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Zo=(e,t)=>{let i={};if(e.length===2)i=Dn(e);else{const n=e.findIndex(r=>Ki(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Qo=(e,t)=>{let i=e.length,n=!1;return om(i,r=>{Ki(e[r],t)&&(n=!0)}),n},Ki=(e,t)=>e.name===t.name,um=(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 hm(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 dm=/([\:\-\_]+(.))/g,fm=/^moz([A-Z])/;function pm(e){return e.replace(dm,function(t,i,n,r){return r?n.toUpperCase():n}).replace(fm,"Moz$1")}function mm(e,t){if(!e||!t)return null;t=pm(t),t==="float"&&(t="cssFloat");try{const i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch{return e.style[t]}}var tl={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function i(){for(var a="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(a=r(a,n(o)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return i.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var o in a)t.call(a,o)&&a[o]&&(s=r(s,o));return s}function r(a,s){return s?a?a+" "+s:a+s:a}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(tl);var vm=tl.exports;const Wi="ind-theme";function Yi(){return M.getLocalStorage(Wi)||"ind-default-theme"}function wi(e){var i,n;const t=(i=document.getElementsByTagName("body"))==null?void 0:i[0];if(t){const a=(((n=t.className)==null?void 0:n.split(" "))||[]).reduce((l,c)=>({...l,[c]:!0}),{});let s={};const o=t.getAttribute(Wi);o&&(s={[o]:!1}),t.setAttribute(Wi,e),t.className=vm(e,{...a,...s})}}P.transferIndex=1e3;function gm(){P.transferIndex++}function el(){let e="";if(location.search){let t=/debug=([^&]*)/.exec(location.search);t&&t.length>1&&(e=t[1])}if(e=="vConsole"){const t=document.createElement("script");t.src="vconsole.min.js",t.async=!0,document.getElementsByTagName("head")[0].appendChild(t),t.onload=function(){window.vConsole=new VConsole}}else if(e=="chii"){const t=document.createElement("script");t.src="//dev.sunquan.tech/inspect/target.js",t.async=!0,document.getElementsByTagName("head")[0].appendChild(t)}}function il(e){var t;try{const{positionId:i,config:n}=e||{};if(!n||!i)return null;const r=n.systemDefaultConfig||{},a=r.iconList||{},s=r.iconTableData||[];let o=null;if(a.hasOwnProperty(i)){const l=a[i];l&&typeof l=="string"&&(o=`/user-manage-server/oss/file/get/${l}`)}if(!o){const l=s.find(c=>(c==null?void 0:c.positionId)&&String(c.positionId)===i);if(l!=null&&l.iconFielId)try{const c=JSON.parse(l.iconFielId);Array.isArray(c)&&((t=c[0])==null?void 0:t.fileUrl)&&(o=c[0].fileUrl)}catch(c){console.error(`[getIconByPositionId] \u89E3\u6790 iconFielId \u5931\u8D25\uFF08positionId: ${i}\uFF09:`,c)}}return o||null}catch(i){return console.error("[getIconByPositionId] \u89E3\u6790\u914D\u7F6E\u5931\u8D25:",i),null}}function Xi(e){try{const{permission:t,meta:i,config:n,ossServerContext:r="/user-manage-server"}=e||{},{icon:a}=i||{};if(!t||!n)return"";const s=il({positionId:t,config:n});if(s)return s;if(a&&a.slice(0,3)==="oss"&&a.length>=4){const l=a.slice(4);return`${r}/oss/file/get/${l}`}const o=location.pathname.includes("scyxweb");return`${location.origin}${o?"/hbwebchat/scyxweb":""}${a||""}`}catch(t){return console.error("[getImgByPermission] \u83B7\u53D6\u56FE\u7247\u8DEF\u5F84\u5931\u8D25:",t),""}}const ym=24,bm=3;var nl={name:"FormImpl",data(){return{form:{},enumList:[],enumData:{},showMore:!0,rules:{},refreshForm:!0}},props:{gridColumns:Number,labelWidth:{type:Number,default:160},funId:String,fieldList:Array,value:Object,formType:{type:String,default:"form"},searchLoading:Boolean,queryBtn:{type:Boolean,default:!0},formCacheList:Array,curCacheId:String,formEnumData:Object,cardBtns:[Function,Array],flowBusiPk:String},created(){this.form=y.default.cloneDeep(this.value),this.initDictData(),this.rules=this.ruleValidate},computed:{ruleValidate(){let e={};return y.default.forEach(this.fieldList,t=>{var n,r;if(t.required instanceof Function?t.required(this.form):t.required){let a={required:!0,message:t.title+"\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"};if(t.validate&&(a.validator=t.validate),["number"].includes(t.type))a.type="number";else if(["checkbox","treeselect","fileUpload","imgUpload"].includes(t.type)||t.type==="select"&&((n=t.props)==null?void 0:n.multiple))a.type="array";else if(["datepicker"].includes(t.type)){const s=t.props;((r=s==null?void 0:s.type)==null?void 0:r.includes("range"))?(a.type="array",a.len="2",a.fields={0:{type:"string",required:!0,message:t.title+"\u7684\u5F00\u59CB\u65E5\u671F\u4E0D\u80FD\u4E3A\u7A7A"},1:{type:"string",required:!0,message:t.title+"\u7684\u7ED3\u675F\u65E5\u671F\u4E0D\u80FD\u4E3A\u7A7A"}}):a.type="string"}"treeselect".includes(t.type)&&(a.trigger="custom"),e[t.formKey]=[a]}t.type=="idcard"?(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({validator:(a,s,o)=>{let l=M.checkIdCard(s);!s||l=="\u9A8C\u8BC1\u901A\u8FC7!"?o():o(new Error(l))},trigger:"blur"})):t.type=="vehicleNo"?(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({validator:(a,s,o)=>{!s||M.checkVehicleNo(s)?o():o(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8F66\u724C\u53F7\u683C\u5F0F"))},trigger:"blur"})):t.type=="phone"?(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({validator:(a,s,o)=>{!s||M.checkPhone(s)?o():o(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7535\u8BDD\u683C\u5F0F"))},trigger:"blur"})):t.type=="email"&&(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u683C\u5F0F",trigger:"blur"}))}),e},ruleValidateStr(){return JSON.stringify(this.ruleValidate)},defaultSpan(){return this.gridColumns?24/this.gridColumns:ym}},watch:{fieldList(){this.initDictData()},value:{deep:!0,handler(){this.form=y.default.cloneDeep(this.value)}},ruleValidateStr:async function(){this.rules=this.ruleValidate,await this.$nextTick(),this.refreshForm=!1,await this.$nextTick(),this.refreshForm=!0}},methods:{initDictData(){let e=[];this.fieldList.forEach(t=>{t.enumKey&&e.push(t.enumKey)}),this.enumList=e,this.enumList&&this.enumList.length&&this.getDictData()},async getDictData(){const e=await M.getDictMapApi(this.enumList);let t={};y.default.forEach(e,(i,n)=>{t[n]={enumData:i.data,enumList:i.renderData}}),this.enumData=t},resetFields(){return this.$refs.form.resetFields()},async validate(){return await this.$refs.form.validate()},validateField(e,t){return this.$refs.form.validateField(e,t)}},render(e){var a,s,o,l,c,h,d;let t=[],i;this.formType=="search"?i=y.default.fill(y.default.range(Math.max(4,this.fieldList.length)),6):(i=y.default.fill(y.default.range(this.fieldList.length),this.defaultSpan),y.default.forEach(this.fieldList,(u,p)=>{u.span?i[p]=parseInt(u.span):["textarea","fileUpload","imgUpload"].includes(u.type)&&(i[p]=24),(u.condition instanceof Function?u.condition(this.form):u.condition!==!1)||(i[p]=0)}));let n=y.default.cloneDeep(this.fieldList);if(this.formType=="card"){let u=y.default.remove(n,v=>v.isTitle==="true"||v.isTitle===!0)[0],p=y.default.remove(n,v=>v.isSubTitle==="true"||v.isSubTitle===!0)[0],f=y.default.remove(n,v=>v.isStatus==="true"||v.isStatus===!0)[0],m=this.form[f==null?void 0:f.formKey];if(f.enumKey)m=(s=(a=this.enumData[f==null?void 0:f.enumKey])==null?void 0:a.enumData)==null?void 0:s[m];else if(f!=null&&f.enumList)if(typeof(f==null?void 0:f.enumList)=="function"){let v=f==null?void 0:f.enumList(this.form);m=(o=v==null?void 0:v.find(({K:C})=>C===m))==null?void 0:o.V}else(f==null?void 0:f.enumList)instanceof Array&&((l=f==null?void 0:f.enumList)==null?void 0:l.length)&&(m=(h=(c=f.enumList)==null?void 0:c.find(({K:v})=>v===m))==null?void 0:h.V);else if(f.enumData)if(typeof(f==null?void 0:f.enumData)=="function"){let v=f==null?void 0:f.enumData(this.form);m=v==null?void 0:v[m]}else m=(d=f.enumData)==null?void 0:d[m];typeof f.statusText=="function"&&(m=f.statusText(this.form)),t.push(e("Col",{class:"ind-card-title",props:{span:24}},[e("FormItem",{props:{labelWidth:0}},[e("div",{class:"ind-flex",style:{marginBottom:"var(--ind-page-padding-vertical)"}},[e("div",{class:"ind-flex-column ind-flex-grow"},[e("div",{class:"ind-page-title"},[this.form[u==null?void 0:u.formKey]]),e("div",{class:"ind-page-sub-title"},[p!=null&&p.dateFormat?M.formatDate(this.form[p==null?void 0:p.formKey]):this.form[p==null?void 0:p.formKey]])]),e("div",{class:"ind-status ind-flex-no-shrink "+((f==null?void 0:f.class)instanceof Function?f==null?void 0:f.class(this.form):f==null?void 0:f.class)},[m])])])]))}else if(this.formType=="card2"){let u=y.default.remove(n,f=>f.isTitle==="true"||f.isTitle===!0)[0],p=y.default.remove(n,f=>f.isSubTitle==="true"||f.isSubTitle===!0)[0];t.push(e("Col",{class:"ind-card-title",props:{span:24}},[e("FormItem",{props:{labelWidth:0}},[e("div",{class:"ind-flex",style:{marginBottom:"var(--ind-page-padding-vertical)"}},[e("div",{class:"ind-flex-column ind-flex-grow ind-vcenter"},[e("div",{class:"ind-page-title"},[this.form[u==null?void 0:u.formKey]]),e("div",{class:"ind-page-sub-title"},[p!=null&&p.formatDate?M.formatDate(this.form[p==null?void 0:p.formKey]):this.form[p==null?void 0:p.formKey]])])])])]))}let r=this.fieldList.length-n.length;if(y.default.forEach(n,(u,p)=>{var C,x,T,_,D,L,H,B,z,R,A,it,ot,V;let f;if(u.render)f=u.render(e,u,this.form);else{const k=u.disabled instanceof Function?u.disabled(this.form):u.disabled;switch(u.type){case"input":case"email":case"phone":case"vehicleNo":case"idcard":{f=e("Input",{ref:u.formKey,props:{placeholder:`\u8BF7\u8F93\u5165${u.title}`,...u.props,value:this.form[u.formKey],disabled:k},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})},"on-focus":g=>{In(g)}}});break}case"number":{let g=this.form[u.formKey];u.scale!==void 0&&(g=isNaN(g)||g===null?g:parseFloat(parseFloat(g).toFixed(u.scale))),f=e("Input",{ref:u.formKey,attrs:{title:""},props:{placeholder:"\u8BF7\u8F93\u5165\u6570\u5B57",...u.props,value:g,disabled:k,type:"number"},on:{"on-blur":I=>{var U;let E=I.target.value,j=/(-?)(\d{1,10})(\d{0,999})(\.\d{1,6})?/.exec(E);j&&j.length&&(E=((U=u==null?void 0:u.props)!=null&&U.enableNegative?j[1]:"")+j[2]+(j[4]||"")),this.form[u.formKey]=parseFloat(E),this.$refs[u.formKey]&&this.$refs[u.formKey].setCurrentValue(E),this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})},"on-focus":I=>{console.log("number focus",I),In(I)}}});break}case"textarea":{f=e("Input",{ref:u.formKey,props:{placeholder:`\u8BF7\u8F93\u5165${u.title}`,...u.props,value:this.form[u.formKey],disabled:k,type:"textarea",rows:((C=u.props)==null?void 0:C.rows)||3,maxlength:((x=u.props)==null?void 0:x.maxlength)||1024,showWordLimit:((T=u.props)==null?void 0:T.showWordLimit)||!0},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})},"on-focus":g=>{In(g)}}});break}case"select":{f=e("IndMInputSelect",{ref:u.formKey,props:{title:u.title,options:u.enumListFn?u.enumListFn(this.form):u.enumList||((_=this.enumData[u.enumKey])==null?void 0:_.enumList)||[],...u.props||{},value:this.form[u.formKey],disabled:k},attrs:{...u.props,noTriggerInDefault:!0},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey)}}});break}case"checkbox":{f=e("CheckboxGroup",{ref:u.formKey,props:{...u.props,value:this.form[u.formKey]},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}},(u.enumList||((D=this.enumData[u.enumKey])==null?void 0:D.enumList)||[]).map(g=>e("Checkbox",{props:{label:g.K,disabled:k}},[g.V])));break}case"selectbtn":{f=e("IndMSelectBtn",{ref:u.formKey,props:{...u.props,options:u.enumList||((L=this.enumData[u.enumKey])==null?void 0:L.enumList)||[],value:this.form[u.formKey]},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}});break}case"radio":{f=e("RadioGroup",{ref:u.formKey,props:{...u.props,value:this.form[u.formKey]},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}},(u.enumList||((H=this.enumData[u.enumKey])==null?void 0:H.enumList)||[]).map(g=>e("Radio",{props:{label:g.K,disabled:k}},[g.V])));break}case"datepicker":{f=e("IndMDatePicker",{ref:u.formKey,props:{value:this.form[u.formKey],type:((B=u.props)==null?void 0:B.type)||"date"},attrs:{...u.props,placeholder:"\u8BF7\u9009\u62E9"+u.title,minDate:u.minDate,maxDate:u.maxDate,disabled:k},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}});break}case"timepicker":{f=e("TimePicker",{ref:u.formKey,props:{...u.props||{},type:((z=u.props)==null?void 0:z.type)||"time",value:this.form[u.formKey]},attrs:{confirm:!0,...u.props||{}},on:{"on-change":g=>{var I,E,j;this.val=g,((I=u.props)==null?void 0:I.confirm)===!1&&(this.form[u.formKey]=this.val instanceof Date?St(this.val).format((E=u.props)!=null&&E.format?(j=u.props)==null?void 0:j.format:"HH:mm:ss"):this.val,this.$emit("input",this.form),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey))},"on-ok":()=>{var I,E;this.form[u.formKey]=this.val instanceof Date?St(this.val).format((I=u.props)!=null&&I.format?(E=u.props)==null?void 0:E.format:"HH:mm:ss"):this.val,this.$emit("input",this.form),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey)}}});break}case"treeselect":{f=e("IndMInputSelect",{ref:u.formKey,props:{title:u.title,...u.props||{},value:this.form[u.formKey],disabled:k},attrs:{...u.props,noTriggerInDefault:!0},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey)}}});break}case"fileUpload":{f=e("IndMUploadFile",{ref:u.formKey,props:{...u.props||{},defaultList:this.form[u.formKey],disabled:k},attrs:{...u.props},on:{onChangeData:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})}}});break}case"imgUpload":{f=e("IndUploadImg",{ref:u.formKey,props:{...u.props||{},defaultList:this.form[u.formKey],disabled:k},attrs:{...u.props},on:{onChangeData:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})}}});break}default:{let g=this.form[u.formKey];u.enumKey?g=(A=(R=this.enumData[u.enumKey])==null?void 0:R.enumData)==null?void 0:A[g]:u.enumList&&u.enumList.length?g=(ot=(it=u.enumList)==null?void 0:it.find(({K:I})=>I===g))==null?void 0:ot.V:u.enumData&&(g=(V=u.enumData)==null?void 0:V[g]),u.dateFormat&&(g=M.formatDate(g)),u.scale!==void 0&&(g=isNaN(g)||g===null?g:parseFloat(parseFloat(g).toFixed(u.scale))),f=e("span",{},[e("span",{class:u.class||""},[g!==0?g||"":g]),e("span",{domProps:{innerHTML:u.unit?" ":""}}),e("span",{},[u.unit||""])])}}}let m=u.condition instanceof Function?u.condition(this.form):u.condition!==!1,v=this.formType=="search"?this.showMore?!0:p<bm:!0;m&&v&&(u.split==="true"&&t.push(e("Col",{props:{span:24}},[e("hr",{style:{margin:"10px 0 5px 0",backgroundColor:"#EEEEEE",height:"1px",border:"none"}})])),["selectbtn","radio","checkbox"].includes(u.type)?t.push(e("Col",{props:{span:i[p+r]},nativeOn:{click:()=>{u.isTitle&&this.$emit("itemClick",this.form)}}},[e("FormItem",{props:{label:u.title,prop:u.formKey}},[]),f])):t.push(e("Col",{props:{span:i[p+r]},nativeOn:{click:()=>{u.isTitle&&this.$emit("itemClick",this.form)}}},[e("FormItem",{props:{labelWidth:this.formType!="searchMobile"&&(u.isTitle||i[p+r]!=24)?0:void 0,label:this.formType!="searchMobile"&&(u.isTitle||i[p+r]!=24)?void 0:u.title,prop:u.formKey},class:u.isTitle?"ind-list-title":""},[i[p+r]!=24?u.title+" \uFF1A":"",f,this.formType!="searchMobile"&&u.isTitle?e("van-icon",{props:{name:"arrow"}}):""])])))}),this.cardBtns){let u=[];this.flowBusiPk&&u.push({btnName:"\u5BA1\u6279\u8BE6\u60C5",bizType:"primary",btnClick:()=>this.$emit("detail",this.form)}),this.cardBtns instanceof Array?u=u.concat(this.cardBtns):this.cardBtns instanceof Function&&(u=u.concat(this.cardBtns(this.form))),u.length&&t.push(e("Col",{props:{span:24}},[e("FormItem",{props:{labelWidth:0}},[e("IndButtonGroup",{props:{split:!0,right:!0}},u.map(p=>e("IndButton",{props:{size:"default",bizType:p.bizType},on:{click:()=>{p.btnClick&&p.btnClick instanceof Function&&p.btnClick(this.form)}}},[p.btnName])))])]))}return this.refreshForm?e("Form",{ref:"form",class:this.formType=="search"?"":"ind-panel ind-detail-form",props:{model:this.form,rules:this.rules,labelWidth:this.formType=="searchMobile"?110:this.labelWidth,labelColon:!1},nativeOn:{submit:u=>(u.preventDefault(),!1)}},[e("Row",{style:{width:"100%"}},t)]):e("span",{},"")}},Sm=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndModal",{attrs:{width:"1000",footerHide:"","mask-closable":!1,title:"\u6211\u7684\u9ED8\u8BA4\u67E5\u8BE2\u7BA1\u7406",value:e.value},on:{input:function(n){return e.$emit("input",n)}}},[i("IndButton",{attrs:{bizType:"table"},on:{click:function(n){return e.addItem()}}},[e._v("\u65B0\u589E")]),i("div",{staticClass:"condition-pannel-wrap"},e._l(e.datas,function(n,r){return i("Card",{key:"condition"+r,staticClass:"condition-card"},[i("Tooltip",{attrs:{slot:"title",content:n.titleName},slot:"title"},[i("div",{staticClass:"title-row"},[i("div",{class:["title-name",n.isDefault=="1"?"ind-blue":""]},[e._v(" "+e._s(n.titleName)+" ")])])]),i("IndButtonGroup",{attrs:{slot:"extra"},slot:"extra"},[i("IndButton",{attrs:{bizType:n.isDefault=="1"?"table-delete":"table"},on:{click:function(a){return e.setDefaultItem(n)}}},[e._v(e._s(n.isDefault=="1"?"\u53D6\u6D88\u9ED8\u8BA4":"\u8BBE\u4E3A\u9ED8\u8BA4"))]),i("IndButton",{attrs:{bizType:"table"},on:{click:function(a){return e.editItem(n)}}},[e._v("\u7F16\u8F91")]),i("IndButton",{attrs:{bizType:"table"},on:{click:function(a){return e.removeItem(n)}}},[e._v("\u5220\u9664")])],1),i("div",{staticClass:"condition-content"},e._l(e.fieldList,function(a,s){return i("div",{directives:[{name:"show",rawName:"v-show",value:n[a.formKey],expression:"item[field.formKey]"}],key:r+"field"+s,staticClass:"contidtion-row"},[i("div",{staticClass:"condition-label"},[e._v(e._s(a.title)+"\uFF1A")]),i("div",{staticClass:"condition-value"},[e._v(e._s(e.renderValue(n,a)))])])}),0)],1)}),1),i("IndModal",{attrs:{width:"1000","mask-closable":!1,title:"\u65B0\u589E/\u7F16\u8F91"},on:{"on-ok":e.saveCondition},model:{value:e.showEdit,callback:function(n){e.showEdit=n},expression:"showEdit"}},[i("div",{staticClass:"condition-pannel-wrap ivu-biz-form-row",staticStyle:{display:"block"}},[i("FormImpl",{ref:"editForm",attrs:{gridColumns:1,fieldList:e.fieldListCalc},model:{value:e.editData,callback:function(n){e.editData=n},expression:"editData"}})],1)])],1)},wm=[];const Cm={components:{FormImpl:nl},props:{value:Boolean,funId:String,fieldList:Array,formCacheList:Array,formEnumData:Object},data(){return{datas:[],showEdit:!1,editData:{}}},computed:{fieldListCalc(){let e=y.default.cloneDeep(this.fieldList);return e.unshift({title:"\u9884\u7F6E\u6807\u9898",type:"input",formKey:"titleName",required:!0}),e}},created(){let e=localStorage.getItem("condition-cache"+this.funId);if(e){this.datas=JSON.parse(e);let t=y.default.find(this.datas,{isDefault:"1"});t&&t.id&&this.$emit("defaultCacheDone",y.default.cloneDeep(t))}else this.datas=[]},watch:{datas:function(){this.$emit("update:formCacheList",this.datas)}},methods:{setDefaultItem(e){let t=e.isDefault;y.default.forEach(this.datas,n=>n.isDefault="0"),e.isDefault=t=="1"?"0":"1";let i=y.default.cloneDeep(this.datas);this.datas=i,this.syncToStorage()},useItem(e){this.$emit("useItem",y.default.cloneDeep(e)),this.$emit("input",!1),console.log("useItem",e)},editItem(e){this.editData=y.default.cloneDeep(e),console.log("editItem",this.editData),this.$refs.editForm.resetFields(),this.showEdit=!0},addItem(){this.editData={},this.showEdit=!0},renderValue(e,t){var n;let i=e[t.formKey];if(["input","number","textarea","datepicker"].includes(t.type))return i;if(["treeselect"].includes(t.type))return i==null?void 0:i.map(r=>r.title).join("\u3001");if(["select","checkbox","radio"].includes(t.type)){let r=y.default.reduce(t.enumList||((n=this.formEnumData[t.enumKey])==null?void 0:n.enumList)||[],(a,s)=>(a[s.K]=s.V,a),{});return i instanceof Array?i.map(a=>r[a]).join("\u3001"):r[i]||"\u5168\u90E8"}},async removeItem(e){try{await this.$Modal.confirm({title:"\u5220\u9664\u64CD\u4F5C",content:"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",loading:!0});let t=y.default.cloneDeep(this.datas);y.default.remove(t,{id:e.id}),this.datas=t,this.syncToStorage()}catch(t){console.log(t)}this.$Modal.remove()},syncToStorage(){localStorage.setItem("condition-cache"+this.funId,JSON.stringify(this.datas))},async saveCondition(){if(await this.$refs.editForm.validate()){let e=y.default.cloneDeep(this.datas);if(this.editData.id){let t=y.default.find(e,{id:this.editData.id});y.default.assign(t,y.default.cloneDeep(this.editData))}else{let t=y.default.cloneDeep(this.editData);t.id=new Date().getTime()+""+Math.ceil(Math.random()*1e4),t.isDefault="0",e.push(t)}this.datas=e,this.syncToStorage(),this.showEdit=!1}}}},rl={};var xm=X(Cm,Sm,wm,!1,$m,null,null,null);function $m(e){for(let t in rl)this[t]=rl[t]}var km=function(){return xm.exports}(),Tm=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-from-wrap"},[i("FormImpl",e._g(e._b({ref:"form",attrs:{funId:(e.funId||"")+"-"+e.$route.meta.permissionId,formCacheList:e.formCacheList,curCacheId:e.curCacheId,formEnumData:e.formEnumData,cardBtns:e.cardBtns,value:e.value,fieldList:e.fieldList},on:{"update:formEnumData":function(n){e.formEnumData=n},"update:form-enum-data":function(n){e.formEnumData=n},setCondition:e.setCondition,itemClick:function(n){return e.$emit("itemClick",n)}}},"FormImpl",Object.assign({},e.$attrs),!1),e.$listeners)),i("ConditionManager",{ref:"conditionManager",attrs:{formCacheList:e.formCacheList,formEnumData:e.formEnumData,fieldList:e.fieldList,funId:(e.funId||"")+"-"+e.$route.meta.permissionId},on:{"update:formCacheList":function(n){e.formCacheList=n},"update:form-cache-list":function(n){e.formCacheList=n},useItem:e.useItem,defaultCacheDone:function(n){e.$emit("defaultCacheDone",n),e.curCacheId=n.id}},model:{value:e.showConditon,callback:function(n){e.showConditon=n},expression:"showConditon"}})],1)},_m=[];const Im={props:{fieldList:Array,funId:String,value:Object,cardBtns:[Function,Array]},components:{FormImpl:nl,ConditionManager:km},data(){return{showConditon:!1,curCacheId:"",formCacheList:[],formEnumData:{}}},methods:{async setCondition(e){if(e=="edit")this.showConditon=!0;else if(e=="saveAs")this.showConditon=!0,await this.$nextTick(),this.$refs.conditionManager.editData={...this.value,id:null,isDefault:"0",conditionTitle:""},console.log("saveAs this.$refs.conditionManager.editData",this.$refs.conditionManager.editData),await this.$nextTick(),this.$refs.conditionManager.showEdit=!0;else if(e=="save")this.showConditon=!0,await this.$nextTick(),this.$refs.conditionManager.editData={...this.value},console.log("save this.$refs.conditionManager.editData",this.$refs.conditionManager.editData),await this.$nextTick(),this.$refs.conditionManager.showEdit=!0;else{let t=y.default.find(this.formCacheList,{id:e});console.log("cacheTmp",t),t&&t.id&&(this.curCacheId=t.id,this.$emit("input",t))}},useItem(e){this.curCacheId=e.id,this.$emit("input",e)},resetFields(){return this.$refs.form.resetFields()},async validate(){return await this.$refs.form.validate()},validateField(e,t){return this.$refs.form.validateField(e,t)}}},al={};var Em=X(Im,Tm,_m,!1,Dm,null,null,null);function Dm(e){for(let t in al)this[t]=al[t]}var sl=function(){return Em.exports}(),Mm=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndLoadingPanel",{attrs:{loading:e.loading}},[e.curData&&e.curData.length?i("van-list",{attrs:{loading:e.loading,value:e.loading,finished:e.isFinished,offset:e.offset,"finished-text":e.finishedText,immediateCheck:!1},on:{load:e.handleLoadMore}},[e._l(e.curData,function(n){return[e._t("item",null,{item:n})]})],2):i("div",{staticClass:"ind-empty",staticStyle:{height:"calc(100vh - 122px)"}})],1)},Om=[];const Lm={name:"IndMLoadMore",props:{enableLoadMore:{type:Boolean,default:!1},disablePage:{type:Boolean,default:!0},datas:{type:Array,default:()=>[]},isFinished:{type:Boolean,default:!1},offset:{type:Number,default:50},pageLen:{type:Number,default:999999},finishedText:{type:String,default:"\u6CA1\u6709\u66F4\u591A\u4E86"},loading:{type:Boolean,default:!1}},data(){return{curData:[],currentPage:1}},watch:{datas:{immediate:!0,handler(e){this.enableLoadMore?(console.log("init,",this.currentPage),this.curData=[...e.slice(0,this.pageLen)],this.currentPage=1):this.curData=[...e]}}},methods:{handleLoadMore(){if(this.enableLoadMore){if(this.isFinished)return;this.currentPage++;const e=(this.currentPage-1)*this.pageLen,t=e+this.pageLen,i=this.datas.slice(e,t);this.curData=[...this.curData,...i],console.log("\u524D\u7AEF\u5206\u9875\u8BA1\u7B97\u8C03\u8BD5:",{currentPage:this.currentPage,curData:this.curData})}else if(this.disablePage===!1){if(this.isFinished)return;this.$emit("load-more")}else if(this.isFinished)return}}},ol={};var Am=X(Lm,Mm,Om,!1,Nm,null,null,null);function Nm(e){for(let t in ol)this[t]=ol[t]}var ll=function(){return Am.exports}();/*!
|
|
5
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function i(){for(var a="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(a=r(a,n(o)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return i.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var o in a)t.call(a,o)&&a[o]&&(s=r(s,o));return s}function r(a,s){return s?a?a+" "+s:a+s:a}e.exports?(i.default=i,e.exports=i):window.classNames=i})()})(tl);var vm=tl.exports;const Wi="ind-theme";function Yi(){return M.getLocalStorage(Wi)||"ind-default-theme"}function wi(e){var i,n;const t=(i=document.getElementsByTagName("body"))==null?void 0:i[0];if(t){const a=(((n=t.className)==null?void 0:n.split(" "))||[]).reduce((l,c)=>({...l,[c]:!0}),{});let s={};const o=t.getAttribute(Wi);o&&(s={[o]:!1}),t.setAttribute(Wi,e),t.className=vm(e,{...a,...s})}}P.transferIndex=1e3;function gm(){P.transferIndex++}function el(){let e="";if(location.search){let t=/debug=([^&]*)/.exec(location.search);t&&t.length>1&&(e=t[1])}if(e=="vConsole"){const t=document.createElement("script");t.src="vconsole.min.js",t.async=!0,document.getElementsByTagName("head")[0].appendChild(t),t.onload=function(){window.vConsole=new VConsole}}else if(e=="chii"){const t=document.createElement("script");t.src="//dev.sunquan.tech/inspect/target.js",t.async=!0,document.getElementsByTagName("head")[0].appendChild(t)}}function il(e){var t;try{const{positionId:i,config:n}=e||{};if(!n||!i)return null;const r=n.systemDefaultConfig||{},a=r.iconList||{},s=r.iconTableData||[];let o=null;if(a.hasOwnProperty(i)){const l=a[i];l&&typeof l=="string"&&(o=`/user-manage-server/oss/file/get/${l}`)}if(!o){const l=s.find(c=>(c==null?void 0:c.positionId)&&String(c.positionId)===i);if(l!=null&&l.iconFielId)try{const c=JSON.parse(l.iconFielId);Array.isArray(c)&&((t=c[0])==null?void 0:t.fileUrl)&&(o=c[0].fileUrl)}catch(c){console.error(`[getIconByPositionId] \u89E3\u6790 iconFielId \u5931\u8D25\uFF08positionId: ${i}\uFF09:`,c)}}return o||null}catch(i){return console.error("[getIconByPositionId] \u89E3\u6790\u914D\u7F6E\u5931\u8D25:",i),null}}function Xi(e){try{const{permission:t,meta:i,config:n,ossServerContext:r="/user-manage-server"}=e||{},{icon:a}=i||{};if(!t||!n)return"";const s=il({positionId:t,config:n});if(s)return s;if(a&&a.slice(0,3)==="oss"&&a.length>=4){const l=a.slice(4);return`${r}/oss/file/get/${l}`}const o=location.pathname.includes("scyxweb");return`${location.origin}${o?"/hbwebchat/scyxweb":""}${a||""}`}catch(t){return console.error("[getImgByPermission] \u83B7\u53D6\u56FE\u7247\u8DEF\u5F84\u5931\u8D25:",t),""}}const ym=24,bm=3;var nl={name:"FormImpl",data(){return{form:{},enumList:[],enumData:{},showMore:!0,rules:{},refreshForm:!0}},props:{gridColumns:Number,labelWidth:{type:Number,default:160},funId:String,fieldList:Array,value:Object,formType:{type:String,default:"form"},searchLoading:Boolean,queryBtn:{type:Boolean,default:!0},formCacheList:Array,curCacheId:String,formEnumData:Object,cardBtns:[Function,Array],flowBusiPk:String},created(){this.form=y.default.cloneDeep(this.value),this.initDictData(),this.rules=this.ruleValidate},computed:{ruleValidate(){let e={};return y.default.forEach(this.fieldList,t=>{var n,r;if(t.required instanceof Function?t.required(this.form):t.required){let a={required:!0,message:t.title+"\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"};if(t.validate&&(a.validator=t.validate),["number"].includes(t.type))a.type="number";else if(["checkbox","treeselect","fileUpload","imgUpload"].includes(t.type)||t.type==="select"&&((n=t.props)==null?void 0:n.multiple))a.type="array";else if(["datepicker"].includes(t.type)){const s=t.props;((r=s==null?void 0:s.type)==null?void 0:r.includes("range"))?(a.type="array",a.len="2",a.fields={0:{type:"string",required:!0,message:t.title+"\u7684\u5F00\u59CB\u65E5\u671F\u4E0D\u80FD\u4E3A\u7A7A"},1:{type:"string",required:!0,message:t.title+"\u7684\u7ED3\u675F\u65E5\u671F\u4E0D\u80FD\u4E3A\u7A7A"}}):a.type="string"}"treeselect".includes(t.type)&&(a.trigger="custom"),e[t.formKey]=[a]}t.type=="idcard"?(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({validator:(a,s,o)=>{let l=M.checkIdCard(s);!s||l=="\u9A8C\u8BC1\u901A\u8FC7!"?o():o(new Error(l))},trigger:"blur"})):t.type=="vehicleNo"?(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({validator:(a,s,o)=>{!s||M.checkVehicleNo(s)?o():o(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8F66\u724C\u53F7\u683C\u5F0F"))},trigger:"blur"})):t.type=="phone"?(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({validator:(a,s,o)=>{!s||M.checkPhone(s)?o():o(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7535\u8BDD\u683C\u5F0F"))},trigger:"blur"})):t.type=="email"&&(e[t.formKey]=e[t.formKey]||[],e[t.formKey].push({type:"email",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u683C\u5F0F",trigger:"blur"}))}),e},ruleValidateStr(){return JSON.stringify(this.ruleValidate)},defaultSpan(){return this.gridColumns?24/this.gridColumns:ym}},watch:{fieldList(){this.initDictData()},value:{deep:!0,handler(){this.form=y.default.cloneDeep(this.value)}},ruleValidateStr:async function(){this.rules=this.ruleValidate,await this.$nextTick(),this.refreshForm=!1,await this.$nextTick(),this.refreshForm=!0}},methods:{initDictData(){let e=[];this.fieldList.forEach(t=>{t.enumKey&&e.push(t.enumKey)}),this.enumList=e,this.enumList&&this.enumList.length&&this.getDictData()},async getDictData(){const e=await M.getDictMapApi(this.enumList);let t={};y.default.forEach(e,(i,n)=>{t[n]={enumData:i.data,enumList:i.renderData}}),this.enumData=t},resetFields(){return this.$refs.form.resetFields()},async validate(){return await this.$refs.form.validate()},validateField(e,t){return this.$refs.form.validateField(e,t)}},render(e){var a,s,o,l,c,h,d;let t=[],i;this.formType=="search"?i=y.default.fill(y.default.range(Math.max(4,this.fieldList.length)),6):(i=y.default.fill(y.default.range(this.fieldList.length),this.defaultSpan),y.default.forEach(this.fieldList,(u,p)=>{u.span?i[p]=parseInt(u.span):["textarea","fileUpload","imgUpload"].includes(u.type)&&(i[p]=24),(u.condition instanceof Function?u.condition(this.form):u.condition!==!1)||(i[p]=0)}));let n=y.default.cloneDeep(this.fieldList);if(y.default.forEach(n,u=>{u.class&&typeof(u==null?void 0:u.class)=="function"&&(u.class=u.class(this.form))}),this.formType=="card"){let u=y.default.remove(n,v=>v.isTitle==="true"||v.isTitle===!0)[0],p=y.default.remove(n,v=>v.isSubTitle==="true"||v.isSubTitle===!0)[0],f=y.default.remove(n,v=>v.isStatus==="true"||v.isStatus===!0)[0],m=this.form[f==null?void 0:f.formKey];if(f.enumKey)m=(s=(a=this.enumData[f==null?void 0:f.enumKey])==null?void 0:a.enumData)==null?void 0:s[m];else if(f!=null&&f.enumList)if(typeof(f==null?void 0:f.enumList)=="function"){let v=f==null?void 0:f.enumList(this.form);m=(o=v==null?void 0:v.find(({K:C})=>C===m))==null?void 0:o.V}else(f==null?void 0:f.enumList)instanceof Array&&((l=f==null?void 0:f.enumList)==null?void 0:l.length)&&(m=(h=(c=f.enumList)==null?void 0:c.find(({K:v})=>v===m))==null?void 0:h.V);else if(f.enumData)if(typeof(f==null?void 0:f.enumData)=="function"){let v=f==null?void 0:f.enumData(this.form);m=v==null?void 0:v[m]}else m=(d=f.enumData)==null?void 0:d[m];typeof f.statusText=="function"&&(m=f.statusText(this.form)),t.push(e("Col",{class:"ind-card-title",props:{span:24}},[e("FormItem",{props:{labelWidth:0}},[e("div",{class:"ind-flex",style:{marginBottom:"var(--ind-page-padding-vertical)"}},[e("div",{class:"ind-flex-column ind-flex-grow"},[e("div",{class:"ind-page-title"+(u.class||"")},[this.form[u==null?void 0:u.formKey]]),e("div",{class:"ind-page-sub-title"+(p.class||"")},[p!=null&&p.dateFormat?M.formatDate(this.form[p==null?void 0:p.formKey]):this.form[p==null?void 0:p.formKey]])]),e("div",{class:"ind-status ind-flex-no-shrink "+((f==null?void 0:f.class)instanceof Function?f==null?void 0:f.class(this.form):f==null?void 0:f.class)},[m])])])]))}else if(this.formType=="card2"){let u=y.default.remove(n,f=>f.isTitle==="true"||f.isTitle===!0)[0],p=y.default.remove(n,f=>f.isSubTitle==="true"||f.isSubTitle===!0)[0];t.push(e("Col",{class:"ind-card-title",props:{span:24}},[e("FormItem",{props:{labelWidth:0}},[e("div",{class:"ind-flex",style:{marginBottom:"var(--ind-page-padding-vertical)"}},[e("div",{class:"ind-flex-column ind-flex-grow ind-vcenter"},[e("div",{class:"ind-page-title"+(u.class||"")},[this.form[u==null?void 0:u.formKey]]),e("div",{class:"ind-page-sub-title"+(p.class||"")},[p!=null&&p.formatDate?M.formatDate(this.form[p==null?void 0:p.formKey]):this.form[p==null?void 0:p.formKey]])])])])]))}let r=this.fieldList.length-n.length;if(y.default.forEach(n,(u,p)=>{var C,x,T,_,D,L,H,B,z,R,A,it,ot,V;let f;if(u.render)f=u.render(e,u,this.form);else{const k=u.disabled instanceof Function?u.disabled(this.form):u.disabled;switch(u.type){case"input":case"email":case"phone":case"vehicleNo":case"idcard":{f=e("Input",{ref:u.formKey,props:{placeholder:`\u8BF7\u8F93\u5165${u.title}`,...u.props,value:this.form[u.formKey],disabled:k},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})},"on-focus":g=>{In(g)}}});break}case"number":{let g=this.form[u.formKey];u.scale!==void 0&&(g=isNaN(g)||g===null?g:parseFloat(parseFloat(g).toFixed(u.scale))),f=e("Input",{ref:u.formKey,attrs:{title:""},props:{placeholder:"\u8BF7\u8F93\u5165\u6570\u5B57",...u.props,value:g,disabled:k,type:"number"},on:{"on-blur":I=>{var U;let E=I.target.value,j=/(-?)(\d{1,10})(\d{0,999})(\.\d{1,6})?/.exec(E);j&&j.length&&(E=((U=u==null?void 0:u.props)!=null&&U.enableNegative?j[1]:"")+j[2]+(j[4]||"")),this.form[u.formKey]=parseFloat(E),this.$refs[u.formKey]&&this.$refs[u.formKey].setCurrentValue(E),this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})},"on-focus":I=>{console.log("number focus",I),In(I)}}});break}case"textarea":{f=e("Input",{ref:u.formKey,props:{placeholder:`\u8BF7\u8F93\u5165${u.title}`,...u.props,value:this.form[u.formKey],disabled:k,type:"textarea",rows:((C=u.props)==null?void 0:C.rows)||3,maxlength:((x=u.props)==null?void 0:x.maxlength)||1024,showWordLimit:((T=u.props)==null?void 0:T.showWordLimit)||!0},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})},"on-focus":g=>{In(g)}}});break}case"select":{f=e("IndMInputSelect",{ref:u.formKey,props:{title:u.title,options:u.enumListFn?u.enumListFn(this.form):u.enumList||((_=this.enumData[u.enumKey])==null?void 0:_.enumList)||[],...u.props||{},value:this.form[u.formKey],disabled:k},attrs:{...u.props,noTriggerInDefault:!0},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey)}}});break}case"checkbox":{f=e("CheckboxGroup",{ref:u.formKey,props:{...u.props,value:this.form[u.formKey]},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}},(u.enumList||((D=this.enumData[u.enumKey])==null?void 0:D.enumList)||[]).map(g=>e("Checkbox",{props:{label:g.K,disabled:k}},[g.V])));break}case"selectbtn":{f=e("IndMSelectBtn",{ref:u.formKey,props:{...u.props,options:u.enumList||((L=this.enumData[u.enumKey])==null?void 0:L.enumList)||[],value:this.form[u.formKey]},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}});break}case"radio":{f=e("RadioGroup",{ref:u.formKey,props:{...u.props,value:this.form[u.formKey]},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}},(u.enumList||((H=this.enumData[u.enumKey])==null?void 0:H.enumList)||[]).map(g=>e("Radio",{props:{label:g.K,disabled:k}},[g.V])));break}case"datepicker":{f=e("IndMDatePicker",{ref:u.formKey,props:{value:this.form[u.formKey],type:((B=u.props)==null?void 0:B.type)||"date"},attrs:{...u.props,placeholder:"\u8BF7\u9009\u62E9"+u.title,minDate:u.minDate,maxDate:u.maxDate,disabled:k},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$nextTick(()=>{this.$refs.form.validateField(u.formKey)})}}});break}case"timepicker":{f=e("TimePicker",{ref:u.formKey,props:{...u.props||{},type:((z=u.props)==null?void 0:z.type)||"time",value:this.form[u.formKey]},attrs:{confirm:!0,...u.props||{}},on:{"on-change":g=>{var I,E,j;this.val=g,((I=u.props)==null?void 0:I.confirm)===!1&&(this.form[u.formKey]=this.val instanceof Date?St(this.val).format((E=u.props)!=null&&E.format?(j=u.props)==null?void 0:j.format:"HH:mm:ss"):this.val,this.$emit("input",this.form),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey))},"on-ok":()=>{var I,E;this.form[u.formKey]=this.val instanceof Date?St(this.val).format((I=u.props)!=null&&I.format?(E=u.props)==null?void 0:E.format:"HH:mm:ss"):this.val,this.$emit("input",this.form),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey)}}});break}case"treeselect":{f=e("IndMInputSelect",{ref:u.formKey,props:{title:u.title,...u.props||{},value:this.form[u.formKey],disabled:k},attrs:{...u.props,noTriggerInDefault:!0},on:{input:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})}),(u.required instanceof Function?u.required(this.form):u.required)&&this.$refs.form.validateField(u.formKey)}}});break}case"fileUpload":{f=e("IndMUploadFile",{ref:u.formKey,props:{...u.props||{},defaultList:this.form[u.formKey],disabled:k},attrs:{...u.props},on:{onChangeData:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})}}});break}case"imgUpload":{f=e("IndUploadImg",{ref:u.formKey,props:{...u.props||{},defaultList:this.form[u.formKey],disabled:k},attrs:{...u.props},on:{onChangeData:g=>{this.form[u.formKey]=g,this.$emit("input",this.form),this.$nextTick().then(()=>{this.$emit("fieldChange",{formKey:u.formKey,row:this.form})})}}});break}default:{let g=this.form[u.formKey];u.enumKey?g=(A=(R=this.enumData[u.enumKey])==null?void 0:R.enumData)==null?void 0:A[g]:u.enumList&&u.enumList.length?g=(ot=(it=u.enumList)==null?void 0:it.find(({K:I})=>I===g))==null?void 0:ot.V:u.enumData&&(g=(V=u.enumData)==null?void 0:V[g]),u.dateFormat&&(g=M.formatDate(g)),u.scale!==void 0&&(g=isNaN(g)||g===null?g:parseFloat(parseFloat(g).toFixed(u.scale))),f=e("span",{},[e("span",{class:u.class||""},[g!==0?g||"":g]),e("span",{domProps:{innerHTML:u.unit?" ":""}}),e("span",{},[u.unit||""])])}}}let m=u.condition instanceof Function?u.condition(this.form):u.condition!==!1,v=this.formType=="search"?this.showMore?!0:p<bm:!0;m&&v&&(u.split==="true"&&t.push(e("Col",{props:{span:24}},[e("hr",{style:{margin:"10px 0 5px 0",backgroundColor:"#EEEEEE",height:"1px",border:"none"}})])),["selectbtn","radio","checkbox"].includes(u.type)?t.push(e("Col",{props:{span:i[p+r]},nativeOn:{click:()=>{u.isTitle&&this.$emit("itemClick",this.form)}}},[e("FormItem",{props:{label:u.title,prop:u.formKey}},[]),f])):t.push(e("Col",{props:{span:i[p+r]},nativeOn:{click:()=>{u.isTitle&&this.$emit("itemClick",this.form)}}},[e("FormItem",{props:{labelWidth:this.formType!="searchMobile"&&(u.isTitle||i[p+r]!=24)?0:void 0,label:this.formType!="searchMobile"&&(u.isTitle||i[p+r]!=24)?void 0:u.title,prop:u.formKey},class:u.isTitle?"ind-list-title":""},[i[p+r]!=24?u.title+" \uFF1A":"",f,this.formType!="searchMobile"&&u.isTitle?e("van-icon",{props:{name:"arrow"}}):""])])))}),this.cardBtns){let u=[];this.flowBusiPk&&u.push({btnName:"\u5BA1\u6279\u8BE6\u60C5",bizType:"primary",btnClick:()=>this.$emit("detail",this.form)}),this.cardBtns instanceof Array?u=u.concat(this.cardBtns):this.cardBtns instanceof Function&&(u=u.concat(this.cardBtns(this.form))),u.length&&t.push(e("Col",{props:{span:24}},[e("FormItem",{props:{labelWidth:0}},[e("IndButtonGroup",{props:{split:!0,right:!0}},u.map(p=>e("IndButton",{props:{size:"default",bizType:p.bizType},on:{click:()=>{p.btnClick&&p.btnClick instanceof Function&&p.btnClick(this.form)}}},[p.btnName])))])]))}return this.refreshForm?e("Form",{ref:"form",class:this.formType=="search"?"":"ind-panel ind-detail-form",props:{model:this.form,rules:this.rules,labelWidth:this.formType=="searchMobile"?110:this.labelWidth,labelColon:!1},nativeOn:{submit:u=>(u.preventDefault(),!1)}},[e("Row",{style:{width:"100%"}},t)]):e("span",{},"")}},Sm=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndModal",{attrs:{width:"1000",footerHide:"","mask-closable":!1,title:"\u6211\u7684\u9ED8\u8BA4\u67E5\u8BE2\u7BA1\u7406",value:e.value},on:{input:function(n){return e.$emit("input",n)}}},[i("IndButton",{attrs:{bizType:"table"},on:{click:function(n){return e.addItem()}}},[e._v("\u65B0\u589E")]),i("div",{staticClass:"condition-pannel-wrap"},e._l(e.datas,function(n,r){return i("Card",{key:"condition"+r,staticClass:"condition-card"},[i("Tooltip",{attrs:{slot:"title",content:n.titleName},slot:"title"},[i("div",{staticClass:"title-row"},[i("div",{class:["title-name",n.isDefault=="1"?"ind-blue":""]},[e._v(" "+e._s(n.titleName)+" ")])])]),i("IndButtonGroup",{attrs:{slot:"extra"},slot:"extra"},[i("IndButton",{attrs:{bizType:n.isDefault=="1"?"table-delete":"table"},on:{click:function(a){return e.setDefaultItem(n)}}},[e._v(e._s(n.isDefault=="1"?"\u53D6\u6D88\u9ED8\u8BA4":"\u8BBE\u4E3A\u9ED8\u8BA4"))]),i("IndButton",{attrs:{bizType:"table"},on:{click:function(a){return e.editItem(n)}}},[e._v("\u7F16\u8F91")]),i("IndButton",{attrs:{bizType:"table"},on:{click:function(a){return e.removeItem(n)}}},[e._v("\u5220\u9664")])],1),i("div",{staticClass:"condition-content"},e._l(e.fieldList,function(a,s){return i("div",{directives:[{name:"show",rawName:"v-show",value:n[a.formKey],expression:"item[field.formKey]"}],key:r+"field"+s,staticClass:"contidtion-row"},[i("div",{staticClass:"condition-label"},[e._v(e._s(a.title)+"\uFF1A")]),i("div",{staticClass:"condition-value"},[e._v(e._s(e.renderValue(n,a)))])])}),0)],1)}),1),i("IndModal",{attrs:{width:"1000","mask-closable":!1,title:"\u65B0\u589E/\u7F16\u8F91"},on:{"on-ok":e.saveCondition},model:{value:e.showEdit,callback:function(n){e.showEdit=n},expression:"showEdit"}},[i("div",{staticClass:"condition-pannel-wrap ivu-biz-form-row",staticStyle:{display:"block"}},[i("FormImpl",{ref:"editForm",attrs:{gridColumns:1,fieldList:e.fieldListCalc},model:{value:e.editData,callback:function(n){e.editData=n},expression:"editData"}})],1)])],1)},wm=[];const Cm={components:{FormImpl:nl},props:{value:Boolean,funId:String,fieldList:Array,formCacheList:Array,formEnumData:Object},data(){return{datas:[],showEdit:!1,editData:{}}},computed:{fieldListCalc(){let e=y.default.cloneDeep(this.fieldList);return e.unshift({title:"\u9884\u7F6E\u6807\u9898",type:"input",formKey:"titleName",required:!0}),e}},created(){let e=localStorage.getItem("condition-cache"+this.funId);if(e){this.datas=JSON.parse(e);let t=y.default.find(this.datas,{isDefault:"1"});t&&t.id&&this.$emit("defaultCacheDone",y.default.cloneDeep(t))}else this.datas=[]},watch:{datas:function(){this.$emit("update:formCacheList",this.datas)}},methods:{setDefaultItem(e){let t=e.isDefault;y.default.forEach(this.datas,n=>n.isDefault="0"),e.isDefault=t=="1"?"0":"1";let i=y.default.cloneDeep(this.datas);this.datas=i,this.syncToStorage()},useItem(e){this.$emit("useItem",y.default.cloneDeep(e)),this.$emit("input",!1),console.log("useItem",e)},editItem(e){this.editData=y.default.cloneDeep(e),console.log("editItem",this.editData),this.$refs.editForm.resetFields(),this.showEdit=!0},addItem(){this.editData={},this.showEdit=!0},renderValue(e,t){var n;let i=e[t.formKey];if(["input","number","textarea","datepicker"].includes(t.type))return i;if(["treeselect"].includes(t.type))return i==null?void 0:i.map(r=>r.title).join("\u3001");if(["select","checkbox","radio"].includes(t.type)){let r=y.default.reduce(t.enumList||((n=this.formEnumData[t.enumKey])==null?void 0:n.enumList)||[],(a,s)=>(a[s.K]=s.V,a),{});return i instanceof Array?i.map(a=>r[a]).join("\u3001"):r[i]||"\u5168\u90E8"}},async removeItem(e){try{await this.$Modal.confirm({title:"\u5220\u9664\u64CD\u4F5C",content:"\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F",loading:!0});let t=y.default.cloneDeep(this.datas);y.default.remove(t,{id:e.id}),this.datas=t,this.syncToStorage()}catch(t){console.log(t)}this.$Modal.remove()},syncToStorage(){localStorage.setItem("condition-cache"+this.funId,JSON.stringify(this.datas))},async saveCondition(){if(await this.$refs.editForm.validate()){let e=y.default.cloneDeep(this.datas);if(this.editData.id){let t=y.default.find(e,{id:this.editData.id});y.default.assign(t,y.default.cloneDeep(this.editData))}else{let t=y.default.cloneDeep(this.editData);t.id=new Date().getTime()+""+Math.ceil(Math.random()*1e4),t.isDefault="0",e.push(t)}this.datas=e,this.syncToStorage(),this.showEdit=!1}}}},rl={};var xm=X(Cm,Sm,wm,!1,$m,null,null,null);function $m(e){for(let t in rl)this[t]=rl[t]}var km=function(){return xm.exports}(),Tm=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-from-wrap"},[i("FormImpl",e._g(e._b({ref:"form",attrs:{funId:(e.funId||"")+"-"+e.$route.meta.permissionId,formCacheList:e.formCacheList,curCacheId:e.curCacheId,formEnumData:e.formEnumData,cardBtns:e.cardBtns,value:e.value,fieldList:e.fieldList},on:{"update:formEnumData":function(n){e.formEnumData=n},"update:form-enum-data":function(n){e.formEnumData=n},setCondition:e.setCondition,itemClick:function(n){return e.$emit("itemClick",n)}}},"FormImpl",Object.assign({},e.$attrs),!1),e.$listeners)),i("ConditionManager",{ref:"conditionManager",attrs:{formCacheList:e.formCacheList,formEnumData:e.formEnumData,fieldList:e.fieldList,funId:(e.funId||"")+"-"+e.$route.meta.permissionId},on:{"update:formCacheList":function(n){e.formCacheList=n},"update:form-cache-list":function(n){e.formCacheList=n},useItem:e.useItem,defaultCacheDone:function(n){e.$emit("defaultCacheDone",n),e.curCacheId=n.id}},model:{value:e.showConditon,callback:function(n){e.showConditon=n},expression:"showConditon"}})],1)},_m=[];const Im={props:{fieldList:Array,funId:String,value:Object,cardBtns:[Function,Array]},components:{FormImpl:nl,ConditionManager:km},data(){return{showConditon:!1,curCacheId:"",formCacheList:[],formEnumData:{}}},methods:{async setCondition(e){if(e=="edit")this.showConditon=!0;else if(e=="saveAs")this.showConditon=!0,await this.$nextTick(),this.$refs.conditionManager.editData={...this.value,id:null,isDefault:"0",conditionTitle:""},console.log("saveAs this.$refs.conditionManager.editData",this.$refs.conditionManager.editData),await this.$nextTick(),this.$refs.conditionManager.showEdit=!0;else if(e=="save")this.showConditon=!0,await this.$nextTick(),this.$refs.conditionManager.editData={...this.value},console.log("save this.$refs.conditionManager.editData",this.$refs.conditionManager.editData),await this.$nextTick(),this.$refs.conditionManager.showEdit=!0;else{let t=y.default.find(this.formCacheList,{id:e});console.log("cacheTmp",t),t&&t.id&&(this.curCacheId=t.id,this.$emit("input",t))}},useItem(e){this.curCacheId=e.id,this.$emit("input",e)},resetFields(){return this.$refs.form.resetFields()},async validate(){return await this.$refs.form.validate()},validateField(e,t){return this.$refs.form.validateField(e,t)}}},al={};var Em=X(Im,Tm,_m,!1,Dm,null,null,null);function Dm(e){for(let t in al)this[t]=al[t]}var sl=function(){return Em.exports}(),Mm=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndLoadingPanel",{attrs:{loading:e.loading}},[e.curData&&e.curData.length?i("van-list",{attrs:{loading:e.loading,value:e.loading,finished:e.isFinished,offset:e.offset,"finished-text":e.finishedText,immediateCheck:!1},on:{load:e.handleLoadMore}},[e._l(e.curData,function(n){return[e._t("item",null,{item:n})]})],2):i("div",{staticClass:"ind-empty",staticStyle:{height:"calc(100vh - 122px)"}})],1)},Om=[];const Lm={name:"IndMLoadMore",props:{enableLoadMore:{type:Boolean,default:!1},disablePage:{type:Boolean,default:!0},datas:{type:Array,default:()=>[]},isFinished:{type:Boolean,default:!1},offset:{type:Number,default:50},pageLen:{type:Number,default:999999},finishedText:{type:String,default:"\u6CA1\u6709\u66F4\u591A\u4E86"},loading:{type:Boolean,default:!1}},data(){return{curData:[],currentPage:1}},watch:{datas:{immediate:!0,handler(e){this.enableLoadMore?(console.log("init,",this.currentPage),this.curData=[...e.slice(0,this.pageLen)],this.currentPage=1):this.curData=[...e]}}},methods:{handleLoadMore(){if(this.enableLoadMore){if(this.isFinished)return;this.currentPage++;const e=(this.currentPage-1)*this.pageLen,t=e+this.pageLen,i=this.datas.slice(e,t);this.curData=[...this.curData,...i],console.log("\u524D\u7AEF\u5206\u9875\u8BA1\u7B97\u8C03\u8BD5:",{currentPage:this.currentPage,curData:this.curData})}else if(this.disablePage===!1){if(this.isFinished)return;this.$emit("load-more")}else if(this.isFinished)return}}},ol={};var Am=X(Lm,Mm,Om,!1,Nm,null,null,null);function Nm(e){for(let t in ol)this[t]=ol[t]}var ll=function(){return Am.exports}();/*!
|
|
6
6
|
* vuex v3.6.2
|
|
7
7
|
* (c) 2021 Evan You
|
|
8
8
|
* @license MIT
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
* @license MIT
|
|
18
18
|
*/function $r(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$r=function(t){return typeof t}:$r=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(e)}function r1(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){r1(e,r,i[r])})}return e}function a1(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 s1(e,t){if(e==null)return{};var i=a1(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 o1(e){return l1(e)||c1(e)||u1()}function l1(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 c1(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function u1(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var h1="1.10.2";function je(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var He=je(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dn=je(/Edge/i),Jd=je(/firefox/i),Ks=je(/safari/i)&&!je(/chrome/i)&&!je(/android/i),Zd=je(/iP(ad|od|hone)/i),d1=je(/chrome/i)&&je(/android/i),Qd={capture:!1,passive:!1};function rt(e,t,i){e.addEventListener(t,i,!He&&Qd)}function Q(e,t,i){e.removeEventListener(t,i,!He&&Qd)}function kr(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function f1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function we(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&kr(e,t):kr(e,t))||n&&e===i)return e;if(e===i)break}while(e=f1(e))}return null}var tf=/\s+/g;function ht(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(tf," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(tf," ")}}function K(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=K(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function ef(e,t,i){if(e){var n=e.getElementsByTagName(t),r=0,a=n.length;if(i)for(;r<a;r++)i(n[r],r);return n}return[]}function Le(){var e=document.scrollingElement;return e||document.documentElement}function pt(e,t,i,n,r){if(!(!e.getBoundingClientRect&&e!==window)){var a,s,o,l,c,h,d;if(e!==window&&e!==Le()?(a=e.getBoundingClientRect(),s=a.top,o=a.left,l=a.bottom,c=a.right,h=a.height,d=a.width):(s=0,o=0,l=window.innerHeight,c=window.innerWidth,h=window.innerHeight,d=window.innerWidth),(t||i)&&e!==window&&(r=r||e.parentNode,!He))do if(r&&r.getBoundingClientRect&&(K(r,"transform")!=="none"||i&&K(r,"position")!=="static")){var u=r.getBoundingClientRect();s-=u.top+parseInt(K(r,"border-top-width")),o-=u.left+parseInt(K(r,"border-left-width")),l=s+a.height,c=o+a.width;break}while(r=r.parentNode);if(n&&e!==window){var p=vi(r||e),f=p&&p.a,m=p&&p.d;p&&(s/=m,o/=f,d/=f,h/=m,l=s+h,c=o+d)}return{top:s,left:o,bottom:l,right:c,width:d,height:h}}}function nf(e,t,i){for(var n=ii(e,!0),r=pt(e)[t];n;){var a=pt(n)[i],s=void 0;if(i==="top"||i==="left"?s=r>=a:s=r<=a,!s)return n;if(n===Le())break;n=ii(n,!1)}return!1}function Tr(e,t,i){for(var n=0,r=0,a=e.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==Y.ghost&&a[r]!==Y.dragged&&we(a[r],i.draggable,e,!1)){if(n===t)return a[r];n++}r++}return null}function Ws(e,t){for(var i=e.lastElementChild;i&&(i===Y.ghost||K(i,"display")==="none"||t&&!kr(i,t));)i=i.previousElementSibling;return i||null}function mt(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Y.clone&&(!t||kr(e,t))&&i++;return i}function rf(e){var t=0,i=0,n=Le();if(e)do{var r=vi(e),a=r.a,s=r.d;t+=e.scrollLeft*a,i+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,i]}function p1(e,t){for(var i in e)if(!!e.hasOwnProperty(i)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i)}return-1}function ii(e,t){if(!e||!e.getBoundingClientRect)return Le();var i=e,n=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=K(i);if(i.clientWidth<i.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Le();if(n||t)return i;n=!0}}while(i=i.parentNode);return Le()}function m1(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Ys(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var fn;function af(e,t){return function(){if(!fn){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),fn=setTimeout(function(){fn=void 0},t)}}}function v1(){clearTimeout(fn),fn=void 0}function sf(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Xs(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}function of(e,t){K(e,"position","absolute"),K(e,"top",t.top),K(e,"left",t.left),K(e,"width",t.width),K(e,"height",t.height)}function qs(e){K(e,"position",""),K(e,"top",""),K(e,"left",""),K(e,"width",""),K(e,"height","")}var Nt="Sortable"+new Date().getTime();function g1(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(K(r,"display")==="none"||r===Y.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(p1(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,p=c.prevToRect,f=o.rect,m=vi(c,!0);m&&(d.top-=m.f,d.left-=m.e),c.toRect=d,c.thisAnimationDuration&&Ys(u,d)&&!Ys(h,d)&&(f.top-d.top)/(f.left-d.left)===(h.top-d.top)/(h.left-d.left)&&(l=b1(f,u,p,r.options)),Ys(d,h)||(c.prevFromRect=h,c.prevToRect=d,l||(l=r.options.animation),r.animate(c,f,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){K(n,"transition",""),K(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,K(n,"transform","translate3d("+h+"px,"+d+"px,0)"),y1(n),K(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),K(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){K(n,"transition",""),K(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function y1(e){return e.offsetWidth}function b1(e,t,i,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*n.animation}var pn=[],Gs={initializeByDefault:!0},mn={mount:function(t){for(var i in Gs)Gs.hasOwnProperty(i)&&!(i in t)&&(t[i]=Gs[i]);pn.push(t)},pluginEvent:function(t,i,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=t+"Global";pn.forEach(function(s){!i[s.pluginName]||(i[s.pluginName][a]&&i[s.pluginName][a](ei({sortable:i},n)),i.options[s.pluginName]&&i[s.pluginName][t]&&i[s.pluginName][t](ei({sortable:i},n)))})},initializePlugins:function(t,i,n,r){pn.forEach(function(o){var l=o.pluginName;if(!(!t.options[l]&&!o.initializeByDefault)){var c=new o(t,i,t.options);c.sortable=t,c.options=t.options,t[l]=c,oe(n,c.defaults)}});for(var a in t.options)if(!!t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s!="undefined"&&(t.options[a]=s)}},getEventProperties:function(t,i){var n={};return pn.forEach(function(r){typeof r.eventProperties=="function"&&oe(n,r.eventProperties.call(i[r.pluginName],t))}),n},modifyOption:function(t,i,n){var r;return pn.forEach(function(a){!t[a.pluginName]||a.optionListeners&&typeof a.optionListeners[i]=="function"&&(r=a.optionListeners[i].call(t[a.pluginName],n))}),r}};function vn(e){var t=e.sortable,i=e.rootEl,n=e.name,r=e.targetEl,a=e.cloneEl,s=e.toEl,o=e.fromEl,l=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,d=e.newDraggableIndex,u=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||i&&i[Nt],!!t){var m,v=t.options,C="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!He&&!dn?m=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(n,!0,!0)),m.to=s||i,m.from=o||i,m.item=r||i,m.clone=a,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=h,m.newDraggableIndex=d,m.originalEvent=u,m.pullMode=p?p.lastPutMode:void 0;var x=ei({},f,mn.getEventProperties(n,t));for(var T in x)m[T]=x[T];i&&i.dispatchEvent(m),v[C]&&v[C].call(t,m)}}var Wt=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=s1(n,["evt"]);mn.pluginEvent.bind(Y)(t,i,ei({dragEl:N,parentEl:yt,ghostEl:J,rootEl:dt,nextEl:gi,lastDownEl:_r,cloneEl:vt,cloneHidden:ni,dragStarted:yn,putSortable:Mt,activeSortable:Y.active,originalEvent:r,oldIndex:Bi,oldDraggableIndex:gn,newIndex:qt,newDraggableIndex:ri,hideGhostForTarget:pf,unhideGhostForTarget:mf,cloneNowHidden:function(){ni=!0},cloneNowShown:function(){ni=!1},dispatchSortableEvent:function(o){Ft({sortable:i,name:o,originalEvent:r})}},a))};function Ft(e){vn(ei({putSortable:Mt,cloneEl:vt,targetEl:N,rootEl:dt,oldIndex:Bi,oldDraggableIndex:gn,newIndex:qt,newDraggableIndex:ri},e))}var N,yt,J,dt,gi,_r,vt,ni,Bi,qt,gn,ri,Ir,Mt,Ri=!1,Er=!1,Dr=[],yi,Ce,Js,Zs,lf,cf,yn,Fi,bn,Sn=!1,Mr=!1,Or,Pt,Qs=[],to=!1,Lr=[],Ar=typeof document!="undefined",Nr=Zd,uf=dn||He?"cssFloat":"float",S1=Ar&&!d1&&!Zd&&"draggable"in document.createElement("div"),hf=function(){if(!!Ar){if(He)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),df=function(t,i){var n=K(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Tr(t,0,i),s=Tr(t,1,i),o=a&&K(a),l=s&&K(s),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+pt(a).width,h=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+pt(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return a&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||c>=r&&n[uf]==="none"||s&&n[uf]==="none"&&c+h>r)?"vertical":"horizontal"},w1=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},C1=function(t,i){var n;return Dr.some(function(r){if(!Ws(r)){var a=pt(r),s=r[Nt].options.emptyInsertThreshold,o=t>=a.left-s&&t<=a.right+s,l=i>=a.top-s&&i<=a.bottom+s;if(s&&o&&l)return n=r}}),n},ff=function(t){function i(a,s){return function(o,l,c,h){var d=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(a==null&&(s||d))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return i(a(o,l,c,h),s)(o,l,c,h);var u=(s?o:l).options.group.name;return a===!0||typeof a=="string"&&a===u||a.join&&a.indexOf(u)>-1}}var n={},r=t.group;(!r||$r(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=i(r.pull,!0),n.checkPut=i(r.put),n.revertClone=r.revertClone,t.group=n},pf=function(){!hf&&J&&K(J,"display","none")},mf=function(){!hf&&J&&K(J,"display","")};Ar&&document.addEventListener("click",function(e){if(Er)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Er=!1,!1},!0);var bi=function(t){if(N){t=t.touches?t.touches[0]:t;var i=C1(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[Nt]._onDragOver(n)}}},x1=function(t){N&&N.parentNode[Nt]._isOutsideThisEl(t.target)};function Y(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[Nt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return df(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,o){s.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Y.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};mn.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);ff(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:S1,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?rt(e,"pointerdown",this._onTapStart):(rt(e,"mousedown",this._onTapStart),rt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(rt(e,"dragover",this),rt(e,"dragenter",this)),Dr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),oe(this,g1())}Y.prototype={constructor:Y,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Fi=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,N):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(D1(n),!N&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!c.isContentEditable&&(l=we(l,r.draggable,n,!1),!(l&&l.animated)&&_r!==l)){if(Bi=mt(l),gn=mt(l,r.draggable),typeof h=="function"){if(h.call(this,t,l,this)){Ft({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 Ft({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&&!N&&n.parentNode===a){var c=pt(n);if(dt=a,N=n,yt=N.parentNode,gi=N.nextSibling,_r=n,Ir=s.group,Y.dragged=N,yi={target:N,clientX:(i||t).clientX,clientY:(i||t).clientY},lf=yi.clientX-c.left,cf=yi.clientY-c.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,N.style["will-change"]="all",l=function(){if(Wt("delayEnded",r,{evt:t}),Y.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Jd&&r.nativeDraggable&&(N.draggable=!0),r._triggerDragStart(t,i),Ft({sortable:r,name:"choose",originalEvent:t}),ht(N,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){ef(N,h.trim(),io)}),rt(o,"dragover",bi),rt(o,"mousemove",bi),rt(o,"touchmove",bi),rt(o,"mouseup",r._onDrop),rt(o,"touchend",r._onDrop),rt(o,"touchcancel",r._onDrop),Jd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,N.draggable=!0),Wt("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(dn||He))){if(Y.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(){N&&io(N),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(N,"dragend",this),rt(dt,"dragstart",this._onDragStart));try{document.selection?Pr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(Ri=!1,dt&&N){Wt("dragStarted",this,{evt:i}),this.nativeDraggable&&rt(document,"dragover",x1);var n=this.options;!t&&ht(N,n.dragClass,!1),ht(N,n.ghostClass,!0),Y.active=this,t&&this._appendGhost(),Ft({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(Ce){this._lastX=Ce.clientX,this._lastY=Ce.clientY,pf();for(var t=document.elementFromPoint(Ce.clientX,Ce.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ce.clientX,Ce.clientY),t!==i);)i=t;if(N.parentNode[Nt]._isOutsideThisEl(t),i)do{if(i[Nt]){var n=void 0;if(n=i[Nt]._onDragOver({clientX:Ce.clientX,clientY:Ce.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);mf()}},_onTouchMove:function(t){if(yi){var i=this.options,n=i.fallbackTolerance,r=i.fallbackOffset,a=t.touches?t.touches[0]:t,s=J&&vi(J,!0),o=J&&s&&s.a,l=J&&s&&s.d,c=Nr&&Pt&&rf(Pt),h=(a.clientX-yi.clientX+r.x)/(o||1)+(c?c[0]-Qs[0]:0)/(o||1),d=(a.clientY-yi.clientY+r.y)/(l||1)+(c?c[1]-Qs[1]:0)/(l||1);if(!Y.active&&!Ri){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(J){s?(s.e+=h-(Js||0),s.f+=d-(Zs||0)):s={a:1,b:0,c:0,d:1,e:h,f:d};var u="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");K(J,"webkitTransform",u),K(J,"mozTransform",u),K(J,"msTransform",u),K(J,"transform",u),Js=h,Zs=d,Ce=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!J){var t=this.options.fallbackOnBody?document.body:dt,i=pt(N,!0,Nr,!0,t),n=this.options;if(Nr){for(Pt=t;K(Pt,"position")==="static"&&K(Pt,"transform")==="none"&&Pt!==document;)Pt=Pt.parentNode;Pt!==document.body&&Pt!==document.documentElement?(Pt===document&&(Pt=Le()),i.top+=Pt.scrollTop,i.left+=Pt.scrollLeft):Pt=Le(),Qs=rf(Pt)}J=N.cloneNode(!0),ht(J,n.ghostClass,!1),ht(J,n.fallbackClass,!0),ht(J,n.dragClass,!0),K(J,"transition",""),K(J,"transform",""),K(J,"box-sizing","border-box"),K(J,"margin",0),K(J,"top",i.top),K(J,"left",i.left),K(J,"width",i.width),K(J,"height",i.height),K(J,"opacity","0.8"),K(J,"position",Nr?"absolute":"fixed"),K(J,"zIndex","100000"),K(J,"pointerEvents","none"),Y.ghost=J,t.appendChild(J),K(J,"transform-origin",lf/parseInt(J.style.width)*100+"% "+cf/parseInt(J.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,r=t.dataTransfer,a=n.options;if(Wt("dragStart",this,{evt:t}),Y.eventCanceled){this._onDrop();return}Wt("setupClone",this),Y.eventCanceled||(vt=Xs(N),vt.draggable=!1,vt.style["will-change"]="",this._hideClone(),ht(vt,this.options.chosenClass,!1),Y.clone=vt),n.cloneId=Pr(function(){Wt("clone",n),!Y.eventCanceled&&(n.options.removeCloneOnHide||dt.insertBefore(vt,N),n._hideClone(),Ft({sortable:n,name:"clone"}))}),!i&&ht(N,a.dragClass,!0),i?(Er=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Q(document,"mouseup",n._onDrop),Q(document,"touchend",n._onDrop),Q(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(n,r,N)),rt(document,"drop",n),K(N,"transform","translateZ(0)")),Ri=!0,n._dragStartId=Pr(n._dragStarted.bind(n,i,t)),rt(document,"selectstart",n),yn=!0,Ks&&K(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=Y.active,h=Ir===l,d=o.sort,u=Mt||c,p,f=this,m=!1;if(to)return;function v(I,E){Wt(I,f,ei({evt:t,isOwner:h,axis:p?"vertical":"horizontal",revert:s,dragRect:r,targetRect:a,canSort:d,fromSortable:u,target:n,completed:x,onMove:function(U,S){return eo(dt,i,N,r,U,pt(U),t,S)},changed:T},E))}function C(){v("dragOverAnimationCapture"),f.captureAnimationState(),f!==u&&u.captureAnimationState()}function x(I){return v("dragOverCompleted",{insertion:I}),I&&(h?c._hideClone():c._showClone(f),f!==u&&(ht(N,Mt?Mt.options.ghostClass:c.options.ghostClass,!1),ht(N,o.ghostClass,!0)),Mt!==f&&f!==Y.active?Mt=f:f===Y.active&&Mt&&(Mt=null),u===f&&(f._ignoreWhileAnimating=n),f.animateAll(function(){v("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(n===N&&!N.animated||n===i&&!n.animated)&&(Fi=null),!o.dragoverBubble&&!t.rootEl&&n!==document&&(N.parentNode[Nt]._isOutsideThisEl(t.target),!I&&bi(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function T(){qt=mt(N),ri=mt(N,o.draggable),Ft({sortable:f,name:"change",toEl:i,newIndex:qt,newDraggableIndex:ri,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=we(n,o.draggable,i,!0),v("dragOver"),Y.eventCanceled)return m;if(N.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||f._ignoreWhileAnimating===n)return x(!1);if(Er=!1,c&&!o.disabled&&(h?d||(s=!dt.contains(N)):Mt===this||(this.lastPutMode=Ir.checkPull(this,c,N,t))&&l.checkPut(this,c,N,t))){if(p=this._getDirection(t,n)==="vertical",r=pt(N),v("dragOverValid"),Y.eventCanceled)return m;if(s)return yt=dt,C(),this._hideClone(),v("revert"),Y.eventCanceled||(gi?dt.insertBefore(N,gi):dt.appendChild(N)),x(!0);var _=Ws(i,o.draggable);if(!_||T1(t,p,this)&&!_.animated){if(_===N)return x(!1);if(_&&i===t.target&&(n=_),n&&(a=pt(n)),eo(dt,i,N,r,n,a,t,!!n)!==!1)return C(),i.appendChild(N),yt=i,T(),x(!0)}else if(n.parentNode===i){a=pt(n);var D=0,L,H=N.parentNode!==i,B=!w1(N.animated&&N.toRect||r,n.animated&&n.toRect||a,p),z=p?"top":"left",R=nf(n,"top","top")||nf(N,"top","top"),A=R?R.scrollTop:void 0;Fi!==n&&(L=a[z],Sn=!1,Mr=!B&&o.invertSwap||H),D=_1(t,n,a,p,B?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Mr,Fi===n);var it;if(D!==0){var ot=mt(N);do ot-=D,it=yt.children[ot];while(it&&(K(it,"display")==="none"||it===J))}if(D===0||it===n)return x(!1);Fi=n,bn=D;var V=n.nextElementSibling,k=!1;k=D===1;var g=eo(dt,i,N,r,n,a,t,k);if(g!==!1)return(g===1||g===-1)&&(k=g===1),to=!0,setTimeout(k1,30),C(),k&&!V?i.appendChild(N):n.parentNode.insertBefore(N,k?V:n),R&&sf(R,0,A-R.scrollTop),yt=N.parentNode,L!==void 0&&!Mr&&(Or=Math.abs(L-pt(n)[z])),T(),x(!0)}if(i.contains(N))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(qt=mt(N),ri=mt(N,n.draggable),Wt("drop",this,{evt:t}),yt=N&&N.parentNode,qt=mt(N),ri=mt(N,n.draggable),Y.eventCanceled){this._nulling();return}Ri=!1,Mr=!1,Sn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),no(this.cloneId),no(this._dragStartId),this.nativeDraggable&&(Q(document,"drop",this),Q(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ks&&K(document.body,"user-select",""),K(N,"transform",""),t&&(yn&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(dt===yt||Mt&&Mt.lastPutMode!=="clone")&&vt&&vt.parentNode&&vt.parentNode.removeChild(vt),N&&(this.nativeDraggable&&Q(N,"dragend",this),io(N),N.style["will-change"]="",yn&&!Ri&&ht(N,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),ht(N,this.options.chosenClass,!1),Ft({sortable:this,name:"unchoose",toEl:yt,newIndex:null,newDraggableIndex:null,originalEvent:t}),dt!==yt?(qt>=0&&(Ft({rootEl:yt,name:"add",toEl:yt,fromEl:dt,originalEvent:t}),Ft({sortable:this,name:"remove",toEl:yt,originalEvent:t}),Ft({rootEl:yt,name:"sort",toEl:yt,fromEl:dt,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:yt,originalEvent:t})),Mt&&Mt.save()):qt!==Bi&&qt>=0&&(Ft({sortable:this,name:"update",toEl:yt,originalEvent:t}),Ft({sortable:this,name:"sort",toEl:yt,originalEvent:t})),Y.active&&((qt==null||qt===-1)&&(qt=Bi,ri=gn),Ft({sortable:this,name:"end",toEl:yt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Wt("nulling",this),dt=N=yt=J=gi=vt=_r=ni=yi=Ce=yn=qt=ri=Bi=gn=Fi=bn=Mt=Ir=Y.dragged=Y.ghost=Y.clone=Y.active=null,Lr.forEach(function(t){t.checked=!0}),Lr.length=Js=Zs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":N&&(this._onDragOver(t),$1(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)||E1(i));return t},sort:function(t){var i={},n=this.el;this.toArray().forEach(function(r,a){var s=n.children[a];we(s,this.options.draggable,n,!1)&&(i[r]=s)},this),t.forEach(function(r){i[r]&&(n.removeChild(i[r]),n.appendChild(i[r]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return we(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(i===void 0)return n[t];var r=mn.modifyOption(this,t,i);typeof r!="undefined"?n[t]=r:n[t]=i,t==="group"&&ff(n)},destroy:function(){Wt("destroy",this);var t=this.el;t[Nt]=null,Q(t,"mousedown",this._onTapStart),Q(t,"touchstart",this._onTapStart),Q(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Q(t,"dragover",this),Q(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Dr.splice(Dr.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ni){if(Wt("hideClone",this),Y.eventCanceled)return;K(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),Y.eventCanceled)return;dt.contains(N)&&!this.options.group.revertClone?dt.insertBefore(vt,N):gi?dt.insertBefore(vt,gi):dt.appendChild(vt),this.options.group.revertClone&&this.animate(N,vt),K(vt,"display",""),ni=!1}}};function $1(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function eo(e,t,i,n,r,a,s,o){var l,c=e[Nt],h=c.options.onMove,d;return window.CustomEvent&&!He&&!dn?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=i,l.draggedRect=n,l.related=r||t,l.relatedRect=a||pt(t),l.willInsertAfter=o,l.originalEvent=s,e.dispatchEvent(l),h&&(d=h.call(c,l,s)),d}function io(e){e.draggable=!1}function k1(){to=!1}function T1(e,t,i){var n=pt(Ws(i.el,i.options.draggable)),r=10;return t?e.clientX>n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}function _1(e,t,i,n,r,a,s,o){var l=n?e.clientY:e.clientX,c=n?i.height:i.width,h=n?i.top:i.left,d=n?i.bottom:i.right,u=!1;if(!s){if(o&&Or<c*r){if(!Sn&&(bn===1?l>h+c*a/2:l<d-c*a/2)&&(Sn=!0),Sn)u=!0;else if(bn===1?l<h+Or:l>d-Or)return-bn}else if(l>h+c*(1-r)/2&&l<d-c*(1-r)/2)return I1(t)}return u=u||s,u&&(l<h+c*a/2||l>d-c*a/2)?l>h+c/2?1:-1:0}function I1(e){return mt(N)<mt(e)?1:-1}function E1(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 D1(e){Lr.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&Lr.push(n)}}function Pr(e){return setTimeout(e,0)}function no(e){return clearTimeout(e)}Ar&&rt(document,"touchmove",function(e){(Y.active||Ri)&&e.cancelable&&e.preventDefault()}),Y.utils={on:rt,off:Q,css:K,find:ef,is:function(t,i){return!!we(t,i,t,!1)},extend:m1,throttle:af,closest:we,toggleClass:ht,clone:Xs,index:mt,nextTick:Pr,cancelNextTick:no,detectDirection:df,getChild:Tr},Y.get=function(e){return e[Nt]},Y.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&&(Y.utils=ei({},Y.utils,n.utils)),mn.mount(n)})},Y.create=function(e,t){return new Y(e,t)},Y.version=h1;var bt=[],wn,ro,ao=!1,so,oo,Br,Cn;function M1(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(i){var n=i.originalEvent;this.sortable.nativeDraggable?rt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?rt(document,"pointermove",this._handleFallbackAutoScroll):n.touches?rt(document,"touchmove",this._handleFallbackAutoScroll):rt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var n=i.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Q(document,"dragover",this._handleAutoScroll):(Q(document,"pointermove",this._handleFallbackAutoScroll),Q(document,"touchmove",this._handleFallbackAutoScroll),Q(document,"mousemove",this._handleFallbackAutoScroll)),vf(),Rr(),v1()},nulling:function(){Br=ro=wn=ao=Cn=so=oo=null,bt.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,n){var r=this,a=(i.touches?i.touches[0]:i).clientX,s=(i.touches?i.touches[0]:i).clientY,o=document.elementFromPoint(a,s);if(Br=i,n||dn||He||Ks){lo(i,this.options,o,n);var l=ii(o,!0);ao&&(!Cn||a!==so||s!==oo)&&(Cn&&vf(),Cn=setInterval(function(){var c=ii(document.elementFromPoint(a,s),!0);c!==l&&(l=c,Rr()),lo(i,r.options,c,n)},10),so=a,oo=s)}else{if(!this.options.bubbleScroll||ii(o,!0)===Le()){Rr();return}lo(i,this.options,ii(o,!1),!1)}}},oe(e,{pluginName:"scroll",initializeByDefault:!0})}function Rr(){bt.forEach(function(e){clearInterval(e.pid)}),bt=[]}function vf(){clearInterval(Cn)}var lo=af(function(e,t,i,n){if(!!t.scroll){var r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,o=t.scrollSpeed,l=Le(),c=!1,h;ro!==i&&(ro=i,Rr(),wn=t.scroll,h=t.scrollFn,wn===!0&&(wn=ii(i,!0)));var d=0,u=wn;do{var p=u,f=pt(p),m=f.top,v=f.bottom,C=f.left,x=f.right,T=f.width,_=f.height,D=void 0,L=void 0,H=p.scrollWidth,B=p.scrollHeight,z=K(p),R=p.scrollLeft,A=p.scrollTop;p===l?(D=T<H&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),L=_<B&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(D=T<H&&(z.overflowX==="auto"||z.overflowX==="scroll"),L=_<B&&(z.overflowY==="auto"||z.overflowY==="scroll"));var it=D&&(Math.abs(x-r)<=s&&R+T<H)-(Math.abs(C-r)<=s&&!!R),ot=L&&(Math.abs(v-a)<=s&&A+_<B)-(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!==p)&&(bt[d].el=p,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&&Y.active._onTouchMove(Br);var k=bt[this.layer].vy?bt[this.layer].vy*o:0,g=bt[this.layer].vx?bt[this.layer].vx*o:0;typeof h=="function"&&h.call(Y.dragged.parentNode[Nt],g,k,e,Br,bt[this.layer].el)!=="continue"||sf(bt[this.layer].el,g,k)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&u!==l&&(u=ii(u,!1)));ao=c}},30),gf=function(t){var i=t.originalEvent,n=t.putSortable,r=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!i){var c=n||a;o();var h=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,d=document.elementFromPoint(h.clientX,h.clientY);l(),c&&!c.el.contains(d)&&(s("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function co(){}co.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Tr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(i,r):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:gf},oe(co,{pluginName:"revertOnSpill"});function uo(){}uo.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),r.animateAll()},drop:gf},oe(uo,{pluginName:"removeOnSpill"});var le;function O1(){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(),L1(a,le),s.animateAll(),s!==n&&n.animateAll())},nulling:function(){le=null}},oe(e,{pluginName:"swap",eventProperties:function(){return{swapItem:le}}})}function L1(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 G=[],Gt=[],xn,xe,$n=!1,Jt=!1,Vi=!1,ut,kn,Fr;function A1(){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="";G.length&&xe===t?G.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=~G.indexOf(ut)},setupClone:function(i){var n=i.sortable,r=i.cancel;if(!!this.isMultiDrag){for(var a=0;a<G.length;a++)Gt.push(Xs(G[a])),Gt[a].sortableIndex=G[a].sortableIndex,Gt[a].draggable=!1,Gt[a].style["will-change"]="",ht(Gt[a],this.options.selectedClass,!1),G[a]===ut&&ht(Gt[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||G.length&&xe===n&&(yf(!0,r),a("clone"),s())},showClone:function(i){var n=i.cloneNowShown,r=i.rootEl,a=i.cancel;!this.isMultiDrag||(yf(!1,r),Gt.forEach(function(s){K(s,"display","")}),n(),Fr=!1,a())},hideClone:function(i){var n=this;i.sortable;var r=i.cloneNowHidden,a=i.cancel;!this.isMultiDrag||(Gt.forEach(function(s){K(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(),G.forEach(function(n){n.sortableIndex=mt(n)}),G=G.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)){G.forEach(function(s){s!==ut&&K(s,"position","absolute")});var a=pt(ut,!1,!0,!0);G.forEach(function(s){s!==ut&&of(s,a)}),Jt=!0,$n=!0}r.animateAll(function(){Jt=!1,$n=!1,n.options.animation&&G.forEach(function(s){qs(s)}),n.options.sort&&Vr()})}},dragOver:function(i){var n=i.target,r=i.completed,a=i.cancel;Jt&&~G.indexOf(n)&&(r(!1),a())},revert:function(i){var n=i.fromSortable,r=i.rootEl,a=i.sortable,s=i.dragRect;G.length>1&&(G.forEach(function(o){a.addAnimationState({target:o,rect:Jt?pt(o):s}),qs(o),o.fromRect=s,n.removeAnimationState(o)}),Jt=!1,N1(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(i){var n=i.sortable,r=i.isOwner,a=i.insertion,s=i.activeSortable,o=i.parentEl,l=i.putSortable,c=this.options;if(a){if(r&&s._hideClone(),$n=!1,c.animation&&G.length>1&&(Jt||!r&&!s.options.sort&&!l)){var h=pt(ut,!1,!0,!0);G.forEach(function(u){u!==ut&&(of(u,h),o.appendChild(u))}),Jt=!0}if(!r)if(Jt||Vr(),G.length>1){var d=Fr;s._showClone(n),s.options.animation&&!Fr&&d&&Gt.forEach(function(u){s.addAnimationState({target:u,rect:kn}),u.fromRect=kn,u.thisAnimationDuration=null})}else s._showClone(n)}},dragOverAnimationCapture:function(i){var n=i.dragRect,r=i.isOwner,a=i.activeSortable;if(G.forEach(function(o){o.thisAnimationDuration=null}),a.options.animation&&!r&&a.multiDrag.isMultiDrag){kn=oe({},n);var s=vi(ut,!0);kn.top-=s.f,kn.left-=s.e}},dragOverAnimationComplete:function(){Jt&&(Jt=!1,Vr())},drop:function(i){var n=i.originalEvent,r=i.rootEl,a=i.parentEl,s=i.sortable,o=i.dispatchSortableEvent,l=i.oldIndex,c=i.putSortable,h=c||this.sortable;if(!!n){var d=this.options,u=a.children;if(!Vi)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ht(ut,d.selectedClass,!~G.indexOf(ut)),~G.indexOf(ut))G.splice(G.indexOf(ut),1),xn=null,vn({sortable:s,rootEl:r,name:"deselect",targetEl:ut,originalEvt:n});else{if(G.push(ut),vn({sortable:s,rootEl:r,name:"select",targetEl:ut,originalEvt:n}),n.shiftKey&&xn&&s.el.contains(xn)){var p=mt(xn),f=mt(ut);if(~p&&~f&&p!==f){var m,v;for(f>p?(v=p,m=f):(v=f,m=p+1);v<m;v++)~G.indexOf(u[v])||(ht(u[v],d.selectedClass,!0),G.push(u[v]),vn({sortable:s,rootEl:r,name:"select",targetEl:u[v],originalEvt:n}))}}else xn=ut;xe=h}if(Vi&&this.isMultiDrag){if((a[Nt].options.sort||a!==r)&&G.length>1){var C=pt(ut),x=mt(ut,":not(."+this.options.selectedClass+")");if(!$n&&d.animation&&(ut.thisAnimationDuration=null),h.captureAnimationState(),!$n&&(d.animation&&(ut.fromRect=C,G.forEach(function(_){if(_.thisAnimationDuration=null,_!==ut){var D=Jt?pt(_):C;_.fromRect=D,h.addAnimationState({target:_,rect:D})}})),Vr(),G.forEach(function(_){u[x]?a.insertBefore(_,u[x]):a.appendChild(_),x++}),l===mt(ut))){var T=!1;G.forEach(function(_){if(_.sortableIndex!==mt(_)){T=!0;return}}),T&&o("update")}G.forEach(function(_){qs(_)}),h.animateAll()}xe=h}(r===a||c&&c.lastPutMode!=="clone")&&Gt.forEach(function(_){_.parentNode&&_.parentNode.removeChild(_)})}},nullingGlobal:function(){this.isMultiDrag=Vi=!1,Gt.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(;G.length;){var n=G[0];ht(n,this.options.selectedClass,!1),G.shift(),vn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:i})}},_checkKeyDown:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(i){i.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},oe(e,{pluginName:"multiDrag",utils:{select:function(i){var n=i.parentNode[Nt];!n||!n.options.multiDrag||~G.indexOf(i)||(xe&&xe!==n&&(xe.multiDrag._deselectMultiDrag(),xe=n),ht(i,n.options.selectedClass,!0),G.push(i))},deselect:function(i){var n=i.parentNode[Nt],r=G.indexOf(i);!n||!n.options.multiDrag||!~r||(ht(i,n.options.selectedClass,!1),G.splice(r,1))}},eventProperties:function(){var i=this,n=[],r=[];return G.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:o1(G),clones:[].concat(Gt),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 N1(e,t){G.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function yf(e,t){Gt.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function Vr(){G.forEach(function(e){e!==ut&&e.parentNode&&e.parentNode.removeChild(e)})}Y.mount(new M1),Y.mount(uo,co);var P1=Object.freeze(Object.defineProperty({__proto__:null,default:Y,MultiDrag:A1,Sortable:Y,Swap:O1},Symbol.toStringTag,{value:"Module"})),B1=Kp(P1);(function(e,t){(function(n,r){e.exports=r(B1)})(typeof self!="undefined"?self:Ro,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"),p=a("38fd"),f=a("2b4c")("iterator"),m=!([].keys&&"next"in[].keys()),v="@@iterator",C="keys",x="values",T=function(){return this};n.exports=function(_,D,L,H,B,z,R){d(L,D,H);var A=function(w){if(!m&&w in k)return k[w];switch(w){case C:return function(){return new L(this,w)};case x:return function(){return new L(this,w)}}return function(){return new L(this,w)}},it=D+" Iterator",ot=B==x,V=!1,k=_.prototype,g=k[f]||k[v]||B&&k[B],I=g||A(B),E=B?ot?A("entries"):I:void 0,j=D=="Array"&&k.entries||g,U,S,b;if(j&&(b=p(j.call(new _)),b!==Object.prototype&&b.next&&(u(b,it,!0),!s&&typeof b[f]!="function"&&c(b,f,T))),ot&&g&&g.name!==x&&(V=!0,I=function(){return g.call(this)}),(!s||R)&&(m||V||!k[f])&&c(k,f,I),h[D]=I,h[it]=T,B)if(U={values:ot?I:A(x),keys:z?I:A(C),entries:E},R)for(S in U)S in k||l(k,S,U[S]);else o(o.P+o.F*(m||V),D,U);return U}},"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),p=d.length,f,m;return u<0||u>=p?l?"":void 0:(f=d.charCodeAt(u),f<55296||f>56319||u+1===p||(m=d.charCodeAt(u+1))<56320||m>57343?l?d.charAt(u):f:l?d.slice(u,u+2):(f-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),p=u.length,f=0,m;p>f;)s.f(h,m=u[f++],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"),p=!l(function(){var m=/./;return m.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(m,"$<a>")!=="7"}),f=function(){var m=/(?:)/,v=m.exec;m.exec=function(){return v.apply(this,arguments)};var C="ab".split(m);return C.length===2&&C[0]==="a"&&C[1]==="b"}();n.exports=function(m,v,C){var x=h(m),T=!l(function(){var z={};return z[x]=function(){return 7},""[m](z)!=7}),_=T?!l(function(){var z=!1,R=/a/;return R.exec=function(){return z=!0,null},m==="split"&&(R.constructor={},R.constructor[u]=function(){return R}),R[x](""),!z}):void 0;if(!T||!_||m==="replace"&&!p||m==="split"&&!f){var D=/./[x],L=C(c,x,""[m],function(R,A,it,ot,V){return A.exec===d?T&&!V?{done:!0,value:D.call(A,it,ot)}:{done:!0,value:R.call(it,A,ot)}:{done:!1}}),H=L[0],B=L[1];s(String.prototype,m,H),o(RegExp.prototype,x,v==2?function(z,R){return B.call(z,this,R)}:function(z){return B.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,p;return h===void 0?"Undefined":h===null?"Null":typeof(u=c(d=Object(h),o))=="string"?u:l?s(d):(p=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":p}},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(p){return h.call(p)},(n.exports=function(p,f,m,v){var C=typeof m=="function";C&&(l(m,"name")||o(m,"name",f)),p[f]!==m&&(C&&(l(m,c)||o(m,c,p[f]?""+p[f]:u.join(String(f)))),p===s?p[f]=m:v?p[f]?p[f]=m:o(p,f,m):(delete p[f],o(p,f,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 p=a("230e")("iframe"),f=l.length,m="<",v=">",C;for(p.style.display="none",a("fab2").appendChild(p),p.src="javascript:",C=p.contentWindow.document,C.open(),C.write(m+"script"+v+"document.F=Object"+m+"/script"+v),C.close(),u=C.F;f--;)delete u[d][l[f]];return u()};n.exports=Object.create||function(f,m){var v;return f!==null?(h[d]=s(f),v=new h,h[d]=null,v[c]=f):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 f=/a/,m=/b*/g;return o.call(f,"a"),o.call(m,"a"),f[h]!==0||m[h]!==0}(),u=/()??/.exec("")[1]!==void 0,p=d||u;p&&(c=function(m){var v=this,C,x,T,_;return u&&(x=new RegExp("^"+v.source+"$(?!\\s)",s.call(v))),d&&(C=v[h]),T=o.call(v,m),d&&T&&(v[h]=v.global?T.index+T[0].length:C),u&&T&&T.length>1&&l.call(T[0],x,function(){for(_=1;_<arguments.length-2;_++)arguments[_]===void 0&&(T[_]=void 0)}),T}),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(p,f,m){var v=p&u.F,C=p&u.G,x=p&u.S,T=p&u.P,_=p&u.B,D=C?s:x?s[f]||(s[f]={}):(s[f]||{})[d],L=C?o:o[f]||(o[f]={}),H=L[d]||(L[d]={}),B,z,R,A;C&&(m=f);for(B in m)z=!v&&D&&D[B]!==void 0,R=(z?D:m)[B],A=_&&z?h(R,s):T&&typeof R=="function"?h(Function.call,R):R,D&&c(D,B,R,p&u.U),L[B]!=R&&l(L,B,A),T&&H[B]!=R&&(H[B]=R)};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={},p={},f=Symbol(),m="abcdefghijklmnopqrst";return u[f]=7,m.split("").forEach(function(v){p[v]=v}),d({},u)[f]!=7||Object.keys(d({},p)).join("")!=m})?function(p,f){for(var m=c(p),v=arguments.length,C=1,x=o.f,T=l.f;v>C;)for(var _=h(arguments[C++]),D=x?s(_).concat(x(_)):s(_),L=D.length,H=0,B;L>H;)T.call(_,B=D[H++])&&(m[B]=_[B]);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,p){if(s(d),u=l(u,!0),s(p),o)try{return c(d,u,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(d[u]=p.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,p=Math.min,f=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,C=function(x){return x===void 0?x:String(x)};a("214f")("replace",2,function(x,T,_,D){return[function(B,z){var R=x(this),A=B==null?void 0:B[T];return A!==void 0?A.call(B,R,z):_.call(String(R),B,z)},function(H,B){var z=D(_,H,this,B);if(z.done)return z.value;var R=s(H),A=String(this),it=typeof B=="function";it||(B=String(B));var ot=R.global;if(ot){var V=R.unicode;R.lastIndex=0}for(var k=[];;){var g=d(R,A);if(g===null||(k.push(g),!ot))break;var I=String(g[0]);I===""&&(R.lastIndex=h(A,l(R.lastIndex),V))}for(var E="",j=0,U=0;U<k.length;U++){g=k[U];for(var S=String(g[0]),b=u(p(c(g.index),A.length),0),w=[],F=1;F<g.length;F++)w.push(C(g[F]));var W=g.groups;if(it){var q=[S].concat(w,b,A);W!==void 0&&q.push(W);var tt=String(B.apply(void 0,q))}else tt=L(S,A,b,w,W,B);b>=j&&(E+=A.slice(j,b)+tt,j=b+S.length)}return E+A.slice(j)}];function L(H,B,z,R,A,it){var ot=z+H.length,V=R.length,k=v;return A!==void 0&&(A=o(A),k=m),_.call(it,k,function(g,I){var E;switch(I.charAt(0)){case"$":return"$";case"&":return H;case"`":return B.slice(0,z);case"'":return B.slice(ot);case"<":E=A[I.slice(1,-1)];break;default:var j=+I;if(j===0)return g;if(j>V){var U=f(j/10);return U===0?g:U<=V?R[U-1]===void 0?I.charAt(1):R[U-1]+I.charAt(1):g}E=R[j-1]}return E===void 0?"":E})}})},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"),p=u("iterator"),f=u("toStringTag"),m=d.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},C=o(v),x=0;x<C.length;x++){var T=C[x],_=v[T],D=c[T],L=D&&D.prototype,H;if(L&&(L[p]||h(L,p,m),L[f]||h(L,f,T),d[T]=m,_))for(H in s)L[H]||l(L,H,s[H],!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 p=s(h),f=o(p.length),m=l(u,f),v;if(c&&d!=d){for(;f>m;)if(v=p[m++],v!=v)return!0}else for(;f>m;m++)if((c||m in p)&&p[m]===d)return c||m||0;return!c&&-1}}},c649:function(n,r,a){(function(s){a.d(r,"c",function(){return p}),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(f){var m=Object.create(null);return function(C){var x=m[C];return x||(m[C]=f(C))}}var h=/-(\w)/g,d=c(function(f){return f.replace(h,function(m,v){return v?v.toUpperCase():""})});function u(f){f.parentElement!==null&&f.parentElement.removeChild(f)}function p(f,m,v){var C=v===0?f.children[0]:f.children[v-1].nextSibling;f.insertBefore(m,C)}}).call(this,a("c8ba"))},c69a:function(n,r,a){n.exports=!a("9e1e")&&!a("79e5")(function(){return Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(n,r){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}n.exports=a},ca5a:function(n,r){var a=0,s=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++a+s).toString(36))}},cadf:function(n,r,a){var s=a("9c6c"),o=a("d53b"),l=a("84f2"),c=a("6821");n.exports=a("01f9")(Array,"Array",function(h,d){this._t=c(h),this._i=0,this._k=d},function(){var h=this._t,d=this._k,u=this._i++;return!h||u>=h.length?(this._t=void 0,o(1)):d=="keys"?o(0,u):d=="values"?o(0,h[u]):o(0,[u,h[u]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},cb7c:function(n,r,a){var s=a("d3f4");n.exports=function(o){if(!s(o))throw TypeError(o+" is not an object!");return o}},ce10:function(n,r,a){var s=a("69a8"),o=a("6821"),l=a("c366")(!1),c=a("613b")("IE_PROTO");n.exports=function(h,d){var u=o(h),p=0,f=[],m;for(m in u)m!=c&&s(u,m)&&f.push(m);for(;d.length>p;)s(u,m=d[p++])&&(~l(f,m)||f.push(m));return f}},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 p=l(this,u,c),f=o(Math.min(arguments.length>1?arguments[1]:void 0,p.length)),m=String(u);return h?h.call(p,m,f):p.slice(f,f+m.length)===m}})},f6fd:function(n,r){(function(a){var s="currentScript",o=a.getElementsByTagName("script");s in a||Object.defineProperty(a,s,{get:function(){try{throw new Error}catch(h){var l,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(h.stack)||[!1])[1];for(l in o)if(o[l].src==c||o[l].readyState=="interactive")return o[l];return null}}})})(document)},f751:function(n,r,a){var s=a("5ca1");s(s.S+s.F,"Object",{assign:a("7333")})},fa5b:function(n,r,a){n.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(n,r,a){var s=a("7726").document;n.exports=s&&s.documentElement},fb15:function(n,r,a){if(a.r(r),typeof window!="undefined"){a("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1])}a("f751"),a("f559"),a("ac6a"),a("cadf"),a("456d");function o(S){if(Array.isArray(S))return S}function l(S,b){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var w=[],F=!0,W=!1,q=void 0;try{for(var tt=S[Symbol.iterator](),ct;!(F=(ct=tt.next()).done)&&(w.push(ct.value),!(b&&w.length===b));F=!0);}catch(Tt){W=!0,q=Tt}finally{try{!F&&tt.return!=null&&tt.return()}finally{if(W)throw q}}return w}}function c(S,b){(b==null||b>S.length)&&(b=S.length);for(var w=0,F=new Array(b);w<b;w++)F[w]=S[w];return F}function h(S,b){if(!!S){if(typeof S=="string")return c(S,b);var w=Object.prototype.toString.call(S).slice(8,-1);if(w==="Object"&&S.constructor&&(w=S.constructor.name),w==="Map"||w==="Set")return Array.from(S);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return c(S,b)}}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
19
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(S,b){return o(S)||l(S,b)||h(S,b)||d()}a("6762"),a("2fdb");function p(S){if(Array.isArray(S))return c(S)}function f(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 p(S)||f(S)||h(S)||m()}var C=a("a352"),x=a.n(C),T=a("c649");function _(S,b,w){return w===void 0||(S=S||{},S[b]=w),S}function D(S,b){return S.map(function(w){return w.elm}).indexOf(b)}function L(S,b,w,F){if(!S)return[];var W=S.map(function(ct){return ct.elm}),q=b.length-F,tt=v(b).map(function(ct,Tt){return Tt>=q?W.length:W.indexOf(ct)});return w?tt.filter(function(ct){return ct!==-1}):tt}function H(S,b){var w=this;this.$nextTick(function(){return w.$emit(S.toLowerCase(),b)})}function B(S){var b=this;return function(w){b.realList!==null&&b["onDrag"+S](w),H.call(b,S,w)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function R(S){if(!S||S.length!==1)return!1;var b=u(S,1),w=b[0].componentOptions;return w?z(w.tag):!1}function A(S,b,w){return S[w]||(b[w]?b[w]():void 0)}function it(S,b,w){var F=0,W=0,q=A(b,w,"header");q&&(F=q.length,S=S?[].concat(v(q),v(S)):v(q));var tt=A(b,w,"footer");return tt&&(W=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:W}}function ot(S,b){var w=null,F=function($t,Ae){w=_(w,$t,Ae)},W=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",W),!b)return w;var q=b.on,tt=b.props,ct=b.attrs;return F("on",q),F("props",tt),Object.assign(w.attrs,ct),w}var V=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(V,k).map(function(S){return"on"+S}),I=null,E={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(b){return b}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},j={name:"draggable",inheritAttrs:!1,props:E,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(b){var w=this.$slots.default;this.transitionMode=R(w);var F=it(w,this.$slots,this.$scopedSlots),W=F.children,q=F.headerOffset,tt=F.footerOffset;this.headerOffset=q,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return b(this.getTag(),ct,W)},created:function(){this.list!==null&&this.value!==null&&T.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&T.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&&T.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var b=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var w={};V.forEach(function(q){w["on"+q]=B.call(b,q)}),k.forEach(function(q){w["on"+q]=H.bind(b,q)});var F=Object.keys(this.$attrs).reduce(function(q,tt){return q[Object(T.a)(tt)]=b.$attrs[tt],q},{}),W=Object.assign({},this.options,F,w,{onMove:function(tt,ct){return b.onDragMove(tt,ct)}});!("draggable"in W)&&(W.draggable=">*"),this._sortable=new x.a(this.rootContainer,W),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(b){this.updateOptions(b)},deep:!0},$attrs:{handler:function(b){this.updateOptions(b)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var b=this._vnode.fnOptions;return b&&b.functional},getTag:function(){return this.tag||this.element},updateOptions:function(b){for(var w in b){var F=Object(T.a)(w);g.indexOf(F)===-1&&this._sortable.option(F,b[w])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var b=this.$slots.default;return this.transitionMode?b[0].child.$slots.default:b},computeIndexes:function(){var b=this;this.$nextTick(function(){b.visibleIndexes=L(b.getChildrenNodes(),b.rootContainer.children,b.transitionMode,b.footerOffset)})},getUnderlyingVm:function(b){var w=D(this.getChildrenNodes()||[],b);if(w===-1)return null;var F=this.realList[w];return{index:w,element:F}},getUnderlyingPotencialDraggableComponent:function(b){var w=b.__vue__;return!w||!w.$options||!z(w.$options._componentTag)?!("realList"in w)&&w.$children.length===1&&"realList"in w.$children[0]?w.$children[0]:w:w.$parent},emitChanges:function(b){var w=this;this.$nextTick(function(){w.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var w=v(this.value);b(w),this.$emit("input",w)},spliceList:function(){var b=arguments,w=function(W){return W.splice.apply(W,v(b))};this.alterList(w)},updatePosition:function(b,w){var F=function(q){return q.splice(w,0,q.splice(b,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(b){var w=b.to,F=b.related,W=this.getUnderlyingPotencialDraggableComponent(w);if(!W)return{component:W};var q=W.realList,tt={list:q,component:W};if(w!==F&&q&&W.getUnderlyingVm){var ct=W.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(b){var w=this.visibleIndexes,F=w.length;return b>F-1?F:w[b]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(b){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var w=this.getChildrenNodes();w[b].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(b){this.context=this.getUnderlyingVm(b.item),b.item._underlying_vm_=this.clone(this.context.element),I=b.item},onDragAdd:function(b){var w=b.item._underlying_vm_;if(w!==void 0){Object(T.d)(b.item);var F=this.getVmIndex(b.newIndex);this.spliceList(F,0,w),this.computeIndexes();var W={element:w,newIndex:F};this.emitChanges({added:W})}},onDragRemove:function(b){if(Object(T.c)(this.rootContainer,b.item,b.oldIndex),b.pullMode==="clone"){Object(T.d)(b.clone);return}var w=this.context.index;this.spliceList(w,1);var F={element:this.context.element,oldIndex:w};this.resetTransitionData(w),this.emitChanges({removed:F})},onDragUpdate:function(b){Object(T.d)(b.item),Object(T.c)(b.from,b.item,b.oldIndex);var w=this.context.index,F=this.getVmIndex(b.newIndex);this.updatePosition(w,F);var W={element:this.context.element,oldIndex:w,newIndex:F};this.emitChanges({moved:W})},updateProperty:function(b,w){b.hasOwnProperty(w)&&(b[w]+=this.headerOffset)},computeFutureIndex:function(b,w){if(!b.element)return 0;var F=v(w.to.children).filter(function(ct){return ct.style.display!=="none"}),W=F.indexOf(w.related),q=b.component.getVmIndex(W),tt=F.indexOf(I)!==-1;return tt||!w.willInsertAfter?q:q+1},onDragMove:function(b,w){var F=this.move;if(!F||!this.realList)return!0;var W=this.getRelatedContextFromMoveEvent(b),q=this.context,tt=this.computeFutureIndex(W,b);Object.assign(q,{futureIndex:tt});var ct=Object.assign({},b,{relatedContext:W,draggedContext:q});return F(ct,w)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var U=j;r.default=U}}).default})})(Gd);var R1=Up(Gd.exports),F1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"app-page"},[i("van-sticky",{staticClass:"myapp-sticky",attrs:{"offset-top":48}},[i("div",{ref:"myapp",staticClass:"myapp",style:{width:"-webkit-fill-available"}},[i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" \u6211\u7684\u5E94\u7528 "),i("van-button",{staticClass:"edit-btn",attrs:{size:"small",type:"info",text:this.editButtonName},on:{click:e.toggleEdit}})],1)]),i("draggable",{staticClass:"wrapper",attrs:{options:{disabled:e.disableDraggable}},model:{value:e.my_apps,callback:function(n){e.my_apps=n},expression:"my_apps"}},[i("transition-group",{staticClass:"my-app-list",staticStyle:{display:"flex","flex-wrap":"wrap"}},e._l(e.my_apps,function(n,r){return i("apps-item",{key:r,staticClass:"item",staticStyle:{width:"25%",padding:"16px 8px","box-sizing":"border-box"},attrs:{item:n,state:n.state,editStatus:e.currentEditStatus=="on"?"minus":"off"},on:{touchend:e.rmFromMyAppsClick}})}),1)],1)],1)])]),i("van-tabs",{attrs:{color:"#488aff",scrollspy:"",sticky:"","offset-top":e.offsetTop},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,staticClass:"menu"},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:e.currentEditStatus=="on"?"plus":"off"},on:{touchend:e.addToMyAppsClick}})],1)}),1)],1)}),1),i("tabbar")],1)],1)},V1=[];const z1={components:{tabbar:ti,MyApps:Us,appsItem:ze,Draggable:R1},name:"IndMApps",data(){return{active:0,name:"apps",apps_menus:[],my_apps:[],title:"",currentEditStatus:"off",userAppTip:"\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",editButtonName:"\u7F16\u8F91",editClass:"",rmFromMyAppsClick:this.routeTo,addToMyAppsClick:this.routeTo,offsetTop:"246px",maxApps:8}},watch:{currentEditStatus(e){switch(e){case"on":{this.userAppTip="\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F",this.editButtonName="\u5B8C\u6210",this.editClass="editing",this.rmFromMyAppsClick=this.rmFromMyApps,this.addToMyAppsClick=this.addToMyApps,this.disableDraggable=!1;break}case"off":{this.userAppTip="\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",this.editButtonName="\u7F16\u8F91",this.editClass="",this.rmFromMyAppsClick=this.routeTo,this.addToMyAppsClick=this.routeTo,this.saveMyApps(),this.disableDraggable=!0;break}}},my_apps(){setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48},200)}},updated(){this.$store.commit("setMyAppsList",this.my_apps)},mounted(){var i,n,r;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&((r=(n=this.$config)==null?void 0:n.systemDefaultConfig)==null?void 0:r.isMobileSeparate)!="1"&&(e=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let t=e.filter(a=>a.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.processState(this.my_apps,t),console.log(this.apps_menus),setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48+10},100)},methods:{routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},toggleEdit(){switch(this.currentEditStatus){case"on":{this.currentEditStatus="off";break}case"off":{this.currentEditStatus="on";break}}},saveMyApps(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.my_apps)}).catch(()=>{})},processState(e,t){return t.forEach(i=>{let n=!1;for(let r of e){if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1,r.meta.icon=i.meta.icon;break}r.state=!0}n||(i.state=!0),i.children&&this.processState(e,i.children)}),t},addToMyApps(e){if(this.my_apps.length==this.maxApps){wt("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},bf={};var j1=X(z1,F1,V1,!1,H1,null,null,null);function H1(e){for(let t in bf)this[t]=bf[t]}var ho=function(){return j1.exports}(),U1=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)},K1=[],v_="";const W1={name:"IndMAppsEdit",data(){return{myAppList:[],active:0,name:"apps",apps_menus:[],title:"\u5E94\u7528\u7BA1\u7406"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList;let t=this.$store.getters.getMenuTreeList.filter(i=>i.name===this.name)[0].children;this.title=t[0].meta.title,this.mergeData(this.myAppList,t),this.apps_menus=t,console.log(t)},methods:{back(){this.$router.back()},save(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.myAppList),this.$router.back()}).catch(()=>{})},mergeData(e,t){return t.forEach(i=>{let n=!1;for(let r of e)if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1;break}n||(i.state=!0),i.children&&this.mergeData(e,i.children)}),t},addToMyApps(e){if(this.myAppList.length!==0)for(var t=0;t<this.myAppList.length;t++)if(this.myAppList.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.myAppList.push(this.findMenu(this.apps_menus,e,!1));break}else this.myAppList.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.myAppList.length;t++)if(this.myAppList[t].meta.permissionId===e.meta.permissionId){this.myAppList.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},Sf={};var Y1=X(W1,U1,K1,!1,X1,"1cee7da5",null,null);function X1(e){for(let t in Sf)this[t]=Sf[t]}var fo=function(){return Y1.exports}(),q1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-myApp-slim"},[i("div",{staticClass:"ind-myApp-slim-content"},[i("div",{staticClass:"ind-myApp-slim-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-icon-group"},[e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"50%","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),e.icons.length!==0?i("van-icon",{staticClass:"ind-myApp-slim-toggle-icon",class:{"ind-myApp-slim-rotate-down":e.expanded},attrs:{name:"arrow"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-content-button"},[i("div",{staticClass:"ind-myApp-slim-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},G1=[];const J1={components:{appsItem:ze},props:{icons:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1}},computed:{getIcons(){return this.icons},displayedIcons(){return this.icons.slice(0,9)},showMoreIcon(){return this.icons.length>9},moreCount(){const e=this.icons.length-9;return e>99?"99":e},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}}},wf={};var Z1=X(J1,q1,G1,!1,Q1,null,null,null);function Q1(e){for(let t in wf)this[t]=wf[t]}var po=function(){return Z1.exports}(),t$=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)},e$=[];const i$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r,a;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(i=i.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"}).children);let s=i.filter(o=>o.name===this.name);this.apps_menus=s[0].children,this.title=s[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((o,l)=>{this.$set(this.tabActiveKeys,l,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},Cf={};var n$=X(i$,t$,e$,!1,r$,null,null,null);function r$(e){for(let t in Cf)this[t]=Cf[t]}var a$=function(){return n$.exports}(),s$=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)},o$=[];const l$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r,a;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(i=i.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"}).children);let s=i.filter(o=>o.name===this.name);this.apps_menus=s[0].children,this.title=s[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((o,l)=>{this.$set(this.tabActiveKeys,l,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},xf={};var c$=X(l$,s$,o$,!1,u$,null,null,null);function u$(e){for(let t in xf)this[t]=xf[t]}var h$=function(){return c$.exports}(),d$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},f$=[];const p$={components:{abovelevelTwoOld:a$,abovelevelTwoNew:h$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},$f={};var m$=X(p$,d$,f$,!1,v$,null,null,null);function v$(e){for(let t in $f)this[t]=$f[t]}var g$=function(){return m$.exports}(),y$=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)},b$=[];function mo(e){return e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),{...t,children:i.map(r=>({...r,children:void 0}))}})}const S$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[]}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0;const t=50;let i=setInterval(()=>{var r,a,s;e++;let n=this.$store.getters.getMenuTreeList||[];if(n&&n.length>0){clearInterval(i),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,n),((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((s=(a=this.$config)==null?void 0:a.systemDefaultConfig)==null?void 0:s.isMobileSeparate)!="1"&&(n=n.find(d=>{var u;return d.extendProps&&((u=JSON.parse(d.extendProps))==null?void 0:u.mainMobile)=="1"}).children);let o=n.filter(h=>h.name===this.name),l=o[0].children.map(h=>h.meta.title);this.titleList=["\u5168\u90E8",...l];const c=o[0].children.reduce((h,d)=>(h[d.meta.title]=d,h),{});this.allApps_menus={\u5168\u90E8:o[0].children,...c},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=mo(this.apps_menus),this.title=o[0].meta.title}else e>=t?(clearInterval(i),console.warn(`\u5C1D\u8BD5${t}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],e!=="\u5168\u90E8"?this.apps_menus=mo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=mo(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},kf={};var w$=X(S$,y$,b$,!1,C$,null,null,null);function C$(e){for(let t in kf)this[t]=kf[t]}var x$=function(){return w$.exports}(),$$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndMCard",{attrs:{showHeader:!1,innerPadding:"0px"}},[i("div",{staticClass:"ind-myApp-slim-new-content"},[i("div",{staticClass:"ind-myApp-slim-new-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-new-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-new-icon-group"},e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-new-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"8px","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),0),e.icons.length!==0&&!e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-forward"}}):e._e(),e.icons.length!==0&&e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-down"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-new-content-button"},[i("div",{staticClass:"ind-myApp-slim-new-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto"}},[i("van-swipe",{staticClass:"ind-myApp-slim-new-content-swipe",attrs:{"show-indicators":!0,loop:!1}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-new-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-new-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("appsItem",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},k$=[];const T$={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 i;let e=localStorage.getItem("systemDefaultConfig"),t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),""}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.rowAppCount)||4}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},created(){const e=window.innerWidth,i=[{maxWidth:375,count:5},{maxWidth:412,count:6},{maxWidth:430,count:7},{maxWidth:768,count:21},{maxWidth:820,count:23},{maxWidth:912,count:26},{maxWidth:1024,count:31},{maxWidth:1280,count:41},{maxWidth:1366,count:45},{maxWidth:1440,count:48}].find(n=>e<=n.maxWidth);this.iconscount=i?i.count:7}},Tf={};var _$=X(T$,$$,k$,!1,I$,null,null,null);function I$(e){for(let t in Tf)this[t]=Tf[t]}var E$=function(){return _$.exports}(),D$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-app-center"},[e.isHb?e._e():i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-new-app-page",staticStyle:{position:"relative"},style:{minHeight:e.isHb?"100vh":"calc(100vh - 48px)"}},[i("div",{style:{top:"0px",position:"absolute",left:"0px",width:"100%",height:"213px",zIndex:0}},[i("IndMImgLoad",{attrs:{position:"center top",size:"100% 100%",pick:"ind:appNew:bg",type:"TableData"}})],1),i("div",{staticClass:"ind-m-new-placeholder"},[i("van-search",{staticClass:"ind-m-new-placeholder-search",attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-left"},[i("Icon",{attrs:{type:"md-search"}})],1)]},proxy:!0},{key:"right-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-right",on:{click:e.onSearch}},[e._v("\u641C\u7D22")])]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"90vw",height:"50vh","background-color":"var(--ind-m-home-bg-color)"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 4)",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myappNew",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"custom-new-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"custom-new-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"custom-new-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"custom-new-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"custom-new-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-new-app-container",staticStyle:{padding:"0px 0px 150px 0px"},style:{height:e.disMyapp?"calc(100vh - 410px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("IndMCard",{key:r,attrs:{padding:"0px 10px 10px 10px",title:n.meta.title,icon:"/public/imgs/resource/card-icon.png"}},[i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},[e._l(n.children,function(a){return[i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)]})],2),e._l(n.foldChildren,function(a){return[i("div",{key:a.meta.permissionId,staticStyle:{"padding-left":"16px","margin-top":"4px","font-size":"14px","font-weight":"bold",color:"#333"}},[e._v(" "+e._s(a.meta.title)+" ")]),i("div",{key:a.meta.permissionId,style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(a.children,function(s){return i("div",{key:s.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:s,state:s.state,title:s.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]})],2)}),1)]),i("tabbar")],1)],1)},M$=[];const O$={components:{tabbar:ti,appsItem:ze,myappNew:E$},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[],level:"2",curTabl:"\u5168\u90E8"}},mounted(){var a;this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(s){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",s.message),"{}"}this.level=((a=t==null?void 0:t.systemDefaultConfig)==null?void 0:a.theLevel)||3;let i=0;const n=50;let r=setInterval(()=>{var o,l,c;i++;let s=this.$store.getters.getMenuTreeList||[];if(s&&s.length>0){clearInterval(r),console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,s),((o=this.$config)==null?void 0:o.mainType)=="singleApp"&&((c=(l=this.$config)==null?void 0:l.systemDefaultConfig)==null?void 0:c.isMobileSeparate)!="1"&&(s=s.find(f=>{var m;return f.extendProps&&((m=JSON.parse(f.extendProps))==null?void 0:m.mainMobile)=="1"}).children);let h=s.filter(p=>p.name===this.name),d=h[0].children.map(p=>p.meta.title);this.titleList=["\u5168\u90E8",...d];const u=h[0].children.reduce((p,f)=>(p[f.meta.title]=f,p),{});this.allApps_menus={\u5168\u90E8:h[0].children,...u},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.title=h[0].meta.title}else i>=n?(clearInterval(r),console.warn(`\u5C1D\u8BD5${n}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{simplifyMenuTree(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),console.log({...t,children:i.map(r=>({...r,children:void 0}))}),{...t,children:i.map(r=>({...r,children:void 0}))}})):[]},simplifyMenuTree2N(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{var s;const i=[],n=[];function r(o){var l;((l=o==null?void 0:o.children)==null?void 0:l.length)>0?n.push(o):(o.path||o.uri)&&i.push(o)}function a(o,l){var c,h;((c=o==null?void 0:o.children)==null?void 0:c.length)>0?(h=o.children)==null||h.forEach(d=>a(d,l)):(o.path||o.uri)&&l.push(o)}return this.curTabl=="\u5168\u90E8"?(s=t==null?void 0:t.children)==null||s.forEach(r):r(t),i.forEach(o=>{o.children=null}),n.forEach(o=>{let l=[];a(o,l),o.children=l}),{...t,children:i,foldChildren:n}})):[]},handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],this.curTabl=e,e!=="\u5168\u90E8"?this.apps_menus=this.simplifyMenuTree((i=this.apps_menus)==null?void 0:i.children):this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var i;let e=localStorage.getItem("systemDefaultConfig"),t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),""}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.rowAppCount)||4}}},_f={};var L$=X(O$,D$,M$,!1,A$,null,null,null);function A$(e){for(let t in _f)this[t]=_f[t]}var N$=function(){return L$.exports}(),P$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},B$=[];const R$={components:{levelTwoOld:x$,levelTwoNew:N$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},If={};var F$=X(R$,P$,B$,!1,V$,null,null,null);function V$(e){for(let t in If)this[t]=If[t]}var z$=function(){return F$.exports}(),j$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},H$=[];function Ef(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=Ef(n,t+1);r>i&&(i=r)}return i}function U$(e){let t=0;for(const i of e){const n=Ef(i);n>t&&(t=n)}return t}const K$={components:{aboveleveltwo:g$,leveltwo:z$},data(){return{level:3,name:"appsNew",apps_menus:[],isHb:!1,depth:"4"}},methods:{appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},created(){var n,r,a;this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList||[];e.length||console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC"),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(e=e.find(o=>{var l;return o.extendProps&&((l=JSON.parse(o.extendProps))==null?void 0:l.mainMobile)=="1"}).children);let t=e.filter(s=>s.name===this.name);this.apps_menus=t[0].children,this.appsMenusExtended(this.apps_menus);const i=U$(this.apps_menus);this.depth=i},computed:{currentComponent(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"{}"}if(this.level=((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.theLevel)||3,this.depth=this.depth||4,(this.level==2||this.level=="2N")&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},Df={};var W$=X(K$,j$,H$,!1,Y$,null,null,null);function Y$(e){for(let t in Df)this[t]=Df[t]}var vo=function(){return W$.exports}(),X$=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..."))])])])])])},q$=[];const G$={props:{loading:Boolean,isFullScreenLoading:{type:Boolean,default:!1},text:String},data(){return{}},methods:{loadingImageUrl(e){const t=e?"systemDefaultConfig.globalLoading":"systemDefaultConfig.localLoading",i=this.getSafeConfigValue(t);return i&&i.trim()!==""?`/user-manage-server/oss/file/get/${i}`:!1},getSafeConfigValue(e){if(!!this.$config)return e.split(".").reduce((t,i)=>t&&t[i]!==void 0?t[i]:void 0,this.$config)}}},Mf={};var J$=X(G$,X$,q$,!1,Z$,null,null,null);function Z$(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return J$.exports}(),Q$=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)},tk=[];const ek={data(){return{vconsoleChecked:!1,chiiChecked:!1,isHb:location.pathname.includes("scyxweb")}},watch:{vconsoleChecked:function(){if(this.vconsoleChecked){const e=document.createElement("script");e.src="vconsole.min.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e.onload=function(){window.vConsole=new VConsole}}this.vconsoleChecked=!0},chiiChecked:function(){if(this.chiiChecked){const e=document.createElement("script");e.src="//dev.sunquan.tech/inspect/target.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}this.chiiChecked=!0}},methods:{onClickLeft(){this.$router.back()}}},Lf={};var ik=X(ek,Q$,tk,!1,nk,null,null,null);function nk(e){for(let t in Lf)this[t]=Lf[t]}var go=function(){return ik.exports}(),rk=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)},ak=[];function sk(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 ok={name:"UploadFile",props:{accept:{type:String,required:!1,default:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,image/jpeg,image/png,image/gif,video/mp4,video/mov,application/pdf,application/zip,text/csv,text/plain,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},fileSuffix:{type:String,required:!1,default:"pdf|doc|docx|txt|xls|xlsx|zip|csv|mp4|mov|jpg|jpeg|png|gif"},multiple:{type:Boolean,default:!1},otherParam:{type:String,default:""},defaultList:{type:Array,required:!1,default:()=>[]},ossServerContext:{type:String,default:(location.pathname.includes("scyxweb")?"/scyxgateway":"")+"/ind-uc-ext-server"},ossFilePutUrl:{type:String,default:"/oss/file/put"},ossFileGetUrl:{type:String,default:"/oss/file/get/"},onSuccess:{type:Function,default(){return()=>{}}},onChangeData:{type:Function,default(){return()=>{}}},readonly:{type:Boolean,default:!1},candel:{type:Boolean,default:!0}},data(){return{isHB:!1,loading:!1,resultList:[],isshow:!1,previewVisible:!1,attachmentFile:{fileId:"",fileType:"",fileName:"",size:""},deepdefaultList:[]}},computed:{shouldShowDelete(){return this.readonly?!!this.candel:!0},downloadUrl(){return this.ossServerContext+this.ossFileGetUrl},dynamicFileTypeAlertMessage(){return`\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F ${this.fileSuffix.split("|").join("\uFF0C")} \u4E2D\u7684\u4E00\u79CD`},fileSizeLimit(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.fileSizeLimit)||500}},watch:{defaultList:{handler(e){this.resultList=e||[],this.deepdefaultList=y.default.cloneDeep(e)},immediate:!0,deep:!0}},methods:{uploadFileToServer(){let e=this;e.loading=!0;const i=this.$refs.uploadInput.files;let n=new FormData;for(let r of i)n.append("file",r);M.axios.post(e.ossServerContext+e.ossFilePutUrl,n,{payload:!0}).then(r=>{if(r.code===1){e.loading=!1;const a=r.data;a.length>=1&&a.forEach(s=>{let o={fileUrl:e.ossServerContext+e.ossFileGetUrl+s.fileId,fileId:s.fileId,fileName:s.fileName,fileType:s.fileName.substring(s.fileName.lastIndexOf(".")+1),size:s.length,showSize:sk(s.length),otherParam:e.otherParam};e.resultList.push(o)})}else e.loading=!1;e.$refs.uploadInput.value=null}).catch(()=>{e.loading=!1,e.$refs.uploadInput.value=null})},uploadFile(){this.$refs.uploadInput.click()},deleteFile(e){if(e){let t=[];this.resultList.forEach(i=>{i.fileId!==e&&t.push(i)}),this.resultList=t}},cancel(){this.resultList=this.deepdefaultList,this.$emit("onChangeData",this.resultList),this.isshow=!1},confirm(){this.$emit("onChangeData",this.resultList),this.isshow=!1},handleDownload(e){const t=navigator.userAgent;/miniProgram/i.test(t)?this.goToMiniProgramDown(e):this.h5Download(e)},async h5Download(e){var n;const t=e.fileUrl?e.fileUrl:`${this.ossServerContext}/oss/file/get/${e.fileId}`,i=M.getToken();try{const r=await fetch(t,{headers:{token:i}});if(!r.ok)throw new Error(`\u4E0B\u8F7D\u5931\u8D25: ${r.status}`);const a=await r.blob();let s="application/octet-stream";const l=((n=e==null?void 0:e.fileName)==null?void 0:n.toLowerCase()).match(/\.([a-z0-9]+)$/),c=l==null?void 0:l[1];M.MIME_TYPE[c]&&(s=M.MIME_TYPE[c]);const h=new Blob([a],{type:s}),d=window.URL.createObjectURL(h),u=document.createElement("a");u.href=d,u.download=e.fileName,u.style.display="none",u.target="_blank",document.body.appendChild(u),u.click(),document.body.removeChild(u)}catch(r){console.error("\u4E0B\u8F7D\u51FA\u9519:",r),this.$Message.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},goToMiniProgramDown(e){e.fileId?wx.miniProgram.navigateTo({url:`/pages/download/index?downloadFileId=${e.fileId}`}):console.error("\u6587\u4EF6ID\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8DF3\u8F6C")},async handleClickAttachment(e){let t=this;if(e.fileName.endsWith("psd")||e.fileName.endsWith("m4v")||e.fileName.endsWith("rar")||e.fileName.endsWith("zip"))return this.$Message.error("\u8BE5\u683C\u5F0F\u7684\u6587\u4EF6\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8"),!1;if(location.pathname.includes("scyxweb")){let i="";await M.axios.get("/user-manage-server/manage/user/getCurrentInfo").then(n=>{if(n.code===1){const r=e.fileName.endsWith(".jpg")||e.fileName.endsWith(".jpeg")||e.fileName.endsWith(".png")||e.fileName.endsWith(".gif");let a="";r?a=`${t.$config.mdPictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.mdDocDownLoadApi}${e.fileId}&fullfilename=${e.fileName}`;const s=e.fileName.endsWith(".doc")||e.fileName.endsWith(".docx")||e.fileName.endsWith(".ppt")||e.fileName.endsWith(".pptx")||e.fileName.endsWith(".xls")||e.fileName.endsWith(".xlsx")||e.fileName.endsWith(".pdf");let o="";s&&(o="&officePreviewType=pdf&tifPreviewType=jpg"),t.watermark==="0"?t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}${o}`:(i=n.data.displayName+n.data.loginName,t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}&watermarkTxt=${i}${t.$config.KKfilePrevieWatermarkStyle||""}${o}`),t.previewVisible=!0}})}else this.openPreview(e)},getPreviewUrlApi(e){var n;const t=location.protocol==="https:"?"1":"",i=M.getToken()||sessionStorage.getItem("sso_token");return M.axios.get(`${location.protocol}//${location.host}/ind-uc-ext-server/api/wps/getPreviewUrl/${e}?isWeb=${t}&previewMode=high_definition`,{headers:{Authorization:`Bearer ${i}`,"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.content)||""}})},async openPreview(e){try{const t=await this.getPreviewUrlApi(e.fileId);if(t.code!=1)throw new Error("\u83B7\u53D6\u9884\u89C8\u94FE\u63A5\u5931\u8D25");const i=t.data;this.previewVisible=!0,await this.$nextTick();const n=document.getElementById("wps-preview-container");if(!n)throw new Error("\u672A\u627E\u5230\u9884\u89C8\u6302\u8F7D\u8282\u70B9");const r=OpenSDK.config({url:i,mount:n}),a=M.getToken()||sessionStorage.getItem("sso_token");if(!a)throw new Error("\u672A\u627E\u5230\u6709\u6548 Token");r.setToken({token:a,timeout:10*60*1e3})}catch(t){console.error("\u9884\u89C8\u5931\u8D25:",t),this.$Message.error(`\u9884\u89C8\u5931\u8D25: ${t.message}`)}},closePreview(){this.previewVisible=!1},readFile(e){let t=this;if(!e.target.files||e.target.files.length===0)return this.$Message.warning({content:"\u6CA1\u6709\u9009\u62E9\u6587\u4EF6\u6216\u6587\u4EF6\u5217\u8868\u4E3A\u7A7A"}),!1;const i=e.target.files[0],n=this.fileSuffix.split("|"),r="\\.("+n.join("|")+")$";if(!new RegExp(r,"i").test(i.name))return this.$Message.warning({content:"\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F pdf\uFF0Cdoc\uFF0Cdocx\uFF0Ctxt\uFF0Cxls\uFF0Cxlsx\uFF0Czip\uFF0Ccsv\uFF0Cmp4\uFF0Cmov\uFF0Cjpg\uFF0Cjpeg\uFF0Cpng\uFF0Cgif \u4E2D\u7684\u4E00\u79CD"}),t.$refs.uploadInput.value=null,!1;if(i.size/(1024*1024)>t.fileSizeLimit)return this.$Message.warning({content:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${t.fileSizeLimit}MB`}),t.$refs.uploadInput.value=null,!1;let l=i.name;l.indexOf("/")>0&&(l=l.substring(l.lastIndexOf("/")+1)),l.indexOf("\\")>0&&(l=l.substring(l.lastIndexOf("\\")+1));const c=l.lastIndexOf("."),h=c>-1?l.substring(c+1):"";t.attachmentFile={fileName:l,fileType:h,size:i.size},t.uploadFileToServer()}},mounted(){location.pathname.includes("scyxweb")?this.isHB=!0:this.isHB=!1}},Af={};var lk=X(ok,rk,ak,!1,ck,null,null,null);function ck(e){for(let t in Af)this[t]=Af[t]}var Nf=function(){return lk.exports}(),uk=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)])])])},hk=[];const dk={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"}}},Pf={};var fk=X(dk,uk,hk,!1,pk,null,null,null);function pk(e){for(let t in Pf)this[t]=Pf[t]}var Bf=function(){return fk.exports}(),mk=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)])])},vk=[];const gk={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}}},Rf={};var yk=X(gk,mk,vk,!1,bk,null,null,null);function bk(e){for(let t in Rf)this[t]=Rf[t]}var Ff=function(){return yk.exports}(),Sk=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)])},wk=[];const Ck={props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},pick:{type:String,default:"home-bg"},type:{type:String,default:"TableData"},size:{type:String,default:"cover"},position:{type:String,default:"center"},repeat:{type:String,default:"no-repeat"},ossServerContext:{type:String,default:"/user-manage-server"}},computed:{getIcon(){var r;const e=`icon${this.type}`,t=localStorage.getItem("systemDefaultConfig");if(!t||typeof t!="string")return"";let i;try{i=JSON.parse(t)}catch(a){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",a.message),""}const n=(r=i==null?void 0:i.systemDefaultConfig)==null?void 0:r[e];try{if(!Array.isArray(n))return console.error("\u914D\u7F6E\u4E0D\u662F\u6570\u7EC4:",n),{display:"none"};if(n.length===0)return console.error("\u6570\u7EC4\u4E3A\u7A7A"),{display:"none"};const a=n.find(d=>(d==null?void 0:d.positionId)===this.pick);if(!a)return console.error(`\u672A\u627E\u5230\u5339\u914D\u7684\u56FE\u6807\u914D\u7F6E\u3002pick: ${this.pick}`),{display:"none"};const s=a.iconFieldId||a.iconFielId;if(!s)return console.error("iconFieldId/iconFielId \u4E3A\u7A7A\uFF0C\u53EF\u7528\u5B57\u6BB5:",Object.keys(a)),{display:"none"};let o;try{o=JSON.parse(s)}catch(d){return console.error("JSON \u89E3\u6790\u5931\u8D25:",d,"\u539F\u59CB\u503C:",s),{display:"none"}}if(!Array.isArray(o)||o.length===0)return console.error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u975E\u7A7A\u6570\u7EC4:",o),{display:"none"};const l=o[0],c=l==null?void 0:l.fileId;return c?{backgroundImage:`url(${this.ossServerContext}/oss/file/get/${c})`,backgroundSize:this.size,backgroundRepeat:this.repeat,backgroundPosition:this.position,width:"100%",height:"100%"}:(console.error("fileId \u4E3A\u7A7A\uFF0C\u89E3\u6790\u7ED3\u679C:",l),{display:"none"})}catch(a){return console.error("getIcon \u6267\u884C\u51FA\u9519:",a),{display:"none"}}}},methods:{}},Vf={};var xk=X(Ck,Sk,wk,!1,$k,null,null,null);function $k(e){for(let t in Vf)this[t]=Vf[t]}var zf=function(){return xk.exports}(),yo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:ta,DatePicker:Ko,Form:sl,LoadMore:ll,User1:vl,BasicLayout:yl,EmptyLayout:$i,DetailView:xl,PageView:kl,PopupView:_l,QueryView:El,Login:js,Search:Ad,SelectPanel:Bd,InputSelect:Fd,SelectBtn:zd,User:Hs,Apps:ho,AppsEdit:fo,MyApps:Us,AppsNew:vo,appItem:ze,tabbar:ti,LoadingPanel:Of,Setting:go,UploadFile:Nf,Card:Bf,CardItem:Ff,ImgLoad:zf},Symbol.toStringTag,{value:"Module"})),jf={install(e,{config:t}={}){e.prototype.$config=y.default.merge({},e.prototype.$config||{},t||M.config)}},Hf={install(e,{router:t,store:i}){e.prototype.$backToMenu=function(){if(console.log("trigger $backToMenu"),this.$config.showMenus){const n=i.state.app.breadCrumbList;i.commit("closeTag",{$router:t,route:y.default.cloneDeep(y.default.find(i.state.app.tagNavList,{name:n[n.length-1].name})||{})}),t.push({name:n[n.length-2].name}).catch(()=>{})}else t.go(-1)}}},kk=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:jf,IndRouterPlugin:Hf},Symbol.toStringTag,{value:"Module"}));const Uf=function(e,t,i){const n=i.context;e.style.display="none";const r=t.value;(n.$store.state.app.permission[r]||r==="all")&&(e.style.display="")},Kf={bind:Uf,update:Uf};var bo=Object.freeze(Object.defineProperty({__proto__:null,permission:Kf},Symbol.toStringTag,{value:"Module"}));let Wf=location.pathname.includes("scyxweb");const Yf={name:Te.rootRouteName,path:"/",...Wf?{redirect:"/home"}:{},component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Te.homeRouteName,path:"home",...Wf?{}:{redirect:`/apps?t=${new Date().getTime()}`},meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},Tk={name:Te.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:js},_k={name:"user",path:"/user",component:Hs,meta:{hideInMenu:!0,notCache:!0}},Ik={name:"setting",path:"/setting",component:go,meta:{hideInMenu:!0,notCache:!0}},Ek={name:"apps",path:"/apps",component:ho,meta:{hideInMenu:!0,notCache:!0}},Dk={name:"appsNew",path:"/appsNew",component:vo,meta:{hideInMenu:!0,notCache:!0}},Mk={name:"appsEdit",path:"/appsEdit",component:fo,meta:{hideInMenu:!0,notCache:!0}},Ok={path:"/404",meta:{hideInMenu:!0},component:Ui};function Lk({homeComponent:e,rootChildren:t}={}){const i=y.default.cloneDeep(Yf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[Tk]:[];return[i,...n,_k,Ik,Ek,Mk,Ok,Dk]}function Ak({rootChildren:e}={}){const t=y.default.cloneDeep(Yf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const Nk={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},zr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Xf(e){return[zr.DIRECTORY,zr.MENU].includes(e)}function qf(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 Pk(e){const t=new Map;return e&&e.forEach(i=>{const{pid:n}=i;t.has(n)||t.set(n,[]),t.get(n).push(i)}),t}function So({list:e,childrenMap:t,menuTree:i,pageNode:n,parentId:r,crumbs:a,root:s}){if(!e)return;t||(t=Pk(e)),console.log("childrenMap now is",t);let o=M.getSessionStorage("appInfo");(t.get(r)||[]).forEach(c=>{var L;const{permissionId:h,label:d,appId:u,pid:p,icon:f,type:m,uri:v,permissionValue:C,extendProps:x}=c;if(u!=o.appId)return;const T=C;let _=!1,D=!1;if(c&&c.extendProps)try{_=((L=JSON.parse(c.extendProps))==null?void 0:L.hideInIbp)==="1"}catch{_=!1}try{if(c&&c.extension){const H=JSON.parse(c.extension);if(H.extendProps){const B=typeof H.extendProps=="string"?JSON.parse(H.extendProps):H.extendProps;(B==null?void 0:B.hideInMenu)==1&&(D=!0)}}}catch{D=!1}if(!(_||D)){if(Xf(m)){let H={type:m,name:T,pid:p,path:Gf(v),uri:v,component:T,meta:{appId:u,permissionId:h,title:d,icon:f,crumbs:[...a],activeName:T},children:[],extendProps:x};H.meta.crumbs.push({icon:f,name:T,title:d,type:m}),zr.DIRECTORY===m&&(H.component="EmptyLayout"),So({list:e,childrenMap:t,menuTree:H.children,pageNode:n,parentId:h,crumbs:H.meta.crumbs,root:!1}),H.children.length||delete H.children,i.push(H)}if(zr.PAGE===m){let H={type:m,name:T,pid:p,path:Gf(v),uri:v,component:T,meta:{appId:u,permissionId:h,title:d,hideInMenu:!0,notCache:!0,crumbs:[...a],type:m}};H.meta.crumbs.push({icon:f,name:T,title:d,type:m}),n.children.push(H)}}})}function Gf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function Jf(e=[]){e=e.filter(i=>Xf(i.type));const t=[];return So({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function Bk(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return So({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),wo(t)}function wo(e=[]){for(let t of e)if(t.component){const i=Nk[t.component];i?t.component=i.component:t.path?window.loadComponentHandler&&(t.component=window.loadComponentHandler(t.path,t.name)||Ui):(console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${t.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`),t.component=Ui),t.children&&t.children.length>0&&wo(t.children)}return e}var Co={exports:{}},Zf=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)}},Rk=Zf,Si=Object.prototype.toString;function xo(e){return Si.call(e)==="[object Array]"}function $o(e){return typeof e=="undefined"}function Fk(e){return e!==null&&!$o(e)&&e.constructor!==null&&!$o(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Vk(e){return Si.call(e)==="[object ArrayBuffer]"}function zk(e){return typeof FormData!="undefined"&&e instanceof FormData}function jk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Hk(e){return typeof e=="string"}function Uk(e){return typeof e=="number"}function Qf(e){return e!==null&&typeof e=="object"}function jr(e){if(Si.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Kk(e){return Si.call(e)==="[object Date]"}function Wk(e){return Si.call(e)==="[object File]"}function Yk(e){return Si.call(e)==="[object Blob]"}function tp(e){return Si.call(e)==="[object Function]"}function Xk(e){return Qf(e)&&tp(e.pipe)}function qk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Gk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Jk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function ko(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),xo(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function To(){var e={};function t(r,a){jr(e[a])&&jr(r)?e[a]=To(e[a],r):jr(r)?e[a]=To({},r):xo(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)ko(arguments[i],t);return e}function Zk(e,t,i){return ko(t,function(r,a){i&&typeof r=="function"?e[a]=Rk(r,i):e[a]=r}),e}function Qk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:xo,isArrayBuffer:Vk,isBuffer:Fk,isFormData:zk,isArrayBufferView:jk,isString:Hk,isNumber:Uk,isObject:Qf,isPlainObject:jr,isUndefined:$o,isDate:Kk,isFile:Wk,isBlob:Yk,isFunction:tp,isStream:Xk,isURLSearchParams:qk,isStandardBrowserEnv:Jk,forEach:ko,merge:To,extend:Zk,trim:Gk,stripBOM:Qk},zi=Zt;function ep(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ip=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(ep(c)+"="+ep(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},tT=Zt;function Hr(){this.handlers=[]}Hr.prototype.use=function(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},Hr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Hr.prototype.forEach=function(t){tT.forEach(this.handlers,function(n){n!==null&&t(n)})};var eT=Hr,iT=Zt,nT=function(t,i){iT.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},np=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},rT=np,rp=function(t,i,n,r,a){var s=new Error(t);return rT(s,i,n,r,a)},aT=rp,sT=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(aT("Request failed with status code "+n.status,n.config,null,n.request,n))},Ur=Zt,oT=Ur.isStandardBrowserEnv()?function(){return{write:function(i,n,r,a,s,o){var l=[];l.push(i+"="+encodeURIComponent(n)),Ur.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Ur.isString(a)&&l.push("path="+a),Ur.isString(s)&&l.push("domain="+s),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(i){var n=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),lT=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},cT=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},uT=lT,hT=cT,dT=function(t,i){return t&&!uT(i)?hT(t,i):i},_o=Zt,fT=["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"],pT=function(t){var i={},n,r,a;return t&&_o.forEach(t.split(`
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(S){return p(S)||f(S)||h(S)||m()}var C=a("a352"),x=a.n(C),T=a("c649");function _(S,b,w){return w===void 0||(S=S||{},S[b]=w),S}function D(S,b){return S.map(function(w){return w.elm}).indexOf(b)}function L(S,b,w,F){if(!S)return[];var W=S.map(function(ct){return ct.elm}),q=b.length-F,tt=v(b).map(function(ct,Tt){return Tt>=q?W.length:W.indexOf(ct)});return w?tt.filter(function(ct){return ct!==-1}):tt}function H(S,b){var w=this;this.$nextTick(function(){return w.$emit(S.toLowerCase(),b)})}function B(S){var b=this;return function(w){b.realList!==null&&b["onDrag"+S](w),H.call(b,S,w)}}function z(S){return["transition-group","TransitionGroup"].includes(S)}function R(S){if(!S||S.length!==1)return!1;var b=u(S,1),w=b[0].componentOptions;return w?z(w.tag):!1}function A(S,b,w){return S[w]||(b[w]?b[w]():void 0)}function it(S,b,w){var F=0,W=0,q=A(b,w,"header");q&&(F=q.length,S=S?[].concat(v(q),v(S)):v(q));var tt=A(b,w,"footer");return tt&&(W=tt.length,S=S?[].concat(v(S),v(tt)):v(tt)),{children:S,headerOffset:F,footerOffset:W}}function ot(S,b){var w=null,F=function($t,Ae){w=_(w,$t,Ae)},W=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",W),!b)return w;var q=b.on,tt=b.props,ct=b.attrs;return F("on",q),F("props",tt),Object.assign(w.attrs,ct),w}var V=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],g=["Move"].concat(V,k).map(function(S){return"on"+S}),I=null,E={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(b){return b}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},j={name:"draggable",inheritAttrs:!1,props:E,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(b){var w=this.$slots.default;this.transitionMode=R(w);var F=it(w,this.$slots,this.$scopedSlots),W=F.children,q=F.headerOffset,tt=F.footerOffset;this.headerOffset=q,this.footerOffset=tt;var ct=ot(this.$attrs,this.componentData);return b(this.getTag(),ct,W)},created:function(){this.list!==null&&this.value!==null&&T.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&T.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&&T.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var b=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var w={};V.forEach(function(q){w["on"+q]=B.call(b,q)}),k.forEach(function(q){w["on"+q]=H.bind(b,q)});var F=Object.keys(this.$attrs).reduce(function(q,tt){return q[Object(T.a)(tt)]=b.$attrs[tt],q},{}),W=Object.assign({},this.options,F,w,{onMove:function(tt,ct){return b.onDragMove(tt,ct)}});!("draggable"in W)&&(W.draggable=">*"),this._sortable=new x.a(this.rootContainer,W),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(b){this.updateOptions(b)},deep:!0},$attrs:{handler:function(b){this.updateOptions(b)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var b=this._vnode.fnOptions;return b&&b.functional},getTag:function(){return this.tag||this.element},updateOptions:function(b){for(var w in b){var F=Object(T.a)(w);g.indexOf(F)===-1&&this._sortable.option(F,b[w])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var b=this.$slots.default;return this.transitionMode?b[0].child.$slots.default:b},computeIndexes:function(){var b=this;this.$nextTick(function(){b.visibleIndexes=L(b.getChildrenNodes(),b.rootContainer.children,b.transitionMode,b.footerOffset)})},getUnderlyingVm:function(b){var w=D(this.getChildrenNodes()||[],b);if(w===-1)return null;var F=this.realList[w];return{index:w,element:F}},getUnderlyingPotencialDraggableComponent:function(b){var w=b.__vue__;return!w||!w.$options||!z(w.$options._componentTag)?!("realList"in w)&&w.$children.length===1&&"realList"in w.$children[0]?w.$children[0]:w:w.$parent},emitChanges:function(b){var w=this;this.$nextTick(function(){w.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var w=v(this.value);b(w),this.$emit("input",w)},spliceList:function(){var b=arguments,w=function(W){return W.splice.apply(W,v(b))};this.alterList(w)},updatePosition:function(b,w){var F=function(q){return q.splice(w,0,q.splice(b,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(b){var w=b.to,F=b.related,W=this.getUnderlyingPotencialDraggableComponent(w);if(!W)return{component:W};var q=W.realList,tt={list:q,component:W};if(w!==F&&q&&W.getUnderlyingVm){var ct=W.getUnderlyingVm(F);if(ct)return Object.assign(ct,tt)}return tt},getVmIndex:function(b){var w=this.visibleIndexes,F=w.length;return b>F-1?F:w[b]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(b){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var w=this.getChildrenNodes();w[b].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(b){this.context=this.getUnderlyingVm(b.item),b.item._underlying_vm_=this.clone(this.context.element),I=b.item},onDragAdd:function(b){var w=b.item._underlying_vm_;if(w!==void 0){Object(T.d)(b.item);var F=this.getVmIndex(b.newIndex);this.spliceList(F,0,w),this.computeIndexes();var W={element:w,newIndex:F};this.emitChanges({added:W})}},onDragRemove:function(b){if(Object(T.c)(this.rootContainer,b.item,b.oldIndex),b.pullMode==="clone"){Object(T.d)(b.clone);return}var w=this.context.index;this.spliceList(w,1);var F={element:this.context.element,oldIndex:w};this.resetTransitionData(w),this.emitChanges({removed:F})},onDragUpdate:function(b){Object(T.d)(b.item),Object(T.c)(b.from,b.item,b.oldIndex);var w=this.context.index,F=this.getVmIndex(b.newIndex);this.updatePosition(w,F);var W={element:this.context.element,oldIndex:w,newIndex:F};this.emitChanges({moved:W})},updateProperty:function(b,w){b.hasOwnProperty(w)&&(b[w]+=this.headerOffset)},computeFutureIndex:function(b,w){if(!b.element)return 0;var F=v(w.to.children).filter(function(ct){return ct.style.display!=="none"}),W=F.indexOf(w.related),q=b.component.getVmIndex(W),tt=F.indexOf(I)!==-1;return tt||!w.willInsertAfter?q:q+1},onDragMove:function(b,w){var F=this.move;if(!F||!this.realList)return!0;var W=this.getRelatedContextFromMoveEvent(b),q=this.context,tt=this.computeFutureIndex(W,b);Object.assign(q,{futureIndex:tt});var ct=Object.assign({},b,{relatedContext:W,draggedContext:q});return F(ct,w)},onDragEnd:function(){this.computeIndexes(),I=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",j);var U=j;r.default=U}}).default})})(Gd);var R1=Up(Gd.exports),F1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"height100"},[i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"app-page"},[i("van-sticky",{staticClass:"myapp-sticky",attrs:{"offset-top":48}},[i("div",{ref:"myapp",staticClass:"myapp",style:{width:"-webkit-fill-available"}},[i("div",{staticClass:"ind-panel"},[i("div",[i("div",{staticClass:"ind-panel-title"},[e._v(" \u6211\u7684\u5E94\u7528 "),i("van-button",{staticClass:"edit-btn",attrs:{size:"small",type:"info",text:this.editButtonName},on:{click:e.toggleEdit}})],1)]),i("draggable",{staticClass:"wrapper",attrs:{options:{disabled:e.disableDraggable}},model:{value:e.my_apps,callback:function(n){e.my_apps=n},expression:"my_apps"}},[i("transition-group",{staticClass:"my-app-list",staticStyle:{display:"flex","flex-wrap":"wrap"}},e._l(e.my_apps,function(n,r){return i("apps-item",{key:r,staticClass:"item",staticStyle:{width:"25%",padding:"16px 8px","box-sizing":"border-box"},attrs:{item:n,state:n.state,editStatus:e.currentEditStatus=="on"?"minus":"off"},on:{touchend:e.rmFromMyAppsClick}})}),1)],1)],1)])]),i("van-tabs",{attrs:{color:"#488aff",scrollspy:"",sticky:"","offset-top":e.offsetTop},model:{value:e.active,callback:function(n){e.active=n},expression:"active"}},e._l(e.apps_menus,function(n,r){return i("van-tab",{key:"tab"+r,staticClass:"ind-panel",attrs:{title:n.meta.title}},[i("div",{staticClass:"ind-panel-title"},[e._v(e._s(n.meta.title))]),i("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":4}},e._l(n.children,function(a){return i("van-grid-item",{key:a.meta.permissionId,staticClass:"menu"},[i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:e.currentEditStatus=="on"?"plus":"off"},on:{touchend:e.addToMyAppsClick}})],1)}),1)],1)}),1),i("tabbar")],1)],1)},V1=[];const z1={components:{tabbar:ti,MyApps:Us,appsItem:ze,Draggable:R1},name:"IndMApps",data(){return{active:0,name:"apps",apps_menus:[],my_apps:[],title:"",currentEditStatus:"off",userAppTip:"\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",editButtonName:"\u7F16\u8F91",editClass:"",rmFromMyAppsClick:this.routeTo,addToMyAppsClick:this.routeTo,offsetTop:"246px",maxApps:8}},watch:{currentEditStatus(e){switch(e){case"on":{this.userAppTip="\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F",this.editButtonName="\u5B8C\u6210",this.editClass="editing",this.rmFromMyAppsClick=this.rmFromMyApps,this.addToMyAppsClick=this.addToMyApps,this.disableDraggable=!1;break}case"off":{this.userAppTip="\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",this.editButtonName="\u7F16\u8F91",this.editClass="",this.rmFromMyAppsClick=this.routeTo,this.addToMyAppsClick=this.routeTo,this.saveMyApps(),this.disableDraggable=!0;break}}},my_apps(){setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48},200)}},updated(){this.$store.commit("setMyAppsList",this.my_apps)},mounted(){var i,n,r;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&((r=(n=this.$config)==null?void 0:n.systemDefaultConfig)==null?void 0:r.isMobileSeparate)!="1"&&(e=e.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let t=e.filter(a=>a.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.processState(this.my_apps,t),console.log(this.apps_menus),setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48+10},100)},methods:{routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},toggleEdit(){switch(this.currentEditStatus){case"on":{this.currentEditStatus="off";break}case"off":{this.currentEditStatus="on";break}}},saveMyApps(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.my_apps)}).catch(()=>{})},processState(e,t){return t.forEach(i=>{let n=!1;for(let r of e){if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1,r.meta.icon=i.meta.icon;break}r.state=!0}n||(i.state=!0),i.children&&this.processState(e,i.children)}),t},addToMyApps(e){if(this.my_apps.length==this.maxApps){wt("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},bf={};var j1=X(z1,F1,V1,!1,H1,null,null,null);function H1(e){for(let t in bf)this[t]=bf[t]}var ho=function(){return j1.exports}(),U1=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)},K1=[],v_="";const W1={name:"IndMAppsEdit",data(){return{myAppList:[],active:0,name:"apps",apps_menus:[],title:"\u5E94\u7528\u7BA1\u7406"}},mounted(){this.myAppList=this.$store.getters.getMyAppsList;let t=this.$store.getters.getMenuTreeList.filter(i=>i.name===this.name)[0].children;this.title=t[0].meta.title,this.mergeData(this.myAppList,t),this.apps_menus=t,console.log(t)},methods:{back(){this.$router.back()},save(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.myAppList),this.$router.back()}).catch(()=>{})},mergeData(e,t){return t.forEach(i=>{let n=!1;for(let r of e)if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1;break}n||(i.state=!0),i.children&&this.mergeData(e,i.children)}),t},addToMyApps(e){if(this.myAppList.length!==0)for(var t=0;t<this.myAppList.length;t++)if(this.myAppList.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.myAppList.push(this.findMenu(this.apps_menus,e,!1));break}else this.myAppList.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.myAppList.length;t++)if(this.myAppList[t].meta.permissionId===e.meta.permissionId){this.myAppList.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},Sf={};var Y1=X(W1,U1,K1,!1,X1,"1cee7da5",null,null);function X1(e){for(let t in Sf)this[t]=Sf[t]}var fo=function(){return Y1.exports}(),q1=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-myApp-slim"},[i("div",{staticClass:"ind-myApp-slim-content"},[i("div",{staticClass:"ind-myApp-slim-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-icon-group"},[e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"50%","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),e.icons.length!==0?i("van-icon",{staticClass:"ind-myApp-slim-toggle-icon",class:{"ind-myApp-slim-rotate-down":e.expanded},attrs:{name:"arrow"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-content-button"},[i("div",{staticClass:"ind-myApp-slim-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},G1=[];const J1={components:{appsItem:ze},props:{icons:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1}},computed:{getIcons(){return this.icons},displayedIcons(){return this.icons.slice(0,9)},showMoreIcon(){return this.icons.length>9},moreCount(){const e=this.icons.length-9;return e>99?"99":e},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}}},wf={};var Z1=X(J1,q1,G1,!1,Q1,null,null,null);function Q1(e){for(let t in wf)this[t]=wf[t]}var po=function(){return Z1.exports}(),t$=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)},e$=[];const i$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r,a;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(i=i.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"}).children);let s=i.filter(o=>o.name===this.name);this.apps_menus=s[0].children,this.title=s[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((o,l)=>{this.$set(this.tabActiveKeys,l,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},Cf={};var n$=X(i$,t$,e$,!1,r$,null,null,null);function r$(e){for(let t in Cf)this[t]=Cf[t]}var a$=function(){return n$.exports}(),s$=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)},o$=[];const l$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n,r,a;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(i=i.find(l=>{var c;return l.extendProps&&((c=JSON.parse(l.extendProps))==null?void 0:c.mainMobile)=="1"}).children);let s=i.filter(o=>o.name===this.name);this.apps_menus=s[0].children,this.title=s[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((o,l)=>{this.$set(this.tabActiveKeys,l,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{getTreeTotalDepth(e){if(!e)return 0;if(!e.children||e.children.length===0)return 1;let t=0;for(const i of e.children){const n=this.getTreeTotalDepth(i);t=Math.max(t,n)}return t+1},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp},initScrollHandler(){const e=this.getScrollContainer();e&&e.addEventListener("scroll",this.handleContainerScroll)},removeScrollHandler(){const e=this.getScrollContainer();e&&e.removeEventListener("scroll",this.handleContainerScroll)},getScrollContainer(){return Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer},cacheSectionPositions(){this.$nextTick(()=>{const e=this.getScrollContainer();if(!e)return;const t=Array.from(e.querySelectorAll(".ind-m-menu-section"));this.sectionPositions=t.map(i=>{const n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return{id:i.id,top:n.top-r.top+e.scrollTop,bottom:n.bottom-r.top+e.scrollTop}})})},setupResizeObserver(){const e=this.getScrollContainer();!e||(this.resizeObserver=new ResizeObserver(()=>{this.cacheSectionPositions()}),this.resizeObserver.observe(e))},handleContainerScroll(){this.isManualScroll||(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout(()=>{this.updateActiveSection()},100))},updateActiveSection(){const e=this.getScrollContainer();if(!e||this.sectionPositions.length===0)return;const t=e.scrollTop,i=e.clientHeight,n=t+i;if(Math.abs(e.scrollHeight-n)<5){this.activeKey=this.sectionPositions.length-1,this.tabActiveKeys[this.active]=this.activeKey;return}const a=t+60;let s=0,o=1/0;this.sectionPositions.forEach((l,c)=>{const h=Math.abs(l.top-a);h<o&&(o=h,s=c)}),this.activeKey!==s&&(this.activeKey=s,this.tabActiveKeys[this.active]=s)},handleSidebarClick(e){this.activeKey!==e&&(this.isManualScroll=!0,this.activeKey=e,this.tabActiveKeys[this.active]=e,this.$nextTick(()=>{const t=this.getScrollContainer(),i=t.querySelector(`#section-${this.active}-${e}`);if(t&&i){const n=t.getBoundingClientRect(),a=i.getBoundingClientRect().top-n.top+t.scrollTop,s=10;t.scrollTo({top:a-s,behavior:"smooth"})}setTimeout(()=>{this.isManualScroll=!1},500)}))},handleTabClick(e){this.active!==e&&(this.active=e,this.$emit("tab-click",e),this.scrollTabIntoView(e))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i}}},xf={};var c$=X(l$,s$,o$,!1,u$,null,null,null);function u$(e){for(let t in xf)this[t]=xf[t]}var h$=function(){return c$.exports}(),d$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("abovelevelTwoOld"):i("abovelevelTwoNew")},f$=[];const p$={components:{abovelevelTwoOld:a$,abovelevelTwoNew:h$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},$f={};var m$=X(p$,d$,f$,!1,v$,null,null,null);function v$(e){for(let t in $f)this[t]=$f[t]}var g$=function(){return m$.exports}(),y$=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)},b$=[];function mo(e){return e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),{...t,children:i.map(r=>({...r,children:void 0}))}})}const S$={components:{tabbar:ti,appsItem:ze,myapp:po},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[]}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0;const t=50;let i=setInterval(()=>{var r,a,s;e++;let n=this.$store.getters.getMenuTreeList||[];if(n&&n.length>0){clearInterval(i),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,n),((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&((s=(a=this.$config)==null?void 0:a.systemDefaultConfig)==null?void 0:s.isMobileSeparate)!="1"&&(n=n.find(d=>{var u;return d.extendProps&&((u=JSON.parse(d.extendProps))==null?void 0:u.mainMobile)=="1"}).children);let o=n.filter(h=>h.name===this.name),l=o[0].children.map(h=>h.meta.title);this.titleList=["\u5168\u90E8",...l];const c=o[0].children.reduce((h,d)=>(h[d.meta.title]=d,h),{});this.allApps_menus={\u5168\u90E8:o[0].children,...c},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=mo(this.apps_menus),this.title=o[0].meta.title}else e>=t?(clearInterval(i),console.warn(`\u5C1D\u8BD5${t}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],e!=="\u5168\u90E8"?this.apps_menus=mo(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=mo(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},kf={};var w$=X(S$,y$,b$,!1,C$,null,null,null);function C$(e){for(let t in kf)this[t]=kf[t]}var x$=function(){return w$.exports}(),$$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("IndMCard",{attrs:{showHeader:!1,innerPadding:"0px"}},[i("div",{staticClass:"ind-myApp-slim-new-content"},[i("div",{staticClass:"ind-myApp-slim-new-content-title"},[e._v("\u6211\u7684\u5E94\u7528")]),i("div",{staticClass:"ind-myApp-slim-new-content-center",on:{click:e.open}},[e.expanded?e._e():i("div",{staticClass:"ind-myApp-slim-new-icon-group"},e._l(e.displayedIcons,function(n,r){return i("div",{key:r,staticClass:"ind-myApp-slim-new-icon"},[i("img",{staticStyle:{height:"100%",width:"100%","border-radius":"8px","background-color":"#fff"},attrs:{src:e.getImg(n.meta.icon,n)}})])}),0),e.icons.length!==0&&!e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-forward"}}):e._e(),e.icons.length!==0&&e.expanded?i("Icon",{staticClass:"ind-myApp-slim-new-toggle-icon",attrs:{type:"ios-arrow-down"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-new-content-button"},[i("div",{staticClass:"ind-myApp-slim-new-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto"}},[i("van-swipe",{staticClass:"ind-myApp-slim-new-content-swipe",attrs:{"show-indicators":!0,loop:!1}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-new-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-new-content-content-item",style:{width:"calc(100% / "+e.rowAppCount+")"}},[i("appsItem",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},k$=[];const T$={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 i;let e=localStorage.getItem("systemDefaultConfig"),t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),""}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.rowAppCount)||4}},methods:{getImg(e,t){return Xi({permission:t==null?void 0:t.name,meta:{icon:e},config:this.$config})},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},created(){const e=window.innerWidth,i=[{maxWidth:375,count:5},{maxWidth:412,count:6},{maxWidth:430,count:7},{maxWidth:768,count:21},{maxWidth:820,count:23},{maxWidth:912,count:26},{maxWidth:1024,count:31},{maxWidth:1280,count:41},{maxWidth:1366,count:45},{maxWidth:1440,count:48}].find(n=>e<=n.maxWidth);this.iconscount=i?i.count:7}},Tf={};var _$=X(T$,$$,k$,!1,I$,null,null,null);function I$(e){for(let t in Tf)this[t]=Tf[t]}var E$=function(){return _$.exports}(),D$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ind-m-new-app-center"},[e.isHb?e._e():i("van-sticky",[i("van-nav-bar",{attrs:{placeholder:!0,"safe-area-inset-top":!0,title:e.title}})],1),i("div",{staticClass:"ind-m-new-app-page",staticStyle:{position:"relative"},style:{minHeight:e.isHb?"100vh":"calc(100vh - 48px)"}},[i("div",{style:{top:"0px",position:"absolute",left:"0px",width:"100%",height:"213px",zIndex:0}},[i("IndMImgLoad",{attrs:{position:"center top",size:"100% 100%",pick:"ind:appNew:bg",type:"TableData"}})],1),i("div",{staticClass:"ind-m-new-placeholder"},[i("van-search",{staticClass:"ind-m-new-placeholder-search",attrs:{placeholder:"\u641C\u7D22\u5E94\u7528"},on:{search:e.onSearch,clear:e.onClear},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-left"},[i("Icon",{attrs:{type:"md-search"}})],1)]},proxy:!0},{key:"right-icon",fn:function(){return[i("div",{staticClass:"ind-m-new-placeholder-search-right",on:{click:e.onSearch}},[e._v("\u641C\u7D22")])]},proxy:!0}]),model:{value:e.searchValue,callback:function(n){e.searchValue=n},expression:"searchValue"}})],1),i("van-popup",{staticStyle:{width:"90vw",height:"50vh","background-color":"var(--ind-m-home-bg-color)"},attrs:{round:!0},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("div",{style:{display:"flex",flexWrap:"wrap"}},e._l(e.searchApp,function(n,r){return i("div",{key:r,style:{width:"calc(100% / 4)",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("apps-item",{attrs:{item:n,state:n.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]),i("myappNew",{attrs:{icons:e.myAppList,expanded:e.disMyapp,list:e.paginatedApps},on:{edit:e.edit,open:e.open}}),i("div",[i("div",{staticClass:"custom-new-tabs-header-wrapper"},[i("div",{ref:"tabsHeader",staticClass:"custom-new-tabs-header"},e._l(e.titleList,function(n,r){return i("div",{key:"tab"+r,staticClass:"custom-new-tab-item",class:{active:e.active===r},on:{click:function(a){return e.handleTabClick(n,r)}}},[i("div",{staticClass:"custom-new-tab-item-top",class:{active:e.active===r}},[e._v(" "+e._s(n)+" ")]),i("div",{staticClass:"custom-new-tab-item-bottom",class:{active:e.active===r}})])}),0)]),i("div",{staticClass:"ind-m-new-app-container",staticStyle:{padding:"0px 0px 150px 0px"},style:{height:e.disMyapp?"calc(100vh - 410px)":"calc(100vh - 270px)"}},e._l(e.apps_menus,function(n,r){return i("IndMCard",{key:r,attrs:{padding:"0px 10px 10px 10px",title:n.meta.title,icon:"/public/imgs/resource/card-icon.png"}},[i("div",{style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},[e._l(n.children,function(a){return[i("div",{key:a.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)]})],2),e._l(n.foldChildren,function(a){return[i("div",{key:a.meta.permissionId,staticStyle:{"padding-left":"16px","margin-top":"4px","font-size":"14px","font-weight":"bold",color:"#333"}},[e._v(" "+e._s(a.meta.title)+" ")]),i("div",{key:a.meta.permissionId,style:{display:"flex",flexWrap:"wrap"},attrs:{"column-num":4,border:!1}},e._l(a.children,function(s){return i("div",{key:s.meta.permissionId,style:{width:"calc(100% / "+e.rowAppCount+")",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},[i("appsItem",{attrs:{item:s,state:s.state,title:s.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)]})],2)}),1)]),i("tabbar")],1)],1)},M$=[];const O$={components:{tabbar:ti,appsItem:ze,myappNew:E$},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[],level:"2",curTabl:"\u5168\u90E8"}},mounted(){var a;this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(s){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",s.message),"{}"}this.level=((a=t==null?void 0:t.systemDefaultConfig)==null?void 0:a.theLevel)||3;let i=0;const n=50;let r=setInterval(()=>{var o,l,c;i++;let s=this.$store.getters.getMenuTreeList||[];if(s&&s.length>0){clearInterval(r),console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,s),((o=this.$config)==null?void 0:o.mainType)=="singleApp"&&((c=(l=this.$config)==null?void 0:l.systemDefaultConfig)==null?void 0:c.isMobileSeparate)!="1"&&(s=s.find(f=>{var m;return f.extendProps&&((m=JSON.parse(f.extendProps))==null?void 0:m.mainMobile)=="1"}).children);let h=s.filter(p=>p.name===this.name),d=h[0].children.map(p=>p.meta.title);this.titleList=["\u5168\u90E8",...d];const u=h[0].children.reduce((p,f)=>(p[f.meta.title]=f,p),{});this.allApps_menus={\u5168\u90E8:h[0].children,...u},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.title=h[0].meta.title}else i>=n?(clearInterval(r),console.warn(`\u5C1D\u8BD5${n}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${i}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{simplifyMenuTree(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{const i=[];function n(r){r.children&&r.children.length>0?r.children.forEach(n):(r.path||r.uri)&&i.push(r)}return n(t),console.log({...t,children:i.map(r=>({...r,children:void 0}))}),{...t,children:i.map(r=>({...r,children:void 0}))}})):[]},simplifyMenuTree2N(e){return e?(e=y.default.cloneDeep(e),e.map(t=>{var s;const i=[],n=[];function r(o){var l;((l=o==null?void 0:o.children)==null?void 0:l.length)>0?n.push(o):(o.path||o.uri)&&i.push(o)}function a(o,l){var c,h;((c=o==null?void 0:o.children)==null?void 0:c.length)>0?(h=o.children)==null||h.forEach(d=>a(d,l)):(o.path||o.uri)&&l.push(o)}return this.curTabl=="\u5168\u90E8"?(s=t==null?void 0:t.children)==null||s.forEach(r):r(t),i.forEach(o=>{o.children=null}),n.forEach(o=>{let l=[];a(o,l),o.children=l}),{...t,children:i,foldChildren:n}})):[]},handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],this.curTabl=e,e!=="\u5168\u90E8"?this.apps_menus=this.simplifyMenuTree((i=this.apps_menus)==null?void 0:i.children):this.apps_menus=this.level==2?this.simplifyMenuTree(this.apps_menus):this.simplifyMenuTree2N(this.apps_menus),this.$emit("tab-click",t),this.scrollTabIntoView(t))},scrollTabIntoView(e){this.$nextTick(()=>{const i=this.$refs.tabsHeader.children[e];i&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})},edit(){this.$router.push({name:"myApp"})},open(){this.disMyapp=!this.disMyapp,this.$nextTick(()=>{this.scrollToContent(this.active)})},scrollToContent(e){this.$nextTick(()=>{const t=document.querySelector(".ind-my-app-container");if(!t)return;if(e<0||e>=t.children.length){t.scrollTo({top:0,behavior:"smooth"});return}const i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var i;let e=localStorage.getItem("systemDefaultConfig"),t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),""}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.rowAppCount)||4}}},_f={};var L$=X(O$,D$,M$,!1,A$,null,null,null);function A$(e){for(let t in _f)this[t]=_f[t]}var N$=function(){return L$.exports}(),P$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.changeUI=="0"?i("levelTwoOld"):i("levelTwoNew")},B$=[];const R$={components:{levelTwoOld:x$,levelTwoNew:N$},computed:{changeUI(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"0";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"0"}return((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.changeUI)||"0"}}},If={};var F$=X(R$,P$,B$,!1,V$,null,null,null);function V$(e){for(let t in If)this[t]=If[t]}var z$=function(){return F$.exports}(),j$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},H$=[];function Ef(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=Ef(n,t+1);r>i&&(i=r)}return i}function U$(e){let t=0;for(const i of e){const n=Ef(i);n>t&&(t=n)}return t}const K$={components:{aboveleveltwo:g$,leveltwo:z$},data(){return{level:3,name:"appsNew",apps_menus:[],isHb:!1,depth:"4"}},methods:{appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},created(){var n,r,a;this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList||[];e.length||console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC"),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&((a=(r=this.$config)==null?void 0:r.systemDefaultConfig)==null?void 0:a.isMobileSeparate)!="1"&&(e=e.find(o=>{var l;return o.extendProps&&((l=JSON.parse(o.extendProps))==null?void 0:l.mainMobile)=="1"}).children);let t=e.filter(s=>s.name===this.name);this.apps_menus=t[0].children,this.appsMenusExtended(this.apps_menus);const i=U$(this.apps_menus);this.depth=i},computed:{currentComponent(){var i;const e=localStorage.getItem("systemDefaultConfig");if(!e||typeof e!="string")return"{}";let t;try{t=JSON.parse(e)}catch(n){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",n.message),"{}"}if(this.level=((i=t==null?void 0:t.systemDefaultConfig)==null?void 0:i.theLevel)||3,this.depth=this.depth||4,(this.level==2||this.level=="2N")&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},Df={};var W$=X(K$,j$,H$,!1,Y$,null,null,null);function Y$(e){for(let t in Df)this[t]=Df[t]}var vo=function(){return W$.exports}(),X$=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..."))])])])])])},q$=[];const G$={props:{loading:Boolean,isFullScreenLoading:{type:Boolean,default:!1},text:String},data(){return{}},methods:{loadingImageUrl(e){const t=e?"systemDefaultConfig.globalLoading":"systemDefaultConfig.localLoading",i=this.getSafeConfigValue(t);return i&&i.trim()!==""?`/user-manage-server/oss/file/get/${i}`:!1},getSafeConfigValue(e){if(!!this.$config)return e.split(".").reduce((t,i)=>t&&t[i]!==void 0?t[i]:void 0,this.$config)}}},Mf={};var J$=X(G$,X$,q$,!1,Z$,null,null,null);function Z$(e){for(let t in Mf)this[t]=Mf[t]}var Of=function(){return J$.exports}(),Q$=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)},tk=[];const ek={data(){return{vconsoleChecked:!1,chiiChecked:!1,isHb:location.pathname.includes("scyxweb")}},watch:{vconsoleChecked:function(){if(this.vconsoleChecked){const e=document.createElement("script");e.src="vconsole.min.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e.onload=function(){window.vConsole=new VConsole}}this.vconsoleChecked=!0},chiiChecked:function(){if(this.chiiChecked){const e=document.createElement("script");e.src="//dev.sunquan.tech/inspect/target.js",e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}this.chiiChecked=!0}},methods:{onClickLeft(){this.$router.back()}}},Lf={};var ik=X(ek,Q$,tk,!1,nk,null,null,null);function nk(e){for(let t in Lf)this[t]=Lf[t]}var go=function(){return ik.exports}(),rk=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)},ak=[];function sk(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 ok={name:"UploadFile",props:{accept:{type:String,required:!1,default:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,image/jpeg,image/png,image/gif,video/mp4,video/mov,application/pdf,application/zip,text/csv,text/plain,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},fileSuffix:{type:String,required:!1,default:"pdf|doc|docx|txt|xls|xlsx|zip|csv|mp4|mov|jpg|jpeg|png|gif"},multiple:{type:Boolean,default:!1},otherParam:{type:String,default:""},defaultList:{type:Array,required:!1,default:()=>[]},ossServerContext:{type:String,default:(location.pathname.includes("scyxweb")?"/scyxgateway":"")+"/ind-uc-ext-server"},ossFilePutUrl:{type:String,default:"/oss/file/put"},ossFileGetUrl:{type:String,default:"/oss/file/get/"},onSuccess:{type:Function,default(){return()=>{}}},onChangeData:{type:Function,default(){return()=>{}}},readonly:{type:Boolean,default:!1},candel:{type:Boolean,default:!0}},data(){return{isHB:!1,loading:!1,resultList:[],isshow:!1,previewVisible:!1,attachmentFile:{fileId:"",fileType:"",fileName:"",size:""},deepdefaultList:[]}},computed:{shouldShowDelete(){return this.readonly?!!this.candel:!0},downloadUrl(){return this.ossServerContext+this.ossFileGetUrl},dynamicFileTypeAlertMessage(){return`\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F ${this.fileSuffix.split("|").join("\uFF0C")} \u4E2D\u7684\u4E00\u79CD`},fileSizeLimit(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.fileSizeLimit)||500}},watch:{defaultList:{handler(e){this.resultList=e||[],this.deepdefaultList=y.default.cloneDeep(e)},immediate:!0,deep:!0}},methods:{uploadFileToServer(){let e=this;e.loading=!0;const i=this.$refs.uploadInput.files;let n=new FormData;for(let r of i)n.append("file",r);M.axios.post(e.ossServerContext+e.ossFilePutUrl,n,{payload:!0}).then(r=>{if(r.code===1){e.loading=!1;const a=r.data;a.length>=1&&a.forEach(s=>{let o={fileUrl:e.ossServerContext+e.ossFileGetUrl+s.fileId,fileId:s.fileId,fileName:s.fileName,fileType:s.fileName.substring(s.fileName.lastIndexOf(".")+1),size:s.length,showSize:sk(s.length),otherParam:e.otherParam};e.resultList.push(o)})}else e.loading=!1;e.$refs.uploadInput.value=null}).catch(()=>{e.loading=!1,e.$refs.uploadInput.value=null})},uploadFile(){this.$refs.uploadInput.click()},deleteFile(e){if(e){let t=[];this.resultList.forEach(i=>{i.fileId!==e&&t.push(i)}),this.resultList=t}},cancel(){this.resultList=this.deepdefaultList,this.$emit("onChangeData",this.resultList),this.isshow=!1},confirm(){this.$emit("onChangeData",this.resultList),this.isshow=!1},handleDownload(e){const t=navigator.userAgent;/miniProgram/i.test(t)?this.goToMiniProgramDown(e):this.h5Download(e)},async h5Download(e){var n;const t=e.fileUrl?e.fileUrl:`${this.ossServerContext}/oss/file/get/${e.fileId}`,i=M.getToken();try{const r=await fetch(t,{headers:{token:i}});if(!r.ok)throw new Error(`\u4E0B\u8F7D\u5931\u8D25: ${r.status}`);const a=await r.blob();let s="application/octet-stream";const l=((n=e==null?void 0:e.fileName)==null?void 0:n.toLowerCase()).match(/\.([a-z0-9]+)$/),c=l==null?void 0:l[1];M.MIME_TYPE[c]&&(s=M.MIME_TYPE[c]);const h=new Blob([a],{type:s}),d=window.URL.createObjectURL(h),u=document.createElement("a");u.href=d,u.download=e.fileName,u.style.display="none",u.target="_blank",document.body.appendChild(u),u.click(),document.body.removeChild(u)}catch(r){console.error("\u4E0B\u8F7D\u51FA\u9519:",r),this.$Message.error("\u6587\u4EF6\u4E0B\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},goToMiniProgramDown(e){e.fileId?wx.miniProgram.navigateTo({url:`/pages/download/index?downloadFileId=${e.fileId}`}):console.error("\u6587\u4EF6ID\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8DF3\u8F6C")},async handleClickAttachment(e){let t=this;if(e.fileName.endsWith("psd")||e.fileName.endsWith("m4v")||e.fileName.endsWith("rar")||e.fileName.endsWith("zip"))return this.$Message.error("\u8BE5\u683C\u5F0F\u7684\u6587\u4EF6\u4E0D\u652F\u6301\u5728\u7EBF\u9884\u89C8"),!1;if(location.pathname.includes("scyxweb")){let i="";await M.axios.get("/user-manage-server/manage/user/getCurrentInfo").then(n=>{if(n.code===1){const r=e.fileName.endsWith(".jpg")||e.fileName.endsWith(".jpeg")||e.fileName.endsWith(".png")||e.fileName.endsWith(".gif");let a="";r?a=`${t.$config.mdPictureDownLoadApi}${e.fileId}?fullfilename=${e.fileName}`:a=`${t.$config.mdDocDownLoadApi}${e.fileId}&fullfilename=${e.fileName}`;const s=e.fileName.endsWith(".doc")||e.fileName.endsWith(".docx")||e.fileName.endsWith(".ppt")||e.fileName.endsWith(".pptx")||e.fileName.endsWith(".xls")||e.fileName.endsWith(".xlsx")||e.fileName.endsWith(".pdf");let o="";s&&(o="&officePreviewType=pdf&tifPreviewType=jpg"),t.watermark==="0"?t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}${o}`:(i=n.data.displayName+n.data.loginName,t.previewUrl=`${t.$config.KKfilePrevieContext}/onlinePreview?url=${encodeURIComponent(Base64.encode(a))}&watermarkTxt=${i}${t.$config.KKfilePrevieWatermarkStyle||""}${o}`),t.previewVisible=!0}})}else this.openPreview(e)},getPreviewUrlApi(e){var n;const t=location.protocol==="https:"?"1":"",i=M.getToken()||sessionStorage.getItem("sso_token");return M.axios.get(`${location.protocol}//${location.host}/ind-uc-ext-server/api/wps/getPreviewUrl/${e}?isWeb=${t}&previewMode=high_definition`,{headers:{Authorization:`Bearer ${i}`,"X-CSRF-TOKEN":((n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.content)||""}})},async openPreview(e){try{const t=await this.getPreviewUrlApi(e.fileId);if(t.code!=1)throw new Error("\u83B7\u53D6\u9884\u89C8\u94FE\u63A5\u5931\u8D25");const i=t.data;this.previewVisible=!0,await this.$nextTick();const n=document.getElementById("wps-preview-container");if(!n)throw new Error("\u672A\u627E\u5230\u9884\u89C8\u6302\u8F7D\u8282\u70B9");const r=OpenSDK.config({url:i,mount:n}),a=M.getToken()||sessionStorage.getItem("sso_token");if(!a)throw new Error("\u672A\u627E\u5230\u6709\u6548 Token");r.setToken({token:a,timeout:10*60*1e3})}catch(t){console.error("\u9884\u89C8\u5931\u8D25:",t),this.$Message.error(`\u9884\u89C8\u5931\u8D25: ${t.message}`)}},closePreview(){this.previewVisible=!1},readFile(e){let t=this;if(!e.target.files||e.target.files.length===0)return this.$Message.warning({content:"\u6CA1\u6709\u9009\u62E9\u6587\u4EF6\u6216\u6587\u4EF6\u5217\u8868\u4E3A\u7A7A"}),!1;const i=e.target.files[0],n=this.fileSuffix.split("|"),r="\\.("+n.join("|")+")$";if(!new RegExp(r,"i").test(i.name))return this.$Message.warning({content:"\u6587\u4EF6\u7C7B\u578B\u5FC5\u987B\u662F pdf\uFF0Cdoc\uFF0Cdocx\uFF0Ctxt\uFF0Cxls\uFF0Cxlsx\uFF0Czip\uFF0Ccsv\uFF0Cmp4\uFF0Cmov\uFF0Cjpg\uFF0Cjpeg\uFF0Cpng\uFF0Cgif \u4E2D\u7684\u4E00\u79CD"}),t.$refs.uploadInput.value=null,!1;if(i.size/(1024*1024)>t.fileSizeLimit)return this.$Message.warning({content:`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${t.fileSizeLimit}MB`}),t.$refs.uploadInput.value=null,!1;let l=i.name;l.indexOf("/")>0&&(l=l.substring(l.lastIndexOf("/")+1)),l.indexOf("\\")>0&&(l=l.substring(l.lastIndexOf("\\")+1));const c=l.lastIndexOf("."),h=c>-1?l.substring(c+1):"";t.attachmentFile={fileName:l,fileType:h,size:i.size},t.uploadFileToServer()}},mounted(){location.pathname.includes("scyxweb")?this.isHB=!0:this.isHB=!1}},Af={};var lk=X(ok,rk,ak,!1,ck,null,null,null);function ck(e){for(let t in Af)this[t]=Af[t]}var Nf=function(){return lk.exports}(),uk=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)])])])},hk=[];const dk={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"}}},Pf={};var fk=X(dk,uk,hk,!1,pk,null,null,null);function pk(e){for(let t in Pf)this[t]=Pf[t]}var Bf=function(){return fk.exports}(),mk=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)])])},vk=[];const gk={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}}},Rf={};var yk=X(gk,mk,vk,!1,bk,null,null,null);function bk(e){for(let t in Rf)this[t]=Rf[t]}var Ff=function(){return yk.exports}(),Sk=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)])},wk=[];const Ck={props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},pick:{type:String,default:"home-bg"},type:{type:String,default:"TableData"},size:{type:String,default:"cover"},position:{type:String,default:"center"},repeat:{type:String,default:"no-repeat"},ossServerContext:{type:String,default:"/user-manage-server"}},computed:{getIcon(){var r;const e=`icon${this.type}`,t=localStorage.getItem("systemDefaultConfig");if(!t||typeof t!="string")return"";let i;try{i=JSON.parse(t)}catch(a){return console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:",a.message),""}const n=(r=i==null?void 0:i.systemDefaultConfig)==null?void 0:r[e];try{if(!Array.isArray(n))return console.error("\u914D\u7F6E\u4E0D\u662F\u6570\u7EC4:",n),{display:"none"};if(n.length===0)return console.error("\u6570\u7EC4\u4E3A\u7A7A"),{display:"none"};const a=n.find(d=>(d==null?void 0:d.positionId)===this.pick);if(!a)return console.error(`\u672A\u627E\u5230\u5339\u914D\u7684\u56FE\u6807\u914D\u7F6E\u3002pick: ${this.pick}`),{display:"none"};const s=a.iconFieldId||a.iconFielId;if(!s)return console.error("iconFieldId/iconFielId \u4E3A\u7A7A\uFF0C\u53EF\u7528\u5B57\u6BB5:",Object.keys(a)),{display:"none"};let o;try{o=JSON.parse(s)}catch(d){return console.error("JSON \u89E3\u6790\u5931\u8D25:",d,"\u539F\u59CB\u503C:",s),{display:"none"}}if(!Array.isArray(o)||o.length===0)return console.error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u975E\u7A7A\u6570\u7EC4:",o),{display:"none"};const l=o[0],c=l==null?void 0:l.fileId;return c?{backgroundImage:`url(${this.ossServerContext}/oss/file/get/${c})`,backgroundSize:this.size,backgroundRepeat:this.repeat,backgroundPosition:this.position,width:"100%",height:"100%"}:(console.error("fileId \u4E3A\u7A7A\uFF0C\u89E3\u6790\u7ED3\u679C:",l),{display:"none"})}catch(a){return console.error("getIcon \u6267\u884C\u51FA\u9519:",a),{display:"none"}}}},methods:{}},Vf={};var xk=X(Ck,Sk,wk,!1,$k,null,null,null);function $k(e){for(let t in Vf)this[t]=Vf[t]}var zf=function(){return xk.exports}(),yo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Ui,ErrorContent:ta,DatePicker:Ko,Form:sl,LoadMore:ll,User1:vl,BasicLayout:yl,EmptyLayout:$i,DetailView:xl,PageView:kl,PopupView:_l,QueryView:El,Login:js,Search:Ad,SelectPanel:Bd,InputSelect:Fd,SelectBtn:zd,User:Hs,Apps:ho,AppsEdit:fo,MyApps:Us,AppsNew:vo,appItem:ze,tabbar:ti,LoadingPanel:Of,Setting:go,UploadFile:Nf,Card:Bf,CardItem:Ff,ImgLoad:zf},Symbol.toStringTag,{value:"Module"})),jf={install(e,{config:t}={}){e.prototype.$config=y.default.merge({},e.prototype.$config||{},t||M.config)}},Hf={install(e,{router:t,store:i}){e.prototype.$backToMenu=function(){if(console.log("trigger $backToMenu"),this.$config.showMenus){const n=i.state.app.breadCrumbList;i.commit("closeTag",{$router:t,route:y.default.cloneDeep(y.default.find(i.state.app.tagNavList,{name:n[n.length-1].name})||{})}),t.push({name:n[n.length-2].name}).catch(()=>{})}else t.go(-1)}}},kk=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:jf,IndRouterPlugin:Hf},Symbol.toStringTag,{value:"Module"}));const Uf=function(e,t,i){const n=i.context;e.style.display="none";const r=t.value;(n.$store.state.app.permission[r]||r==="all")&&(e.style.display="")},Kf={bind:Uf,update:Uf};var bo=Object.freeze(Object.defineProperty({__proto__:null,permission:Kf},Symbol.toStringTag,{value:"Module"}));let Wf=location.pathname.includes("scyxweb");const Yf={name:Te.rootRouteName,path:"/",...Wf?{redirect:"/home"}:{},component:$i,meta:{hideInMenu:!0,notCache:!0},children:[{name:Te.homeRouteName,path:"home",...Wf?{}:{redirect:`/apps?t=${new Date().getTime()}`},meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},Tk={name:Te.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:js},_k={name:"user",path:"/user",component:Hs,meta:{hideInMenu:!0,notCache:!0}},Ik={name:"setting",path:"/setting",component:go,meta:{hideInMenu:!0,notCache:!0}},Ek={name:"apps",path:"/apps",component:ho,meta:{hideInMenu:!0,notCache:!0}},Dk={name:"appsNew",path:"/appsNew",component:vo,meta:{hideInMenu:!0,notCache:!0}},Mk={name:"appsEdit",path:"/appsEdit",component:fo,meta:{hideInMenu:!0,notCache:!0}},Ok={path:"/404",meta:{hideInMenu:!0},component:Ui};function Lk({homeComponent:e,rootChildren:t}={}){const i=y.default.cloneDeep(Yf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[Tk]:[];return[i,...n,_k,Ik,Ek,Mk,Ok,Dk]}function Ak({rootChildren:e}={}){const t=y.default.cloneDeep(Yf);return t.component=$i,t.children=[],e&&e.length&&t.children.push(...e),[t]}const Nk={EmptyLayout:{component:$i},EmptyLayoutNotCache:{component:{...$i,name:"IndEmptyLayoutNotCache"}}},zr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function Xf(e){return[zr.DIRECTORY,zr.MENU].includes(e)}function qf(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 Pk(e){const t=new Map;return e&&e.forEach(i=>{const{pid:n}=i;t.has(n)||t.set(n,[]),t.get(n).push(i)}),t}function So({list:e,childrenMap:t,menuTree:i,pageNode:n,parentId:r,crumbs:a,root:s}){if(!e)return;t||(t=Pk(e));let o=M.getSessionStorage("appInfo");(t.get(r)||[]).forEach(c=>{var L;const{permissionId:h,label:d,appId:u,pid:p,icon:f,type:m,uri:v,permissionValue:C,extendProps:x}=c;if(u!=o.appId)return;const T=C;let _=!1,D=!1;if(c&&c.extendProps)try{_=((L=JSON.parse(c.extendProps))==null?void 0:L.hideInIbp)==="1"}catch{_=!1}try{if(c&&c.extension){const H=JSON.parse(c.extension);if(H.extendProps){const B=typeof H.extendProps=="string"?JSON.parse(H.extendProps):H.extendProps;(B==null?void 0:B.hideInMenu)==1&&(D=!0)}}}catch{D=!1}if(!(_||D)){if(Xf(m)){let H={type:m,name:T,pid:p,path:Gf(v),uri:v,component:T,meta:{appId:u,permissionId:h,title:d,icon:f,crumbs:[...a],activeName:T},children:[],extendProps:x};H.meta.crumbs.push({icon:f,name:T,title:d,type:m}),zr.DIRECTORY===m&&(H.component="EmptyLayout"),So({list:e,childrenMap:t,menuTree:H.children,pageNode:n,parentId:h,crumbs:H.meta.crumbs,root:!1}),H.children.length||delete H.children,i.push(H)}if(zr.PAGE===m){let H={type:m,name:T,pid:p,path:Gf(v),uri:v,component:T,meta:{appId:u,permissionId:h,title:d,hideInMenu:!0,notCache:!0,crumbs:[...a],type:m}};H.meta.crumbs.push({icon:f,name:T,title:d,type:m}),n.children.push(H)}}})}function Gf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function Jf(e=[]){e=e.filter(i=>Xf(i.type));const t=[];return So({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function Bk(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return So({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),wo(t)}function wo(e=[]){for(let t of e)if(t.component){const i=Nk[t.component];i?t.component=i.component:t.path?window.loadComponentHandler&&(t.component=window.loadComponentHandler(t.path,t.name)||Ui):(console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${t.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`),t.component=Ui),t.children&&t.children.length>0&&wo(t.children)}return e}var Co={exports:{}},Zf=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)}},Rk=Zf,Si=Object.prototype.toString;function xo(e){return Si.call(e)==="[object Array]"}function $o(e){return typeof e=="undefined"}function Fk(e){return e!==null&&!$o(e)&&e.constructor!==null&&!$o(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Vk(e){return Si.call(e)==="[object ArrayBuffer]"}function zk(e){return typeof FormData!="undefined"&&e instanceof FormData}function jk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Hk(e){return typeof e=="string"}function Uk(e){return typeof e=="number"}function Qf(e){return e!==null&&typeof e=="object"}function jr(e){if(Si.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Kk(e){return Si.call(e)==="[object Date]"}function Wk(e){return Si.call(e)==="[object File]"}function Yk(e){return Si.call(e)==="[object Blob]"}function tp(e){return Si.call(e)==="[object Function]"}function Xk(e){return Qf(e)&&tp(e.pipe)}function qk(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Gk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Jk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function ko(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),xo(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function To(){var e={};function t(r,a){jr(e[a])&&jr(r)?e[a]=To(e[a],r):jr(r)?e[a]=To({},r):xo(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)ko(arguments[i],t);return e}function Zk(e,t,i){return ko(t,function(r,a){i&&typeof r=="function"?e[a]=Rk(r,i):e[a]=r}),e}function Qk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Zt={isArray:xo,isArrayBuffer:Vk,isBuffer:Fk,isFormData:zk,isArrayBufferView:jk,isString:Hk,isNumber:Uk,isObject:Qf,isPlainObject:jr,isUndefined:$o,isDate:Kk,isFile:Wk,isBlob:Yk,isFunction:tp,isStream:Xk,isURLSearchParams:qk,isStandardBrowserEnv:Jk,forEach:ko,merge:To,extend:Zk,trim:Gk,stripBOM:Qk},zi=Zt;function ep(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ip=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(ep(c)+"="+ep(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},tT=Zt;function Hr(){this.handlers=[]}Hr.prototype.use=function(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},Hr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Hr.prototype.forEach=function(t){tT.forEach(this.handlers,function(n){n!==null&&t(n)})};var eT=Hr,iT=Zt,nT=function(t,i){iT.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},np=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},rT=np,rp=function(t,i,n,r,a){var s=new Error(t);return rT(s,i,n,r,a)},aT=rp,sT=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(aT("Request failed with status code "+n.status,n.config,null,n.request,n))},Ur=Zt,oT=Ur.isStandardBrowserEnv()?function(){return{write:function(i,n,r,a,s,o){var l=[];l.push(i+"="+encodeURIComponent(n)),Ur.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Ur.isString(a)&&l.push("path="+a),Ur.isString(s)&&l.push("domain="+s),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(i){var n=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),lT=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},cT=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},uT=lT,hT=cT,dT=function(t,i){return t&&!uT(i)?hT(t,i):i},_o=Zt,fT=["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"],pT=function(t){var i={},n,r,a;return t&&_o.forEach(t.split(`
|
|
21
21
|
`),function(o){if(a=o.indexOf(":"),n=_o.trim(o.substr(0,a)).toLowerCase(),r=_o.trim(o.substr(a+1)),n){if(i[n]&&fT.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([r]):i[n]=i[n]?i[n]+", "+r:r}}),i},ap=Zt,mT=ap.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=ap.isString(s)?r(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),Kr=Zt,vT=sT,gT=oT,yT=ip,bT=dT,ST=pT,wT=mT,Io=rp,sp=function(t){return new Promise(function(n,r){var a=t.data,s=t.headers,o=t.responseType;Kr.isFormData(a)&&delete s["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(c+":"+h)}var d=bT(t.baseURL,t.url);l.open(t.method.toUpperCase(),yT(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!!l){var f="getAllResponseHeaders"in l?ST(l.getAllResponseHeaders()):null,m=!o||o==="text"||o==="json"?l.responseText:l.response,v={data:m,status:l.status,statusText:l.statusText,headers:f,config:t,request:l};vT(n,r,v),l=null}}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){!l||(r(Io("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(Io("Network Error",t,null,l)),l=null},l.ontimeout=function(){var m="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(Io(m,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},Kr.isStandardBrowserEnv()){var p=(t.withCredentials||wT(d))&&t.xsrfCookieName?gT.read(t.xsrfCookieName):void 0;p&&(s[t.xsrfHeaderName]=p)}"setRequestHeader"in l&&Kr.forEach(s,function(m,v){typeof a=="undefined"&&v.toLowerCase()==="content-type"?delete s[v]:l.setRequestHeader(v,m)}),Kr.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&o!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(m){!l||(l.abort(),r(m),l=null)}),a||(a=null),l.send(a)})},Ot=Zt,op=nT,CT=np,xT={"Content-Type":"application/x-www-form-urlencoded"};function lp(e,t){!Ot.isUndefined(e)&&Ot.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function $T(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=sp),e}function kT(e,t,i){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}var Wr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:$T(),transformRequest:[function(t,i){return op(i,"Accept"),op(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)?(lp(i,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Ot.isObject(t)||i&&i["Content-Type"]==="application/json"?(lp(i,"application/json"),kT(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"?CT(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Wr.headers={common:{Accept:"application/json, text/plain, */*"}},Ot.forEach(["delete","get","head"],function(t){Wr.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){Wr.headers[t]=Ot.merge(xT)});var Eo=Wr,TT=Zt,_T=Eo,IT=function(t,i,n){var r=this||_T;return TT.forEach(n,function(s){t=s.call(r,t,i)}),t},cp=function(t){return!!(t&&t.__CANCEL__)},up=Zt,Do=IT,ET=cp,DT=Eo;function Mo(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var MT=function(t){Mo(t),t.headers=t.headers||{},t.data=Do.call(t,t.data,t.headers,t.transformRequest),t.headers=up.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),up.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var i=t.adapter||DT.adapter;return i(t).then(function(r){return Mo(t),r.data=Do.call(t,r.data,r.headers,t.transformResponse),r},function(r){return ET(r)||(Mo(t),r&&r.response&&(r.response.data=Do.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Bt=Zt,hp=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,p){return Bt.isPlainObject(u)&&Bt.isPlainObject(p)?Bt.merge(u,p):Bt.isPlainObject(p)?Bt.merge({},p):Bt.isArray(p)?p.slice():p}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(p){Bt.isUndefined(i[p])||(n[p]=l(void 0,i[p]))}),Bt.forEach(a,c),Bt.forEach(s,function(p){Bt.isUndefined(i[p])?Bt.isUndefined(t[p])||(n[p]=l(void 0,t[p])):n[p]=l(void 0,i[p])}),Bt.forEach(o,function(p){p in i?n[p]=l(t[p],i[p]):p in t&&(n[p]=l(void 0,t[p]))});var h=r.concat(a).concat(s).concat(o),d=Object.keys(t).concat(Object.keys(i)).filter(function(p){return h.indexOf(p)===-1});return Bt.forEach(d,c),n},OT={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"}]},dp=OT,Oo={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Oo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var fp={},LT=dp.version.split(".");function pp(e,t){for(var i=t?t.split("."):LT,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}Oo.transitional=function(t,i,n){var r=i&&pp(i);function a(s,o){return"[Axios v"+dp.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&&!fp[o]&&(fp[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 AT(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 NT={isOlderVersion:pp,assertOptions:AT,validators:Oo},mp=Zt,PT=ip,vp=eT,gp=MT,Yr=hp,yp=NT,ji=yp.validators;function Tn(e){this.defaults=e,this.interceptors={request:new vp,response:new vp}}Tn.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Yr(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;i!==void 0&&yp.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=[gp,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=gp(l)}catch(d){return Promise.reject(d)}for(;a.length;)s=s.then(a.shift(),a.shift());return s},Tn.prototype.getUri=function(t){return t=Yr(this.defaults,t),PT(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},mp.forEach(["delete","get","head","options"],function(t){Tn.prototype[t]=function(i,n){return this.request(Yr(n||{},{method:t,url:i,data:(n||{}).data}))}}),mp.forEach(["post","put","patch"],function(t){Tn.prototype[t]=function(i,n,r){return this.request(Yr(r||{},{method:t,url:i,data:n}))}});var BT=Tn;function Lo(e){this.message=e}Lo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Lo.prototype.__CANCEL__=!0;var bp=Lo,RT=bp;function Xr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(r){t=r});var i=this;e(function(r){i.reason||(i.reason=new RT(r),t(i.reason))})}Xr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Xr.source=function(){var t,i=new Xr(function(r){t=r});return{token:i,cancel:t}};var FT=Xr,VT=function(t){return function(n){return t.apply(null,n)}},zT=function(t){return typeof t=="object"&&t.isAxiosError===!0},Sp=Zt,jT=Zf,qr=BT,HT=hp,UT=Eo;function wp(e){var t=new qr(e),i=jT(qr.prototype.request,t);return Sp.extend(i,qr.prototype,t),Sp.extend(i,t),i}var $e=wp(UT);$e.Axios=qr,$e.create=function(t){return wp(HT($e.defaults,t))},$e.Cancel=bp,$e.CancelToken=FT,$e.isCancel=cp,$e.all=function(t){return Promise.all(t)},$e.spread=VT,$e.isAxiosError=zT,Co.exports=$e,Co.exports.default=$e;var KT=Co.exports;const Gr=location.pathname.includes("scyxweb"),WT=navigator.userAgent.toLowerCase(),YT=!!/wxwork/.test(WT),Cp={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 XT({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:r}){var m,v;let a=await t.dispatch("getUserInfo");await t.dispatch("getAppListData"),await t.dispatch("getMyAppsList",{userId:a.userId,funId:"store-my-app"});const s=await t.dispatch("getPermissionData"),o=JSON.parse(((v=(m=M.getSessionStorage("appInfo"))==null?void 0:m.extendProps)==null?void 0:v.extendProps)||"{}"),l=M.getLocalStorage("versionInfo");if(l){if(o.appVersion>l.appVersion){M.setLocalStorage("versionInfo",o);let C=window.location.href,x=new URL(C),T=new URLSearchParams(x.search);T.set("v",o.appVersion),x.search=T.toString(),window.location.href=x.href}}else M.setLocalStorage("versionInfo",o);e.options=y.default.cloneDeep(r);const c=qf(i,s),h=Bk(c);console.log("dynamicROuters",h);const d=e.options.routes.find(C=>C.path==="/");for(const C of h)e.addRoute(d.name,C),d.children.push(C);const p=qf(i,n).filter(C=>e.options.routes.findIndex(x=>C.name===x.name)===-1);p.forEach(C=>{C.component=C.name,C.meta={hideInMenu:!0,title:C.label,activeName:C.name}});const f=wo(p);for(const C of f)e.addRoute(Te.rootRouteName,C)}function qT({router:e,store:t,microType:i,allowPermissionList:n}){el();const r=Te.loginRouteName,a=y.default.cloneDeep(e.options);window.sessionNotValidHandler=async function(){if(typeof window.Code!="undefined"||Gr){try{await $p(t,e)}catch(s){if(console.log("pluginLogin e",s),Gr)if(YT)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 f=/token=(.*)/.exec(h);f&&f.length>1&&c!==f[1]&&(c=f[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(f){var m,v,C;if(t.state.user.userName)console.log("window?.selectInst?.show",(m=window==null?void 0:window.selectInst)==null?void 0:m.show),(v=window==null?void 0:window.selectInst)!=null&&v.show?(window.selectInst.$emit("update:show",!1),console.log("router3"),l(!1)):(C=window==null?void 0:window.popupPageInst)!=null&&C.value?(window.popupPageInst.$emit("input",!1),console.log("router4"),l(!1)):(console.log("router5"),l());else{ke.Spin.show();try{if(await XT({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:a}),console.log("router1"),f){l({...f,replace:!0});return}const x=getQueryVariable("state");let T={};!!x&&x!="null"?(T=JSON.parse(decodeURIComponent(decodeURIComponent(x))),console.log("state",T),sessionStorage.setItem("isFromIM","1"),console.log("isFromIM\u6807\u8BC61\u5DF2\u6DFB\u52A0\u5230sessionStorage"),l({path:T.url,replace:!0})):l({...s,replace:!0})}catch{console.log("router2"),l({name:r})}ke.Spin.hide()}}async function u(f){try{const m=await $p(t,e,f);return m&&m.token?(t.dispatch("loginSuccess",m.token),m):!1}catch(m){return console.log("tryPluginLogin error",m),!1}}const p=getQueryVariable("code");if(typeof window.Code!="undefined"||p||Gr)if(c)if(await kp())await d();else{const f=await u(s);f&&await d(f.targetRoute)}else{const f=await u(s);f?await d(f.targetRoute):console.log("\u5355\u70B9\u767B\u5F55\u5F02\u5E38\u4E86\uFF1F\uFF01\uFF01")}else if(!c&&s.name!==r)console.log("router6"),l({name:r});else if(s.name===r)console.log("router7"),l();else if(console.log("router8"),await kp())await d();else{const f=await u(s);f?await d(f.targetRoute):console.log("router9")}}),e.afterEach(s=>{ke.LoadingBar.finish(),window.scrollTo(0,0)})}let xp={};const $p=(e,t,i)=>{let n=getQueryVariable("code"),r=xp[n];return r?(console.log("\u91CD\u590D\u4F7F\u7528\u4E86code\u521B\u5EFA\u4F1A\u8BDD\uFF01"),r):(r=new Promise((a,s)=>{if(sessionStorage.removeItem("lambo-token"),sessionStorage.removeItem("sso_token"),sessionStorage.removeItem("userInfo"),localStorage.removeItem("v8-token"),localStorage.removeItem("userId"),localStorage.removeItem("userInfo"),Cp.set("lambo-sso-key","",1),Cp.set("TOKEN_KEY","",1),e.commit("setUserName",""),e.commit("setToken",""),Gr){let o=location.protocol+"//"+location.host+"/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";M.axios.get(o).then(async l=>{M.setToken(l.token),localStorage.setItem("v8-token",l.token),sessionStorage.setItem("lambo-token",l.token),setTimeout(()=>{if(i&&i.path&&i.path!=="/"){console.log("===targetRoute===",i.path,i.query),a({token:l.token});return}console.log("before getUserDefaultUrl"),Ed().then(c=>{var h;console.log("getUserDefaultUrl data",c),(h=c.data)!=null&&h.includes("home")?a({token:l.token,targetRoute:{name:Te.homeRouteName}}):a({token:l.token,targetRoute:{name:"workBench"}}),console.log("location.href",location.href)})},0)}).catch(l=>{console.log("\u83B7\u53D6token\u5F02\u5E38",l),s(0)})}else console.log("1111`111"),n?M.axios.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code="+n).then(async o=>{M.setToken(o.token),a({token:o.token})}).catch(o=>{console.log("\u83B7\u53D6token\u5F02\u5E38",o),ke.Message.error({content:"\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",duration:10,closable:!0}),s(0)}):(Code.postMessage(""),window.getCode=function(o){console.log("getCode res",o),M.axios.get("/ind-uc-ext-server/sso/ssoAppLogin?code="+o).then(async l=>{M.setToken(l.token),a({token:l.token})}).catch(l=>{console.log("\u83B7\u53D6token\u5F02\u5E38",l),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}),s(0)})})}),n&&(xp[n]=r),r)};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 kp=async()=>{var e,t;if(console.log("checkLogin trigger"),localStorage.getItem("whoisyourdaddy")=="1")return Promise.resolve(!0);try{let i=M.getToken();console.log("checkLogin token",i);const n=await KT.get(`${Te.authServerContext}/manage/user/getCurrentInfo`,{params:{},headers:{token:i}});return console.log(((e=n.data)==null?void 0:e.code)==1?"\u6709\u4F1A\u8BDD\u4E86\uFF01":"\u6CA1\u6709\u4F1A\u8BDD\u3002\u3002\u3002"),((t=n.data)==null?void 0:t.code)==1}catch(i){return console.log("getLoginData e",i),ke.Message.error({content:"\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01",duration:10,closable:!0}),!1}},GT={mode:"history",base:"ind-mobile"};var JT={state:{userName:"",avatarImgPath:"",userManageUnitId:"",token:M.getToken(),defaultHome:""},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)},SET_DEFAULT_HOME(e,t){e.defaultHome=t}},actions:{async handleLogin({dispatch:e},{userName:t,password:i,validCodeId:n,validCodeInput:r}){const a=await M.loginApi({userName:t,password:i,validCodeId:n,validCodeInput:r});return e("loginSuccess",a.token),a.url},loginSuccess({commit:e,dispatch:t},i){M.clearUserInfoCache(),e("setToken",i),e("setTagNavList",[]),window.top===window.self&&M.clearPermissionCache()},async handleLogout({state:e,commit:t}){await M.logoutApi(e.token),t("setToken",""),t("setUserName",""),t("setUserManageUnitId",""),setTimeout(()=>{window.location.reload()},0)},async getUserInfo({commit:e}){const t=M.getUserInfoCache();if(t)return e("setAvatar",t.userAvater),e("setUserName",t.userName),e("setUserManageUnitId",t.manageUnitId),t;const{data:i}=await M.getUserInfoApi();return e("setAvatar",i.userAvater),e("setUserName",i.userName),e("setUserManageUnitId",i.manageUnitId),M.setUserInfoCache(i),i}}};const{homeRouteName:Jr}=Te,ZT=(e,t,i)=>{const n=Zo(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=Dn(i,Jr)},setBreadCrumb(e,t){e.breadCrumbList=Go(t,e.homeRoute)},setTagNavList(e,t){let i=[];t?i=[...t]:i=Jo()||[];let n=i.findIndex(r=>r.name===Jr);if(n==-1&&i.unshift({meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"},hideInMenu:!0,icon:"md-home",title:"\u9996\u9875",name:"home",params:{},query:{}}),i[0]&&i[0].name!==Jr&&i.shift(),n>0){let r=i.splice(n,1)[0];i.unshift(r)}e.tagNavList=i,ia([...i])},closeTag(e,{$router:t,route:i}){let n=e.tagNavList.filter(r=>Ki(r,i));i=n[0]?n[0]:null,i&&ZT(e,t,i)},addTag(e,{route:t,type:i="unshift"}){let n=Xo(t);Qo(e.tagNavList,n)||(console.log("type=="+i),i==="push"?(e.tagNavList.length>=e.maxTabNum+1&&e.tagNavList.splice(1,1),e.tagNavList.push(n)):n.name===Jr?e.tagNavList.unshift(n):e.tagNavList.splice(1,e.tagNavList.length>=e.maxTabNum?1:0,n),ia([...e.tagNavList]))},setActiveName(e,t){e.activeName=t},setCollectMenuList(e,t){e.collectMenuList=t},setMaxTabNum(e,t=5){M.setSessionStorage("maxTabNum",t),e.maxTabNum=t},setTheme(e,t){e.theme=t,M.setLocalStorage(Wi,t),wi(t)}},actions:{async getAppListData({commit:e,getters:t}){let i=t.getAppList;if(!i.length){const{data:r=[]}=await M.getAppListApi();i=r.filter(a=>a.basepath!=="/cmsadmin"),e("setAppList",i)}let n="";if(location.search){let r=/appId=([^&]*)/.exec(location.search);r&&r.length>1&&(n=r[1])}if(i.length==1&&(n=i[0].appId||""),!n){let r=i.find(a=>{var s;return((s=a.application)==null?void 0:s.appBizCode)=="mobile-main"})||{};n=(r==null?void 0:r.appId)||""}if(!n){const r=M.getSessionStorage("appInfo");n=(r==null?void 0:r.appId)||""}return n||(n=i.find(a=>{var s,o;return((o=(s=a.application)==null?void 0:s.extendProps)==null?void 0:o.is_mobile_app)=="1"}).appId||""),e("setAppInfo",n),i},async getPermissionData({commit:e}){const t=M.getPermissionCache();if(t){const i={};for(const n of t)n.permissionValue&&(i[n.permissionValue]=!0);return e("setPermissionList",t),e("setPermission",i),e("setMenuTreeList",Jf(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",Jf(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 EC(t)}catch(i){console.error("saveMyAppsList:",i)}},async getMyAppsList({commit:e},t){try{let{data:i}=await IC(t);i=i||"[]",e("setMyAppsList",i)}catch(i){console.error("getMyAppsList:",i)}}}};const t_={modules:{user:JT,app:QT}},Zr=function(e,t={theme:""}){if(Zr.installed)return;const i=t.theme||Yi();let n=t.config||{};if(y.default.isEmpty(n)||y.default.forEach(n,(r,a)=>{M.setConfig(a,r)}),wi(i),location.pathname.includes("scyxweb")){let r=location.protocol+"//"+location.host+"/hbwebchat/scyxweb/ind-mobile/manage/global?t="+new Date().getTime();M.axios.get(r).then(a=>{e.prototype.$config=y.default.merge({},e.prototype.$config||{},a)})}e.ready=M.axios.get("/user-manage-server/anon/system/qrySystemConfig",{params:{deviceType:"11"}}).then(r=>{var a;try{const s=JSON.parse(((a=r==null?void 0:r.data)==null?void 0:a.settingInfo)||"{}");if((s==null?void 0:s.systemDefaultConfig)&&s.systemDefaultConfig.extPropsList&&Array.isArray(s.systemDefaultConfig.extPropsList)){const l={};s.systemDefaultConfig.extPropsList.forEach(c=>{(c==null?void 0:c.key)&&c.value!==void 0&&(s.systemDefaultConfig.hasOwnProperty(c.key)&&console.warn(`\u914D\u7F6E\u952E\u540D ${c.key} \u91CD\u590D\uFF0C\u539F\u503C\u88AB\u8986\u76D6`,{oldValue:s.systemDefaultConfig[c.key],newValue:c.value}),l[c.key]=c.value)}),s.systemDefaultConfig={...s.systemDefaultConfig,...l}}e.prototype.$config=y.default.merge({},e.prototype.$config||{},s);const o=localStorage.getItem("systemDefaultConfig");if(o){const l=JSON.parse(o);y.default.isEqual(l,s)?console.log("\u914D\u7F6E\u76F8\u540C\uFF0C\u65E0\u9700\u66F4\u65B0"):(localStorage.removeItem("systemDefaultConfig"),localStorage.setItem("systemDefaultConfig",JSON.stringify(s)),console.log("\u914D\u7F6E\u4E0D\u540C\uFF0C\u5DF2\u66F4\u65B0"))}else localStorage.setItem("systemDefaultConfig",JSON.stringify(s)),console.log("\u9996\u6B21\u5B58\u50A8\u914D\u7F6E");return s.systemDefaultConfig.changeUI=="1"&&wi(i+" "+s.systemDefaultConfig.theme),s}catch(s){console.error("\u89E3\u6790 settingInfo \u5931\u8D25:",s)}}).catch(r=>{console.error("\u8BF7\u6C42\u5931\u8D25:",r)}),Object.keys(yo).forEach(r=>{e.component(`IndM${r}`,yo[r])}),Object.keys(bo).forEach(r=>{e.directive(r,bo[r])}),window.lastInnerHeight=window.innerHeight,window.addEventListener("resize",function(){var r=window.innerHeight;r<window.lastInnerHeight?(console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86"),Wo(),window.lastInnerHeight=window.innerHeight):(console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86"),window.lastInnerHeight=window.innerHeight)})};typeof window!="undefined"&&window.Vue&&Zr(window.Vue);const e_={version:_p.version,install:Zr,components:yo,plugins:kk,getDefaultTheme:Yi,doChangeTheme:wi,directives:bo};P.Apps=ho,P.AppsEdit=fo,P.AppsNew=vo,P.BasicLayout=yl,P.CHINESE_WEEKDAY_MAP=nm,P.Card=Bf,P.CardItem=Ff,P.DatePicker=Ko,P.Debug=el,P.DetailView=xl,P.EmptyLayout=$i,P.ErrorContent=ta,P.EventBus=rm,P.Form=sl,P.ImgLoad=zf,P.IndConfigPlugin=jf,P.IndRouterPlugin=Hf,P.InputSelect=Fd,P.LoadMore=ll,P.LoadingPanel=Of,P.Login=js,P.MyApps=Us,P.NotFound=Ui,P.PageView=kl,P.PopupView=_l,P.QueryView=El,P.Search=Ad,P.SelectBtn=zd,P.SelectPanel=Bd,P.Setting=go,P.THEME_KEY=Wi,P.UploadFile=Nf,P.User=Hs,P.User1=vl,P.addRouterGuards=qT,P.appItem=ze,P.bindFocus=In,P.createMacroBasicRoutes=Lk,P.createMicroBasicRoutes=Ak,P.default=e_,P.doChangeTheme=wi,P.formatServerTime=em,P.generateConfigByXml=En,P.getBreadCrumbList=Go,P.getDefaultTheme=Yi,P.getHomeRoute=Dn,P.getIconByPositionId=il,P.getImgByPermission=Xi,P.getMenuByRouter=qo,P.getNewTagList=um,P.getNextRoute=Zo,P.getRouteTitleHandled=Xo,P.getStyle=mm,P.getTagNavListFromLocalstorage=Jo,P.handleExpiredTime=im,P.install=Zr,P.permission=Kf,P.routeEqual=Ki,P.routeHasExist=Qo,P.routerOptions=GT,P.scrollToCurInput=Wo,P.setTagNavListInLocalstorage=ia,P.setTitle=lm,P.showTitle=cm,P.store=t_,P.tabbar=ti,P.transferIncrease=gm,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|