!function(){functione(e,n){for(vart=0;t<n.length;t++){vara=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}functionn(n,t,a){returnt&&e(n.prototype,t),a&&e(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n}System.register(["@ibiz-template/runtime","vue","@ibiz-template/vue-util","@ibiz-template/model"],(function(e,t){"use strict";vara,o,s,i,r,l,u,c,p,d,f,v;return{setters:[function(e){a=e.PluginStaticResource},function(e){o=e.ref,s=e.watch,i=e.defineComponent,r=e.getCurrentInstance,l=e.onMounted,u=e.computed,c=e.h},function(e){p=e.useRouter,d=e.useIndexViewController,f=e.useNamespace},function(e){v=e.IndexViewModel}],execute:function(){varh=newa(t.meta.url),m=n((functione(){varn,t,a;!function(e,n){if(!(einstanceofn))thrownewTypeError("Cannot call a class as a function")}(this,e),a="UserIndexView",(t="component")in(n=this)?Object.defineProperty(n,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[t]=a}));varg=i({__name:"index-view",props:{context:null,params:{default:function(){return{}}},modelPath:null},setup:function(e){varn=e,t=r().proxy,a=d(t,n.modelPath),i=function(e,n){vart=p(e),a=o(""),i=o(""),r=o([]),l=o([]);s((function(){returne.$route}),(function(e,n){if(e!==n){a.value=(o=e).params.view2?(o.params.view2?"/".concat(o.params.view2):"")+(o.params.params2?"/".concat(o.params.params2):""):"404",i.value=function(e){return(e.params.view1?"/".concat(e.params.view1):"")+(e.params.params1?"/".concat(e.params.params1):"")}(e);vart=l.value.find((function(e){returne.key===a.value}));t?t.fullPath=e.fullPath:l.value.push({key:a.value,fullPath:e.fullPath,modelPath:"",caption:""})}varo}),{deep:!0,immediate:!0}),s(a,(function(e,n){if(e!==n&&e){vart=r.value.indexOf(e);-1===t||r.value.splice(t,1),r.value.unshift(e)}}),{immediate:!0});varu=function(e){e.forEach((function(e){varn=r.value.indexOf(e);if(-1!==n){r.value.splice(n,1);vart=l.value.findIndex((function(n){returnn.key===e}));l.value.splice(t,1)}}))};return{currentKey:a,keyHistory:r,routeMsgs:l,updateRouteMsg:function(e,n){vart=l.value.find((function(e){returne.key===a.value}));t&&(n.caption&&(t.caption=n.caption),n.modelPath&&(t.modelPath=n.modelPath))},closeView:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:a.value;u([e]);varo=r.value[0];if(o){vars=l.value.find((function(e){returne.key===o}));t.push(s.fullPath)}elsen.model.source.blankMode?(window.callback&&window.callback(),window.close()):(a.value="",t.push(i.value))},deleteRouteCache:u}}(t,a),c=i.currentKey,f=i.keyHistory,v=i.routeMsgs,h=i.updateRouteMsg,m=i.closeView,g=i.deleteRouteCache;l((function(){setTimeout((function(){vare=document.querySelector(".app-loading-x");e&&(e.style.display="none")}),300)}));window.onpopstate=function(){g([f.value[1]])};vary=u((function(){vare=v.value.find((function(e){returne.key===c.value}));return(null==e?void0:e.modelPath)||""}));return{__sfc:!0,props:n,proxy:t,c:a,currentKey:c,keyHistory:f,routeMsgs:v,updateRouteMsg:h,closeView:m,deleteRouteCache:g,onCreated:function(e){varn=c.value;e.evt.on("closeView",(function(){m(n)})),e.evt.on("setTitle",(function(e){h(n,{caption:e})}))},onViewFound:function(e){h(c.value,e)},collapseChange:function(e){a.collapseChange=e},onMenuRouteChange:function(){g(f.value.slice(1))},currentPath:y}}});functiony(e,n,t,a,o,s,i,r){varl,u="function"==typeofe?e.options:e;if(n&&(u.render=n,u.staticRenderFns=t,u._compiled=!0),a&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof__VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=l):o&&(l=r?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;varc=u.render;u.render=function(e,n){returnl.call(n),c(e,n)}}else{varp=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:u}}varw=y(g,(function(){vare=this,n=e._self._c,t=e._self._setupProxy;returnn("UserAppLayout",{attrs:{"is-complete":t.c.complete,model:t.c.model},on:{onCollapseChange:t.collapseChange}},[t.c.complete?[t.c.complete?n("AppMenu",{attrs:{slot:"menu","current-path":t.currentPath,"model-data":t.c.model.appMenu,context:t.c.context,"collapse-change":t.c.collapseChange},on:{menuRouteChange:t.onMenuRouteChange},slot:"menu"}):e._e(),n("AppKeepAlive",{attrs:{"key-list":t.keyHistory}},[n("router-view",{key:t.currentKey,on:{neuronInit:t.onCreated,viewFound:t.onViewFound}})],1)]:e._e()],2)}),[],!1,null,null,null,null).exports;functionC(e,n){returnc("div",{class:e.e("logo")},[c("img",{class:e.e("logo-img"),attrs:{src:h.dir("/assets/img/jh.png")}}),c("div",{class:e.e("logo-caption")},[n.caption])])}varb=i({name:"UserAppLayout",props:{model:{type:v,required:!0},isComplete:{type:Boolean,default:!1}},setup:function(e,n){vart=n.emit,a=f("layout"),s=o(!1),i=u((function(){return!0===e.model.source.blankMode}));return{ns:a,collapseChange:s,isBlank:i,collapseMenus:function(){s.value=!s.value,t("onCollapseChange",s.value)}}},render:function(){vare=this;returnthis.isComplete?c("i-layout",{class:[this.ns.b(),this.isBlank?this.ns.m("blank"):"",this.ns.is("collapse",this.collapseChange)]},[c("i-sider",{attrs:{"hide-trigger":!0,value:this.collapseChange},class:[this.ns.b("nav"),this.ns.is("collapse",this.collapseChange)]},[C(this.ns,this.model),this.$slots.menu,c("div",{class:this.ns.be("slider","collapse-icon")},[this.collapseChange?c("ion-icon",{attrs:{src:"./assets/img/menu-unfold.svg"},on:{click:function(){returne.collapseMenus()}}}):c("ion-icon",{attrs:{src:"./assets/img/menu-fold.svg"},on:{click:function(){returne.collapseMenus()}}})])]),c("i-layout",{class:[this.ns.b("content")]},[c("i-header",{class:this.ns.b("header")},[c("div",{class:this.ns.be("header","left")},[C(this.ns,this.model),"TOP"===this.model.source.mainMenuAlign?c("i-menu",{class:this.ns.be("header","menu"),attrs:{mode:"horizontal","active-name":"1"}}):null]),c("div",{class:this.ns.be("header","right")},[c("app-user"),c("img",{class:this.ns.e("xs"),attrs:{src:h.dir("/assets/img/xs.svg")}}),c("img",{class:this.ns.e("sz"),attrs:{src:h.dir("/assets/img/sz.svg")}})])]),c("i-content",{class:this.ns.be("content","main")},[this.$slots.default])])]):null}});e("default",{mateUrl:t.meta.url,install:function(e){e.component("UserIndexView",w),e.component("UserAppLayout",b),ibiz.register.view.register("VIEW_CUSTOM_JskqIndexView",newm),h.loadStyle(["/style.css"])}})}}}))}();