@ibiz-template/vue3-components 0.7.41-alpha.161 → 0.7.41-alpha.162

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.
@@ -1 +1 @@
1
- System.register(["./index-tdETtwyA.js","@ibiz-template/model-helper","@ibiz-template/vue3-util","qs","@ibiz-template/core","vue","@ibiz-template/runtime","qx-util","lodash-es","element-plus","ramda","@floating-ui/dom","interactjs","dayjs","vuedraggable","@wangeditor/editor","@ibiz-template/devtool","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","axios","dayjs/plugin/customParseFormat","vue-i18n"],function(e){"use strict";return{setters:[function(i){e({AIChatUtil:i.d1,ActionBarPortlet:i.aM,AppDataUploadViewEngine:i.c6,AppFuncBlockProvider:i.df,AppRouter:i.de,AppSwitchController:i.b9,AppSwitchState:i.br,AppUtil:i.cY,ArrowLeftBold:i.da,ArrowRightBold:i.db,AuthCaptchaController:i.ba,AuthCaptchaState:i.bs,AuthGuard:i.dc,AuthUserinfoController:i.bb,BottomSideMenuController:i.b4,CalendarExpViewEngine:i.c7,CalendarViewEngine:i.c8,ChartExpViewEngine:i.c9,ChartPortlet:i.aE,ChartViewEngine:i.ca,ConfirmUtil:i.cR,ContainerPortlet:i.ax,CoopPosController:i.bc,CoopPosState:i.bt,CustomViewEngine:i.cb,DEIndexViewEngine:i.ce,DRBarController:i.ar,DRTabController:i.at,DataViewControlProvider:i.a2,DataViewEngine:i.c2,DataViewExpViewEngine:i.cd,DoingNotice:i.D,EditView2Engine:i.cg,EditView3Engine:i.ch,EditView4Engine:i.ci,EditViewEngine:i.cf,ErrorView:i.bZ,ExpViewEngine:i.cj,ExtendMenuBase:i.bq,ExtendMenuBaseController:i.b5,FilterPortlet:i.aQ,FormPickupDataViewEngine:i.ck,FullscreenUtil:i.cZ,GanttViewEngine:i.cl,GlobalSearchController:i.bd,GlobalSearchState:i.bu,GridExpViewEngine:i.cm,GridViewEngine:i.c0,HtmlPortlet:i.aK,IBizActionBarPortlet:i.aL,IBizActionToolbar:i.e,IBizAppMenuControl:i.m,IBizAppMenuIconViewControl:i.n,IBizAuthUserinfo:i.bG,IBizCalendarControl:i.aR,IBizCalendarExpBarControl:i.aj,IBizCaptionBarControl:i.a0,IBizChartControl:i.ao,IBizChartExpBarControl:i.ak,IBizChartPortlet:i.aD,IBizCol:i.b,IBizCommonComponents:i.a,IBizContainerPortlet:i.aw,IBizContextMenuControl:i.b1,IBizDRBarControl:i.aq,IBizDRTabControl:i.as,IBizDashboardControl:i.av,IBizDataViewControl:i.a1,IBizDataViewExpBarControl:i.ai,IBizDynamicGridFieldEditColumn:i.G,IBizEditFormControl:i.Y,IBizEditor:i.bT,IBizFilterPortlet:i.aP,IBizFormButton:i.Q,IBizFormButtonList:i.W,IBizFormControl:i.Z,IBizFormDRUIPart:i.R,IBizFormGroupPanel:i.L,IBizFormIFrame:i.X,IBizFormItem:i.M,IBizFormItemContainer:i.N,IBizFormMDCtrl:i.S,IBizFormPage:i.O,IBizFormPageItem:i.P,IBizFormRawItem:i.T,IBizFormTabPage:i.V,IBizFormTabPanel:i.U,IBizGanttControl:i.b0,IBizGridColumnHeader:i.H,IBizGridControl:i.o,IBizGridExpBarControl:i.ah,IBizGridFieldColumn:i.y,IBizGridFieldEditColumn:i.A,IBizGridGroupColumn:i.F,IBizGridUAColumn:i.z,IBizHtmlPortlet:i.aJ,IBizIndexActions:i.bR,IBizKanbanControl:i.aV,IBizListControl:i.J,IBizListExpBarControl:i.ag,IBizListPortlet:i.aH,IBizMEditViewPanelControl:i.aZ,IBizMapControl:i.a_,IBizMenuPortlet:i.aB,IBizNavPosIndex:i.bJ,IBizPanelAppTitle:i.bL,IBizPanelButton:i.bK,IBizPanelComponents:i.b3,IBizPanelIndexViewSearch:i.bQ,IBizPanelTabPanel:i.bN,IBizPickupViewPanelControl:i.ad,IBizRawItem:i.f,IBizRawItemPortlet:i.aF,IBizReportPanelControl:i.a$,IBizReportPortlet:i.aN,IBizRow:i.d,IBizSearchBarControl:i.an,IBizSearchFormControl:i.K,IBizSortBar:i.l,IBizSplit:i.j,IBizSplitContainer:i.bP,IBizSplitTrigger:i.k,IBizSubAppRefView:i.bY,IBizTabExpPanelControl:i.ae,IBizToolbarControl:i.$,IBizTreeControl:i.a4,IBizTreeExpBarControl:i.af,IBizTreeGridControl:i.aY,IBizTreeGridExControl:i.aW,IBizUserAction:i.bS,IBizViewEngine:i.b$,IBizViewPanelControl:i.b2,IBizViewPortlet:i.az,IBizVue3:i.I,IBizWFStepTraceView:i.bX,IBizWizardPanelControl:i.ap,InLineAIUtil:i.d0,IndexBlankPlaceholderController:i.be,IndexBlankPlaceholderState:i.bv,IndexViewEngine:i.c1,KanbanViewEngine:i.cn,LeftSideMenuController:i.b6,ListExpViewEngine:i.co,ListPortlet:i.aI,ListViewEngine:i.cp,LoadingUtil:i.cO,LoginView:i.bW,LoginViewEngine:i.cq,MDCustomViewEngine:i.cc,MEditView9Engine:i.cs,MPickupView2Engine:i.cu,MPickupViewEngine:i.ct,MapViewEngine:i.cr,MenuPortlet:i.aC,MessageUtil:i.cP,ModalUtil:i.cQ,NavBreadcrumbController:i.bf,NavBreadcrumbState:i.bw,NavPosIndexController:i.bI,NavPosIndexState:i.bH,NavTabsController:i.bg,NavTabsState:i.bx,NoticeUtil:i.cW,NotificationUtil:i.cS,OpenViewUtil:i.cT,OptViewEngine:i.c3,OverlayController:i.cU,PanelAppLoginViewController:i.bh,PanelAppLoginViewState:i.by,PanelAppTitleController:i.bM,PanelAppTitleState:i.bz,PanelButtonController:i.bi,PanelButtonListController:i.bj,PanelButtonListState:i.bA,PanelButtonState:i.bB,PanelContainerGroupController:i.bk,PanelContainerGroupState:i.bC,PanelIndexViewSearchController:i.bl,PanelRememberMeController:i.bm,PanelRememberMeState:i.bD,PanelTabPanelController:i.bn,PanelTabPanelState:i.bE,PanelViewEngine:i.cv,PickupDataViewEngine:i.cw,PickupGridViewEngine:i.cx,PickupTreeViewEngine:i.cy,PickupView2Engine:i.cA,PickupViewEngine:i.cz,PortalViewEngine:i.cB,PortletLayout:i.ay,PrintPreviewUtil:i.d5,QrcodeUtil:i.d7,RawItemPortlet:i.aG,RenderUtil:i.cX,ReportPortlet:i.aO,ReportViewEngine:i.cC,RightSideMenuController:i.b7,ScreenShotUtil:i.d2,SearchFormButtonsController:i.bo,SplitContainerController:i.bO,SplitContainerState:i.bF,SubAppRefViewEngine:i.cD,TabExpViewEngine:i.c4,TabSearchViewEngine:i.cE,TopSideMenuController:i.b8,TreeExpViewEngine:i.c5,TreeGridExViewEngine:i.cF,TreeGridViewEngine:i.cG,TreeViewEngine:i.cH,UnauthorizedView:i.b_,View403:i.bV,View404:i.bU,ViewMsgPosController:i.bp,ViewPortlet:i.aA,WFDynaActionViewEngine:i.cI,WFDynaEditView3Engine:i.cK,WFDynaEditViewEngine:i.cJ,WFDynaStartViewEngine:i.cL,WFStepDataViewEngine:i.cM,WizardViewEngine:i.cN,convertBtnType:i.c$,findChildItems:i.a9,findNodeData:i.a5,formatNodeDropType:i.a7,getNewNodeControlPanel:i.ab,getNodeControlPanel:i.aa,getRelativePathWithoutRoot:i.d8,getWeekRange:i.aS,i18n:i.i,isTimeBetween:i.aT,parseHtml:i.d9,renderChildColumn:i.r,renderColumn:i.p,renderFieldColumn:i.q,runApp:i.dd,splitPathToSegments:i.d3,useAllEdit:i.C,useAppDRTab:i.au,useAppGridBase:i.v,useAppGridPagination:i.t,useAppTreeBase:i.a8,useCalendarLegend:i.aU,useCellEdit:i.B,useContextMenu:i.d6,useDataViewSkeleton:i.a3,useElTreeUtil:i.a6,useExpBarRender:i.al,useFocusByEnter:i.c_,useGridDraggable:i.x,useGridHeaderStyle:i.w,useGridRowEditPopover:i.u,useITableEvent:i.s,useLoadMoreUtil:i.ac,usePagination:i.cV,useRowEdit:i.E,useTreeGridExRowEditPopover:i.aX,useWatchRouteChange:i.am,validateRouteSegments:i.d4})},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}});
1
+ System.register(["./index-DWRQ9IG6.js","@ibiz-template/model-helper","@ibiz-template/vue3-util","qs","@ibiz-template/core","vue","@ibiz-template/runtime","qx-util","lodash-es","element-plus","ramda","@floating-ui/dom","interactjs","dayjs","vuedraggable","@wangeditor/editor","@ibiz-template/devtool","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","axios","dayjs/plugin/customParseFormat","vue-i18n"],function(e){"use strict";return{setters:[function(i){e({AIChatUtil:i.d1,ActionBarPortlet:i.aM,AppDataUploadViewEngine:i.c6,AppFuncBlockProvider:i.df,AppRouter:i.de,AppSwitchController:i.b9,AppSwitchState:i.br,AppUtil:i.cY,ArrowLeftBold:i.da,ArrowRightBold:i.db,AuthCaptchaController:i.ba,AuthCaptchaState:i.bs,AuthGuard:i.dc,AuthUserinfoController:i.bb,BottomSideMenuController:i.b4,CalendarExpViewEngine:i.c7,CalendarViewEngine:i.c8,ChartExpViewEngine:i.c9,ChartPortlet:i.aE,ChartViewEngine:i.ca,ConfirmUtil:i.cR,ContainerPortlet:i.ax,CoopPosController:i.bc,CoopPosState:i.bt,CustomViewEngine:i.cb,DEIndexViewEngine:i.ce,DRBarController:i.ar,DRTabController:i.at,DataViewControlProvider:i.a2,DataViewEngine:i.c2,DataViewExpViewEngine:i.cd,DoingNotice:i.D,EditView2Engine:i.cg,EditView3Engine:i.ch,EditView4Engine:i.ci,EditViewEngine:i.cf,ErrorView:i.bZ,ExpViewEngine:i.cj,ExtendMenuBase:i.bq,ExtendMenuBaseController:i.b5,FilterPortlet:i.aQ,FormPickupDataViewEngine:i.ck,FullscreenUtil:i.cZ,GanttViewEngine:i.cl,GlobalSearchController:i.bd,GlobalSearchState:i.bu,GridExpViewEngine:i.cm,GridViewEngine:i.c0,HtmlPortlet:i.aK,IBizActionBarPortlet:i.aL,IBizActionToolbar:i.e,IBizAppMenuControl:i.m,IBizAppMenuIconViewControl:i.n,IBizAuthUserinfo:i.bG,IBizCalendarControl:i.aR,IBizCalendarExpBarControl:i.aj,IBizCaptionBarControl:i.a0,IBizChartControl:i.ao,IBizChartExpBarControl:i.ak,IBizChartPortlet:i.aD,IBizCol:i.b,IBizCommonComponents:i.a,IBizContainerPortlet:i.aw,IBizContextMenuControl:i.b1,IBizDRBarControl:i.aq,IBizDRTabControl:i.as,IBizDashboardControl:i.av,IBizDataViewControl:i.a1,IBizDataViewExpBarControl:i.ai,IBizDynamicGridFieldEditColumn:i.G,IBizEditFormControl:i.Y,IBizEditor:i.bT,IBizFilterPortlet:i.aP,IBizFormButton:i.Q,IBizFormButtonList:i.W,IBizFormControl:i.Z,IBizFormDRUIPart:i.R,IBizFormGroupPanel:i.L,IBizFormIFrame:i.X,IBizFormItem:i.M,IBizFormItemContainer:i.N,IBizFormMDCtrl:i.S,IBizFormPage:i.O,IBizFormPageItem:i.P,IBizFormRawItem:i.T,IBizFormTabPage:i.V,IBizFormTabPanel:i.U,IBizGanttControl:i.b0,IBizGridColumnHeader:i.H,IBizGridControl:i.o,IBizGridExpBarControl:i.ah,IBizGridFieldColumn:i.y,IBizGridFieldEditColumn:i.A,IBizGridGroupColumn:i.F,IBizGridUAColumn:i.z,IBizHtmlPortlet:i.aJ,IBizIndexActions:i.bR,IBizKanbanControl:i.aV,IBizListControl:i.J,IBizListExpBarControl:i.ag,IBizListPortlet:i.aH,IBizMEditViewPanelControl:i.aZ,IBizMapControl:i.a_,IBizMenuPortlet:i.aB,IBizNavPosIndex:i.bJ,IBizPanelAppTitle:i.bL,IBizPanelButton:i.bK,IBizPanelComponents:i.b3,IBizPanelIndexViewSearch:i.bQ,IBizPanelTabPanel:i.bN,IBizPickupViewPanelControl:i.ad,IBizRawItem:i.f,IBizRawItemPortlet:i.aF,IBizReportPanelControl:i.a$,IBizReportPortlet:i.aN,IBizRow:i.d,IBizSearchBarControl:i.an,IBizSearchFormControl:i.K,IBizSortBar:i.l,IBizSplit:i.j,IBizSplitContainer:i.bP,IBizSplitTrigger:i.k,IBizSubAppRefView:i.bY,IBizTabExpPanelControl:i.ae,IBizToolbarControl:i.$,IBizTreeControl:i.a4,IBizTreeExpBarControl:i.af,IBizTreeGridControl:i.aY,IBizTreeGridExControl:i.aW,IBizUserAction:i.bS,IBizViewEngine:i.b$,IBizViewPanelControl:i.b2,IBizViewPortlet:i.az,IBizVue3:i.I,IBizWFStepTraceView:i.bX,IBizWizardPanelControl:i.ap,InLineAIUtil:i.d0,IndexBlankPlaceholderController:i.be,IndexBlankPlaceholderState:i.bv,IndexViewEngine:i.c1,KanbanViewEngine:i.cn,LeftSideMenuController:i.b6,ListExpViewEngine:i.co,ListPortlet:i.aI,ListViewEngine:i.cp,LoadingUtil:i.cO,LoginView:i.bW,LoginViewEngine:i.cq,MDCustomViewEngine:i.cc,MEditView9Engine:i.cs,MPickupView2Engine:i.cu,MPickupViewEngine:i.ct,MapViewEngine:i.cr,MenuPortlet:i.aC,MessageUtil:i.cP,ModalUtil:i.cQ,NavBreadcrumbController:i.bf,NavBreadcrumbState:i.bw,NavPosIndexController:i.bI,NavPosIndexState:i.bH,NavTabsController:i.bg,NavTabsState:i.bx,NoticeUtil:i.cW,NotificationUtil:i.cS,OpenViewUtil:i.cT,OptViewEngine:i.c3,OverlayController:i.cU,PanelAppLoginViewController:i.bh,PanelAppLoginViewState:i.by,PanelAppTitleController:i.bM,PanelAppTitleState:i.bz,PanelButtonController:i.bi,PanelButtonListController:i.bj,PanelButtonListState:i.bA,PanelButtonState:i.bB,PanelContainerGroupController:i.bk,PanelContainerGroupState:i.bC,PanelIndexViewSearchController:i.bl,PanelRememberMeController:i.bm,PanelRememberMeState:i.bD,PanelTabPanelController:i.bn,PanelTabPanelState:i.bE,PanelViewEngine:i.cv,PickupDataViewEngine:i.cw,PickupGridViewEngine:i.cx,PickupTreeViewEngine:i.cy,PickupView2Engine:i.cA,PickupViewEngine:i.cz,PortalViewEngine:i.cB,PortletLayout:i.ay,PrintPreviewUtil:i.d5,QrcodeUtil:i.d7,RawItemPortlet:i.aG,RenderUtil:i.cX,ReportPortlet:i.aO,ReportViewEngine:i.cC,RightSideMenuController:i.b7,ScreenShotUtil:i.d2,SearchFormButtonsController:i.bo,SplitContainerController:i.bO,SplitContainerState:i.bF,SubAppRefViewEngine:i.cD,TabExpViewEngine:i.c4,TabSearchViewEngine:i.cE,TopSideMenuController:i.b8,TreeExpViewEngine:i.c5,TreeGridExViewEngine:i.cF,TreeGridViewEngine:i.cG,TreeViewEngine:i.cH,UnauthorizedView:i.b_,View403:i.bV,View404:i.bU,ViewMsgPosController:i.bp,ViewPortlet:i.aA,WFDynaActionViewEngine:i.cI,WFDynaEditView3Engine:i.cK,WFDynaEditViewEngine:i.cJ,WFDynaStartViewEngine:i.cL,WFStepDataViewEngine:i.cM,WizardViewEngine:i.cN,convertBtnType:i.c$,findChildItems:i.a9,findNodeData:i.a5,formatNodeDropType:i.a7,getNewNodeControlPanel:i.ab,getNodeControlPanel:i.aa,getRelativePathWithoutRoot:i.d8,getWeekRange:i.aS,i18n:i.i,isTimeBetween:i.aT,parseHtml:i.d9,renderChildColumn:i.r,renderColumn:i.p,renderFieldColumn:i.q,runApp:i.dd,splitPathToSegments:i.d3,useAllEdit:i.C,useAppDRTab:i.au,useAppGridBase:i.v,useAppGridPagination:i.t,useAppTreeBase:i.a8,useCalendarLegend:i.aU,useCellEdit:i.B,useContextMenu:i.d6,useDataViewSkeleton:i.a3,useElTreeUtil:i.a6,useExpBarRender:i.al,useFocusByEnter:i.c_,useGridDraggable:i.x,useGridHeaderStyle:i.w,useGridRowEditPopover:i.u,useITableEvent:i.s,useLoadMoreUtil:i.ac,usePagination:i.cV,useRowEdit:i.E,useTreeGridExRowEditPopover:i.aX,useWatchRouteChange:i.am,validateRouteSegments:i.d4})},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}});
@@ -1 +1 @@
1
- System.register(["vue","@wangeditor/editor-for-vue","@wangeditor/editor","ramda","@ibiz-template/vue3-util","@ibiz-template/core","element-plus","./index-tdETtwyA.js","@ibiz-template/runtime","qx-util","lodash-es","@floating-ui/dom","interactjs","dayjs","qs","vuedraggable","@ibiz-template/devtool","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","axios","dayjs/plugin/customParseFormat","vue-i18n","@ibiz-template/model-helper"],function(e){"use strict";var t,o,l,a,i,n,s,r,c,d,u,m,h,v,b,f,p,g,y,C,w,z,x,S,k;return{setters:[function(e){t=e.defineComponent,o=e.withDirectives,l=e.createVNode,a=e.resolveDirective,i=e.resolveComponent,n=e.ref,s=e.shallowRef,r=e.watch,c=e.onBeforeUnmount,d=e.onMounted,u=e.nextTick,m=e.onUnmounted},function(e){h=e.Toolbar,v=e.Editor},function(e){b=e.t,f=e.i18nChangeLanguage},function(e){p=e.isNil},function(e){g=e.getHtmlEmits,y=e.getHtmlProps,C=e.useNamespace,w=e.useSemanticNode,z=e.useUIStore},function(e){x=e.awaitTimeout},function(e){S=e.ElMessageBox},function(e){k=e.h},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",t({name:"IBizHtml",props:y(),emits:g(),setup(e,{emit:t,slots:o}){var a;const i=C("html"),g=e.controller,{semanticClass:y,semanticStyle:I}=w(g),P=[{class:y("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{class:y("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{class:y("editor.hoverToolbar"),selector:".w-e-hover-bar"},{class:y("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{class:y("editor.toolbar"),selector:".w-e-toolbar"},{class:y("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{class:y("editor.input"),selector:".".concat(i.b("editor"))},{class:y("editor.footer"),selector:".".concat(i.b("footer"))},{class:y("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{class:y("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],H=[{style:I("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{style:I("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{style:I("editor.hoverToolbar"),selector:".w-e-hover-bar"},{style:I("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{style:I("editor.toolbar"),selector:".w-e-toolbar"},{style:I("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{style:I("editor.input"),selector:".".concat(i.b("editor"))},{style:I("editor.footer"),selector:".".concat(i.b("footer"))},{style:I("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{style:I("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],M=n(),T=n({});let E=null,U=0;const F=n(),A=s(),B=n(""),O=ibiz.util.file.getUploadHeaders(),D=n({...O}),L=n(""),V=n(!0),N=n(!1),j=n(!1),R=n(!1),K=n(!1);let q=!1;const J=g.model;J.editorParams&&(J.editorParams.enableEdit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableEdit)&&!e.readonly&&!e.disabled),J.editorParams.enableedit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableedit)&&!e.readonly&&!e.disabled),J.editorParams.enableFullScreen&&(R.value=g.toBoolean(J.editorParams.enableFullScreen)),J.editorParams.enablefullscreen&&(R.value=g.toBoolean(J.editorParams.enablefullscreen)),J.editorParams.enablenoaccess&&(q="true"===(null==(a=null==g?void 0:g.editorParams)?void 0:a.enablenoaccess))),e.readonly&&(N.value=!1,j.value=!0);r(()=>e.data,e=>{if(e){const t={...g.editorParams,enableNoAccess:q};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams));const o=ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,t);L.value=o.uploadUrl}},{immediate:!0,deep:!0});const Z=(e,t)=>{if(t)return!0},Y=e=>e,$=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:b("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:b("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:b("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:b("editor.image"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:b("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen","emoji"];if(g.chatCompletion&&$.unshift("aichart","|"),g.extraActions.length>0){const e=g.extraActions.map(e=>e.uiactionId.split("@")[0]);$.push(...e)}const _={excludeKeys:["group-video","emotion"],toolbarKeys:$},G=ibiz.i18n.getLang();f(G);const Q={placeholder:g.placeHolder,readOnly:N.value?j.value:e.readonly,MENU_CONF:{uploadImage:{server:L.value,fieldName:"file",maxFileSize:10485760,maxNumberOfFiles:10,allowedFileTypes:[],headers:D.value,withCredentials:!0,onBeforeUpload:e=>e,onProgress(e){console.log("progress",e)},onSuccess(e,t){ibiz.config.common.enableDownloadTicket&&!q&&t.ticket&&ibiz.util.file.setDownloadTicket(t.id,t.ticket),console.log("".concat(e.name," 上传成功"),t)},onFailed(e,t){console.log("".concat(e.name," 上传失败"),t)},onError(e,t,o){console.log("".concat(e.name," 上传出错"),t,o)},async customInsert(t,o){const l=((e,t)=>{const o={...g.editorParams,enableNoAccess:q};return o.exportparams&&(o.exportParams=JSON.parse(o.exportparams)),t&&t.folder&&(o.osscat=t.folder),o.globaldownloadprifix?o.globalDownloadPrifix="true"===o.globaldownloadprifix:o.globalDownloadPrifix=ibiz.config.common.globalDownloadPrifix,ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,o).downloadUrl})(e.data,t);let a=l.replace("%fileId%",t.id);const i=t.filename;if(ibiz.config.common.enableDownloadTicket&&!q){const n=await ibiz.util.file.getDownloadTicket(g.context,g.params,e.data,{fileId:t.id},g.downloadTicketParams);n&&n.ticket&&(a=l.replace("%fileId%",n.ticket),o(a,i,""))}else o(a,i,"")}},insertLink:{checkLink:Z,parseLinkUrl:Y},editLink:{checkLink:Z,parseLinkUrl:Y}},hoverbarKeys:k};let W;c(()=>{const e=A.value;null!=e&&e.destroy()});const X=o=>{A.value=o,g.onCreated(A.value),o.setHtml(B.value),o.on("aiClick",()=>{(async()=>{const o=g.model.appDataEntityId;if(!o||!g.deACMode)return;const{zIndex:l}=z(),a=l.increment();W=await ibiz.aiChatUtil.getAIChat();const{containerOptions:i,chatOptions:n}=await ibiz.aiChatUtil.getEditorExAIChatParams(g.editorParams,g.context,g.params,e.data,g.deACMode,{chatInstance:W,view:g.view,ctrl:g.ctrl}),s=await ibiz.aiChatUtil.getAIResourceOptions(g.context,g.params);let r=g.deACMode.logicName;g.editorParams.srfaichatcaption&&(r=ibiz.appUtil.resolveI18nText(g.editorParams.srfaichatcaption)),W.create({resourceOptions:s,containerOptions:{zIndex:a,...i},chatOptions:{caption:r,context:{...g.context},params:{...g.params,srfactag:g.deACMode.codeName},appDataEntityId:o,...n,action:(e,o)=>{"backfill"===e&&(N.value?B.value=o.realcontent||"":t("change",o.realcontent))}}})})()}),o.on("lineAiClick",()=>{const e=o.getEditableContainer().querySelector(".w-e-hover-bar");if(!e)return;const{offsetLeft:t,offsetTop:l,offsetHeight:a}=e,i=ibiz.inLineAIUtil.calcContextMenus(g.deACMode,e=>{g.doInLineAIUIAction(e,g.model.appId)});if(0===i.length)return;const n=o.getEditableContainer().getBoundingClientRect(),{zIndex:s}=z(),r=s.increment();ibiz.inLineAIUtil.showContextMenus(n.x+t,n.y+l+a,i,{zIndex:r,onClose:()=>{s.decrement()}})}),o.on("customAction",async e=>{const o=await g.doCustomUIAction(e.uiactionId,g.model.appId);o.length>0&&t("customAction",{tag:e.uiactionId,data:o})})},ee=o=>{const l=o.getHtml(),a="<p><br></p>"===l?"":l;a===e.value||""===a&&p(e.value)||!N.value&&o.isFocused()&&t("change",a)},te=e=>{},oe=e=>{t("focus")},le=e=>{t("blur")},ae=(e,t)=>{alert("【".concat(ibiz.i18n.t("editor.html.wangEditor.customTips"),"】").concat(t," - ").concat(e))},ie=(e,t,o)=>{o(!0)},ne=()=>{const e=A.value;null!=e&&e.disable()},se=()=>{const e=A.value;null!=e&&e.enable()};d(()=>{r(()=>e.value,(t,o)=>{t===o||"string"!=typeof e.value&&null!=t||u(null==t?()=>{B.value=""}:()=>{B.value=t})},{immediate:!0}),r(()=>e.disabled,(e,t)=>{e!==t&&(!0===e?ne():se())},{immediate:!0})});const re=()=>{j.value=!j.value,j.value?ne():(se(),A.value.focus(),(()=>{var t,o;if(e.value){const l=e.value.indexOf("</p>");if(l>=0){const e=null==(t=A.value.selection.anchor)?void 0:t.offset,a=null==(o=A.value.selection.anchor)?void 0:o.path;0===e&&a.length>0&&0===a[0]&&A.value.move(l-3)}}})())},ce=()=>{K.value=!K.value,u(()=>{j.value?ne():(se(),A.value.focus())})};return d(()=>{x(0,()=>{if(M.value&&F.value){const e=M.value.offsetHeight;E=new ResizeObserver(t=>{const o=t[0].contentRect.height;if(o!==U){const l={height:"".concat(e-t[0].contentRect.height+(0!==o?300:0),"px"),"toolbar-height":"".concat(o,"px")};T.value=i.cssVarBlock(l),U=o}}),E.observe(F.value.selector)}})}),m(()=>{g.onDestroyed(),E&&E.disconnect(),W&&W.close()}),{ns:i,cssVars:T,valueHtml:B,editorRef:A,childClass:P,childStyle:H,toolbarRef:F,htmlContent:M,editorConfig:Q,isFullScreen:K,hasEnableEdit:N,toolbarConfig:_,readonlyState:j,semanticClass:y,semanticStyle:I,mode:"default",enable:se,disable:ne,printHtml:()=>{const e=A.value;null!=e&&console.log(e.getHtml())},insertText:e=>{const t=A.value;null!=t&&t.insertText(e)},handleBlur:le,handleFocus:oe,customAlert:ae,customPaste:ie,handleChange:ee,renderFooter:()=>N.value?l("div",{class:[i.b("footer"),{[i.b("footer-dialog")]:K.value}]},[l("div",{class:i.be("footer","cancel"),onClick:()=>{e.value!==B.value?S({title:ibiz.i18n.t("editor.common.confirmCancel"),type:"warning",customClass:i.b("message"),message:l("div",{class:i.be("message","message-content")},[l("p",null,[ibiz.i18n.t("editor.common.confirmCancelPrompt")]),l("p",{class:i.bem("message","message-content","message-tip")},[ibiz.i18n.t("editor.common.cancelEditPrompt")])]),showCancelButton:!0,cancelButtonClass:i.be("message","message-cancel"),confirmButtonClass:i.be("message","message-comfire")}).then(()=>{B.value=e.value||"",re()}).catch(()=>{A.value.focus()}):re()}},[ibiz.i18n.t("app.cancel")]),l("div",{class:i.be("footer","save"),onClick:()=>(()=>{j.value=!0,A.value.disable();const e=B.value;t("change",e),K.value&&(K.value=!1)})()},[ibiz.i18n.t("app.save")])]):null,handleCreated:X,handleDestroyed:te,renderHeaserToolbar:()=>N.value||R.value?l("div",{class:i.b("custom-toolbar")},[N.value&&V.value&&j.value?l("i",{"aria-hidden":"true",class:["fa fa-edit",i.be("custom-toolbar","item")],title:ibiz.i18n.t("editor.html.enableedit"),onClick:()=>re()},null):null,R.value?K.value?l("i",{class:["fa fa-compress",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.reduce"),onClick:()=>ce()},null):l("i",{class:["fa fa-expand",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.expand"),onClick:()=>ce()},null):null]):null,renderEditorContent:()=>l("div",{ref:"htmlContent",class:[i.b("content"),i.is("editing",!j.value),y("editor.content")],style:{...T.value,...I("editor.content")}},[o.editorSwitchMenu?l("div",{class:i.b("menu")},[o.editorSwitchMenu()]):null,l(h,{ref:"toolbarRef",editor:A.value,"default-config":_,mode:"default",class:i.b("toolbar")},null),l(v,{class:[i.b("editor"),i.is("readonly",j.value)],modelValue:B.value,"onUpdate:modelValue":e=>B.value=e,"default-config":Q,mode:"default",onOnCreated:X,onOnChange:ee,onOnDestroyed:te,onOnFocus:oe,onOnBlur:le,oncustomAlert:ae,oncustomPaste:ie},null)]),changeFullScreenState:ce}},render(){const e=!!this.$slots.editorSwitchMenu;return this.isFullScreen?l(i("el-dialog"),{modelValue:this.isFullScreen,"onUpdate:modelValue":e=>this.isFullScreen=e,width:"80%",top:"10vh",class:[this.ns.b("dialog-full-screen"),this.ns.is("editing",!this.readonlyState)],onClose:()=>this.changeFullScreenState()},{default:()=>[o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])]}):o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-ai",!0),this.ns.is("enable-edit",!this.readonly&&!this.disabled),this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])}}))}}});
1
+ System.register(["vue","@wangeditor/editor-for-vue","@wangeditor/editor","ramda","@ibiz-template/vue3-util","@ibiz-template/core","element-plus","./index-DWRQ9IG6.js","@ibiz-template/runtime","qx-util","lodash-es","@floating-ui/dom","interactjs","dayjs","qs","vuedraggable","@ibiz-template/devtool","@imengyu/vue3-context-menu","vue-router","async-validator","dayjs/plugin/quarterOfYear","axios","dayjs/plugin/customParseFormat","vue-i18n","@ibiz-template/model-helper"],function(e){"use strict";var t,o,l,a,i,n,s,r,c,d,u,m,h,v,b,f,p,g,y,C,w,z,x,S,k;return{setters:[function(e){t=e.defineComponent,o=e.withDirectives,l=e.createVNode,a=e.resolveDirective,i=e.resolveComponent,n=e.ref,s=e.shallowRef,r=e.watch,c=e.onBeforeUnmount,d=e.onMounted,u=e.nextTick,m=e.onUnmounted},function(e){h=e.Toolbar,v=e.Editor},function(e){b=e.t,f=e.i18nChangeLanguage},function(e){p=e.isNil},function(e){g=e.getHtmlEmits,y=e.getHtmlProps,C=e.useNamespace,w=e.useSemanticNode,z=e.useUIStore},function(e){x=e.awaitTimeout},function(e){S=e.ElMessageBox},function(e){k=e.h},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",t({name:"IBizHtml",props:y(),emits:g(),setup(e,{emit:t,slots:o}){var a;const i=C("html"),g=e.controller,{semanticClass:y,semanticStyle:I}=w(g),P=[{class:y("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{class:y("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{class:y("editor.hoverToolbar"),selector:".w-e-hover-bar"},{class:y("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{class:y("editor.toolbar"),selector:".w-e-toolbar"},{class:y("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{class:y("editor.input"),selector:".".concat(i.b("editor"))},{class:y("editor.footer"),selector:".".concat(i.b("footer"))},{class:y("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{class:y("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],H=[{style:I("editor.customToolbar"),selector:".".concat(i.b("custom-toolbar"))},{style:I("editor.customToolbar.item"),selector:".".concat(i.be("custom-toolbar","item"))},{style:I("editor.hoverToolbar"),selector:".w-e-hover-bar"},{style:I("editor.hoverToolbar.item"),selector:".w-e-hover-bar .w-e-bar-item"},{style:I("editor.toolbar"),selector:".w-e-toolbar"},{style:I("editor.toolbar.item"),selector:".w-e-toolbar .w-e-bar-item"},{style:I("editor.input"),selector:".".concat(i.b("editor"))},{style:I("editor.footer"),selector:".".concat(i.b("footer"))},{style:I("editor.footer.cancel"),selector:".".concat(i.be("footer","cancel"))},{style:I("editor.footer.save"),selector:".".concat(i.be("footer","save"))}],M=n(),T=n({});let E=null,U=0;const F=n(),A=s(),B=n(""),O=ibiz.util.file.getUploadHeaders(),D=n({...O}),L=n(""),V=n(!0),N=n(!1),j=n(!1),R=n(!1),K=n(!1);let q=!1;const J=g.model;J.editorParams&&(J.editorParams.enableEdit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableEdit)&&!e.readonly&&!e.disabled),J.editorParams.enableedit&&(N.value=!0,j.value=!0,V.value=g.toBoolean(J.editorParams.enableedit)&&!e.readonly&&!e.disabled),J.editorParams.enableFullScreen&&(R.value=g.toBoolean(J.editorParams.enableFullScreen)),J.editorParams.enablefullscreen&&(R.value=g.toBoolean(J.editorParams.enablefullscreen)),J.editorParams.enablenoaccess&&(q="true"===(null==(a=null==g?void 0:g.editorParams)?void 0:a.enablenoaccess))),e.readonly&&(N.value=!1,j.value=!0);r(()=>e.data,e=>{if(e){const t={...g.editorParams,enableNoAccess:q};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams));const o=ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,t);L.value=o.uploadUrl}},{immediate:!0,deep:!0});const Z=(e,t)=>{if(t)return!0},Y=e=>e,$=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:b("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:b("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:b("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:b("editor.image"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:b("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen","emoji"];if(g.chatCompletion&&$.unshift("aichart","|"),g.extraActions.length>0){const e=g.extraActions.map(e=>e.uiactionId.split("@")[0]);$.push(...e)}const _={excludeKeys:["group-video","emotion"],toolbarKeys:$},G=ibiz.i18n.getLang();f(G);const Q={placeholder:g.placeHolder,readOnly:N.value?j.value:e.readonly,MENU_CONF:{uploadImage:{server:L.value,fieldName:"file",maxFileSize:10485760,maxNumberOfFiles:10,allowedFileTypes:[],headers:D.value,withCredentials:!0,onBeforeUpload:e=>e,onProgress(e){console.log("progress",e)},onSuccess(e,t){ibiz.config.common.enableDownloadTicket&&!q&&t.ticket&&ibiz.util.file.setDownloadTicket(t.id,t.ticket),console.log("".concat(e.name," 上传成功"),t)},onFailed(e,t){console.log("".concat(e.name," 上传失败"),t)},onError(e,t,o){console.log("".concat(e.name," 上传出错"),t,o)},async customInsert(t,o){const l=((e,t)=>{const o={...g.editorParams,enableNoAccess:q};return o.exportparams&&(o.exportParams=JSON.parse(o.exportparams)),t&&t.folder&&(o.osscat=t.folder),o.globaldownloadprifix?o.globalDownloadPrifix="true"===o.globaldownloadprifix:o.globalDownloadPrifix=ibiz.config.common.globalDownloadPrifix,ibiz.util.file.calcFileUpDownUrl(g.context,g.params,e,o).downloadUrl})(e.data,t);let a=l.replace("%fileId%",t.id);const i=t.filename;if(ibiz.config.common.enableDownloadTicket&&!q){const n=await ibiz.util.file.getDownloadTicket(g.context,g.params,e.data,{fileId:t.id},g.downloadTicketParams);n&&n.ticket&&(a=l.replace("%fileId%",n.ticket),o(a,i,""))}else o(a,i,"")}},insertLink:{checkLink:Z,parseLinkUrl:Y},editLink:{checkLink:Z,parseLinkUrl:Y}},hoverbarKeys:k};let W;c(()=>{const e=A.value;null!=e&&e.destroy()});const X=o=>{A.value=o,g.onCreated(A.value),o.setHtml(B.value),o.on("aiClick",()=>{(async()=>{const o=g.model.appDataEntityId;if(!o||!g.deACMode)return;const{zIndex:l}=z(),a=l.increment();W=await ibiz.aiChatUtil.getAIChat();const{containerOptions:i,chatOptions:n}=await ibiz.aiChatUtil.getEditorExAIChatParams(g.editorParams,g.context,g.params,e.data,g.deACMode,{chatInstance:W,view:g.view,ctrl:g.ctrl}),s=await ibiz.aiChatUtil.getAIResourceOptions(g.context,g.params);let r=g.deACMode.logicName;g.editorParams.srfaichatcaption&&(r=ibiz.appUtil.resolveI18nText(g.editorParams.srfaichatcaption)),W.create({resourceOptions:s,containerOptions:{zIndex:a,...i},chatOptions:{caption:r,context:{...g.context},params:{...g.params,srfactag:g.deACMode.codeName},appDataEntityId:o,...n,action:(e,o)=>{"backfill"===e&&(N.value?B.value=o.realcontent||"":t("change",o.realcontent))}}})})()}),o.on("lineAiClick",()=>{const e=o.getEditableContainer().querySelector(".w-e-hover-bar");if(!e)return;const{offsetLeft:t,offsetTop:l,offsetHeight:a}=e,i=ibiz.inLineAIUtil.calcContextMenus(g.deACMode,e=>{g.doInLineAIUIAction(e,g.model.appId)});if(0===i.length)return;const n=o.getEditableContainer().getBoundingClientRect(),{zIndex:s}=z(),r=s.increment();ibiz.inLineAIUtil.showContextMenus(n.x+t,n.y+l+a,i,{zIndex:r,onClose:()=>{s.decrement()}})}),o.on("customAction",async e=>{const o=await g.doCustomUIAction(e.uiactionId,g.model.appId);o.length>0&&t("customAction",{tag:e.uiactionId,data:o})})},ee=o=>{const l=o.getHtml(),a="<p><br></p>"===l?"":l;a===e.value||""===a&&p(e.value)||!N.value&&o.isFocused()&&t("change",a)},te=e=>{},oe=e=>{t("focus")},le=e=>{t("blur")},ae=(e,t)=>{alert("【".concat(ibiz.i18n.t("editor.html.wangEditor.customTips"),"】").concat(t," - ").concat(e))},ie=(e,t,o)=>{o(!0)},ne=()=>{const e=A.value;null!=e&&e.disable()},se=()=>{const e=A.value;null!=e&&e.enable()};d(()=>{r(()=>e.value,(t,o)=>{t===o||"string"!=typeof e.value&&null!=t||u(null==t?()=>{B.value=""}:()=>{B.value=t})},{immediate:!0}),r(()=>e.disabled,(e,t)=>{e!==t&&(!0===e?ne():se())},{immediate:!0})});const re=()=>{j.value=!j.value,j.value?ne():(se(),A.value.focus(),(()=>{var t,o;if(e.value){const l=e.value.indexOf("</p>");if(l>=0){const e=null==(t=A.value.selection.anchor)?void 0:t.offset,a=null==(o=A.value.selection.anchor)?void 0:o.path;0===e&&a.length>0&&0===a[0]&&A.value.move(l-3)}}})())},ce=()=>{K.value=!K.value,u(()=>{j.value?ne():(se(),A.value.focus())})};return d(()=>{x(0,()=>{if(M.value&&F.value){const e=M.value.offsetHeight;E=new ResizeObserver(t=>{const o=t[0].contentRect.height;if(o!==U){const l={height:"".concat(e-t[0].contentRect.height+(0!==o?300:0),"px"),"toolbar-height":"".concat(o,"px")};T.value=i.cssVarBlock(l),U=o}}),E.observe(F.value.selector)}})}),m(()=>{g.onDestroyed(),E&&E.disconnect(),W&&W.close()}),{ns:i,cssVars:T,valueHtml:B,editorRef:A,childClass:P,childStyle:H,toolbarRef:F,htmlContent:M,editorConfig:Q,isFullScreen:K,hasEnableEdit:N,toolbarConfig:_,readonlyState:j,semanticClass:y,semanticStyle:I,mode:"default",enable:se,disable:ne,printHtml:()=>{const e=A.value;null!=e&&console.log(e.getHtml())},insertText:e=>{const t=A.value;null!=t&&t.insertText(e)},handleBlur:le,handleFocus:oe,customAlert:ae,customPaste:ie,handleChange:ee,renderFooter:()=>N.value?l("div",{class:[i.b("footer"),{[i.b("footer-dialog")]:K.value}]},[l("div",{class:i.be("footer","cancel"),onClick:()=>{e.value!==B.value?S({title:ibiz.i18n.t("editor.common.confirmCancel"),type:"warning",customClass:i.b("message"),message:l("div",{class:i.be("message","message-content")},[l("p",null,[ibiz.i18n.t("editor.common.confirmCancelPrompt")]),l("p",{class:i.bem("message","message-content","message-tip")},[ibiz.i18n.t("editor.common.cancelEditPrompt")])]),showCancelButton:!0,cancelButtonClass:i.be("message","message-cancel"),confirmButtonClass:i.be("message","message-comfire")}).then(()=>{B.value=e.value||"",re()}).catch(()=>{A.value.focus()}):re()}},[ibiz.i18n.t("app.cancel")]),l("div",{class:i.be("footer","save"),onClick:()=>(()=>{j.value=!0,A.value.disable();const e=B.value;t("change",e),K.value&&(K.value=!1)})()},[ibiz.i18n.t("app.save")])]):null,handleCreated:X,handleDestroyed:te,renderHeaserToolbar:()=>N.value||R.value?l("div",{class:i.b("custom-toolbar")},[N.value&&V.value&&j.value?l("i",{"aria-hidden":"true",class:["fa fa-edit",i.be("custom-toolbar","item")],title:ibiz.i18n.t("editor.html.enableedit"),onClick:()=>re()},null):null,R.value?K.value?l("i",{class:["fa fa-compress",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.reduce"),onClick:()=>ce()},null):l("i",{class:["fa fa-expand",i.be("custom-toolbar","item")],"aria-hidden":"true",title:ibiz.i18n.t("editor.html.expand"),onClick:()=>ce()},null):null]):null,renderEditorContent:()=>l("div",{ref:"htmlContent",class:[i.b("content"),i.is("editing",!j.value),y("editor.content")],style:{...T.value,...I("editor.content")}},[o.editorSwitchMenu?l("div",{class:i.b("menu")},[o.editorSwitchMenu()]):null,l(h,{ref:"toolbarRef",editor:A.value,"default-config":_,mode:"default",class:i.b("toolbar")},null),l(v,{class:[i.b("editor"),i.is("readonly",j.value)],modelValue:B.value,"onUpdate:modelValue":e=>B.value=e,"default-config":Q,mode:"default",onOnCreated:X,onOnChange:ee,onOnDestroyed:te,onOnFocus:oe,onOnBlur:le,oncustomAlert:ae,oncustomPaste:ie},null)]),changeFullScreenState:ce}},render(){const e=!!this.$slots.editorSwitchMenu;return this.isFullScreen?l(i("el-dialog"),{modelValue:this.isFullScreen,"onUpdate:modelValue":e=>this.isFullScreen=e,width:"80%",top:"10vh",class:[this.ns.b("dialog-full-screen"),this.ns.is("editing",!this.readonlyState)],onClose:()=>this.changeFullScreenState()},{default:()=>[o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])]}):o(l("div",{class:[this.ns.b(),this.semanticClass("editor.root"),{[this.ns.b("editor-readonly")]:this.readonlyState},this.ns.is("show-ai",!0),this.ns.is("enable-edit",!this.readonly&&!this.disabled),this.ns.is("show-editor-switch-menu",e)],style:this.semanticStyle("editor.root")},[this.renderHeaserToolbar(),this.renderEditorContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null]),[[a("child-class"),this.childClass],[a("child-style"),this.childStyle]])}}))}}});