@ibiz-template/vue3-util 0.7.38-alpha.33 → 0.7.38-alpha.57
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/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/common/badge/badge.d.ts +9 -0
- package/es/common/badge/badge.d.ts.map +1 -1
- package/es/common/badge/badge.mjs +5 -1
- package/es/common/code-list/code-list.d.ts +1 -1
- package/es/common/code-list/code-list.d.ts.map +1 -1
- package/es/common/code-list/code-list.mjs +1 -1
- package/es/common/control-base/control-base.css +1 -1
- package/es/common/control-base/control-base.d.ts.map +1 -1
- package/es/common/control-base/control-base.mjs +65 -2
- package/es/common/custom-render/custom-render.css +1 -0
- package/es/common/custom-render/custom-render.d.ts +18 -0
- package/es/common/custom-render/custom-render.d.ts.map +1 -0
- package/es/common/custom-render/custom-render.mjs +85 -0
- package/es/common/icon/icon.d.ts.map +1 -1
- package/es/common/icon/icon.mjs +5 -0
- package/es/common/index.d.ts +1 -0
- package/es/common/index.d.ts.map +1 -1
- package/es/common/index.mjs +1 -0
- package/es/common/view-shell/view-shell.d.ts.map +1 -1
- package/es/common/view-shell/view-shell.mjs +63 -62
- package/es/index.mjs +4 -1
- package/es/locale/en/index.d.ts +2 -0
- package/es/locale/en/index.d.ts.map +1 -1
- package/es/locale/en/index.mjs +3 -1
- package/es/locale/zh-CN/index.d.ts +2 -0
- package/es/locale/zh-CN/index.d.ts.map +1 -1
- package/es/locale/zh-CN/index.mjs +3 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.d.ts +126 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.d.ts.map +1 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.mjs +193 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +27 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +68 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.provider.d.ts +15 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.provider.d.ts.map +1 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.provider.mjs +15 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.state.d.ts +54 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.state.d.ts.map +1 -0
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.state.mjs +7 -0
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts +24 -0
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -0
- package/es/panel-component/auth-wxmp-qrcode/index.mjs +19 -0
- package/es/panel-component/index.d.ts +1 -0
- package/es/panel-component/index.d.ts.map +1 -1
- package/es/panel-component/index.mjs +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +9 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +15 -2
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts +8 -0
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.mjs +14 -2
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +4 -2
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +8 -0
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +14 -2
- package/es/props/editor/common.d.ts +2 -2
- package/es/props/editor/common.d.ts.map +1 -1
- package/es/props/editor/common.mjs +2 -2
- package/es/use/index.mjs +1 -0
- package/es/use/view/index.d.ts +1 -0
- package/es/use/view/index.d.ts.map +1 -1
- package/es/use/view/index.mjs +1 -0
- package/es/use/view/use-view-operation/use-view-operation.d.ts +11 -0
- package/es/use/view/use-view-operation/use-view-operation.d.ts.map +1 -0
- package/es/use/view/use-view-operation/use-view-operation.mjs +27 -0
- package/es/util/index.mjs +1 -1
- package/es/util/render/render.d.ts +10 -0
- package/es/util/render/render.d.ts.map +1 -1
- package/es/util/render/render.mjs +8 -1
- package/es/util/route/route.d.ts.map +1 -1
- package/es/util/route/route.mjs +10 -4
- package/es/view/common/view.d.ts.map +1 -1
- package/es/view/common/view.mjs +2 -0
- package/lib/common/badge/badge.cjs +5 -1
- package/lib/common/code-list/code-list.cjs +1 -1
- package/lib/common/control-base/control-base.cjs +64 -1
- package/lib/common/control-base/control-base.css +1 -1
- package/lib/common/custom-render/custom-render.cjs +87 -0
- package/lib/common/custom-render/custom-render.css +1 -0
- package/lib/common/icon/icon.cjs +5 -0
- package/lib/common/index.cjs +2 -0
- package/lib/common/view-shell/view-shell.cjs +63 -62
- package/lib/index.cjs +30 -23
- package/lib/locale/en/index.cjs +3 -1
- package/lib/locale/zh-CN/index.cjs +3 -1
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.cjs +70 -0
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.cjs +195 -0
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -0
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.provider.cjs +17 -0
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.state.cjs +9 -0
- package/lib/panel-component/auth-wxmp-qrcode/index.cjs +24 -0
- package/lib/panel-component/index.cjs +2 -0
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +14 -1
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.controller.cjs +13 -1
- package/lib/panel-component/nav-pos/nav-pos.controller.cjs +4 -2
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +13 -1
- package/lib/props/editor/common.cjs +2 -2
- package/lib/use/index.cjs +2 -0
- package/lib/use/view/index.cjs +2 -0
- package/lib/use/view/use-view-operation/use-view-operation.cjs +29 -0
- package/lib/util/index.cjs +1 -0
- package/lib/util/render/render.cjs +8 -0
- package/lib/util/route/route.cjs +10 -4
- package/lib/view/common/view.cjs +2 -0
- package/package.json +5 -5
package/dist/index.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-
|
|
1
|
+
.ibiz-icon{--ibiz-icon-emoji-space:-3px}.ibiz-icon__emoji{position:relative;left:var(--ibiz-icon-emoji-space)}.ibiz-control-shell{position:relative;width:100%;height:100%}.ibiz-badge{display:inline-block;width:var(--ibiz-width-icon-large);height:var(--ibiz-width-icon-large);line-height:var(--ibiz-width-icon-large);color:var(--ibiz-color-danger-text);background-color:var(--ibiz-badge-bg-color);border-radius:var(--ibiz-border-radius-circle)}.ibiz-badge--danger{--ibiz-badge-bg-color:var(--ibiz-color-danger)}.ibiz-badge--success{--ibiz-badge-bg-color:var(--ibiz-color-success)}.ibiz-badge--warning{--ibiz-badge-bg-color:var(--ibiz-color-warning)}.ibiz-badge--info{--ibiz-badge-bg-color:var(--ibiz-color-info)}.ibiz-badge--primary{--ibiz-badge-bg-color:var(--ibiz-color-primary)}.ibiz-view-shell{position:relative;width:100%;height:100%}.ibiz-custom-render{width:100%;height:100%}.ibiz-code-list{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap}.ibiz-code-list__item{color:var(--ibiz-code-list-item-color);display:flex;align-items:center;justify-content:flex-start}.ibiz-code-list .ibiz-icon{display:inline-flex;padding-right:var(--ibiz-spacing-tight)}.ibiz-panel-rawitem{width:100%;height:100%}.ibiz-panel-rawitem .ibiz-panel-rawitem-content{width:100%}.ibiz-panel-ctrl-pos{width:100%;height:100%}.ibiz-panel-ctrl-pos.is-hidden{display:none}.ibiz-panel-container{--ibiz-panel-scroll:auto;width:100%;height:100%}.ibiz-panel-container>.ibiz-row{height:100%;overflow:hidden var(--ibiz-panel-scroll)}.ibiz-panel-container.is-hidden{display:none}.ibiz-nav-pos{width:100%;height:100%}.ibiz-scroll-container-item{width:100%;height:100%;overflow:auto}.ibiz-scroll-container-item.is-hidden{display:none}.ibiz-panel-field{--ibiz-form-item-label-color:var(--ibiz-color-text-1);--ibiz-form-item-text-color:var(--ibiz-color-text-2);--ibiz-form-item-hover-color:var(--ibiz-color-text-0);--ibiz-form-item-hover-bg-color:var(--ibiz-color-fill-1);--ibiz-form-item-readonly-color:var(--ibiz-color-disabled-text);--ibiz-form-item-border-color:transparent;--ibiz-form-item-font-size:var(--ibiz-font-size-regular);--ibiz-form-item-placeholder-color:var(--ibiz-color-text-3);--ibiz-form-item-disabled-color:var(--ibiz-color-disabled-text);--ibiz-form-item-disabled-bg-color:var(--ibiz-color-disabled-fill);--ibiz-form-item-disabled-border-color:var(--ibiz-color-disabled-border);--ibiz-form-item-active-bg:var(--ibiz-color-fill-2);--ibiz-form-item-active-border:var(--ibiz-active-bg);--ibiz-form-item-focus-bg:var(--ibiz-color-fill-0);--ibiz-form-item-focus-border:var(--ibiz-color-focus-border);--ibiz-form-item-line-height:var(--ibiz-editor-default-line-height);--ibiz-form-item-font-weight:var(--ibiz-font-weight-regular);width:100%;height:100%;position:relative}.ibiz-panel-field__error{left:0;top:100%;line-height:1;font-size:var(--ibiz-font-size-small);padding-top:var(--ibiz-spacing-super-tight);position:absolute;color:var(--ibiz-color-danger)}.ibiz-panel-field.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--ibiz-color-danger) inset}.ibiz-panel-field .ibiz-panel-field-content{line-height:inherit}.ibiz-scroll-container{width:100%;height:100%;display:flex;flex-flow:column nowrap}.ibiz-scroll-container.is-hidden{display:none}.ibiz-scroll-container-content{flex-grow:1;overflow:auto;display:flex}.ibiz-scroll-container-content__center{flex-grow:1;overflow:auto}.ibiz-scroll-container-content__left{overflow:auto}.ibiz-scroll-container-content__right{overflow:auto}.ibiz-scroll-container-header{overflow:auto}.ibiz-scroll-container-footer{overflow:auto}.ibiz-multi-data-container{width:100%;height:100%}.ibiz-multi-data-container-raw{width:100%;height:100%}.ibiz-single-data-container{width:100%;height:100%}.ibiz-grid-container{--ibiz-grid-container-bg-color:var(--ibiz-bg-color-overlay);--ibiz-grid-container-padding:var(--ibiz-padding);width:100%;height:100%;overflow:auto}.ibiz-grid-container.is-hidden{display:none}.ibiz-panel-container-group{--ibiz-panel-container-group-bg-color:transparent;--ibiz-panel-container-group-header-bg-color:transparent;--ibiz-panel-container-group-header-padding:var(--ibiz-spacing-base-tight);--ibiz-panel-container-group-header-border-color:var(--ibiz-color-border);--ibiz-panel-container-group-header-height:49px;--ibiz-panel-container-group-caption-text-color:var(--ibiz-color-text-0);--ibiz-panel-container-group-caption-font-size:var(--ibiz-font-size-header-5);--ibiz-panel-container-group-caption-font-weight:var(--ibiz-font-weight-bold);--ibiz-panel-container-group-content-bg-color:transparent;--ibiz-panel-container-group-content-padding:var(--ibiz-spacing-tight)}.ibiz-panel-container-group{height:100%;background-color:var(--ibiz-panel-container-group-bg-color);border-radius:var(--ibiz-border-radius-base)}.ibiz-panel-container-group__caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ibiz-panel-container-group-caption-font-size);font-weight:var(--ibiz-panel-container-group-caption-font-weight);color:var(--ibiz-panel-container-group-caption-text-color)}.ibiz-panel-container-group-collapse>.ibiz-panel-container-group-content{display:block}.ibiz-panel-container-group-collapse.is-collapse>.ibiz-panel-container-group-content{display:none}.ibiz-panel-container-group-header{display:flex;height:var(--ibiz-panel-container-group-header-height);padding:var(--ibiz-panel-container-group-header-padding);margin:var(--ibiz-panel-container-group-header-margin);border-bottom:1px solid var(--ibiz-panel-container-group-header-border-color)}.ibiz-panel-container-group-header__left,.ibiz-panel-container-group-header__right{display:inline-block;width:50%}.ibiz-panel-container-group-header__right{text-align:right;display:flex;align-items:center;justify-content:flex-end}.ibiz-panel-container-group-content{width:100%;height:100%}.ibiz-panel-container-group-content>.ibiz-row{width:100%;height:100%}.ibiz-panel-container-group--show-header>.ibiz-panel-container-group-content{height:calc(100% - var(--ibiz-panel-container-group-header-height));padding:var(--ibiz-panel-container-group-content-padding);background-color:var(--ibiz-panel-container-group-content-bg-color)}.ibiz-teleport-placeholder{width:auto;height:auto}.ibiz-panel-container-image{position:relative;width:100%;height:100%;background-repeat:no-repeat;background-position:center center}.ibiz-panel-container-image>.ibiz-row{height:100%;overflow-x:hidden;overflow-y:auto}.ibiz-panel-container-image.is-hidden{display:none}.ibiz-panel-container-tabs{position:relative}.ibiz-panel-container-tabs .el-tabs{--el-tabs-header-height: 52px}.ibiz-panel-container-tabs .el-tabs__nav-wrap::after{display:none}.ibiz-panel-container-tabs::after{position:absolute;bottom:0;left:0;z-index:var(--el-index-normal);width:100%;height:"--ibiz-spacing-super-tight";content:"";background-color:var(--el-border-color-light)}.ibiz-auth-wxmp-qrcode{width:100%;height:100%}.ibiz-auth-wxmp-qrcode__content{position:relative;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__qrcode{width:100%;height:100%;object-fit:contain}.ibiz-auth-wxmp-qrcode__caption{font-size:var(--ibiz-font-size-small);text-align:center}.ibiz-auth-wxmp-qrcode__mask{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--ibiz-color-primary);background-color:rgba(255,255,255,.9)}.ibiz-auth-wxmp-qrcode__mask--icon{font-size:var(--ibiz-font-size-header-1);cursor:pointer}.ibiz-auth-wxmp-qrcode__mask--icon:hover{color:var(--ibiz-color-primary-hover)}.ibiz-view-dehtmlview>iframe{width:100%;height:100%;border:0}.ibiz-view{--ibiz-view-bg-color:var(--ibiz-color-bg-1);--ibiz-view-border-radius:var(--ibiz-border-radius-medium);width:100%;height:100%}.ibiz-view .ibiz-view{background-color:var(--ibiz-view-bg-color);border-radius:var(--ibiz-view-border-radius)}.ibiz-view .ibiz-view-appportalview{background-color:rgba(0,0,0,0)}.ibiz-view.has-top-message,.ibiz-view.has-bottom-message{display:flex;flex-flow:column nowrap}.ibiz-view.has-top-message>.ibiz-view-message,.ibiz-view.has-bottom-message>.ibiz-view-message{flex-grow:0;flex-shrink:0}.ibiz-view.has-top-message>.ibiz-control-viewlayoutpanel,.ibiz-view.has-bottom-message>.ibiz-control-viewlayoutpanel{flex-grow:1;flex-shrink:1}.ibiz-control-viewlayoutpanel{width:100%;height:100%}.ibiz-control-viewlayoutpanel-content{width:100%;height:100%}.ibiz-control-panel{width:100%;height:100%}.ibiz-control-panel-content{width:100%;height:100%}
|
package/dist/index.system.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["qx-util","vue","@ibiz-template/core","ramda","@ibiz-template/runtime","vue-router","qs","pinia","lodash-es"],(function(t){"use strict";var e,n,o,a,i,r,s,l,c,u,d,p,h,m,v,f,g,y,w,C,b,I,P,D,N,E,O,A,S,z,T,x,R,B,V,j,L,M,k,U,_,F,G,W,q,$,K,H,X,Q,J,Y,Z,tt,et,nt,ot,at,it,rt,st,lt,ct,ut,dt,pt,ht,mt,vt,ft,gt,yt,wt,Ct,bt,It,Pt,Dt,Nt,Et,Ot,At,St,zt,Tt,xt,Rt,Bt,Vt,jt,Lt,Mt,kt,Ut,_t;return{setters:[function(t){e=t.SyncSeriesHook,n=t.isFunc,o=t.notNilEmpty,a=t.QXEvent,i=t.clearAll,r=t.createUUID},function(t){s=t.watch,l=t.onBeforeUnmount,c=t.createCommentVNode,u=t.getCurrentInstance,d=t.isReactive,p=t.toRaw,h=t.inject,m=t.reactive,v=t.onActivated,f=t.onDeactivated,g=t.ref,y=t.h,w=t.resolveComponent,C=t.provide,b=t.onMounted,I=t.onUnmounted,P=t.defineComponent,D=t.computed,N=t.createVNode,E=t.withDirectives,O=t.resolveDirective,A=t.isVNode,S=t.Teleport,z=t.renderSlot,T=t.onBeforeMount},function(t){x=t.onClickOutside,R=t.NOOP,B=t.listenJSEvent,V=t.Namespace,j=t.RuntimeError,L=t.isBase64Image,M=t.isBase64,k=t.base64ToStr,U=t.isSvg,_=t.IBizContext,F=t.ModelError,G=t.RuntimeModelError},function(t){W=t.isNil,q=t.isNotNil,$=t.clone,K=t.isEmpty,H=t.mergeLeft},function(t){X=t.MDControlTypes,Q=t.ViewType,J=t.RouteConst,Y=t.getMatchResPath,Z=t.calcDeCodeNameById,tt=t.ViewController,et=t.getControlProvider,nt=t.getErrorViewProvider,ot=t.calcDynaSysParams,at=t.getViewProvider,it=t.useCalcOrMode,rt=t.calcThresholdRange,st=t.PanelItemState,lt=t.PanelItemController,ct=t.registerPanelItemProvider,ut=t.Modal,dt=t.ViewMode,pt=t.OpenAppViewCommand,ht=t.getEditorProvider,mt=t.PanelItemEventName,vt=t.getAllPanelField,ft=t.isDataContainer,gt=t.getPanelItemProvider,yt=t.convertNavData,wt=t.ScriptFactory,Ct=t.PanelData,bt=t.PanelNotifyState,It=t.execDELogicById,Pt=t.toLocalOpenWFRedirectView,Dt=t.getControlsByView,Nt=t.getCtrlTeleportParams,Et=t.AppDataUploadViewController,Ot=t.registerViewProvider,At=t.getDERedirectToView,St=t.ViewLayoutPanelController,zt=t.isSimpleDataContainer,Tt=t.registerControlProvider,xt=t.ControlType,Rt=t.PanelController,Bt=t.RemotePluginItem},function(t){Vt=t.useRoute,jt=t.useRouter,Lt=t.RouterView},function(t){Mt=t.default},function(t){kt=t.defineStore,Ut=t.createPinia},function(t){_t=t.isNumber}],execute:function(){t({calcResRoutePath:oe,createOverlayView:le,generateRoutePath:async function(t,e,n,o){const a=Yt(e);let i=n.srfdefaulttoroutedepth||2;n.toRouteDepth?(i=n.toRouteDepth,n.toRouteDepth=void 0):ibiz.env.isMob&&(a.pathNodes[0]={viewName:"home"});if(a.pathNodes.splice(i-1,a.pathNodes.length-i+1),n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}ee(n,a.pathNodes),e.fullPath.startsWith("/appredirectview")&&((null==o?void 0:o.srfindexname)?(a.pathNodes[0].viewName=o.srfindexname,delete o.srfindexname):a.pathNodes[0].viewName="index");if(a.pathNodes.push({viewName:t.codeName.toLowerCase(),context:te(n),params:o}),2===i&&(await oe(a,n,t.appDataEntityId,t.appId),ne.includes(t.viewType))){const e=Z(t.appDataEntityId);delete a.pathNodes[0].context[e]}return{path:Zt(a)}},generateRoutePathByModal:async function(t,e,n,o){const a=Yt(e),i=a.pathNodes.findIndex((t=>t.viewName===J.ROUTE_MODAL_TAG));-1!==i&&(a.pathNodes=a.pathNodes.slice(0,i));if(n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}return ee(n,a.pathNodes),a.pathNodes.push({viewName:"".concat(J.ROUTE_MODAL_TAG,"/").concat(t.codeName.toLowerCase()),context:te(n),params:o}),{path:Zt(a)}},getArrayProps:Eo,getAutoCompleteProps:Io,getCascaderProps:Oo,getCheckboxListProps:so,getCheckboxProps:lo,getCodeProps:Po,getColorPickerProps:Ao,getDataPickerProps:co,getDatePickerProps:uo,getDateRangeProps:po,getDrawerPlacement:function(t){return ce[t]||"right"},getDropdownProps:ro,getEditorEmits:function(){return{change:(t,e)=>!0,blur:t=>!0,focus:t=>!0,enter:t=>!0,infoTextChange:t=>!0}},getEditorProps:to,getGridArrayProps:function(){return{...Eo(),...eo()}},getGridAutoCompleteProps:function(){return{...Io(),...eo()}},getGridCascaderProps:function(){return{...Oo(),...eo()}},getGridCheckboxListProps:function(){return{...so(),...eo()}},getGridCheckboxProps:function(){return{...lo(),...eo()}},getGridCodeProps:function(){return{...Po(),...eo()}},getGridColorPickerProps:function(){return{...Ao(),...eo()}},getGridDataPickerProps:function(){return{...co(),...eo()}},getGridDatePickerProps:function(){return{...uo(),...eo()}},getGridDateRangeProps:function(){return{...po(),...eo()}},getGridDropdownProps:function(){return{...ro(),...eo()}},getGridEditorCommonProps:eo,getGridEditorEmits:function(){return{change:(t,e)=>!0,rowSave:()=>!0}},getGridHtmlProps:function(){return{...Do(),...eo()}},getGridInputIpProps:function(){return{...ao(),...eo()}},getGridInputNumberProps:function(){return{...oo(),...eo()}},getGridInputProps:function(){return{...no(),...eo()}},getGridListBoxProps:function(){return{...ho(),...eo()}},getGridMarkDownProps:function(){return{...No(),...eo()}},getGridNumberRangeProps:function(){return{...mo(),...eo()}},getGridRadioProps:function(){return{...vo(),...eo()}},getGridRateProps:function(){return{...fo(),...eo()}},getGridRawProps:function(){return{...go(),...eo()}},getGridSliderProps:function(){return{...yo(),...eo()}},getGridSpanProps:function(){return{...io(),...eo()}},getGridStepperProps:function(){return{...wo(),...eo()}},getGridSwitchProps:function(){return{...Co(),...eo()}},getGridUploadProps:function(){return{...bo(),...eo()}},getHtmlProps:Do,getInputIpProps:ao,getInputNumberProps:oo,getInputProps:no,getListBoxProps:ho,getMarkDownProps:No,getNestedRoutePath:ae,getNumberRangeProps:mo,getOrigin:qt,getOwnRouteContext:te,getRadioProps:vo,getRateProps:fo,getRawProps:go,getSliderProps:yo,getSpanProps:io,getStepperProps:wo,getSwitchProps:Co,getUploadProps:bo,isEmptyVNode:function(t){if(!Array.isArray(t))return t===Kt;return 1===t.length&&t[0]===Kt},onRouteChange:function(t,e){const n=Vt();if(!n)throw new j(ibiz.i18n.t("vue3Util.util.routeCorrectly"));s((()=>null==n?void 0:n.path),(()=>{const o=ae(n,e);t({currentKey:o,fullPath:n.fullPath})}),{immediate:!0})},openViewDrawer:async function(t,e){const n=ibiz.overlay.createDrawer(le(t),void 0,e);await n.present();return await n.onWillDismiss()||{ok:!1}},openViewFloatWindow:async function(t,e){const n=ibiz.overlay.createFloatWindow(le(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewModal:async function(t,e){const n=ibiz.overlay.createModal(le(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewPopover:async function(t,e,n){const o=ibiz.overlay.createPopover(le(e),void 0,n);o.present(t.target);return await o.onWillDismiss()||{ok:!1}},parseRouteViewData:async function(t,e,n=!1){var a;const i=Yt(t,n);let r=i.pathNodes[e-1].viewName;if(!r)throw new j(ibiz.i18n.t("vue3Util.util.viewIdentifiers",{depth:e}));r===J.ROUTE_MODAL_TAG&&(r=i.pathNodes[e].viewName);"index"===r&&(r=ibiz.hub.defaultAppIndexViewName);const s=await ibiz.hub.config.view.get(r);if(!s)throw new j(ibiz.i18n.t("vue3Util.util.noFoundView",{viewCodeName:r}));const l={};(null==(a=ibiz.appData)?void 0:a.context)&&Object.assign(l,ibiz.appData.context);i.appContext&&Object.assign(l,i.appContext);if(1!==e)for(let t=0;t<e;t++){const e=i.pathNodes[t];o(e.context)&&Object.assign(l,e.context)}const{params:c,srfnav:u}=i.pathNodes[e-1];return{viewConfig:s,context:l,params:c,srfnav:u}},prepareControl:function(t){const e=Jt("control"),{controlType:n,sysCss:o,codeName:a}=t.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=Jt("control-".concat(i)),l=[e.b(),e.b(i),e.m(a)];r&&l.push(r);return{controlClass:l,ns:s}},renderString:function(t){if(W(t))return"";if("string"==typeof t)return t;if("object"==typeof t)return JSON.stringify(t);try{return t.toString()}catch(e){ibiz.log.error(t,ibiz.i18n.t("vue3Util.util.convertString"),e)}return""},route2routePath:Yt,routePath2string:Zt,useAutoFocusBlur:function(t,e){return{useInFocusAndBlur:()=>{t.autoFocus||e("blur")},useInValueChange:()=>{t.autoFocus&&e("blur")}}},useClickOutside:Gt,useCodeListListen:function(t,e,n){let o;b((async()=>{if(t){const a=await ibiz.hub.getApp(e);o=await a.codeList.getCodeListInstance(t),o&&o.onChange(n)}})),I((()=>{o&&o.offChange(n)}))},useControlController:Xt,useController:function(t){t.force=$t()},useCtx:Ht,useEventListener:Qt,useFocusAndBlur:function(t,e){const n=g(),o=g(!1);let a;const i=()=>{o.value||ibiz.log.debug(ibiz.i18n.t("vue3Util.use.focusBlur.noFocus")),e(),a.stop(),o.value=!1};return Qt(n,"click",(e=>{o.value||(a=Gt(n,(()=>{i()})),o.value=!0,t())}),{capture:!0}),{componentRef:n,isFocus:o,doBlur:i,pause:()=>{a&&a.pause()},stop:()=>{a&&a.stop()}}},useForce:$t,useForceTogether:function(t,e){const n=e.force,o=$t();e.force=t=>{n(t),o()}},useLocalCacheKey:function(t,e,n,o="@"){const a=jt();return()=>{if(!a)return;const i=t.srfuserid,r=Yt(a.currentRoute.value);if(n=t.srfdefaulttoroutedepth||n,i&&n&&r.pathNodes[n-2]){r.pathNodes=r.pathNodes.slice(0,n-1),r.pathNodes.forEach((t=>{t.context&&delete t.context.srfnavctrlid}));const t=Zt(r);return"".concat(e).concat(o).concat(i).concat(o).concat(t)}}},useMobCtx:function(){return h("ctx")},useNamespace:Jt,useProps:Wt,usePropsWatch:function(t,e,n){const o=Wt();Object.prototype.hasOwnProperty.call(o,t)&&(s((()=>o[t]),((t,n)=>{e(qt(t),qt(n))}),n),e(qt(o[t]),void 0))},useRouteKey:function(t,e,n){n||(n=g(""));n.value=t.value;const o=new ie(e);return s(t,((t,e)=>{t!==e&&o.nextChange((()=>{n.value=t}))})),n},useRouterQuery:function(){const t=Vt(),{query:e}=t;return e},useViewController:de});class Ft{}function Gt(t,e,n={}){let o=R,a=R,i=R;const r=()=>{o(),o=R,a=R,i=R};return s(t,((t,s)=>{if(t!==s)if(W(t))r();else{const r=x((null==t?void 0:t.$el)||t,e,n);o=r.stop,a=r.pause,i=r.proceed}}),{immediate:!0}),l((()=>{o!==R&&r()})),{stop:()=>o(),pause:()=>a(),proceed:()=>i()}}function Wt(){return u().proxy.$props}function qt(t){return d(t)?p(t):t}function $t(){const t=u().proxy;return e=>{t.$forceUpdate(),e&&n(e)&&t.$nextTick((()=>{e()}))}}t("AppHooks",Ft),Ft.createApp=new e,Ft.useComponent=new e;const Kt=t("EmptyVNode",c("EmptyVNode"));function Ht(){return h("ctx")}function Xt(t,e){const n=Ht(),o=Wt();n.evt.emit("onForecast",o.modelData.name);const a=o.provider;let i;i=(null==a?void 0:a.createController)?a.createController(o.modelData,o.context,o.params,n):t(o.modelData,o.context,o.params,n),-1!==X.indexOf(i.model.controlType)&&ibiz.util.record.add(i.ctrlId,i),function(t,e){s((()=>({context:t.context,params:t.params})),((t,n)=>{if(t===n)return;const o={...t};t.context===n.context&&delete o.context,t.params===n.params&&delete o.params,e.updateContextParams(o),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(o,i),function(t,e,n=[]){const o=["context","params","modelData",...n];s((()=>{const e={};return Object.keys(t).forEach((n=>{o.includes(n)||(e[n]=t[n])})),e}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{void 0!==o[t]&&(e.state[t]=o[t])}))}),{immediate:!0})}(o,i,null==e?void 0:e.excludePropsKeys),i.state=m(i.state),v((()=>i.onActivated())),f((()=>i.onDeactivated())),i.force=$t();const r=u().proxy;return i.evt.onAll(((t,e)=>{r.$emit(t.slice(2),e)})),r.$emit("controllerAppear",i),i.created(),l((()=>{i.destroyed(),-1!==X.indexOf(i.model.controlType)&&ibiz.util.record.remove(i.ctrlId)})),i}function Qt(t,e,n,o={}){let a=R;return s(t,((t,i)=>{t!==i&&(W(t)?(a(),a=R):a=B((null==t?void 0:t.$el)||t,e,n,o))}),{immediate:!0}),l((()=>{a!==R&&a()})),()=>{a()}}function Jt(t){return new V(t,ibiz.env.namespace)}function Yt(t,e=!1){const n=t.matched.length;let o=t.path;e&&(o=o.replace(new RegExp("/".concat(J.ROUTE_MODAL_TAG),"g"),""));const a=o.split("/"),i=[];for(let e=1;e<=n;e++){const n=a[2*e],o=t.params["params".concat(e)];let r,s,l;r=o&&o!==ibiz.env.routePlaceholder?Mt.parse(o,{strictNullHandling:!0,delimiter:";",depth:8}):void 0,r&&(1===e?(s=r,r=void 0):(r.srfnavctx&&(s=JSON.parse(decodeURIComponent(r.srfnavctx)),delete r.srfnavctx),r.srfnav&&(l=r.srfnav,delete r.srfnav))),i.push({viewName:n,context:s,params:r,srfnav:l})}let r;return t.params.appContext&&t.params.appContext!==ibiz.env.routePlaceholder&&(r=Mt.parse(t.params.appContext,{strictNullHandling:!0,delimiter:";"})),{appContext:r,pathNodes:i}}function Zt(t){let e="";return t.appContext?e+="/".concat(Mt.stringify(t.appContext,{delimiter:";",strictNullHandling:!0})):e+="/".concat(ibiz.env.routePlaceholder),t.pathNodes.forEach(((t,n)=>{e+="/".concat(t.viewName,"/");let a={};if(0===n)o(t.context)&&(a=t.context);else{if(a=o(t.params)?t.params:{},o(t.context)){const e=JSON.stringify(t.context);"{}"!==e&&(a.srfnavctx=encodeURIComponent(e))}t.srfnav&&(a.srfnav=t.srfnav)}const i=Mt.stringify(a,{delimiter:";",strictNullHandling:!0,skipNulls:!0});o(i)?e+=i:e+=ibiz.env.routePlaceholder})),e}function te(t){const e=t.getOwnContext(),n=["srfsessionid","srfappid","currentSrfNav","toRouteDepth"];return Object.keys(e).forEach((t=>{n.includes(t)&&delete e[t]})),e}function ee(t,e){let n=-1;e&&e.length>0&&(n=e.findIndex((t=>{var e;return!0===(null==(e=t.context)?void 0:e.srfreadonly)}))),t.srfreadonly&&!t.getOwnContext().srfreadonly&&-1===n&&(t.srfreadonly=!0)}const ne=t("excludeViewTypes",[Q.DE_GRID_VIEW,Q.DE_GRID_EXP_VIEW,Q.DE_LIST_VIEW,Q.DE_LIST_EXP_VIEW,Q.DE_DATA_VIEW,Q.DE_DATAVIEW_EXP_VIEW,Q.DE_CALENDAR_VIEW,Q.DE_CALENDAR_EXP_VIEW,Q.DE_CHART_VIEW,Q.DE_CHART_EXP_VIEW,Q.DE_KANBAN_VIEW]);async function oe(t,e,n,o){if(n){const a=await ibiz.hub.getAppDataEntity(n,o);let i=Y(e,a);if(i||(i={path:"",keys:[a.codeName.toLowerCase()]}),i){const n=t.pathNodes[1].context,o={};i.keys.forEach((t=>{e&&Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t],n&&delete n[t])})),t.pathNodes[0].context=o}}else t.pathNodes[0].context=void 0}function ae(t,e,n=!0){if(t.matched.length<e)return"";if(t.matched.length===e&&t.name)return t.path;const o=Yt(t);if(o.pathNodes.length<e)return t.path;o.pathNodes.length>e&&(o.pathNodes=o.pathNodes.slice(0,e));const a=o.pathNodes[e-1];return n&&delete a.srfnav,a.context&&delete a.context.srfnavctrlid,Zt(o)}class ie{constructor(t,e){this.callbacks=[],this.timers=[],this.wait=500,e&&(this.wait=e),s((()=>t.path),((t,e)=>{if(t!==e){if(this.callbacks.length)for(let t=0;t<this.callbacks.length;t++){(0,this.callbacks[t])()}if(this.callbacks=[],this.timers.length)for(let t=0;t<this.timers.length;t++){const e=this.timers[t];clearTimeout(e)}this.timers=[]}}))}nextChange(t){t&&(this.timers.push(setTimeout((()=>{t();const e=this.callbacks.findIndex((e=>e===t));this.callbacks.splice(e,1)}),this.wait)),this.callbacks.push(t))}}t("RouteListener",ie);const re=t("withInstall",((t,e)=>(t.install=t=>{e(t)},t)));class se{constructor(t,e,n){this.component=t,this.render=e,this.opts=n,this.evt=new a,this.init()}static createVueApp(t,e){throw new j(ibiz.i18n.t("vue3Util.util.noInjected"))}init(){const t=this,{render:e,opts:n}=this,o=document.createElement("div");document.body.appendChild(o);const a=se.createVueApp({mounted(){t.modal=this.$refs.root},unmounted(){document.body.removeChild(o),t.evt.emit("dismiss",t.result)},render:()=>y(t.component,{ref:"root",opts:n,onDismiss(e){t.result=e,a.unmount()}},{default:e})});ibiz.plugin.register(a),a.mount(o),this.vm=a}async present(){return this.modal.present()}async dismiss(t){await this.modal.dismiss(t)}async onWillDismiss(){return new Promise((t=>{const e=n=>{t(n),this.evt.off("dismiss",e)};this.evt.on("dismiss",e)}))}}t("OverlayContainer",se);function le(t){return e=>{const n=w("IBizViewShell");return y(n,{...t,modal:e})}}t("OverlayPopoverContainer",class extends se{present(t){return this.modal.present(t)}});const ce={DRAWER_LEFT:"left",DRAWER_RIGHT:"right",DRAWER_TOP:"top",DRAWER_BOTTOM:"bottom"};class ue{constructor(t,e){this.from=t,this.to=e,this.isActivated=!1,ibiz.log.debug("openRouter: ",t,e)}onWillDismiss(){return this.promise||(this.promise=new Promise((t=>{this.resolve=t}))),this.promise.then((t=>(ibiz.log.debug("onWillDismiss: ",this.from,this.to,t),t)))}close(t){ibiz.log.debug("closeRouter: ",this.from,this.to,t),this.resolve&&(this.resolve(t),this.resolve=void 0)}active(){ibiz.log.debug("activeRouter: ",this.from,this.to),this.isActivated=!0}destroy(){ibiz.log.debug("destroyRouter: ",this.from,this.to),this.resolve&&(this.resolve({ok:!1}),this.resolve=void 0)}}t("routerCallback",new class{constructor(){this.map=new Map}async open(t,e,n={}){const o=t.currentRoute.value.fullPath;n.replace?t.replace({path:e}):t.push({path:e});const a=e;if(this.map.has(a)){return this.map.get(a).onWillDismiss()}const i=new ue(o,a);return this.map.set(a,i),this.scheduledDestruction(i),i.onWillDismiss()}close(t,e){const n=this.map.get(t);n&&(window.clearTimeout(n.timeout),n.timeout=void 0,n.close(e),this.map.delete(t))}active(t){const e=this.map.get(t);e&&(window.clearTimeout(e.timeout),e.timeout=void 0,e.active())}scheduledDestruction(t){t.timeout=window.setTimeout((()=>{t.timeout=void 0,t.destroy(),this.map.delete(t.to)}),6e5)}}),t("useAppStore",kt("appStore",(()=>({appStore:m({})}))));t("useUIStore",kt("uiStore",(()=>{const t=function(){const t=g(500);return{zIndex:t,increment:function(){return t.value+=1,t.value},decrement:function(){t.value-=1}}}(),e=()=>ibiz.util.theme.getTheme().includes("dark")?"dark":"light",n=m({zIndex:t.zIndex,theme:e()});return ibiz.util.theme.evt.on("onChange",(()=>{n.theme=e()})),{UIStore:n,zIndex:t}}))),t("piniaInstance",Ut());function de(t){const e=Wt(),n=h("ctx",void 0);null==n||n.evt.emit("onForecast",e.modelData.name);const o=e.provider;let a;a=(null==o?void 0:o.createController)?o.createController(e.modelData,e.context,e.params,n):t(e.modelData,e.context,e.params,n),ibiz.util.viewStack.add(a.id,a),function(t,e){s((()=>({context:t.context,params:t.params})),(t=>{e.context.reset({},t.context),i(e.params),Object.assign(e.params,t.params),e.handleContextParams(),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(e,a),function(t,e){s((()=>t.state?{...t.state}:{}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.view.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{e.state[t]=o[t]}))}),{immediate:!0})}(e,a),C("ctx",a.ctx),a.state=m(a.state),a.slotProps=m(a.slotProps),e.modal&&(a.modal=e.modal),v((()=>{a.onActivated(),ibiz.util.viewStack.active(a.id)})),f((()=>{a.onDeactivated(),ibiz.util.viewStack.deactivate(a.id)})),a.force=$t();const r=u().proxy;return a.evt.onAll(((t,e)=>{r.$emit(t.slice(2),e)})),a.created(),l((()=>{a.destroyed(),ibiz.util.viewStack.remove(a.id)})),a}t("IBizIcon",P({name:"IBizIcon",props:{icon:{type:Object},size:{type:String},baseDir:{type:String,default:"images"}},setup(t){const e=Jt("icon"),n="".concat(ibiz.env.assetsUrl,"/").concat(t.baseDir,"/");const o=D((()=>function(t){if(t){if(t.htmlStr)return N("span",{class:e.b(),innerHTML:t.htmlStr},null);if(t.cssClass)return-1!==t.cssClass.indexOf("fa-")?N("i",{class:[e.b(),t.cssClass]},null):N("ion-icon",{class:e.b(),name:t.cssClass},null);if(t.imagePath)return L(t.imagePath)?N("img",{class:e.b(),src:t.imagePath},null):M(t.imagePath)?N("div",{class:[e.b(),e.e("emoji")]},[k(t.imagePath)]):U(t.imagePath)?N("div",{class:e.b(),innerHTML:t.imagePath},null):t.imagePath.endsWith("svg")?t.imagePath.startsWith("http")?N("img",{class:e.b(),src:t.imagePath},null):N("ion-icon",{src:n+t.imagePath,class:e.b()},null):t.imagePath.startsWith("http")?N("img",{class:e.b(),src:t.imagePath},null):N("img",{class:e.b(),src:n+t.imagePath},null);if(t.rawContent)return U(t.rawContent)?N("div",{class:e.b(),innerHTML:t.rawContent},null):N("img",{class:e.b(),src:t.rawContent},null)}return null}(t.icon)));return()=>o.value}})),t("IBizRouterView",P({name:"IBizRouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object,manualKey:{type:String}},setup(t,{attrs:e}){const n={};let o=!0;s((()=>t.manualKey),((t,e)=>{q(t)&&t!==e&&(o=!0)}));return{renderComp:(a,i)=>{if(!o)return n.vNode;if(o=!1,a){const o={...a.props};delete o.onVnodeUnmounted,delete o.ref;const i=y(a.type,{...o,...e,key:t.manualKey});return n.vNode=i,i}}}},render(){return N(w("router-view"),{name:this.name,route:this.route},{default:({Component:t,route:e})=>{const n=this.renderComp(t,e);return this.$slots.default?this.$slots.default({Component:n,route:e}):n}})}})),t("IBizControlBase",P({name:"IBizControlBase",props:{controller:{type:Object,required:!0}},setup(t){const e=Jt("control"),{controlType:n,sysCss:o,codeName:a}=t.controller.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=t.controller.model,l=t.controller.model.controls,c=m({});return!1===s.controlType.endsWith("EXPBAR")&&(W(s.width)||(s.width>0&&s.width<=1?c.width="".concat(100*s.width,"%"):c.width="".concat(s.width,"px")),W(s.height)||(s.height>0&&s.height<=1?c.width="".concat(100*s.height,"%"):c.height="".concat(s.height,"px"))),{ns:e,typeClass:i,sysCssName:r,inlineStyle:c,codeName:a,controls:l,onLayoutPanelCreated:e=>{t.controller.setLayoutPanel(e)}}},render(){var t,e,n;const{state:o,controlPanel:a,providers:i}=this.controller;let r=null;if(o.isCreated&&a){const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name,o={context:this.controller.context,params:this.controller.params},a=e[n];e[n]=a?()=>a(o):()=>{const e=w("IBizControlShell");return y(e,{modelData:t,...o})}}));const n=i[a.name];r=y(w(n.component),{modelData:a,context:this.controller.context,params:this.controller.params,provider:n,container:this.controller,onControllerAppear:this.onLayoutPanelCreated},e)}return N("div",{class:[this.ns.b(),this.ns.b(this.typeClass),this.ns.m(this.codeName),this.sysCssName],style:this.inlineStyle},[r||(null==(n=(e=this.$slots).default)?void 0:n.call(e))])}})),t("IBizControlShell",P({name:"IBizControlShell",props:{modelData:{type:Object,required:!0}},setup(t){const e=h("ctx");if(e)e.evt.emit("onForecast",t.modelData.name);else{const t={name:"AppView",id:"AppView",viewType:Q.DE_CUSTOM_VIEW,appId:ibiz.env.appId};C("ctx",new tt(t,_.create({})).ctx)}const n=g(!1),o=g(""),a=g();et(t.modelData).then((t=>{t?a.value=t:o.value=ibiz.i18n.t("vue3Util.common.onFoundCorrespondingPart"),n.value=!0})).catch((t=>{ibiz.log.error(t),o.value=t.message,n.value=!0}));return{ns:Jt("control-shell"),isComplete:n,errMsg:o,provider:a}},render(){return this.isComplete&&this.provider?y(w(this.provider.component),{provider:this.provider,...this.$props,...this.$attrs},this.$slots):E(N("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[O("loading"),!this.isComplete]])}})),t("IBizViewShell",P({name:"IBizViewShell",props:{context:{type:Object,required:!0},params:{type:Object},modelData:{type:Object},viewId:{type:String}},setup(t,{attrs:e}){const n=Jt("view-shell"),o=g(!1),a=g(""),i=g(),l=g(),c=g(!0),u=g(t.context),d=g(t.params||{});let p="";s((()=>({context:t.context,params:t.params})),(t=>{u.value=t.context,d.value=t.params?t.params:{}}));let h;const m=t=>{const e=$(t);return e.srfdatatype&&delete e.srfdatatype,JSON.stringify(e)},v=async()=>{if(await(async()=>{h=t.modelData?t.modelData:await ibiz.hub.getAppView(t.viewId)})(),!h)throw new j(ibiz.i18n.t("vue3Util.common.noFoundViewModel"));if(c.value=await(async t=>{let e=!0;const{accUserMode:n,accessKey:o}=t,a=ibiz.auth.getAuthInfo();if(void 0!==n)switch(n){case 1:a&&(e=!1);break;case 2:a||(e=!1);break;case 4:o&&((await ibiz.hub.getApp(u.value.srfappid)).authority.calcByResCode(o)||(e=!1))}return e})(h),c.value){if(1===h.dynaSysMode){const t=h.appDataEntityId;if(!t)throw new j(ibiz.i18n.t("vue3Util.common.noSupportLoadingDynamic",{codeName:h.codeName}));const e=await ot(t,u.value,{viewParams:d.value,appId:h.appId});if(d.value.srfdatatype&&(e.srfdatatype=d.value.srfdatatype),d.value.srfwftag)e.srfwftag=d.value.srfwftag;else if(t&&h.enableWF&&e.srfkey){const n=W(u.value.srfsessionid)||K(u.value.srfsessionid),o=r();if(n){const t=ibiz.uiDomainManager.create(o);u.value.srfsessionid=t.id}const a=ibiz.hub.getApp(h.appId),i=await a.deService.getService(u.value,t),s=await i.get(u.value,d.value||{});if(s.ok&&s.data){const{srfwftag:t,processdefinitionkey:n,taskdefinitionkey:o}=s.data;t&&(e.srfwftag=t),["DEWFDYNAEDITVIEW3","DEWFDYNAEDITVIEW"].includes(h.viewType)&&(W(d.value.processDefinitionKey)&&(d.value.processDefinitionKey=n),W(d.value.taskDefinitionKey)&&(d.value.taskDefinitionKey=o))}n&&ibiz.uiDomainManager.destroy(o)}if(m(e)===p)return void setTimeout((()=>{o.value=!0}));l.value=await ibiz.hub.loadAppView(h.appId,h.id,e),p=m(e)}else l.value=h;try{i.value=await at(h)}catch(t){ibiz.log.error(t),a.value=t.message}finally{o.value=!0}}};v();return{ns:n,errMsg:a,provider:i,isComplete:o,hasAuthority:c,viewModelData:l,redrawView:async t=>{o.value=!1;const{redrawData:n}=t,{isReloadModel:a}=n;Object.assign(u.value,n.context),Object.assign(d.value,n.params);const i=e.modal;i&&(i.hooks.shouldDismiss.clear(),i.hooks.beforeDismiss.clear()),a?await v():setTimeout((()=>{o.value=!0}))},curContext:u,curParams:d}},render(){if(this.isComplete&&this.provider&&this.hasAuthority)return y(w(this.provider.component),{context:this.curContext,params:this.curParams,modelData:$(this.viewModelData),...this.$attrs,provider:this.provider,onRedrawView:this.redrawView},this.$slots);if(!this.hasAuthority){const t=nt("403");if(t)return"string"==typeof t.component?y(w(t.component)):y(t.component)}return E(N("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[O("loading"),!this.isComplete]])}})),t("IBizCodeList",P({name:"IBizCodeList",props:{codeListItems:{type:Array},codeList:{type:Object,required:!0},value:{type:[String,Number]},convertToCodeItemText:{type:Boolean,default:!0},valueFormat:{type:String},unitName:{type:String},showMode:{type:String,default:"DEFAULT"}},emits:{infoTextChange:t=>!0},setup(t,{emit:e}){var n,o;const a=Jt("code-list"),i=g([]),r=(null==(n=t.codeList)?void 0:n.textSeparator)||"、",l=(null==(o=t.codeList)?void 0:o.valueSeparator)||",",c=D((()=>t.codeList&&t.codeList.orMode?t.codeList.orMode:"STR")),u=it(c.value);s(i,(t=>{let n="";t.length>0&&(n=t.map((t=>t.text)).join(r)),e("infoTextChange",n)}));const d=(e,n)=>{if(e){const{thresholdGroup:o}=t.codeList;if(o&&_t(Number(n))){const t=rt(e,Number(n));if(t)return t}const a=e.find((t=>t.value==n));if(a)return a;for(let t=0;t<e.length;t++){const o=d(e[t].children,n);if(o)return o}}};s([()=>t.codeListItems,()=>t.value],(([e,n],[o,a])=>{if(W(n)||""===n)i.value=[];else{let o=[];const{getSelectArray:a}=u,r=a(n,t.codeList,e,l,t.codeList.codeItemValueNumber);r&&(o=r),i.value=o.map((n=>{const o=d(e,n);let a=n;if(t.convertToCodeItemText&&(null==o?void 0:o.text))a=o.text;else{const{valueFormat:e,unitName:n}=t;e&&(a=ibiz.util.text.format("".concat(a),e)),n&&(a+=n)}return{text:a,color:null==o?void 0:o.color,textCls:null==o?void 0:o.textCls,sysImage:null==o?void 0:o.sysImage}}))}}),{immediate:!0});const p=t.codeList.emptyText===ibiz.i18n.t("vue3Util.common.undefined")?"- - -":t.codeList.emptyText;return{items:i,ns:a,emptyText:p,textSeparator:r}},render(){return N("span",{class:this.ns.b()},[0===this.items.length?this.emptyText:this.items.map(((t,e)=>[0!==e?this.textSeparator:null,N("span",{class:[this.ns.e("item"),t.textCls?t.textCls:null],style:t.color?this.ns.cssVarBlock({"item-color":"".concat(t.color)}):null},["TEXT"!==this.showMode&&t.sysImage&&N(w("iBizIcon"),{icon:t.sysImage},null),"ICON"!==this.showMode&&t.text])]))])}})),t("ControlLoadingPlaceholder",P({name:"ControlLoadingPlaceholder",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup:t=>(h("ctx").evt.emit("onForecast",t.modelData.name),{}),render:()=>null})),t("IBizBadge",P({name:"IBizBadge",props:{value:{type:Number,required:!0},type:{type:String,default:"danger"},counterMode:{type:Number}},setup:()=>({ns:Jt("badge")}),render(){if((this.value||0===this.value)&&!(1===this.counterMode&&this.value<=0))return N("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.value])}}));class pe extends st{}t("PanelContainerState",pe);class he extends lt{createState(){var t;return new pe(null==(t=this.parent)?void 0:t.state)}}function me(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("PanelContainerController",he);const ve=P({name:"IBizPanelContainer",props:{modelData:{type:Object,required:!0},controller:{type:he,required:!0}},setup(t){const e=Jt("panel-container"),{id:n}=t.modelData,o=D((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o}));return{ns:e,classArr:o}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],a=N(w("iBizRow"),{slot:"content",layout:this.modelData.layout},me(n=o.map((t=>{const e=t.props;return e&&e.controller?N(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},me(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[this.controller.model.cssStyle?N("style",{type:"text/css"},[this.controller.model.cssStyle]):null,a])}});class fe{constructor(){this.component="IBizPanelContainer"}async createController(t,e,n){const o=new he(t,e,n);return await o.init(),o}}t("IBizPanelContainer",re(ve,(function(t){t.component(ve.name,ve),ct("CONTAINER",(()=>new fe)),ct("CONTAINER_DEFAULT",(()=>new fe))})));const ge=P({name:"IBizPanelCtrlPos",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){h("ctx").evt.on("onRegister",((e,n)=>{e===t.modelData.id&&t.controller.bindControl(n)}));return{ns:Jt("panel-ctrl-pos")}},render(){const{state:t}=this.controller;let e;return this.$slots.default&&(e=this.$slots.default()),N("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!t.visible)]},[e||(ibiz.env.dev?ibiz.i18n.t("vue3Util.panelComponent.noProvidedSlot",{id:this.modelData.id}):"")])}});class ye extends lt{bindControl(t){this.control=t,t.evt.onAll(((t,e)=>{this.panel.evt.emit("onControlEvent",{triggerControlName:this.model.id,triggerEventName:t,triggerEvent:e})}))}}t("PanelCtrlPosController",ye);class we{constructor(){this.component="IBizPanelCtrlPos"}async createController(t,e,n){const o=new ye(t,e,n);return await o.init(),o}}t("IBizPanelCtrlPos",re(ge,(function(t){t.component(ge.name,ge),ct("CTRLPOS",(()=>new we))})));class Ce extends lt{}function be(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("ScrollContainerItemController",Ce);const Ie=t("ScrollContainerItem",P({name:"IBizScrollContainerItem",props:{modelData:{type:Object,required:!0},controller:{type:Ce,required:!0}},setup(t){const e=Jt("scroll-container-item"),{id:n}=t.modelData,o=D((()=>[e.b(),e.m(n),e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return N(w("iBizRow"),{class:this.classArr,layout:{layout:"FLEX"}},be(n=o.map((t=>{const e=t.props;return e&&e.controller?(e.modelData.layoutPos.layout="FLEX",N(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},be(t)?t:{default:()=>[t]})):t})))?n:{default:()=>[n]})}}));class Pe{constructor(){this.component="IBizScrollContainerItem"}async createController(t,e,n){const o=new Ce(t,e,n);return await o.init(),o}}class De extends lt{async onInit(){await super.onInit(),this.state.layout.width="100%",this.state.layout.height="100%"}}t("ScrollContainerController",De);const Ne=t("ScrollContainer",P({name:"IBizScrollContainer",props:{modelData:{type:Object,required:!0},controller:{type:De,required:!0}},setup(t){const e=Jt("scroll-container"),{id:n}=t.modelData,o=D((()=>[e.b(),e.m(n),...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n=null,o=null,a=null,i=null,r=null;const s={};((null==(e=(t=this.$slots).default)?void 0:e.call(t))||[]).forEach((t=>{const e=t.props;if(!e||!e.controller)return;const{width:l,height:c}=e.controller.state.layout;switch(e.modelData.layoutPos.layoutPos){case"WEST":n=t,s.left={width:l};break;case"EAST":a=t,s.right={width:l};break;case"NORTH":o=t,s.top={height:c};break;case"SOUTH":i=t,s.bottom={height:c};break;case"CENTER":r=t;break;default:ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.unadaptedLayout",{layoutPos:e.modelData.layoutPos.layoutPos}))}}));for(const t in s)(s[t].width||s[t].height)&&(s[t].flexShrink=0);return N("div",{class:this.classArr},[N("div",{class:[this.ns.e("header")],style:s.top},[o]),N("div",{class:[this.ns.b("content")]},[N("div",{class:this.ns.be("content","left"),style:s.left},[n]),N("div",{class:this.ns.be("content","center")},[r]),N("div",{class:this.ns.be("content","right"),style:s.right},[a])]),N("div",{class:[this.ns.e("footer")],style:s.bottom},[i])])}}));class Ee{constructor(){this.component="IBizScrollContainer"}async createController(t,e,n){const o=new De(t,e,n);return await o.init(),o}}t("IBizScrollContainer",re(Ne,(function(t){t.component(Ne.name,Ne),t.component(Ie.name,Ie),ct("CONTAINER_CONTAINER_SCROLL",(()=>new Ee)),ct("CONTAINER_CONTAINER_SCROLL_LEFT",(()=>new Pe)),ct("CONTAINER_CONTAINER_SCROLL_HEADER",(()=>new Pe)),ct("CONTAINER_CONTAINER_SCROLL_RIGHT",(()=>new Pe)),ct("CONTAINER_CONTAINER_SCROLL_BOTTOM",(()=>new Pe)),ct("CONTAINER_CONTAINER_SCROLL_MAIN",(()=>new Pe))})));class Oe extends st{constructor(){super(...arguments),this.cache=!0,this.routeOpen=!0,this.currentKey="",this.cacheKeys=["RouterShell"],this.navViewMsgs={},this.isLoading=!1}}t("NavPosState",Oe);const Ae=["is404","isRoutePushed"];class Se extends lt{constructor(){super(...arguments),this.viewModals={},this.refCtrlKeys=[],this.rawItemParams={},this.ignoreEmbedKey=!1}get route(){return this.router.currentRoute.value}getExpItemIsCache(t){return"CACHE"===this.rawItemParams.expcache||"NO_CACHE"!==this.rawItemParams.expcache&&t.isCache}setRouter(t){this.router=t}async onInit(){var t;await super.onInit(),this.handleRawItemParams(),(null==(t=this.model.rawItem)?void 0:t.rawItemParams)&&this.model.rawItem.rawItemParams.find((t=>!("REFCTRL"!==t.key||!t.value)&&(this.refCtrlKeys=t.value.split(";").map((t=>t.toLowerCase())),!0))),this.panel.evt.on("onControlEvent",(t=>{if((0===this.refCtrlKeys.length||this.refCtrlKeys.includes(t.triggerControlName))&&"onNavViewChange"===t.triggerEventName){const e=t.triggerEvent;this.openView(e.navViewMsg)}}));const e=this.rawItemParams.expmode||this.panel.view.params.expmode,n=this.rawItemParams.ignoreembedkey||this.panel.view.params.ignoreembedkey||"";this.ignoreEmbedKey=Object.is(n.toLowerCase(),"true"),"ROUTE"===e&&this.routeDepth?this.state.routeOpen=!0:this.state.routeOpen="NO_ROUTE"!==e&&!!this.routeDepth,this.panel.view.params.expmode&&delete this.panel.view.params.expmode}createState(){var t;return new Oe(null==(t=this.parent)?void 0:t.state)}get routeDepth(){return this.panel.view.modal.routeDepth}calcCacheKey(t){return t?"".concat(t.viewId,"___").concat(t.key):""}onRouteChange(t){if(this.curNavViewMsg){const e=this.calcCacheKey(this.curNavViewMsg);this.state.currentKey=e,this.state.navViewMsgs[e].fullPath=t.fullPath}}setNavViewMsgs(t){t.isRoutePushed=!0===t.isRoutePushed;const e=this.calcCacheKey(t);this.state.navViewMsgs[e]?(H(this.state.navViewMsgs[e],t),Ae.forEach((n=>{Object.prototype.hasOwnProperty.call(t,n)&&(this.state.navViewMsgs[e][n]=void 0)}))):(this.state.navViewMsgs[e]=t,this.getExpItemIsCache(t)&&this.state.cacheKeys.push(e),this.viewModals[e]=new ut({mode:this.routeDepth?dt.ROUTE:dt.EMBED,routeDepth:this.routeDepth?this.routeDepth+1:void 0,dismiss:()=>{this.dismiss(e)}})),this.curNavViewMsg=this.state.navViewMsgs[e]}dismiss(t){ibiz.log.debug(this.constructor.name,"dismiss",t)}onViewCreated(t){this.panel.evt.emit("onPresetPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:"onViewCreated",presetParams:t}),ibiz.log.debug(this.constructor.name,"onViewCreated",t)}toBlankRoute(){const t=ae(this.route,this.routeDepth);this.router.push(t)}openView(t){if(!t.key)return this.state.currentKey=this.calcCacheKey(t),void(this.routeDepth&&this.state.routeOpen&&this.toBlankRoute());this.routeDepth&&this.state.routeOpen?this.openViewByPath(t):this.openViewByModel(t)}async openViewByPath(t){var e,n,o;const a=this.calcCacheKey(t);this.setNavViewMsgs(t);if(!0===t.isRoutePushed)return this.state.currentKey=a,void(this.state.navViewMsgs[this.calcCacheKey(this.curNavViewMsg)].fullPath=this.route.fullPath);if(t.is404){const n=ae(this.route,this.routeDepth,!1);(null==(e=t.modalOptions)?void 0:e.replace)?this.router.replace("".concat(n,"/error/404")):this.router.push("".concat(n,"/error/404"))}else if(a===this.state.currentKey&&this.state.navViewMsgs[a].fullPath)(null==(n=t.modalOptions)?void 0:n.replace)?this.router.replace(this.state.navViewMsgs[a].fullPath):this.router.push(this.state.navViewMsgs[a].fullPath);else if(this.state.navViewMsgs[a].fullPath&&this.getExpItemIsCache(t))(null==(o=t.modalOptions)?void 0:o.replace)?this.router.replace(this.state.navViewMsgs[a].fullPath):this.router.push(this.state.navViewMsgs[a].fullPath);else{const e=Object.assign(t.context.clone(),{toRouteDepth:this.routeDepth+1});this.getExpItemIsCache(t)&&this.state.cacheKeys.push(a),t.viewId&&(this.state.isLoading=!0,await ibiz.commands.execute(pt.TAG,t.viewId,e,t.params,{openMode:"INDEXVIEWTAB",replace:!this.state.currentKey,...t.modalOptions}),this.state.isLoading=!1)}}openViewByModel(t){this.setNavViewMsgs(t),this.state.currentKey=this.calcCacheKey(t)}handleRawItemParams(){var t;let e={};const n=null==(t=this.model.rawItem)?void 0:t.rawItemParams;o(n)&&(e=n.reduce(((t,e)=>(t[e.key.toLowerCase()]=e.value,t)),{})),Object.assign(this.rawItemParams,e)}}function ze(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("NavPosController",Se);const Te=P({name:"IBizNavPos",props:{modelData:{type:Object,required:!0},controller:{type:Se,required:!0}},setup(t){const e=t.controller,n=Jt("nav-pos"),o=jt(),a=Vt(),i=g(!1);if(e.setRouter(o),e.routeDepth){const t=ae(a,e.routeDepth);s((()=>a.fullPath),(()=>{const n=ae(a,e.routeDepth);if(t===n&&a.matched.length>e.routeDepth){if(a.matched.length===e.routeDepth+1&&(i.value=!!a.name,i.value))return;e.onRouteChange(a)}}),{immediate:!0})}return{ns:n,c:e,isPresetView:i,onViewCreated:t=>{e.onViewCreated(t)}}},render(){const{viewModals:t,state:e}=this.c,{currentKey:n,cacheKeys:o,navViewMsgs:a,cache:i}=e;let r=null;if(e.routeOpen){if(this.isPresetView)return N(Lt,null,null);r=N(w("iBizRouterView"),{manualKey:n,modal:t[n],onCreated:this.onViewCreated},{default:({Component:t})=>{const e=""!==n&&t?N(t,null,null):null;return i?N(w("keepAlive"),{include:o,max:30,isKey:!0},ze(e)?e:{default:()=>[e]}):e}})}else{const t=n&&a[n]?y(w("IBizViewShell"),{context:a[n].context,params:a[n].params,key:this.c.ignoreEmbedKey?void 0:n,viewId:a[n].viewId,onCreated:this.onViewCreated}):null;r=i?N(w("keepAlive"),{include:o,max:30,isKey:!0},ze(t)?t:{default:()=>[t]}):t}return N("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},[r])}});class xe{constructor(){this.component="IBizNavPos"}async createController(t,e,n){const o=new Se(t,e,n);return await o.init(),o}}t("IBizNavPos",re(Te,(function(t){t.component(Te.name,Te),ct("RAWITEM_NAV_POS",(()=>new xe))})));class Re extends st{constructor(){super(...arguments),this.error=null}}class Be extends lt{constructor(){super(...arguments),this.unitName=void 0}get valueFormat(){return this.model.valueFormat}get dataType(){}get context(){return this.panel.context}get params(){return this.panel.params}get data(){return this.dataParent.data}get value(){return this.data[this.model.id]}createState(){var t;return new Re(null==(t=this.parent)?void 0:t.state)}async validate(){var t;return!this.state.visible||this.model.allowEmpty||this.value?(this.state.error=null,!0):(this.state.error=(null==(t=this.editor)?void 0:t.model.placeHolder)||ibiz.i18n.t("vue3Util.panelComponent.cannotEmpty",{caption:this.model.caption}),!1)}async onInit(){var t,e;await super.onInit(),this.state.required=!this.model.allowEmpty,!0!==this.context.srfreadonly&&"true"!==this.context.srfreadonly&&(null==(t=this.model.editor)?void 0:t.readOnly)&&(this.state.readonly=(null==(e=this.model.editor)?void 0:e.readOnly)||!1),this.model.editor&&"HIDDEN"!==this.model.editor.editorType&&(this.editorProvider=await ht(this.model.editor),this.editorProvider&&(this.editor=await this.editorProvider.createController(this.model.editor,this)))}async setDataValue(t,e){const{id:n}=this.model;e=e||n,this.dataParent.setDataValue&&await this.dataParent.setDataValue(e,t),await this.validate(),this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:mt.CHANGE})}onFocus(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:mt.FOCUS,event:t})}onBlur(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:mt.BLUR,event:t})}onEnter(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:mt.ENTER,event:t})}}t("PanelFieldController",Be);const Ve=P({name:"IBizPanelField",props:{modelData:{type:Object,required:!0},controller:{type:Be,required:!0},attrs:{type:Object,require:!1}},setup(t){const e=Jt("panel-field"),n=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n),e.is("error",!!t.controller.state.error)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n,onValueChange:(e,n)=>{t.controller.setDataValue(e,n)}}},render(){let t=null;if(this.controller.data){const e={value:this.controller.value,data:this.controller.data,controller:this.controller.editor,disabled:this.controller.state.disabled,class:this.ns.b("content"),readonly:this.controller.state.readonly,onChange:this.onValueChange,onFocus:t=>this.controller.onFocus(t),onBlur:t=>this.controller.onBlur(t),onEnter:t=>this.controller.onEnter(t),...this.attrs};if(this.$slots.default)t=this.$slots.default(e);else if(this.controller.editorProvider){const n=w(this.controller.editorProvider.formEditor);t=y(n,{...e})}else t=N(w("not-supported-editor"),{modelData:this.modelData.editor},null)}return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t,this.controller.state.error&&N("div",{class:this.ns.e("error")},[this.controller.state.error])])}});class je{constructor(){this.component="IBizPanelField"}async createController(t,e,n){const o=new Be(t,e,n);return await o.init(),o}}t("IBizPanelField",re(Ve,(function(t){t.component(Ve.name,Ve),ct("FIELD",(()=>new je))})));class Le extends lt{get data(){return this.dataParent.data}async onInit(){await super.onInit()}}t("PanelRawItemController",Le);const Me=P({name:"IBizPanelRawItem",props:{modelData:{type:Object,required:!0},controller:{type:Le,required:!0}},setup(t){const e=Jt("panel-rawitem"),n=t.controller,o=g(""),a=g(""),{rawItem:i}=t.modelData;i&&i.cssStyle&&(a.value=i.cssStyle);const r=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return s((()=>n.data),(async t=>{if(t){const e=n.model.rawItem;if(!e)return;let a;const i={...t};"RAW"===e.contentType?a=e.caption:"HTML"===e.contentType&&(a=e.content),a&&e.templateMode&&(a=await ibiz.util.hbs.render(a.replace("//n","\n"),Object.assign(i,{data:{...t}}))),o.value=a}}),{immediate:!0}),{ns:e,classArr:r,tempStyle:a,content:o}},render(){if(this.controller.state.visible)return N("div",{class:this.classArr,style:this.tempStyle,onClick:t=>{this.controller.onClick(t)}},[N(w("iBizRawItem"),{rawItem:this.modelData,content:this.content},null)])}});class ke{constructor(){this.component="IBizPanelRawItem"}async createController(t,e,n){const o=new Le(t,e,n);return await o.init(),o}}t("IBizPanelRawItem",re(Me,(function(t){t.component(Me.name,Me),ct("RAWITEM",(()=>new ke)),ct("RAWITEM_STATIC_IMAGE",(()=>new ke)),ct("RAWITEM_STATIC_LABEL",(()=>new ke)),ct("RAWITEM_STATIC_TEXT",(()=>new ke))})));class Ue extends st{constructor(){super(...arguments),this.data={}}}class _e{constructor(t,e,n,o){this.model=t,this.panel=e,this.parent=n,this.state=new Ue,this.isDataContainer=!0,this.panelItems={},this.state.data=o;const a=vt(this.model).map((t=>t.id));o._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])}))}get data(){return this.state.data}async validate(){return(await Promise.all(Object.values(this.panelItems).map((t=>t.validate())))).every((t=>t))}async init(){await this.initChildrenController()}async initChildrenController(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=this.parent.providers[t.id];if(!i)return;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!ft(t)?await this.initChildrenController(t.panelItems,e,r):(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initChildrenController(t.panelTabPages,e,r)})))}async dataChangeNotify(t){}async childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async panelStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e,this.childDataChangeNotify([t]))}destroy(){var t,e;null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}class Fe extends st{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerState",Fe);class Ge extends lt{constructor(){super(...arguments),this.isDataContainer=!0,this.dataItems=[],this.providers={}}get data(){return this.state.items}createState(){var t;return new Fe(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemProviders(),this.initContainerData()}async initPanelItemProviders(t=this.model.panelItems){t&&await Promise.all(t.map((async t=>{var e,n;const o=await gt(t,this.panel.model,this.panel.view.model);o&&(this.providers[t.id]=o,(null==(e=t.panelItems)?void 0:e.length)&&!ft(t)&&await this.initPanelItemProviders(t.panelItems),(null==(n=t.panelTabPages)?void 0:n.length)&&await this.initPanelItemProviders(t.panelTabPages))})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,yt(t,this.panel.params,this.panel.context));const o=yt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=wt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new F(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){this.dataItems.forEach((e=>{e.panelStateNotify(t)}))}async validate(){return(await Promise.all(this.dataItems.map((t=>t.validate())))).every((t=>t))}async setData(t){const e=vt(this.model),n=t.map((t=>new Ct(e,t)));this.dataItems=n.map((t=>new _e(this.model,this.panel,this,t))),this.dataItems.length&&await Promise.all(this.dataItems.map((t=>t.init()))),this.state.items=n,this.childrenStateNotify(bt.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await It(e,t,n,this.panel.data,o);if(!a)throw new j(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){super.destroy(),this.dataItems.forEach((t=>{t.destroy()}))}}t("MultiDataContainerController",Ge);const We=P({name:"IBizMultiDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:Ge,required:!0}},setup(t){const e=Jt("multi-data-container"),{id:n}=t.modelData;s((()=>t.controller.state.items),(()=>{t.controller.dataItems.forEach((t=>{t.state=m(t.state);Object.keys(t.panelItems).forEach((e=>{const n=t.panelItems[e];n.state=m(n.state)}))}))}),{immediate:!0});const o=h("renderPanelItem"),a=D((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():this.controller.state.items.map(((t,e)=>{const n=this.controller.dataItems[e];return N(w("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const o=n.panelItems[t.id];return N(w("iBizCol"),{layoutPos:t.layoutPos,state:o.state},"function"==typeof(a=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:n.panelItems}))||"[object Object]"===Object.prototype.toString.call(a)&&!A(a)?e:{default:()=>[e]});var a}))]}})})),N("div",{class:this.classArr},[t])}});class qe{constructor(){this.component="IBizMultiDataContainer"}async createController(t,e,n){const o=new Ge(t,e,n);return await o.init(),o}}t("IBizMultiDataContainer",re(We,(function(t){t.component(We.name,We),ct("CONTAINER_CONTAINER_MULTIDATA",(()=>new qe))})));class $e extends st{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerRawState",$e);class Ke extends lt{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.items}createState(){var t;return new $e(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers(),this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await gt(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!ft(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,yt(t,this.panel.params,this.panel.context));const o=yt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=wt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new F(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;null==(n=(e=this.data).destroy)||n.call(e),this.state.items=t,this.childrenStateNotify(bt.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await It(e,t,n,this.panel.data,o);if(!a)throw new j(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{var e;null==(e=t.destroy)||e.call(t)}))}}t("MultiDataContainerRawController",Ke);const He=P({name:"IBizMultiDataContainerRaw",props:{modelData:{type:Object,required:!0},controller:{type:Ke,required:!0}},setup(t){const e=Jt("multi-data-container-raw"),{id:n}=t.modelData;s((()=>t.controller.state.items),(()=>{Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=m(n.state)}))}),{immediate:!0,deep:!0});const o=h("renderPanelItem"),a=D((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():N(w("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return N(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o}))]}}),N("div",{class:this.classArr},[t])}});class Xe{constructor(){this.component="IBizMultiDataContainerRaw"}async createController(t,e,n){const o=new Ke(t,e,n);return await o.init(),o}}t("IBizMultiDataContainerRaw",re(He,(function(t){t.component(He.name,He),ct("CONTAINER_CONTAINER_MULTIDATA_RAW",(()=>new Xe))})));class Qe extends st{constructor(){super(...arguments),this.data={}}}t("SingleDataContainerState",Qe);class Je extends lt{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.data}createState(){var t;return new Qe(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers(),this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await gt(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!ft(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,yt(t,this.panel.params,this.panel.context));const o=yt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,dataRegionType:n,scriptCode:o}=this.model;if("LOGINFORM"!==n)switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!o)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=wt.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},o,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new F(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}else this.setLoginForm()}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;const o=vt(this.model),a=o.map((t=>t.id)),i=new Ct(o,t);i._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])})),null==(n=(e=this.data).destroy)||n.call(e),this.state.data=i,this.childrenStateNotify(bt.LOAD)}setLoginForm(){this.setData({})}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await It(e,t,n,this.panel.data,o);if(!a)throw new j(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e)}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}t("SingleDataContainerController",Je);const Ye=P({name:"IBizSingleDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:Je,required:!0}},setup(t){const e=Jt("single-data-container"),{id:n}=t.modelData;Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=m(n.state)}));const o=h("renderPanelItem"),a=D((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():N(w("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return N(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o}))]}}),N("div",{class:this.classArr},[t])}});class Ze{constructor(){this.component="IBizSingleDataContainer"}async createController(t,e,n){const o=new Je(t,e,n);return await o.init(),o}}t("IBizSingleDataContainer",re(Ye,(function(t){t.component(Ye.name,Ye),ct("CONTAINER_CONTAINER_SINGLEDATA",(()=>new Ze))})));class tn extends st{}t("GridContainerState",tn);class en extends lt{createState(){var t;return new tn(null==(t=this.parent)?void 0:t.state)}}function nn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("GridContainerController",en);const on=P({name:"IBizGridContainer",props:{modelData:{type:Object,required:!0},controller:{type:en,required:!0}},setup(t){const e=Jt("grid-container"),{id:n}=t.modelData,o=D((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=D((()=>({...t.modelData.layout,layout:"TABLE_12COL"}))),i=g(void 0),r=g(12);return{ns:e,classArr:o,layoutModel:a,convertLayoutPos:(t,e)=>{const n={...t,layout:"TABLE_12COL",colXS:t.grow||e,colSM:t.grow||e,colMD:t.grow||e,colLG:t.grow||e};return delete n.grow,n},adaptGrow:r,adaptCols:i}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];if(void 0===this.adaptCols){let t=0,e=0;o.forEach((n=>{const o=n.props;o&&o.modelData&&o.modelData.layoutPos&&("number"==typeof o.modelData.layoutPos.grow?t+=o.modelData.layoutPos.grow:void 0===o.modelData.layoutPos.grow&&(e+=1))}));let n=12;e>0&&(n=(12-t)/e),this.adaptCols=e,this.adaptGrow=n}return N(w("iBizRow"),{class:this.classArr,layout:this.layoutModel},nn(n=o.map((t=>{const e=t.props;return e&&e.controller?N(w("iBizCol"),{layoutPos:this.convertLayoutPos(e.modelData.layoutPos,this.adaptGrow),state:e.controller.state},nn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]})}});class an{constructor(){this.component="IBizGridContainer"}async createController(t,e,n){const o=new en(t,e,n);return await o.init(),o}}t("IBizGridContainer",re(on,(function(t){t.component(on.name,on),ct("CONTAINER_CONTAINER_GRID",(()=>new an))})));class rn extends st{}t("PanelContainerImageState",rn);class sn extends lt{createState(){var t;return new rn(null==(t=this.parent)?void 0:t.state)}}function ln(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("PanelContainerImageController",sn);const cn=P({name:"IBizPanelContainerImage",props:{modelData:{type:Object,required:!0},controller:{type:sn,required:!0}},setup(t){const e=Jt("panel-container-image"),{id:n}=t.modelData,o=D((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=D((()=>{const e=t.controller.model.sysImage,n={};let o="";return(null==e?void 0:e.rawContent)?o=U(e.rawContent)?"url(data:image/svg+xml;base64,".concat(btoa(e.rawContent),")"):"url(".concat(e.rawContent,")"):(null==e?void 0:e.imagePath)&&(o="url(".concat(e.imagePath,")")),o&&Object.assign(n,{backgroundImage:o}),n}));return{ns:e,classArr:o,backgroundStyle:a}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],a=N(w("iBizRow"),{slot:"content",layout:this.modelData.layout},ln(n=o.map((t=>{const e=t.props;return e&&e.controller?N(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},ln(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});return N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()},style:this.backgroundStyle},[this.controller.model.cssStyle?N("style",{type:"text/css"},[this.controller.model.cssStyle]):null,a])}});class un{constructor(){this.component="IBizPanelContainerImage"}async createController(t,e,n){const o=new sn(t,e,n);return await o.init(),o}}t("IBizPanelContainerImage",re(cn,(function(t){t.component(cn.name,cn),ct("CONTAINER_CONTAINER_IMAGE",(()=>new un))})));class dn extends st{}t("PanelContainerGroupState",dn);class pn extends lt{createState(){var t;return new dn(null==(t=this.parent)?void 0:t.state)}get disableClose(){const{titleBarCloseMode:t}=this.model;return 0===t||void 0===t}get defaultExpansion(){const{titleBarCloseMode:t}=this.model;return this.disableClose||1===t}}t("PanelContainerGroupController",pn);class hn{constructor(){this.component="IBizPanelContainerGroup"}async createController(t,e,n){const o=new pn(t,e,n);return await o.init(),o}}function mn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}const vn=P({name:"IBizPanelContainerGroup",props:{modelData:{type:Object,required:!0},controller:{type:pn,required:!0}},setup(t){const e=Jt("panel-container-group"),n=g(!t.controller.defaultExpansion);return{ns:e,captionText:D((()=>{const{captionItemName:e,caption:n,capLanguageRes:o}=t.modelData;if(e)return t.controller.data[e];let a=n;return o&&(a=ibiz.i18n.t(o.lanResTag,n)),a})),changeCollapse:()=>{t.controller.disableClose||(n.value=!n.value)},isCollapse:n}},render(){var t,e;let n;const o=[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!this.controller.state.visible)];!0===this.modelData.showCaption&&(o.push(this.ns.m("show-header")),o.push(this.ns.b("collapse")),o.push(this.ns.is("collapse",this.isCollapse)),this.controller.disableClose&&o.push(this.ns.bm("collapse","disable-close")));const a=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],i=N(w("iBizRow"),{slot:"content",layout:this.modelData.layout},mn(n=a.map((t=>{const e=t.props;return e&&e.controller?N(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},mn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});let r=null;return this.modelData.showCaption&&(r=N("div",{class:[this.ns.b("header")],onClick:this.changeCollapse},[N("div",{class:[this.ns.be("header","left")]},[N("div",{class:[this.ns.e("caption"),...this.controller.labelClass]},[this.captionText])]),N("div",{class:[this.ns.be("header","right")]},[void 0!==this.modelData.titleBarCloseMode&&0!==this.modelData.titleBarCloseMode&&(this.isCollapse?N("ion-icon",{name:"caret-forward-sharp"},null):N("ion-icon",{name:"caret-down-sharp"},null))])])),N("div",{class:o},[r,N("div",{class:[this.ns.b("content")]},[i])])}});t("IBizPanelContainerGroup",re(vn,(function(t){t.component(vn.name,vn),ct("CONTAINER_CONTAINER_GROUP",(()=>new hn))})));function fn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}const gn=P({name:"IBizPanelTabPage",props:{modelData:{type:Object,required:!0},controller:{type:lt,required:!0}},setup(t){const e=Jt("panel-tab-page"),n=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return N(w("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),this.classArr],layout:this.modelData.layout},fn(n=o.map((t=>{const e=t.props;if(!e||!e.controller)return t;const n=e.controller;return N(w("iBizCol"),{layoutPos:n.model.layoutPos,state:n.state},fn(t)?t:{default:()=>[t]})})))?n:{default:()=>[n]})}});class yn{constructor(){this.component="IBizPanelTabPage"}async createController(t,e,n){const o=new lt(t,e,n);return await o.init(),o}}t("IBizPanelTabPage",re(gn,(function(t){t.component(gn.name,gn),ct("TABPAGE",(()=>new yn))})));class wn extends lt{getPanelItemCustomHtml(t,e){if(0===t.length)return;const n=t[0];return n.layoutPanelModel?wt.execScriptFn({data:e||{}},n.layoutPanelModel,{singleRowReturn:!0,isAsync:!1}):void 0}}const Cn=P({name:"IBizPanelItemRender",props:{modelData:{type:Object,required:!0},controller:{type:wn,required:!0}},setup(t){var e;const n=Jt("panel-item-render"),o=Jt("panel-".concat(null==(e=t.modelData.itemType)?void 0:e.toLowerCase())),{id:a}=t.modelData,i=D((()=>[n.b(),n.m(a),o.b(),n.is("hidden",!t.controller.state.visible)])),r=D((()=>t.controller.getPanelItemCustomHtml(t.modelData.controlRenders,t.controller.data)));return{ns:n,classArr:i,htmlCode:r}},render(){return N("div",{class:this.classArr,innerHTML:this.htmlCode},null)}});class bn{constructor(){this.component="IBizPanelItemRender"}async createController(t,e,n){const o=new wn(t,e,n);return await o.init(),o}}t("IBizPanelItemRender",re(Cn,(function(t){t.component(Cn.name,Cn),ct("PREDEFINE_RENDER",(()=>new bn))})));const In=P({name:"IBizTeleportPlaceholder",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=Jt("teleport-placeholder"),n=g(""),{rawItem:o}=t.modelData;o&&o.cssStyle&&(n.value=o.cssStyle);const a=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:a,tempStyle:n}},render(){if(this.controller.state.visible)return N("div",{id:this.controller.state.teleportTag,class:this.classArr,style:this.tempStyle},null)}});class Pn extends st{constructor(){super(...arguments),this.teleportTag=""}}class Dn extends lt{createState(){var t;return new Pn(null==(t=this.parent)?void 0:t.state)}async onInit(){var t,e;await super.onInit();const n=this.panel.view.model.codeName;let o="".concat(null==n?void 0:n.toLowerCase(),"-").concat(this.model.id);const a=null==(e=null==(t=this.model.rawItem)?void 0:t.rawItemParams)?void 0:e.find((t=>"TeleportTag"===t.key));a&&a.value&&(o=a.value),ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.placeholderIdentifier",{viewCodeName:n,id:this.model.id}),o),this.state.teleportTag=o}}class Nn{constructor(){this.component="IBizTeleportPlaceholder"}async createController(t,e,n){const o=new Dn(t,e,n);return await o.init(),o}}t("TeleportPlaceholderProvider",Nn);t("IBizTeleportPlaceholder",re(In,(function(t){t.component(In.name,In),ct("RAWITEM_TELEPORT_PLACEHOLDER",(()=>new Nn))})));const En=P({name:"IBizPanelContainerTabs",props:{modelData:{type:Object,required:!0},controller:{type:he,required:!0}},setup:()=>({ns:Jt("panel-container-tabs")}),render(){return y(w("IBizPanelContainer"),{...this.$props,...this.$attrs,class:this.ns.b()},this.$slots)}});class On{constructor(){this.component="IBizPanelContainerTabs"}async createController(t,e,n){const o=new he(t,e,n);return await o.init(),o}}t("IBizPanelContainerTabs",re(En,(function(t){t.component(En.name,En),ct("CONTAINER_TABS",(()=>new On))})));const An=P({name:"IBizPanelCtrlViewPageCaption",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=Jt("panel-ctrl-view-page-caption"),n=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){let t=null;return this.controller.data&&(t=N("span",{class:this.ns.b("content")},[this.controller.state.caption])),N("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t])}});class Sn extends lt{async onInit(){await super.onInit(),this.state.caption=this.panel.view.model.caption||"",this.panel.view.evt.on("onViewInfoChange",(({caption:t,dataInfo:e})=>{this.state.caption="".concat(this.panel.view.model.caption).concat(e?"-".concat(e):"")}))}}class zn{constructor(){this.component="IBizPanelCtrlViewPageCaption"}async createController(t,e,n){const o=new Sn(t,e,n);return await o.init(),o}}t("IBizPanelCtrlViewPageCaption",re(An,(function(t){t.component(An.name,An),ct("CTRLPOS_VIEW_PAGECAPTION",(()=>new zn))}))),t("AppRedirectView",P({setup(){var t;const e=_.create((null==(t=ibiz.appData)?void 0:t.context)||{});I((()=>{e.destroy()}));const{href:n}=window.location;b((()=>ibiz.util.hiddenAppLoading())),async function(){await Pt(e,n)}()},render:()=>N("div",null,[ibiz.i18n.t("vue3Util.view.redirectionProgress")])}));class Tn{constructor(){this.component="IBizView"}}const xn=P({name:"IBizView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object},provider:{type:Object}},setup(t,{slots:e}){const n=Jt("view"),o=de(((...t)=>new tt(...t))),a=Dt(o.model),i=[],r=new Map,s=[];a.forEach((t=>{const{teleportFlag:e,teleportTag:n}=Nt(t);n||e?(i.push(t),r.set(t.id,n||"")):s.push(t)}));const{viewType:l,sysCss:c,codeName:u}=o.model,d=l.toLowerCase(),p=null==c?void 0:c.cssName,h=D((()=>[n.b(),n.b(d),n.m(u),p,o.state.viewMessages.TOP?"has-top-message":"",o.state.viewMessages.BOTTOM?"has-bottom-message":"",o.state.presetClassList])),m=(t,e={})=>{const n=t.name||t.id;return{context:o.context,params:o.params,modelData:t,...o.slotProps[n]||{},...e}};return{c:o,ns:n,controls:s,teleportControls:i,viewClassNames:h,onLayoutPanelCreated:t=>{o.setLayoutPanel(t)},getCtrlProps:m,renderControl:(t,n={})=>{const a=t.name||t.id,i=m(t,n);if(e[a])return z(e,a,i);const r=o.providers[a],s=w((null==r?void 0:r.component)||"IBizControlShell");return r&&(i.provider=r),y(s,i)},getCtrlTeleportTag:t=>{var e,n;const a=r.get(t.id);if(a)return a;const i=null==(n=null==(e=o.parentView)?void 0:e.layoutPanel)?void 0:n.panelItems[t.name];return i?"#".concat(i.state.teleportTag):void 0},getControlStyle:()=>{const t={};return Object.assign(t,{display:o.state.hasError?"none":"initial"}),t}}},render(){var t,e;let n=null;if(this.c.state.isCreated)if(0===this.c.engines.length)n=N("span",{style:"color:red;"},[ibiz.i18n.t("vue3Util.view.viewType",{viewType:this.modelData.viewType})]);else{const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name||t.id;e[n]=e=>this.renderControl(t,e)}));const o=this.c.model.viewLayoutPanel,a=this.c.providers[o.name];n=y(w(a.component),{modelData:o,context:this.c.context,params:this.c.params,provider:a,container:this.c,style:this.getControlStyle(),onControllerAppear:this.onLayoutPanelCreated},e)}let o=null;this.c.state.isCreated&&(null==(e=this.teleportControls)?void 0:e.length)&&(o=this.teleportControls.map((t=>{let e;const n=this.getCtrlTeleportTag(t);return n?N("div",{style:this.getControlStyle()},[N(S,{to:n,disabled:!this.c.state.activated},(o=e=this.renderControl(t),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]}))]):(ibiz.log.error(ibiz.i18n.t("vue3Util.view.noTeleportTag",{name:t.name})),null);var o})));let a=null;if(this.c.state.hasError&&this.c.error.status){const t=nt(this.c.error.status);t&&("string"==typeof t.component&&(a=y(w(t.component))),a=y(t.component))}return E(N("div",{class:this.viewClassNames,id:this.c.id},[n,o,a]),[[O("loading"),this.c.state.isLoading]])}});class Rn{constructor(){this.component="IBizView"}createController(t,e,n,o){return new Et(t,e,n,o)}}t("IBizView",re(xn,(function(t){t.component(xn.name,xn),Ot("DEFAULT",(()=>new Tn)),Ot("APPDATAUPLOADVIEW",(()=>new Rn))}))),t("TodoRedirect",P({setup(){const t=jt(),{href:e}=window.location,n=e.lastIndexOf("?"),o=decodeURIComponent(e.substring(n+1,e.length));if(!o)throw new Error(ibiz.i18n.t("vue3Util.view.insufficientRedirection"));const a=Mt.parse(o,{delimiter:";"}),{apptype:i,todotype:r,todoid:s}=a,l={srfapptype:"pc",srfapp:""};i||(l.todourltype="RouterUrl"),async function(){let e=(await ibiz.net.post("/systodos/".concat(s,"/getlinkurl"),l)).data.linkurl;i?window.location.href=e:(0!==e.indexOf("/")&&(e="/".concat(e)),e+=";srfwf=".concat(r),t.push("/index".concat(e)))}()},render:()=>N("div",null,[ibiz.i18n.t("vue3Util.view.toDoList")])}));class Bn{constructor(){this.component="IBizPortalView"}}const Vn=P({name:"IBizPortalView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=Jt("view"),n=de(((...t)=>new tt(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l];return{c:n,ns:e,controls:o,viewClassNames:c}},render(){var t;let e=null;if(this.c.state.isCreated){const n={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const e=t.name||t.id,o={context:this.c.context,params:this.c.params};this.c.slotProps[e]&&Object.assign(o,this.c.slotProps[e]);const a=n[e];if(a)return void(n[e]=()=>a({modelData:t,...o}));const i=this.c.providers[e];i&&(n[e]=()=>{const e=w(i.component);return y(e,{modelData:t,...o,provider:i})})})),n.dashboard&&(e=n.dashboard())}return N("div",{class:this.viewClassNames},[e])}}),jn=(t("IBizPortalView",re(Vn,(function(t){t.component(Vn.name,Vn),Ot(Q.APP_PORTAL_VIEW,(()=>new Bn)),Ot(Q.DE_PORTAL_VIEW,(()=>new Bn)),Ot(Q.DE_PORTAL_VIEW9,(()=>new Bn))}))),P({name:"IBizDeRedirectView",props:{context:{type:Object,required:!0},params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0}},setup(t){const e=de(((...t)=>new tt(...t))),n=g(),o=g(),a=g();return e.evt.on("onCreated",(()=>{At(p(t.modelData),p(e.context),p(e.params)).then((async t=>{if("view"!==t.type)throw new j(ibiz.i18n.t("vue3Util.view.embeddedRedirectionView"));n.value=t.viewId,o.value=t.context,a.value=t.params}))})),{c:e,toViewId:n,toViewContext:o,toViewParams:a}},render(){return this.toViewId?y(w("IBizViewShell"),{context:this.toViewContext,params:this.toViewParams,viewId:this.toViewId,...this.$attrs},this.$slots):E(N("div",{style:"width: 100%; height: 100%;"},null),[[O("loading"),!this.toViewId]])}}));class Ln{constructor(){this.component="IBizDeRedirectView"}}t("IBizDeRedirectView",re(jn,(function(t){t.component(jn.name,jn);const e=new Ln;Ot(Q.DE_REDIRECT_VIEW,(()=>e))})));class Mn{constructor(){this.component="IBizHtmlView"}}const kn=P({name:"IBizHtmlView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=Jt("view"),n=de(((...t)=>new tt(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l],u=g(!1),d=D((()=>{if(n.model){const{htmlUrl:t}=n.model;if(t)return t}return""}));T((()=>{d.value&&(u.value=!0)}));return{c:n,ns:e,controls:o,viewClassNames:c,url:d,isLoading:u,onLoad:()=>{u.value=!1}}},render(){if(this.url)return E(N("div",{class:this.viewClassNames},[N("iframe",{src:this.url,onLoad:()=>this.onLoad()},null)]),[[O("loading"),this.isLoading]]);let t=null;const e=nt("404");return e&&("string"==typeof e.component&&(t=y(w(e.component))),t=y(e.component)),N("div",{class:this.viewClassNames},[t])}});t("IBizHtmlView",re(kn,(function(t){t.component(kn.name,kn),Ot(Q.DE_HTML_VIEW,(()=>new Mn))})));function Un(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=wt.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}const _n=P({name:"IBizViewLayoutPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:Object},setup(t,{slots:e}){const n=Xt(((...e)=>new St(...e,t.container))),o=Jt("control-".concat(n.model.controlType.toLowerCase()));s((()=>t.data),(t=>{t&&(n.setInputData(t),n.load())}),{immediate:!0}),n.evt.on("onCreated",(()=>{Object.keys(n.panelItems).forEach((t=>{const e=n.panelItems[t];e.state=m(e.state)}))}));const a=(t,o)=>{var i,r;if(t.hidden)return null;const{providers:s,panelItems:l}=o||n,c=s[t.id];if(!c)return N("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);if("CTRLPOS"!==t.itemType&&e[t.id])return z(e,t.id,{model:t,data:n.data,value:n.data[t.id]});const u=w(c.component);let d;if("CTRLPOS"===t.itemType&&e[t.id]){const n=l[t.id];d=n.parent&&zt(n.parent.model)?()=>e[t.id]({isSimple:!0,data:n.data}):()=>e[t.id]()}else"TABPANEL"===t.itemType&&(null==(i=t.panelTabPages)?void 0:i.length)?d=()=>t.panelTabPages.map((t=>a(t,o))):ft(t)?d=void 0:(null==(r=t.panelItems)?void 0:r.length)&&(d=()=>t.panelItems.map((t=>a(t,o))));let p="";t.cssStyle&&(p=t.cssStyle);const h=l[t.id];return y(u,{modelData:t,controller:h,key:t.id,style:p,attrs:Un(t,h)},d)};return C("renderPanelItem",a),{c:n,ns:o,renderPanelItem:a}},render(){const{state:t,model:e}=this.c;return N(w("iBizControlBase"),{controller:this.c},{default:()=>[N(w("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",N(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o})))]}})]})}});class Fn{constructor(){this.component="IBizViewLayoutPanelControl"}}t("IBizViewLayoutPanelControl",re(_n,(function(t){t.component(_n.name,_n),Tt(xt.VIEW_LAYOUT_PANEL,(()=>new Fn))})));function Gn(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=wt.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}function Wn(t,e,n){var o,a;if(t.hidden)return;const{providers:i,panelItems:r}=e,s=i[t.id];if(!s)return N("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);const l=w(s.component);let c;"CTRLPOS"===t.itemType&&n.$slots[t.id]?c=()=>n.$slots[t.id]():"TABPANEL"===t.itemType&&(null==(o=t.panelTabPages)?void 0:o.length)?c=()=>t.panelTabPages.map((t=>Wn(t,e,n))):ft(t)?c=void 0:(null==(a=t.panelItems)?void 0:a.length)&&(c=()=>t.panelItems.map((t=>Wn(t,e,n))));let u="";t.cssStyle&&(u=t.cssStyle);const d=r[t.id];return y(l,{modelData:t,controller:d,key:t.id,style:u,attrs:Gn(t,d)},c)}const qn=P({name:"IBizPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:Object,loadDefault:{type:Boolean,default:!0}},setup(t){const e=Xt(((...e)=>new Rt(...e,t.container))),n=Jt("control-".concat(e.model.controlType.toLowerCase()));return s((()=>t.data),(t=>{t&&(e.setInputData(t),e.load())}),{immediate:!0}),e.evt.on("onCreated",(()=>{Object.keys(e.panelItems).forEach((t=>{const n=e.panelItems[t];n.state=m(n.state)}))})),{c:e,ns:n}},render(){const{state:t,model:e}=this.c;return N(w("iBizControlBase"),{controller:this.c},{default:()=>[N(w("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",N(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=Wn(t,this.c,this))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o})))]}})]})}});class $n{constructor(){this.component="IBizPanelControl"}}t("IBizPanelControl",re(qn,(function(t){t.component(qn.name,qn),Tt(xt.PANEL,(()=>new $n))})));function Kn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hn(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Xn(t,e){for(var n,o="",a=0,i=-1,r=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===r);else if(i!==s-1&&2===r){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var l=o.lastIndexOf("/");if(l!==o.length-1){-1===l?(o="",a=0):a=(o=o.slice(0,l)).length-1-o.lastIndexOf("/"),i=s,r=0;continue}}else if(2===o.length||1===o.length){o="",a=0,i=s,r=0;continue}e&&(o.length>0?o+="/..":o="..",a=2)}else o.length>0?o+="/"+t.slice(i+1,s):o=t.slice(i+1,s),a=s-i-1;i=s,r=0}else 46===n&&-1!==r?++r:r=-1}return o}var Qn={resolve:function(){for(var t,e="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=process.cwd()),a=t),Hn(a),0!==a.length&&(e=a+"/"+e,n=47===a.charCodeAt(0))}return e=Xn(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(Hn(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=Xn(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return Hn(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];Hn(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":Qn.normalize(t)},relative:function(t,e){if(Hn(t),Hn(e),t===e)return"";if((t=Qn.resolve(t))===(e=Qn.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var r=e.length-i,s=a<r?a:r,l=-1,c=0;c<=s;++c){if(c===s){if(r>s){if(47===e.charCodeAt(i+c))return e.slice(i+c+1);if(0===c)return e.slice(i+c)}else a>s&&(47===t.charCodeAt(n+c)?l=c:0===c&&(l=0));break}var u=t.charCodeAt(n+c);if(u!==e.charCodeAt(i+c))break;47===u&&(l=c)}var d="";for(c=n+l+1;c<=o;++c)c!==o&&47!==t.charCodeAt(c)||(0===d.length?d+="..":d+="/..");return d.length>0?d+e.slice(i+l):(i+=l,47===e.charCodeAt(i)&&++i,e.slice(i))},_makeLong:function(t){return t},dirname:function(t){if(Hn(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,o=-1,a=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');Hn(t);var n,o=0,a=-1,i=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var r=e.length-1,s=-1;for(n=t.length-1;n>=0;--n){var l=t.charCodeAt(n);if(47===l){if(!i){o=n+1;break}}else-1===s&&(i=!1,s=n+1),r>=0&&(l===e.charCodeAt(r)?-1==--r&&(a=n):(r=-1,a=s))}return o===a?a=s:-1===a&&(a=t.length),t.slice(o,a)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!i){o=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":t.slice(o,a)},extname:function(t){Hn(t);for(var e=-1,n=0,o=-1,a=!0,i=0,r=t.length-1;r>=0;--r){var s=t.charCodeAt(r);if(47!==s)-1===o&&(a=!1,o=r+1),46===s?-1===e?e=r:1!==i&&(i=1):-1!==e&&(i=-1);else if(!a){n=r+1;break}}return-1===e||-1===o||0===i||1===i&&e===o-1&&e===n+1?"":t.slice(e,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+o:n+t+o:o}("/",t)},parse:function(t){Hn(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,o=t.charCodeAt(0),a=47===o;a?(e.root="/",n=1):n=0;for(var i=-1,r=0,s=-1,l=!0,c=t.length-1,u=0;c>=n;--c)if(47!==(o=t.charCodeAt(c)))-1===s&&(l=!1,s=c+1),46===o?-1===i?i=c:1!==u&&(u=1):-1!==i&&(u=-1);else if(!l){r=c+1;break}return-1===i||-1===s||0===u||1===u&&i===s-1&&i===r+1?-1!==s&&(e.base=e.name=0===r&&a?t.slice(1,s):t.slice(r,s)):(0===r&&a?(e.name=t.slice(1,i),e.base=t.slice(1,s)):(e.name=t.slice(r,i),e.base=t.slice(r,s)),e.ext=t.slice(i,s)),r>0?e.dir=t.slice(0,r-1):a&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Qn.posix=Qn;var Jn=Qn,Yn=Kn(Jn);t("PluginFactory",class{constructor(){this.urlReg=/^http[s]?:\/\/[^\s]*/,this.cache=new Map,this.pluginCache=new Map,this.pluginCodes=[],this.predefinedPlugins=new Map,this.ignoreRules=[],this.loadQueue=new Map}isIgnore(t){return this.ignoreRules.some((e=>"string"==typeof e?t===e:e.test(t)))}setDevIgnore(t){this.ignoreRules.push(t)}registerPredefinedPlugin(t){this.predefinedPlugins.set(t.name,t)}register(t){this.pluginCodes.forEach((e=>{t.use(e)}))}async loadPredefinedPlugin(t){if(this.predefinedPlugins.has(t)){const e=this.predefinedPlugins.get(t);e&&await this.loadPluginRef(e.name,e.path)}}setPluginCode(t){this.pluginCodes.push(t),Ft.useComponent.callSync(null,t)}async loadPlugin(t){if(!0===t.runtimeObject){const e=t;if(e){const t=e.rtobjectName,n=e.rtobjectRepo;if(this.isIgnore(n))return!0;if(this.pluginCache.has(t))return!0;if(this.loadQueue.has(n)){const t=await this.loadQueue.get(n);try{return await t}catch(t){return!1}}try{const t=this.loadPluginRef(e.rtobjectName,e.rtobjectRepo);this.loadQueue.set(n,t);return await t}catch(t){throw new G(e,ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"))}finally{this.loadQueue.delete(n)}}}return!1}async loadPluginRef(t,e){if(this.isIgnore(e))return!0;if(this.pluginCache.has(t))return!0;let n=null;{const t=e,o=this.urlReg.test(t)?"".concat(t,"/package.json"):"".concat(ibiz.env.pluginBaseUrl,"/").concat(Jn.join(t,"package.json")),a=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:o});if(200!==a.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));n=a.data}const o=new Bt(t,e,n);if(o){await this.loadPluginExternal(o.config);try{return await this.loadScript(o),this.pluginCache.set(t,o),!0}catch(t){ibiz.log.error(t)}}return!1}async loadScript(t){const e=t.repo,{name:n,system:o,styles:a=[]}=t.config;let i="";if(i=Jn.join(e,o),i){if(this.cache.has(i))return;let t=null;const o=this.parseUrl(i),r=("string"==typeof a?[a]:a).map((t=>this.parseUrl(Yn.join(e,t))));if(System.addImportMap({imports:{[n]:o},styles:{[n]:r}}),t=await System.import(n),!t)throw new j(ibiz.i18n.t("vue3Util.plugin.fileContentFormat"));if(!t.default)throw new j(ibiz.i18n.t("vue3Util.plugin.failedRemotePluginLoad"));this.setPluginCode(t.default),this.cache.set(i,!0)}}parseUrl(t,e=ibiz.env.pluginBaseUrl){if(this.urlReg.test(t))return t;let n="";n=this.urlReg.test(e)?t.startsWith("/")?e+t:"".concat(e,"/").concat(t):"".concat(Jn.join(e,t));const{origin:o,pathname:a}=window.location;return a.endsWith("/")&&n.startsWith("/")&&(n=n.substring(1)),!1===this.urlReg.test(n)&&(n="".concat(o).concat(a).concat(n)),n}async loadPluginExternal(t){if(!t["systemjs-importmap"])return;const e=this.handleSystemImportMap(t["systemjs-importmap"]);if(e.packages){const t=e.packages;for(const e in t){const n=t[e],o=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:n});if(200!==o.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));await this.loadPluginExternal(o.data)}}System.addImportMap(e)}handleSystemImportMap(t){if(t){if(t.packages){const e=t.packages;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.imports){const e=t.imports;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.styles){const e=t.styles;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]="string"==typeof o?this.parseUrl(o,t.baseUrl):o.map((e=>this.parseUrl(e,t.baseUrl)))}}return t}return null}});class Zn{constructor(t,e,n){this.required=!0,e&&(this.default=e),n&&(this.validator=n),this.type=t}}function to(){return{value:String,controller:new Zn(Object),data:new Zn(Object),disabled:{type:Boolean},readonly:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},overflowMode:{type:String},controlParams:{type:Object,required:!1}}}function eo(){return{hasError:{type:Boolean}}}function no(){return{...to(),value:[String,Number]}}function oo(){return{...to(),value:Number}}function ao(){return{...to(),value:String}}function io(){return{...to(),value:[String,Number,Object,Array]}}function ro(){return{...to(),value:[String,Number]}}function so(){return{...to(),value:[String,Number]}}function lo(){return{...to(),value:[String,Number]}}function co(){return{...to(),value:[String,Array,Object,Number]}}function uo(){return{...to(),value:[String,Number]}}function po(){return{...to(),value:[String,Number]}}function ho(){return{...to(),value:[String,Number]}}function mo(){return{...to(),value:[String,Number]}}function vo(){return{...to(),value:[String,Number]}}function fo(){return{...to(),value:[String,Number]}}function go(){return{...to(),value:[String,Number,Array]}}function yo(){return{...to(),value:[String,Number]}}function wo(){return{...to(),value:[String,Number]}}function Co(){return{...to(),value:[String,Number]}}function bo(){return{...to(),value:String}}function Io(){return{...to(),value:[String,Number]}}function Po(){return{...to(),value:String,language:{type:String},theme:{type:String}}}function Do(){return{...to(),value:String}}function No(){return{...to(),data:{type:Object,required:!1},controller:{type:Object,required:!1},disabled:{type:Boolean,required:!1}}}function Eo(){return{...to(),value:[Array,Array]}}function Oo(){return{...to(),value:String}}function Ao(){return{...to(),value:String}}t("RequiredProp",Zn);t("en",{vue3Util:{common:{undefined:"undefined",onFoundCorrespondingPart:"Undefined adapter with no corresponding part found",noFoundViewModel:"View model not found",noSupportLoadingDynamic:"{codeName}No entity, do not support loading dynamic models at this time"},control:{unsupportedPanel:"Unsupported panel items: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"No data object name config",noSupportedDataSourceType:"The data source type {dataSourceType} is not supported",noConfiguredEntityLogic:"No entity logic config",noConfiguredEntity:"No entity config",noReturnValue:"The entity logic {appDELogicId} has no return value",noAttribute:"There is no {dataName} attribute in the global variable.",noConfiguredScript:"No javaScript config",noConfiguerdEntityBehanior:"No entity behavior config",sessionView:"The session to which the view is bound does not exist {dataName}",viewStateAttribute:"There is no {dataName} attribute in the view state",noImplementMethod:"Method not implemented.",noProvidedSlot:"No {id} slot provided",cannotEmpty:"{caption} cannot be empty",unadaptedLayout:"Unadapted layout placeholder {layoutPos}",placeholderIdentifier:"The placeholder identifier for panel member {id} of view {viewCodeName} is:"},plugin:{failureConfigurationLoad:"Configuration load failure",failedRemotePluginLoad:"Remote Plugin failed to load, Remote Plugin did not find [default] Default Export",fileContentFormat:"Remote plugin failed to load, file not found or file content format is incorrect"},use:{control:{parameterChanges:"Context or view parameter changes for {id}:",stateChange:"Part [{name}] state change"},focusBlur:{noFocus:"No focus, no out-of-focus triggering"},view:{stateChange:"View [{name}] state change"}},util:{noInjected:"The createVueApp method is not injected.",convertString:"Failed to convert to string",viewIdentifiers:"View identifiers do not exist for {depth} level routes",noFoundView:"View not found {viewCodeName}",routeCorrectly:"Cannot get the route correctly, could be a dependency issue."},view:{redirectionProgress:"Redirection in progress",viewType:"View type {viewType} is not supported yet.",noTeleportTag:"No teleportTag was found for part {name}.",embeddedRedirectionView:"Embedded redirection view does not support url jumping",insufficientRedirection:"Insufficient redirection parameters to jump",toDoList:"To-Do List Redirection"}}}),t("zhCn",{vue3Util:{common:{undefined:"未定义",onFoundCorrespondingPart:"未定义未找到对应部件的适配器",noFoundViewModel:"未找到视图模型",noSupportLoadingDynamic:"{codeName}无实体,暂不支持加载动态模型"},control:{unsupportedPanel:"暂未支持的面板项: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"没有配置数据对象名称",noSupportedDataSourceType:"数据源类型{dataSourceType}暂未支持",noConfiguredEntityLogic:"没有配置实体逻辑",noConfiguredEntity:"没有配置实体",noReturnValue:"实体逻辑{appDELogicId}没有返回值",noAttribute:"全局变量里没有{dataName}属性",noConfiguredScript:"没有配置脚本代码",noConfiguerdEntityBehanior:"没有配置实体行为",sessionView:"绑定视图的会话不存在{dataName}",viewStateAttribute:"视图state里没有{dataName}属性",noImplementMethod:"未执行的方法",noProvidedSlot:"未提供{id}插槽",cannotEmpty:"{caption} 不能为空",unadaptedLayout:"未适配的布局占位{layoutPos}",placeholderIdentifier:"视图{viewCodeName}的面板成员{id}的占位标识是:"},plugin:{failureConfigurationLoad:"配置加载失败",failedRemotePluginLoad:"远程插件加载失败, 远程插件未找到[default]默认导出",fileContentFormat:"远程插件加载失败, 未找到文件或文件内容格式不正确"},use:{control:{parameterChanges:"{id}的上下文或视图参数变更:",stateChange:"部件 [{name}] state 变更"},focusBlur:{noFocus:"没有聚焦,不触发失焦"},view:{stateChange:"视图 [{name}] state 变更"}},util:{noInjected:"没有注入createVueApp方法",convertString:"转换成字符串失败",viewIdentifiers:"第{depth}级路由不存在视图标识",noFoundView:"找不到视图{viewCodeName}",routeCorrectly:"无法正确获取route,可能是依赖问题"},view:{redirectionProgress:"重定向跳转中",viewType:"视图类型{viewType}暂未支持",noTeleportTag:"没有找到部件{name}的teleportTag",embeddedRedirectionView:"嵌入重定向视图不支持url跳转",insufficientRedirection:"重定向参数不足无法跳转",toDoList:"待办列表重定向"}}})}}}));
|
|
1
|
+
System.register(["qx-util","vue","@ibiz-template/core","ramda","@ibiz-template/runtime","vue-router","qs","pinia","lodash-es"],(function(t){"use strict";var e,n,o,a,i,r,s,l,c,d,u,p,h,m,v,f,g,y,w,C,b,I,P,D,E,N,O,A,T,S,x,z,R,L,B,j,V,M,k,U,_,q,F,G,W,$,K,H,Q,X,Y,J,Z,tt,et,nt,ot,at,it,rt,st,lt,ct,dt,ut,pt,ht,mt,vt,ft,gt,yt,wt,Ct,bt,It,Pt,Dt,Et,Nt,Ot,At,Tt,St,xt,zt,Rt,Lt,Bt,jt,Vt,Mt,kt,Ut,_t,qt,Ft,Gt,Wt;return{setters:[function(t){e=t.SyncSeriesHook,n=t.isFunc,o=t.notNilEmpty,a=t.QXEvent,i=t.clearAll,r=t.createUUID},function(t){s=t.watch,l=t.onBeforeUnmount,c=t.createCommentVNode,d=t.getCurrentInstance,u=t.isReactive,p=t.toRaw,h=t.inject,m=t.reactive,v=t.onActivated,f=t.onDeactivated,g=t.ref,y=t.h,w=t.resolveComponent,C=t.provide,b=t.onMounted,I=t.onUnmounted,P=t.defineComponent,D=t.computed,E=t.createVNode,N=t.withDirectives,O=t.resolveDirective,A=t.isVNode,T=t.Teleport,S=t.renderSlot,x=t.onBeforeMount},function(t){z=t.onClickOutside,R=t.NOOP,L=t.listenJSEvent,B=t.Namespace,j=t.RuntimeError,V=t.isBase64Image,M=t.isBase64,k=t.base64ToStr,U=t.isSvg,_=t.fixJsonString,q=t.IBizContext,F=t.ModelError,G=t.RuntimeModelError,W=t.setAppCookie,$=t.CoreConst,K=t.clearAppCookie},function(t){H=t.isNil,Q=t.isNotNil,X=t.clone,Y=t.isEmpty,J=t.mergeLeft},function(t){Z=t.MDControlTypes,tt=t.ViewType,et=t.RouteConst,nt=t.getMatchResPath,ot=t.calcDeCodeNameById,at=t.ScriptFactory,it=t.ViewController,rt=t.getControlProvider,st=t.getErrorViewProvider,lt=t.calcDynaSysParams,ct=t.getViewProvider,dt=t.useCalcOrMode,ut=t.calcThresholdRange,pt=t.PanelItemState,ht=t.PanelItemController,mt=t.registerPanelItemProvider,vt=t.Modal,ft=t.ViewMode,gt=t.OpenAppViewCommand,yt=t.getEditorProvider,wt=t.PanelItemEventName,Ct=t.getAllPanelField,bt=t.isDataContainer,It=t.PanelNotifyState,Pt=t.getPanelItemProvider,Dt=t.convertNavData,Et=t.PanelData,Nt=t.execDELogicById,Ot=t.toLocalOpenWFRedirectView,At=t.getControlsByView,Tt=t.getCtrlTeleportParams,St=t.AppDataUploadViewController,xt=t.registerViewProvider,zt=t.getDERedirectToView,Rt=t.ViewLayoutPanelController,Lt=t.isSimpleDataContainer,Bt=t.registerControlProvider,jt=t.ControlType,Vt=t.PanelController,Mt=t.RemotePluginItem},function(t){kt=t.useRoute,Ut=t.useRouter,_t=t.RouterView},function(t){qt=t.default},function(t){Ft=t.defineStore,Gt=t.createPinia},function(t){Wt=t.isNumber}],execute:function(){t({calcResRoutePath:se,createOverlayView:pe,generateRoutePath:async function(t,e,n,o){const a=ne(e);let i=n.srfdefaulttoroutedepth||2;n.toRouteDepth?(i=n.toRouteDepth,n.toRouteDepth=void 0):ibiz.env.isMob&&"DEFAULT"===ibiz.env.mobMenuShowMode&&(a.pathNodes[0]={viewName:"home"});if(a.pathNodes.splice(i-1,a.pathNodes.length-i+1),n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}ie(n,a.pathNodes),e.fullPath.startsWith("/appredirectview")&&((null==o?void 0:o.srfindexname)?(a.pathNodes[0].viewName=o.srfindexname,delete o.srfindexname):a.pathNodes[0].viewName="index");if(a.pathNodes.push({viewName:t.codeName.toLowerCase(),context:ae(n),params:o}),2===i&&(await se(a,n,t.appDataEntityId,t.appId),re.includes(t.viewType))){const e=ot(t.appDataEntityId);delete a.pathNodes[0].context[e]}return{path:oe(a)}},generateRoutePathByModal:async function(t,e,n,o){const a=ne(e),i=a.pathNodes.findIndex((t=>t.viewName===et.ROUTE_MODAL_TAG));-1!==i&&(a.pathNodes=a.pathNodes.slice(0,i));if(n.currentSrfNav){const t=a.pathNodes[a.pathNodes.length-1];t.params=t.params||{},t.srfnav=n.currentSrfNav,n.currentSrfNav=void 0}return ie(n,a.pathNodes),a.pathNodes.push({viewName:"".concat(et.ROUTE_MODAL_TAG,"/").concat(t.codeName.toLowerCase()),context:ae(n),params:o}),{path:oe(a)}},getArrayProps:Bo,getAutoCompleteProps:xo,getCascaderProps:jo,getCheckboxListProps:go,getCheckboxProps:yo,getCodeProps:zo,getColorPickerProps:Vo,getDataPickerProps:wo,getDatePickerProps:Co,getDateRangeProps:bo,getDrawerPlacement:function(t){return he[t]||"right"},getDropdownProps:fo,getEditorEmits:function(){return{change:(t,e,n)=>!0,blur:t=>!0,focus:t=>!0,enter:t=>!0,infoTextChange:t=>!0}},getEditorProps:co,getGridArrayProps:function(){return{...Bo(),...uo()}},getGridAutoCompleteProps:function(){return{...xo(),...uo()}},getGridCascaderProps:function(){return{...jo(),...uo()}},getGridCheckboxListProps:function(){return{...go(),...uo()}},getGridCheckboxProps:function(){return{...yo(),...uo()}},getGridCodeProps:function(){return{...zo(),...uo()}},getGridColorPickerProps:function(){return{...Vo(),...uo()}},getGridDataPickerProps:function(){return{...wo(),...uo()}},getGridDatePickerProps:function(){return{...Co(),...uo()}},getGridDateRangeProps:function(){return{...bo(),...uo()}},getGridDropdownProps:function(){return{...fo(),...uo()}},getGridEditorCommonProps:uo,getGridEditorEmits:function(){return{change:(t,e,n)=>!0,rowSave:()=>!0}},getGridHtmlProps:function(){return{...Ro(),...uo()}},getGridInputIpProps:function(){return{...mo(),...uo()}},getGridInputNumberProps:function(){return{...ho(),...uo()}},getGridInputProps:function(){return{...po(),...uo()}},getGridListBoxProps:function(){return{...Io(),...uo()}},getGridMarkDownProps:function(){return{...Lo(),...uo()}},getGridNumberRangeProps:function(){return{...Po(),...uo()}},getGridRadioProps:function(){return{...Do(),...uo()}},getGridRateProps:function(){return{...Eo(),...uo()}},getGridRawProps:function(){return{...No(),...uo()}},getGridSliderProps:function(){return{...Oo(),...uo()}},getGridSpanProps:function(){return{...vo(),...uo()}},getGridStepperProps:function(){return{...Ao(),...uo()}},getGridSwitchProps:function(){return{...To(),...uo()}},getGridUploadProps:function(){return{...So(),...uo()}},getHtmlProps:Ro,getInputIpProps:mo,getInputNumberProps:ho,getInputProps:po,getListBoxProps:Io,getMarkDownProps:Lo,getNestedRoutePath:le,getNumberRangeProps:Po,getOrigin:Qt,getOwnRouteContext:ae,getRadioProps:Do,getRateProps:Eo,getRawProps:No,getSliderProps:Oo,getSpanProps:vo,getStepperProps:Ao,getSwitchProps:To,getUploadProps:So,isEmptyVNode:function(t){if(!Array.isArray(t))return t===Yt;return 1===t.length&&t[0]===Yt},onRouteChange:function(t,e){const n=kt();if(!n)throw new j(ibiz.i18n.t("vue3Util.util.routeCorrectly"));s((()=>null==n?void 0:n.path),(()=>{const o=le(n,e);t({currentKey:o,fullPath:n.fullPath})}),{immediate:!0})},openViewDrawer:async function(t,e){const n=ibiz.overlay.createDrawer(pe(t),void 0,e);await n.present();return await n.onWillDismiss()||{ok:!1}},openViewFloatWindow:async function(t,e){const n=ibiz.overlay.createFloatWindow(pe(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewModal:async function(t,e){const n=ibiz.overlay.createModal(pe(t),void 0,e);n.present();return await n.onWillDismiss()||{ok:!1}},openViewPopover:async function(t,e,n){const o=ibiz.overlay.createPopover(pe(e),void 0,n);o.present(t.target);return await o.onWillDismiss()||{ok:!1}},parseRouteViewData:async function(t,e,n=!1){var a;const i=ne(t,n);let r=i.pathNodes[e-1].viewName;if(!r)throw new j(ibiz.i18n.t("vue3Util.util.viewIdentifiers",{depth:e}));r===et.ROUTE_MODAL_TAG&&(r=i.pathNodes[e].viewName);"index"===r&&(r=ibiz.hub.defaultAppIndexViewName);const s=await ibiz.hub.config.view.get(r);if(!s)throw new j(ibiz.i18n.t("vue3Util.util.noFoundView",{viewCodeName:r}));const l={};(null==(a=ibiz.appData)?void 0:a.context)&&Object.assign(l,ibiz.appData.context);i.appContext&&Object.assign(l,i.appContext);if(1!==e)for(let t=0;t<e;t++){const n=i.pathNodes[t];o(n.context)&&Object.assign(l,n.context),t!==e-1||n.context&&!H(n.context.srfnavctrlid)||delete l.srfnavctrlid}const{params:c,srfnav:d}=i.pathNodes[e-1];return{viewConfig:s,context:l,params:c,srfnav:d}},prepareControl:function(t){const e=ee("control"),{controlType:n,sysCss:o,codeName:a}=t.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=ee("control-".concat(i)),l=[e.b(),e.b(i),e.m(a)];r&&l.push(r);return{controlClass:l,ns:s}},renderString:function(t){if(H(t))return"";if("string"==typeof t)return t;if("object"==typeof t)return JSON.stringify(t);try{return t.toString()}catch(e){ibiz.log.error(t,ibiz.i18n.t("vue3Util.util.convertString"),e)}return""},route2routePath:ne,routePath2string:oe,useAutoFocusBlur:function(t,e){return{useInFocusAndBlur:()=>{t.autoFocus||e("blur")},useInValueChange:()=>{t.autoFocus&&e("blur")}}},useClickOutside:Kt,useCodeListListen:function(t,e,n){let o;b((async()=>{if(t){const a=await ibiz.hub.getApp(e);o=await a.codeList.getCodeListInstance(t),o&&o.onChange(n)}})),I((()=>{o&&o.offChange(n)}))},useControlController:Zt,useController:function(t){t.force=Xt()},useCtx:Jt,useEventListener:te,useFocusAndBlur:function(t,e){const n=g(),o=g(!1);let a;const i=()=>{o.value||ibiz.log.debug(ibiz.i18n.t("vue3Util.use.focusBlur.noFocus")),e(),a.stop(),o.value=!1};return te(n,"click",(e=>{o.value||(a=Kt(n,(()=>{i()})),o.value=!0,t())}),{capture:!0}),{componentRef:n,isFocus:o,doBlur:i,pause:()=>{a&&a.pause()},stop:()=>{a&&a.stop()}}},useForce:Xt,useForceTogether:function(t,e){const n=e.force,o=Xt();e.force=t=>{n(t),o()}},useLocalCacheKey:function(t,e,n,o="@"){const a=Ut();return()=>{if(!a)return;const i=t.srfuserid,r=ne(a.currentRoute.value);if(n=t.srfdefaulttoroutedepth||n,i&&n&&r.pathNodes[n-2]){r.pathNodes=r.pathNodes.slice(0,n-1),r.pathNodes.forEach((t=>{t.context&&delete t.context.srfnavctrlid}));const t=oe(r);return"".concat(e).concat(o).concat(i).concat(o).concat(t)}}},useMobCtx:function(){return h("ctx")},useNamespace:ee,useProps:Ht,usePropsWatch:function(t,e,n){const o=Ht();Object.prototype.hasOwnProperty.call(o,t)&&(s((()=>o[t]),((t,n)=>{e(Qt(t),Qt(n))}),n),e(Qt(o[t]),void 0))},useRouteKey:function(t,e,n){n||(n=g(""));n.value=t.value;const o=new ce(e);return s(t,((t,e)=>{t!==e&&o.nextChange((()=>{n.value=t}))})),n},useRouterQuery:function(){const t=kt(),{query:e}=t;return e},useViewController:ve,useViewOperation:fe});class $t{}function Kt(t,e,n={}){let o=R,a=R,i=R;const r=()=>{o(),o=R,a=R,i=R};return s(t,((t,s)=>{if(t!==s)if(H(t))r();else{const r=z((null==t?void 0:t.$el)||t,e,n);o=r.stop,a=r.pause,i=r.proceed}}),{immediate:!0}),l((()=>{o!==R&&r()})),{stop:()=>o(),pause:()=>a(),proceed:()=>i()}}function Ht(){return d().proxy.$props}function Qt(t){return u(t)?p(t):t}function Xt(){const t=d().proxy;return e=>{t.$forceUpdate(),e&&n(e)&&t.$nextTick((()=>{e()}))}}t("AppHooks",$t),$t.createApp=new e,$t.useComponent=new e;const Yt=t("EmptyVNode",c("EmptyVNode"));function Jt(){return h("ctx")}function Zt(t,e){const n=Jt(),o=Ht();n.evt.emit("onForecast",o.modelData.name);const a=o.provider;let i;i=(null==a?void 0:a.createController)?a.createController(o.modelData,o.context,o.params,n):t(o.modelData,o.context,o.params,n),-1!==Z.indexOf(i.model.controlType)&&ibiz.util.record.add(i.ctrlId,i),function(t,e){s((()=>({context:t.context,params:t.params})),((t,n)=>{if(t===n)return;const o={...t};t.context===n.context&&delete o.context,t.params===n.params&&delete o.params,e.updateContextParams(o),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(o,i),function(t,e,n=[]){const o=["context","params","modelData",...n];s((()=>{const e={};return Object.keys(t).forEach((n=>{o.includes(n)||(e[n]=t[n])})),e}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{void 0!==o[t]&&(e.state[t]=o[t])}))}),{immediate:!0})}(o,i,null==e?void 0:e.excludePropsKeys),i.state=m(i.state),v((()=>i.onActivated())),f((()=>i.onDeactivated())),i.force=Xt();const r=d().proxy;return i.evt.onAll(((t,e)=>{r.$emit(t.slice(2),e)})),r.$emit("controllerAppear",i),i.created(),l((()=>{i.destroyed(),-1!==Z.indexOf(i.model.controlType)&&ibiz.util.record.remove(i.ctrlId)})),i}function te(t,e,n,o={}){let a=R;return s(t,((t,i)=>{t!==i&&(H(t)?(a(),a=R):a=L((null==t?void 0:t.$el)||t,e,n,o))}),{immediate:!0}),l((()=>{a!==R&&a()})),()=>{a()}}function ee(t){return new B(t,ibiz.env.namespace)}function ne(t,e=!1){const n=t.matched.length;let o=t.path;e&&(o=o.replace(new RegExp("/".concat(et.ROUTE_MODAL_TAG),"g"),""));const a=o.split("/"),i=[];for(let e=1;e<=n;e++){const n=a[2*e],o=t.params["params".concat(e)];let r,s,l;r=o&&o!==ibiz.env.routePlaceholder?qt.parse(o,{strictNullHandling:!0,delimiter:";",depth:8}):void 0,r&&(1===e?(s=r,r=void 0):(r.srfnavctx&&(s=JSON.parse(decodeURIComponent(r.srfnavctx)),delete r.srfnavctx),r.srfnav&&(l=r.srfnav,delete r.srfnav))),i.push({viewName:n,context:s,params:r,srfnav:l})}let r;return t.params.appContext&&t.params.appContext!==ibiz.env.routePlaceholder&&(r=qt.parse(t.params.appContext,{strictNullHandling:!0,delimiter:";"})),{appContext:r,pathNodes:i}}function oe(t){let e="";return t.appContext?e+="/".concat(qt.stringify(t.appContext,{delimiter:";",strictNullHandling:!0})):e+="/".concat(ibiz.env.routePlaceholder),t.pathNodes.forEach(((t,n)=>{e+="/".concat(t.viewName,"/");let a={};if(0===n)o(t.context)&&(a=t.context);else{if(a=o(t.params)?t.params:{},o(t.context)){const e=JSON.stringify(t.context);"{}"!==e&&(a.srfnavctx=encodeURIComponent(e))}t.srfnav&&(a.srfnav=t.srfnav)}const i=qt.stringify(a,{delimiter:";",strictNullHandling:!0,skipNulls:!0});o(i)?e+=i:e+=ibiz.env.routePlaceholder})),e}function ae(t){const e=t.getOwnContext(),n=["srfsessionid","srfappid","currentSrfNav","toRouteDepth"];return Object.keys(e).forEach((t=>{(n.includes(t)||H(e[t]))&&delete e[t]})),e}function ie(t,e){let n=-1;e&&e.length>0&&(n=e.findIndex((t=>{var e;return!0===(null==(e=t.context)?void 0:e.srfreadonly)}))),t.srfreadonly&&!t.getOwnContext().srfreadonly&&-1===n&&(t.srfreadonly=!0)}const re=t("excludeViewTypes",[tt.DE_GRID_VIEW,tt.DE_GRID_EXP_VIEW,tt.DE_LIST_VIEW,tt.DE_LIST_EXP_VIEW,tt.DE_DATA_VIEW,tt.DE_DATAVIEW_EXP_VIEW,tt.DE_CALENDAR_VIEW,tt.DE_CALENDAR_EXP_VIEW,tt.DE_CHART_VIEW,tt.DE_CHART_EXP_VIEW,tt.DE_KANBAN_VIEW]);async function se(t,e,n,o){if(n){const a=await ibiz.hub.getAppDataEntity(n,o);let i=nt(e,a);if(i||(i={path:"",keys:[a.codeName.toLowerCase()]}),i){const n=t.pathNodes[1].context,o={};i.keys.forEach((t=>{e&&Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t],n&&delete n[t])})),t.pathNodes[0].context=o}}else t.pathNodes[0].context=void 0}function le(t,e,n=!0){if(t.matched.length<e)return"";if(t.matched.length===e&&t.name)return t.path;const o=ne(t);if(o.pathNodes.length<e)return t.path;o.pathNodes.length>e&&(o.pathNodes=o.pathNodes.slice(0,e));const a=o.pathNodes[e-1];return n&&delete a.srfnav,a.context&&delete a.context.srfnavctrlid,oe(o)}class ce{constructor(t,e){this.callbacks=[],this.timers=[],this.wait=500,e&&(this.wait=e),s((()=>t.path),((t,e)=>{if(t!==e){if(this.callbacks.length)for(let t=0;t<this.callbacks.length;t++){(0,this.callbacks[t])()}if(this.callbacks=[],this.timers.length)for(let t=0;t<this.timers.length;t++){const e=this.timers[t];clearTimeout(e)}this.timers=[]}}))}nextChange(t){t&&(this.timers.push(setTimeout((()=>{t();const e=this.callbacks.findIndex((e=>e===t));this.callbacks.splice(e,1)}),this.wait)),this.callbacks.push(t))}}t("RouteListener",ce);const de=t("withInstall",((t,e)=>(t.install=t=>{e(t)},t)));t("hasEmptyPanelRenderer",(t=>{const e=null==t?void 0:t.model.controlRenders;return!(!e||0===e.length)&&!!e.find((t=>"emptypanel"===t.id))}));class ue{constructor(t,e,n){this.component=t,this.render=e,this.opts=n,this.evt=new a,this.init()}static createVueApp(t,e){throw new j(ibiz.i18n.t("vue3Util.util.noInjected"))}init(){const t=this,{render:e,opts:n}=this,o=document.createElement("div");document.body.appendChild(o);const a=ue.createVueApp({mounted(){t.modal=this.$refs.root},unmounted(){document.body.removeChild(o),t.evt.emit("dismiss",t.result)},render:()=>y(t.component,{ref:"root",opts:n,onDismiss(e){t.result=e,a.unmount()}},{default:e})});ibiz.plugin.register(a),a.mount(o),this.vm=a}async present(){return this.modal.present()}async dismiss(t){await this.modal.dismiss(t)}async onWillDismiss(){return new Promise((t=>{const e=n=>{t(n),this.evt.off("dismiss",e)};this.evt.on("dismiss",e)}))}}t("OverlayContainer",ue);function pe(t){return e=>{const n=w("IBizViewShell");return y(n,{...t,modal:e})}}t("OverlayPopoverContainer",class extends ue{present(t){return this.modal.present(t)}});const he={DRAWER_LEFT:"left",DRAWER_RIGHT:"right",DRAWER_TOP:"top",DRAWER_BOTTOM:"bottom"};class me{constructor(t,e){this.from=t,this.to=e,this.isActivated=!1,ibiz.log.debug("openRouter: ",t,e)}onWillDismiss(){return this.promise||(this.promise=new Promise((t=>{this.resolve=t}))),this.promise.then((t=>(ibiz.log.debug("onWillDismiss: ",this.from,this.to,t),t)))}close(t){ibiz.log.debug("closeRouter: ",this.from,this.to,t),this.resolve&&(this.resolve(t),this.resolve=void 0)}active(){ibiz.log.debug("activeRouter: ",this.from,this.to),this.isActivated=!0}destroy(){ibiz.log.debug("destroyRouter: ",this.from,this.to),this.resolve&&(this.resolve({ok:!1}),this.resolve=void 0)}}t("routerCallback",new class{constructor(){this.map=new Map}async open(t,e,n={}){const o=t.currentRoute.value.fullPath;n.replace?t.replace({path:e}):t.push({path:e});const a=e;if(this.map.has(a)){return this.map.get(a).onWillDismiss()}const i=new me(o,a);return this.map.set(a,i),this.scheduledDestruction(i),i.onWillDismiss()}close(t,e){const n=this.map.get(t);n&&(window.clearTimeout(n.timeout),n.timeout=void 0,n.close(e),this.map.delete(t))}active(t){const e=this.map.get(t);e&&(window.clearTimeout(e.timeout),e.timeout=void 0,e.active())}scheduledDestruction(t){t.timeout=window.setTimeout((()=>{t.timeout=void 0,t.destroy(),this.map.delete(t.to)}),6e5)}}),t("useAppStore",Ft("appStore",(()=>({appStore:m({})}))));t("useUIStore",Ft("uiStore",(()=>{const t=function(){const t=g(500);return{zIndex:t,increment:function(){return t.value+=1,t.value},decrement:function(){t.value-=1}}}(),e=()=>ibiz.util.theme.getTheme().includes("dark")?"dark":"light",n=m({zIndex:t.zIndex,theme:e()});return ibiz.util.theme.evt.on("onChange",(()=>{n.theme=e()})),{UIStore:n,zIndex:t}}))),t("piniaInstance",Gt());function ve(t){const e=Ht(),n=h("ctx",void 0);null==n||n.evt.emit("onForecast",e.modelData.name);const o=e.provider;let a;a=(null==o?void 0:o.createController)?o.createController(e.modelData,e.context,e.params,n):t(e.modelData,e.context,e.params,n),ibiz.util.viewStack.add(a.id,a),function(t,e){s((()=>({context:t.context,params:t.params})),(t=>{e.context.reset({},t.context),i(e.params),Object.assign(e.params,t.params),e.handleContextParams(),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.control.parameterChanges",{id:e.model.id}),t)}))}(e,a),function(t,e){s((()=>t.state?{...t.state}:{}),((t,n)=>{const o={};Object.keys(t).forEach((e=>{t[e]!==(n||{})[e]&&(o[e]=t[e])})),ibiz.log.debug(ibiz.i18n.t("vue3Util.use.view.stateChange",{name:e.model.name}),o),Object.keys(o).forEach((t=>{e.state[t]=o[t]}))}),{immediate:!0})}(e,a),C("ctx",a.ctx),a.state=m(a.state),a.slotProps=m(a.slotProps),e.modal&&(a.modal=e.modal),v((()=>{a.onActivated(),ibiz.util.viewStack.active(a.id)})),f((()=>{a.onDeactivated(),ibiz.util.viewStack.deactivate(a.id)})),a.force=Xt();const r=d().proxy;return a.evt.onAll(((t,e)=>{r.$emit(t.slice(2),e)})),a.created(),l((()=>{a.destroyed(),ibiz.util.viewStack.remove(a.id)})),a}function fe(t){let e=[];b((()=>{const n=document.getElementById(t.id);n&&(e=["keydown","click"].map((e=>L(n,e,(e=>{t.setOperateState("MANUAL")})))))})),I((()=>{e&&e.length>0&&e.forEach((t=>{t()}))}))}t("IBizIcon",P({name:"IBizIcon",props:{icon:{type:Object},size:{type:String},baseDir:{type:String,default:"images"}},setup(t){const e=ee("icon"),n="".concat(ibiz.env.assetsUrl,"/").concat(t.baseDir,"/");const o=D((()=>function(t){if(t){if(t.htmlStr)return E("span",{class:e.b(),innerHTML:t.htmlStr},null);if(t.cssClass)return-1!==t.cssClass.indexOf("fa-")||-1!==t.cssClass.indexOf("theme-icon")?E("i",{class:[e.b(),t.cssClass]},null):E("ion-icon",{class:e.b(),name:t.cssClass},null);if(t.imagePath)return V(t.imagePath)?E("img",{class:e.b(),src:t.imagePath},null):M(t.imagePath)?E("div",{class:[e.b(),e.e("emoji")]},[k(t.imagePath)]):U(t.imagePath)?E("div",{class:e.b(),innerHTML:t.imagePath},null):t.imagePath.endsWith("svg")?t.imagePath.startsWith("http")?E("img",{class:e.b(),src:t.imagePath},null):E("ion-icon",{src:n+t.imagePath,class:e.b()},null):t.imagePath.startsWith("http")?E("img",{class:e.b(),src:t.imagePath},null):E("img",{class:e.b(),src:n+t.imagePath},null);if(t.rawContent)return U(t.rawContent)?E("div",{class:e.b(),innerHTML:t.rawContent},null):E("img",{class:e.b(),src:t.rawContent},null)}return null}(t.icon)));return()=>o.value}})),t("IBizRouterView",P({name:"IBizRouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object,manualKey:{type:String}},setup(t,{attrs:e}){const n={};let o=!0;s((()=>t.manualKey),((t,e)=>{Q(t)&&t!==e&&(o=!0)}));return{renderComp:(a,i)=>{if(!o)return n.vNode;if(o=!1,a){const o={...a.props};delete o.onVnodeUnmounted,delete o.ref;const i=y(a.type,{...o,...e,key:t.manualKey});return n.vNode=i,i}}}},render(){return E(w("router-view"),{name:this.name,route:this.route},{default:({Component:t,route:e})=>{const n=this.renderComp(t,e);return this.$slots.default?this.$slots.default({Component:n,route:e}):n}})}})),t("IBizControlBase",P({name:"IBizControlBase",props:{controller:{type:Object,required:!0}},setup(t){const e=ee("control"),{controlType:n,sysCss:o,codeName:a}=t.controller.model,i=n.toLowerCase(),r=null==o?void 0:o.cssName,s=t.controller.model,l=t.controller.model.controls,c=m({});!1===s.controlType.endsWith("EXPBAR")&&(H(s.width)||(s.width>0&&s.width<=1?c.width="".concat(100*s.width,"%"):c.width="".concat(s.width,"px")),H(s.height)||(s.height>0&&s.height<=1?c.width="".concat(100*s.height,"%"):c.height="".concat(s.height,"px")));const d=async(e,n)=>{e.stopPropagation();const o=e.target.getAttribute(n),a=e.target.getAttribute("data"),i=t.controller.context.clone(),r=e.target.getAttribute("context");r&&Object.assign(i,_(r));const s={...t.controller.params},l=e.target.getAttribute("params");l&&Object.assign(s,_(l)),o&&await at.asyncExecScriptFn({...t.controller.getEventArgs(),context:i,params:s,data:a?_(a):null},o)},u=D((()=>(n=>{var o,a;const i=s.controlRenders?s.controlRenders.filter((t=>"emptypanel"!==t.id)):void 0;if(!i||0===i.length)return;const r=i[0];if("LAYOUTPANEL_MODEL"===r.renderType&&r.layoutPanelModel){const a=at.execScriptFn({...t.controller.getEventArgs(),data:n},r.layoutPanelModel,{isAsync:!1});return E("div",{innerHTML:a,onClick:t=>d(t,"click"),onDblclick:t=>d(t,"dbclick"),class:[e.e("control-render"),e.e(null==(o=r.renderName)?void 0:o.toLowerCase())]},null)}return"LAYOUTPANEL"===r.renderType&&r.layoutPanel?E(w("iBizControlShell"),{class:[e.e("control-render"),e.e(null==(a=r.renderName)?void 0:a.toLowerCase())],data:n,params:t.controller.params,context:t.controller.context,modelData:r.layoutPanel},null):void 0})(t.controller.data||t.controller.items)));return{ns:e,typeClass:i,sysCssName:r,inlineStyle:c,codeName:a,controls:l,customRender:u,onLayoutPanelCreated:e=>{t.controller.setLayoutPanel(e)}}},render(){var t,e,n;const{state:o,controlPanel:a,providers:i}=this.controller;let r=null;if(o.isCreated&&a){const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name,o={context:this.controller.context,params:this.controller.params},a=e[n];e[n]=a?()=>a(o):()=>{const e=w("IBizControlShell");return y(e,{modelData:t,...o})}}));const n=i[a.name];r=y(w(n.component),{modelData:a,context:this.controller.context,params:this.controller.params,provider:n,container:this.controller,onControllerAppear:this.onLayoutPanelCreated},e)}return E("div",{class:[this.ns.b(),this.ns.b(this.typeClass),this.ns.m(this.codeName),this.sysCssName],style:this.inlineStyle},[r||this.customRender||(null==(n=(e=this.$slots).default)?void 0:n.call(e))])}})),t("IBizControlShell",P({name:"IBizControlShell",props:{modelData:{type:Object,required:!0}},setup(t){const e=h("ctx");if(e)e.evt.emit("onForecast",t.modelData.name);else{const t={name:"AppView",id:"AppView",viewType:tt.DE_CUSTOM_VIEW,appId:ibiz.env.appId};C("ctx",new it(t,q.create({})).ctx)}const n=g(!1),o=g(""),a=g();rt(t.modelData).then((t=>{t?a.value=t:o.value=ibiz.i18n.t("vue3Util.common.onFoundCorrespondingPart"),n.value=!0})).catch((t=>{ibiz.log.error(t),o.value=t.message,n.value=!0}));return{ns:ee("control-shell"),isComplete:n,errMsg:o,provider:a}},render(){return this.isComplete&&this.provider?y(w(this.provider.component),{provider:this.provider,...this.$props,...this.$attrs},this.$slots):N(E("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[O("loading"),!this.isComplete]])}})),t("IBizViewShell",P({name:"IBizViewShell",props:{context:{type:Object,required:!0},params:{type:Object},modelData:{type:Object},viewId:{type:String}},setup(t,{attrs:e}){const n=ee("view-shell"),o=g(!1),a=g(""),i=g(),l=g(),c=g(!0),d=g(t.context),u=g(t.params||{});let p="";s((()=>({context:t.context,params:t.params})),(t=>{d.value=t.context,u.value=t.params?t.params:{}}));let h;const m=t=>{const e=X(t);return e.srfdatatype&&delete e.srfdatatype,JSON.stringify(e)},v=async()=>{try{if(await(async()=>{h=t.modelData?t.modelData:await ibiz.hub.getAppView(t.viewId)})(),!h)throw new j(ibiz.i18n.t("vue3Util.common.noFoundViewModel"));if(c.value=await(async t=>{let e=!0;const{accUserMode:n,accessKey:o}=t,a=ibiz.auth.getAuthInfo();if(void 0!==n)switch(n){case 1:a&&(e=!1);break;case 2:a||(e=!1);break;case 4:o&&((await ibiz.hub.getApp(d.value.srfappid)).authority.calcByResCode(o)||(e=!1))}return e})(h),!c.value)return;if(1===h.dynaSysMode){const t=h.appDataEntityId;if(!t)throw new j(ibiz.i18n.t("vue3Util.common.noSupportLoadingDynamic",{codeName:h.codeName}));const e=await lt(t,d.value,{viewParams:u.value,appId:h.appId});if(u.value.srfdatatype&&(e.srfdatatype=u.value.srfdatatype),u.value.srfwftag)e.srfwftag=u.value.srfwftag;else if(t&&h.enableWF&&e.srfkey){const n=H(d.value.srfsessionid)||Y(d.value.srfsessionid),o=r();if(n){const t=ibiz.uiDomainManager.create(o);d.value.srfsessionid=t.id}const a=ibiz.hub.getApp(h.appId),i=await a.deService.getService(d.value,t),s=await i.get(d.value,u.value||{});if(s.ok&&s.data){const{srfwftag:t,processdefinitionkey:n,taskdefinitionkey:o}=s.data;t&&(e.srfwftag=t),["DEWFDYNAEDITVIEW3","DEWFDYNAEDITVIEW"].includes(h.viewType)&&(H(u.value.processDefinitionKey)&&(u.value.processDefinitionKey=n),H(u.value.taskDefinitionKey)&&(u.value.taskDefinitionKey=o))}n&&(ibiz.uiDomainManager.destroy(o),d.value.srfsessionid="")}if(m(e)===p)return void setTimeout((()=>{o.value=!0}));l.value=await ibiz.hub.loadAppView(h.appId,h.id,e),p=m(e)}else l.value=h;i.value=await ct(h)}catch(t){ibiz.log.error(t),a.value=t.message}finally{o.value=!0}};v();return{ns:n,errMsg:a,provider:i,isComplete:o,hasAuthority:c,viewModelData:l,redrawView:async t=>{o.value=!1;const{redrawData:n}=t,{isReloadModel:a}=n;Object.assign(d.value,n.context),Object.assign(u.value,n.params);const i=e.modal;i&&(i.hooks.shouldDismiss.clear(),i.hooks.beforeDismiss.clear()),a?await v():setTimeout((()=>{o.value=!0}))},curContext:d,curParams:u}},render(){if(this.isComplete&&this.provider&&this.hasAuthority)return y(w(this.provider.component),{context:this.curContext,params:this.curParams,modelData:X(this.viewModelData),...this.$attrs,provider:this.provider,onRedrawView:this.redrawView},this.$slots);if(!this.hasAuthority){const t=st("403");if(t)return"string"==typeof t.component?y(w(t.component)):y(t.component)}return N(E("div",{class:this.ns.b()},[this.isComplete?this.errMsg:null]),[[O("loading"),!this.isComplete]])}})),t("IBizCodeList",P({name:"IBizCodeList",props:{codeListItems:{type:Array},codeList:{type:Object,required:!0},value:{type:[String,Number]},convertToCodeItemText:{type:Boolean,default:!0},valueFormat:{type:String},unitName:{type:String},showMode:{type:String,default:"DEFAULT"}},emits:{infoTextChange:t=>!0},setup(t,{emit:e}){var n,o;const a=ee("code-list"),i=g([]),r=(null==(n=t.codeList)?void 0:n.textSeparator)||"、",l=(null==(o=t.codeList)?void 0:o.valueSeparator)||",",c=D((()=>t.codeList&&t.codeList.orMode?t.codeList.orMode:"STR")),d=dt(c.value);s(i,(t=>{let n="";t.length>0&&(n=t.map((t=>t.text)).join(r)),e("infoTextChange",n)}));const u=(e,n)=>{if(e){const{thresholdGroup:o}=t.codeList;if(o&&Wt(Number(n))){const t=ut(e,Number(n));if(t)return t}const a=e.find((t=>t.value==n));if(a)return a;for(let t=0;t<e.length;t++){const o=u(e[t].children,n);if(o)return o}}};s([()=>t.codeListItems,()=>t.value],(([e,n],[o,a])=>{if(H(n)||""===n)i.value=[];else{let o=[];const{getSelectArray:a}=d,r=a(n,t.codeList,e,l,t.codeList.codeItemValueNumber);r&&(o=r),i.value=o.map((n=>{const o=u(e,n);let a=n;if(t.convertToCodeItemText&&(null==o?void 0:o.text))a=o.text;else{const{valueFormat:e,unitName:n}=t;e&&(a=ibiz.util.text.format("".concat(a),e)),n&&(a+=n)}return{text:a,color:null==o?void 0:o.color,textCls:null==o?void 0:o.textCls,sysImage:null==o?void 0:o.sysImage}}))}}),{immediate:!0});const p=t.codeList.emptyText!==ibiz.i18n.t("vue3Util.common.undefined")&&t.codeList.emptyText?t.codeList.emptyText:ibiz.config.common.emptyText;return{items:i,ns:a,emptyText:p,textSeparator:r}},render(){return E("span",{class:this.ns.b()},[0===this.items.length?this.emptyText:this.items.map(((t,e)=>[0!==e?this.textSeparator:null,E("span",{class:[this.ns.e("item"),t.textCls?t.textCls:null],style:t.color?this.ns.cssVarBlock({"item-color":"".concat(t.color)}):null},["TEXT"!==this.showMode&&t.sysImage&&E(w("iBizIcon"),{icon:t.sysImage},null),"ICON"!==this.showMode&&t.text])]))])}})),t("ControlLoadingPlaceholder",P({name:"ControlLoadingPlaceholder",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup:t=>(h("ctx").evt.emit("onForecast",t.modelData.name),{}),render:()=>null})),t("IBizBadge",P({name:"IBizBadge",props:{value:{type:Number,required:!0},type:{type:String,default:"danger"},max:{type:Number,default:99},counterMode:{type:Number}},setup:()=>({ns:ee("badge")}),render(){if((this.value||0===this.value)&&!(1===this.counterMode&&this.value<=0))return E("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.value>this.max?"".concat(this.max,"+"):this.value])}})),t("IBizCustomRender",P({name:"IBizCustomRender",props:{controller:{type:Object,required:!0}},setup(t){const e=ee("custom-render"),n=async(e,n)=>{e.stopPropagation();const o=e.target.getAttribute(n),a=e.target.getAttribute("data"),i=t.controller.context.clone(),r=e.target.getAttribute("context");r&&Object.assign(i,_(r));const s={...t.controller.params},l=e.target.getAttribute("params");l&&Object.assign(s,_(l)),o&&await at.asyncExecScriptFn({...t.controller.getEventArgs(),context:i,params:s,data:a?_(a):null},o)};return{ns:e,getControlRender:()=>{var o,a,i;const r=null==(o=t.controller)?void 0:o.model.controlRenders;if(!r||0===r.length)return;const s=r.find((t=>"emptypanel"===t.id));if(s){if("LAYOUTPANEL_MODEL"===s.renderType&&s.layoutPanelModel){const o=at.execScriptFn({...t.controller.getEventArgs()},s.layoutPanelModel,{isAsync:!1});return E("div",{innerHTML:o,onClick:t=>n(t,"click"),onDblclick:t=>n(t,"dbclick"),class:[e.b(),e.e(null==(a=s.renderName)?void 0:a.toLowerCase())]},null)}return"LAYOUTPANEL"===s.renderType&&s.layoutPanel?E(w("iBizControlShell"),{class:[e.b(),e.e(null==(i=s.renderName)?void 0:i.toLowerCase())],params:t.controller.params,context:t.controller.context,modelData:s.layoutPanel},null):void 0}}}},render(){return this.getControlRender()}}));class ge extends pt{}t("PanelContainerState",ge);class ye extends ht{createState(){var t;return new ge(null==(t=this.parent)?void 0:t.state)}}function we(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("PanelContainerController",ye);const Ce=P({name:"IBizPanelContainer",props:{modelData:{type:Object,required:!0},controller:{type:ye,required:!0}},setup(t){const e=ee("panel-container"),{id:n}=t.modelData,o=D((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o}));return{ns:e,classArr:o}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],a=E(w("iBizRow"),{slot:"content",layout:this.modelData.layout},we(n=o.map((t=>{const e=t.props;return e&&e.controller?E(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},we(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});return E("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[this.controller.model.cssStyle?E("style",{type:"text/css"},[this.controller.model.cssStyle]):null,a])}});class be{constructor(){this.component="IBizPanelContainer"}async createController(t,e,n){const o=new ye(t,e,n);return await o.init(),o}}t("IBizPanelContainer",de(Ce,(function(t){t.component(Ce.name,Ce),mt("CONTAINER",(()=>new be)),mt("CONTAINER_DEFAULT",(()=>new be))})));const Ie=P({name:"IBizPanelCtrlPos",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){h("ctx").evt.on("onRegister",((e,n)=>{e===t.modelData.id&&t.controller.bindControl(n)}));return{ns:ee("panel-ctrl-pos")}},render(){const{state:t}=this.controller;let e;return this.$slots.default&&(e=this.$slots.default()),E("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!t.visible)]},[e||(ibiz.env.dev?ibiz.i18n.t("vue3Util.panelComponent.noProvidedSlot",{id:this.modelData.id}):"")])}});class Pe extends ht{bindControl(t){this.control=t,t.evt.onAll(((t,e)=>{this.panel.evt.emit("onControlEvent",{triggerControlName:this.model.id,triggerEventName:t,triggerEvent:e})}))}}t("PanelCtrlPosController",Pe);class De{constructor(){this.component="IBizPanelCtrlPos"}async createController(t,e,n){const o=new Pe(t,e,n);return await o.init(),o}}t("IBizPanelCtrlPos",de(Ie,(function(t){t.component(Ie.name,Ie),mt("CTRLPOS",(()=>new De))})));class Ee extends ht{}function Ne(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("ScrollContainerItemController",Ee);const Oe=t("ScrollContainerItem",P({name:"IBizScrollContainerItem",props:{modelData:{type:Object,required:!0},controller:{type:Ee,required:!0}},setup(t){const e=ee("scroll-container-item"),{id:n}=t.modelData,o=D((()=>[e.b(),e.m(n),e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return E(w("iBizRow"),{class:this.classArr,layout:{layout:"FLEX"}},Ne(n=o.map((t=>{const e=t.props;return e&&e.controller?(e.modelData.layoutPos.layout="FLEX",E(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},Ne(t)?t:{default:()=>[t]})):t})))?n:{default:()=>[n]})}}));class Ae{constructor(){this.component="IBizScrollContainerItem"}async createController(t,e,n){const o=new Ee(t,e,n);return await o.init(),o}}class Te extends ht{async onInit(){await super.onInit(),this.state.layout.width="100%",this.state.layout.height="100%"}}t("ScrollContainerController",Te);const Se=t("ScrollContainer",P({name:"IBizScrollContainer",props:{modelData:{type:Object,required:!0},controller:{type:Te,required:!0}},setup(t){const e=ee("scroll-container"),{id:n}=t.modelData,o=D((()=>[e.b(),e.m(n),...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)]));return{ns:e,classArr:o}},render(){var t,e;let n=null,o=null,a=null,i=null,r=null;const s={};((null==(e=(t=this.$slots).default)?void 0:e.call(t))||[]).forEach((t=>{const e=t.props;if(!e||!e.controller)return;const{width:l,height:c}=e.controller.state.layout;switch(e.modelData.layoutPos.layoutPos){case"WEST":n=t,s.left={width:l};break;case"EAST":a=t,s.right={width:l};break;case"NORTH":o=t,s.top={height:c};break;case"SOUTH":i=t,s.bottom={height:c};break;case"CENTER":r=t;break;default:ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.unadaptedLayout",{layoutPos:e.modelData.layoutPos.layoutPos}))}}));for(const t in s)(s[t].width||s[t].height)&&(s[t].flexShrink=0);return E("div",{class:this.classArr},[E("div",{class:[this.ns.e("header")],style:s.top},[o]),E("div",{class:[this.ns.b("content")]},[E("div",{class:this.ns.be("content","left"),style:s.left},[n]),E("div",{class:this.ns.be("content","center")},[r]),E("div",{class:this.ns.be("content","right"),style:s.right},[a])]),E("div",{class:[this.ns.e("footer")],style:s.bottom},[i])])}}));class xe{constructor(){this.component="IBizScrollContainer"}async createController(t,e,n){const o=new Te(t,e,n);return await o.init(),o}}t("IBizScrollContainer",de(Se,(function(t){t.component(Se.name,Se),t.component(Oe.name,Oe),mt("CONTAINER_CONTAINER_SCROLL",(()=>new xe)),mt("CONTAINER_CONTAINER_SCROLL_LEFT",(()=>new Ae)),mt("CONTAINER_CONTAINER_SCROLL_HEADER",(()=>new Ae)),mt("CONTAINER_CONTAINER_SCROLL_RIGHT",(()=>new Ae)),mt("CONTAINER_CONTAINER_SCROLL_BOTTOM",(()=>new Ae)),mt("CONTAINER_CONTAINER_SCROLL_MAIN",(()=>new Ae))})));class ze extends pt{constructor(){super(...arguments),this.cache=!0,this.routeOpen=!0,this.currentKey="",this.cacheKeys=["RouterShell"],this.navViewMsgs={},this.isLoading=!1}}t("NavPosState",ze);const Re=["is404","isRoutePushed"];class Le extends ht{constructor(){super(...arguments),this.viewModals={},this.refCtrlKeys=[],this.rawItemParams={},this.ignoreEmbedKey=!1}get route(){return this.router.currentRoute.value}getExpItemIsCache(t){return"CACHE"===this.rawItemParams.expcache||"NO_CACHE"!==this.rawItemParams.expcache&&t.isCache}setRouter(t){this.router=t}async onInit(){var t;await super.onInit(),this.handleRawItemParams(),(null==(t=this.model.rawItem)?void 0:t.rawItemParams)&&this.model.rawItem.rawItemParams.find((t=>!("REFCTRL"!==t.key||!t.value)&&(this.refCtrlKeys=t.value.split(";").map((t=>t.toLowerCase())),!0))),this.panel.evt.on("onControlEvent",(t=>{if((0===this.refCtrlKeys.length||this.refCtrlKeys.includes(t.triggerControlName))&&"onNavViewChange"===t.triggerEventName){const e=t.triggerEvent;this.openView(e.navViewMsg)}}));const e=this.rawItemParams.expmode||this.panel.view.params.expmode,n=this.rawItemParams.ignoreembedkey||this.panel.view.params.ignoreembedkey||"";this.ignoreEmbedKey=Object.is(n.toLowerCase(),"true"),"ROUTE"===e&&this.routeDepth?this.state.routeOpen=!0:this.state.routeOpen="NO_ROUTE"!==e&&!!this.routeDepth,this.panel.view.params.expmode&&delete this.panel.view.params.expmode}createState(){var t;return new ze(null==(t=this.parent)?void 0:t.state)}get routeDepth(){return this.panel.view.modal.routeDepth}calcCacheKey(t){return t?"".concat(t.viewId,"___").concat(t.key):""}onRouteChange(t){if(this.curNavViewMsg){const e=this.calcCacheKey(this.curNavViewMsg);this.state.currentKey=e,this.state.navViewMsgs[e].fullPath=t.fullPath}}setNavViewMsgs(t){t.isRoutePushed=!0===t.isRoutePushed;const e=this.calcCacheKey(t);this.state.navViewMsgs[e]?(J(this.state.navViewMsgs[e],t),Re.forEach((n=>{Object.prototype.hasOwnProperty.call(t,n)&&(this.state.navViewMsgs[e][n]=void 0)}))):(this.state.navViewMsgs[e]=t,this.getExpItemIsCache(t)&&this.state.cacheKeys.push(e),this.viewModals[e]=new vt({mode:this.routeDepth?ft.ROUTE:ft.EMBED,routeDepth:this.routeDepth?this.routeDepth+1:void 0,dismiss:()=>{this.dismiss(e)}})),this.curNavViewMsg=this.state.navViewMsgs[e]}dismiss(t){ibiz.log.debug(this.constructor.name,"dismiss",t)}onViewCreated(t){this.panel.evt.emit("onPresetPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:"onViewCreated",presetParams:t}),ibiz.log.debug(this.constructor.name,"onViewCreated",t)}toBlankRoute(){const t=le(this.route,this.routeDepth);this.router.push(t)}openView(t){if(!t.key)return this.state.currentKey=this.calcCacheKey(t),void(this.routeDepth&&this.state.routeOpen&&this.toBlankRoute());this.routeDepth&&this.state.routeOpen?this.openViewByPath(t):this.openViewByModel(t)}async openViewByPath(t){var e,n,o;const a=this.calcCacheKey(t);this.setNavViewMsgs(t);if(!0===t.isRoutePushed)return this.state.currentKey=a,void(this.state.navViewMsgs[this.calcCacheKey(this.curNavViewMsg)].fullPath=this.route.fullPath);if(t.is404){const n=le(this.route,this.routeDepth,!1);(null==(e=t.modalOptions)?void 0:e.replace)?this.router.replace("".concat(n,"/error/404")):this.router.push("".concat(n,"/error/404"))}else if(a===this.state.currentKey&&this.state.navViewMsgs[a].fullPath)(null==(n=t.modalOptions)?void 0:n.replace)?this.router.replace(this.state.navViewMsgs[a].fullPath):this.router.push(this.state.navViewMsgs[a].fullPath);else if(this.state.navViewMsgs[a].fullPath&&this.getExpItemIsCache(t))(null==(o=t.modalOptions)?void 0:o.replace)?this.router.replace(this.state.navViewMsgs[a].fullPath):this.router.push(this.state.navViewMsgs[a].fullPath);else{const e=Object.assign(t.context.clone(),{toRouteDepth:this.routeDepth+1});this.getExpItemIsCache(t)&&this.state.cacheKeys.push(a),t.viewId&&(this.state.isLoading=!0,await ibiz.commands.execute(gt.TAG,t.viewId,e,t.params,{openMode:"INDEXVIEWTAB",modalOption:{replace:!this.state.currentKey,...t.modalOptions}}),this.state.isLoading=!1)}}openViewByModel(t){this.setNavViewMsgs(t),this.state.currentKey=this.calcCacheKey(t)}handleRawItemParams(){var t;let e={};const n=null==(t=this.model.rawItem)?void 0:t.rawItemParams;o(n)&&(e=n.reduce(((t,e)=>(t[e.key.toLowerCase()]=e.value,t)),{})),Object.assign(this.rawItemParams,e)}}function Be(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("NavPosController",Le);const je=P({name:"IBizNavPos",props:{modelData:{type:Object,required:!0},controller:{type:Le,required:!0}},setup(t){const e=t.controller,n=ee("nav-pos"),o=Ut(),a=kt(),i=g(!1);if(e.setRouter(o),e.routeDepth){const t=le(a,e.routeDepth);s((()=>a.fullPath),(()=>{const n=le(a,e.routeDepth);if(t===n&&a.matched.length>e.routeDepth){if(a.matched.length===e.routeDepth+1&&(i.value=!!a.name,i.value))return;e.onRouteChange(a)}}),{immediate:!0})}return{ns:n,c:e,isPresetView:i,onViewCreated:t=>{e.onViewCreated(t)}}},render(){const{viewModals:t,state:e}=this.c,{currentKey:n,cacheKeys:o,navViewMsgs:a,cache:i}=e;let r=null;if(e.routeOpen){if(this.isPresetView)return E(_t,null,null);r=E(w("iBizRouterView"),{manualKey:n,modal:t[n],onCreated:this.onViewCreated},{default:({Component:t})=>{const e=""!==n&&t?E(t,null,null):null;return i?E(w("keepAlive"),{include:o,max:30,isKey:!0},Be(e)?e:{default:()=>[e]}):e}})}else{const t=n&&a[n]?y(w("IBizViewShell"),{context:a[n].context,params:a[n].params,key:this.c.ignoreEmbedKey?void 0:n,viewId:a[n].viewId,onCreated:this.onViewCreated}):null;r=i?E(w("keepAlive"),{include:o,max:30,isKey:!0},Be(t)?t:{default:()=>[t]}):t}return E("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},[r])}});class Ve{constructor(){this.component="IBizNavPos"}async createController(t,e,n){const o=new Le(t,e,n);return await o.init(),o}}t("IBizNavPos",de(je,(function(t){t.component(je.name,je),mt("RAWITEM_NAV_POS",(()=>new Ve))})));class Me extends pt{constructor(){super(...arguments),this.error=null}}class ke extends ht{constructor(){super(...arguments),this.unitName=void 0}get valueFormat(){return this.model.valueFormat}get dataType(){}get context(){return this.panel.context}get params(){return this.panel.params}get data(){return this.dataParent.data}get value(){return this.data[this.model.id]}createState(){var t;return new Me(null==(t=this.parent)?void 0:t.state)}async validate(){var t;return!this.state.visible||this.model.allowEmpty||this.value?(this.state.error=null,!0):(this.state.error=(null==(t=this.editor)?void 0:t.model.placeHolder)||ibiz.i18n.t("vue3Util.panelComponent.cannotEmpty",{caption:this.model.caption}),!1)}async onInit(){var t,e;await super.onInit(),this.state.required=!this.model.allowEmpty,!0!==this.context.srfreadonly&&"true"!==this.context.srfreadonly&&(null==(t=this.model.editor)?void 0:t.readOnly)&&(this.state.readonly=(null==(e=this.model.editor)?void 0:e.readOnly)||!1),this.model.editor&&"HIDDEN"!==this.model.editor.editorType&&(this.editorProvider=await yt(this.model.editor),this.editorProvider&&(this.editor=await this.editorProvider.createController(this.model.editor,this)))}async setDataValue(t,e){const{id:n}=this.model;e=e||n,this.dataParent.setDataValue&&await this.dataParent.setDataValue(e,t),await this.validate(),this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:wt.CHANGE})}onFocus(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:wt.FOCUS,event:t})}onBlur(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:wt.BLUR,event:t})}onEnter(t){this.panel.evt.emit("onPanelItemEvent",{panelItemName:this.model.id,panelItemEventName:wt.ENTER,event:t})}}t("PanelFieldController",ke);const Ue=P({name:"IBizPanelField",props:{modelData:{type:Object,required:!0},controller:{type:ke,required:!0},attrs:{type:Object,require:!1}},setup(t){const e=ee("panel-field"),n=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n),e.is("error",!!t.controller.state.error)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n,onValueChange:(e,n)=>{t.controller.setDataValue(e,n)}}},render(){let t=null;if(this.controller.data){const e={value:this.controller.value,data:this.controller.data,controller:this.controller.editor,disabled:this.controller.state.disabled,class:this.ns.b("content"),readonly:this.controller.state.readonly,onChange:this.onValueChange,onFocus:t=>this.controller.onFocus(t),onBlur:t=>this.controller.onBlur(t),onEnter:t=>this.controller.onEnter(t),...this.attrs};if(this.$slots.default)t=this.$slots.default(e);else if(this.controller.editorProvider){const n=w(this.controller.editorProvider.formEditor);t=y(n,{...e})}else t=E(w("not-supported-editor"),{modelData:this.modelData.editor},null)}return E("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t,this.controller.state.error&&E("div",{class:this.ns.e("error")},[this.controller.state.error])])}});class _e{constructor(){this.component="IBizPanelField"}async createController(t,e,n){const o=new ke(t,e,n);return await o.init(),o}}t("IBizPanelField",de(Ue,(function(t){t.component(Ue.name,Ue),mt("FIELD",(()=>new _e))})));class qe extends ht{get data(){return this.dataParent.data}async onInit(){await super.onInit()}}t("PanelRawItemController",qe);const Fe=P({name:"IBizPanelRawItem",props:{modelData:{type:Object,required:!0},controller:{type:qe,required:!0}},setup(t){const e=ee("panel-rawitem"),n=t.controller,o=g(""),a=g(""),{rawItem:i}=t.modelData;i&&i.cssStyle&&(a.value=i.cssStyle);const r=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return s((()=>n.data),(async t=>{if(t){const e=n.model.rawItem;if(!e)return;let a;const i={...t};"RAW"===e.contentType?a=e.caption:"HTML"===e.contentType&&(a=e.content),a&&e.templateMode&&(a=await ibiz.util.hbs.render(a.replace("//n","\n"),Object.assign(i,{data:{...t}}))),o.value=a}}),{immediate:!0}),{ns:e,classArr:r,tempStyle:a,content:o}},render(){if(this.controller.state.visible)return E("div",{class:this.classArr,style:this.tempStyle,onClick:t=>{this.controller.onClick(t)}},[E(w("iBizRawItem"),{rawItem:this.modelData,content:this.content},null)])}});class Ge{constructor(){this.component="IBizPanelRawItem"}async createController(t,e,n){const o=new qe(t,e,n);return await o.init(),o}}t("IBizPanelRawItem",de(Fe,(function(t){t.component(Fe.name,Fe),mt("RAWITEM",(()=>new Ge)),mt("RAWITEM_STATIC_IMAGE",(()=>new Ge)),mt("RAWITEM_STATIC_LABEL",(()=>new Ge)),mt("RAWITEM_STATIC_TEXT",(()=>new Ge))})));class We extends pt{constructor(){super(...arguments),this.data={}}}class $e{constructor(t,e,n,o){this.model=t,this.panel=e,this.parent=n,this.state=new We,this.isDataContainer=!0,this.panelItems={},this.state.data=o;const a=Ct(this.model).map((t=>t.id));o._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])}))}get data(){return this.state.data}async validate(){return(await Promise.all(Object.values(this.panelItems).map((t=>t.validate())))).every((t=>t))}async init(){await this.initChildrenController()}async initChildrenController(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=this.parent.providers[t.id];if(!i)return;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!bt(t)?await this.initChildrenController(t.panelItems,e,r):(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initChildrenController(t.panelTabPages,e,r)})))}async dataChangeNotify(t){}async childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async panelStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e,this.childDataChangeNotify([t]))}destroy(){var t,e;null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}class Ke extends pt{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerState",Ke);class He extends ht{constructor(){super(...arguments),this.isDataContainer=!0,this.dataItems=[],this.providers={}}get data(){return this.state.items}createState(){var t;return new Ke(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemProviders()}async panelStateNotify(t){super.panelStateNotify(t),t===It.LOAD&&this.initContainerData()}async initPanelItemProviders(t=this.model.panelItems){t&&await Promise.all(t.map((async t=>{var e,n;const o=await Pt(t,this.panel.model,this.panel.view.model);o&&(this.providers[t.id]=o,(null==(e=t.panelItems)?void 0:e.length)&&!bt(t)&&await this.initPanelItemProviders(t.panelItems),(null==(n=t.panelTabPages)?void 0:n.length)&&await this.initPanelItemProviders(t.panelTabPages))})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,Dt(t,this.panel.params,this.panel.context));const o=Dt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=at.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new F(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){this.dataItems.forEach((e=>{e.panelStateNotify(t)}))}async validate(){return(await Promise.all(this.dataItems.map((t=>t.validate())))).every((t=>t))}async setData(t){const e=Ct(this.model),n=t.map((t=>new Et(e,t)));this.dataItems=n.map((t=>new $e(this.model,this.panel,this,t))),this.dataItems.length&&await Promise.all(this.dataItems.map((t=>t.init()))),this.state.items=n,this.childrenStateNotify(It.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await Nt(e,t,n,this.panel.data,o);if(!a)throw new j(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){super.destroy(),this.dataItems.forEach((t=>{t.destroy()}))}}t("MultiDataContainerController",He);const Qe=P({name:"IBizMultiDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:He,required:!0}},setup(t){const e=ee("multi-data-container"),{id:n}=t.modelData;s((()=>t.controller.state.items),(()=>{t.controller.dataItems.forEach((t=>{t.state=m(t.state);Object.keys(t.panelItems).forEach((e=>{const n=t.panelItems[e];n.state=m(n.state)}))}))}),{immediate:!0});const o=h("renderPanelItem"),a=D((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():this.controller.state.items.map(((t,e)=>{const n=this.controller.dataItems[e];return E(w("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const o=n.panelItems[t.id];return E(w("iBizCol"),{layoutPos:t.layoutPos,state:o.state},"function"==typeof(a=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:n.panelItems}))||"[object Object]"===Object.prototype.toString.call(a)&&!A(a)?e:{default:()=>[e]});var a}))]}})})),E("div",{class:this.classArr},[t])}});class Xe{constructor(){this.component="IBizMultiDataContainer"}async createController(t,e,n){const o=new He(t,e,n);return await o.init(),o}}t("IBizMultiDataContainer",de(Qe,(function(t){t.component(Qe.name,Qe),mt("CONTAINER_CONTAINER_MULTIDATA",(()=>new Xe))})));class Ye extends pt{constructor(){super(...arguments),this.items=[]}}t("MultiDataContainerRawState",Ye);class Je extends ht{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.items}createState(){var t;return new Ye(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers()}async panelStateNotify(t){super.panelStateNotify(t),t===It.LOAD&&this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await Pt(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!bt(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,Dt(t,this.panel.params,this.panel.context));const o=Dt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,scriptCode:n}=this.model;switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!n)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=at.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},n,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new F(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;null==(n=(e=this.data).destroy)||n.call(e),this.state.items=t,this.childrenStateNotify(It.LOAD)}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await Nt(e,t,n,this.panel.data,o);if(!a)throw new j(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}setDataValue(t,e){throw new Error(ibiz.i18n.t("vue3Util.panelComponent.noImplementMethod"))}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{var e;null==(e=t.destroy)||e.call(t)}))}}t("MultiDataContainerRawController",Je);const Ze=P({name:"IBizMultiDataContainerRaw",props:{modelData:{type:Object,required:!0},controller:{type:Je,required:!0}},setup(t){const e=ee("multi-data-container-raw"),{id:n}=t.modelData;s((()=>t.controller.state.items),(()=>{Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=m(n.state)}))}),{immediate:!0,deep:!0});const o=h("renderPanelItem"),a=D((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():E(w("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return E(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o}))]}}),E("div",{class:this.classArr},[t])}});class tn{constructor(){this.component="IBizMultiDataContainerRaw"}async createController(t,e,n){const o=new Je(t,e,n);return await o.init(),o}}t("IBizMultiDataContainerRaw",de(Ze,(function(t){t.component(Ze.name,Ze),mt("CONTAINER_CONTAINER_MULTIDATA_RAW",(()=>new tn))})));class en extends pt{constructor(){super(...arguments),this.data={}}}t("SingleDataContainerState",en);class nn extends ht{constructor(){super(...arguments),this.isDataContainer=!0,this.panelItems={},this.providers={}}get data(){return this.state.data}createState(){var t;return new en(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),await this.initPanelItemControllers()}async panelStateNotify(t){super.panelStateNotify(t),t===It.LOAD&&this.initContainerData()}async initPanelItemControllers(t=this.model.panelItems,e=this.panel,n=this){t&&await Promise.all(t.map((async t=>{var o,a;const i=await Pt(t,e.model,e.view.model);if(!i)return;this.providers[t.id]=i;const r=await i.createController(t,e,n);this.panelItems[t.id]=r,(null==(o=t.panelItems)?void 0:o.length)&&!bt(t)&&await this.initPanelItemControllers(t.panelItems,e,r),(null==(a=t.panelTabPages)?void 0:a.length)&&await this.initPanelItemControllers(t.panelTabPages,e,r)})))}computeNavParams(){const{navigateContexts:t,navigateParams:e}=this.model,n=this.panel.context.clone();Object.assign(n,Dt(t,this.panel.params,this.panel.context));const o=Dt(e,this.panel.params,this.panel.context);return Object.assign(o,this.panel.params),{context:n,params:o}}initContainerData(){const{dataSourceType:t,dataName:e,dataRegionType:n,scriptCode:o}=this.model;if("LOGINFORM"!==n)switch(t){case"DEACTION":case"DEDATASET":this.setDataByDeMethod();break;case"APPGLOBALPARAM":this.setDataByAppGlobalParam();break;case"DELOGIC":this.setDataByDeLogic();break;case"TOPVIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.getTopView(),e);break;case"VIEWSESSIONPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.bindViewData(this.panel.view,e);break;case"ACTIVEDATAPARAM":if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguardDataObject"));this.setData(this.dataParent.data[e]);break;case"CUSTOM":{if(!o)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredScript"));const t=at.execScriptFn({...this.panel.getEventArgs(),data:this.dataParent.data},o,{isAsync:!1,singleRowReturn:!0});this.setData(t);break}default:throw new F(this.model,ibiz.i18n.t("vue3Util.panelComponent.noSupportedDataSourceType",{dataSourceType:t}))}else this.setLoginForm()}childrenStateNotify(t){Object.values(this.panelItems).forEach((e=>{e.panelStateNotify(t)}))}async setData(t){var e,n;const o=Ct(this.model),a=o.map((t=>t.id)),i=new Et(o,t);i._evt.on("change",(t=>{a.includes(t)&&this.childDataChangeNotify([t])})),null==(n=(e=this.data).destroy)||n.call(e),this.state.data=i,this.childrenStateNotify(It.LOAD)}setLoginForm(){this.setData({})}async setDataByDeLogic(){const{appDataEntityId:t,appDELogicId:e}=this.model;if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntityLogic"));if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const{context:n,params:o}=this.computeNavParams(),a=await Nt(e,t,n,this.panel.data,o);if(!a)throw new j(ibiz.i18n.t("vue3Util.panelComponent.noReturnValue",{appDELogicId:e}));this.setData(a)}setDataByAppGlobalParam(){const{dataName:t}=this.model,e=t?ibiz.appData[t]:ibiz.appData;e?this.setData(e):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.noAttribute",{dataName:t}))}async setDataByDeMethod(){const{appDEMethodId:t,appDataEntityId:e}=this.model;if(!t)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguerdEntityBehanior"));if(!e)throw new G(this.model,ibiz.i18n.t("vue3Util.panelComponent.noConfiguredEntity"));const n=ibiz.hub.getApp(this.panel.context.srfappid),{context:o,params:a}=this.computeNavParams(),i=await n.deService.exec(e,t,o,void 0,a);i.ok&&i.data&&this.setData(i.data)}bindViewData(t,e){if(!Object.prototype.hasOwnProperty.call(t.state,e))return void ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.sessionView",{dataName:e}));const n=()=>{const n=t.state[e];n?this.setData(n):ibiz.log.error(ibiz.i18n.t("vue3Util.panelComponent.viewStateAttribute",{dataName:e}))};n(),t.evt.on("onDataChange",(()=>{n()}))}childDataChangeNotify(t){Object.values(this.panelItems).forEach((e=>{e.dataChangeNotify(t)}))}async setDataValue(t,e){Object.prototype.hasOwnProperty.call(this.state.data,t)&&this.state.data[t]===e||(this.state.data[t]=e)}destroy(){var t,e;super.destroy(),null==(e=(t=this.data).destroy)||e.call(t),Object.values(this.panelItems).forEach((t=>{t.destroy()}))}}t("SingleDataContainerController",nn);const on=P({name:"IBizSingleDataContainer",props:{modelData:{type:Object,required:!0},controller:{type:nn,required:!0}},setup(t){const e=ee("single-data-container"),{id:n}=t.modelData;Object.keys(t.controller.panelItems).forEach((e=>{const n=t.controller.panelItems[e];n.state=m(n.state)}));const o=h("renderPanelItem"),a=D((()=>[e.b(),e.m(n),...t.controller.containerClass]));return{ns:e,classArr:a,renderPanelItem:o}},render(){let t;return t=this.$slots.default?this.$slots.default():E(w("iBizRow"),{class:this.ns.b("content"),layout:this.modelData.layout},{default:()=>{var t;return[null==(t=this.modelData.panelItems)?void 0:t.map((t=>{let e;const n=this.controller.panelItems[t.id];return E(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t,{providers:this.controller.providers,panelItems:this.controller.panelItems}))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o}))]}}),E("div",{class:this.classArr},[t])}});class an{constructor(){this.component="IBizSingleDataContainer"}async createController(t,e,n){const o=new nn(t,e,n);return await o.init(),o}}t("IBizSingleDataContainer",de(on,(function(t){t.component(on.name,on),mt("CONTAINER_CONTAINER_SINGLEDATA",(()=>new an))})));class rn extends pt{}t("GridContainerState",rn);class sn extends ht{createState(){var t;return new rn(null==(t=this.parent)?void 0:t.state)}}function ln(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("GridContainerController",sn);const cn=P({name:"IBizGridContainer",props:{modelData:{type:Object,required:!0},controller:{type:sn,required:!0}},setup(t){const e=ee("grid-container"),{id:n}=t.modelData,o=D((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=D((()=>({...t.modelData.layout,layout:"TABLE_12COL"}))),i=g(void 0),r=g(12);return{ns:e,classArr:o,layoutModel:a,convertLayoutPos:(t,e)=>{const n={...t,layout:"TABLE_12COL",colXS:t.grow||e,colSM:t.grow||e,colMD:t.grow||e,colLG:t.grow||e};return delete n.grow,n},adaptGrow:r,adaptCols:i}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];if(void 0===this.adaptCols){let t=0,e=0;o.forEach((n=>{const o=n.props;o&&o.modelData&&o.modelData.layoutPos&&("number"==typeof o.modelData.layoutPos.grow?t+=o.modelData.layoutPos.grow:void 0===o.modelData.layoutPos.grow&&(e+=1))}));let n=12;e>0&&(n=(12-t)/e),this.adaptCols=e,this.adaptGrow=n}return E(w("iBizRow"),{class:this.classArr,layout:this.layoutModel},ln(n=o.map((t=>{const e=t.props;return e&&e.controller?E(w("iBizCol"),{layoutPos:this.convertLayoutPos(e.modelData.layoutPos,this.adaptGrow),state:e.controller.state},ln(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]})}});class dn{constructor(){this.component="IBizGridContainer"}async createController(t,e,n){const o=new sn(t,e,n);return await o.init(),o}}t("IBizGridContainer",de(cn,(function(t){t.component(cn.name,cn),mt("CONTAINER_CONTAINER_GRID",(()=>new dn))})));class un extends pt{}t("PanelContainerImageState",un);class pn extends ht{createState(){var t;return new un(null==(t=this.parent)?void 0:t.state)}}function hn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}t("PanelContainerImageController",pn);const mn=P({name:"IBizPanelContainerImage",props:{modelData:{type:Object,required:!0},controller:{type:pn,required:!0}},setup(t){const e=ee("panel-container-image"),{id:n}=t.modelData,o=D((()=>{let o=[e.b(),e.m(n)];return o=[...o,...t.controller.containerClass,e.is("hidden",!t.controller.state.visible)],o})),a=D((()=>{const e=t.controller.model.sysImage,n={};let o="";return(null==e?void 0:e.rawContent)?o=U(e.rawContent)?"url(data:image/svg+xml;base64,".concat(btoa(e.rawContent),")"):"url(".concat(e.rawContent,")"):(null==e?void 0:e.imagePath)&&(o="url(".concat(e.imagePath,")")),o&&Object.assign(n,{backgroundImage:o}),n}));return{ns:e,classArr:o,backgroundStyle:a}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],a=E(w("iBizRow"),{slot:"content",layout:this.modelData.layout},hn(n=o.map((t=>{const e=t.props;return e&&e.controller?E(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},hn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});return E("div",{class:this.classArr,onClick:()=>{this.controller.onClick()},style:this.backgroundStyle},[this.controller.model.cssStyle?E("style",{type:"text/css"},[this.controller.model.cssStyle]):null,a])}});class vn{constructor(){this.component="IBizPanelContainerImage"}async createController(t,e,n){const o=new pn(t,e,n);return await o.init(),o}}t("IBizPanelContainerImage",de(mn,(function(t){t.component(mn.name,mn),mt("CONTAINER_CONTAINER_IMAGE",(()=>new vn))})));class fn extends pt{}t("PanelContainerGroupState",fn);class gn extends ht{createState(){var t;return new fn(null==(t=this.parent)?void 0:t.state)}get disableClose(){const{titleBarCloseMode:t}=this.model;return 0===t||void 0===t}get defaultExpansion(){const{titleBarCloseMode:t}=this.model;return this.disableClose||1===t}}t("PanelContainerGroupController",gn);class yn{constructor(){this.component="IBizPanelContainerGroup"}async createController(t,e,n){const o=new gn(t,e,n);return await o.init(),o}}function wn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}const Cn=P({name:"IBizPanelContainerGroup",props:{modelData:{type:Object,required:!0},controller:{type:gn,required:!0}},setup(t){const e=ee("panel-container-group"),n=g(!t.controller.defaultExpansion);return{ns:e,captionText:D((()=>{const{captionItemName:e,caption:n,capLanguageRes:o}=t.modelData;if(e)return t.controller.data[e];let a=n;return o&&(a=ibiz.i18n.t(o.lanResTag,n)),a})),changeCollapse:()=>{t.controller.disableClose||(n.value=!n.value)},isCollapse:n}},render(){var t,e;let n;const o=[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!this.controller.state.visible)];!0===this.modelData.showCaption&&(o.push(this.ns.m("show-header")),o.push(this.ns.b("collapse")),o.push(this.ns.is("collapse",this.isCollapse)),this.controller.disableClose&&o.push(this.ns.bm("collapse","disable-close")));const a=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[],i=E(w("iBizRow"),{slot:"content",layout:this.modelData.layout},wn(n=a.map((t=>{const e=t.props;return e&&e.controller?E(w("iBizCol"),{layoutPos:e.modelData.layoutPos,state:e.controller.state},wn(t)?t:{default:()=>[t]}):t})))?n:{default:()=>[n]});let r=null;return this.modelData.showCaption&&(r=E("div",{class:[this.ns.b("header")],onClick:this.changeCollapse},[E("div",{class:[this.ns.be("header","left")]},[E("div",{class:[this.ns.e("caption"),...this.controller.labelClass]},[this.captionText])]),E("div",{class:[this.ns.be("header","right")]},[void 0!==this.modelData.titleBarCloseMode&&0!==this.modelData.titleBarCloseMode&&(this.isCollapse?E("ion-icon",{name:"caret-forward-sharp"},null):E("ion-icon",{name:"caret-down-sharp"},null))])])),E("div",{class:o},[r,E("div",{class:[this.ns.b("content")]},[i])])}});t("IBizPanelContainerGroup",de(Cn,(function(t){t.component(Cn.name,Cn),mt("CONTAINER_CONTAINER_GROUP",(()=>new yn))})));function bn(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!A(t)}const In=P({name:"IBizPanelTabPage",props:{modelData:{type:Object,required:!0},controller:{type:ht,required:!0}},setup(t){const e=ee("panel-tab-page"),n=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){var t,e;let n;const o=(null==(e=(t=this.$slots).default)?void 0:e.call(t))||[];return E(w("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),this.classArr],layout:this.modelData.layout},bn(n=o.map((t=>{const e=t.props;if(!e||!e.controller)return t;const n=e.controller;return E(w("iBizCol"),{layoutPos:n.model.layoutPos,state:n.state},bn(t)?t:{default:()=>[t]})})))?n:{default:()=>[n]})}});class Pn{constructor(){this.component="IBizPanelTabPage"}async createController(t,e,n){const o=new ht(t,e,n);return await o.init(),o}}t("IBizPanelTabPage",de(In,(function(t){t.component(In.name,In),mt("TABPAGE",(()=>new Pn))})));class Dn extends ht{getPanelItemCustomHtml(t,e){if(0===t.length)return;const n=t[0];return n.layoutPanelModel?at.execScriptFn({data:e||{}},n.layoutPanelModel,{singleRowReturn:!0,isAsync:!1}):void 0}}const En=P({name:"IBizPanelItemRender",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(t){var e;const n=ee("panel-item-render"),o=ee("panel-".concat(null==(e=t.modelData.itemType)?void 0:e.toLowerCase())),{id:a}=t.modelData,i=D((()=>[n.b(),n.m(a),o.b(),n.is("hidden",!t.controller.state.visible)])),r=D((()=>t.controller.getPanelItemCustomHtml(t.modelData.controlRenders,t.controller.data)));return{ns:n,classArr:i,htmlCode:r}},render(){return E("div",{class:this.classArr,innerHTML:this.htmlCode},null)}});class Nn{constructor(){this.component="IBizPanelItemRender"}async createController(t,e,n){const o=new Dn(t,e,n);return await o.init(),o}}t("IBizPanelItemRender",de(En,(function(t){t.component(En.name,En),mt("PREDEFINE_RENDER",(()=>new Nn))})));const On=P({name:"IBizTeleportPlaceholder",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=ee("teleport-placeholder"),n=g(""),{rawItem:o}=t.modelData;o&&o.cssStyle&&(n.value=o.cssStyle);const a=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:a,tempStyle:n}},render(){if(this.controller.state.visible)return E("div",{id:this.controller.state.teleportTag,class:this.classArr,style:this.tempStyle},null)}});class An extends pt{constructor(){super(...arguments),this.teleportTag=""}}class Tn extends ht{createState(){var t;return new An(null==(t=this.parent)?void 0:t.state)}async onInit(){var t,e;await super.onInit();const n=this.panel.view.model.codeName;let o="".concat(null==n?void 0:n.toLowerCase(),"-").concat(this.model.id);const a=null==(e=null==(t=this.model.rawItem)?void 0:t.rawItemParams)?void 0:e.find((t=>"TeleportTag"===t.key));a&&a.value&&(o=a.value),ibiz.log.debug(ibiz.i18n.t("vue3Util.panelComponent.placeholderIdentifier",{viewCodeName:n,id:this.model.id}),o),this.state.teleportTag=o}}class Sn{constructor(){this.component="IBizTeleportPlaceholder"}async createController(t,e,n){const o=new Tn(t,e,n);return await o.init(),o}}t("TeleportPlaceholderProvider",Sn);t("IBizTeleportPlaceholder",de(On,(function(t){t.component(On.name,On),mt("RAWITEM_TELEPORT_PLACEHOLDER",(()=>new Sn))})));const xn=P({name:"IBizPanelContainerTabs",props:{modelData:{type:Object,required:!0},controller:{type:ye,required:!0}},setup:()=>({ns:ee("panel-container-tabs")}),render(){return y(w("IBizPanelContainer"),{...this.$props,...this.$attrs,class:this.ns.b()},this.$slots)}});class zn{constructor(){this.component="IBizPanelContainerTabs"}async createController(t,e,n){const o=new ye(t,e,n);return await o.init(),o}}t("IBizPanelContainerTabs",de(xn,(function(t){t.component(xn.name,xn),mt("CONTAINER_TABS",(()=>new zn))})));const Rn=P({name:"IBizPanelCtrlViewPageCaption",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=ee("panel-ctrl-view-page-caption"),n=D((()=>{const{id:n}=t.modelData,o=[e.b(),e.m(n)];return o.push(...t.controller.containerClass),o}));return{ns:e,classArr:n}},render(){let t=null;return this.controller.data&&(t=E("span",{class:this.ns.b("content")},[this.controller.state.caption])),E("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[t])}});class Ln extends ht{async onInit(){await super.onInit(),this.state.caption=this.panel.view.model.caption||"",this.panel.view.evt.on("onViewInfoChange",(({caption:t,dataInfo:e})=>{this.state.caption="".concat(this.panel.view.model.caption).concat(e?"-".concat(e):"")}))}}class Bn{constructor(){this.component="IBizPanelCtrlViewPageCaption"}async createController(t,e,n){const o=new Ln(t,e,n);return await o.init(),o}}t("IBizPanelCtrlViewPageCaption",de(Rn,(function(t){t.component(Rn.name,Rn),mt("CTRLPOS_VIEW_PAGECAPTION",(()=>new Bn))})));const jn=P({name:"IBizAuthWxmpQrcode",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(t){const e=ee("auth-wxmp-qrcode"),{state:n}=t.controller,o=kt();t.controller.setRouter(o);const a=async()=>{await t.controller.loadQrcode()};return s((()=>n.visible),(()=>{var t;n.visible&&(n.keepAlive&&!(null==(t=n.qrcode)?void 0:t.expirein)||!n.keepAlive)&&a()}),{immediate:!0}),I((()=>{t.controller.destroy()})),{ns:e,loadQrcode:a}},render(){var t,e;return E("div",{class:this.ns.b()},[E("div",{class:this.ns.e("content")},[this.controller.state.qrcode&&E("img",{class:this.ns.e("qrcode"),src:null==(t=this.controller.state.qrcode)?void 0:t.url},null),!(null==(e=this.controller.state.qrcode)?void 0:e.expirein)&&E("div",{class:this.ns.e("mask")},[E("ion-icon",{title:ibiz.i18n.t("vue3Util.panelComponent.refresh"),name:"reload-outline",onClick:this.loadQrcode,class:this.ns.em("mask","icon")},null)])]),E("div",{class:this.ns.e("caption")},[this.controller.state.tips])])}});class Vn extends pt{}class Mn extends ht{constructor(){super(...arguments),this.pollingTime=2,this.rawItemParams={}}createState(){var t;return new Vn(null==(t=this.parent)?void 0:t.state)}async onInit(){await super.onInit(),this.handleRawItemParams(),this.initParams()}setRouter(t){this.route=t}handleRawItemParams(){var t;let e={};const n=null==(t=this.model.rawItem)?void 0:t.rawItemParams;o(n)&&(e=n.reduce(((t,e)=>(t[e.key.toLowerCase()]=e.value,t)),{})),Object.assign(this.rawItemParams,e)}initParams(){var t;this.pollingTime=(t=this.rawItemParams.pollingtime)&&isFinite(Number(t))?Number(this.rawItemParams.pollingtime):2,this.state.tips=this.model.caption||ibiz.i18n.t("vue3Util.panelComponent.wxQrcodeCaption")}async loadQrcode(){try{const t=await ibiz.net.get("/uaa/open/wxmp/createqrcode",{},{srfdcsystem:ibiz.env.dcSystem});t.ok&&t.data&&(this.state.qrcode=t.data,this.setTimer())}catch(t){ibiz.log.error(t.message)}}setTimer(){this.expirationTimer=setInterval((()=>{this.state.qrcode&&this.state.qrcode.expirein>0?this.state.qrcode.expirein-=1:clearInterval(this.expirationTimer)}),1e3),this.pollingTimer=setInterval((async()=>{await this.pollingLogin()}),1e3*this.pollingTime)}async pollingLogin(){try{if(this.state.qrcode&&this.state.qrcode.expirein>0){if(this.state.visible){const t=await ibiz.net.get("/uaa/open/wxmp/qrcode/".concat(this.state.qrcode.ticket),{},{srfdcsystem:ibiz.env.dcSystem}),{data:e,ok:n}=t;if(n&&(null==e?void 0:e.token)){clearInterval(this.pollingTimer);const t=30;W($.TOKEN_REMEMBER,"1",t),W($.TOKEN,e.token,t);const n=(new Date).getTime()+1e3*(e.expirein||7199);W($.TOKEN_EXPIRES,"".concat(n),t),e.refresh_token&&W($.REFRESH_TOKEN,e.refresh_token,t),K($.IS_ANONYMOUS);const o=this.route.query.ru||"/";window.location.hash=o||"/",window.history.pushState({},""),window.location.reload()}}}else clearInterval(this.pollingTimer)}catch(t){ibiz.log.error(t.message)}}async destroy(){await super.destroy(),this.pollingTimer&&(clearInterval(this.pollingTimer),this.pollingTimer=void 0),this.expirationTimer&&(clearInterval(this.expirationTimer),this.expirationTimer=void 0)}}class kn{constructor(){this.component="IBizAuthWxmpQrcode"}async createController(t,e,n){const o=new Mn(t,e,n);return await o.init(),o}}t("IBizAuthWxmpQrcode",de(jn,(function(t){t.component(jn.name,jn),mt("RAWITEM_AUTH_WXMP_QRCODE",(()=>new kn))}))),t("AppRedirectView",P({setup(){var t;const e=q.create((null==(t=ibiz.appData)?void 0:t.context)||{});I((()=>{e.destroy()}));const{href:n}=window.location;b((()=>ibiz.util.hiddenAppLoading())),async function(){await Ot(e,n)}()},render:()=>E("div",null,[ibiz.i18n.t("vue3Util.view.redirectionProgress")])}));class Un{constructor(){this.component="IBizView"}}const _n=P({name:"IBizView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object},provider:{type:Object}},setup(t,{slots:e}){const n=ee("view"),o=ve(((...t)=>new it(...t)));fe(o);const a=At(o.model),i=[],r=new Map,s=[];a.forEach((t=>{const{teleportFlag:e,teleportTag:n}=Tt(t);n||e?(i.push(t),r.set(t.id,n||"")):s.push(t)}));const{viewType:l,sysCss:c,codeName:d}=o.model,u=l.toLowerCase(),p=null==c?void 0:c.cssName,h=D((()=>[n.b(),n.b(u),n.m(d),p,o.state.viewMessages.TOP?"has-top-message":"",o.state.viewMessages.BOTTOM?"has-bottom-message":"",o.state.presetClassList])),m=(t,e={})=>{const n=t.name||t.id;return{context:o.context,params:o.params,modelData:t,...o.slotProps[n]||{},...e}};return{c:o,ns:n,controls:s,teleportControls:i,viewClassNames:h,onLayoutPanelCreated:t=>{o.setLayoutPanel(t)},getCtrlProps:m,renderControl:(t,n={})=>{const a=t.name||t.id,i=m(t,n);if(e[a])return S(e,a,i);const r=o.providers[a],s=w((null==r?void 0:r.component)||"IBizControlShell");return r&&(i.provider=r),y(s,i)},getCtrlTeleportTag:t=>{var e,n;const a=r.get(t.id);if(a)return a;const i=null==(n=null==(e=o.parentView)?void 0:e.layoutPanel)?void 0:n.panelItems[t.name];return i?"#".concat(i.state.teleportTag):void 0},getControlStyle:()=>{const t={};return Object.assign(t,{display:o.state.hasError?"none":"initial"}),t}}},render(){var t,e;let n=null;if(this.c.state.isCreated)if(0===this.c.engines.length)n=E("span",{style:"color:red;"},[ibiz.i18n.t("vue3Util.view.viewType",{viewType:this.modelData.viewType})]);else{const e={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const n=t.name||t.id;e[n]=e=>this.renderControl(t,e)}));const o=this.c.model.viewLayoutPanel,a=this.c.providers[o.name];n=y(w(a.component),{modelData:o,context:this.c.context,params:this.c.params,provider:a,container:this.c,style:this.getControlStyle(),onControllerAppear:this.onLayoutPanelCreated},e)}let o=null;this.c.state.isCreated&&(null==(e=this.teleportControls)?void 0:e.length)&&(o=this.teleportControls.map((t=>{let e;const n=this.getCtrlTeleportTag(t);return n?E("div",{style:this.getControlStyle()},[E(T,{to:n,disabled:!this.c.state.activated},(o=e=this.renderControl(t),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]}))]):(ibiz.log.error(ibiz.i18n.t("vue3Util.view.noTeleportTag",{name:t.name})),null);var o})));let a=null;if(this.c.state.hasError&&this.c.error.status){const t=st(this.c.error.status);t&&("string"==typeof t.component&&(a=y(w(t.component))),a=y(t.component))}return N(E("div",{class:this.viewClassNames,id:this.c.id},[n,o,a]),[[O("loading"),this.c.state.isLoading]])}});class qn{constructor(){this.component="IBizView"}createController(t,e,n,o){return new St(t,e,n,o)}}t("IBizView",de(_n,(function(t){t.component(_n.name,_n),xt("DEFAULT",(()=>new Un)),xt("APPDATAUPLOADVIEW",(()=>new qn))}))),t("TodoRedirect",P({setup(){const t=Ut(),{href:e}=window.location,n=e.lastIndexOf("?"),o=decodeURIComponent(e.substring(n+1,e.length));if(!o)throw new Error(ibiz.i18n.t("vue3Util.view.insufficientRedirection"));const a=qt.parse(o,{delimiter:";"}),{apptype:i,todotype:r,todoid:s}=a,l={srfapptype:"pc",srfapp:""};i||(l.todourltype="RouterUrl"),async function(){let e=(await ibiz.net.post("/systodos/".concat(s,"/getlinkurl"),l)).data.linkurl;i?window.location.href=e:(0!==e.indexOf("/")&&(e="/".concat(e)),e+=";srfwf=".concat(r),t.push("/index".concat(e)))}()},render:()=>E("div",null,[ibiz.i18n.t("vue3Util.view.toDoList")])}));class Fn{constructor(){this.component="IBizPortalView"}}const Gn=P({name:"IBizPortalView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=ee("view"),n=ve(((...t)=>new it(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l];return{c:n,ns:e,controls:o,viewClassNames:c}},render(){var t;let e=null;if(this.c.state.isCreated){const n={...this.$slots};(null==(t=this.controls)?void 0:t.length)&&this.controls.forEach((t=>{const e=t.name||t.id,o={context:this.c.context,params:this.c.params};this.c.slotProps[e]&&Object.assign(o,this.c.slotProps[e]);const a=n[e];if(a)return void(n[e]=()=>a({modelData:t,...o}));const i=this.c.providers[e];i&&(n[e]=()=>{const e=w(i.component);return y(e,{modelData:t,...o,provider:i})})})),n.dashboard&&(e=n.dashboard())}return E("div",{class:this.viewClassNames},[e])}}),Wn=(t("IBizPortalView",de(Gn,(function(t){t.component(Gn.name,Gn),xt(tt.APP_PORTAL_VIEW,(()=>new Fn)),xt(tt.DE_PORTAL_VIEW,(()=>new Fn)),xt(tt.DE_PORTAL_VIEW9,(()=>new Fn))}))),P({name:"IBizDeRedirectView",props:{context:{type:Object,required:!0},params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0}},setup(t){const e=ve(((...t)=>new it(...t))),n=g(),o=g(),a=g();return e.evt.on("onCreated",(()=>{zt(p(t.modelData),p(e.context),p(e.params)).then((async t=>{if("view"!==t.type)throw new j(ibiz.i18n.t("vue3Util.view.embeddedRedirectionView"));n.value=t.viewId,o.value=t.context,a.value=t.params}))})),{c:e,toViewId:n,toViewContext:o,toViewParams:a}},render(){return this.toViewId?y(w("IBizViewShell"),{context:this.toViewContext,params:this.toViewParams,viewId:this.toViewId,...this.$attrs},this.$slots):N(E("div",{style:"width: 100%; height: 100%;"},null),[[O("loading"),!this.toViewId]])}}));class $n{constructor(){this.component="IBizDeRedirectView"}}t("IBizDeRedirectView",de(Wn,(function(t){t.component(Wn.name,Wn);const e=new $n;xt(tt.DE_REDIRECT_VIEW,(()=>e))})));class Kn{constructor(){this.component="IBizHtmlView"}}const Hn=P({name:"IBizHtmlView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var t;const e=ee("view"),n=ve(((...t)=>new it(...t))),o=(null==(t=n.model.viewLayoutPanel)?void 0:t.controls)||n.model.controls,{viewType:a,sysCss:i,codeName:r}=n.model,s=a.toLowerCase(),l=null==i?void 0:i.cssName,c=[e.b(),e.b(s),e.m(r),l],d=g(!1),u=D((()=>{if(n.model){const{htmlUrl:t}=n.model;if(t)return t}return""}));x((()=>{u.value&&(d.value=!0)}));return{c:n,ns:e,controls:o,viewClassNames:c,url:u,isLoading:d,onLoad:()=>{d.value=!1}}},render(){if(this.url)return N(E("div",{class:this.viewClassNames},[E("iframe",{src:this.url,onLoad:()=>this.onLoad()},null)]),[[O("loading"),this.isLoading]]);let t=null;const e=st("404");return e&&("string"==typeof e.component&&(t=y(w(e.component))),t=y(e.component)),E("div",{class:this.viewClassNames},[t])}});t("IBizHtmlView",de(Hn,(function(t){t.component(Hn.name,Hn),xt(tt.DE_HTML_VIEW,(()=>new Kn))})));function Qn(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=at.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}const Xn=P({name:"IBizViewLayoutPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:Object},setup(t,{slots:e}){const n=Zt(((...e)=>new Rt(...e,t.container))),o=ee("control-".concat(n.model.controlType.toLowerCase()));s((()=>t.data),(t=>{t&&(n.setInputData(t),n.load())}),{immediate:!0}),n.evt.on("onCreated",(()=>{Object.keys(n.panelItems).forEach((t=>{const e=n.panelItems[t];e.state=m(e.state)}))}));const a=(t,o)=>{var i,r;if(t.hidden)return null;const{providers:s,panelItems:l}=o||n,c=s[t.id];if(!c)return E("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);if("CTRLPOS"!==t.itemType&&e[t.id])return S(e,t.id,{model:t,data:n.data,value:n.data[t.id]});const d=w(c.component);let u;if("CTRLPOS"===t.itemType&&e[t.id]){const n=l[t.id];u=n.parent&&Lt(n.parent.model)?()=>e[t.id]({isSimple:!0,data:n.data}):()=>e[t.id]()}else"TABPANEL"===t.itemType&&(null==(i=t.panelTabPages)?void 0:i.length)?u=()=>t.panelTabPages.map((t=>a(t,o))):bt(t)?u=void 0:(null==(r=t.panelItems)?void 0:r.length)&&(u=()=>t.panelItems.map((t=>a(t,o))));let p="";t.cssStyle&&(p=t.cssStyle);const h=l[t.id];return y(d,{modelData:t,controller:h,key:t.id,style:p,attrs:Qn(t,h)},u)};return C("renderPanelItem",a),{c:n,ns:o,renderPanelItem:a}},render(){const{state:t,model:e}=this.c;return E(w("iBizControlBase"),{controller:this.c},{default:()=>[E(w("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",E(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=this.renderPanelItem(t))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o})))]}})]})}});class Yn{constructor(){this.component="IBizViewLayoutPanelControl"}}t("IBizViewLayoutPanelControl",de(Xn,(function(t){t.component(Xn.name,Xn),Bt(jt.VIEW_LAYOUT_PANEL,(()=>new Yn))})));function Jn(t,e){var n;const o={};return null==(n=t.controlAttributes)||n.forEach((t=>{t.attrName&&t.attrValue&&(o[t.attrName]=at.execSingleLine(t.attrValue,{...e.panel.getEventArgs(),data:e.data}))})),o}function Zn(t,e,n){var o,a;if(t.hidden)return;const{providers:i,panelItems:r}=e,s=i[t.id];if(!s)return E("div",null,[ibiz.i18n.t("vue3Util.control.unsupportedPanel",{id:t.id,itemType:t.itemType})]);const l=w(s.component);let c;"CTRLPOS"===t.itemType&&n.$slots[t.id]?c=()=>n.$slots[t.id]():"TABPANEL"===t.itemType&&(null==(o=t.panelTabPages)?void 0:o.length)?c=()=>t.panelTabPages.map((t=>Zn(t,e,n))):bt(t)?c=void 0:(null==(a=t.panelItems)?void 0:a.length)&&(c=()=>t.panelItems.map((t=>Zn(t,e,n))));let d="";t.cssStyle&&(d=t.cssStyle);const u=r[t.id];return y(l,{modelData:t,controller:u,key:t.id,style:d,attrs:Jn(t,u)},c)}const to=P({name:"IBizPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},container:{type:Object},data:Object,loadDefault:{type:Boolean,default:!0}},setup(t){const e=Zt(((...e)=>new Vt(...e,t.container))),n=ee("control-".concat(e.model.controlType.toLowerCase()));return s((()=>t.data),(t=>{t&&(e.setInputData(t),e.load())}),{immediate:!0}),e.evt.on("onCreated",(()=>{Object.keys(e.panelItems).forEach((t=>{const n=e.panelItems[t];n.state=m(n.state)}))})),{c:e,ns:n}},render(){const{state:t,model:e}=this.c;return E(w("iBizControlBase"),{controller:this.c},{default:()=>[E(w("iBizRow"),{class:this.ns.b("content"),layout:{layout:"FLEX"}},{default:()=>{var n;return[t.isCreated&&(this.$slots.default?this.$slots.default({panelItems:this.c.panelItems}):null==(n=e.rootPanelItems)?void 0:n.map((t=>{let e;const n=this.c.panelItems[t.id];return t.layoutPos.layout="FLEX",E(w("iBizCol"),{layoutPos:t.layoutPos,state:n.state},"function"==typeof(o=e=Zn(t,this.c,this))||"[object Object]"===Object.prototype.toString.call(o)&&!A(o)?e:{default:()=>[e]});var o})))]}})]})}});class eo{constructor(){this.component="IBizPanelControl"}}t("IBizPanelControl",de(to,(function(t){t.component(to.name,to),Bt(jt.PANEL,(()=>new eo))})));function no(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function oo(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function ao(t,e){for(var n,o="",a=0,i=-1,r=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===r);else if(i!==s-1&&2===r){if(o.length<2||2!==a||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var l=o.lastIndexOf("/");if(l!==o.length-1){-1===l?(o="",a=0):a=(o=o.slice(0,l)).length-1-o.lastIndexOf("/"),i=s,r=0;continue}}else if(2===o.length||1===o.length){o="",a=0,i=s,r=0;continue}e&&(o.length>0?o+="/..":o="..",a=2)}else o.length>0?o+="/"+t.slice(i+1,s):o=t.slice(i+1,s),a=s-i-1;i=s,r=0}else 46===n&&-1!==r?++r:r=-1}return o}var io={resolve:function(){for(var t,e="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var a;o>=0?a=arguments[o]:(void 0===t&&(t=process.cwd()),a=t),oo(a),0!==a.length&&(e=a+"/"+e,n=47===a.charCodeAt(0))}return e=ao(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(oo(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=ao(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return oo(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var n=arguments[e];oo(n),n.length>0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":io.normalize(t)},relative:function(t,e){if(oo(t),oo(e),t===e)return"";if((t=io.resolve(t))===(e=io.resolve(e)))return"";for(var n=1;n<t.length&&47===t.charCodeAt(n);++n);for(var o=t.length,a=o-n,i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var r=e.length-i,s=a<r?a:r,l=-1,c=0;c<=s;++c){if(c===s){if(r>s){if(47===e.charCodeAt(i+c))return e.slice(i+c+1);if(0===c)return e.slice(i+c)}else a>s&&(47===t.charCodeAt(n+c)?l=c:0===c&&(l=0));break}var d=t.charCodeAt(n+c);if(d!==e.charCodeAt(i+c))break;47===d&&(l=c)}var u="";for(c=n+l+1;c<=o;++c)c!==o&&47!==t.charCodeAt(c)||(0===u.length?u+="..":u+="/..");return u.length>0?u+e.slice(i+l):(i+=l,47===e.charCodeAt(i)&&++i,e.slice(i))},_makeLong:function(t){return t},dirname:function(t){if(oo(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,o=-1,a=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');oo(t);var n,o=0,a=-1,i=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var r=e.length-1,s=-1;for(n=t.length-1;n>=0;--n){var l=t.charCodeAt(n);if(47===l){if(!i){o=n+1;break}}else-1===s&&(i=!1,s=n+1),r>=0&&(l===e.charCodeAt(r)?-1==--r&&(a=n):(r=-1,a=s))}return o===a?a=s:-1===a&&(a=t.length),t.slice(o,a)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!i){o=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":t.slice(o,a)},extname:function(t){oo(t);for(var e=-1,n=0,o=-1,a=!0,i=0,r=t.length-1;r>=0;--r){var s=t.charCodeAt(r);if(47!==s)-1===o&&(a=!1,o=r+1),46===s?-1===e?e=r:1!==i&&(i=1):-1!==e&&(i=-1);else if(!a){n=r+1;break}}return-1===e||-1===o||0===i||1===i&&e===o-1&&e===n+1?"":t.slice(e,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+o:n+t+o:o}("/",t)},parse:function(t){oo(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,o=t.charCodeAt(0),a=47===o;a?(e.root="/",n=1):n=0;for(var i=-1,r=0,s=-1,l=!0,c=t.length-1,d=0;c>=n;--c)if(47!==(o=t.charCodeAt(c)))-1===s&&(l=!1,s=c+1),46===o?-1===i?i=c:1!==d&&(d=1):-1!==i&&(d=-1);else if(!l){r=c+1;break}return-1===i||-1===s||0===d||1===d&&i===s-1&&i===r+1?-1!==s&&(e.base=e.name=0===r&&a?t.slice(1,s):t.slice(r,s)):(0===r&&a?(e.name=t.slice(1,i),e.base=t.slice(1,s)):(e.name=t.slice(r,i),e.base=t.slice(r,s)),e.ext=t.slice(i,s)),r>0?e.dir=t.slice(0,r-1):a&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};io.posix=io;var ro=io,so=no(ro);t("PluginFactory",class{constructor(){this.urlReg=/^http[s]?:\/\/[^\s]*/,this.cache=new Map,this.pluginCache=new Map,this.pluginCodes=[],this.predefinedPlugins=new Map,this.ignoreRules=[],this.loadQueue=new Map}isIgnore(t){return this.ignoreRules.some((e=>"string"==typeof e?t===e:e.test(t)))}setDevIgnore(t){this.ignoreRules.push(t)}registerPredefinedPlugin(t){this.predefinedPlugins.set(t.name,t)}register(t){this.pluginCodes.forEach((e=>{t.use(e)}))}async loadPredefinedPlugin(t){if(this.predefinedPlugins.has(t)){const e=this.predefinedPlugins.get(t);e&&await this.loadPluginRef(e.name,e.path)}}setPluginCode(t){this.pluginCodes.push(t),$t.useComponent.callSync(null,t)}async loadPlugin(t){if(!0===t.runtimeObject){const e=t;if(e){const t=e.rtobjectName,n=e.rtobjectRepo;if(this.isIgnore(n))return!0;if(this.pluginCache.has(t))return!0;if(this.loadQueue.has(n)){const t=await this.loadQueue.get(n);try{return await t}catch(t){return!1}}try{const t=this.loadPluginRef(e.rtobjectName,e.rtobjectRepo);this.loadQueue.set(n,t);return await t}catch(t){throw new G(e,ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"))}finally{this.loadQueue.delete(n)}}}return!1}async loadPluginRef(t,e){if(this.isIgnore(e))return!0;if(this.pluginCache.has(t))return!0;let n=null;{const t=e,o=this.urlReg.test(t)?"".concat(t,"/package.json"):"".concat(ibiz.env.pluginBaseUrl,"/").concat(ro.join(t,"package.json")),a=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:o});if(200!==a.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));n=a.data}const o=new Mt(t,e,n);if(o){await this.loadPluginExternal(o.config);try{return await this.loadScript(o),this.pluginCache.set(t,o),!0}catch(t){ibiz.log.error(t)}}return!1}async loadScript(t){const e=t.repo,{name:n,system:o,styles:a=[]}=t.config;let i="";if(i=ro.join(e,o),i){if(this.cache.has(i))return;let t=null;const o=this.parseUrl(i),r=("string"==typeof a?[a]:a).map((t=>this.parseUrl(so.join(e,t))));if(System.addImportMap({imports:{[n]:o},styles:{[n]:r}}),t=await System.import(n),!t)throw new j(ibiz.i18n.t("vue3Util.plugin.fileContentFormat"));if(!t.default)throw new j(ibiz.i18n.t("vue3Util.plugin.failedRemotePluginLoad"));this.setPluginCode(t.default),this.cache.set(i,!0)}}parseUrl(t,e=ibiz.env.pluginBaseUrl){if(this.urlReg.test(t))return t;let n="";n=this.urlReg.test(e)?t.startsWith("/")?e+t:"".concat(e,"/").concat(t):"".concat(ro.join(e,t));const{origin:o,pathname:a}=window.location;return a.endsWith("/")&&n.startsWith("/")&&(n=n.substring(1)),!1===this.urlReg.test(n)&&(n="".concat(o).concat(a).concat(n)),n}async loadPluginExternal(t){if(!t["systemjs-importmap"])return;const e=this.handleSystemImportMap(t["systemjs-importmap"]);if(e.packages){const t=e.packages;for(const e in t){const n=t[e],o=await ibiz.net.axios({method:"get",headers:{"Access-Control-Allow-Origin":"*"},url:n});if(200!==o.status)throw new Error(ibiz.i18n.t("vue3Util.plugin.failureConfigurationLoad"));await this.loadPluginExternal(o.data)}}System.addImportMap(e)}handleSystemImportMap(t){if(t){if(t.packages){const e=t.packages;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.imports){const e=t.imports;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]=this.parseUrl(o,t.baseUrl)}}if(t.styles){const e=t.styles;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];e[n]="string"==typeof o?this.parseUrl(o,t.baseUrl):o.map((e=>this.parseUrl(e,t.baseUrl)))}}return t}return null}});class lo{constructor(t,e,n){this.required=!0,e&&(this.default=e),n&&(this.validator=n),this.type=t}}function co(){return{value:String,controller:new lo(Object),data:new lo(Object),disabled:{type:Boolean},readonly:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},overflowMode:{type:String},controlParams:{type:Object,required:!1}}}function uo(){return{hasError:{type:Boolean}}}function po(){return{...co(),value:[String,Number]}}function ho(){return{...co(),value:Number}}function mo(){return{...co(),value:String}}function vo(){return{...co(),value:[String,Number,Object,Array]}}function fo(){return{...co(),value:[String,Number]}}function go(){return{...co(),value:[String,Number]}}function yo(){return{...co(),value:[String,Number]}}function wo(){return{...co(),value:[String,Array,Object,Number]}}function Co(){return{...co(),value:[String,Number]}}function bo(){return{...co(),value:[String,Number]}}function Io(){return{...co(),value:[String,Number]}}function Po(){return{...co(),value:[String,Number]}}function Do(){return{...co(),value:[String,Number]}}function Eo(){return{...co(),value:[String,Number]}}function No(){return{...co(),value:[String,Number,Array]}}function Oo(){return{...co(),value:[String,Number]}}function Ao(){return{...co(),value:[String,Number]}}function To(){return{...co(),value:[String,Number]}}function So(){return{...co(),value:String}}function xo(){return{...co(),value:[String,Number]}}function zo(){return{...co(),value:String,language:{type:String},theme:{type:String}}}function Ro(){return{...co(),value:String}}function Lo(){return{...co(),data:{type:Object,required:!1},controller:{type:Object,required:!1},disabled:{type:Boolean,required:!1}}}function Bo(){return{...co(),value:[Array,Array]}}function jo(){return{...co(),value:String}}function Vo(){return{...co(),value:String}}t("RequiredProp",lo);t("en",{vue3Util:{common:{undefined:"undefined",onFoundCorrespondingPart:"Undefined adapter with no corresponding part found",noFoundViewModel:"View model not found",noSupportLoadingDynamic:"{codeName}No entity, do not support loading dynamic models at this time"},control:{unsupportedPanel:"Unsupported panel items: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"No data object name config",noSupportedDataSourceType:"The data source type {dataSourceType} is not supported",noConfiguredEntityLogic:"No entity logic config",noConfiguredEntity:"No entity config",noReturnValue:"The entity logic {appDELogicId} has no return value",noAttribute:"There is no {dataName} attribute in the global variable.",noConfiguredScript:"No javaScript config",noConfiguerdEntityBehanior:"No entity behavior config",sessionView:"The session to which the view is bound does not exist {dataName}",viewStateAttribute:"There is no {dataName} attribute in the view state",noImplementMethod:"Method not implemented.",noProvidedSlot:"No {id} slot provided",cannotEmpty:"{caption} cannot be empty",unadaptedLayout:"Unadapted layout placeholder {layoutPos}",placeholderIdentifier:"The placeholder identifier for panel member {id} of view {viewCodeName} is:",refresh:"Refresh",wxQrcodeCaption:"Please use wechat to scan the QR code to log in"},plugin:{failureConfigurationLoad:"Configuration load failure",failedRemotePluginLoad:"Remote Plugin failed to load, Remote Plugin did not find [default] Default Export",fileContentFormat:"Remote plugin failed to load, file not found or file content format is incorrect"},use:{control:{parameterChanges:"Context or view parameter changes for {id}:",stateChange:"Part [{name}] state change"},focusBlur:{noFocus:"No focus, no out-of-focus triggering"},view:{stateChange:"View [{name}] state change"}},util:{noInjected:"The createVueApp method is not injected.",convertString:"Failed to convert to string",viewIdentifiers:"View identifiers do not exist for {depth} level routes",noFoundView:"View not found {viewCodeName}",routeCorrectly:"Cannot get the route correctly, could be a dependency issue."},view:{redirectionProgress:"Redirection in progress",viewType:"View type {viewType} is not supported yet.",noTeleportTag:"No teleportTag was found for part {name}.",embeddedRedirectionView:"Embedded redirection view does not support url jumping",insufficientRedirection:"Insufficient redirection parameters to jump",toDoList:"To-Do List Redirection"}}}),t("zhCn",{vue3Util:{common:{undefined:"未定义",onFoundCorrespondingPart:"未定义未找到对应部件的适配器",noFoundViewModel:"未找到视图模型",noSupportLoadingDynamic:"{codeName}无实体,暂不支持加载动态模型"},control:{unsupportedPanel:"暂未支持的面板项: {id} - {itemType}"},panelComponent:{noConfiguardDataObject:"没有配置数据对象名称",noSupportedDataSourceType:"数据源类型{dataSourceType}暂未支持",noConfiguredEntityLogic:"没有配置实体逻辑",noConfiguredEntity:"没有配置实体",noReturnValue:"实体逻辑{appDELogicId}没有返回值",noAttribute:"全局变量里没有{dataName}属性",noConfiguredScript:"没有配置脚本代码",noConfiguerdEntityBehanior:"没有配置实体行为",sessionView:"绑定视图的会话不存在{dataName}",viewStateAttribute:"视图state里没有{dataName}属性",noImplementMethod:"未执行的方法",noProvidedSlot:"未提供{id}插槽",cannotEmpty:"{caption} 不能为空",unadaptedLayout:"未适配的布局占位{layoutPos}",placeholderIdentifier:"视图{viewCodeName}的面板成员{id}的占位标识是:",refresh:"刷新",wxQrcodeCaption:"请使用微信扫描二维码登录"},plugin:{failureConfigurationLoad:"配置加载失败",failedRemotePluginLoad:"远程插件加载失败, 远程插件未找到[default]默认导出",fileContentFormat:"远程插件加载失败, 未找到文件或文件内容格式不正确"},use:{control:{parameterChanges:"{id}的上下文或视图参数变更:",stateChange:"部件 [{name}] state 变更"},focusBlur:{noFocus:"没有聚焦,不触发失焦"},view:{stateChange:"视图 [{name}] state 变更"}},util:{noInjected:"没有注入createVueApp方法",convertString:"转换成字符串失败",viewIdentifiers:"第{depth}级路由不存在视图标识",noFoundView:"找不到视图{viewCodeName}",routeCorrectly:"无法正确获取route,可能是依赖问题"},view:{redirectionProgress:"重定向跳转中",viewType:"视图类型{viewType}暂未支持",noTeleportTag:"没有找到部件{name}的teleportTag",embeddedRedirectionView:"嵌入重定向视图不支持url跳转",insufficientRedirection:"重定向参数不足无法跳转",toDoList:"待办列表重定向"}}})}}}));
|