@indfnd/common-mobile 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.9](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.8...v1.0.9) (2025-12-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 修改 ([b865b85](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b865b8515dc097ad4f54474c32a717dbf8c0c18d))
|
|
11
|
+
|
|
5
12
|
### [1.0.8](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.7...v1.0.8) (2025-12-30)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
5
|
const name$1 = "@indfnd/common-mobile";
|
|
6
|
-
const version$2 = "1.0.
|
|
6
|
+
const version$2 = "1.0.8";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -28146,7 +28146,7 @@ var render$5 = function() {
|
|
|
28146
28146
|
return _c("div", { key: index2, staticClass: "ind-myApp-slim-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "50%" }, attrs: { "src": _vm.getImg(icon2.meta.icon), "alt": "icon" } })]);
|
|
28147
28147
|
}), _vm.showMoreIcon ? _c("div", { staticClass: "ind-myApp-slim-icon" }, [_vm._v(" " + _vm._s("...") + " ")]) : _vm._e()], 2) : _vm._e(), _vm.icons.length !== 0 ? _c("van-icon", { staticClass: "ind-myApp-slim-toggle-icon", class: { "ind-myApp-slim-rotate-down": _vm.expanded }, attrs: { "name": "arrow" } }) : _vm._e()], 1), _c("div", { staticClass: "ind-myApp-slim-content-button" }, [_c("div", { staticClass: "ind-myApp-slim-content-button-btn", on: { "click": _vm.edit } }, [_vm._v("\u7F16\u8F91")])])]), _vm.expanded ? _c("div", { staticStyle: { "width": "100%", "height": "auto", "background-color": "#fff" } }, [_c("van-swipe", { attrs: { "show-indicators": true, "loop": false, "indicator-color": "#005aaf" } }, _vm._l(_vm.list, function(page, pageIdx) {
|
|
28148
28148
|
return _c("van-swipe-item", { key: pageIdx }, [_c("div", { style: { paddingBottom: _vm.list.length > 1 ? "30px" : "0" } }, [_c("div", { staticClass: "ind-myApp-slim-content-content" }, _vm._l(page, function(item2, itemIdx) {
|
|
28149
|
-
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-content-content-item" }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo
|
|
28149
|
+
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-content-content-item" }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28150
28150
|
}), 0)])]);
|
|
28151
28151
|
}), 1)], 1) : _vm._e()]);
|
|
28152
28152
|
};
|
|
@@ -28244,7 +28244,7 @@ var render$4 = function() {
|
|
|
28244
28244
|
display: "flex",
|
|
28245
28245
|
alignItems: "center",
|
|
28246
28246
|
justifyContent: "center"
|
|
28247
|
-
} }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo
|
|
28247
|
+
} }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28248
28248
|
}), 0)]), _c("myapp", { attrs: { "icons": _vm.myAppList, "expanded": _vm.disMyapp, "list": _vm.paginatedApps }, on: { "edit": _vm.edit, "open": _vm.open } }), _c("div", { staticClass: "customnnnmmmm-tabs-container" }, [_c("div", { staticClass: "customnnnmmmm-tabs-header-wrapper" }, [_c("div", { ref: "tabsHeader", staticClass: "customnnnmmmm-tabs-header" }, _vm._l(_vm.apps_menus, function(tab, idx) {
|
|
28249
28249
|
return _c("div", { key: "tab" + idx, staticClass: "customnnnmmmm-tab-item", class: { active: _vm.active === idx }, on: { "click": function($event) {
|
|
28250
28250
|
return _vm.handleTabClick(idx);
|
|
@@ -28255,8 +28255,8 @@ var render$4 = function() {
|
|
|
28255
28255
|
} } }, [_c("span", { staticClass: "ind-m-sidebar-text" }, [_vm._v(_vm._s(item2.meta.title))])]);
|
|
28256
28256
|
}), 0), _c("div", { ref: "scrollContainer", staticClass: "ind-m-apps-container", staticStyle: { "padding-top": "0px", "padding-bottom": "500px", "height": "100%" } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
28257
28257
|
return _c("div", { key: index2, staticClass: "ind-m-menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "ind-m-divider-container" }, [_c("van-divider", { staticClass: "ind-m-custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", { staticClass: "ind-m-menu-section-content" }, _vm._l((((_vm.apps_menus[_vm.active] || {}).children || [])[index2] || {}).children || [], function(subItem, subIndex) {
|
|
28258
|
-
return _c("div", { key: "level3-" + subIndex, class: ["ind-m-app-item-wrapper", { "full-width": subItem.children }] }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo
|
|
28259
|
-
return _c("van-grid-item", { key: menu.meta.permissionId }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo
|
|
28258
|
+
return _c("div", { key: "level3-" + subIndex, class: ["ind-m-app-item-wrapper", { "full-width": subItem.children }] }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } }) : _vm._e(), subItem.children ? _c("div", { staticClass: "ind-m-category-header" }, [_c("div", { staticClass: "ind-m-category-indicator" }), _c("div", { staticClass: "ind-m-category-title" }, [_vm._v(_vm._s(subItem.meta.title))])]) : _vm._e(), subItem.children ? _c("van-grid", { attrs: { "border": false, "clickable": "", "gutter": 0, "column-num": 3 } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children[index2] && _vm.apps_menus[_vm.active].children[index2].children[subIndex] && _vm.apps_menus[_vm.active].children[index2].children[subIndex].children || [], function(menu) {
|
|
28259
|
+
return _c("van-grid-item", { key: menu.meta.permissionId }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28260
28260
|
}), 1) : _vm._e()], 1);
|
|
28261
28261
|
}), 0)]);
|
|
28262
28262
|
}), 0)])]), _c("tabbar")], 1)], 1);
|
|
@@ -28588,7 +28588,7 @@ var render$3 = function() {
|
|
|
28588
28588
|
display: "flex",
|
|
28589
28589
|
alignItems: "center",
|
|
28590
28590
|
justifyContent: "center"
|
|
28591
|
-
} }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo
|
|
28591
|
+
} }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28592
28592
|
}), 0)]), _c("myapp", { attrs: { "icons": _vm.myAppList, "expanded": _vm.disMyapp, "list": _vm.paginatedApps }, on: { "edit": _vm.edit, "open": _vm.open } }), _c("div", [_c("div", { staticClass: "customnnnmmmm-tabs-header-wrapper" }, [_c("div", { ref: "tabsHeader", staticClass: "customnnnmmmm-tabs-header" }, _vm._l(_vm.titleList, function(tab, idx) {
|
|
28593
28593
|
return _c("div", { key: "tab" + idx, staticClass: "customnnnmmmm-tab-item", class: { active: _vm.active === idx }, on: { "click": function($event) {
|
|
28594
28594
|
return _vm.handleTabClick(tab, idx);
|
|
@@ -28602,7 +28602,7 @@ var render$3 = function() {
|
|
|
28602
28602
|
display: "flex",
|
|
28603
28603
|
alignItems: "center",
|
|
28604
28604
|
justifyContent: "center"
|
|
28605
|
-
} }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo
|
|
28605
|
+
} }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "title": item2.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28606
28606
|
}), 0)]);
|
|
28607
28607
|
}), 0)]), _c("tabbar")], 1)], 1);
|
|
28608
28608
|
};
|
|
@@ -28897,7 +28897,6 @@ const __vue2_script$2 = {
|
|
|
28897
28897
|
}
|
|
28898
28898
|
let temps = menus.filter((item2) => item2.name === this.name);
|
|
28899
28899
|
this.apps_menus = temps[0].children;
|
|
28900
|
-
this.title = temps[0].meta.title;
|
|
28901
28900
|
this.appsMenusExtended(this.apps_menus);
|
|
28902
28901
|
const maxDepth = calculateMaxDepth(this.apps_menus);
|
|
28903
28902
|
this.depth = maxDepth;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(W,ji){typeof exports=="object"&&typeof module!="undefined"?ji(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],ji):(W=typeof globalThis!="undefined"?globalThis:W||self,ji(W.IndMobileCommon={},W.lodash,W["@indfnd/utils"],W.vue,W["view-design"]))})(this,function(W,ji,V,Jf,we){"use strict";function Io(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=Io(ji),Tt=Io(Jf),Qf={name:"@indfnd/common-mobile",version:"1.0.7",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.26",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},Zf=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)},$f=[];function at(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Xf={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)}}},Bo={};var _f=at(Xf,Zf,$f,!1,tp,null,null,null);function tp(e){for(let t in Bo)this[t]=Bo[t]}var ep=function(){return _f.exports}(),ip=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 rp={name:"IndErrorContent",components:{BackBtnGroup:ep},props:{code:String,desc:String,src:String}},Do={};var ap=at(rp,ip,np,!1,sp,null,null,null);function sp(e){for(let t in Do)this[t]=Do[t]}var $r=function(){return ap.exports}(),op=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}})},lp=[];const cp={name:"IndNotFound",components:{ErrorContent:$r},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Oo={};var up=at(cp,op,lp,!1,hp,null,null,null);function hp(e){for(let t in Oo)this[t]=Oo[t]}var Gi=function(){return up.exports}(),No=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function dp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fp(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 Lo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(No,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",g=/^(\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(F){var k=["th","st","nd","rd"],v=F%100;return"["+F+(k[(v-20)%10]||k[v]||k[0])+"]"}},I=function(F,k,v){var E=String(F);return!E||E.length>=k?F:""+Array(k+1-E.length).join(v)+F},M={s:I,z:function(F){var k=-F.utcOffset(),v=Math.abs(k),E=Math.floor(v/60),B=v%60;return(k<=0?"+":"-")+I(E,2,"0")+":"+I(B,2,"0")},m:function F(k,v){if(k.date()<v.date())return-F(v,k);var E=12*(v.year()-k.year())+(v.month()-k.month()),B=k.clone().add(E,d),Y=v-B<0,j=k.clone().add(E+(Y?-1:1),d);return+(-(E+(v-B)/(Y?B-j:j-B))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},T="en",D={};D[T]=x;var z="$isDayjsObject",q=function(F){return F instanceof et||!(!F||!F[z])},U=function F(k,v,E){var B;if(!k)return T;if(typeof k=="string"){var Y=k.toLowerCase();D[Y]&&(B=Y),v&&(D[Y]=v,B=Y);var j=k.split("-");if(!B&&j.length>1)return F(j[0])}else{var S=k.name;D[S]=k,B=S}return!E&&B&&(T=B),B||!E&&T},P=function(F,k){if(q(F))return F.clone();var v=typeof k=="object"?k:{};return v.date=F,v.args=arguments,new et(v)},N=M;N.l=U,N.i=q,N.w=function(F,k){return P(F,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var et=function(){function F(v){this.$L=U(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[z]=!0}var k=F.prototype;return k.parse=function(v){this.$d=function(E){var B=E.date,Y=E.utc;if(B===null)return new Date(NaN);if(N.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var j=B.match(g);if(j){var S=j[2]-1||0,y=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],S,j[3]||1,j[4]||0,j[5]||0,j[6]||0,y)):new Date(j[1],S,j[3]||1,j[4]||0,j[5]||0,j[6]||0,y)}}return new Date(B)}(v),this.init()},k.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},k.$utils=function(){return N},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(v,E){var B=P(v);return this.startOf(E)<=B&&B<=this.endOf(E)},k.isAfter=function(v,E){return P(v)<this.startOf(E)},k.isBefore=function(v,E){return this.endOf(E)<P(v)},k.$g=function(v,E,B){return N.u(v)?this[E]:this.set(B,v)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(v,E){var B=this,Y=!!N.u(E)||E,j=N.p(v),S=function(kt,xt){var Oe=N.w(B.$u?Date.UTC(B.$y,xt,kt):new Date(B.$y,xt,kt),B);return Y?Oe:Oe.endOf(c)},y=function(kt,xt){return N.w(B.toDate()[kt].apply(B.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xt)),B)},A=this.$W,R=this.$M,K=this.$D,J="set"+(this.$u?"UTC":"");switch(j){case f:return Y?S(1,0):S(31,11);case d:return Y?S(1,R):S(0,R+1);case h:var _=this.$locale().weekStart||0,ct=(A<_?A+7:A)-_;return S(Y?K-ct:K+(6-ct),R);case c:case p:return y(J+"Hours",0);case l:return y(J+"Minutes",1);case o:return y(J+"Seconds",2);case s:return y(J+"Milliseconds",3);default:return this.clone()}},k.endOf=function(v){return this.startOf(v,!1)},k.$set=function(v,E){var B,Y=N.p(v),j="set"+(this.$u?"UTC":""),S=(B={},B[c]=j+"Date",B[p]=j+"Date",B[d]=j+"Month",B[f]=j+"FullYear",B[l]=j+"Hours",B[o]=j+"Minutes",B[s]=j+"Seconds",B[a]=j+"Milliseconds",B)[Y],y=Y===c?this.$D+(E-this.$W):E;if(Y===d||Y===f){var A=this.clone().set(p,1);A.$d[S](y),A.init(),this.$d=A.set(p,Math.min(this.$D,A.daysInMonth())).$d}else S&&this.$d[S](y);return this.init(),this},k.set=function(v,E){return this.clone().$set(v,E)},k.get=function(v){return this[N.p(v)]()},k.add=function(v,E){var B,Y=this;v=Number(v);var j=N.p(E),S=function(R){var K=P(Y);return N.w(K.date(K.date()+Math.round(R*v)),Y)};if(j===d)return this.set(d,this.$M+v);if(j===f)return this.set(f,this.$y+v);if(j===c)return S(1);if(j===h)return S(7);var y=(B={},B[o]=n,B[l]=r,B[s]=i,B)[j]||1,A=this.$d.getTime()+v*y;return N.w(A,this)},k.subtract=function(v,E){return this.add(-1*v,E)},k.format=function(v){var E=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var Y=v||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),S=this.$H,y=this.$m,A=this.$M,R=B.weekdays,K=B.months,J=B.meridiem,_=function(xt,Oe,An,Zr){return xt&&(xt[Oe]||xt(E,Y))||An[Oe].slice(0,Zr)},ct=function(xt){return N.s(S%12||12,xt,"0")},kt=J||function(xt,Oe,An){var Zr=xt<12?"AM":"PM";return An?Zr.toLowerCase():Zr};return Y.replace(C,function(xt,Oe){return Oe||function(An){switch(An){case"YY":return String(E.$y).slice(-2);case"YYYY":return N.s(E.$y,4,"0");case"M":return A+1;case"MM":return N.s(A+1,2,"0");case"MMM":return _(B.monthsShort,A,K,3);case"MMMM":return _(K,A);case"D":return E.$D;case"DD":return N.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return _(B.weekdaysMin,E.$W,R,2);case"ddd":return _(B.weekdaysShort,E.$W,R,3);case"dddd":return R[E.$W];case"H":return String(S);case"HH":return N.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,y,!0);case"A":return kt(S,y,!1);case"m":return String(y);case"mm":return N.s(y,2,"0");case"s":return String(E.$s);case"ss":return N.s(E.$s,2,"0");case"SSS":return N.s(E.$ms,3,"0");case"Z":return j}return null}(xt)||j.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(v,E,B){var Y,j=this,S=N.p(E),y=P(v),A=(y.utcOffset()-this.utcOffset())*n,R=this-y,K=function(){return N.m(j,y)};switch(S){case f:Y=K()/12;break;case d:Y=K();break;case u:Y=K()/3;break;case h:Y=(R-A)/6048e5;break;case c:Y=(R-A)/864e5;break;case l:Y=R/r;break;case o:Y=R/n;break;case s:Y=R/i;break;default:Y=R}return B?Y:N.a(Y)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return D[this.$L]},k.locale=function(v,E){if(!v)return this.$L;var B=this.clone(),Y=U(v,E,!0);return Y&&(B.$L=Y),B},k.clone=function(){return N.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()},F}(),ot=et.prototype;return P.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(F){ot[F[1]]=function(k){return this.$g(k,F[0],F[1])}}),P.extend=function(F,k){return F.$i||(F(k,et,P),F.$i=!0),P},P.locale=U,P.isDayjs=q,P.unix=function(F){return P(1e3*F)},P.en=D[T],P.Ls=D,P.p={},P})})(Lo);var yi=Lo.exports,pp=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)},mp=[];const Vo=new Date().getFullYear(),Po=new Date().getMonth()+1,gp=`Q${V.getQuarterNum(Po)}`,vp=`H${V.getHalfYearNum(Po)}`,Ro=10,qo=10,yp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?yi(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Vo+gp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+qo;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+vp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+qo;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?yi(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?V.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=yi(this.dateValue).format("YYYYMM");else if(this.type=="date")i=yi(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}}},Fo={};var bp=at(yp,pp,mp,!1,Sp,null,null,null);function Sp(e){for(let t in Fo)this[t]=Fo[t]}var Uo=function(){return bp.exports}();function Xr(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Cp(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Ap(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 _r(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Ap(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=>_r(l)):o=[_r(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function ta(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return _r(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 xp=!1;var Ye=V.useConfig(xp);new Tt.default;const wp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},kp=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},Tp=(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},Yo=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Mp=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},ea=(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=ea(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Ep=(e,t)=>{let i={};if(e.length===2)i=ea(e);else{const n=e.findIndex(r=>xn(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Ip=(e,t)=>{let i=e.length,n=!1;return wp(i,r=>{xn(e[r],t)&&(n=!0)}),n},xn=(e,t)=>e.name===t.name;var jo={exports:{}};/*!
|
|
1
|
+
(function(W,ji){typeof exports=="object"&&typeof module!="undefined"?ji(exports,require("lodash"),require("@indfnd/utils"),require("vue"),require("view-design")):typeof define=="function"&&define.amd?define(["exports","lodash","@indfnd/utils","vue","view-design"],ji):(W=typeof globalThis!="undefined"?globalThis:W||self,ji(W.IndMobileCommon={},W.lodash,W["@indfnd/utils"],W.vue,W["view-design"]))})(this,function(W,ji,V,Jf,we){"use strict";function Io(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=Io(ji),Tt=Io(Jf),Qf={name:"@indfnd/common-mobile",version:"1.0.8",author:"huxuetong",publishConfig:{registry:"https://registry.npmjs.org/"},main:"./dist/ind-common-mobile.umd.cjs",module:"./dist/ind-common-mobile.es.js",style:"./dist/styles/index.css",types:"./types/index.d.ts",exports:{".":{import:"./dist/ind-common-mobile.es.js",require:"./dist/ind-common-mobile.umd.cjs"},"./dist/styles/index.css":{import:"./dist/styles/index.css",require:"./dist/styles/index.css"},"./src/styles/variables/index.less":{import:"./src/styles/variables/index.less",require:"./src/styles/variables/index.less"}},files:["dist","types","global.d.ts","src/styles/variables"],scripts:{"build:prod":"vite build","build:style":"gulp --gulpfile build/build-style.js",build:"yarn build:prod && yarn build:style","type-check":"vue-tsc --noEmit -p tsconfig.check.json --composite false",dts:"vue-tsc -p tsconfig.types.json",release:"node build/auto-build.js && yarn release-patch && git push --follow-tags && yarn re-publish","release-major":"standard-version --release-as major","release-minor":"standard-version --release-as minor","release-patch":"standard-version --release-as patch","re-publish":"yarn publish --access public"},dependencies:{classnames:"^2.5.1",vuedraggable:"^2.24.3"},devDependencies:{lodash:"4.17.21","@indfnd/utils":"^0.1.26",eslint:"^3.19.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^2.1.0",gulp:"^4.0.2","gulp-autoprefixer":"^8.0.0","gulp-clean-css":"^4.3.0","gulp-less":"^5.0.0","gulp-rename":"^2.0.0","gulp-replace":"^1.1.4",less:"^4.1.3",prettier:"^2.7.1","rollup-plugin-visualizer":"4.2.0","standard-version":"^9.5.0",typescript:"^5.1.6",vant:"^2.13.2","view-design":"^4.6.1",vite:"^2.0.5","vite-plugin-eslint":"1.3.0","vite-plugin-resolve-externals":"^0.2.2","vite-plugin-vue2":"^1.3.2",vue:"^2.6.14","vue-property-decorator":"^8.5.1","vue-router":"^3.5.3","vue-template-compiler":"^2.6.12","vue-tsc":"^1.8.8",vuex:"^3.6.2"},engines:{node:">= 16"}},Zf=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)},$f=[];function at(e,t,i,n,r,a,s,o){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a);var c;if(s?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),r&&r.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var h=l.render;l.render=function(f,p){return c.call(p),h(f,p)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}const Xf={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)}}},Bo={};var _f=at(Xf,Zf,$f,!1,tp,null,null,null);function tp(e){for(let t in Bo)this[t]=Bo[t]}var ep=function(){return _f.exports}(),ip=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 rp={name:"IndErrorContent",components:{BackBtnGroup:ep},props:{code:String,desc:String,src:String}},Do={};var ap=at(rp,ip,np,!1,sp,null,null,null);function sp(e){for(let t in Do)this[t]=Do[t]}var $r=function(){return ap.exports}(),op=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}})},lp=[];const cp={name:"IndNotFound",components:{ErrorContent:$r},data(){return{src:`${location.protocol}//${location.host}`+(location.pathname.includes("scyxweb")?"/scyxweb":"")+"/ind-mobile/imgs/error-page/error-404.svg"}}},Oo={};var up=at(cp,op,lp,!1,hp,null,null,null);function hp(e){for(let t in Oo)this[t]=Oo[t]}var Gi=function(){return up.exports}(),No=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function dp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fp(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 Lo={exports:{}};(function(e,t){(function(i,n){e.exports=n()})(No,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",p="date",m="Invalid Date",g=/^(\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(F){var k=["th","st","nd","rd"],v=F%100;return"["+F+(k[(v-20)%10]||k[v]||k[0])+"]"}},I=function(F,k,v){var E=String(F);return!E||E.length>=k?F:""+Array(k+1-E.length).join(v)+F},M={s:I,z:function(F){var k=-F.utcOffset(),v=Math.abs(k),E=Math.floor(v/60),B=v%60;return(k<=0?"+":"-")+I(E,2,"0")+":"+I(B,2,"0")},m:function F(k,v){if(k.date()<v.date())return-F(v,k);var E=12*(v.year()-k.year())+(v.month()-k.month()),B=k.clone().add(E,d),Y=v-B<0,j=k.clone().add(E+(Y?-1:1),d);return+(-(E+(v-B)/(Y?B-j:j-B))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:d,y:f,w:h,d:c,D:p,h:l,m:o,s,ms:a,Q:u}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},T="en",D={};D[T]=x;var z="$isDayjsObject",q=function(F){return F instanceof et||!(!F||!F[z])},U=function F(k,v,E){var B;if(!k)return T;if(typeof k=="string"){var Y=k.toLowerCase();D[Y]&&(B=Y),v&&(D[Y]=v,B=Y);var j=k.split("-");if(!B&&j.length>1)return F(j[0])}else{var S=k.name;D[S]=k,B=S}return!E&&B&&(T=B),B||!E&&T},P=function(F,k){if(q(F))return F.clone();var v=typeof k=="object"?k:{};return v.date=F,v.args=arguments,new et(v)},N=M;N.l=U,N.i=q,N.w=function(F,k){return P(F,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var et=function(){function F(v){this.$L=U(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[z]=!0}var k=F.prototype;return k.parse=function(v){this.$d=function(E){var B=E.date,Y=E.utc;if(B===null)return new Date(NaN);if(N.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var j=B.match(g);if(j){var S=j[2]-1||0,y=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],S,j[3]||1,j[4]||0,j[5]||0,j[6]||0,y)):new Date(j[1],S,j[3]||1,j[4]||0,j[5]||0,j[6]||0,y)}}return new Date(B)}(v),this.init()},k.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},k.$utils=function(){return N},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(v,E){var B=P(v);return this.startOf(E)<=B&&B<=this.endOf(E)},k.isAfter=function(v,E){return P(v)<this.startOf(E)},k.isBefore=function(v,E){return this.endOf(E)<P(v)},k.$g=function(v,E,B){return N.u(v)?this[E]:this.set(B,v)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(v,E){var B=this,Y=!!N.u(E)||E,j=N.p(v),S=function(kt,xt){var Oe=N.w(B.$u?Date.UTC(B.$y,xt,kt):new Date(B.$y,xt,kt),B);return Y?Oe:Oe.endOf(c)},y=function(kt,xt){return N.w(B.toDate()[kt].apply(B.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xt)),B)},A=this.$W,R=this.$M,K=this.$D,J="set"+(this.$u?"UTC":"");switch(j){case f:return Y?S(1,0):S(31,11);case d:return Y?S(1,R):S(0,R+1);case h:var _=this.$locale().weekStart||0,ct=(A<_?A+7:A)-_;return S(Y?K-ct:K+(6-ct),R);case c:case p:return y(J+"Hours",0);case l:return y(J+"Minutes",1);case o:return y(J+"Seconds",2);case s:return y(J+"Milliseconds",3);default:return this.clone()}},k.endOf=function(v){return this.startOf(v,!1)},k.$set=function(v,E){var B,Y=N.p(v),j="set"+(this.$u?"UTC":""),S=(B={},B[c]=j+"Date",B[p]=j+"Date",B[d]=j+"Month",B[f]=j+"FullYear",B[l]=j+"Hours",B[o]=j+"Minutes",B[s]=j+"Seconds",B[a]=j+"Milliseconds",B)[Y],y=Y===c?this.$D+(E-this.$W):E;if(Y===d||Y===f){var A=this.clone().set(p,1);A.$d[S](y),A.init(),this.$d=A.set(p,Math.min(this.$D,A.daysInMonth())).$d}else S&&this.$d[S](y);return this.init(),this},k.set=function(v,E){return this.clone().$set(v,E)},k.get=function(v){return this[N.p(v)]()},k.add=function(v,E){var B,Y=this;v=Number(v);var j=N.p(E),S=function(R){var K=P(Y);return N.w(K.date(K.date()+Math.round(R*v)),Y)};if(j===d)return this.set(d,this.$M+v);if(j===f)return this.set(f,this.$y+v);if(j===c)return S(1);if(j===h)return S(7);var y=(B={},B[o]=n,B[l]=r,B[s]=i,B)[j]||1,A=this.$d.getTime()+v*y;return N.w(A,this)},k.subtract=function(v,E){return this.add(-1*v,E)},k.format=function(v){var E=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var Y=v||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),S=this.$H,y=this.$m,A=this.$M,R=B.weekdays,K=B.months,J=B.meridiem,_=function(xt,Oe,An,Zr){return xt&&(xt[Oe]||xt(E,Y))||An[Oe].slice(0,Zr)},ct=function(xt){return N.s(S%12||12,xt,"0")},kt=J||function(xt,Oe,An){var Zr=xt<12?"AM":"PM";return An?Zr.toLowerCase():Zr};return Y.replace(C,function(xt,Oe){return Oe||function(An){switch(An){case"YY":return String(E.$y).slice(-2);case"YYYY":return N.s(E.$y,4,"0");case"M":return A+1;case"MM":return N.s(A+1,2,"0");case"MMM":return _(B.monthsShort,A,K,3);case"MMMM":return _(K,A);case"D":return E.$D;case"DD":return N.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return _(B.weekdaysMin,E.$W,R,2);case"ddd":return _(B.weekdaysShort,E.$W,R,3);case"dddd":return R[E.$W];case"H":return String(S);case"HH":return N.s(S,2,"0");case"h":return ct(1);case"hh":return ct(2);case"a":return kt(S,y,!0);case"A":return kt(S,y,!1);case"m":return String(y);case"mm":return N.s(y,2,"0");case"s":return String(E.$s);case"ss":return N.s(E.$s,2,"0");case"SSS":return N.s(E.$ms,3,"0");case"Z":return j}return null}(xt)||j.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(v,E,B){var Y,j=this,S=N.p(E),y=P(v),A=(y.utcOffset()-this.utcOffset())*n,R=this-y,K=function(){return N.m(j,y)};switch(S){case f:Y=K()/12;break;case d:Y=K();break;case u:Y=K()/3;break;case h:Y=(R-A)/6048e5;break;case c:Y=(R-A)/864e5;break;case l:Y=R/r;break;case o:Y=R/n;break;case s:Y=R/i;break;default:Y=R}return B?Y:N.a(Y)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return D[this.$L]},k.locale=function(v,E){if(!v)return this.$L;var B=this.clone(),Y=U(v,E,!0);return Y&&(B.$L=Y),B},k.clone=function(){return N.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()},F}(),ot=et.prototype;return P.prototype=ot,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",d],["$y",f],["$D",p]].forEach(function(F){ot[F[1]]=function(k){return this.$g(k,F[0],F[1])}}),P.extend=function(F,k){return F.$i||(F(k,et,P),F.$i=!0),P},P.locale=U,P.isDayjs=q,P.unix=function(F){return P(1e3*F)},P.en=D[T],P.Ls=D,P.p={},P})})(Lo);var yi=Lo.exports,pp=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)},mp=[];const Vo=new Date().getFullYear(),Po=new Date().getMonth()+1,gp=`Q${V.getQuarterNum(Po)}`,vp=`H${V.getHalfYearNum(Po)}`,Ro=10,qo=10,yp={inheritAttrs:!1,props:{type:{type:String,default:"date"},fullYear:{type:Boolean,default:!1},value:String,defaultVisible:Boolean,readonly:Boolean},data(){return{visible:!1,dateValue:new Date,inputIcon:"ios-arrow-forward",dataList:[{values:[],defaultIndex:1},{values:[],defaultIndex:1}],quarterList:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"Q1",startMonth:"01",endMonth:"03"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"Q2",startMonth:"04",endMonth:"06"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"Q3",startMonth:"07",endMonth:"09"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"Q4",startMonth:"10",endMonth:"12"}],halfList:[{label:"\u4E0A\u534A\u5E74",value:"H1",startMonth:"01",endMonth:"06"},{label:"\u4E0B\u534A\u5E74",value:"H2",startMonth:"07",endMonth:"12"}]}},created(){if(this.visible=this.defaultVisible,this.dateValue=this.value?yi(this.value).toDate():new Date,this.type=="year-quarter"){this.dateValue=this.value?getQuarter(this.value):Vo+gp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+qo;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+vp;let e=parseInt(this.dateValue.substring(0,4)),t=this.dateValue.substring(4,6);for(let r=e-Ro;r<=e+qo;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?yi(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?V.formatDate(this.value):""}},methods:{emitValue(e,t){let i;if(this.type=="year-month")i=yi(this.dateValue).format("YYYYMM");else if(this.type=="date")i=yi(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}}},Fo={};var bp=at(yp,pp,mp,!1,Sp,null,null,null);function Sp(e){for(let t in Fo)this[t]=Fo[t]}var Uo=function(){return bp.exports}();function Xr(e){window.curTarget=e.target||e.srcElement||e.curTarget}function Cp(){setTimeout(()=>{var e;(e=window==null?void 0:window.curTarget)==null||e.scrollIntoView({block:"center",behavior:"smooth"})},0)}function Ap(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 _r(e,t){let i=e.column||[];i instanceof Array||(i=[i]),i=i.map(l=>{let c={...l._attributes};c.id=t?Ap(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=>_r(l)):o=[_r(s)]),{...e._attributes,columns:n,searchFormFields:r,formFieldList:a,subTable:o}}function ta(e,t){if(!e)return{};try{let n=JSON.parse(xml2json(e,{compact:!0})).table;return _r(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 xp=!1;var Ye=V.useConfig(xp);new Tt.default;const wp=(e,t)=>{let i=-1;for(;++i<e;)t(i)},kp=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},Tp=(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},Yo=e=>{sessionStorage.tagNaveList=JSON.stringify(e)},Mp=()=>{const e=sessionStorage.tagNaveList;return e?JSON.parse(e):[]},ea=(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=ea(a.children,t);if(s.name)return s}else a.name===t&&(r=a)}return r},Ep=(e,t)=>{let i={};if(e.length===2)i=ea(e);else{const n=e.findIndex(r=>xn(r,t));n===e.length-1?i=e[e.length-2]:i=e[n+1]}return i},Ip=(e,t)=>{let i=e.length,n=!1;return wp(i,r=>{xn(e[r],t)&&(n=!0)}),n},xn=(e,t)=>e.name===t.name;var jo={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
* @license MIT
|
|
18
18
|
*/function Sr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sr=function(t){return typeof t}:Sr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function Yx(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function se(){return se=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},se.apply(this,arguments)}function Xe(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){Yx(e,r,i[r])})}return e}function jx(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 Gx(e,t){if(e==null)return{};var i=jx(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 Kx(e){return Hx(e)||zx(e)||Wx()}function Hx(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 zx(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Wx(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Jx="1.10.2";function Fe(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Ue=Fe(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),on=Fe(/Edge/i),Nd=Fe(/firefox/i),Ys=Fe(/safari/i)&&!Fe(/chrome/i)&&!Fe(/android/i),Ld=Fe(/iP(ad|od|hone)/i),Qx=Fe(/chrome/i)&&Fe(/android/i),Vd={capture:!1,passive:!1};function nt(e,t,i){e.addEventListener(t,i,!Ue&&Vd)}function X(e,t,i){e.removeEventListener(t,i,!Ue&&Vd)}function Cr(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 Zx(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Se(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Cr(e,t):Cr(e,t))||n&&e===i)return e;if(e===i)break}while(e=Zx(e))}return null}var Pd=/\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(Pd," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(Pd," ")}}function G(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 fi(e,t){var i="";if(typeof e=="string")i=e;else do{var n=G(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 Rd(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 De(){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!==De()?(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,!Ue))do if(r&&r.getBoundingClientRect&&(G(r,"transform")!=="none"||i&&G(r,"position")!=="static")){var u=r.getBoundingClientRect();s-=u.top+parseInt(G(r,"border-top-width")),o-=u.left+parseInt(G(r,"border-left-width")),l=s+a.height,c=o+a.width;break}while(r=r.parentNode);if(n&&e!==window){var f=fi(r||e),p=f&&f.a,m=f&&f.d;f&&(s/=m,o/=p,d/=p,h/=m,l=s+h,c=o+d)}return{top:s,left:o,bottom:l,right:c,width:d,height:h}}}function qd(e,t,i){for(var n=_e(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===De())break;n=_e(n,!1)}return!1}function Ar(e,t,i){for(var n=0,r=0,a=e.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==H.ghost&&a[r]!==H.dragged&&Se(a[r],i.draggable,e,!1)){if(n===t)return a[r];n++}r++}return null}function js(e,t){for(var i=e.lastElementChild;i&&(i===H.ghost||G(i,"display")==="none"||t&&!Cr(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!==H.clone&&(!t||Cr(e,t))&&i++;return i}function Fd(e){var t=0,i=0,n=De();if(e)do{var r=fi(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 $x(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 _e(e,t){if(!e||!e.getBoundingClientRect)return De();var i=e,n=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=G(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 De();if(n||t)return i;n=!0}}while(i=i.parentNode);return De()}function Xx(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Gs(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 ln;function Ud(e,t){return function(){if(!ln){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),ln=setTimeout(function(){ln=void 0},t)}}}function _x(){clearTimeout(ln),ln=void 0}function Yd(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Ks(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 jd(e,t){G(e,"position","absolute"),G(e,"top",t.top),G(e,"left",t.left),G(e,"width",t.width),G(e,"height",t.height)}function Hs(e){G(e,"position",""),G(e,"top",""),G(e,"left",""),G(e,"width",""),G(e,"height","")}var Lt="Sortable"+new Date().getTime();function tw(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(G(r,"display")==="none"||r===H.ghost)){e.push({target:r,rect:pt(r)});var a=Xe({},e[e.length-1].rect);if(r.thisAnimationDuration){var s=fi(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($x(e,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var a=!1,s=0;e.forEach(function(o){var l=0,c=o.target,h=c.fromRect,d=pt(c),u=c.prevFromRect,f=c.prevToRect,p=o.rect,m=fi(c,!0);m&&(d.top-=m.f,d.left-=m.e),c.toRect=d,c.thisAnimationDuration&&Gs(u,d)&&!Gs(h,d)&&(p.top-d.top)/(p.left-d.left)===(h.top-d.top)/(h.left-d.left)&&(l=iw(p,u,f,r.options)),Gs(d,h)||(c.prevFromRect=h,c.prevToRect=d,l||(l=r.options.animation),r.animate(c,p,d,l)),l&&(a=!0,s=Math.max(s,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,r,a,s){if(s){G(n,"transition",""),G(n,"transform","");var o=fi(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,G(n,"transform","translate3d("+h+"px,"+d+"px,0)"),ew(n),G(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),G(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){G(n,"transition",""),G(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function ew(e){return e.offsetWidth}function iw(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 cn=[],zs={initializeByDefault:!0},un={mount:function(t){for(var i in zs)zs.hasOwnProperty(i)&&!(i in t)&&(t[i]=zs[i]);cn.push(t)},pluginEvent:function(t,i,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=t+"Global";cn.forEach(function(s){!i[s.pluginName]||(i[s.pluginName][a]&&i[s.pluginName][a](Xe({sortable:i},n)),i.options[s.pluginName]&&i[s.pluginName][t]&&i[s.pluginName][t](Xe({sortable:i},n)))})},initializePlugins:function(t,i,n,r){cn.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,se(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 cn.forEach(function(r){typeof r.eventProperties=="function"&&se(n,r.eventProperties.call(i[r.pluginName],t))}),n},modifyOption:function(t,i,n){var r;return cn.forEach(function(a){!t[a.pluginName]||a.optionListeners&&typeof a.optionListeners[i]=="function"&&(r=a.optionListeners[i].call(t[a.pluginName],n))}),r}};function hn(e){var t=e.sortable,i=e.rootEl,n=e.name,r=e.targetEl,a=e.cloneEl,s=e.toEl,o=e.fromEl,l=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,d=e.newDraggableIndex,u=e.originalEvent,f=e.putSortable,p=e.extraEventProperties;if(t=t||i&&i[Lt],!!t){var m,g=t.options,C="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Ue&&!on?m=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(n,!0,!0)),m.to=s||i,m.from=o||i,m.item=r||i,m.clone=a,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=h,m.newDraggableIndex=d,m.originalEvent=u,m.pullMode=f?f.lastPutMode:void 0;var x=Xe({},p,un.getEventProperties(n,t));for(var I in x)m[I]=x[I];i&&i.dispatchEvent(m),g[C]&&g[C].call(t,m)}}var Ht=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,a=Gx(n,["evt"]);un.pluginEvent.bind(H)(t,i,Xe({dragEl:L,parentEl:yt,ghostEl:Z,rootEl:dt,nextEl:pi,lastDownEl:xr,cloneEl:gt,cloneHidden:ti,dragStarted:fn,putSortable:Bt,activeSortable:H.active,originalEvent:r,oldIndex:Pi,oldDraggableIndex:dn,newIndex:Jt,newDraggableIndex:ei,hideGhostForTarget:Qd,unhideGhostForTarget:Zd,cloneNowHidden:function(){ti=!0},cloneNowShown:function(){ti=!1},dispatchSortableEvent:function(o){qt({sortable:i,name:o,originalEvent:r})}},a))};function qt(e){hn(Xe({putSortable:Bt,cloneEl:gt,targetEl:L,rootEl:dt,oldIndex:Pi,oldDraggableIndex:dn,newIndex:Jt,newDraggableIndex:ei},e))}var L,yt,Z,dt,pi,xr,gt,ti,Pi,Jt,dn,ei,wr,Bt,Ri=!1,kr=!1,Tr=[],mi,Ce,Ws,Js,Gd,Kd,fn,qi,pn,mn=!1,Mr=!1,Er,Vt,Qs=[],Zs=!1,Ir=[],Br=typeof document!="undefined",Dr=Ld,Hd=on||Ue?"cssFloat":"float",nw=Br&&!Qx&&!Ld&&"draggable"in document.createElement("div"),zd=function(){if(!!Br){if(Ue)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Wd=function(t,i){var n=G(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Ar(t,0,i),s=Ar(t,1,i),o=a&&G(a),l=s&&G(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[Hd]==="none"||s&&n[Hd]==="none"&&c+h>r)?"vertical":"horizontal"},rw=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},aw=function(t,i){var n;return Tr.some(function(r){if(!js(r)){var a=pt(r),s=r[Lt].options.emptyInsertThreshold,o=t>=a.left-s&&t<=a.right+s,l=i>=a.top-s&&i<=a.bottom+s;if(s&&o&&l)return n=r}}),n},Jd=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||Sr(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},Qd=function(){!zd&&Z&&G(Z,"display","none")},Zd=function(){!zd&&Z&&G(Z,"display","")};Br&&document.addEventListener("click",function(e){if(kr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),kr=!1,!1},!0);var gi=function(t){if(L){t=t.touches?t.touches[0]:t;var i=aw(t.clientX,t.clientY);if(i){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[Lt]._onDragOver(n)}}},sw=function(t){L&&L.parentNode[Lt]._isOutsideThisEl(t.target)};function H(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=se({},t),e[Lt]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Wd(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:H.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};un.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);Jd(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:nw,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?nt(e,"pointerdown",this._onTapStart):(nt(e,"mousedown",this._onTapStart),nt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(nt(e,"dragover",this),nt(e,"dragenter",this)),Tr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),se(this,tw())}H.prototype={constructor:H,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(qi=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,L):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(fw(n),!L&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!c.isContentEditable&&(l=Se(l,r.draggable,n,!1),!(l&&l.animated)&&xr!==l)){if(Pi=mt(l),dn=mt(l,r.draggable),typeof h=="function"){if(h.call(this,t,l,this)){qt({sortable:i,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),Ht("filter",i,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(d){if(d=Se(c,d.trim(),n,!1),d)return qt({sortable:i,rootEl:d,name:"filter",targetEl:l,fromEl:n,toEl:n}),Ht("filter",i,{evt:t}),!0}),h)){a&&t.cancelable&&t.preventDefault();return}r.handle&&!Se(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&&!L&&n.parentNode===a){var c=pt(n);if(dt=a,L=n,yt=L.parentNode,pi=L.nextSibling,xr=n,wr=s.group,H.dragged=L,mi={target:L,clientX:(i||t).clientX,clientY:(i||t).clientY},Gd=mi.clientX-c.left,Kd=mi.clientY-c.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,L.style["will-change"]="all",l=function(){if(Ht("delayEnded",r,{evt:t}),H.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Nd&&r.nativeDraggable&&(L.draggable=!0),r._triggerDragStart(t,i),qt({sortable:r,name:"choose",originalEvent:t}),ht(L,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Rd(L,h.trim(),Xs)}),nt(o,"dragover",gi),nt(o,"mousemove",gi),nt(o,"touchmove",gi),nt(o,"mouseup",r._onDrop),nt(o,"touchend",r._onDrop),nt(o,"touchcancel",r._onDrop),Nd&&this.nativeDraggable&&(this.options.touchStartThreshold=4,L.draggable=!0),Ht("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(on||Ue))){if(H.eventCanceled){this._onDrop();return}nt(o,"mouseup",r._disableDelayedDrag),nt(o,"touchend",r._disableDelayedDrag),nt(o,"touchcancel",r._disableDelayedDrag),nt(o,"mousemove",r._delayedDragTouchMoveHandler),nt(o,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&nt(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(){L&&Xs(L),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;X(t,"mouseup",this._disableDelayedDrag),X(t,"touchend",this._disableDelayedDrag),X(t,"touchcancel",this._disableDelayedDrag),X(t,"mousemove",this._delayedDragTouchMoveHandler),X(t,"touchmove",this._delayedDragTouchMoveHandler),X(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?nt(document,"pointermove",this._onTouchMove):i?nt(document,"touchmove",this._onTouchMove):nt(document,"mousemove",this._onTouchMove):(nt(L,"dragend",this),nt(dt,"dragstart",this._onDragStart));try{document.selection?Or(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(Ri=!1,dt&&L){Ht("dragStarted",this,{evt:i}),this.nativeDraggable&&nt(document,"dragover",sw);var n=this.options;!t&&ht(L,n.dragClass,!1),ht(L,n.ghostClass,!0),H.active=this,t&&this._appendGhost(),qt({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(Ce){this._lastX=Ce.clientX,this._lastY=Ce.clientY,Qd();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(L.parentNode[Lt]._isOutsideThisEl(t),i)do{if(i[Lt]){var n=void 0;if(n=i[Lt]._onDragOver({clientX:Ce.clientX,clientY:Ce.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);Zd()}},_onTouchMove:function(t){if(mi){var i=this.options,n=i.fallbackTolerance,r=i.fallbackOffset,a=t.touches?t.touches[0]:t,s=Z&&fi(Z,!0),o=Z&&s&&s.a,l=Z&&s&&s.d,c=Dr&&Vt&&Fd(Vt),h=(a.clientX-mi.clientX+r.x)/(o||1)+(c?c[0]-Qs[0]:0)/(o||1),d=(a.clientY-mi.clientY+r.y)/(l||1)+(c?c[1]-Qs[1]:0)/(l||1);if(!H.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(Z){s?(s.e+=h-(Ws||0),s.f+=d-(Js||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,")");G(Z,"webkitTransform",u),G(Z,"mozTransform",u),G(Z,"msTransform",u),G(Z,"transform",u),Ws=h,Js=d,Ce=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Z){var t=this.options.fallbackOnBody?document.body:dt,i=pt(L,!0,Dr,!0,t),n=this.options;if(Dr){for(Vt=t;G(Vt,"position")==="static"&&G(Vt,"transform")==="none"&&Vt!==document;)Vt=Vt.parentNode;Vt!==document.body&&Vt!==document.documentElement?(Vt===document&&(Vt=De()),i.top+=Vt.scrollTop,i.left+=Vt.scrollLeft):Vt=De(),Qs=Fd(Vt)}Z=L.cloneNode(!0),ht(Z,n.ghostClass,!1),ht(Z,n.fallbackClass,!0),ht(Z,n.dragClass,!0),G(Z,"transition",""),G(Z,"transform",""),G(Z,"box-sizing","border-box"),G(Z,"margin",0),G(Z,"top",i.top),G(Z,"left",i.left),G(Z,"width",i.width),G(Z,"height",i.height),G(Z,"opacity","0.8"),G(Z,"position",Dr?"absolute":"fixed"),G(Z,"zIndex","100000"),G(Z,"pointerEvents","none"),H.ghost=Z,t.appendChild(Z),G(Z,"transform-origin",Gd/parseInt(Z.style.width)*100+"% "+Kd/parseInt(Z.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,r=t.dataTransfer,a=n.options;if(Ht("dragStart",this,{evt:t}),H.eventCanceled){this._onDrop();return}Ht("setupClone",this),H.eventCanceled||(gt=Ks(L),gt.draggable=!1,gt.style["will-change"]="",this._hideClone(),ht(gt,this.options.chosenClass,!1),H.clone=gt),n.cloneId=Or(function(){Ht("clone",n),!H.eventCanceled&&(n.options.removeCloneOnHide||dt.insertBefore(gt,L),n._hideClone(),qt({sortable:n,name:"clone"}))}),!i&&ht(L,a.dragClass,!0),i?(kr=!0,n._loopId=setInterval(n._emulateDragOver,50)):(X(document,"mouseup",n._onDrop),X(document,"touchend",n._onDrop),X(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(n,r,L)),nt(document,"drop",n),G(L,"transform","translateZ(0)")),Ri=!0,n._dragStartId=Or(n._dragStarted.bind(n,i,t)),nt(document,"selectstart",n),fn=!0,Ys&&G(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=H.active,h=wr===l,d=o.sort,u=Bt||c,f,p=this,m=!1;if(Zs)return;function g(E,B){Ht(E,p,Xe({evt:t,isOwner:h,axis:f?"vertical":"horizontal",revert:s,dragRect:r,targetRect:a,canSort:d,fromSortable:u,target:n,completed:x,onMove:function(j,S){return $s(dt,i,L,r,j,pt(j),t,S)},changed:I},B))}function C(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function x(E){return g("dragOverCompleted",{insertion:E}),E&&(h?c._hideClone():c._showClone(p),p!==u&&(ht(L,Bt?Bt.options.ghostClass:c.options.ghostClass,!1),ht(L,o.ghostClass,!0)),Bt!==p&&p!==H.active?Bt=p:p===H.active&&Bt&&(Bt=null),u===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(n===L&&!L.animated||n===i&&!n.animated)&&(qi=null),!o.dragoverBubble&&!t.rootEl&&n!==document&&(L.parentNode[Lt]._isOutsideThisEl(t.target),!E&&gi(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function I(){Jt=mt(L),ei=mt(L,o.draggable),qt({sortable:p,name:"change",toEl:i,newIndex:Jt,newDraggableIndex:ei,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Se(n,o.draggable,i,!0),g("dragOver"),H.eventCanceled)return m;if(L.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return x(!1);if(kr=!1,c&&!o.disabled&&(h?d||(s=!dt.contains(L)):Bt===this||(this.lastPutMode=wr.checkPull(this,c,L,t))&&l.checkPut(this,c,L,t))){if(f=this._getDirection(t,n)==="vertical",r=pt(L),g("dragOverValid"),H.eventCanceled)return m;if(s)return yt=dt,C(),this._hideClone(),g("revert"),H.eventCanceled||(pi?dt.insertBefore(L,pi):dt.appendChild(L)),x(!0);var M=js(i,o.draggable);if(!M||cw(t,f,this)&&!M.animated){if(M===L)return x(!1);if(M&&i===t.target&&(n=M),n&&(a=pt(n)),$s(dt,i,L,r,n,a,t,!!n)!==!1)return C(),i.appendChild(L),yt=i,I(),x(!0)}else if(n.parentNode===i){a=pt(n);var T=0,D,z=L.parentNode!==i,q=!rw(L.animated&&L.toRect||r,n.animated&&n.toRect||a,f),U=f?"top":"left",P=qd(n,"top","top")||qd(L,"top","top"),N=P?P.scrollTop:void 0;qi!==n&&(D=a[U],mn=!1,Mr=!q&&o.invertSwap||z),T=uw(t,n,a,f,q?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Mr,qi===n);var et;if(T!==0){var ot=mt(L);do ot-=T,et=yt.children[ot];while(et&&(G(et,"display")==="none"||et===Z))}if(T===0||et===n)return x(!1);qi=n,pn=T;var F=n.nextElementSibling,k=!1;k=T===1;var v=$s(dt,i,L,r,n,a,t,k);if(v!==!1)return(v===1||v===-1)&&(k=v===1),Zs=!0,setTimeout(lw,30),C(),k&&!F?i.appendChild(L):n.parentNode.insertBefore(L,k?F:n),P&&Yd(P,0,N-P.scrollTop),yt=L.parentNode,D!==void 0&&!Mr&&(Er=Math.abs(D-pt(n)[U])),I(),x(!0)}if(i.contains(L))return x(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){X(document,"mousemove",this._onTouchMove),X(document,"touchmove",this._onTouchMove),X(document,"pointermove",this._onTouchMove),X(document,"dragover",gi),X(document,"mousemove",gi),X(document,"touchmove",gi)},_offUpEvents:function(){var t=this.el.ownerDocument;X(t,"mouseup",this._onDrop),X(t,"touchend",this._onDrop),X(t,"pointerup",this._onDrop),X(t,"touchcancel",this._onDrop),X(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;if(Jt=mt(L),ei=mt(L,n.draggable),Ht("drop",this,{evt:t}),yt=L&&L.parentNode,Jt=mt(L),ei=mt(L,n.draggable),H.eventCanceled){this._nulling();return}Ri=!1,Mr=!1,mn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_s(this.cloneId),_s(this._dragStartId),this.nativeDraggable&&(X(document,"drop",this),X(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ys&&G(document.body,"user-select",""),G(L,"transform",""),t&&(fn&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),(dt===yt||Bt&&Bt.lastPutMode!=="clone")&>&>.parentNode&>.parentNode.removeChild(gt),L&&(this.nativeDraggable&&X(L,"dragend",this),Xs(L),L.style["will-change"]="",fn&&!Ri&&ht(L,Bt?Bt.options.ghostClass:this.options.ghostClass,!1),ht(L,this.options.chosenClass,!1),qt({sortable:this,name:"unchoose",toEl:yt,newIndex:null,newDraggableIndex:null,originalEvent:t}),dt!==yt?(Jt>=0&&(qt({rootEl:yt,name:"add",toEl:yt,fromEl:dt,originalEvent:t}),qt({sortable:this,name:"remove",toEl:yt,originalEvent:t}),qt({rootEl:yt,name:"sort",toEl:yt,fromEl:dt,originalEvent:t}),qt({sortable:this,name:"sort",toEl:yt,originalEvent:t})),Bt&&Bt.save()):Jt!==Pi&&Jt>=0&&(qt({sortable:this,name:"update",toEl:yt,originalEvent:t}),qt({sortable:this,name:"sort",toEl:yt,originalEvent:t})),H.active&&((Jt==null||Jt===-1)&&(Jt=Pi,ei=dn),qt({sortable:this,name:"end",toEl:yt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ht("nulling",this),dt=L=yt=Z=pi=gt=xr=ti=mi=Ce=fn=Jt=ei=Pi=dn=qi=pn=Bt=wr=H.dragged=H.ghost=H.clone=H.active=null,Ir.forEach(function(t){t.checked=!0}),Ir.length=Ws=Js=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":L&&(this._onDragOver(t),ow(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],Se(i,s.draggable,this.el,!1)&&t.push(i.getAttribute(s.dataIdAttr)||dw(i));return t},sort:function(t){var i={},n=this.el;this.toArray().forEach(function(r,a){var s=n.children[a];Se(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 Se(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=un.modifyOption(this,t,i);typeof r!="undefined"?n[t]=r:n[t]=i,t==="group"&&Jd(n)},destroy:function(){Ht("destroy",this);var t=this.el;t[Lt]=null,X(t,"mousedown",this._onTapStart),X(t,"touchstart",this._onTapStart),X(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(X(t,"dragover",this),X(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Tr.splice(Tr.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ti){if(Ht("hideClone",this),H.eventCanceled)return;G(gt,"display","none"),this.options.removeCloneOnHide&>.parentNode&>.parentNode.removeChild(gt),ti=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ti){if(Ht("showClone",this),H.eventCanceled)return;dt.contains(L)&&!this.options.group.revertClone?dt.insertBefore(gt,L):pi?dt.insertBefore(gt,pi):dt.appendChild(gt),this.options.group.revertClone&&this.animate(L,gt),G(gt,"display",""),ti=!1}}};function ow(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function $s(e,t,i,n,r,a,s,o){var l,c=e[Lt],h=c.options.onMove,d;return window.CustomEvent&&!Ue&&!on?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 Xs(e){e.draggable=!1}function lw(){Zs=!1}function cw(e,t,i){var n=pt(js(i.el,i.options.draggable)),r=10;return t?e.clientX>n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}function uw(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&&Er<c*r){if(!mn&&(pn===1?l>h+c*a/2:l<d-c*a/2)&&(mn=!0),mn)u=!0;else if(pn===1?l<h+Er:l>d-Er)return-pn}else if(l>h+c*(1-r)/2&&l<d-c*(1-r)/2)return hw(t)}return u=u||s,u&&(l<h+c*a/2||l>d-c*a/2)?l>h+c/2?1:-1:0}function hw(e){return mt(L)<mt(e)?1:-1}function dw(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 fw(e){Ir.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&Ir.push(n)}}function Or(e){return setTimeout(e,0)}function _s(e){return clearTimeout(e)}Br&&nt(document,"touchmove",function(e){(H.active||Ri)&&e.cancelable&&e.preventDefault()}),H.utils={on:nt,off:X,css:G,find:Rd,is:function(t,i){return!!Se(t,i,t,!1)},extend:Xx,throttle:Ud,closest:Se,toggleClass:ht,clone:Ks,index:mt,nextTick:Or,cancelNextTick:_s,detectDirection:Wd,getChild:Ar},H.get=function(e){return e[Lt]},H.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&&(H.utils=Xe({},H.utils,n.utils)),un.mount(n)})},H.create=function(e,t){return new H(e,t)},H.version=Jx;var bt=[],gn,to,eo=!1,io,no,Nr,vn;function pw(){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?nt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?nt(document,"pointermove",this._handleFallbackAutoScroll):n.touches?nt(document,"touchmove",this._handleFallbackAutoScroll):nt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var n=i.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?X(document,"dragover",this._handleAutoScroll):(X(document,"pointermove",this._handleFallbackAutoScroll),X(document,"touchmove",this._handleFallbackAutoScroll),X(document,"mousemove",this._handleFallbackAutoScroll)),$d(),Lr(),_x()},nulling:function(){Nr=to=gn=eo=vn=io=no=null,bt.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,n){var r=this,a=(i.touches?i.touches[0]:i).clientX,s=(i.touches?i.touches[0]:i).clientY,o=document.elementFromPoint(a,s);if(Nr=i,n||on||Ue||Ys){ro(i,this.options,o,n);var l=_e(o,!0);eo&&(!vn||a!==io||s!==no)&&(vn&&$d(),vn=setInterval(function(){var c=_e(document.elementFromPoint(a,s),!0);c!==l&&(l=c,Lr()),ro(i,r.options,c,n)},10),io=a,no=s)}else{if(!this.options.bubbleScroll||_e(o,!0)===De()){Lr();return}ro(i,this.options,_e(o,!1),!1)}}},se(e,{pluginName:"scroll",initializeByDefault:!0})}function Lr(){bt.forEach(function(e){clearInterval(e.pid)}),bt=[]}function $d(){clearInterval(vn)}var ro=Ud(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=De(),c=!1,h;to!==i&&(to=i,Lr(),gn=t.scroll,h=t.scrollFn,gn===!0&&(gn=_e(i,!0)));var d=0,u=gn;do{var f=u,p=pt(f),m=p.top,g=p.bottom,C=p.left,x=p.right,I=p.width,M=p.height,T=void 0,D=void 0,z=f.scrollWidth,q=f.scrollHeight,U=G(f),P=f.scrollLeft,N=f.scrollTop;f===l?(T=I<z&&(U.overflowX==="auto"||U.overflowX==="scroll"||U.overflowX==="visible"),D=M<q&&(U.overflowY==="auto"||U.overflowY==="scroll"||U.overflowY==="visible")):(T=I<z&&(U.overflowX==="auto"||U.overflowX==="scroll"),D=M<q&&(U.overflowY==="auto"||U.overflowY==="scroll"));var et=T&&(Math.abs(x-r)<=s&&P+I<z)-(Math.abs(C-r)<=s&&!!P),ot=D&&(Math.abs(g-a)<=s&&N+M<q)-(Math.abs(m-a)<=s&&!!N);if(!bt[d])for(var F=0;F<=d;F++)bt[F]||(bt[F]={});(bt[d].vx!=et||bt[d].vy!=ot||bt[d].el!==f)&&(bt[d].el=f,bt[d].vx=et,bt[d].vy=ot,clearInterval(bt[d].pid),(et!=0||ot!=0)&&(c=!0,bt[d].pid=setInterval(function(){n&&this.layer===0&&H.active._onTouchMove(Nr);var k=bt[this.layer].vy?bt[this.layer].vy*o:0,v=bt[this.layer].vx?bt[this.layer].vx*o:0;typeof h=="function"&&h.call(H.dragged.parentNode[Lt],v,k,e,Nr,bt[this.layer].el)!=="continue"||Yd(bt[this.layer].el,v,k)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&u!==l&&(u=_e(u,!1)));eo=c}},30),Xd=function(t){var i=t.originalEvent,n=t.putSortable,r=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,o=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!i){var c=n||a;o();var h=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,d=document.elementFromPoint(h.clientX,h.clientY);l(),c&&!c.el.contains(d)&&(s("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ao(){}ao.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Ar(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:Xd},se(ao,{pluginName:"revertOnSpill"});function so(){}so.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),r.animateAll()},drop:Xd},se(so,{pluginName:"removeOnSpill"});var oe;function mw(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(i){var n=i.dragEl;oe=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=oe;a(r)!==!1?(ht(r,h.swapClass,!0),oe=r):oe=null,d&&d!==oe&&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;oe&&ht(oe,o.swapClass,!1),oe&&(o.swap||r&&r.options.swap)&&a!==oe&&(s.captureAnimationState(),s!==n&&n.captureAnimationState(),gw(a,oe),s.animateAll(),s!==n&&n.animateAll())},nulling:function(){oe=null}},se(e,{pluginName:"swap",eventProperties:function(){return{swapItem:oe}}})}function gw(e,t){var i=e.parentNode,n=t.parentNode,r,a;!i||!n||i.isEqualNode(t)||n.isEqualNode(e)||(r=mt(e),a=mt(t),i.isEqualNode(n)&&r<a&&a++,i.insertBefore(t,i.children[r]),n.insertBefore(e,n.children[a]))}var Q=[],Qt=[],yn,Ae,bn=!1,Zt=!1,Fi=!1,ut,Sn,Vr;function vw(){function e(t){for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));t.options.supportPointer?nt(document,"pointerup",this._deselectMultiDrag):(nt(document,"mouseup",this._deselectMultiDrag),nt(document,"touchend",this._deselectMultiDrag)),nt(document,"keydown",this._checkKeyDown),nt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(r,a){var s="";Q.length&&Ae===t?Q.forEach(function(o,l){s+=(l?", ":"")+o.textContent}):s=a.textContent,r.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(i){var n=i.dragEl;ut=n},delayEnded:function(){this.isMultiDrag=~Q.indexOf(ut)},setupClone:function(i){var n=i.sortable,r=i.cancel;if(!!this.isMultiDrag){for(var a=0;a<Q.length;a++)Qt.push(Ks(Q[a])),Qt[a].sortableIndex=Q[a].sortableIndex,Qt[a].draggable=!1,Qt[a].style["will-change"]="",ht(Qt[a],this.options.selectedClass,!1),Q[a]===ut&&ht(Qt[a],this.options.chosenClass,!1);n._hideClone(),r()}},clone:function(i){var n=i.sortable,r=i.rootEl,a=i.dispatchSortableEvent,s=i.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||Q.length&&Ae===n&&(_d(!0,r),a("clone"),s())},showClone:function(i){var n=i.cloneNowShown,r=i.rootEl,a=i.cancel;!this.isMultiDrag||(_d(!1,r),Qt.forEach(function(s){G(s,"display","")}),n(),Vr=!1,a())},hideClone:function(i){var n=this;i.sortable;var r=i.cloneNowHidden,a=i.cancel;!this.isMultiDrag||(Qt.forEach(function(s){G(s,"display","none"),n.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),r(),Vr=!0,a())},dragStartGlobal:function(i){i.sortable,!this.isMultiDrag&&Ae&&Ae.multiDrag._deselectMultiDrag(),Q.forEach(function(n){n.sortableIndex=mt(n)}),Q=Q.sort(function(n,r){return n.sortableIndex-r.sortableIndex}),Fi=!0},dragStarted:function(i){var n=this,r=i.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(r.captureAnimationState(),this.options.animation)){Q.forEach(function(s){s!==ut&&G(s,"position","absolute")});var a=pt(ut,!1,!0,!0);Q.forEach(function(s){s!==ut&&jd(s,a)}),Zt=!0,bn=!0}r.animateAll(function(){Zt=!1,bn=!1,n.options.animation&&Q.forEach(function(s){Hs(s)}),n.options.sort&&Pr()})}},dragOver:function(i){var n=i.target,r=i.completed,a=i.cancel;Zt&&~Q.indexOf(n)&&(r(!1),a())},revert:function(i){var n=i.fromSortable,r=i.rootEl,a=i.sortable,s=i.dragRect;Q.length>1&&(Q.forEach(function(o){a.addAnimationState({target:o,rect:Zt?pt(o):s}),Hs(o),o.fromRect=s,n.removeAnimationState(o)}),Zt=!1,yw(!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(),bn=!1,c.animation&&Q.length>1&&(Zt||!r&&!s.options.sort&&!l)){var h=pt(ut,!1,!0,!0);Q.forEach(function(u){u!==ut&&(jd(u,h),o.appendChild(u))}),Zt=!0}if(!r)if(Zt||Pr(),Q.length>1){var d=Vr;s._showClone(n),s.options.animation&&!Vr&&d&&Qt.forEach(function(u){s.addAnimationState({target:u,rect:Sn}),u.fromRect=Sn,u.thisAnimationDuration=null})}else s._showClone(n)}},dragOverAnimationCapture:function(i){var n=i.dragRect,r=i.isOwner,a=i.activeSortable;if(Q.forEach(function(o){o.thisAnimationDuration=null}),a.options.animation&&!r&&a.multiDrag.isMultiDrag){Sn=se({},n);var s=fi(ut,!0);Sn.top-=s.f,Sn.left-=s.e}},dragOverAnimationComplete:function(){Zt&&(Zt=!1,Pr())},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(!Fi)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ht(ut,d.selectedClass,!~Q.indexOf(ut)),~Q.indexOf(ut))Q.splice(Q.indexOf(ut),1),yn=null,hn({sortable:s,rootEl:r,name:"deselect",targetEl:ut,originalEvt:n});else{if(Q.push(ut),hn({sortable:s,rootEl:r,name:"select",targetEl:ut,originalEvt:n}),n.shiftKey&&yn&&s.el.contains(yn)){var f=mt(yn),p=mt(ut);if(~f&&~p&&f!==p){var m,g;for(p>f?(g=f,m=p):(g=p,m=f+1);g<m;g++)~Q.indexOf(u[g])||(ht(u[g],d.selectedClass,!0),Q.push(u[g]),hn({sortable:s,rootEl:r,name:"select",targetEl:u[g],originalEvt:n}))}}else yn=ut;Ae=h}if(Fi&&this.isMultiDrag){if((a[Lt].options.sort||a!==r)&&Q.length>1){var C=pt(ut),x=mt(ut,":not(."+this.options.selectedClass+")");if(!bn&&d.animation&&(ut.thisAnimationDuration=null),h.captureAnimationState(),!bn&&(d.animation&&(ut.fromRect=C,Q.forEach(function(M){if(M.thisAnimationDuration=null,M!==ut){var T=Zt?pt(M):C;M.fromRect=T,h.addAnimationState({target:M,rect:T})}})),Pr(),Q.forEach(function(M){u[x]?a.insertBefore(M,u[x]):a.appendChild(M),x++}),l===mt(ut))){var I=!1;Q.forEach(function(M){if(M.sortableIndex!==mt(M)){I=!0;return}}),I&&o("update")}Q.forEach(function(M){Hs(M)}),h.animateAll()}Ae=h}(r===a||c&&c.lastPutMode!=="clone")&&Qt.forEach(function(M){M.parentNode&&M.parentNode.removeChild(M)})}},nullingGlobal:function(){this.isMultiDrag=Fi=!1,Qt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),X(document,"pointerup",this._deselectMultiDrag),X(document,"mouseup",this._deselectMultiDrag),X(document,"touchend",this._deselectMultiDrag),X(document,"keydown",this._checkKeyDown),X(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(i){if(!(typeof Fi!="undefined"&&Fi)&&Ae===this.sortable&&!(i&&Se(i.target,this.options.draggable,this.sortable.el,!1))&&!(i&&i.button!==0))for(;Q.length;){var n=Q[0];ht(n,this.options.selectedClass,!1),Q.shift(),hn({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)}},se(e,{pluginName:"multiDrag",utils:{select:function(i){var n=i.parentNode[Lt];!n||!n.options.multiDrag||~Q.indexOf(i)||(Ae&&Ae!==n&&(Ae.multiDrag._deselectMultiDrag(),Ae=n),ht(i,n.options.selectedClass,!0),Q.push(i))},deselect:function(i){var n=i.parentNode[Lt],r=Q.indexOf(i);!n||!n.options.multiDrag||!~r||(ht(i,n.options.selectedClass,!1),Q.splice(r,1))}},eventProperties:function(){var i=this,n=[],r=[];return Q.forEach(function(a){n.push({multiDragElement:a,index:a.sortableIndex});var s;Zt&&a!==ut?s=-1:Zt?s=mt(a,":not(."+i.options.selectedClass+")"):s=mt(a),r.push({multiDragElement:a,index:s})}),{items:Kx(Q),clones:[].concat(Qt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(i){return i=i.toLowerCase(),i==="ctrl"?i="Control":i.length>1&&(i=i.charAt(0).toUpperCase()+i.substr(1)),i}}})}function yw(e,t){Q.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function _d(e,t){Qt.forEach(function(i,n){var r=t.children[i.sortableIndex+(e?Number(n):0)];r?t.insertBefore(i,r):t.appendChild(i)})}function Pr(){Q.forEach(function(e){e!==ut&&e.parentNode&&e.parentNode.removeChild(e)})}H.mount(new pw),H.mount(so,ao);var bw=Object.freeze(Object.defineProperty({__proto__:null,default:H,MultiDrag:vw,Sortable:H,Swap:mw},Symbol.toStringTag,{value:"Module"})),Sw=fp(bw);(function(e,t){(function(n,r){e.exports=r(Sw)})(typeof self!="undefined"?self:No,function(i){return function(n){var r={};function a(s){if(r[s])return r[s].exports;var o=r[s]={i:s,l:!1,exports:{}};return n[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=n,a.c=r,a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},a.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,o){if(o&1&&(s=a(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(a.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var c in s)a.d(l,c,function(h){return s[h]}.bind(null,c));return l},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s="fb15")}({"01f9":function(n,r,a){var s=a("2d00"),o=a("5ca1"),l=a("2aba"),c=a("32e9"),h=a("84f2"),d=a("41a0"),u=a("7f20"),f=a("38fd"),p=a("2b4c")("iterator"),m=!([].keys&&"next"in[].keys()),g="@@iterator",C="keys",x="values",I=function(){return this};n.exports=function(M,T,D,z,q,U,P){d(D,T,z);var N=function(A){if(!m&&A in k)return k[A];switch(A){case C:return function(){return new D(this,A)};case x:return function(){return new D(this,A)}}return function(){return new D(this,A)}},et=T+" Iterator",ot=q==x,F=!1,k=M.prototype,v=k[p]||k[g]||q&&k[q],E=v||N(q),B=q?ot?N("entries"):E:void 0,Y=T=="Array"&&k.entries||v,j,S,y;if(Y&&(y=f(Y.call(new M)),y!==Object.prototype&&y.next&&(u(y,et,!0),!s&&typeof y[p]!="function"&&c(y,p,I))),ot&&v&&v.name!==x&&(F=!0,E=function(){return v.call(this)}),(!s||P)&&(m||F||!k[p])&&c(k,p,E),h[T]=E,h[et]=I,q)if(j={values:ot?E:N(x),keys:U?E:N(C),entries:B},P)for(S in j)S in k||l(k,S,j[S]);else o(o.P+o.F*(m||F),T,j);return j}},"02f4":function(n,r,a){var s=a("4588"),o=a("be13");n.exports=function(l){return function(c,h){var d=String(o(c)),u=s(h),f=d.length,p,m;return u<0||u>=f?l?"":void 0:(p=d.charCodeAt(u),p<55296||p>56319||u+1===f||(m=d.charCodeAt(u+1))<56320||m>57343?l?d.charAt(u):p:l?d.slice(u,u+2):(p-55296<<10)+(m-56320)+65536)}}},"0390":function(n,r,a){var s=a("02f4")(!0);n.exports=function(o,l,c){return l+(c?s(o,l).length:1)}},"0bfb":function(n,r,a){var s=a("cb7c");n.exports=function(){var o=s(this),l="";return o.global&&(l+="g"),o.ignoreCase&&(l+="i"),o.multiline&&(l+="m"),o.unicode&&(l+="u"),o.sticky&&(l+="y"),l}},"0d58":function(n,r,a){var s=a("ce10"),o=a("e11e");n.exports=Object.keys||function(c){return s(c,o)}},1495:function(n,r,a){var s=a("86cc"),o=a("cb7c"),l=a("0d58");n.exports=a("9e1e")?Object.defineProperties:function(h,d){o(h);for(var u=l(d),f=u.length,p=0,m;f>p;)s.f(h,m=u[p++],d[m]);return h}},"214f":function(n,r,a){a("b0c5");var s=a("2aba"),o=a("32e9"),l=a("79e5"),c=a("be13"),h=a("2b4c"),d=a("520a"),u=h("species"),f=!l(function(){var m=/./;return m.exec=function(){var g=[];return g.groups={a:"7"},g},"".replace(m,"$<a>")!=="7"}),p=function(){var m=/(?:)/,g=m.exec;m.exec=function(){return g.apply(this,arguments)};var C="ab".split(m);return C.length===2&&C[0]==="a"&&C[1]==="b"}();n.exports=function(m,g,C){var x=h(m),I=!l(function(){var U={};return U[x]=function(){return 7},""[m](U)!=7}),M=I?!l(function(){var U=!1,P=/a/;return P.exec=function(){return U=!0,null},m==="split"&&(P.constructor={},P.constructor[u]=function(){return P}),P[x](""),!U}):void 0;if(!I||!M||m==="replace"&&!f||m==="split"&&!p){var T=/./[x],D=C(c,x,""[m],function(P,N,et,ot,F){return N.exec===d?I&&!F?{done:!0,value:T.call(N,et,ot)}:{done:!0,value:P.call(et,N,ot)}:{done:!1}}),z=D[0],q=D[1];s(String.prototype,m,z),o(RegExp.prototype,x,g==2?function(U,P){return q.call(U,this,P)}:function(U){return q.call(U,this)})}}},"230e":function(n,r,a){var s=a("d3f4"),o=a("7726").document,l=s(o)&&s(o.createElement);n.exports=function(c){return l?o.createElement(c):{}}},"23c6":function(n,r,a){var s=a("2d95"),o=a("2b4c")("toStringTag"),l=s(function(){return arguments}())=="Arguments",c=function(h,d){try{return h[d]}catch{}};n.exports=function(h){var d,u,f;return h===void 0?"Undefined":h===null?"Null":typeof(u=c(d=Object(h),o))=="string"?u:l?s(d):(f=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":f}},2621:function(n,r){r.f=Object.getOwnPropertySymbols},"2aba":function(n,r,a){var s=a("7726"),o=a("32e9"),l=a("69a8"),c=a("ca5a")("src"),h=a("fa5b"),d="toString",u=(""+h).split(d);a("8378").inspectSource=function(f){return h.call(f)},(n.exports=function(f,p,m,g){var C=typeof m=="function";C&&(l(m,"name")||o(m,"name",p)),f[p]!==m&&(C&&(l(m,c)||o(m,c,f[p]?""+f[p]:u.join(String(p)))),f===s?f[p]=m:g?f[p]?f[p]=m:o(f,p,m):(delete f[p],o(f,p,m)))})(Function.prototype,d,function(){return typeof this=="function"&&this[c]||h.call(this)})},"2aeb":function(n,r,a){var s=a("cb7c"),o=a("1495"),l=a("e11e"),c=a("613b")("IE_PROTO"),h=function(){},d="prototype",u=function(){var f=a("230e")("iframe"),p=l.length,m="<",g=">",C;for(f.style.display="none",a("fab2").appendChild(f),f.src="javascript:",C=f.contentWindow.document,C.open(),C.write(m+"script"+g+"document.F=Object"+m+"/script"+g),C.close(),u=C.F;p--;)delete u[d][l[p]];return u()};n.exports=Object.create||function(p,m){var g;return p!==null?(h[d]=s(p),g=new h,h[d]=null,g[c]=p):g=u(),m===void 0?g:o(g,m)}},"2b4c":function(n,r,a){var s=a("5537")("wks"),o=a("ca5a"),l=a("7726").Symbol,c=typeof l=="function",h=n.exports=function(d){return s[d]||(s[d]=c&&l[d]||(c?l:o)("Symbol."+d))};h.store=s},"2d00":function(n,r){n.exports=!1},"2d95":function(n,r){var a={}.toString;n.exports=function(s){return a.call(s).slice(8,-1)}},"2fdb":function(n,r,a){var s=a("5ca1"),o=a("d2c8"),l="includes";s(s.P+s.F*a("5147")(l),"String",{includes:function(h){return!!~o(this,h,l).indexOf(h,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(n,r,a){var s=a("86cc"),o=a("4630");n.exports=a("9e1e")?function(l,c,h){return s.f(l,c,o(1,h))}:function(l,c,h){return l[c]=h,l}},"38fd":function(n,r,a){var s=a("69a8"),o=a("4bf8"),l=a("613b")("IE_PROTO"),c=Object.prototype;n.exports=Object.getPrototypeOf||function(h){return h=o(h),s(h,l)?h[l]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?c:null}},"41a0":function(n,r,a){var s=a("2aeb"),o=a("4630"),l=a("7f20"),c={};a("32e9")(c,a("2b4c")("iterator"),function(){return this}),n.exports=function(h,d,u){h.prototype=s(c,{next:o(1,u)}),l(h,d+" Iterator")}},"456d":function(n,r,a){var s=a("4bf8"),o=a("0d58");a("5eda")("keys",function(){return function(c){return o(s(c))}})},4588:function(n,r){var a=Math.ceil,s=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?s:a)(o)}},4630:function(n,r){n.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"4bf8":function(n,r,a){var s=a("be13");n.exports=function(o){return Object(s(o))}},5147:function(n,r,a){var s=a("2b4c")("match");n.exports=function(o){var l=/./;try{"/./"[o](l)}catch{try{return l[s]=!1,!"/./"[o](l)}catch{}}return!0}},"520a":function(n,r,a){var s=a("0bfb"),o=RegExp.prototype.exec,l=String.prototype.replace,c=o,h="lastIndex",d=function(){var p=/a/,m=/b*/g;return o.call(p,"a"),o.call(m,"a"),p[h]!==0||m[h]!==0}(),u=/()??/.exec("")[1]!==void 0,f=d||u;f&&(c=function(m){var g=this,C,x,I,M;return u&&(x=new RegExp("^"+g.source+"$(?!\\s)",s.call(g))),d&&(C=g[h]),I=o.call(g,m),d&&I&&(g[h]=g.global?I.index+I[0].length:C),u&&I&&I.length>1&&l.call(I[0],x,function(){for(M=1;M<arguments.length-2;M++)arguments[M]===void 0&&(I[M]=void 0)}),I}),n.exports=c},"52a7":function(n,r){r.f={}.propertyIsEnumerable},5537:function(n,r,a){var s=a("8378"),o=a("7726"),l="__core-js_shared__",c=o[l]||(o[l]={});(n.exports=function(h,d){return c[h]||(c[h]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:a("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(n,r,a){var s=a("7726"),o=a("8378"),l=a("32e9"),c=a("2aba"),h=a("9b43"),d="prototype",u=function(f,p,m){var g=f&u.F,C=f&u.G,x=f&u.S,I=f&u.P,M=f&u.B,T=C?s:x?s[p]||(s[p]={}):(s[p]||{})[d],D=C?o:o[p]||(o[p]={}),z=D[d]||(D[d]={}),q,U,P,N;C&&(m=p);for(q in m)U=!g&&T&&T[q]!==void 0,P=(U?T:m)[q],N=M&&U?h(P,s):I&&typeof P=="function"?h(Function.call,P):P,T&&c(T,q,P,f&u.U),D[q]!=P&&l(D,q,N),I&&z[q]!=P&&(z[q]=P)};s.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,n.exports=u},"5eda":function(n,r,a){var s=a("5ca1"),o=a("8378"),l=a("79e5");n.exports=function(c,h){var d=(o.Object||{})[c]||Object[c],u={};u[c]=h(d),s(s.S+s.F*l(function(){d(1)}),"Object",u)}},"5f1b":function(n,r,a){var s=a("23c6"),o=RegExp.prototype.exec;n.exports=function(l,c){var h=l.exec;if(typeof h=="function"){var d=h.call(l,c);if(typeof d!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(l)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(l,c)}},"613b":function(n,r,a){var s=a("5537")("keys"),o=a("ca5a");n.exports=function(l){return s[l]||(s[l]=o(l))}},"626a":function(n,r,a){var s=a("2d95");n.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return s(o)=="String"?o.split(""):Object(o)}},6762:function(n,r,a){var s=a("5ca1"),o=a("c366")(!0);s(s.P,"Array",{includes:function(c){return o(this,c,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},6821:function(n,r,a){var s=a("626a"),o=a("be13");n.exports=function(l){return s(o(l))}},"69a8":function(n,r){var a={}.hasOwnProperty;n.exports=function(s,o){return a.call(s,o)}},"6a99":function(n,r,a){var s=a("d3f4");n.exports=function(o,l){if(!s(o))return o;var c,h;if(l&&typeof(c=o.toString)=="function"&&!s(h=c.call(o))||typeof(c=o.valueOf)=="function"&&!s(h=c.call(o))||!l&&typeof(c=o.toString)=="function"&&!s(h=c.call(o)))return h;throw TypeError("Can't convert object to primitive value")}},7333:function(n,r,a){var s=a("0d58"),o=a("2621"),l=a("52a7"),c=a("4bf8"),h=a("626a"),d=Object.assign;n.exports=!d||a("79e5")(function(){var u={},f={},p=Symbol(),m="abcdefghijklmnopqrst";return u[p]=7,m.split("").forEach(function(g){f[g]=g}),d({},u)[p]!=7||Object.keys(d({},f)).join("")!=m})?function(f,p){for(var m=c(f),g=arguments.length,C=1,x=o.f,I=l.f;g>C;)for(var M=h(arguments[C++]),T=x?s(M).concat(x(M)):s(M),D=T.length,z=0,q;D>z;)I.call(M,q=T[z++])&&(m[q]=M[q]);return m}:d},7726:function(n,r){var a=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},"77f1":function(n,r,a){var s=a("4588"),o=Math.max,l=Math.min;n.exports=function(c,h){return c=s(c),c<0?o(c+h,0):l(c,h)}},"79e5":function(n,r){n.exports=function(a){try{return!!a()}catch{return!0}}},"7f20":function(n,r,a){var s=a("86cc").f,o=a("69a8"),l=a("2b4c")("toStringTag");n.exports=function(c,h,d){c&&!o(c=d?c:c.prototype,l)&&s(c,l,{configurable:!0,value:h})}},8378:function(n,r){var a=n.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)},"84f2":function(n,r){n.exports={}},"86cc":function(n,r,a){var s=a("cb7c"),o=a("c69a"),l=a("6a99"),c=Object.defineProperty;r.f=a("9e1e")?Object.defineProperty:function(d,u,f){if(s(d),u=l(u,!0),s(f),o)try{return c(d,u,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(d[u]=f.value),d}},"9b43":function(n,r,a){var s=a("d8e8");n.exports=function(o,l,c){if(s(o),l===void 0)return o;switch(c){case 1:return function(h){return o.call(l,h)};case 2:return function(h,d){return o.call(l,h,d)};case 3:return function(h,d,u){return o.call(l,h,d,u)}}return function(){return o.apply(l,arguments)}}},"9c6c":function(n,r,a){var s=a("2b4c")("unscopables"),o=Array.prototype;o[s]==null&&a("32e9")(o,s,{}),n.exports=function(l){o[s][l]=!0}},"9def":function(n,r,a){var s=a("4588"),o=Math.min;n.exports=function(l){return l>0?o(s(l),9007199254740991):0}},"9e1e":function(n,r,a){n.exports=!a("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(n,r){n.exports=i},a481:function(n,r,a){var s=a("cb7c"),o=a("4bf8"),l=a("9def"),c=a("4588"),h=a("0390"),d=a("5f1b"),u=Math.max,f=Math.min,p=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,g=/\$([$&`']|\d\d?)/g,C=function(x){return x===void 0?x:String(x)};a("214f")("replace",2,function(x,I,M,T){return[function(q,U){var P=x(this),N=q==null?void 0:q[I];return N!==void 0?N.call(q,P,U):M.call(String(P),q,U)},function(z,q){var U=T(M,z,this,q);if(U.done)return U.value;var P=s(z),N=String(this),et=typeof q=="function";et||(q=String(q));var ot=P.global;if(ot){var F=P.unicode;P.lastIndex=0}for(var k=[];;){var v=d(P,N);if(v===null||(k.push(v),!ot))break;var E=String(v[0]);E===""&&(P.lastIndex=h(N,l(P.lastIndex),F))}for(var B="",Y=0,j=0;j<k.length;j++){v=k[j];for(var S=String(v[0]),y=u(f(c(v.index),N.length),0),A=[],R=1;R<v.length;R++)A.push(C(v[R]));var K=v.groups;if(et){var J=[S].concat(A,y,N);K!==void 0&&J.push(K);var _=String(q.apply(void 0,J))}else _=D(S,N,y,A,K,q);y>=Y&&(B+=N.slice(Y,y)+_,Y=y+S.length)}return B+N.slice(Y)}];function D(z,q,U,P,N,et){var ot=U+z.length,F=P.length,k=g;return N!==void 0&&(N=o(N),k=m),M.call(et,k,function(v,E){var B;switch(E.charAt(0)){case"$":return"$";case"&":return z;case"`":return q.slice(0,U);case"'":return q.slice(ot);case"<":B=N[E.slice(1,-1)];break;default:var Y=+E;if(Y===0)return v;if(Y>F){var j=p(Y/10);return j===0?v:j<=F?P[j-1]===void 0?E.charAt(1):P[j-1]+E.charAt(1):v}B=P[Y-1]}return B===void 0?"":B})}})},aae3:function(n,r,a){var s=a("d3f4"),o=a("2d95"),l=a("2b4c")("match");n.exports=function(c){var h;return s(c)&&((h=c[l])!==void 0?!!h:o(c)=="RegExp")}},ac6a:function(n,r,a){for(var s=a("cadf"),o=a("0d58"),l=a("2aba"),c=a("7726"),h=a("32e9"),d=a("84f2"),u=a("2b4c"),f=u("iterator"),p=u("toStringTag"),m=d.Array,g={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(g),x=0;x<C.length;x++){var I=C[x],M=g[I],T=c[I],D=T&&T.prototype,z;if(D&&(D[f]||h(D,f,m),D[p]||h(D,p,I),d[I]=m,M))for(z in s)D[z]||l(D,z,s[z],!0)}},b0c5:function(n,r,a){var s=a("520a");a("5ca1")({target:"RegExp",proto:!0,forced:s!==/./.exec},{exec:s})},be13:function(n,r){n.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},c366:function(n,r,a){var s=a("6821"),o=a("9def"),l=a("77f1");n.exports=function(c){return function(h,d,u){var f=s(h),p=o(f.length),m=l(u,p),g;if(c&&d!=d){for(;p>m;)if(g=f[m++],g!=g)return!0}else for(;p>m;m++)if((c||m in f)&&f[m]===d)return c||m||0;return!c&&-1}}},c649:function(n,r,a){(function(s){a.d(r,"c",function(){return f}),a.d(r,"a",function(){return d}),a.d(r,"b",function(){return l}),a.d(r,"d",function(){return u}),a("a481");function o(){return typeof window!="undefined"?window.console:s.console}var l=o();function c(p){var m=Object.create(null);return function(C){var x=m[C];return x||(m[C]=p(C))}}var h=/-(\w)/g,d=c(function(p){return p.replace(h,function(m,g){return g?g.toUpperCase():""})});function u(p){p.parentElement!==null&&p.parentElement.removeChild(p)}function f(p,m,g){var C=g===0?p.children[0]:p.children[g-1].nextSibling;p.insertBefore(m,C)}}).call(this,a("c8ba"))},c69a:function(n,r,a){n.exports=!a("9e1e")&&!a("79e5")(function(){return Object.defineProperty(a("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(n,r){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}n.exports=a},ca5a:function(n,r){var a=0,s=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++a+s).toString(36))}},cadf:function(n,r,a){var s=a("9c6c"),o=a("d53b"),l=a("84f2"),c=a("6821");n.exports=a("01f9")(Array,"Array",function(h,d){this._t=c(h),this._i=0,this._k=d},function(){var h=this._t,d=this._k,u=this._i++;return!h||u>=h.length?(this._t=void 0,o(1)):d=="keys"?o(0,u):d=="values"?o(0,h[u]):o(0,[u,h[u]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},cb7c:function(n,r,a){var s=a("d3f4");n.exports=function(o){if(!s(o))throw TypeError(o+" is not an object!");return o}},ce10:function(n,r,a){var s=a("69a8"),o=a("6821"),l=a("c366")(!1),c=a("613b")("IE_PROTO");n.exports=function(h,d){var u=o(h),f=0,p=[],m;for(m in u)m!=c&&s(u,m)&&p.push(m);for(;d.length>f;)s(u,m=d[f++])&&(~l(p,m)||p.push(m));return p}},d2c8:function(n,r,a){var s=a("aae3"),o=a("be13");n.exports=function(l,c,h){if(s(c))throw TypeError("String#"+h+" doesn't accept regex!");return String(o(l))}},d3f4:function(n,r){n.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},d53b:function(n,r){n.exports=function(a,s){return{value:s,done:!!a}}},d8e8:function(n,r){n.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},e11e:function(n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(n,r,a){var s=a("5ca1"),o=a("9def"),l=a("d2c8"),c="startsWith",h=""[c];s(s.P+s.F*a("5147")(c),"String",{startsWith:function(u){var f=l(this,u,c),p=o(Math.min(arguments.length>1?arguments[1]:void 0,f.length)),m=String(u);return h?h.call(f,m,p):f.slice(p,p+m.length)===m}})},f6fd:function(n,r){(function(a){var s="currentScript",o=a.getElementsByTagName("script");s in a||Object.defineProperty(a,s,{get:function(){try{throw new Error}catch(h){var l,c=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(h.stack)||[!1])[1];for(l in o)if(o[l].src==c||o[l].readyState=="interactive")return o[l];return null}}})})(document)},f751:function(n,r,a){var s=a("5ca1");s(s.S+s.F,"Object",{assign:a("7333")})},fa5b:function(n,r,a){n.exports=a("5537")("native-function-to-string",Function.toString)},fab2:function(n,r,a){var s=a("7726").document;n.exports=s&&s.documentElement},fb15:function(n,r,a){if(a.r(r),typeof window!="undefined"){a("f6fd");var s;(s=window.document.currentScript)&&(s=s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(a.p=s[1])}a("f751"),a("f559"),a("ac6a"),a("cadf"),a("456d");function o(S){if(Array.isArray(S))return S}function l(S,y){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var A=[],R=!0,K=!1,J=void 0;try{for(var _=S[Symbol.iterator](),ct;!(R=(ct=_.next()).done)&&(A.push(ct.value),!(y&&A.length===y));R=!0);}catch(kt){K=!0,J=kt}finally{try{!R&&_.return!=null&&_.return()}finally{if(K)throw J}}return A}}function c(S,y){(y==null||y>S.length)&&(y=S.length);for(var A=0,R=new Array(y);A<y;A++)R[A]=S[A];return R}function h(S,y){if(!!S){if(typeof S=="string")return c(S,y);var A=Object.prototype.toString.call(S).slice(8,-1);if(A==="Object"&&S.constructor&&(A=S.constructor.name),A==="Map"||A==="Set")return Array.from(S);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return c(S,y)}}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
19
19
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(S,y){return o(S)||l(S,y)||h(S,y)||d()}a("6762"),a("2fdb");function f(S){if(Array.isArray(S))return c(S)}function p(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(S){return f(S)||p(S)||h(S)||m()}var C=a("a352"),x=a.n(C),I=a("c649");function M(S,y,A){return A===void 0||(S=S||{},S[y]=A),S}function T(S,y){return S.map(function(A){return A.elm}).indexOf(y)}function D(S,y,A,R){if(!S)return[];var K=S.map(function(ct){return ct.elm}),J=y.length-R,_=g(y).map(function(ct,kt){return kt>=J?K.length:K.indexOf(ct)});return A?_.filter(function(ct){return ct!==-1}):_}function z(S,y){var A=this;this.$nextTick(function(){return A.$emit(S.toLowerCase(),y)})}function q(S){var y=this;return function(A){y.realList!==null&&y["onDrag"+S](A),z.call(y,S,A)}}function U(S){return["transition-group","TransitionGroup"].includes(S)}function P(S){if(!S||S.length!==1)return!1;var y=u(S,1),A=y[0].componentOptions;return A?U(A.tag):!1}function N(S,y,A){return S[A]||(y[A]?y[A]():void 0)}function et(S,y,A){var R=0,K=0,J=N(y,A,"header");J&&(R=J.length,S=S?[].concat(g(J),g(S)):g(J));var _=N(y,A,"footer");return _&&(K=_.length,S=S?[].concat(g(S),g(_)):g(_)),{children:S,headerOffset:R,footerOffset:K}}function ot(S,y){var A=null,R=function(xt,Oe){A=M(A,xt,Oe)},K=Object.keys(S).filter(function(kt){return kt==="id"||kt.startsWith("data-")}).reduce(function(kt,xt){return kt[xt]=S[xt],kt},{});if(R("attrs",K),!y)return A;var J=y.on,_=y.props,ct=y.attrs;return R("on",J),R("props",_),Object.assign(A.attrs,ct),A}var F=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(F,k).map(function(S){return"on"+S}),E=null,B={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(y){return y}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Y={name:"draggable",inheritAttrs:!1,props:B,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(y){var A=this.$slots.default;this.transitionMode=P(A);var R=et(A,this.$slots,this.$scopedSlots),K=R.children,J=R.headerOffset,_=R.footerOffset;this.headerOffset=J,this.footerOffset=_;var ct=ot(this.$attrs,this.componentData);return y(this.getTag(),ct,K)},created:function(){this.list!==null&&this.value!==null&&I.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&I.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&&I.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var y=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var A={};F.forEach(function(J){A["on"+J]=q.call(y,J)}),k.forEach(function(J){A["on"+J]=z.bind(y,J)});var R=Object.keys(this.$attrs).reduce(function(J,_){return J[Object(I.a)(_)]=y.$attrs[_],J},{}),K=Object.assign({},this.options,R,A,{onMove:function(_,ct){return y.onDragMove(_,ct)}});!("draggable"in K)&&(K.draggable=">*"),this._sortable=new x.a(this.rootContainer,K),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(y){this.updateOptions(y)},deep:!0},$attrs:{handler:function(y){this.updateOptions(y)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var y=this._vnode.fnOptions;return y&&y.functional},getTag:function(){return this.tag||this.element},updateOptions:function(y){for(var A in y){var R=Object(I.a)(A);v.indexOf(R)===-1&&this._sortable.option(R,y[A])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var y=this.$slots.default;return this.transitionMode?y[0].child.$slots.default:y},computeIndexes:function(){var y=this;this.$nextTick(function(){y.visibleIndexes=D(y.getChildrenNodes(),y.rootContainer.children,y.transitionMode,y.footerOffset)})},getUnderlyingVm:function(y){var A=T(this.getChildrenNodes()||[],y);if(A===-1)return null;var R=this.realList[A];return{index:A,element:R}},getUnderlyingPotencialDraggableComponent:function(y){var A=y.__vue__;return!A||!A.$options||!U(A.$options._componentTag)?!("realList"in A)&&A.$children.length===1&&"realList"in A.$children[0]?A.$children[0]:A:A.$parent},emitChanges:function(y){var A=this;this.$nextTick(function(){A.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var A=g(this.value);y(A),this.$emit("input",A)},spliceList:function(){var y=arguments,A=function(K){return K.splice.apply(K,g(y))};this.alterList(A)},updatePosition:function(y,A){var R=function(J){return J.splice(A,0,J.splice(y,1)[0])};this.alterList(R)},getRelatedContextFromMoveEvent:function(y){var A=y.to,R=y.related,K=this.getUnderlyingPotencialDraggableComponent(A);if(!K)return{component:K};var J=K.realList,_={list:J,component:K};if(A!==R&&J&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(R);if(ct)return Object.assign(ct,_)}return _},getVmIndex:function(y){var A=this.visibleIndexes,R=A.length;return y>R-1?R:A[y]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(y){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var A=this.getChildrenNodes();A[y].data=null;var R=this.getComponent();R.children=[],R.kept=void 0}},onDragStart:function(y){this.context=this.getUnderlyingVm(y.item),y.item._underlying_vm_=this.clone(this.context.element),E=y.item},onDragAdd:function(y){var A=y.item._underlying_vm_;if(A!==void 0){Object(I.d)(y.item);var R=this.getVmIndex(y.newIndex);this.spliceList(R,0,A),this.computeIndexes();var K={element:A,newIndex:R};this.emitChanges({added:K})}},onDragRemove:function(y){if(Object(I.c)(this.rootContainer,y.item,y.oldIndex),y.pullMode==="clone"){Object(I.d)(y.clone);return}var A=this.context.index;this.spliceList(A,1);var R={element:this.context.element,oldIndex:A};this.resetTransitionData(A),this.emitChanges({removed:R})},onDragUpdate:function(y){Object(I.d)(y.item),Object(I.c)(y.from,y.item,y.oldIndex);var A=this.context.index,R=this.getVmIndex(y.newIndex);this.updatePosition(A,R);var K={element:this.context.element,oldIndex:A,newIndex:R};this.emitChanges({moved:K})},updateProperty:function(y,A){y.hasOwnProperty(A)&&(y[A]+=this.headerOffset)},computeFutureIndex:function(y,A){if(!y.element)return 0;var R=g(A.to.children).filter(function(ct){return ct.style.display!=="none"}),K=R.indexOf(A.related),J=y.component.getVmIndex(K),_=R.indexOf(E)!==-1;return _||!A.willInsertAfter?J:J+1},onDragMove:function(y,A){var R=this.move;if(!R||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(y),J=this.context,_=this.computeFutureIndex(K,y);Object.assign(J,{futureIndex:_});var ct=Object.assign({},y,{relatedContext:K,draggedContext:J});return R(ct,A)},onDragEnd:function(){this.computeIndexes(),E=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",Y);var j=Y;r.default=j}}).default})})(Od);var Cw=dp(Od.exports),Aw=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)},xw=[];const ww={components:{tabbar:Li,MyApps:Us,appsItem:Vi,Draggable:Cw},name:"IndMApps",data(){return{active:0,name:"apps",apps_menus:[],my_apps:[],title:"",currentEditStatus:"off",userAppTip:"\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",editButtonName:"\u7F16\u8F91",editClass:"",rmFromMyAppsClick:this.routeTo,addToMyAppsClick:this.routeTo,offsetTop:"246px",maxApps:8}},watch:{currentEditStatus(e){switch(e){case"on":{this.userAppTip="\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F",this.editButtonName="\u5B8C\u6210",this.editClass="editing",this.rmFromMyAppsClick=this.rmFromMyApps,this.addToMyAppsClick=this.addToMyApps,this.disableDraggable=!1;break}case"off":{this.userAppTip="\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",this.editButtonName="\u7F16\u8F91",this.editClass="",this.rmFromMyAppsClick=this.routeTo,this.addToMyAppsClick=this.routeTo,this.saveMyApps(),this.disableDraggable=!0;break}}},my_apps(){setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48},200)}},updated(){this.$store.commit("setMyAppsList",this.my_apps)},mounted(){var i;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&(e=e.find(r=>{var a;return r.extendProps&&((a=JSON.parse(r.extendProps))==null?void 0:a.mainMobile)=="1"}).children);let t=e.filter(n=>n.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.processState(this.my_apps,t),console.log(this.apps_menus),setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48+10},100)},methods:{routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},toggleEdit(){switch(this.currentEditStatus){case"on":{this.currentEditStatus="off";break}case"off":{this.currentEditStatus="on";break}}},saveMyApps(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.my_apps)}).catch(()=>{})},processState(e,t){return t.forEach(i=>{let n=!1;for(let r of e){if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1,r.meta.icon=i.meta.icon;break}r.state=!0}n||(i.state=!0),i.children&&this.processState(e,i.children)}),t},addToMyApps(e){if(this.my_apps.length==this.maxApps){St("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},tf={};var kw=at(ww,Aw,xw,!1,Tw,null,null,null);function Tw(e){for(let t in tf)this[t]=tf[t]}var oo=function(){return kw.exports}(),Mw=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)},Ew=[],nk="";const Iw={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}}},ef={};var Bw=at(Iw,Mw,Ew,!1,Dw,"1cee7da5",null,null);function Dw(e){for(let t in ef)this[t]=ef[t]}var lo=function(){return Bw.exports}(),Ow=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%"},attrs:{src:e.getImg(n.meta.icon),alt:"icon"}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),e.icons.length!==0?i("van-icon",{staticClass:"ind-myApp-slim-toggle-icon",class:{"ind-myApp-slim-rotate-down":e.expanded},attrs:{name:"arrow"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-content-button"},[i("div",{staticClass:"ind-myApp-slim-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-content-content-item"},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo,click:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},Nw=[];const Lw={components:{appsItem:Vi},data(){return{icon:Bd}},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}},methods:{getImg(e){console.log(location.origin+e);const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}}},nf={};var Vw=at(Lw,Ow,Nw,!1,Pw,null,null,null);function Pw(e){for(let t in nf)this[t]=nf[t]}var rf=function(){return Vw.exports}(),Rw=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,click: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",{staticClass:"ind-m-sidebar-text"},[e._v(e._s(n.meta.title))])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"500px",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",{staticClass:"ind-m-menu-section-content"},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,class:["ind-m-app-item-wrapper",{"full-width":a.children}]},[a.children?e._e():i("apps-item",{attrs:{item:a,state:a.state,title:a.meta.title,editStatus:"off"},on:{touchend:e.routeTo,click: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("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":3}},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("van-grid-item",{key:o.meta.permissionId},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo,click:e.routeTo}})],1)}),1):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},qw=[];const Fw={components:{tabbar:Li,appsItem:Vi,myapp:rf},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&(i=i.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let r=i.filter(a=>a.name===this.name);this.apps_menus=r[0].children,this.title=r[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((a,s)=>{this.$set(this.tabActiveKeys,s,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{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}}},af={};var Uw=at(Fw,Rw,qw,!1,Yw,null,null,null);function Yw(e){for(let t in af)this[t]=af[t]}var jw=function(){return Uw.exports}(),Gw=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,click: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,click:e.routeTo}})],1)}),0)])}),0)]),i("tabbar")],1)],1)},Kw=[];function co(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 Hw={components:{tabbar:Li,appsItem:Vi,myapp:rf},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[]}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0;const t=50;let i=setInterval(()=>{var r;e++;let n=this.$store.getters.getMenuTreeList||[];if(n&&n.length>0){clearInterval(i),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,n),((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&(n=n.find(c=>{var h;return c.extendProps&&((h=JSON.parse(c.extendProps))==null?void 0:h.mainMobile)=="1"}).children);let a=n.filter(l=>l.name===this.name),s=a[0].children.map(l=>l.meta.title);this.titleList=["\u5168\u90E8",...s];const o=a[0].children.reduce((l,c)=>(l[c.meta.title]=c,l),{});this.allApps_menus={\u5168\u90E8:a[0].children,...o},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=co(this.apps_menus),this.title=a[0].meta.title}else e>=t?(clearInterval(i),console.warn(`\u5C1D\u8BD5${t}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],e!=="\u5168\u90E8"?this.apps_menus=co(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=co(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"),i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},sf={};var zw=at(Hw,Gw,Kw,!1,Ww,null,null,null);function Ww(e){for(let t in sf)this[t]=sf[t]}var Jw=function(){return zw.exports}(),Qw=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},Zw=[];function of(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=of(n,t+1);r>i&&(i=r)}return i}function $w(e){let t=0;for(const i of e){const n=of(i);n>t&&(t=n)}return t}const Xw={components:{aboveleveltwo:jw,leveltwo:Jw},data(){return{level:3,name:"appsNew",apps_menus:[],isHb:!1,depth:"4"}},methods:{appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},created(){var n;this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList||[];e.length||console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC"),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&(e=e.find(a=>{var s;return a.extendProps&&((s=JSON.parse(a.extendProps))==null?void 0:s.mainMobile)=="1"}).children);let t=e.filter(r=>r.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.appsMenusExtended(this.apps_menus);const i=$w(this.apps_menus);this.depth=i},computed:{currentComponent(){var e,t;if(this.level=((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.theLevel)||3,this.depth=this.depth||4,this.level==2&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},lf={};var _w=at(Xw,Qw,Zw,!1,t0,null,null,null);function t0(e){for(let t in lf)this[t]=lf[t]}var uo=function(){return _w.exports}(),e0=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..."))])])])])])},i0=[];const n0={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)}}},cf={};var r0=at(n0,e0,i0,!1,a0,null,null,null);function a0(e){for(let t in cf)this[t]=cf[t]}var uf=function(){return r0.exports}(),s0=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)},o0=[];const l0={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()}}},hf={};var c0=at(l0,s0,o0,!1,u0,null,null,null);function u0(e){for(let t in hf)this[t]=hf[t]}var ho=function(){return c0.exports}(),fo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Gi,ErrorContent:$r,DatePicker:Uo,Form:zo,LoadMore:Jo,User1:il,BasicLayout:rl,EmptyLayout:Ci,DetailView:ol,PageView:cl,PopupView:hl,QueryView:fl,Login:qs,Search:bd,SelectPanel:Ad,InputSelect:wd,SelectBtn:Td,User:Fs,Apps:oo,AppsEdit:lo,MyApps:Us,AppsNew:uo,appItem:Vi,tabbar:Li,LoadingPanel:uf,Setting:ho},Symbol.toStringTag,{value:"Module"})),df={install(e,{config:t}={}){e.prototype.$config=b.default.merge({},e.prototype.$config||{},t||V.config)}},ff={install(e,{router:t,store:i}){e.prototype.$backToMenu=function(){if(console.log("trigger $backToMenu"),this.$config.showMenus){const n=i.state.app.breadCrumbList;i.commit("closeTag",{$router:t,route:b.default.cloneDeep(b.default.find(i.state.app.tagNavList,{name:n[n.length-1].name})||{})}),t.push({name:n[n.length-2].name}).catch(()=>{})}else t.go(-1)}}},h0=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:df,IndRouterPlugin:ff},Symbol.toStringTag,{value:"Module"}));const pf=function(e,t,i){const n=i.context;e.style.display="none";const r=t.value;(n.$store.state.app.permission[r]||r==="all")&&(e.style.display="")},mf={bind:pf,update:pf};var po=Object.freeze(Object.defineProperty({__proto__:null,permission:mf},Symbol.toStringTag,{value:"Module"}));const gf={name:Ye.rootRouteName,path:"/",redirect:"/home",component:Ci,meta:{hideInMenu:!0,notCache:!0},children:[{name:Ye.homeRouteName,path:"home",redirect:"/apps?t="+new Date().getTime(),meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},d0={name:Ye.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:qs},f0={name:"user",path:"/user",component:Fs,meta:{hideInMenu:!0,notCache:!0}},p0={name:"setting",path:"/setting",component:ho,meta:{hideInMenu:!0,notCache:!0}},m0={name:"apps",path:"/apps",component:oo,meta:{hideInMenu:!0,notCache:!0}},g0={name:"appsNew",path:"/appsNew",component:uo,meta:{hideInMenu:!0,notCache:!0}},v0={name:"appsEdit",path:"/appsEdit",component:lo,meta:{hideInMenu:!0,notCache:!0}},y0={path:"/404",meta:{hideInMenu:!0},component:Gi};function b0({homeComponent:e,rootChildren:t}={}){const i=b.default.cloneDeep(gf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[d0]:[];return[i,...n,f0,p0,m0,v0,y0,g0]}function S0({rootChildren:e}={}){const t=b.default.cloneDeep(gf);return t.component=Ci,t.children=[],e&&e.length&&t.children.push(...e),[t]}const C0={EmptyLayout:{component:Ci},EmptyLayoutNotCache:{component:{...Ci,name:"IndEmptyLayoutNotCache"}}},Rr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function vf(e){return[Rr.DIRECTORY,Rr.MENU].includes(e)}function yf(e,t=[]){return e?t.filter(i=>{const n=(i==null?void 0:i.permissionValue)||"";return n.startsWith(e)||n.startsWith(`${V.config.routerBase}-${e}`)}):t}function mo({list:e,menuTree:t,pageNode:i,parentId:n,crumbs:r,root:a}){if(!e)return;let s=V.getSessionStorage("appInfo");e.forEach(o=>{var M;const{permissionId:l,label:c,appId:h,pid:d,icon:u,type:f,uri:p,permissionValue:m,extendProps:g}=o;if(h!=s.appId)return;const C=m;let x=!1,I=!1;if(o&&o.extendProps)try{x=((M=JSON.parse(o.extendProps))==null?void 0:M.hideInIbp)==="1"}catch{x=!1}try{if(o&&o.extension){const T=JSON.parse(o.extension);if(T.extendProps){const D=typeof T.extendProps=="string"?JSON.parse(T.extendProps):T.extendProps;(D==null?void 0:D.hideInMenu)==1&&(I=!0)}}}catch{I=!1}if(d===n&&!(x||I)){if(vf(f)){let T={type:f,name:C,pid:d,path:bf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:C},children:[],extendProps:g};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),Rr.DIRECTORY===f&&(T.component="EmptyLayout"),mo({list:e,menuTree:T.children,pageNode:i,parentId:l,crumbs:T.meta.crumbs,root:!1}),T.children.length||delete T.children,t.push(T)}if(Rr.PAGE===f){let T={type:f,name:C,pid:d,path:bf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),i.children.push(T)}}})}function bf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function Sf(e=[]){e=e.filter(i=>vf(i.type));const t=[];return mo({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function A0(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return mo({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),go(t)}function go(e=[]){for(let t of e)if(t.component){const i=C0[t.component];i?t.component=i.component:t.path?window.loadComponentHandler&&(t.component=window.loadComponentHandler(t.path,t.name)||Gi):(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=Gi),t.children&&t.children.length>0&&go(t.children)}return e}var vo={exports:{}},Cf=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)}},x0=Cf,vi=Object.prototype.toString;function yo(e){return vi.call(e)==="[object Array]"}function bo(e){return typeof e=="undefined"}function w0(e){return e!==null&&!bo(e)&&e.constructor!==null&&!bo(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function k0(e){return vi.call(e)==="[object ArrayBuffer]"}function T0(e){return typeof FormData!="undefined"&&e instanceof FormData}function M0(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function E0(e){return typeof e=="string"}function I0(e){return typeof e=="number"}function Af(e){return e!==null&&typeof e=="object"}function qr(e){if(vi.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function B0(e){return vi.call(e)==="[object Date]"}function D0(e){return vi.call(e)==="[object File]"}function O0(e){return vi.call(e)==="[object Blob]"}function xf(e){return vi.call(e)==="[object Function]"}function N0(e){return Af(e)&&xf(e.pipe)}function L0(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function V0(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function P0(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function So(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),yo(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 Co(){var e={};function t(r,a){qr(e[a])&&qr(r)?e[a]=Co(e[a],r):qr(r)?e[a]=Co({},r):yo(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)So(arguments[i],t);return e}function R0(e,t,i){return So(t,function(r,a){i&&typeof r=="function"?e[a]=x0(r,i):e[a]=r}),e}function q0(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var $t={isArray:yo,isArrayBuffer:k0,isBuffer:w0,isFormData:T0,isArrayBufferView:M0,isString:E0,isNumber:I0,isObject:Af,isPlainObject:qr,isUndefined:bo,isDate:B0,isFile:D0,isBlob:O0,isFunction:xf,isStream:N0,isURLSearchParams:L0,isStandardBrowserEnv:P0,forEach:So,merge:Co,extend:R0,trim:V0,stripBOM:q0},Ui=$t;function wf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var kf=function(t,i,n){if(!i)return t;var r;if(n)r=n(i);else if(Ui.isURLSearchParams(i))r=i.toString();else{var a=[];Ui.forEach(i,function(l,c){l===null||typeof l=="undefined"||(Ui.isArray(l)?c=c+"[]":l=[l],Ui.forEach(l,function(d){Ui.isDate(d)?d=d.toISOString():Ui.isObject(d)&&(d=JSON.stringify(d)),a.push(wf(c)+"="+wf(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},F0=$t;function Fr(){this.handlers=[]}Fr.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},Fr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Fr.prototype.forEach=function(t){F0.forEach(this.handlers,function(n){n!==null&&t(n)})};var U0=Fr,Y0=$t,j0=function(t,i){Y0.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},Tf=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},G0=Tf,Mf=function(t,i,n,r,a){var s=new Error(t);return G0(s,i,n,r,a)},K0=Mf,H0=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(K0("Request failed with status code "+n.status,n.config,null,n.request,n))},Ur=$t,z0=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(){}}}(),W0=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},J0=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},Q0=W0,Z0=J0,$0=function(t,i){return t&&!Q0(i)?Z0(t,i):i},Ao=$t,X0=["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"],_0=function(t){var i={},n,r,a;return t&&Ao.forEach(t.split(`
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g(S){return f(S)||p(S)||h(S)||m()}var C=a("a352"),x=a.n(C),I=a("c649");function M(S,y,A){return A===void 0||(S=S||{},S[y]=A),S}function T(S,y){return S.map(function(A){return A.elm}).indexOf(y)}function D(S,y,A,R){if(!S)return[];var K=S.map(function(ct){return ct.elm}),J=y.length-R,_=g(y).map(function(ct,kt){return kt>=J?K.length:K.indexOf(ct)});return A?_.filter(function(ct){return ct!==-1}):_}function z(S,y){var A=this;this.$nextTick(function(){return A.$emit(S.toLowerCase(),y)})}function q(S){var y=this;return function(A){y.realList!==null&&y["onDrag"+S](A),z.call(y,S,A)}}function U(S){return["transition-group","TransitionGroup"].includes(S)}function P(S){if(!S||S.length!==1)return!1;var y=u(S,1),A=y[0].componentOptions;return A?U(A.tag):!1}function N(S,y,A){return S[A]||(y[A]?y[A]():void 0)}function et(S,y,A){var R=0,K=0,J=N(y,A,"header");J&&(R=J.length,S=S?[].concat(g(J),g(S)):g(J));var _=N(y,A,"footer");return _&&(K=_.length,S=S?[].concat(g(S),g(_)):g(_)),{children:S,headerOffset:R,footerOffset:K}}function ot(S,y){var A=null,R=function(xt,Oe){A=M(A,xt,Oe)},K=Object.keys(S).filter(function(kt){return kt==="id"||kt.startsWith("data-")}).reduce(function(kt,xt){return kt[xt]=S[xt],kt},{});if(R("attrs",K),!y)return A;var J=y.on,_=y.props,ct=y.attrs;return R("on",J),R("props",_),Object.assign(A.attrs,ct),A}var F=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(F,k).map(function(S){return"on"+S}),E=null,B={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(y){return y}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Y={name:"draggable",inheritAttrs:!1,props:B,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(y){var A=this.$slots.default;this.transitionMode=P(A);var R=et(A,this.$slots,this.$scopedSlots),K=R.children,J=R.headerOffset,_=R.footerOffset;this.headerOffset=J,this.footerOffset=_;var ct=ot(this.$attrs,this.componentData);return y(this.getTag(),ct,K)},created:function(){this.list!==null&&this.value!==null&&I.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&I.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&&I.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var y=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var A={};F.forEach(function(J){A["on"+J]=q.call(y,J)}),k.forEach(function(J){A["on"+J]=z.bind(y,J)});var R=Object.keys(this.$attrs).reduce(function(J,_){return J[Object(I.a)(_)]=y.$attrs[_],J},{}),K=Object.assign({},this.options,R,A,{onMove:function(_,ct){return y.onDragMove(_,ct)}});!("draggable"in K)&&(K.draggable=">*"),this._sortable=new x.a(this.rootContainer,K),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(y){this.updateOptions(y)},deep:!0},$attrs:{handler:function(y){this.updateOptions(y)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var y=this._vnode.fnOptions;return y&&y.functional},getTag:function(){return this.tag||this.element},updateOptions:function(y){for(var A in y){var R=Object(I.a)(A);v.indexOf(R)===-1&&this._sortable.option(R,y[A])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var y=this.$slots.default;return this.transitionMode?y[0].child.$slots.default:y},computeIndexes:function(){var y=this;this.$nextTick(function(){y.visibleIndexes=D(y.getChildrenNodes(),y.rootContainer.children,y.transitionMode,y.footerOffset)})},getUnderlyingVm:function(y){var A=T(this.getChildrenNodes()||[],y);if(A===-1)return null;var R=this.realList[A];return{index:A,element:R}},getUnderlyingPotencialDraggableComponent:function(y){var A=y.__vue__;return!A||!A.$options||!U(A.$options._componentTag)?!("realList"in A)&&A.$children.length===1&&"realList"in A.$children[0]?A.$children[0]:A:A.$parent},emitChanges:function(y){var A=this;this.$nextTick(function(){A.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var A=g(this.value);y(A),this.$emit("input",A)},spliceList:function(){var y=arguments,A=function(K){return K.splice.apply(K,g(y))};this.alterList(A)},updatePosition:function(y,A){var R=function(J){return J.splice(A,0,J.splice(y,1)[0])};this.alterList(R)},getRelatedContextFromMoveEvent:function(y){var A=y.to,R=y.related,K=this.getUnderlyingPotencialDraggableComponent(A);if(!K)return{component:K};var J=K.realList,_={list:J,component:K};if(A!==R&&J&&K.getUnderlyingVm){var ct=K.getUnderlyingVm(R);if(ct)return Object.assign(ct,_)}return _},getVmIndex:function(y){var A=this.visibleIndexes,R=A.length;return y>R-1?R:A[y]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(y){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var A=this.getChildrenNodes();A[y].data=null;var R=this.getComponent();R.children=[],R.kept=void 0}},onDragStart:function(y){this.context=this.getUnderlyingVm(y.item),y.item._underlying_vm_=this.clone(this.context.element),E=y.item},onDragAdd:function(y){var A=y.item._underlying_vm_;if(A!==void 0){Object(I.d)(y.item);var R=this.getVmIndex(y.newIndex);this.spliceList(R,0,A),this.computeIndexes();var K={element:A,newIndex:R};this.emitChanges({added:K})}},onDragRemove:function(y){if(Object(I.c)(this.rootContainer,y.item,y.oldIndex),y.pullMode==="clone"){Object(I.d)(y.clone);return}var A=this.context.index;this.spliceList(A,1);var R={element:this.context.element,oldIndex:A};this.resetTransitionData(A),this.emitChanges({removed:R})},onDragUpdate:function(y){Object(I.d)(y.item),Object(I.c)(y.from,y.item,y.oldIndex);var A=this.context.index,R=this.getVmIndex(y.newIndex);this.updatePosition(A,R);var K={element:this.context.element,oldIndex:A,newIndex:R};this.emitChanges({moved:K})},updateProperty:function(y,A){y.hasOwnProperty(A)&&(y[A]+=this.headerOffset)},computeFutureIndex:function(y,A){if(!y.element)return 0;var R=g(A.to.children).filter(function(ct){return ct.style.display!=="none"}),K=R.indexOf(A.related),J=y.component.getVmIndex(K),_=R.indexOf(E)!==-1;return _||!A.willInsertAfter?J:J+1},onDragMove:function(y,A){var R=this.move;if(!R||!this.realList)return!0;var K=this.getRelatedContextFromMoveEvent(y),J=this.context,_=this.computeFutureIndex(K,y);Object.assign(J,{futureIndex:_});var ct=Object.assign({},y,{relatedContext:K,draggedContext:J});return R(ct,A)},onDragEnd:function(){this.computeIndexes(),E=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",Y);var j=Y;r.default=j}}).default})})(Od);var Cw=dp(Od.exports),Aw=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)},xw=[];const ww={components:{tabbar:Li,MyApps:Us,appsItem:Vi,Draggable:Cw},name:"IndMApps",data(){return{active:0,name:"apps",apps_menus:[],my_apps:[],title:"",currentEditStatus:"off",userAppTip:"\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",editButtonName:"\u7F16\u8F91",editClass:"",rmFromMyAppsClick:this.routeTo,addToMyAppsClick:this.routeTo,offsetTop:"246px",maxApps:8}},watch:{currentEditStatus(e){switch(e){case"on":{this.userAppTip="\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F",this.editButtonName="\u5B8C\u6210",this.editClass="editing",this.rmFromMyAppsClick=this.rmFromMyApps,this.addToMyAppsClick=this.addToMyApps,this.disableDraggable=!1;break}case"off":{this.userAppTip="\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",this.editButtonName="\u7F16\u8F91",this.editClass="",this.rmFromMyAppsClick=this.routeTo,this.addToMyAppsClick=this.routeTo,this.saveMyApps(),this.disableDraggable=!0;break}}},my_apps(){setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48},200)}},updated(){this.$store.commit("setMyAppsList",this.my_apps)},mounted(){var i;this.my_apps=this.$store.getters.getMyAppsList;let e=this.$store.getters.getMenuTreeList;((i=this.$config)==null?void 0:i.mainType)=="singleApp"&&(e=e.find(r=>{var a;return r.extendProps&&((a=JSON.parse(r.extendProps))==null?void 0:a.mainMobile)=="1"}).children);let t=e.filter(n=>n.name===this.name);this.apps_menus=t[0].children,this.title=t[0].meta.title,this.processState(this.my_apps,t),console.log(this.apps_menus),setTimeout(()=>{this.offsetTop=this.$refs.myapp.clientHeight+48+10},100)},methods:{routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})},toggleEdit(){switch(this.currentEditStatus){case"on":{this.currentEditStatus="off";break}case"off":{this.currentEditStatus="on";break}}},saveMyApps(){ft.confirm({title:"\u63D0\u793A",message:"\u662F\u5426\u4FDD\u5B58"}).then(()=>{this.$store.commit("setMyAppsList",this.my_apps)}).catch(()=>{})},processState(e,t){return t.forEach(i=>{let n=!1;for(let r of e){if(r.meta.permissionId===i.meta.permissionId){n=!0,i.state=!1,r.meta.icon=i.meta.icon;break}r.state=!0}n||(i.state=!0),i.children&&this.processState(e,i.children)}),t},addToMyApps(e){if(this.my_apps.length==this.maxApps){St("\u9996\u9875\u6700\u591A\u6DFB\u52A0"+this.maxApps+"\u4E2A\u5E94\u7528!");return}if(this.my_apps.length!==0)for(var t=0;t<this.my_apps.length;t++)if(this.my_apps.find(i=>i.meta.permissionId===e.meta.permissionId)){console.log("\u5B58\u5728");break}else{console.log(this.findMenu(this.apps_menus,e,!1)),console.log("\u4E0D\u5B58\u5728"),this.my_apps.push(this.findMenu(this.apps_menus,e,!1));break}else this.my_apps.push(this.findMenu(this.apps_menus,e,!1))},rmFromMyApps(e){for(var t=0;t<this.my_apps.length;t++)if(this.my_apps[t].meta.permissionId===e.meta.permissionId){this.my_apps.splice(t,1);break}this.findMenu(this.apps_menus,e,!0)},findMenu(e,t,i){for(var n=0;n<e.length;n++){if(e[n].children){let r=this.findMenu(e[n].children,t,i);if(r)return r}if(e[n].meta.permissionId===t.meta.permissionId)return e[n].state=i,e[n]}return!1}}},tf={};var kw=at(ww,Aw,xw,!1,Tw,null,null,null);function Tw(e){for(let t in tf)this[t]=tf[t]}var oo=function(){return kw.exports}(),Mw=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)},Ew=[],nk="";const Iw={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}}},ef={};var Bw=at(Iw,Mw,Ew,!1,Dw,"1cee7da5",null,null);function Dw(e){for(let t in ef)this[t]=ef[t]}var lo=function(){return Bw.exports}(),Ow=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%"},attrs:{src:e.getImg(n.meta.icon),alt:"icon"}})])}),e.showMoreIcon?i("div",{staticClass:"ind-myApp-slim-icon"},[e._v(" "+e._s("...")+" ")]):e._e()],2),e.icons.length!==0?i("van-icon",{staticClass:"ind-myApp-slim-toggle-icon",class:{"ind-myApp-slim-rotate-down":e.expanded},attrs:{name:"arrow"}}):e._e()],1),i("div",{staticClass:"ind-myApp-slim-content-button"},[i("div",{staticClass:"ind-myApp-slim-content-button-btn",on:{click:e.edit}},[e._v("\u7F16\u8F91")])])]),e.expanded?i("div",{staticStyle:{width:"100%",height:"auto","background-color":"#fff"}},[i("van-swipe",{attrs:{"show-indicators":!0,loop:!1,"indicator-color":"#005aaf"}},e._l(e.list,function(n,r){return i("van-swipe-item",{key:r},[i("div",{style:{paddingBottom:e.list.length>1?"30px":"0"}},[i("div",{staticClass:"ind-myApp-slim-content-content"},e._l(n,function(a,s){return i("div",{key:s,staticClass:"ind-myApp-slim-content-content-item"},[i("apps-item",{attrs:{item:a,state:a.state,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),0)])])}),1)],1):e._e()])},Nw=[];const Lw={components:{appsItem:Vi},data(){return{icon:Bd}},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}},methods:{getImg(e){console.log(location.origin+e);const t=location.pathname.includes("scyxweb");return`${location.origin}${t?"/hbwebchat/scyxweb":""}${e}`},edit(){this.$emit("edit")},open(){this.$emit("open")},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}}},nf={};var Vw=at(Lw,Ow,Nw,!1,Pw,null,null,null);function Pw(e){for(let t in nf)this[t]=nf[t]}var rf=function(){return Vw.exports}(),Rw=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",{staticClass:"ind-m-sidebar-text"},[e._v(e._s(n.meta.title))])])}),0),i("div",{ref:"scrollContainer",staticClass:"ind-m-apps-container",staticStyle:{"padding-top":"0px","padding-bottom":"500px",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",{staticClass:"ind-m-menu-section-content"},e._l((((e.apps_menus[e.active]||{}).children||[])[r]||{}).children||[],function(a,s){return i("div",{key:"level3-"+s,class:["ind-m-app-item-wrapper",{"full-width":a.children}]},[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("van-grid",{attrs:{border:!1,clickable:"",gutter:0,"column-num":3}},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("van-grid-item",{key:o.meta.permissionId},[i("apps-item",{attrs:{item:o,state:o.state,title:o.meta.title,editStatus:"off"},on:{touchend:e.routeTo}})],1)}),1):e._e()],1)}),0)])}),0)])]),i("tabbar")],1)],1)},qw=[];const Fw={components:{tabbar:Li,appsItem:Vi,myapp:rf},name:"IndMApps",data(){return{disMyapp:!1,activeTab:0,isHb:!1,show:!1,searchValue:"",activeKey:0,active:0,name:"appsNew",apps_menus:[],title:"",searchApp:[],tabActiveKeys:{},myAppList:[],scrollDebounceTimer:null,isManualScroll:!1,sectionPositions:[],resizeObserver:null}},watch:{active(e,t){this.$set(this.tabActiveKeys,t,this.activeKey),this.activeKey=this.tabActiveKeys[e]||0,this.$nextTick(()=>{const i=Array.isArray(this.$refs.scrollContainer)?this.$refs.scrollContainer[0]:this.$refs.scrollContainer;i&&(i.scrollTop=0)})}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0,t=setInterval(()=>{var n;e++;let i=this.$store.getters.getMenuTreeList||[];if(i&&i.length>0){clearInterval(t),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,i),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&(i=i.find(s=>{var o;return s.extendProps&&((o=JSON.parse(s.extendProps))==null?void 0:o.mainMobile)=="1"}).children);let r=i.filter(a=>a.name===this.name);this.apps_menus=r[0].children,this.title=r[0].meta.title,this.appsMenusExtended(this.apps_menus),this.tabActiveKeys={},this.apps_menus.forEach((a,s)=>{this.$set(this.tabActiveKeys,s,0)}),this.initScrollHandler(),this.cacheSectionPositions(),this.setupResizeObserver()}else e>=MAX_RETRY?(clearInterval(t),console.warn(`\u5C1D\u8BD5${MAX_RETRY}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},beforeDestroy(){this.removeScrollHandler(),this.resizeObserver&&this.resizeObserver.disconnect()},methods:{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}}},af={};var Uw=at(Fw,Rw,qw,!1,Yw,null,null,null);function Yw(e){for(let t in af)this[t]=af[t]}var jw=function(){return Uw.exports}(),Gw=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",[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)},Kw=[];function co(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 Hw={components:{tabbar:Li,appsItem:Vi,myapp:rf},name:"IndMApps",data(){return{active:0,disMyapp:!1,isHb:!1,show:!1,searchValue:"",name:"appsNew",apps_menus:[],title:"",searchApp:[],myAppList:[],allApps_menus:[],titleList:[]}},mounted(){this.myAppList=JSON.parse(sessionStorage.getItem("myAppsList"))||[],this.isHb=location.pathname.includes("scyxweb");let e=0;const t=50;let i=setInterval(()=>{var r;e++;let n=this.$store.getters.getMenuTreeList||[];if(n&&n.length>0){clearInterval(i),console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`,n),((r=this.$config)==null?void 0:r.mainType)=="singleApp"&&(n=n.find(c=>{var h;return c.extendProps&&((h=JSON.parse(c.extendProps))==null?void 0:h.mainMobile)=="1"}).children);let a=n.filter(l=>l.name===this.name),s=a[0].children.map(l=>l.meta.title);this.titleList=["\u5168\u90E8",...s];const o=a[0].children.reduce((l,c)=>(l[c.meta.title]=c,l),{});this.allApps_menus={\u5168\u90E8:a[0].children,...o},this.apps_menus=this.allApps_menus.\u5168\u90E8,this.apps_menus=co(this.apps_menus),this.title=a[0].meta.title}else e>=t?(clearInterval(i),console.warn(`\u5C1D\u8BD5${t}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`)):console.log(`\u7B2C${e}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`)},100)},methods:{handleTabClick(e,t){var i;this.active!==t&&(this.active=t,this.apps_menus=this.allApps_menus[e],e!=="\u5168\u90E8"?this.apps_menus=co(((i=this.apps_menus)==null?void 0:i.children)||[]):this.apps_menus=co(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"),i=t.children[e];if(i){const n=i.offsetTop-3;t.scrollTo({top:n,behavior:"smooth"})}})},onSearch(){if(!this.searchValue.trim()){this.show=!1,this.searchApp=[];return}const e=this.searchValue.toLowerCase().trim(),t=this.findObjectsWithoutChildren(this.apps_menus);this.searchApp=t.filter(i=>{var n,r;return(r=(n=i.meta)==null?void 0:n.title)==null?void 0:r.toLowerCase().includes(e)}),this.show=this.searchApp.length>0},onClear(){this.searchValue=""},findObjectsWithoutChildren(e){const t=[];function i(n){for(const r of n)(!r.children||r.children.length===0)&&t.push(r),r.children&&r.children.length>0&&i(r.children)}return i(e),t},routeTo(e){var t;(t=e==null?void 0:e.uri)!=null&&t.includes("http")?location.href=e.uri:this.$router.push({path:e.uri})}},computed:{paginatedApps(){const e=this.myAppList||[],t=8,i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},rowAppCount(){var e,t;return((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.rowAppCount)||5}}},sf={};var zw=at(Hw,Gw,Kw,!1,Ww,null,null,null);function Ww(e){for(let t in sf)this[t]=sf[t]}var Jw=function(){return zw.exports}(),Qw=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(e.currentComponent,{tag:"component"})},Zw=[];function of(e,t=1){if(!e.children||e.children.length===0)return t;let i=t;for(const n of e.children){const r=of(n,t+1);r>i&&(i=r)}return i}function $w(e){let t=0;for(const i of e){const n=of(i);n>t&&(t=n)}return t}const Xw={components:{aboveleveltwo:jw,leveltwo:Jw},data(){return{level:3,name:"appsNew",apps_menus:[],isHb:!1,depth:"4"}},methods:{appsMenusExtended(e,t=0){if(t>4)return;(Array.isArray(e)?e:[e]).forEach(n=>{!n||(n.type===2&&this.isHb&&this.completeNode(n),n.children&&n.children.length>0&&this.appsMenusExtended(n.children,t+1))})},completeNode(e){const t={...e,children:[]};e.children=[t],e.__processed=!0}},created(){var n;this.isHb=location.pathname.includes("scyxweb");let e=this.$store.getters.getMenuTreeList||[];e.length||console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC"),((n=this.$config)==null?void 0:n.mainType)=="singleApp"&&(e=e.find(a=>{var s;return a.extendProps&&((s=JSON.parse(a.extendProps))==null?void 0:s.mainMobile)=="1"}).children);let t=e.filter(r=>r.name===this.name);this.apps_menus=t[0].children,this.appsMenusExtended(this.apps_menus);const i=$w(this.apps_menus);this.depth=i},computed:{currentComponent(){var e,t;if(this.level=((t=(e=this.$config)==null?void 0:e.systemDefaultConfig)==null?void 0:t.theLevel)||3,this.depth=this.depth||4,this.level==2&&this.depth>=2)return"leveltwo";if(this.level==3){if(this.depth<=2)return"leveltwo";if(this.depth>=3)return"aboveleveltwo"}return"aboveleveltwo"}}},lf={};var _w=at(Xw,Qw,Zw,!1,t0,null,null,null);function t0(e){for(let t in lf)this[t]=lf[t]}var uo=function(){return _w.exports}(),e0=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..."))])])])])])},i0=[];const n0={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)}}},cf={};var r0=at(n0,e0,i0,!1,a0,null,null,null);function a0(e){for(let t in cf)this[t]=cf[t]}var uf=function(){return r0.exports}(),s0=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)},o0=[];const l0={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()}}},hf={};var c0=at(l0,s0,o0,!1,u0,null,null,null);function u0(e){for(let t in hf)this[t]=hf[t]}var ho=function(){return c0.exports}(),fo=Object.freeze(Object.defineProperty({__proto__:null,NotFound:Gi,ErrorContent:$r,DatePicker:Uo,Form:zo,LoadMore:Jo,User1:il,BasicLayout:rl,EmptyLayout:Ci,DetailView:ol,PageView:cl,PopupView:hl,QueryView:fl,Login:qs,Search:bd,SelectPanel:Ad,InputSelect:wd,SelectBtn:Td,User:Fs,Apps:oo,AppsEdit:lo,MyApps:Us,AppsNew:uo,appItem:Vi,tabbar:Li,LoadingPanel:uf,Setting:ho},Symbol.toStringTag,{value:"Module"})),df={install(e,{config:t}={}){e.prototype.$config=b.default.merge({},e.prototype.$config||{},t||V.config)}},ff={install(e,{router:t,store:i}){e.prototype.$backToMenu=function(){if(console.log("trigger $backToMenu"),this.$config.showMenus){const n=i.state.app.breadCrumbList;i.commit("closeTag",{$router:t,route:b.default.cloneDeep(b.default.find(i.state.app.tagNavList,{name:n[n.length-1].name})||{})}),t.push({name:n[n.length-2].name}).catch(()=>{})}else t.go(-1)}}},h0=Object.freeze(Object.defineProperty({__proto__:null,IndConfigPlugin:df,IndRouterPlugin:ff},Symbol.toStringTag,{value:"Module"}));const pf=function(e,t,i){const n=i.context;e.style.display="none";const r=t.value;(n.$store.state.app.permission[r]||r==="all")&&(e.style.display="")},mf={bind:pf,update:pf};var po=Object.freeze(Object.defineProperty({__proto__:null,permission:mf},Symbol.toStringTag,{value:"Module"}));const gf={name:Ye.rootRouteName,path:"/",redirect:"/home",component:Ci,meta:{hideInMenu:!0,notCache:!0},children:[{name:Ye.homeRouteName,path:"home",redirect:"/apps?t="+new Date().getTime(),meta:{hideInMenu:!0,title:"\u9996\u9875",icon:"md-home"}}]},d0={name:Ye.loginRouteName,path:"/login",meta:{title:"Login - \u767B\u5F55",hideInMenu:!0},component:qs},f0={name:"user",path:"/user",component:Fs,meta:{hideInMenu:!0,notCache:!0}},p0={name:"setting",path:"/setting",component:ho,meta:{hideInMenu:!0,notCache:!0}},m0={name:"apps",path:"/apps",component:oo,meta:{hideInMenu:!0,notCache:!0}},g0={name:"appsNew",path:"/appsNew",component:uo,meta:{hideInMenu:!0,notCache:!0}},v0={name:"appsEdit",path:"/appsEdit",component:lo,meta:{hideInMenu:!0,notCache:!0}},y0={path:"/404",meta:{hideInMenu:!0},component:Gi};function b0({homeComponent:e,rootChildren:t}={}){const i=b.default.cloneDeep(gf);e&&(i.children[0].component=e),t&&t.length&&i.children.push(...t);let n=location.host.includes("localhost")?[d0]:[];return[i,...n,f0,p0,m0,v0,y0,g0]}function S0({rootChildren:e}={}){const t=b.default.cloneDeep(gf);return t.component=Ci,t.children=[],e&&e.length&&t.children.push(...e),[t]}const C0={EmptyLayout:{component:Ci},EmptyLayoutNotCache:{component:{...Ci,name:"IndEmptyLayoutNotCache"}}},Rr={DIRECTORY:1,MENU:2,BUTTON:3,PAGE:4};function vf(e){return[Rr.DIRECTORY,Rr.MENU].includes(e)}function yf(e,t=[]){return e?t.filter(i=>{const n=(i==null?void 0:i.permissionValue)||"";return n.startsWith(e)||n.startsWith(`${V.config.routerBase}-${e}`)}):t}function mo({list:e,menuTree:t,pageNode:i,parentId:n,crumbs:r,root:a}){if(!e)return;let s=V.getSessionStorage("appInfo");e.forEach(o=>{var M;const{permissionId:l,label:c,appId:h,pid:d,icon:u,type:f,uri:p,permissionValue:m,extendProps:g}=o;if(h!=s.appId)return;const C=m;let x=!1,I=!1;if(o&&o.extendProps)try{x=((M=JSON.parse(o.extendProps))==null?void 0:M.hideInIbp)==="1"}catch{x=!1}try{if(o&&o.extension){const T=JSON.parse(o.extension);if(T.extendProps){const D=typeof T.extendProps=="string"?JSON.parse(T.extendProps):T.extendProps;(D==null?void 0:D.hideInMenu)==1&&(I=!0)}}}catch{I=!1}if(d===n&&!(x||I)){if(vf(f)){let T={type:f,name:C,pid:d,path:bf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,icon:u,crumbs:[...r],activeName:C},children:[],extendProps:g};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),Rr.DIRECTORY===f&&(T.component="EmptyLayout"),mo({list:e,menuTree:T.children,pageNode:i,parentId:l,crumbs:T.meta.crumbs,root:!1}),T.children.length||delete T.children,t.push(T)}if(Rr.PAGE===f){let T={type:f,name:C,pid:d,path:bf(p),uri:p,component:C,meta:{appId:h,permissionId:l,title:c,hideInMenu:!0,notCache:!0,crumbs:[...r],type:f}};T.meta.crumbs.push({icon:u,name:C,title:c,type:f}),i.children.push(T)}}})}function bf(e){return e?(e.startsWith("/")||(e=`/${e}`),e.includes("?")&&(e=e.split("?")[0]),e.includes(".")&&(e=e.split(".")[0]),e):""}function Sf(e=[]){e=e.filter(i=>vf(i.type));const t=[];return mo({list:e,menuTree:t,pageNode:{children:[]},parentId:"0",crumbs:[],root:!0}),t}function A0(e=[]){const t=[],i={path:"/page",name:"page",meta:{hideInMenu:!0,notCache:!0},component:"EmptyLayoutNotCache",children:[]};return mo({list:e,menuTree:t,pageNode:i,parentId:"0",crumbs:[],root:!0}),i.children.length&&t.push(i),go(t)}function go(e=[]){for(let t of e)if(t.component){const i=C0[t.component];i?t.component=i.component:t.path?window.loadComponentHandler&&(t.component=window.loadComponentHandler(t.path,t.name)||Gi):(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=Gi),t.children&&t.children.length>0&&go(t.children)}return e}var vo={exports:{}},Cf=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)}},x0=Cf,vi=Object.prototype.toString;function yo(e){return vi.call(e)==="[object Array]"}function bo(e){return typeof e=="undefined"}function w0(e){return e!==null&&!bo(e)&&e.constructor!==null&&!bo(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function k0(e){return vi.call(e)==="[object ArrayBuffer]"}function T0(e){return typeof FormData!="undefined"&&e instanceof FormData}function M0(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function E0(e){return typeof e=="string"}function I0(e){return typeof e=="number"}function Af(e){return e!==null&&typeof e=="object"}function qr(e){if(vi.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function B0(e){return vi.call(e)==="[object Date]"}function D0(e){return vi.call(e)==="[object File]"}function O0(e){return vi.call(e)==="[object Blob]"}function xf(e){return vi.call(e)==="[object Function]"}function N0(e){return Af(e)&&xf(e.pipe)}function L0(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function V0(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function P0(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function So(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),yo(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 Co(){var e={};function t(r,a){qr(e[a])&&qr(r)?e[a]=Co(e[a],r):qr(r)?e[a]=Co({},r):yo(r)?e[a]=r.slice():e[a]=r}for(var i=0,n=arguments.length;i<n;i++)So(arguments[i],t);return e}function R0(e,t,i){return So(t,function(r,a){i&&typeof r=="function"?e[a]=x0(r,i):e[a]=r}),e}function q0(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var $t={isArray:yo,isArrayBuffer:k0,isBuffer:w0,isFormData:T0,isArrayBufferView:M0,isString:E0,isNumber:I0,isObject:Af,isPlainObject:qr,isUndefined:bo,isDate:B0,isFile:D0,isBlob:O0,isFunction:xf,isStream:N0,isURLSearchParams:L0,isStandardBrowserEnv:P0,forEach:So,merge:Co,extend:R0,trim:V0,stripBOM:q0},Ui=$t;function wf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var kf=function(t,i,n){if(!i)return t;var r;if(n)r=n(i);else if(Ui.isURLSearchParams(i))r=i.toString();else{var a=[];Ui.forEach(i,function(l,c){l===null||typeof l=="undefined"||(Ui.isArray(l)?c=c+"[]":l=[l],Ui.forEach(l,function(d){Ui.isDate(d)?d=d.toISOString():Ui.isObject(d)&&(d=JSON.stringify(d)),a.push(wf(c)+"="+wf(d))}))}),r=a.join("&")}if(r){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},F0=$t;function Fr(){this.handlers=[]}Fr.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},Fr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Fr.prototype.forEach=function(t){F0.forEach(this.handlers,function(n){n!==null&&t(n)})};var U0=Fr,Y0=$t,j0=function(t,i){Y0.forEach(t,function(r,a){a!==i&&a.toUpperCase()===i.toUpperCase()&&(t[i]=r,delete t[a])})},Tf=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},G0=Tf,Mf=function(t,i,n,r,a){var s=new Error(t);return G0(s,i,n,r,a)},K0=Mf,H0=function(t,i,n){var r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(K0("Request failed with status code "+n.status,n.config,null,n.request,n))},Ur=$t,z0=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(){}}}(),W0=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},J0=function(t,i){return i?t.replace(/\/+$/,"")+"/"+i.replace(/^\/+/,""):t},Q0=W0,Z0=J0,$0=function(t,i){return t&&!Q0(i)?Z0(t,i):i},Ao=$t,X0=["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"],_0=function(t){var i={},n,r,a;return t&&Ao.forEach(t.split(`
|
|
21
21
|
`),function(o){if(a=o.indexOf(":"),n=Ao.trim(o.substr(0,a)).toLowerCase(),r=Ao.trim(o.substr(a+1)),n){if(i[n]&&X0.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([r]):i[n]=i[n]?i[n]+", "+r:r}}),i},Ef=$t,t1=Ef.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=Ef.isString(s)?r(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),Yr=$t,e1=H0,i1=z0,n1=kf,r1=$0,a1=_0,s1=t1,xo=Mf,If=function(t){return new Promise(function(n,r){var a=t.data,s=t.headers,o=t.responseType;Yr.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=r1(t.baseURL,t.url);l.open(t.method.toUpperCase(),n1(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!!l){var p="getAllResponseHeaders"in l?a1(l.getAllResponseHeaders()):null,m=!o||o==="text"||o==="json"?l.responseText:l.response,g={data:m,status:l.status,statusText:l.statusText,headers:p,config:t,request:l};e1(n,r,g),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(xo("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(xo("Network Error",t,null,l)),l=null},l.ontimeout=function(){var m="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),r(xo(m,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},Yr.isStandardBrowserEnv()){var f=(t.withCredentials||s1(d))&&t.xsrfCookieName?i1.read(t.xsrfCookieName):void 0;f&&(s[t.xsrfHeaderName]=f)}"setRequestHeader"in l&&Yr.forEach(s,function(m,g){typeof a=="undefined"&&g.toLowerCase()==="content-type"?delete s[g]:l.setRequestHeader(g,m)}),Yr.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)})},Dt=$t,Bf=j0,o1=Tf,l1={"Content-Type":"application/x-www-form-urlencoded"};function Df(e,t){!Dt.isUndefined(e)&&Dt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c1(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=If),e}function u1(e,t,i){if(Dt.isString(e))try{return(t||JSON.parse)(e),Dt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(e)}var jr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c1(),transformRequest:[function(t,i){return Bf(i,"Accept"),Bf(i,"Content-Type"),Dt.isFormData(t)||Dt.isArrayBuffer(t)||Dt.isBuffer(t)||Dt.isStream(t)||Dt.isFile(t)||Dt.isBlob(t)?t:Dt.isArrayBufferView(t)?t.buffer:Dt.isURLSearchParams(t)?(Df(i,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Dt.isObject(t)||i&&i["Content-Type"]==="application/json"?(Df(i,"application/json"),u1(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&&Dt.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?o1(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}};jr.headers={common:{Accept:"application/json, text/plain, */*"}},Dt.forEach(["delete","get","head"],function(t){jr.headers[t]={}}),Dt.forEach(["post","put","patch"],function(t){jr.headers[t]=Dt.merge(l1)});var wo=jr,h1=$t,d1=wo,f1=function(t,i,n){var r=this||d1;return h1.forEach(n,function(s){t=s.call(r,t,i)}),t},Of=function(t){return!!(t&&t.__CANCEL__)},Nf=$t,ko=f1,p1=Of,m1=wo;function To(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var g1=function(t){To(t),t.headers=t.headers||{},t.data=ko.call(t,t.data,t.headers,t.transformRequest),t.headers=Nf.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Nf.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var i=t.adapter||m1.adapter;return i(t).then(function(r){return To(t),r.data=ko.call(t,r.data,r.headers,t.transformResponse),r},function(r){return p1(r)||(To(t),r&&r.response&&(r.response.data=ko.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},Pt=$t,Lf=function(t,i){i=i||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(u,f){return Pt.isPlainObject(u)&&Pt.isPlainObject(f)?Pt.merge(u,f):Pt.isPlainObject(f)?Pt.merge({},f):Pt.isArray(f)?f.slice():f}function c(u){Pt.isUndefined(i[u])?Pt.isUndefined(t[u])||(n[u]=l(void 0,t[u])):n[u]=l(t[u],i[u])}Pt.forEach(r,function(f){Pt.isUndefined(i[f])||(n[f]=l(void 0,i[f]))}),Pt.forEach(a,c),Pt.forEach(s,function(f){Pt.isUndefined(i[f])?Pt.isUndefined(t[f])||(n[f]=l(void 0,t[f])):n[f]=l(void 0,i[f])}),Pt.forEach(o,function(f){f in i?n[f]=l(t[f],i[f]):f in t&&(n[f]=l(void 0,t[f]))});var h=r.concat(a).concat(s).concat(o),d=Object.keys(t).concat(Object.keys(i)).filter(function(f){return h.indexOf(f)===-1});return Pt.forEach(d,c),n},v1={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"}]},Vf=v1,Mo={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Mo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Pf={},y1=Vf.version.split(".");function Rf(e,t){for(var i=t?t.split("."):y1,n=e.split("."),r=0;r<3;r++){if(i[r]>n[r])return!0;if(i[r]<n[r])return!1}return!1}Mo.transitional=function(t,i,n){var r=i&&Rf(i);function a(s,o){return"[Axios v"+Vf.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&&!Pf[o]&&(Pf[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 b1(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 S1={isOlderVersion:Rf,assertOptions:b1,validators:Mo},qf=$t,C1=kf,Ff=U0,Uf=g1,Gr=Lf,Yf=S1,Yi=Yf.validators;function Cn(e){this.defaults=e,this.interceptors={request:new Ff,response:new Ff}}Cn.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Gr(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&&Yf.assertOptions(i,{silentJSONParsing:Yi.transitional(Yi.boolean,"1.0.0"),forcedJSONParsing:Yi.transitional(Yi.boolean,"1.0.0"),clarifyTimeoutError:Yi.transitional(Yi.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=[Uf,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=Uf(l)}catch(d){return Promise.reject(d)}for(;a.length;)s=s.then(a.shift(),a.shift());return s},Cn.prototype.getUri=function(t){return t=Gr(this.defaults,t),C1(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},qf.forEach(["delete","get","head","options"],function(t){Cn.prototype[t]=function(i,n){return this.request(Gr(n||{},{method:t,url:i,data:(n||{}).data}))}}),qf.forEach(["post","put","patch"],function(t){Cn.prototype[t]=function(i,n,r){return this.request(Gr(r||{},{method:t,url:i,data:n}))}});var A1=Cn;function Eo(e){this.message=e}Eo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Eo.prototype.__CANCEL__=!0;var jf=Eo,x1=jf;function Kr(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 x1(r),t(i.reason))})}Kr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Kr.source=function(){var t,i=new Kr(function(r){t=r});return{token:i,cancel:t}};var w1=Kr,k1=function(t){return function(n){return t.apply(null,n)}},T1=function(t){return typeof t=="object"&&t.isAxiosError===!0},Gf=$t,M1=Cf,Hr=A1,E1=Lf,I1=wo;function Kf(e){var t=new Hr(e),i=M1(Hr.prototype.request,t);return Gf.extend(i,Hr.prototype,t),Gf.extend(i,t),i}var xe=Kf(I1);xe.Axios=Hr,xe.create=function(t){return Kf(E1(xe.defaults,t))},xe.Cancel=jf,xe.CancelToken=w1,xe.isCancel=Of,xe.all=function(t){return Promise.all(t)},xe.spread=k1,xe.isAxiosError=T1,vo.exports=xe,vo.exports.default=xe;var B1=vo.exports;const zr=location.pathname.includes("scyxweb"),D1=navigator.userAgent.toLowerCase(),O1=!!/wxwork/.test(D1),Hf={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 N1({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:r}){var m,g;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(((g=(m=V.getSessionStorage("appInfo"))==null?void 0:m.extendProps)==null?void 0:g.extendProps)||"{}"),l=V.getLocalStorage("versionInfo");if(l){if(o.appVersion>l.appVersion){V.setLocalStorage("versionInfo",o);let C=window.location.href,x=new URL(C),I=new URLSearchParams(x.search);I.set("v",o.appVersion),x.search=I.toString(),window.location.href=x.href}}else V.setLocalStorage("versionInfo",o);e.options=b.default.cloneDeep(r);const c=yf(i,s),h=A0(c);console.log("dynamicROuters",h);const d=e.options.routes.find(C=>C.path==="/");for(const C of h)e.addRoute(d.name,C),d.children.push(C);const f=yf(i,n).filter(C=>e.options.routes.findIndex(x=>C.name===x.name)===-1);f.forEach(C=>{C.component=C.name,C.meta={hideInMenu:!0,title:C.label,activeName:C.name}});const p=go(f);for(const C of p)e.addRoute(Ye.rootRouteName,C)}function L1({router:e,store:t,microType:i,allowPermissionList:n}){Dp();const r=Ye.loginRouteName,a=b.default.cloneDeep(e.options);window.sessionNotValidHandler=async function(){if(typeof window.Code!="undefined"||zr){try{await Wr(t)}catch(s){if(console.log("pluginLogin e",s),zr)if(O1)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){we.Message.error({content:s,duration:10,closable:!0})},e.beforeEach(async(s,o,l)=>{console.log("router.beforeEach at guard"),we.LoadingBar.start();let c=V.getToken(),h=location.search;if(h){let f=/token=(.*)/.exec(h);if(f&&f.length>1&&c!==f[1]&&(c=f[1],t.dispatch("loginSuccess",c)),!c){let p=window.getQueryVariable("tokenWeapp");p&&(console.log("tokenInQuery",p),V.setToken(p),c=p)}}console.log("typeof window.Code",typeof window.Code);async function d(){var f,p,m;if(t.state.user.userName)console.log("window?.selectInst?.show",(f=window==null?void 0:window.selectInst)==null?void 0:f.show),(p=window==null?void 0:window.selectInst)!=null&&p.show?(window.selectInst.$emit("update:show",!1),console.log("router3"),l(!1)):(m=window==null?void 0:window.popupPageInst)!=null&&m.value?(window.popupPageInst.$emit("input",!1),console.log("router4"),l(!1)):(console.log("router5"),l());else{we.Spin.show();try{await N1({router:e,store:t,microType:i,allowPermissionList:n,routerOptionsBak:a}),console.log("router1");const g=getQueryVariable("state");let C={};!!g&&g!="null"?(C=JSON.parse(decodeURIComponent(decodeURIComponent(g))),console.log("state",C),sessionStorage.setItem("isFromIM","1"),console.log("isFromIM\u6807\u8BC61\u5DF2\u6DFB\u52A0\u5230sessionStorage"),l({path:C.url,replace:!0})):l({...s,replace:!0})}catch{console.log("router2"),l({name:r})}we.Spin.hide()}}const u=getQueryVariable("code");typeof window.Code!="undefined"||u||zr?c?(await zf()||(c=await Wr(t),t.dispatch("loginSuccess",c)),await d()):(c=await Wr(t),t.dispatch("loginSuccess",c),await d()):!c&&s.name!==r?(console.log("router6"),l({name:r})):s.name===r?(console.log("router7"),l()):(console.log("router8"),await zf()||(c=await Wr(t),t.dispatch("loginSuccess",c)),await d())}),e.afterEach(s=>{we.LoadingBar.finish(),window.scrollTo(0,0)})}const Wr=e=>(sessionStorage.removeItem("lambo-token"),sessionStorage.removeItem("sso_token"),sessionStorage.removeItem("userInfo"),localStorage.removeItem("v8-token"),localStorage.removeItem("userId"),localStorage.removeItem("userInfo"),Hf.set("lambo-sso-key","",1),Hf.set("TOKEN_KEY","",1),e.commit("setUserName",""),e.commit("setToken",""),zr?new Promise((t,i)=>{let n=location.protocol+"//"+location.host+"/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";V.axios.get(n).then(async r=>{V.setToken(r.token),t(r.token),localStorage.setItem("v8-token",r.token),sessionStorage.setItem("lambo-token",r.token)}).catch(r=>{console.log("\u83B7\u53D6token\u5F02\u5E38",r),i(0)})}):new Promise((t,i)=>{console.log("1111`111");const n=getQueryVariable("code");n?V.axios.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code="+n).then(async r=>{V.setToken(r.token),t(r.token)}).catch(r=>{console.log("\u83B7\u53D6token\u5F02\u5E38",r),we.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}),i(0)}):(Code.postMessage(""),window.getCode=function(r){console.log("getCode res",r),V.axios.get("/ind-uc-ext-server/sso/ssoAppLogin?code="+r).then(async a=>{V.setToken(a.token),t(a.token)}).catch(a=>{console.log("\u83B7\u53D6token\u5F02\u5E38",a),we.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}),i(0)})})}));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 zf=async()=>{var e;if(localStorage.getItem("whoisyourdaddy")=="1")return Promise.resolve(!0);try{let t=V.getToken();return((e=(await B1.get(`${Ye.authServerContext}/manage/user/getCurrentInfo`,{params:{},headers:{token:t}})).data)==null?void 0:e.code)==1}catch(t){return console.log("getLoginData e",t),we.Message.error({content:"\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01",duration:10,closable:!0}),!1}},V1={mode:"history",base:"ind-mobile"};var P1={state:{userName:"",avatarImgPath:"",userManageUnitId:"",token:V.getToken()},mutations:{setAvatar(e,t){e.avatarImgPath=t},setUserName(e,t){e.userName=t},setUserManageUnitId(e,t){e.userManageUnitId=t},setToken(e,t){e.token=t,V.setToken(t)}},actions:{async handleLogin({dispatch:e},{userName:t,password:i,validCodeId:n,validCodeInput:r}){const a=await V.loginApi({userName:t,password:i,validCodeId:n,validCodeInput:r});return e("loginSuccess",a.token),a.url},loginSuccess({commit:e,dispatch:t},i){V.clearUserInfoCache(),e("setToken",i),e("setTagNavList",[]),window.top===window.self&&V.clearPermissionCache()},async handleLogout({state:e,commit:t}){await V.logoutApi(e.token),t("setToken",""),t("setUserName",""),t("setUserManageUnitId",""),setTimeout(()=>{window.location.reload()},0)},async getUserInfo({commit:e}){const t=V.getUserInfoCache();if(t)return e("setAvatar",t.userAvater),e("setUserName",t.userName),e("setUserManageUnitId",t.manageUnitId),t;const{data:i}=await V.getUserInfoApi();return e("setAvatar",i.userAvater),e("setUserName",i.userName),e("setUserManageUnitId",i.manageUnitId),V.setUserInfoCache(i),i}}};const Wf=location.pathname.includes("scyxweb");function R1(e){return V.axios.get(`${location.protocol}//${location.host}${Wf?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,{params:e})}function q1(e){return V.axios.post(`${location.protocol}//${location.host}${Wf?"/scyxgateway":""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,e)}const{homeRouteName:Jr}=Ye,F1=(e,t,i)=>{const n=Ep(e.tagNavList,i);e.tagNavList=e.tagNavList.filter(r=>!xn(r,i)),t.push(n)};var U1={state:{appInfo:"",appList:[],permissionList:[],permission:{},menuTreeList:[],myAppsList:[],homeRoute:{},breadCrumbList:[],tagNavList:[],activeName:"",collectMenuList:[],maxTabNum:5,theme:kn()},getters:{getAppInfo(e){let t=e.appInfo;return t||(t=V.getSessionStorage("appInfo")),t||{}},getAppList(e){let t=e.appList;return t.length||(t=V.getSessionStorage("appList")),t||[]},getMenuTreeList(e){let t=e.menuTreeList;return t.length||(t=V.getSessionStorage("menuTreeList")),t||[]},getMaxTabNum(e){let t=e.maxTabNum;return t||(t=V.getSessionStorage("maxTabNum")),t||5},getTheme(e){let t=e.theme;return t||(t=kn()),t},getMyAppsList(e){let t=e.myAppsList;return t.length||(t=V.getSessionStorage("myAppsList")),t||[]}},mutations:{setAppList(e,t){V.setSessionStorage("appList",t),e.appList=t},setAppInfo(e,t){let i=e.appList;i.length<=0&&(i=V.getSessionStorage("appList")||[]);const n=i.find(r=>r.appId==t);n&&(V.setSessionStorage("appInfo",n),e.appInfo=n)},setPermission(e,t){e.permission=t},setPermissionList(e,t){e.permissionList=t},setMenuTreeList(e,t){V.setSessionStorage("menuTreeList",t),e.menuTreeList=t},setMyAppsList(e,t){V.setSessionStorage("myAppsList",t),e.myAppsList=t},setHomeRoute(e,t){const i=t.options.routes;e.homeRoute=ea(i,Jr)},setBreadCrumb(e,t){e.breadCrumbList=Tp(t,e.homeRoute)},setTagNavList(e,t){let i=[];t?i=[...t]:i=Mp()||[];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,Yo([...i])},closeTag(e,{$router:t,route:i}){let n=e.tagNavList.filter(r=>xn(r,i));i=n[0]?n[0]:null,i&&F1(e,t,i)},addTag(e,{route:t,type:i="unshift"}){let n=kp(t);Ip(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),Yo([...e.tagNavList]))},setActiveName(e,t){e.activeName=t},setCollectMenuList(e,t){e.collectMenuList=t},setMaxTabNum(e,t=5){V.setSessionStorage("maxTabNum",t),e.maxTabNum=t},setTheme(e,t){e.theme=t,V.setLocalStorage(wn,t),Tn(t)}},actions:{async getAppListData({commit:e,getters:t}){let i=t.getAppList;if(!i.length){const{data:r=[]}=await V.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=V.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=V.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",Sf(t)),t}try{const{data:i}=await V.getPermissionApi(),n={};for(const r of i)r.permissionValue&&(n[r.permissionValue]=!0);return e("setPermissionList",i),e("setPermission",n),e("setMenuTreeList",Sf(i)),V.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 V.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 V.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 V.removeMenuCollectApi({appId:n,permissionId:r})},async saveMyAppsList({commit:e},t){try{await q1(t)}catch(i){console.error("saveMyAppsList:",i)}},async getMyAppsList({commit:e},t){try{let{data:i}=await R1(t);i=i||"[]",e("setMyAppsList",i)}catch(i){console.error("getMyAppsList:",i)}}}};const Y1={modules:{user:P1,app:U1}},Qr=function(e,t={theme:""}){var r;if(Qr.installed)return;const i=t.theme||kn();let n=t.config||{};if(b.default.isEmpty(n)||b.default.forEach(n,(a,s)=>{V.setConfig(s,a)}),Tn(i),location.pathname.includes("scyxweb")){let a=location.protocol+"//"+location.host+"/hbwebchat/scyxweb/ind-mobile/manage/global?t="+new Date().getTime();V.axios.get(a).then(s=>{e.prototype.$config=b.default.merge({},e.prototype.$config||{},s)})}(r=e.prototype.$config)!=null&&r.systemDefaultConfig?console.log("\u4F7F\u7528\u5DF2\u7F13\u5B58\u7684\u914D\u7F6E",e.prototype.$config):V.axios.get("/user-manage-server/anon/system/qrySystemConfig").then(a=>{var s;try{const o=JSON.parse(((s=a==null?void 0:a.data)==null?void 0:s.settingInfo)||"{}");e.prototype.$config=b.default.merge({},e.prototype.$config||{},o),console.log("\u7CFB\u7EDF\u914D\u7F6E\u5DF2\u52A0\u8F7D",e.prototype.$config)}catch(o){console.error("\u89E3\u6790 settingInfo \u5931\u8D25:",o)}}).catch(a=>{console.error("\u8BF7\u6C42\u5931\u8D25:",a)}),Object.keys(fo).forEach(a=>{e.component(`IndM${a}`,fo[a])}),Object.keys(po).forEach(a=>{e.directive(a,po[a])}),window.lastInnerHeight=window.innerHeight,window.addEventListener("resize",function(){var a=window.innerHeight;a<window.lastInnerHeight?(console.log("\u952E\u76D8\u53EF\u80FD\u5C55\u5F00\u4E86"),Cp(),window.lastInnerHeight=window.innerHeight):(console.log("\u952E\u76D8\u53EF\u80FD\u6536\u8D77\u4E86"),window.lastInnerHeight=window.innerHeight)})};typeof window!="undefined"&&window.Vue&&Qr(window.Vue);const j1={version:Qf.version,install:Qr,components:fo,plugins:h0,getDefaultTheme:kn,doChangeTheme:Tn,directives:po};W.Apps=oo,W.AppsEdit=lo,W.AppsNew=uo,W.BasicLayout=rl,W.DatePicker=Uo,W.DetailView=ol,W.EmptyLayout=Ci,W.ErrorContent=$r,W.Form=zo,W.IndConfigPlugin=df,W.IndRouterPlugin=ff,W.InputSelect=wd,W.LoadMore=Jo,W.LoadingPanel=uf,W.Login=qs,W.MyApps=Us,W.NotFound=Gi,W.PageView=cl,W.PopupView=hl,W.QueryView=fl,W.Search=bd,W.SelectBtn=Td,W.SelectPanel=Ad,W.Setting=ho,W.User=Fs,W.User1=il,W.addRouterGuards=L1,W.appItem=Vi,W.createMacroBasicRoutes=b0,W.createMicroBasicRoutes=S0,W.default=j1,W.install=Qr,W.permission=mf,W.routerOptions=V1,W.store=Y1,W.tabbar=Li,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|