@ibiz-template/vue3-components 0.7.34 → 0.7.37-alpha.5
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/chart-IZpj2cdX.js +1 -0
- package/dist/index-2J-iBLG-.js +1 -0
- package/dist/index-Yhyr5LJS.js +1 -0
- package/dist/index-p59-xI3J.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/xlsx-util-rAKH_Qlc.js +2 -0
- package/es/common/action-toolbar/action-toolbar.d.ts +90 -0
- package/es/common/action-toolbar/action-toolbar.mjs +1 -1
- package/es/common/carousel/carousel.d.ts +141 -0
- package/es/common/carousel/carousel.mjs +1 -1
- package/es/common/carousel-card/carousel-card.d.ts +41 -0
- package/es/common/carousel-card/carousel-card.mjs +1 -1
- package/es/common/col/col.d.ts +53 -0
- package/es/common/col/col.mjs +1 -1
- package/es/common/coop-alert/coop-alert.d.ts +41 -0
- package/es/common/coop-alert/coop-alert.mjs +1 -1
- package/es/common/custom-filter-condition/custom-filter-condition.css +1 -0
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +998 -0
- package/es/common/custom-filter-condition/custom-filter-condition.mjs +286 -0
- package/es/common/custom-theme/custom-theme-model.d.ts +167 -0
- package/es/common/custom-theme/custom-theme-model.mjs +62 -0
- package/es/common/custom-theme/custom-theme.controller.d.ts +47 -0
- package/es/common/custom-theme/custom-theme.controller.mjs +6 -5
- package/es/common/custom-theme/custom-theme.css +1 -1
- package/es/common/custom-theme/custom-theme.d.ts +24 -0
- package/es/common/custom-theme/custom-theme.mjs +1 -1
- package/es/common/data-import/data-import.d.ts +57 -0
- package/es/common/data-import/data-import.mjs +1 -1
- package/es/common/data-import2/data-import2.d.ts +106 -0
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/data-import2-select/data-import2-select.d.ts +59 -0
- package/es/common/data-import2-select/data-import2-select.mjs +1 -1
- package/es/common/data-import2-table/data-import2-table.d.ts +56 -0
- package/es/common/data-import2-table/data-import2-table.mjs +1 -1
- package/es/common/doing-notice/doing-notice.d.ts +19 -0
- package/es/common/doing-notice/doing-notice.mjs +1 -1
- package/es/common/emoji-select/components/categories/categories.d.ts +30 -0
- package/es/common/emoji-select/components/categories/categories.mjs +1 -1
- package/es/common/emoji-select/components/categories/index.d.ts +1 -0
- package/es/common/emoji-select/components/category-label/category-label.d.ts +18 -0
- package/es/common/emoji-select/components/category-label/category-label.mjs +1 -1
- package/es/common/emoji-select/components/category-label/index.d.ts +1 -0
- package/es/common/emoji-select/components/emoji-item/emoji-item.d.ts +44 -0
- package/es/common/emoji-select/components/emoji-item/emoji-item.mjs +1 -1
- package/es/common/emoji-select/components/emoji-item/index.d.ts +1 -0
- package/es/common/emoji-select/components/emoji-list/emoji-list.d.ts +92 -0
- package/es/common/emoji-select/components/emoji-list/emoji-list.mjs +1 -1
- package/es/common/emoji-select/components/emoji-list/index.d.ts +1 -0
- package/es/common/emoji-select/components/index.d.ts +5 -0
- package/es/common/emoji-select/components/input-search/index.d.ts +1 -0
- package/es/common/emoji-select/components/input-search/input-search.d.ts +9 -0
- package/es/common/emoji-select/components/input-search/input-search.mjs +1 -1
- package/es/common/emoji-select/emoji-select.d.ts +142 -0
- package/es/common/emoji-select/emoji-select.mjs +1 -1
- package/es/common/emoji-select/icons/categories.d.ts +2 -0
- package/es/common/emoji-select/icons/emoji.d.ts +2 -0
- package/es/common/emoji-select/icons/index.d.ts +3 -0
- package/es/common/emoji-select/icons/search.d.ts +1 -0
- package/es/common/emoji-select/interface/category.d.ts +44 -0
- package/es/common/emoji-select/interface/emoji.d.ts +37 -0
- package/es/common/emoji-select/interface/index.d.ts +3 -0
- package/es/common/emoji-select/interface/map-emojis.d.ts +17 -0
- package/es/common/extend-action-timeline/extend-action-timeline.d.ts +16 -0
- package/es/common/extend-action-timeline/extend-action-timeline.mjs +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar-alarm-clock/fullscreen-toolbar-alarm-clock.d.ts +9 -0
- package/es/common/fullscreen-toolbar/fullscreen-toolbar-alarm-clock/fullscreen-toolbar-alarm-clock.mjs +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.d.ts +13 -0
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.mjs +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +37 -0
- package/es/common/grid-setting/grid-setting.mjs +1 -1
- package/es/common/index.d.ts +14 -0
- package/es/common/index.mjs +2 -0
- package/es/common/map-chart/map-chart.d.ts +128 -0
- package/es/common/map-chart/map-chart.mjs +2 -2
- package/es/common/map-chart/map-chart.util.d.ts +30 -0
- package/es/common/map-chart/map-json.d.ts +1 -0
- package/es/common/map-chart/map-manager.d.ts +20 -0
- package/es/common/no-data/no-data.d.ts +37 -0
- package/es/common/no-data/no-data.mjs +1 -1
- package/es/common/pagination/pagination.css +1 -1
- package/es/common/pagination/pagination.d.ts +49 -0
- package/es/common/pagination/pagination.mjs +2 -2
- package/es/common/pql-editor/components/index.d.ts +1 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.d.ts +28 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.mjs +1 -1
- package/es/common/pql-editor/pql-editor.d.ts +74 -0
- package/es/common/pql-editor/pql-editor.mjs +203 -144
- package/es/common/pql-editor/pql-editor.module.d.ts +47 -0
- package/es/common/pql-editor/pql-editor.module.mjs +2 -2
- package/es/common/pql-editor/utils/index.d.ts +19 -0
- package/es/common/pql-editor/utils/index.mjs +143 -56
- package/es/common/quick-edit/quick-edit.d.ts +38 -0
- package/es/common/quick-edit/quick-edit.mjs +1 -1
- package/es/common/rawitem/rawitem.d.ts +51 -0
- package/es/common/rawitem/rawitem.mjs +17 -1
- package/es/common/row/row.d.ts +10 -0
- package/es/common/row/row.mjs +1 -1
- package/es/common/sort-bar/sort-bar.d.ts +46 -0
- package/es/common/sort-bar/sort-bar.mjs +1 -1
- package/es/common/split/split.d.ts +56 -0
- package/es/common/split/split.mjs +1 -1
- package/es/common/split-trigger/split-trigger.d.ts +11 -0
- package/es/common/split-trigger/split-trigger.mjs +1 -1
- package/es/common/view-message/view-message.d.ts +915 -0
- package/es/common/view-message/view-message.mjs +1 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +61 -0
- package/es/control/app-menu/app-menu.mjs +4 -3
- package/es/control/app-menu/app-menu.provider.d.ts +13 -0
- package/es/control/app-menu/custom-menu-design/custom-menu-design.d.ts +43 -0
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +1 -1
- package/es/control/app-menu/index.d.ts +57 -0
- package/es/control/app-menu/index.mjs +1 -1
- package/es/control/app-menu-icon-view/app-menu-icon-view.d.ts +52 -0
- package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +1 -1
- package/es/control/app-menu-icon-view/app-menu-icon-view.provider.d.ts +13 -0
- package/es/control/app-menu-icon-view/index.d.ts +53 -0
- package/es/control/app-menu-icon-view/index.mjs +1 -1
- package/es/control/calendar/calendar.d.ts +64 -0
- package/es/control/calendar/calendar.mjs +1 -1
- package/es/control/calendar/calendar.provider.d.ts +13 -0
- package/es/control/calendar/components/calendar-daily/calendar-daily.d.ts +18 -0
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +1 -1
- package/es/control/calendar/components/calendar-daily/index.d.ts +18 -0
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +154 -0
- package/es/control/calendar/components/calendar-week/calendar-week.d.ts +18 -0
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +1 -1
- package/es/control/calendar/components/calendar-week/index.d.ts +18 -0
- package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +159 -0
- package/es/control/calendar/components/constant/event.d.ts +5 -0
- package/es/control/calendar/components/constant/index.d.ts +1 -0
- package/es/control/calendar/components/custom-calendar/custom-calendar.d.ts +24 -0
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +1 -1
- package/es/control/calendar/components/custom-calendar/index.d.ts +24 -0
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.d.ts +3 -0
- package/es/control/calendar/components/interface/calendar-daily.d.ts +12 -0
- package/es/control/calendar/components/interface/calendar-daily.mjs +1 -1
- package/es/control/calendar/components/interface/calendar-week.d.ts +12 -0
- package/es/control/calendar/components/interface/calendar-week.mjs +1 -1
- package/es/control/calendar/components/interface/common.d.ts +116 -0
- package/es/control/calendar/components/interface/custom-calendar.d.ts +14 -0
- package/es/control/calendar/components/interface/custom-calendar.mjs +1 -1
- package/es/control/calendar/components/interface/index.d.ts +4 -0
- package/es/control/calendar/components/util/index.d.ts +1 -0
- package/es/control/calendar/components/util/util.d.ts +89 -0
- package/es/control/calendar/index.d.ts +61 -0
- package/es/control/calendar/index.mjs +1 -1
- package/es/control/caption-bar/caption-bar.css +1 -1
- package/es/control/caption-bar/caption-bar.d.ts +43 -0
- package/es/control/caption-bar/caption-bar.mjs +12 -3
- package/es/control/caption-bar/caption-bar.provider.d.ts +13 -0
- package/es/control/caption-bar/index.d.ts +40 -0
- package/es/control/caption-bar/index.mjs +1 -1
- package/es/control/chart/chart.d.ts +113 -0
- package/es/control/chart/chart.mjs +2 -2
- package/es/control/chart/chart.provider.d.ts +13 -0
- package/es/control/chart/index.d.ts +5 -0
- package/es/control/chart/index.mjs +1 -1
- package/es/control/context-menu/context-menu.d.ts +78 -0
- package/es/control/context-menu/context-menu.mjs +1 -1
- package/es/control/context-menu/context-menu.provider.d.ts +13 -0
- package/es/control/context-menu/index.d.ts +75 -0
- package/es/control/context-menu/index.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +21186 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +35 -10
- package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +77 -0
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +3 -3
- package/es/control/dashboard/dashboard.d.ts +44 -0
- package/es/control/dashboard/dashboard.mjs +16 -4
- package/es/control/dashboard/dashboard.provider.d.ts +13 -0
- package/es/control/dashboard/index.d.ts +42 -0
- package/es/control/dashboard/index.mjs +5 -2
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.d.ts +25 -0
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/actionbar-portlet/index.d.ts +24 -0
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.d.ts +24 -0
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/chart-portlet/index.d.ts +24 -0
- package/es/control/dashboard/portlet/container-portlet/container-portlet.d.ts +25 -0
- package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/container-portlet/container-portlet.provider.d.ts +14 -0
- package/es/control/dashboard/portlet/container-portlet/index.d.ts +23 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.d.ts +64 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +341 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.d.ts +0 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.mjs +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.d.ts +41 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.mjs +130 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.d.ts +30 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.mjs +87 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet.provider.mjs +21 -0
- package/es/control/dashboard/portlet/filter-portlet/index.d.ts +28 -0
- package/es/control/dashboard/portlet/filter-portlet/index.mjs +14 -0
- package/es/control/dashboard/portlet/html-portlet/html-portlet.d.ts +25 -0
- package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/html-portlet/html-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/html-portlet/index.d.ts +23 -0
- package/es/control/dashboard/portlet/index.d.ts +11 -0
- package/es/control/dashboard/portlet/index.mjs +2 -0
- package/es/control/dashboard/portlet/list-portlet/index.d.ts +24 -0
- package/es/control/dashboard/portlet/list-portlet/list-portlet.d.ts +24 -0
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/list-portlet/list-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.d.ts +52 -0
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/menu-portlet/index.d.ts +24 -0
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.d.ts +25 -0
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.provider.d.ts +14 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +32 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +2 -2
- package/es/control/dashboard/portlet/rawitem-portlet/index.d.ts +24 -0
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.d.ts +25 -0
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/report-portlet/index.d.ts +25 -0
- package/es/control/dashboard/portlet/report-portlet/report-portlet.d.ts +25 -0
- package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/report-portlet/report-portlet.provider.d.ts +15 -0
- package/es/control/dashboard/portlet/view-portlet/index.d.ts +24 -0
- package/es/control/dashboard/portlet/view-portlet/view-portlet.d.ts +25 -0
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/view-portlet/view-portlet.provider.d.ts +15 -0
- package/es/control/data-view/data-view.d.ts +92 -0
- package/es/control/data-view/data-view.mjs +1 -1
- package/es/control/data-view/data-view.provider.d.ts +11 -0
- package/es/control/data-view/index.d.ts +78 -0
- package/es/control/data-view/index.mjs +1 -1
- package/es/control/drbar/drbar.controller.d.ts +213 -0
- package/es/control/drbar/drbar.d.ts +72 -0
- package/es/control/drbar/drbar.mjs +1 -1
- package/es/control/drbar/drbar.provider.d.ts +11 -0
- package/es/control/drbar/index.d.ts +71 -0
- package/es/control/drbar/index.mjs +1 -1
- package/es/control/drtab/drtab-control.util.d.ts +17 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +203 -0
- package/es/control/drtab/drtab.d.ts +49 -0
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/drtab/drtab.provider.d.ts +11 -0
- package/es/control/drtab/index.d.ts +46 -0
- package/es/control/drtab/index.mjs +1 -1
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.d.ts +64 -0
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.mjs +1 -1
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.provider.d.ts +11 -0
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +62 -0
- package/es/control/exp-bar/calendar-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.d.ts +64 -0
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.mjs +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.provider.d.ts +11 -0
- package/es/control/exp-bar/chart-exp-bar/index.d.ts +62 -0
- package/es/control/exp-bar/chart-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-exp-bar.provider.d.ts +13 -0
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.d.ts +64 -0
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.mjs +1 -1
- package/es/control/exp-bar/data-view-exp-bar/index.d.ts +62 -0
- package/es/control/exp-bar/data-view-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.d.ts +64 -0
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.mjs +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.provider.d.ts +13 -0
- package/es/control/exp-bar/grid-exp-bar/index.d.ts +62 -0
- package/es/control/exp-bar/grid-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/index.d.ts +6 -0
- package/es/control/exp-bar/list-exp-bar/index.d.ts +62 -0
- package/es/control/exp-bar/list-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.d.ts +64 -0
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.mjs +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.provider.d.ts +13 -0
- package/es/control/exp-bar/render-util.d.ts +25 -0
- package/es/control/exp-bar/render-util.mjs +2 -2
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +72 -0
- package/es/control/exp-bar/tree-exp-bar/index.mjs +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.d.ts +74 -0
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.mjs +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.provider.d.ts +11 -0
- package/es/control/form/edit-form/edit-form.d.ts +67 -0
- package/es/control/form/edit-form/edit-form.mjs +1 -1
- package/es/control/form/edit-form/edit-form.provider.d.ts +13 -0
- package/es/control/form/edit-form/index.d.ts +65 -0
- package/es/control/form/edit-form/index.mjs +1 -1
- package/es/control/form/form/form.d.ts +26 -0
- package/es/control/form/form/form.mjs +1 -1
- package/es/control/form/form/index.d.ts +31 -0
- package/es/control/form/form-detail/form-button/form-button.d.ts +27 -0
- package/es/control/form/form-detail/form-button/form-button.mjs +1 -1
- package/es/control/form/form-detail/form-button/form-button.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-button/index.d.ts +23 -0
- package/es/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.d.ts +27 -0
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-druipart/index.d.ts +23 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.d.ts +30 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +7 -3
- package/es/control/form/form-detail/form-group-panel/form-group-panel.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-group-panel/index.d.ts +26 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +105 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +36 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +9 -4
- package/es/control/form/form-detail/form-item/form-item.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-item/index.d.ts +33 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.d.ts +18 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.d.ts +19 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.d.ts +15 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +18794 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +5 -4
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +20 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +32 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +7 -13
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +30 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-mdctrl/index.d.ts +26 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +40 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/icon/index.d.ts +21 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.d.ts +38 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +1 -1
- package/es/control/form/form-detail/form-page/form-page-item/form-page.item.d.ts +24 -0
- package/es/control/form/form-detail/form-page/form-page-item/form-page.item.mjs +1 -1
- package/es/control/form/form-detail/form-page/form-page.d.ts +18 -0
- package/es/control/form/form-detail/form-page/form-page.mjs +1 -1
- package/es/control/form/form-detail/form-page/form-page.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-page/index.d.ts +16 -0
- package/es/control/form/form-detail/form-rawitem/form-rawitem.d.ts +28 -0
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +1 -1
- package/es/control/form/form-detail/form-rawitem/form-rawitem.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-rawitem/index.d.ts +24 -0
- package/es/control/form/form-detail/form-tab-page/form-tab-page.d.ts +26 -0
- package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +1 -1
- package/es/control/form/form-detail/form-tab-page/form-tab-page.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-tab-page/index.d.ts +22 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.d.ts +28 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.provider.d.ts +15 -0
- package/es/control/form/form-detail/form-tab-panel/index.d.ts +24 -0
- package/es/control/form/form-detail/index.d.ts +9 -0
- package/es/control/form/index.d.ts +4 -0
- package/es/control/form/search-form/index.d.ts +48 -0
- package/es/control/form/search-form/index.mjs +1 -1
- package/es/control/form/search-form/search-form.d.ts +51 -0
- package/es/control/form/search-form/search-form.mjs +1 -1
- package/es/control/form/search-form/search-form.provider.d.ts +13 -0
- package/es/control/gantt/gantt.d.ts +93 -0
- package/es/control/gantt/gantt.mjs +1 -1
- package/es/control/gantt/gantt.provider.d.ts +13 -0
- package/es/control/gantt/index.d.ts +91 -0
- package/es/control/gantt/index.mjs +1 -1
- package/es/control/grid/grid/grid-control.util.d.ts +93 -0
- package/es/control/grid/grid/grid-control.util.mjs +2 -2
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +183 -0
- package/es/control/grid/grid/grid.mjs +4 -2
- package/es/control/grid/grid/grid.provider.d.ts +13 -0
- package/es/control/grid/grid/index.d.ts +169 -0
- package/es/control/grid/grid/index.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +40 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.provider.d.ts +15 -0
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +38 -0
- package/es/control/grid/grid-column/grid-field-edit-column/all-edit.d.ts +15 -0
- package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.d.ts +19 -0
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.d.ts +49 -0
- package/es/control/grid/grid-column/grid-field-edit-column/grid-edit-item/grid-edit-item.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.d.ts +40 -0
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +3 -3
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.provider.d.ts +15 -0
- package/es/control/grid/grid-column/grid-field-edit-column/index.d.ts +37 -0
- package/es/control/grid/grid-column/grid-field-edit-column/row-edit.d.ts +14 -0
- package/es/control/grid/grid-column/grid-group-column/grid-group-column.d.ts +23 -0
- package/es/control/grid/grid-column/grid-group-column/grid-group-column.mjs +1 -1
- package/es/control/grid/grid-column/grid-group-column/grid-group-column.provider.d.ts +13 -0
- package/es/control/grid/grid-column/grid-group-column/index.d.ts +22 -0
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.d.ts +27 -0
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.mjs +1 -1
- package/es/control/grid/grid-column/grid-ua-column/grid-ua-column.provider.d.ts +15 -0
- package/es/control/grid/grid-column/grid-ua-column/index.d.ts +24 -0
- package/es/control/grid/grid-column/index.d.ts +4 -0
- package/es/control/grid/index.d.ts +2 -0
- package/es/control/grid/row-edit-popover/row-edit-popover.d.ts +24 -0
- package/es/control/grid/row-edit-popover/row-edit-popover.mjs +1 -1
- package/es/control/grid/row-edit-popover/use-row-edit-popover.d.ts +5 -0
- package/es/control/index.d.ts +27 -0
- package/es/control/index.mjs +2 -0
- package/es/control/kanban/index.d.ts +70 -0
- package/es/control/kanban/index.mjs +1 -1
- package/es/control/kanban/kanban.d.ts +73 -0
- package/es/control/kanban/kanban.mjs +1 -1
- package/es/control/kanban/kanban.provider.d.ts +11 -0
- package/es/control/list/index.d.ts +88 -0
- package/es/control/list/index.mjs +1 -1
- package/es/control/list/list.d.ts +115 -0
- package/es/control/list/list.mjs +1 -1
- package/es/control/list/list.provider.d.ts +13 -0
- package/es/control/map/index.d.ts +5 -0
- package/es/control/map/index.mjs +1 -1
- package/es/control/map/map.d.ts +77 -0
- package/es/control/map/map.mjs +1 -1
- package/es/control/map/map.provider.d.ts +13 -0
- package/es/control/medit-view-panel/index.d.ts +35 -0
- package/es/control/medit-view-panel/index.mjs +1 -1
- package/es/control/medit-view-panel/medit-view-panel.d.ts +38 -0
- package/es/control/medit-view-panel/medit-view-panel.mjs +1 -1
- package/es/control/medit-view-panel/medit-view-panel.provider.d.ts +11 -0
- package/es/control/pickup-view-panel/index.d.ts +58 -0
- package/es/control/pickup-view-panel/index.mjs +1 -1
- package/es/control/pickup-view-panel/pickup-view-panel.d.ts +74 -0
- package/es/control/pickup-view-panel/pickup-view-panel.mjs +1 -1
- package/es/control/pickup-view-panel/pickup-view-panel.provider.d.ts +11 -0
- package/es/control/report-panel/index.d.ts +2 -0
- package/es/control/report-panel/index.mjs +1 -1
- package/es/control/report-panel/report-detail/bi-report-panel/bi-report-panel.d.ts +16 -0
- package/es/control/report-panel/report-detail/bi-report-panel/bi-report-panel.mjs +1 -1
- package/es/control/report-panel/report-detail/bi-report-panel/index.d.ts +14 -0
- package/es/control/report-panel/report-detail/index.d.ts +3 -0
- package/es/control/report-panel/report-detail/user-report-panel/index.d.ts +14 -0
- package/es/control/report-panel/report-detail/user-report-panel/user-report-panel.d.ts +16 -0
- package/es/control/report-panel/report-detail/user-report-panel/user-report-panel.mjs +1 -1
- package/es/control/report-panel/report-detail/user2-report-panel/index.d.ts +15 -0
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.d.ts +17 -0
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.mjs +1 -1
- package/es/control/report-panel/report-panel.d.ts +52 -0
- package/es/control/report-panel/report-panel.mjs +1 -1
- package/es/control/report-panel/report-panel.provider.d.ts +11 -0
- package/es/control/search-bar/filter-mode-select/filter-mode-select.d.ts +135 -0
- package/es/control/search-bar/filter-mode-select/filter-mode-select.mjs +1 -1
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +104 -0
- package/es/control/search-bar/filter-tree/filter-tree.mjs +1 -1
- package/es/control/search-bar/index.d.ts +48 -0
- package/es/control/search-bar/index.mjs +1 -1
- package/es/control/search-bar/quick-search-select/quick-search-select.css +1 -1
- package/es/control/search-bar/quick-search-select/quick-search-select.d.ts +16 -0
- package/es/control/search-bar/quick-search-select/quick-search-select.mjs +2 -1
- package/es/control/search-bar/search-bar.css +1 -1
- package/es/control/search-bar/search-bar.d.ts +51 -0
- package/es/control/search-bar/search-bar.mjs +1 -1
- package/es/control/search-bar/search-bar.provider.d.ts +13 -0
- package/es/control/search-bar/search-groups/edit-group-util.d.ts +10 -0
- package/es/control/search-bar/search-groups/new-group-util.d.ts +10 -0
- package/es/control/search-bar/search-groups/search-groups.d.ts +40 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +9 -6
- package/es/control/tab-exp-panel/index.d.ts +49 -0
- package/es/control/tab-exp-panel/index.mjs +1 -1
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +52 -0
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +1 -1
- package/es/control/tab-exp-panel/tab-exp-panel.provider.d.ts +11 -0
- package/es/control/toolbar/export-excel/export-excel.css +1 -1
- package/es/control/toolbar/export-excel/export-excel.d.ts +52 -0
- package/es/control/toolbar/export-excel/export-excel.mjs +1 -1
- package/es/control/toolbar/index.d.ts +57 -0
- package/es/control/toolbar/index.mjs +1 -1
- package/es/control/toolbar/short-cut-button/short-cut-button.d.ts +48 -0
- package/es/control/toolbar/short-cut-button/short-cut-button.mjs +1 -1
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.d.ts +56 -0
- package/es/control/toolbar/toolbar.mjs +1 -1
- package/es/control/toolbar/toolbar.provider.d.ts +13 -0
- package/es/control/tree/el-tree-util.d.ts +920 -0
- package/es/control/tree/index.d.ts +1006 -0
- package/es/control/tree/index.mjs +1 -1
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +1041 -0
- package/es/control/tree/tree.mjs +1 -1
- package/es/control/tree/tree.provider.d.ts +13 -0
- package/es/control/tree-grid/index.d.ts +155 -0
- package/es/control/tree-grid/index.mjs +1 -1
- package/es/control/tree-grid/tree-grid.d.ts +167 -0
- package/es/control/tree-grid/tree-grid.mjs +1 -1
- package/es/control/tree-grid/tree-grid.provider.d.ts +13 -0
- package/es/control/tree-grid-ex/index.d.ts +53 -0
- package/es/control/tree-grid-ex/index.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/index.d.ts +3 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.d.ts +15 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/cell-edit.d.ts +19 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/row-edit.d.ts +14 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.d.ts +31 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.mjs +3 -3
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/index.d.ts +30 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.d.ts +33 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.provider.d.ts +15 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/index.d.ts +24 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.d.ts +27 -0
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.provider.d.ts +15 -0
- package/es/control/tree-grid-ex/tree-grid-ex.d.ts +54 -0
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +2 -2
- package/es/control/tree-grid-ex/tree-grid-ex.provider.d.ts +13 -0
- package/es/control/tree-grid-ex/use-row-edit-popover.d.ts +5 -0
- package/es/control/wizard-panel/index.d.ts +39 -0
- package/es/control/wizard-panel/index.mjs +1 -1
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.d.ts +42 -0
- package/es/control/wizard-panel/wizard-panel.mjs +1 -1
- package/es/control/wizard-panel/wizard-panel.provider.d.ts +13 -0
- package/es/editor/array/array-editor.controller.d.ts +10 -0
- package/es/editor/array/array-editor.provider.d.ts +17 -0
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +138 -0
- package/es/editor/array/ibiz-array/ibiz-array.mjs +1 -1
- package/es/editor/array/index.d.ts +3 -0
- package/es/editor/autocomplete/autocomplete-editor.controller.d.ts +65 -0
- package/es/editor/autocomplete/autocomplete-editor.provider.d.ts +17 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +83 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -1
- package/es/editor/autocomplete/index.d.ts +3 -0
- package/es/editor/carousel/carousel-editor.controller.d.ts +10 -0
- package/es/editor/carousel/carousel-editor.provider.d.ts +17 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +76 -0
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +1 -1
- package/es/editor/carousel/index.d.ts +3 -0
- package/es/editor/cascader/cascader-editor.controller.d.ts +10 -0
- package/es/editor/cascader/cascader-editor.provider.d.ts +17 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +96 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +1 -1
- package/es/editor/cascader/index.d.ts +3 -0
- package/es/editor/check-box/check-box-editor.controller.d.ts +11 -0
- package/es/editor/check-box/check-box-editor.provider.d.ts +17 -0
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +69 -0
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.mjs +1 -1
- package/es/editor/check-box/index.d.ts +3 -0
- package/es/editor/check-box-list/checkbox-list-editor.controller.d.ts +25 -0
- package/es/editor/check-box-list/checkbox-list-editor.provider.d.ts +17 -0
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +105 -0
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +27 -56
- package/es/editor/check-box-list/index.d.ts +3 -0
- package/es/editor/code/code-editor.controller.d.ts +25 -0
- package/es/editor/code/code-editor.provider.d.ts +17 -0
- package/es/editor/code/index.d.ts +3 -0
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +86 -0
- package/es/editor/code/monaco-editor/monaco-editor.mjs +1 -1
- package/es/editor/color-picker/color-picker-editor.controller.d.ts +13 -0
- package/es/editor/color-picker/color-picker-editor.provider.d.ts +17 -0
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +76 -0
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +1 -1
- package/es/editor/color-picker/index.d.ts +3 -0
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +84 -0
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +83 -0
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +84 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +83 -0
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +70 -0
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +98 -0
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +2 -2
- package/es/editor/data-picker/index.d.ts +8 -0
- package/es/editor/data-picker/picker-editor.controller.d.ts +125 -0
- package/es/editor/data-picker/picker-editor.provider.d.ts +18 -0
- package/es/editor/date-picker/date-picker-editor.controller.d.ts +26 -0
- package/es/editor/date-picker/date-picker-editor.provider.d.ts +17 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +79 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +1 -1
- package/es/editor/date-picker/index.d.ts +3 -0
- package/es/editor/date-range/date-range-editor.controller.d.ts +36 -0
- package/es/editor/date-range/date-range-editor.provider.d.ts +15 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +85 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +1 -1
- package/es/editor/date-range/index.d.ts +3 -0
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.d.ts +51 -0
- package/es/editor/date-range-select/date-range-select-picker/components/quarter-range-select/quarter-range-select.mjs +1 -1
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.d.ts +65 -0
- package/es/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.mjs +2 -2
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.d.ts +52 -0
- package/es/editor/date-range-select/date-range-select-picker/components/year-range-select/year-range-select.mjs +1 -1
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +64 -0
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.mjs +32 -9
- package/es/editor/date-range-select/date-range-select.controller.d.ts +328 -0
- package/es/editor/date-range-select/date-range-select.controller.mjs +92 -5
- package/es/editor/date-range-select/date-range-select.provider.d.ts +8 -0
- package/es/editor/date-range-select/index.d.ts +3 -0
- package/es/editor/dropdown-list/dropdown-list-editor.controller.d.ts +31 -0
- package/es/editor/dropdown-list/dropdown-list-editor.provider.d.ts +18 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +87 -0
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +48 -22
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +74 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +1 -1
- package/es/editor/dropdown-list/index.d.ts +4 -0
- package/es/editor/html/html-editor.controller.d.ts +131 -0
- package/es/editor/html/html-editor.provider.d.ts +17 -0
- package/es/editor/html/index.d.ts +2 -0
- package/es/editor/html/wang-editor/component/emoji/emoji.d.ts +17 -0
- package/es/editor/html/wang-editor/component/emoji/emoji.mjs +1 -1
- package/es/editor/html/wang-editor/component/index.d.ts +1 -0
- package/es/editor/html/wang-editor/element/emoji.d.ts +7 -0
- package/es/editor/html/wang-editor/element/index.d.ts +1 -0
- package/es/editor/html/wang-editor/index.d.ts +4 -0
- package/es/editor/html/wang-editor/module/ai-module.d.ts +67 -0
- package/es/editor/html/wang-editor/module/emoji-module.d.ts +7 -0
- package/es/editor/html/wang-editor/module/emoji-module.mjs +2 -2
- package/es/editor/html/wang-editor/module/index.d.ts +2 -0
- package/es/editor/html/wang-editor/plugin/index.d.ts +1 -0
- package/es/editor/html/wang-editor/plugin/plugin.d.ts +7 -0
- package/es/editor/html/wang-editor/wang-editor.d.ts +95 -0
- package/es/editor/html/wang-editor/wang-editor.mjs +1 -1
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.mjs +1 -1
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +73 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +33 -33
- package/es/editor/list-box/index.d.ts +4 -0
- package/es/editor/list-box/list-box-editor.controller.d.ts +18 -0
- package/es/editor/list-box/list-box-editor.provider.d.ts +18 -0
- package/es/editor/list-box/list-box-picker-editor.controller.d.ts +49 -0
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +3 -0
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/markdown/index.d.ts +2 -0
- package/es/editor/markdown/markdown-editor.controller.d.ts +76 -0
- package/es/editor/markdown/markdown-editor.provider.d.ts +17 -0
- package/es/editor/not-supported-editor/not-supported-editor.d.ts +16 -0
- package/es/editor/not-supported-editor/not-supported-editor.mjs +1 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +87 -0
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +1 -1
- package/es/editor/number-range/index.d.ts +3 -0
- package/es/editor/number-range/number-range-editor.controller.d.ts +11 -0
- package/es/editor/number-range/number-range-editor.provider.d.ts +15 -0
- package/es/editor/preset/index.d.ts +1 -0
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +70 -0
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.mjs +1 -1
- package/es/editor/preset/preset-rawitem/index.d.ts +3 -0
- package/es/editor/preset/preset-rawitem/preset-rawitem.controller.d.ts +10 -0
- package/es/editor/preset/preset-rawitem/preset-rawitem.provider.d.ts +17 -0
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +73 -0
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +18 -3
- package/es/editor/radio-button-list/index.d.ts +3 -0
- package/es/editor/radio-button-list/radio-button-list.controller.d.ts +18 -0
- package/es/editor/radio-button-list/radio-button-list.provider.d.ts +17 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +73 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +1 -1
- package/es/editor/rate/index.d.ts +3 -0
- package/es/editor/rate/rate-editor.controller.d.ts +11 -0
- package/es/editor/rate/rate-editor.provider.d.ts +15 -0
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +70 -0
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +7 -8
- package/es/editor/raw/index.d.ts +3 -0
- package/es/editor/raw/raw-editor.controller.d.ts +11 -0
- package/es/editor/raw/raw-editor.provider.d.ts +15 -0
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +79 -0
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +1 -1
- package/es/editor/slider/index.d.ts +3 -0
- package/es/editor/slider/slider-editor.controller.d.ts +12 -0
- package/es/editor/slider/slider-editor.provider.d.ts +15 -0
- package/es/editor/span/index.d.ts +4 -0
- package/es/editor/span/span/span.css +1 -1
- package/es/editor/span/span/span.d.ts +95 -0
- package/es/editor/span/span/span.mjs +3 -1
- package/es/editor/span/span-editor.controller.d.ts +26 -0
- package/es/editor/span/span-editor.provider.d.ts +18 -0
- package/es/editor/span/span-link/span-link.d.ts +70 -0
- package/es/editor/span/span-link/span-link.mjs +1 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +76 -0
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +1 -1
- package/es/editor/stepper/index.d.ts +3 -0
- package/es/editor/stepper/stepper-editor.controller.d.ts +11 -0
- package/es/editor/stepper/stepper-editor.provider.d.ts +15 -0
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +73 -0
- package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +1 -1
- package/es/editor/switch/index.d.ts +3 -0
- package/es/editor/switch/switch-editor.controller.d.ts +11 -0
- package/es/editor/switch/switch-editor.provider.d.ts +15 -0
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +77 -0
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +80 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +1 -1
- package/es/editor/text-box/index.d.ts +5 -0
- package/es/editor/text-box/input/input.d.ts +119 -0
- package/es/editor/text-box/input/input.mjs +1 -1
- package/es/editor/text-box/text-box-editor.controller.d.ts +84 -0
- package/es/editor/text-box/text-box-editor.provider.d.ts +18 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +84 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +67 -0
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +88 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +5 -3
- package/es/editor/upload/index.d.ts +5 -0
- package/es/editor/upload/upload-editor.controller.d.ts +46 -0
- package/es/editor/upload/upload-editor.provider.d.ts +18 -0
- package/es/editor/upload/use/use-ibiz-upload.d.ts +95 -0
- package/es/editor/upload/use/use-iview-upload.d.ts +31 -0
- package/es/editor/upload/use/use-iview-upload.mjs +37 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.controller.d.ts +46 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +81 -0
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +1 -1
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.provider.d.ts +17 -0
- package/es/editor/user/ibiz-searchcond-edit/index.d.ts +3 -0
- package/es/editor/user/index.d.ts +1 -0
- package/es/ibiz-vue3.d.ts +5 -0
- package/es/index.d.ts +9 -0
- package/es/index.mjs +2 -0
- package/es/interface/i-field.d.ts +66 -0
- package/es/interface/i-field.mjs +1 -0
- package/es/interface/i-filter-condition.d.ts +52 -0
- package/es/interface/i-filter-condition.mjs +1 -0
- package/es/interface/i-pql-item.d.ts +53 -0
- package/es/interface/i-pql-node-item.d.ts +35 -0
- package/es/interface/i-pql-node-item.mjs +1 -0
- package/es/interface/i-pql-node.d.ts +37 -0
- package/es/interface/i-schema-field.d.ts +51 -0
- package/es/interface/index.d.ts +6 -0
- package/es/interface/index.mjs +3 -0
- package/es/locale/en/index.d.ts +1340 -0
- package/es/locale/en/index.mjs +54 -3
- package/es/locale/index.d.ts +108 -0
- package/es/locale/zh-CN/index.d.ts +1334 -0
- package/es/locale/zh-CN/index.mjs +54 -3
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/h.mjs +3 -1
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/htmldomapi.mjs +1 -1
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/index.mjs +2 -0
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/init.mjs +9 -25
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/jsx.mjs +3 -0
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/attributes.mjs +3 -7
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/dataset.mjs +2 -2
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/eventlisteners.mjs +1 -1
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/style.mjs +6 -6
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/thunk.mjs +1 -1
- package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/tovnode.mjs +8 -2
- package/es/panel-component/auth-captcha/auth-captcha.controller.d.ts +70 -0
- package/es/panel-component/auth-captcha/auth-captcha.d.ts +29 -0
- package/es/panel-component/auth-captcha/auth-captcha.mjs +1 -1
- package/es/panel-component/auth-captcha/auth-captcha.provider.d.ts +14 -0
- package/es/panel-component/auth-captcha/auth-captcha.state.d.ts +45 -0
- package/es/panel-component/auth-captcha/index.d.ts +26 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +32 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.d.ts +15 -0
- package/es/panel-component/auth-userinfo/index.d.ts +29 -0
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +28 -0
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +48 -4
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +37 -0
- package/es/panel-component/coop-pos/coop-pos.mjs +20 -4
- package/es/panel-component/coop-pos/coop-pos.provider.d.ts +7 -0
- package/es/panel-component/coop-pos/coop-pos.state.d.ts +33 -0
- package/es/panel-component/coop-pos/coop-pos.state.mjs +14 -0
- package/es/panel-component/coop-pos/index.d.ts +27 -0
- package/es/panel-component/data-import/data-import-shell.d.ts +27 -0
- package/es/panel-component/data-import/data-import-shell.mjs +1 -1
- package/es/panel-component/data-import/data-import.provider.d.ts +15 -0
- package/es/panel-component/data-import/index.d.ts +24 -0
- package/es/panel-component/index-actions/index-actions.d.ts +27 -0
- package/es/panel-component/index-actions/index-actions.mjs +1 -1
- package/es/panel-component/index-actions/index-actions.provider.d.ts +15 -0
- package/es/panel-component/index-actions/index.d.ts +24 -0
- package/es/panel-component/index.d.ts +14 -0
- package/es/panel-component/nav-pos-index/index.d.ts +27 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.d.ts +154 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.d.ts +28 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.provider.d.ts +16 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.state.d.ts +42 -0
- package/es/panel-component/nav-tabs/index.d.ts +44 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +90 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.d.ts +34 -0
- package/es/panel-component/nav-tabs/nav-tabs.mjs +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.provider.d.ts +16 -0
- package/es/panel-component/nav-tabs/nav-tabs.state.d.ts +38 -0
- package/es/panel-component/panel-app-header/index.d.ts +25 -0
- package/es/panel-component/panel-app-header/panel-app-header.d.ts +28 -0
- package/es/panel-component/panel-app-header/panel-app-header.mjs +1 -1
- package/es/panel-component/panel-app-header/panel-app-header.provider.d.ts +15 -0
- package/es/panel-component/panel-app-login-view/index.d.ts +27 -0
- package/es/panel-component/panel-app-login-view/panel-app-login-view.controller.d.ts +14 -0
- package/es/panel-component/panel-app-login-view/panel-app-login-view.css +1 -1
- package/es/panel-component/panel-app-login-view/panel-app-login-view.d.ts +27 -0
- package/es/panel-component/panel-app-login-view/panel-app-login-view.mjs +1 -1
- package/es/panel-component/panel-app-login-view/panel-app-login-view.provider.d.ts +15 -0
- package/es/panel-component/panel-app-login-view/panel-app-login-view.state.d.ts +12 -0
- package/es/panel-component/panel-app-title/index.d.ts +28 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.d.ts +50 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +28 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +31 -0
- package/es/panel-component/panel-app-title/panel-app-title.mjs +47 -4
- package/es/panel-component/panel-app-title/panel-app-title.provider.d.ts +14 -0
- package/es/panel-component/panel-app-title/panel-app-title.state.d.ts +68 -0
- package/es/panel-component/panel-button/index.d.ts +35 -0
- package/es/panel-component/panel-button/panel-button.controller.d.ts +82 -0
- package/es/panel-component/panel-button/panel-button.d.ts +38 -0
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/es/panel-component/panel-button/panel-button.provider.d.ts +14 -0
- package/es/panel-component/panel-button/panel-button.state.d.ts +26 -0
- package/es/panel-component/panel-exp-header/index.d.ts +25 -0
- package/es/panel-component/panel-exp-header/panel-exp-header.css +1 -1
- package/es/panel-component/panel-exp-header/panel-exp-header.d.ts +28 -0
- package/es/panel-component/panel-exp-header/panel-exp-header.mjs +1 -1
- package/es/panel-component/panel-exp-header/panel-exp-header.provider.d.ts +15 -0
- package/es/panel-component/panel-index-view-search/index.d.ts +30 -0
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.d.ts +33 -0
- package/es/panel-component/panel-index-view-search/panel-index-view-search.mjs +1 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.provider.d.ts +13 -0
- package/es/panel-component/panel-remember-me/index.d.ts +28 -0
- package/es/panel-component/panel-remember-me/panel-remember-me.controller.d.ts +14 -0
- package/es/panel-component/panel-remember-me/panel-remember-me.d.ts +27 -0
- package/es/panel-component/panel-remember-me/panel-remember-me.mjs +1 -1
- package/es/panel-component/panel-remember-me/panel-remember-me.provider.d.ts +15 -0
- package/es/panel-component/panel-remember-me/panel-remember-me.state.d.ts +12 -0
- package/es/panel-component/panel-static-carousel/index.d.ts +32 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.d.ts +35 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +1 -1
- package/es/panel-component/panel-static-carousel/panel-static-carousel.provider.d.ts +15 -0
- package/es/panel-component/panel-tab-panel/index.d.ts +25 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.d.ts +31 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.d.ts +28 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.mjs +1 -1
- package/es/panel-component/panel-tab-panel/panel-tab-panel.provider.d.ts +14 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.state.d.ts +20 -0
- package/es/panel-component/panel-view-content/index.d.ts +25 -0
- package/es/panel-component/panel-view-content/panel-view-content.d.ts +28 -0
- package/es/panel-component/panel-view-content/panel-view-content.mjs +1 -1
- package/es/panel-component/panel-view-content/panel-view-content.provider.d.ts +15 -0
- package/es/panel-component/panel-view-header/index.d.ts +25 -0
- package/es/panel-component/panel-view-header/panel-view-header.d.ts +28 -0
- package/es/panel-component/panel-view-header/panel-view-header.mjs +1 -1
- package/es/panel-component/panel-view-header/panel-view-header.provider.d.ts +15 -0
- package/es/panel-component/searchform-buttons/index.d.ts +26 -0
- package/es/panel-component/searchform-buttons/searchform-buttons.controller.d.ts +46 -0
- package/es/panel-component/searchform-buttons/searchform-buttons.d.ts +29 -0
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.provider.d.ts +15 -0
- package/es/panel-component/short-cut/index.d.ts +60 -0
- package/es/panel-component/short-cut/short-cut.css +1 -1
- package/es/panel-component/short-cut/short-cut.d.ts +63 -0
- package/es/panel-component/short-cut/short-cut.mjs +1 -1
- package/es/panel-component/short-cut/short-cut.provider.d.ts +12 -0
- package/es/panel-component/split-container/index.d.ts +25 -0
- package/es/panel-component/split-container/split-container.controller.d.ts +71 -0
- package/es/panel-component/split-container/split-container.d.ts +26 -0
- package/es/panel-component/split-container/split-container.mjs +1 -1
- package/es/panel-component/split-container/split-container.provider.d.ts +16 -0
- package/es/panel-component/split-container/split-container.state.d.ts +28 -0
- package/es/panel-component/user-action/index.d.ts +25 -0
- package/es/panel-component/user-action/user-action-provider.d.ts +6 -0
- package/es/panel-component/user-action/user-action.d.ts +28 -0
- package/es/panel-component/user-action/user-action.mjs +1 -1
- package/es/panel-component/user-message/async-action/async-action/async-action.d.ts +34 -0
- package/es/panel-component/user-message/async-action/async-action/async-action.mjs +1 -1
- package/es/panel-component/user-message/async-action/async-action/async-action.provider.d.ts +39 -0
- package/es/panel-component/user-message/async-action/async-action-preview/async-action-preview.d.ts +40 -0
- package/es/panel-component/user-message/async-action/async-action-preview/async-action-preview.mjs +1 -1
- package/es/panel-component/user-message/async-action/async-action-result/async-action-result.d.ts +25 -0
- package/es/panel-component/user-message/async-action/async-action-result/async-action-result.mjs +1 -1
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.d.ts +52 -0
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.mjs +1 -1
- package/es/panel-component/user-message/async-action/index.d.ts +3 -0
- package/es/panel-component/user-message/index.d.ts +33 -0
- package/es/panel-component/user-message/internal-message/common/index.d.ts +3 -0
- package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.d.ts +104 -0
- package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +1 -1
- package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.d.ts +29 -0
- package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.mjs +1 -1
- package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.d.ts +28 -0
- package/es/panel-component/user-message/internal-message/index.d.ts +3 -0
- package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.d.ts +30 -0
- package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.mjs +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.provider.d.ts +31 -0
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.d.ts +40 -0
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.mjs +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-json/internal-message-json.provider.d.ts +41 -0
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.d.ts +55 -0
- package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.mjs +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-text/internal-message-text.d.ts +29 -0
- package/es/panel-component/user-message/internal-message/internal-message-text/internal-message-text.mjs +1 -1
- package/es/panel-component/user-message/internal-message/internal-message-text/internal-message-text.provider.d.ts +28 -0
- package/es/panel-component/user-message/user-message.d.ts +36 -0
- package/es/panel-component/user-message/user-message.mjs +1 -1
- package/es/panel-component/user-message/user-message.provider.d.ts +15 -0
- package/es/panel-component/view-message/index.d.ts +24 -0
- package/es/panel-component/view-message/view-message.d.ts +26 -0
- package/es/panel-component/view-message/view-message.mjs +1 -1
- package/es/panel-component/view-message/view-message.provider.d.ts +15 -0
- package/es/panel-component/view-msg-pos/index.d.ts +25 -0
- package/es/panel-component/view-msg-pos/view-msg-pos.controller.d.ts +21 -0
- package/es/panel-component/view-msg-pos/view-msg-pos.d.ts +25 -0
- package/es/panel-component/view-msg-pos/view-msg-pos.mjs +1 -1
- package/es/panel-component/view-msg-pos/view-msg-pos.provider.d.ts +16 -0
- package/es/util/app-drawer/app-drawer-component.d.ts +38 -0
- package/es/util/app-drawer/app-drawer-component.mjs +2 -2
- package/es/util/app-float-window/app-float-window-component.d.ts +53 -0
- package/es/util/app-float-window/app-float-window-component.mjs +2 -2
- package/es/util/app-modal/app-modal-component.css +1 -1
- package/es/util/app-modal/app-modal-component.d.ts +44 -0
- package/es/util/app-modal/app-modal-component.mjs +2 -2
- package/es/util/app-popover/app-popover-component.d.ts +17 -0
- package/es/util/app-popover/app-popover-component.mjs +2 -2
- package/es/util/app-util/app-util.d.ts +90 -0
- package/es/util/confirm-util/confirm-util.d.ts +17 -0
- package/es/util/fullscreen/fullscreen-util.d.ts +38 -0
- package/es/util/fullscreen/fullscreen-util.mjs +9 -0
- package/es/util/index.d.ts +13 -0
- package/es/util/loading-util/loading-util.d.ts +66 -0
- package/es/util/message-util/message-util.d.ts +28 -0
- package/es/util/modal-util/modal-util.d.ts +17 -0
- package/es/util/notice-util/notice-util.d.ts +13 -0
- package/es/util/notification-util/notification-util.d.ts +55 -0
- package/es/util/open-view-util/open-view-util.d.ts +55 -0
- package/es/util/overlay-controller/overlay-controller.d.ts +21 -0
- package/es/util/pagination/use-pagination.d.ts +15 -0
- package/es/util/render-util/render-util.d.ts +48 -0
- package/es/util/render-util/render-util.mjs +1 -1
- package/es/util/wang-editor-util/wang-editor-util.d.ts +12 -0
- package/es/util/wang-editor-util/wang-editor-util.mjs +12 -7
- package/es/util/xlsx-util/xlsx-util.d.ts +45 -0
- package/es/view/403-view/403-view.d.ts +6 -0
- package/es/view/403-view/403-view.mjs +1 -1
- package/es/view/404-view/404-view.d.ts +6 -0
- package/es/view/404-view/404-view.mjs +1 -1
- package/es/view/error-view/error-view.d.ts +6 -0
- package/es/view/error-view/error-view.mjs +1 -1
- package/es/view/index.d.ts +6 -0
- package/es/view/login-view/login-view.css +1 -1
- package/es/view/login-view/login-view.d.ts +4 -0
- package/es/view/login-view/login-view.mjs +1 -1
- package/es/view/share-view/share-view.css +1 -1
- package/es/view/share-view/share-view.d.ts +10 -0
- package/es/view/share-view/share-view.mjs +1 -1
- package/es/view/sub-app-ref-view/index.d.ts +41 -0
- package/es/view/sub-app-ref-view/index.mjs +1 -1
- package/es/view/sub-app-ref-view/sub-app-ref-view.d.ts +44 -0
- package/es/view/sub-app-ref-view/sub-app-ref-view.mjs +1 -1
- package/es/view/sub-app-ref-view/sub-app-ref-view.provider.d.ts +13 -0
- package/es/view/wf-step-trace-view/index.d.ts +39 -0
- package/es/view/wf-step-trace-view/index.mjs +1 -1
- package/es/view/wf-step-trace-view/wf-step-trace-view.d.ts +42 -0
- package/es/view/wf-step-trace-view/wf-step-trace-view.mjs +1 -1
- package/es/view/wf-step-trace-view/wf-step-trace-view.provider.d.ts +11 -0
- package/es/view-engine/app-data-upload-view.engine.d.ts +13 -0
- package/es/view-engine/calendar-exp-view.engine.d.ts +25 -0
- package/es/view-engine/calendar-view.engine.d.ts +7 -0
- package/es/view-engine/chart-exp-view.engine.d.ts +24 -0
- package/es/view-engine/chart-view.engine.d.ts +15 -0
- package/es/view-engine/custom-view.engine.d.ts +5 -0
- package/es/view-engine/data-view-exp-view.engine.d.ts +35 -0
- package/es/view-engine/data-view.engine.d.ts +25 -0
- package/es/view-engine/de-index-view-engine.d.ts +33 -0
- package/es/view-engine/edit-view.engine.d.ts +105 -0
- package/es/view-engine/edit-view.engine.mjs +73 -36
- package/es/view-engine/edit-view2.engine.d.ts +32 -0
- package/es/view-engine/edit-view3.engine.d.ts +32 -0
- package/es/view-engine/edit-view4.engine.d.ts +32 -0
- package/es/view-engine/exp-view.engine.d.ts +62 -0
- package/es/view-engine/form-pickup-data-view.engine.d.ts +6 -0
- package/es/view-engine/gantt-view.engine.d.ts +9 -0
- package/es/view-engine/grid-exp-view.engine.d.ts +35 -0
- package/es/view-engine/grid-view.engine.d.ts +8 -0
- package/es/view-engine/index-view.engine.d.ts +26 -0
- package/es/view-engine/index.d.ts +10 -0
- package/es/view-engine/kanban-view.engine.d.ts +25 -0
- package/es/view-engine/list-exp-view.engine.d.ts +35 -0
- package/es/view-engine/list-view.engine.d.ts +7 -0
- package/es/view-engine/login-view.engine.d.ts +42 -0
- package/es/view-engine/map-view.engine.d.ts +7 -0
- package/es/view-engine/medit-view9.engine.d.ts +16 -0
- package/es/view-engine/mpickup-view-engine.d.ts +120 -0
- package/es/view-engine/mpickup-view2-engine.d.ts +34 -0
- package/es/view-engine/opt-view.engine.d.ts +59 -0
- package/es/view-engine/panel-view-engine.d.ts +21 -0
- package/es/view-engine/pickup-data-view.engine.d.ts +18 -0
- package/es/view-engine/pickup-grid-view.engine.d.ts +18 -0
- package/es/view-engine/pickup-tree-view.engine.d.ts +45 -0
- package/es/view-engine/pickup-view.engine.d.ts +62 -0
- package/es/view-engine/pickup-view2.engine.d.ts +25 -0
- package/es/view-engine/portal-view-engine.d.ts +21 -0
- package/es/view-engine/report-view.engine.d.ts +115 -0
- package/es/view-engine/sub-app-ref-view.engine.d.ts +11 -0
- package/es/view-engine/tab-exp-view.engine.d.ts +50 -0
- package/es/view-engine/tab-search-view.engine.d.ts +73 -0
- package/es/view-engine/tree-exp-view.engine.d.ts +26 -0
- package/es/view-engine/tree-grid-ex-view.engine.d.ts +8 -0
- package/es/view-engine/tree-grid-view.engine.d.ts +17 -0
- package/es/view-engine/tree-view.engine.d.ts +8 -0
- package/es/view-engine/wf-dyna-action-view.engine.d.ts +30 -0
- package/es/view-engine/wf-dyna-edit-view.engine.d.ts +103 -0
- package/es/view-engine/wf-dyna-edit-view3.engine.d.ts +21 -0
- package/es/view-engine/wf-dyna-start-view.engine.d.ts +30 -0
- package/es/view-engine/wizard-view-engine.d.ts +26 -0
- package/es/web-app/App.d.ts +6 -0
- package/es/web-app/App.mjs +2 -2
- package/es/web-app/attach-environment-config.d.ts +1 -0
- package/es/web-app/components/index.d.ts +2 -0
- package/es/web-app/components/modal-router-shell/modal-router-shell.d.ts +13 -0
- package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +2 -2
- package/es/web-app/components/router-shell/router-shell.d.ts +35 -0
- package/es/web-app/components/router-shell/router-shell.mjs +2 -2
- package/es/web-app/create-vue-app.d.ts +13 -0
- package/es/web-app/create-vue-app.mjs +9 -1
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +88 -0
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +6 -0
- package/es/web-app/guard/index.d.ts +2 -0
- package/es/web-app/index.d.ts +3 -0
- package/es/web-app/main.d.ts +5 -0
- package/es/web-app/router/index.d.ts +8 -0
- package/es/web-app/router/index.mjs +1 -1
- package/es/web-app/util/index.d.ts +1 -0
- package/es/web-app/util/unauthorized-handler/unauthorized-handler.d.ts +46 -0
- package/lib/common/custom-filter-condition/custom-filter-condition.cjs +288 -0
- package/lib/common/custom-filter-condition/custom-filter-condition.css +1 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +62 -0
- package/lib/common/custom-theme/custom-theme.controller.cjs +6 -5
- package/lib/common/custom-theme/custom-theme.css +1 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/pagination/pagination.cjs +1 -1
- package/lib/common/pagination/pagination.css +1 -1
- package/lib/common/pql-editor/pql-editor.cjs +201 -142
- package/lib/common/pql-editor/pql-editor.module.cjs +2 -2
- package/lib/common/pql-editor/utils/index.cjs +144 -55
- package/lib/common/rawitem/rawitem.cjs +16 -0
- package/lib/control/app-menu/app-menu.cjs +3 -2
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/caption-bar/caption-bar.cjs +11 -2
- package/lib/control/caption-bar/caption-bar.css +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +34 -9
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -2
- package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard.cjs +15 -3
- package/lib/control/dashboard/index.cjs +5 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +343 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/index.cjs +3 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.cjs +132 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-item/filter-portlet-item.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.cjs +89 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.css +1 -0
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet.provider.cjs +23 -0
- package/lib/control/dashboard/portlet/filter-portlet/index.cjs +20 -0
- package/lib/control/dashboard/portlet/index.cjs +4 -0
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-druipart/form-druipart.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +6 -2
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +8 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +3 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +5 -11
- package/lib/control/grid/grid/grid-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +3 -1
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +2 -2
- package/lib/control/index.cjs +22 -18
- package/lib/control/search-bar/quick-search-select/quick-search-select.cjs +1 -0
- package/lib/control/search-bar/quick-search-select/quick-search-select.css +1 -1
- package/lib/control/search-bar/search-bar.css +1 -1
- package/lib/control/search-bar/search-groups/search-groups.cjs +8 -5
- package/lib/control/toolbar/export-excel/export-excel.css +1 -1
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/tree-grid-ex-edit-column.cjs +2 -2
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +1 -1
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +26 -55
- package/lib/editor/date-range-select/date-range-select-picker/components/week-range-select/week-range-select.cjs +1 -1
- package/lib/editor/date-range-select/date-range-select-picker/date-range-select.cjs +31 -8
- package/lib/editor/date-range-select/date-range-select.controller.cjs +92 -5
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +47 -21
- package/lib/editor/html/wang-editor/module/emoji-module.cjs +2 -2
- package/lib/editor/index.cjs +1 -1
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +32 -32
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +17 -2
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +6 -7
- package/lib/editor/span/span/span.cjs +2 -0
- package/lib/editor/span/span/span.css +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +4 -2
- package/lib/editor/upload/use/use-iview-upload.cjs +37 -0
- package/lib/index.cjs +52 -48
- package/lib/interface/i-field.cjs +3 -0
- package/lib/interface/i-filter-condition.cjs +3 -0
- package/lib/interface/i-pql-node-item.cjs +3 -0
- package/lib/interface/index.cjs +3 -0
- package/lib/locale/en/index.cjs +54 -3
- package/lib/locale/zh-CN/index.cjs +54 -3
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/h.cjs +3 -1
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/htmldomapi.cjs +1 -1
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/index.cjs +5 -2
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/init.cjs +8 -24
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/jsx.cjs +3 -0
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/attributes.cjs +3 -7
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/dataset.cjs +2 -2
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/eventlisteners.cjs +1 -1
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/style.cjs +6 -6
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/thunk.cjs +1 -1
- package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/tovnode.cjs +8 -2
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.cjs +19 -3
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +48 -4
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.state.cjs +14 -0
- package/lib/panel-component/nav-tabs/nav-tabs.css +1 -1
- package/lib/panel-component/panel-app-login-view/panel-app-login-view.css +1 -1
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +46 -3
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +28 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-exp-header/panel-exp-header.css +1 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/short-cut/short-cut.css +1 -1
- package/lib/util/app-modal/app-modal-component.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +9 -0
- package/lib/util/wang-editor-util/wang-editor-util.cjs +12 -7
- package/lib/view/login-view/login-view.css +1 -1
- package/lib/view/share-view/share-view.css +1 -1
- package/lib/view-engine/edit-view.engine.cjs +72 -35
- package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +1 -1
- package/lib/web-app/create-vue-app.cjs +9 -1
- package/package.json +9 -8
- package/dist/chart-C95ofGUJ.js +0 -1
- package/dist/index-BqOPzOTe.js +0 -4
- package/dist/index-Cn4rG514.js +0 -1
- package/dist/index-WQEDVftL.js +0 -1
- package/dist/xlsx-util-TeHbTGD_.js +0 -2
- /package/dist/{ibiz-markdown-editor-B4c6yGAW.js → ibiz-markdown-editor-anJxfRF1.js} +0 -0
- /package/dist/{map-chart-BsStf5eZ.js → map-chart-A4-TpWet.js} +0 -0
- /package/dist/{wang-editor-BUIAd4uJ.js → wang-editor-AcjI1Mdj.js} +0 -0
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.32_axios@1.7.2_lodash-es@4.17.21_qs@6.12.3_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.35-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/es/node_modules/.pnpm/{dayjs@1.11.12 → dayjs@1.11.10}/node_modules/dayjs/locale/zh-cn.mjs +0 -0
- /package/es/node_modules/.pnpm/{element-plus@2.4.4_vue@3.4.34 → element-plus@2.4.4_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.mjs +0 -0
- /package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/helpers/attachto.mjs +0 -0
- /package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/hooks.mjs +0 -0
- /package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/is.mjs +0 -0
- /package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/class.mjs +0 -0
- /package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/props.mjs +0 -0
- /package/es/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/vnode.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.32_axios@1.7.2_lodash-es@4.17.21_qs@6.12.3_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.35-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
- /package/lib/node_modules/.pnpm/{dayjs@1.11.12 → dayjs@1.11.10}/node_modules/dayjs/locale/zh-cn.cjs +0 -0
- /package/lib/node_modules/.pnpm/{element-plus@2.4.4_vue@3.4.34 → element-plus@2.4.4_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.cjs +0 -0
- /package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/helpers/attachto.cjs +0 -0
- /package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/hooks.cjs +0 -0
- /package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/is.cjs +0 -0
- /package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/class.cjs +0 -0
- /package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/modules/props.cjs +0 -0
- /package/lib/node_modules/.pnpm/{snabbdom@3.6.2 → snabbdom@3.5.1}/node_modules/snabbdom/build/vnode.cjs +0 -0
package/dist/index-BqOPzOTe.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","@ibiz-template/core","@ibiz-template/runtime","qx-util","dayjs","ramda","qs","vuedraggable","@wangeditor/editor","vue-router","lodash-es","@floating-ui/dom","element-plus","interactjs","axios","dayjs/plugin/customParseFormat","vue-i18n","@ibiz-template/model-helper"],(function(e,t){"use strict";var a,n,o,i,s,l,r,c,d,u,p,h,m,v,b,g,w,f,y,C,I,D,E,P,k,S,x,T,z,O,_,A,B,j,M,R,N,L,V,F,U,q,G,H,W,K,Y,X,$,J,Q,Z,ee,te,ae,ne,oe,ie,se,le,re,ce,de,ue,pe,he,me,ve,be,ge,we,fe,ye,Ce,Ie,De,Ee,Pe,ke,Se,xe,Te,ze,Oe,_e,Ae,Be,je,Me,Re,Ne,Le,Ve,Fe,Ue,qe,Ge,He,We,Ke,Ye,Xe,$e,Je,Qe,Ze,et,tt,at,nt,ot,it,st,lt,rt,ct,dt,ut,pt,ht,mt,vt,bt,gt,wt,ft,yt,Ct,It,Dt,Et,Pt,kt,St,xt,Tt,zt,Ot,_t,At,Bt,jt,Mt,Rt,Nt,Lt,Vt,Ft,Ut,qt,Gt,Ht,Wt,Kt,Yt,Xt,$t,Jt,Qt,Zt,ea,ta,aa,na,oa,ia,sa,la,ra,ca,da,ua,pa,ha,ma,va,ba,ga,wa,fa,ya,Ca,Ia,Da,Ea,Pa,ka,Sa,xa,Ta,za,Oa,_a,Aa,Ba,ja,Ma,Ra,Na,La,Va,Fa,Ua,qa,Ga,Ha,Wa,Ka,Ya,Xa,$a,Ja,Qa,Za,en,tn,an,nn,on,sn,ln,rn,cn,dn,un,pn,hn,mn,vn,bn,gn,wn,fn,yn,Cn,In,Dn,En,Pn,kn,Sn,xn,Tn,zn,On,_n,An,Bn,jn,Mn,Rn,Nn,Ln,Vn,Fn,Un,qn,Gn,Hn,Wn,Kn,Yn,Xn,$n,Jn,Qn,Zn,eo,to,ao,no,oo,io,so,lo,ro,co,uo,po,ho,mo,vo,bo,go,wo,fo,yo,Co,Io,Do,Eo,Po,ko,So,xo,To,zo,Oo,_o,Ao,Bo,jo,Mo,Ro,No,Lo,Vo,Fo,Uo,qo,Go,Ho,Wo,Ko,Yo,Xo,$o,Jo,Qo,Zo,ei,ti,ai,ni,oi,ii,si,li,ri,ci;return{setters:[function(e){a=e.defineComponent,n=e.ref,o=e.createVNode,i=e.resolveComponent,s=e.isVNode,l=e.computed,r=e.h,c=e.watch,d=e.onMounted,u=e.nextTick,p=e.onBeforeUnmount,h=e.withDirectives,m=e.vShow,v=e.mergeProps,b=e.createTextVNode,g=e.resolveDirective,w=e.reactive,f=e.getCurrentInstance,y=e.vModelText,C=e.onUnmounted,I=e.createApp,D=e.defineAsyncComponent,E=e.watchEffect,P=e.renderSlot,k=e.toRaw,S=e.onActivated,x=e.warn,T=e.inject,z=e.KeepAlive,O=e.onDeactivated,_=e.Fragment},function(e){A=e.useNamespace,B=e.IBizControlBase,j=e.IBizIcon,M=e.IBizRouterView,R=e.IBizViewShell,N=e.IBizControlShell,L=e.IBizCodeList,V=e.IBizBadge,F=e.useControlController,U=e.withInstall,q=e.useCodeListListen,G=e.useClickOutside,H=e.useEventListener,W=e.routerCallback,K=e.generateRoutePath,Y=e.generateRoutePathByModal,X=e.openViewModal,$=e.openViewPopover,J=e.getDrawerPlacement,Q=e.openViewDrawer,Z=e.OverlayPopoverContainer,ee=e.useUIStore,te=e.OverlayContainer,ae=e.useController,ne=e.useCtx,oe=e.getNestedRoutePath,ie=e.route2routePath,se=e.onRouteChange,le=e.useLocalCacheKey,re=e.ControlLoadingPlaceholder,ce=e.routePath2string,de=e.PanelContainerController,ue=e.IBizPanelContainer,pe=e.IBizPanelCtrlPos,he=e.IBizScrollContainer,me=e.IBizNavPos,ve=e.IBizSingleDataContainer,be=e.IBizMultiDataContainer,ge=e.IBizPanelField,we=e.IBizPanelRawItem,fe=e.IBizGridContainer,ye=e.IBizPanelTabPage,Ce=e.IBizPanelContainerGroup,Ie=e.IBizPanelContainerImage,De=e.IBizPanelItemRender,Ee=e.IBizTeleportPlaceholder,Pe=e.IBizPanelContainerTabs,ke=e.getSpanProps,Se=e.useFocusAndBlur,xe=e.getEditorEmits,Te=e.getInputProps,ze=e.getInputNumberProps,Oe=e.getInputIpProps,_e=e.getDropdownProps,Ae=e.getCheckboxProps,Be=e.useAutoFocusBlur,je=e.getCheckboxListProps,Me=e.getRadioProps,Re=e.getDatePickerProps,Ne=e.getRawProps,Le=e.getStepperProps,Ve=e.getRateProps,Fe=e.getSwitchProps,Ue=e.getSliderProps,qe=e.getListBoxProps,Ge=e.getAutoCompleteProps,He=e.getUploadProps,We=e.getDataPickerProps,Ke=e.renderString,Ye=e.getNumberRangeProps,Xe=e.getDateRangeProps,$e=e.getCodeProps,Je=e.getArrayProps,Qe=e.getCascaderProps,Ze=e.getColorPickerProps,et=e.useViewController,tt=e.AppHooks,at=e.IBizView,nt=e.IBizPortalView,ot=e.IBizDeRedirectView,it=e.IBizViewLayoutPanelControl,st=e.IBizPanelControl,lt=e.piniaInstance,rt=e.parseRouteViewData,ct=e.createOverlayView,dt=e.AppRedirectView,ut=e.useAppStore,pt=e.PluginFactory},function(e){ht=e.showTitle,mt=e.CoreConst,vt=e.RuntimeError,bt=e.listenJSEvent,gt=e.Namespace,wt=e.UrlHelper,ft=e.calcOpenModeStyle,yt=e.NOOP,Ct=e.recursiveIterate,It=e.ModelError,Dt=e.mergeInLeft,Et=e.clone,Pt=e.downloadFileFromBlob,kt=e.IBizContext,St=e.DataTypes,xt=e.isEmoji,Tt=e.base64ToStr,zt=e.RuntimeModelError,Ot=e.strToBase64,_t=e.HttpError,At=e.LoginMode,Bt=e.install},function(e){jt=e.calcContentAlignStyle,Mt=e.downloadImportTemplate,Rt=e.selectAndImport,Nt=e.getDefaultDataImport,Lt=e.getImportSchema,Vt=e.updateImportSchema,Ft=e.createImportSchema,Ut=e.asyncImportData2,qt=e.fetchImportSchemas,Gt=e.deleteImportSchema,Ht=e.findChildFormDetails,Wt=e.ValueOP,Kt=e.AppMenuController,Yt=e.ViewCallTag,Xt=e.registerControlProvider,$t=e.ControlType,Jt=e.AppMenuIconViewController,Qt=e.GridFieldColumnController,Zt=e.GridRowState,ea=e.ValueExUtil,ta=e.registerGridColumnProvider,aa=e.GridUAColumnController,na=e.GridFieldEditColumnController,oa=e.GridGroupColumnController,ia=e.Srfuf,sa=e.ControlVO,la=e.Modal,ra=e.ViewMode,ca=e.getAsyncActionProvider,da=e.GridController,ua=e.ScriptFactory,pa=e.ListController,ha=e.SearchFormController,ma=e.FormGroupPanelController,va=e.registerFormDetailProvider,ba=e.FormItemController,ga=e.FormPageController,wa=e.FormButtonController,fa=e.FormDRUIPartController,ya=e.FormMDCtrlController,Ca=e.FormMDCtrlFormController,Ia=e.FormMDCtrlMDController,Da=e.FormMDCtrlRepeaterController,Ea=e.EditFormController,Pa=e.FormRawItemController,ka=e.FormTabPanelController,Sa=e.FormTabPageController,xa=e.ToolbarController,Ta=e.CaptionBarController,za=e.DataViewControlController,Oa=e.TreeController,_a=e.getControlPanel,Aa=e.PickupViewPanelController,Ba=e.TabExpPanelController,ja=e.TreeExpBarController,Ma=e.ExpBarControlController,Ra=e.CalendarExpBarController,Na=e.ChartExpBarController,La=e.SearchBarController,Va=e.WizardPanelController,Fa=e.ControlController,Ua=e.calcItemVisibleByCounter,qa=e.calcItemVisible,Ga=e.calcNavParams,Ha=e.hasSubRoute,Wa=e.CounterService,Ka=e.DashboardController,Ya=e.getPortletProvider,Xa=e.CustomDashboardController,$a=e.ContainerPortletController,Ja=e.registerPortletProvider,Qa=e.PortletPartController,Za=e.ViewPortletController,en=e.MenuPortletController,tn=e.ChartPortletController,an=e.RawItemPortletController,nn=e.ListPortletController,on=e.HtmlPortletController,sn=e.ActionBarPortletController,ln=e.ReportPortletController,rn=e.CalendarController,cn=e.KanbanController,dn=e.TreeGridExController,un=e.TreeGridExFieldColumnController,pn=e.TreeGridExRowState,hn=e.registerTreeGridExColumnProvider,mn=e.TreeGridExNodeColumnController,vn=e.TreeGridExUAColumnController,bn=e.TreeGridController,gn=e.MEditViewPanelController,wn=e.MapController,fn=e.ReportPanelController,yn=e.UIActionUtil,Cn=e.GanttController,In=e.ContextMenuController,Dn=e.PanelItemController,En=e.registerPanelItemProvider,Pn=e.PanelItemState,kn=e.UIActionButtonState,Sn=e.AppFuncCommand,xn=e.parseViewProtocol,Tn=e.OpenAppViewCommand,zn=e.getInternalMessageProvider,On=e.registerInternalMessageProvider,_n=e.PresetIdentifier,An=e.registerAsyncActionProvider,Bn=e.CodeListEditorController,jn=e.getDeACMode,Mn=e.EditorController,Rn=e.getAcItemProvider,Nn=e.calcDeCodeNameById,Ln=e.getEntitySchema,Vn=e.calcFilterModelBySchema,Fn=e.SearchBarFilterController,Un=e.getOriginFilterNodes,qn=e.SearchCondEx2filterNode,Gn=e.calcSearchCondExs,Hn=e.registerEditorProvider,Wn=e.WFStepTraceViewController,Kn=e.registerViewProvider,Yn=e.ViewType,Xn=e.ViewController,$n=e.getErrorViewProvider,Jn=e.ViewEngineBase,Qn=e.getControl,Zn=e.getControlsByView,eo=e.SysUIActionTag,to=e.getAppViewRef,ao=e.MDViewEngine,no=e.getWFSubmitViewId,oo=e.registerErrorViewProvider,io=e.RouteConst,so=e.install},function(e){lo=e.createUUID,ro=e.getCookie,co=e.clearAll,uo=e.notNilEmpty,po=e.isNilOrEmpty},function(e){ho=e.default},function(e){mo=e.clone,vo=e.isNil,bo=e.isNotNil,go=e.mergeRight,wo=e.reject,fo=e.mergeDeepLeft,yo=e.isEmpty,Co=e.mergeDeepRight},function(e){Io=e.default},function(e){Do=e.default},function(e){Eo=e.DomEditor,Po=e.SlateEditor,ko=e.Boot,So=e.createEditor,xo=e.SlatePath},function(e){To=e.useRoute,zo=e.useRouter,Oo=e.onBeforeRouteUpdate,_o=e.createRouter,Ao=e.createWebHashHistory},function(e){Bo=e.cloneDeep,jo=e.isNumber,Mo=e.isFunction,Ro=e.isString,No=e.isNil,Lo=e.debounce,Vo=e.uniqueId,Fo=e.fromPairs,Uo=e.isObject,qo=e.isArray,Go=e.isDate,Ho=e.toNumber,Wo=e.clone},function(e){Ko=e.computePosition,Yo=e.autoUpdate,Xo=e.offset,$o=e.flip,Jo=e.shift,Qo=e.arrow},function(e){Zo=e.ElLoading,ei=e.ElMessage,ti=e.ElMessageBox,ai=e.ElNotification,ni=e.default,oi=e.useLocale},function(e){ii=e.default},function(e){si=e.default},function(e){li=e.default},function(e){ri=e.createI18n},function(e){ci=e.ModelHelper}],execute:function(){e({b5:$l,ba:Ll,bc:async function(e,t){tt.createApp.tap(((t,a)=>{e&&e.forEach((e=>{a.use(e)}))})),Bt(),so(),ibiz.util.getGlobalParam=()=>ut().appStore,ibiz.util.getRouterParams=()=>ie(XE.getRouter().currentRoute.value).pathNodes,ibiz.plugin=new pt,ibiz.util.error.register(new VE);const a=ME(LE);let n;te.createVueApp=ME,window.onerror=function(e,t,a,n,o){o&&ibiz.util.error.handle(o)},window.addEventListener("unhandledrejection",(function(e){e.preventDefault(),e.promise.catch((e=>{ibiz.util.error.handle(e)}))})),await NE(),n=(null==t?void 0:t.getAuthGuard)?t.getAuthGuard():new AE;XE.setAuthGuard((e=>n.verify(e))),a.use(XE.getRouter()),ibiz.appUtil=new tr(XE.getRouter()),ibiz.openView=new ql(XE.getRouter()),ibiz.render=new er,ibiz.message=new Bl,ibiz.modal=new jl,ibiz.confirm=new Nl,ibiz.notification=new Ul,ibiz.loading=new Ol,ibiz.notice=new Zl,ibiz.overlay=new Xl,ibiz.util.text.format=(e,t)=>a.config.globalProperties.$textFormat(e,t),ibiz.fullscreenUtil=new or,await ibiz.i18n.init(),a.mount("#app")},m:El,n:Pl,o:kl,p:Sl,u:Dl});const di=e("d",a({name:"IBizActionToolbar",props:{actionDetails:{type:Array,required:!0},actionsState:{type:Object,required:!0},caption:String,mode:{type:String,default:"buttons"},groupLevelKeys:{type:Object,default:[50]},zIndex:{type:Number,required:!0},popperClass:String},setup(e,{emit:t}){const a=A("action-toolbar"),o=n(),i=n(!1);e.actionDetails.forEach((e=>{e.capLanguageRes&&e.capLanguageRes.lanResTag&&(e.caption=ibiz.i18n.t(e.capLanguageRes.lanResTag,e.caption)),e.tooltipLanguageRes&&e.tooltipLanguageRes.lanResTag&&(e.tooltip=ibiz.i18n.t(e.tooltipLanguageRes.lanResTag,e.tooltip))}));const s=n([]),l=n([]);e.actionDetails&&e.actionDetails.forEach((t=>{-1!==e.groupLevelKeys.findIndex((e=>e===t.actionLevel))?l.value.push(t):s.value.push(t)}));const r=n(),c=e.zIndex;return{ns:a,dropdownRef:o,popoverIndex:c,expandDetails:s,groupDetails:l,groupButtonRef:r,popoverVisible:i,handleClick:async(a,n)=>{n.stopPropagation(),"buttons"===e.mode?i.value=!1:o.value&&o.value.handleClose(),t("action-click",a,n)},calcActionItemClass:e=>{const{actionLevel:t}=e;return[a.e("item"),a.is("disabled",!1),a.em("item","level-".concat(t))]}}},render(){const e=this.actionDetails||[],t=e=>o(i("el-divider"),{class:this.ns.e("separator"),"border-style":"double",direction:e?"vertical":"horizontal"},null),a=(e,a=!0)=>e.map((e=>this.actionsState[e.id].visible?[e.addSeparator&&t(a),o(i("el-button"),{text:!0,size:"small",onClick:t=>this.handleClick(e,t),title:ht(e.tooltip),disabled:this.actionsState[e.id].disabled,class:this.calcActionItemClass(e)},{default:()=>[o("div",{class:[this.ns.em("item","icon"),this.ns.is("has-caption",e.showCaption&&!!e.caption),this.ns.is("has-icon",e.showIcon&&!!e.sysImage)]},[e.showIcon&&e.sysImage&&o(i("iBizIcon"),{icon:e.sysImage},null)]),o("div",{class:[this.ns.em("item","label"),this.ns.is("has-caption",e.showCaption&&!!e.caption),this.ns.is("has-icon",e.showIcon&&!!e.sysImage)]},[e.showCaption?e.caption:""])]})]:null)),n=()=>{let e;if(0===this.groupDetails.length)return null;if(!(-1!==this.groupDetails.findIndex((e=>!0===this.actionsState[e.id].visible))))return null;const t=-1===this.groupDetails.findIndex((e=>!1===this.actionsState[e.id].disabled));return[o(i("el-button"),{size:"small",text:!0,disabled:t,ref:"groupButtonRef",class:[this.ns.e("item"),this.ns.is("expand",this.popoverVisible)]},{icon:()=>o("ion-icon",{class:this.ns.e("icon"),name:"ellipsis-vertical",title:ht(ibiz.i18n.t("component.actionToolbar.more"))},null)}),o(i("el-popover"),{placement:"bottom-start","virtual-ref":this.groupButtonRef,trigger:"click",visible:this.popoverVisible,"onUpdate:visible":e=>this.popoverVisible=e,"popper-class":this.ns.e("popover"),"virtual-triggering":!0,"popper-style":"z-index:".concat(this.popoverIndex)},(n=e=a(this.groupDetails,!1),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?e:{default:()=>[e]}))];var n};if(this.actionsState.visible)return"buttons"===this.mode?o("div",{class:[this.ns.b(),this.ns.m("buttons")],onClick:e=>e.stopPropagation()},[a(this.expandDetails),n()]):o(i("el-dropdown"),{ref:"dropdownRef",onCommand:e=>this.handleClick(e,new MouseEvent("click")),class:[this.ns.b(),this.ns.m("dropdown")],"popper-class":this.popperClass},{default:()=>o("span",{class:this.ns.e("caption")},[this.caption,o("ion-icon",{class:this.ns.e("caption-icon"),name:"ellipsis-vertical"},null)]),dropdown:()=>o(i("el-dropdown-menu"),null,{default:()=>[e.length>0&&e.map((e=>this.actionsState[e.id].visible?o(i("el-dropdown-item"),{class:[this.ns.e("item"),this.ns.is("disabled",!1)],title:ht(e.tooltip),disabled:this.actionsState[e.id].disabled,command:e},{default:()=>[e.showIcon&&e.sysImage&&o(i("iBizIcon"),{icon:e.sysImage},null),e.showCaption?e.caption:""]}):null))]})})}}));function ui(e,t,a){const n=t&&-1!==t?t:0,o={span:(e&&-1!==e?e:"TABLE_24COL"===a?24:12)*("TABLE_24COL"===a?1:2)};return 0!==n&&(o.offset=n),o}const pi=e("a",a({name:"IBizCol",props:{layoutPos:{type:Object,required:!0},state:{type:Object,required:!0}},setup(e){const t=A("col"),a=l((()=>{const t=A("spacing"),a=[],n={top:e.layoutPos.spacingTop,bottom:e.layoutPos.spacingBottom,left:e.layoutPos.spacingLeft,right:e.layoutPos.spacingRight};return Object.keys(n).forEach((e=>{const o=n[e];o&&a.push(t.bm(e,o.toLowerCase()))})),a})),n=l((()=>{const t=e.layoutPos;if("FLEX"===t.layout)return{};const{colXS:a,colXSOffset:n,colSM:o,colSMOffset:i,colMD:s,colMDOffset:l,colLG:r,colLGOffset:c}=t;return{xs:ui(a,n,t.layout),sm:ui(o,i,t.layout),md:ui(s,l,t.layout),lg:ui(r,c,t.layout)}})),o=jt(e.layoutPos),i=l((()=>{const t=e.state.layout,a={width:t.width,height:t.height,...o||{}};return Object.assign(a,t.extraStyle),a})),s=l((()=>{var n;return[t.b(),"FLEX"===(null==(n=e.layoutPos)?void 0:n.layout)?t.m("flex"):t.m("grid"),t.is("hidden",!e.state.visible),...a.value,o?t.m("self-align"):"",...e.state.layout.extraClass]}));return{ns:t,colClass:s,gridAttrs:n,cssVars:i}},render(){var e,t,a;if(!this.state.visible&&!this.state.keepAlive)return null;const n=null==(t=(e=this.$slots).default)?void 0:t.call(e);if("FLEX"===(null==(a=this.layoutPos)?void 0:a.layout)){const e=this.layoutPos;return o("div",{class:this.colClass,style:{flexGrow:e.grow,flexShrink:1===e.shrink?void 0:e.shrink,flexBasis:e.basis,...this.cssVars}},[n])}return r(i("el-col"),{class:this.colClass,style:this.cssVars,...this.gridAttrs},{default:()=>n})}}));const hi=e("b",a({name:"IBizRow",props:{layout:Object},setup:()=>({ns:A("row")}),render(){var e,t,a;const n=null==(t=(e=this.$slots).default)?void 0:t.call(e);if("FLEX"===(null==(a=this.layout)?void 0:a.layout)){const{dir:e,align:t,valign:a}=this.layout,i=e;return o("div",{class:[this.ns.b(),this.ns.m("flex"),this.ns.m(i)],style:{flexDirection:i,justifyContent:t,alignItems:a}},[n])}return o(i("el-row"),{class:[this.ns.b(),this.ns.m("grid")]},"function"==typeof(l=n)||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?n:{default:()=>[n]});var l}})),mi=e("e",a({name:"IBizRawItem",props:{type:{type:String,required:!1},content:{type:[String,Object,Number]},rawItem:{type:Object,required:!1}},setup(e){const t=A("rawitem");let a=null,o="";e.rawItem&&(a=e.rawItem.rawItem,o=a.contentType);const i=n(e.type||o||""),s=n("");let l;"IMAGE"===o&&(l=a.sysImage),"RAW"===o||"HTML"===o?"RAW"===o?(i.value="TEXT",s.value=a.caption):s.value=a.content:["VIDEO","DIVIDER","INFO","WARNING","ERROR"].includes(o)||"IMAGE"===o&&l&&(s.value=l);const r=n({id:lo(),path:"",mute:!0,autoplay:!0,replay:!1,showcontrols:!0}),d=n({contentPosition:"center",html:""}),u=n({type:"info",title:"",closeabled:!0,showIcon:!1}),p=n(""),h=()=>{var t;if("IMAGE"===i.value&&(e.content&&"string"==typeof e.content?(t=e.content,/^https?:|^http?:|(\.png|\.svg|\.jpg|\.png|\.gif|\.psd|\.tif|\.bmp|\.jpeg)/.test(t)?s.value={imagePath:e.content}:s.value={cssClass:e.content}):l&&(s.value=l)),["TEXT","HEADING1","HEADING2","HEADING3","HEADING4","HEADING5","HEADING6","PARAGRAPH","HTML","RAW"].includes(i.value)&&(p.value=s.value,"string"==typeof p.value)){const e=p.value;p.value=e.replace(/</g,"<").replace(/>/g,">").replace(/&nbsp;/g," ").replace(/ /g," ")}if(["VIDEO","DIVIDER","INFO","WARNING","ERROR"].includes(i.value)&&s.value){let e={};try{if("string"==typeof s.value){switch(e=new Function("return (".concat(s.value,");"))(),i.value){case"VIDEO":Object.assign(r.value,e);break;case"DIVIDER":Object.assign(d.value,e);break;case"INFO":case"WARNING":case"ERROR":u.value.type=i.value.toLocaleLowerCase(),Object.assign(u.value,e)}}}catch(e){ibiz.log.error(ibiz.i18n.t("component.rawItem.errorConfig",{type:i.value}))}}};return h(),c((()=>e.content),((e,t)=>{e&&e!==t&&(s.value=e,h())}),{immediate:!0}),{ns:t,rawItemText:p,playerParams:r,dividerParams:d,alertParams:u,rawItemType:i,rawItemContent:s}},render(){return o("div",{class:this.ns.b()},[(()=>"IMAGE"===this.rawItemType?o(i("i-biz-icon"),{class:[this.ns.e("image")],icon:this.rawItemContent},null):"TEXT"===this.rawItemType||"RAW"===this.rawItemType?o("span",{class:this.ns.e("text")},[this.rawItemText]):"HEADING1"===this.rawItemType?o("h1",{class:this.ns.e("h1")},[this.rawItemText]):"HEADING2"===this.rawItemType?o("h2",{class:this.ns.e("h2")},[this.rawItemText]):"HEADING3"===this.rawItemType?o("h3",{class:this.ns.e("h3")},[this.rawItemText]):"HEADING4"===this.rawItemType?o("h4",{class:this.ns.e("h4")},[this.rawItemText]):"HEADING5"===this.rawItemType?o("h5",{class:this.ns.e("h5")},[this.rawItemText]):"HEADING6"===this.rawItemType?o("h6",{class:this.ns.e("h6")},[this.rawItemText]):"PARAGRAPH"===this.rawItemType?o("p",{class:this.ns.e("paragraph")},[this.rawItemText]):"HTML"===this.rawItemType?o("div",{class:this.ns.e("paragraph"),innerHTML:this.rawItemText},null):"VIDEO"===this.rawItemType?o("div",{class:this.ns.e("video")},[o("video",{id:this.playerParams.id,src:this.playerParams.path,autoplay:this.playerParams.autoplay,controls:this.playerParams.showcontrols,loop:this.playerParams.replay,muted:this.playerParams.mute},[o("source",{src:this.playerParams.path,type:"video/mp4"},null),o("source",{src:this.playerParams.path,type:"video/ogg"},null),o("source",{src:this.playerParams.path,type:"video/webm"},null),ibiz.i18n.t("component.rawItem.noSupportVideo")])]):"DIVIDER"===this.rawItemType?o(i("el-divider"),{"content-position":this.dividerParams.contentPosition},{default:()=>[o("span",{innerHTML:this.dividerParams.html},null)]}):"INFO"===this.rawItemType||"WARNING"===this.rawItemType||"ERROR"===this.rawItemType?o(i("el-alert"),{title:ht(this.alertParams.title),type:this.alertParams.type,"show-icon":this.alertParams.showIcon,closable:this.alertParams.closeabled},null):"MARKDOWN"===this.rawItemType?o(i("iBizMarkDown"),{value:this.content,disabled:!0},null):(["PLACEHOLDER"].includes(this.rawItemType),null))()])}})),vi=a({name:"IBizNoData",props:{text:{type:String,default:"暂无数据"},emptyTextLanguageRes:{type:Object,default:void 0},enableShowImage:{type:Boolean,default:!1}},setup(e){const t=A("no-data"),a=n(e.text);return e.emptyTextLanguageRes&&(a.value=ibiz.i18n.t(e.emptyTextLanguageRes.lanResTag,e.text)),{ns:t,label:a}},render(){return o(i("el-empty"),{class:[this.ns.b(),this.enableShowImage?"hideImage":""],description:this.label},{default:()=>{var e,t;return[null==(t=(e=this.$slots).default)?void 0:t.call(e)]}})}}),bi=e("f",a({name:"IBizSplit",props:{modelValue:{type:[Number,String],default:.5},mode:{validator:e=>["horizontal","vertical"].includes(e),default:"horizontal"},min:{type:[Number,String],default:"30px"},max:{type:[Number,String],default:"30px"}},emits:["update:modelValue","on-move-start","on-moving","on-move-end"],setup(e,{emit:t}){const a=A("split"),o=n(null),i=n(0),s=n(0),r=n(!1),h=n(0),m=n(0),v=n(.5),b=n(0),g=l((()=>[a.b("wrapper"),a.is("no-select",r.value)])),w=l((()=>[a.b("pane"),r.value?a.bm("pane","moving"):""])),f=l((()=>"horizontal"===e.mode)),y=l((()=>100-i.value)),C=l((()=>"string"==typeof e.modelValue)),I=l((()=>f.value?"offsetWidth":"offsetHeight")),D=(e,t)=>parseFloat(e)/parseFloat(t),E=t=>{const a=o.value[I.value];return C.value?"string"==typeof e[t]?e[t]:a*e[t]:"string"==typeof e[t]?D(e[t],a):e[t]},P=(e,t)=>C.value?"".concat(Math.max(parseFloat(e),parseFloat(t)),"px"):Math.max(e,t),k=e=>{let t=0;return t=C.value?"".concat(o.value[I.value]-parseFloat(e),"px"):1-e,t},S=a=>{const n=(f.value?a.pageX:a.pageY)-b.value,i=o.value[I.value];let l=C.value?"".concat(parseFloat(s.value)+n,"px"):D(i*s.value+n,i);const r=k(l);parseFloat(l)<=parseFloat(h.value)&&(l=P(l,h.value)),parseFloat(r)<=parseFloat(m.value)&&(l=k(P(r,m.value))),Object.assign(a,{atMin:e.modelValue===h.value,atMax:C.value?k(e.modelValue)===m.value:k(e.modelValue).toFixed(5)===m.value.toFixed(5)}),t("update:modelValue",l),t("on-moving",a)},x=()=>{r.value=!1,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",x),t("on-move-end")},T=()=>{u((()=>{h.value=E("min"),m.value=E("max"),i.value=1e4*(C.value?D(e.modelValue,o.value[I.value]):e.modelValue)/100}))};return c((()=>e.modelValue),(e=>{e!==v.value&&(v.value=e,T())})),d((()=>{u((()=>{T()})),window.addEventListener("resize",T)})),p((()=>{window.removeEventListener("resize",T)})),{ns:a,outerWrapper:o,offset:i,wrapperClasses:g,paneClasses:w,isHorizontal:f,anotherOffset:y,handleMousedown:a=>{b.value=f.value?a.pageX:a.pageY,s.value=e.modelValue,r.value=!0,document.addEventListener("mousemove",S),document.addEventListener("mouseup",x),t("on-move-start")}}},render(){var e,t,a,n,s,l,r,c,d,u,p,h;return o("div",{class:this.wrapperClasses,ref:"outerWrapper"},[this.isHorizontal?o("div",{class:this.ns.m("horizontal")},[o("div",{style:{right:"".concat(this.anotherOffset,"%")},class:[this.paneClasses,this.ns.bm("pane","left")]},[null==(t=(e=this.$slots).left)?void 0:t.call(e)]),o("div",{style:{left:"".concat(this.offset,"%")},class:this.ns.b("trigger-con"),onMousedown:e=>this.handleMousedown(e)},[(null==(n=(a=this.$slots).trigger)?void 0:n.call(a))||o(i("iBizSplitTrigger"),{mode:"vertical"},null)]),o("div",{style:{left:"".concat(this.offset,"%")},class:[this.paneClasses,this.ns.bm("pane","right")]},[null==(l=(s=this.$slots).right)?void 0:l.call(s)])]):o("div",{class:this.ns.m("vertical")},[o("div",{style:{bottom:"".concat(this.anotherOffset,"%")},class:[this.paneClasses,this.ns.bm("pane","top")]},[null==(c=(r=this.$slots).top)?void 0:c.call(r)]),o("div",{style:{top:"".concat(this.offset,"%")},class:this.ns.b("trigger-con"),onMousedown:e=>this.handleMousedown(e)},[(null==(u=(d=this.$slots).trigger)?void 0:u.call(d))||o(i("iBizSplitTrigger"),{mode:"horizontal"},null)]),o("div",{style:{top:"".concat(this.offset,"%")},class:[this.paneClasses,this.ns.bm("pane","bottom")]},[null==(h=(p=this.$slots).bottom)?void 0:h.call(p)])])])}})),gi=e("g",a({name:"IBizSplitTrigger",props:{mode:String},setup(e){const t=A("split-trigger"),a=l((()=>"vertical"===e.mode)),n=l((()=>[t.b(),a.value?t.m("vertical"):t.m("horizontal")])),o=l((()=>[t.b("bar-con"),a.value?t.bm("bar-con","vertical"):t.bm("bar-con","horizontal")])),i=Array(8).fill(0);return{ns:t,classes:n,barConClasses:o,items:i}},render(){return o("div",{class:this.classes},[o("div",{class:this.barConClasses},[this.items.map(((e,t)=>o("i",{class:this.ns.b("bar"),key:"trigger-".concat(t)},null)))])])}})),wi=a({name:"IBizExtendActionTimeLine",props:{data:{type:Object}},setup(e){const t=A("extend-action-timeline"),a=n([]),s=(e,t)=>Date.parse(t.time)-Date.parse(e.time),l=e=>{const t=[];let a=mo(e);if(a.length>0)return a=a.reverse(),a.forEach((e=>{if(e.usertasks){const t=mo(e.usertasks);Object.assign(e,{tasks:l(t)}),e.isShow=!1}if(0===e.identitylinks.length&&0===e.comments.length&&(Object.assign(e,{taskName:e.userTaskName}),t.push(e)),e.identitylinks.length>0){const a=((e,t)=>{const a=[];return(null==t?void 0:t.length)>0&&e&&t.forEach((t=>{a.push(t[e])})),[...new Set(a)]})("displayname",e.identitylinks);t.push({authorName:a.join("、"),taskName:e.userTaskName,isLink:!0})}e.comments.length>0&&(e.comments.forEach((t=>{Object.assign(t,{taskName:e.userTaskName})})),e.comments.sort(s),t.push(...e.comments))})),t},r=e=>{const t=new Map;for(let a=0;a<e.length;a++)t.has(e[a])||t.set(e[a],!0);return t},d=e=>{e.forEach((e=>{const t=[];if(e.tasks&&d(e.tasks),e.tasks)for(let a=0;a<e.tasks.length;a++){if(e.tasks[a].isLink){const n=-1!==e.tasks[a].authorName.indexOf("、")?e.tasks[a].authorName.split("、"):e.tasks[a].authorName;"string"==typeof n?t.push(n):t.push(...n)}if(e.tasks[a].linkName){const n=-1!==e.tasks[a].linkName.indexOf("、")?e.tasks[a].linkName.split("、"):e.tasks[a].linkName;"string"==typeof n?t.push(n):t.push(...n)}}const a=[...r(t).keys()];e.linkName=a.join("、")}))};c((()=>e.data),((e,t)=>{if(e!==t&&e){const t=mo(e).usertasks;if(t){const e=l(t);e&&(d(e),a.value=e)}}}),{immediate:!0});const u=e=>e.map((e=>o("div",{class:[t.b("task"),t.is("wrong",e.type&&e.type.includes("驳回")),t.is("link",e.isLink),t.is("linkname",e.linkName)]},[o("div",{class:t.be("task","tail")},null),o("div",{class:[t.be("task","head"),t.is("link-head",e.linkName)]},null),o("div",{class:t.be("task","top")},[o("div",{class:[t.be("task","user-task-name"),t.is("task-link",e.linkName)]},[e.taskName]),e.linkName?o("div",{class:t.be("task","link-name"),title:ht(e.linkName)},[e.linkName]):null,o("div",{class:[t.be("task","author-name"),t.is("has-type",e.type)],title:ht(e.authorName)},[e.authorName]),e.type&&o("div",{class:t.be("task","type")},[e.type]),e.time&&o("div",{class:t.be("task","last-time")},[e.time&&ibiz.i18n.t("component.extendActionTimeLine.processTime"),o("span",{class:t.be("task","last-time-text")},[e.time])])]),o("div",{class:t.be("task","bottom")},[o("div",{class:t.be("task","full-message")},[e.fullMessage?"".concat(ibiz.i18n.t("component.extendActionTimeLine.comments"),": ").concat(e.fullMessage):e.fullMessage])]),e.tasks&&e.tasks.length>=1&&o("div",{class:t.be("task","trigger"),"on-click":()=>{var t;(t=e).isShow=!t.isShow}},[o(i("i-icon"),{type:e.isShow?"md-remove":"md-add"},null)]),e.tasks&&h(o("div",{class:t.be("task","moreTask")},[u(e.tasks)]),[[m,e.isShow]])])));return{ns:t,formatDate:(e,t)=>ho(e).format(t),UIData:a,renderTimeline:u}},render(){return o("div",{class:this.ns.b()},[this.UIData&&this.renderTimeline(this.UIData)])}});const fi=a({name:"ViewMessage",props:{messages:{type:Array},scroll:{type:Boolean,default:!1},context:{type:Object,required:!1},params:{type:Object,required:!1},controller:{type:Object}},setup(e){const t=A("view-message"),a=n([]),o=n(0),i=n(""),s=n(!1);c((()=>e.messages),(()=>{o.value=0,i.value=lo(),Array.isArray(e.messages)?(a.value=e.messages.filter((e=>e.title||e.message||e.layoutPanel&&e.data)).map((e=>({...e}))),s.value=!1):(a.value=[],s.value=!0)}),{immediate:!0});const l=n(null),r=n("");d((()=>{u((()=>{const e=l.value;if(!e)return;const t=e.querySelector(".el-alert");t&&(r.value="".concat(t.offsetHeight,"px"))}))}));return{ns:t,getType:e=>{switch(e){case"WARN":return"warning";case"ERROR":return"error";default:return"info"}},items:a,container:l,carouselHeight:r,initialIndex:o,uuid:i,isHiddenContainer:s,handleAlertClose:t=>{var n;a.value[t].hidden=!0;a.value.every((e=>e.hidden))&&(s.value=!0),i.value=lo();const o=a.value[t];null==(n=e.controller)||n.setMsgRemoveModeStorage(o)},handleChange:e=>{o.value=e}}},render(){const e=e=>o(i("iBizControlShell"),{data:e.data,modelData:e.layoutPanel,context:this.context,params:this.params},null),t=()=>{let t;return o("div",{class:[this.ns.b(),this.isHiddenContainer&&this.ns.m("hidden")],ref:"container"},[o(i("el-carousel"),{key:this.uuid,indicatorPosition:"none",arrow:"never",height:this.carouselHeight,initialIndex:this.initialIndex,onChange:this.handleChange},(a=t=this.items.map(((t,a)=>{if(t.hidden)return;const n=t.message||t.layoutPanel&&t.data;return o(i("el-carousel-item"),null,{default:()=>{var s;return[o(i("el-alert"),{type:this.getType(t.messageType),class:[this.ns.b("carousel-alert"),this.ns.bm("carousel-alert",t.title&&n?"":"single"),null==(s=t.sysCss)?void 0:s.cssName],closable:0!==t.removeMode,onClose:()=>this.handleAlertClose(a)},{title:()=>o("div",{class:this.ns.be("carousel-alert","title")},[t.title||""]),default:()=>t.layoutPanel&&t.data?e(t):o("div",{class:this.ns.be("carousel-alert","message")},[t.message||""])})]}})})),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?t:{default:()=>[t]}))]);var a};if(this.items.length)return this.items.length>1&&this.scroll?t():(()=>o("div",{class:[this.ns.b(),this.isHiddenContainer&&this.ns.m("hidden")]},[this.items.map(((t,a)=>{var n;const s=t.message||t.layoutPanel&&t.data;return o(i("el-alert"),{type:this.getType(t.messageType),class:[this.ns.b("alert"),this.ns.bm("alert",t.title&&s?"":"single"),this.ns.bm("alert",!t.title&&s?"single-message":""),null==(n=t.sysCss)?void 0:n.cssName],closable:0!==t.removeMode,onClose:()=>this.handleAlertClose(a)},{title:()=>o("div",{class:this.ns.be("alert","title")},[t.title||""]),default:()=>t.layoutPanel&&t.data?e(t):o("div",{class:this.ns.be("alert","message")},[t.message||""])})}))]))()}}),yi=a({name:"IBizPagination",props:{total:{type:Number,required:!0},curPage:{type:Number,required:!0},size:{type:Number,required:!0},totalPages:{type:Number||void 0,required:!1}},emits:["change","pageSizeChange","pageRefresh"],setup:(e,{emit:t})=>({ns:A("pagination"),start:l((()=>(e.curPage-1)*e.size+1)),end:l((()=>e.curPage*e.size)),onPageChange:e=>{t("change",e)},onPageSizeChange:e=>{t("pageSizeChange",e)},pageRefresh:()=>{t("pageRefresh")},inputChange:e=>{e.stopPropagation()},calcTotalPages:l((()=>Math.ceil(e.total/e.size)))}),render(){return o("div",{class:this.ns.b()},[o(i("el-pagination"),v({layout:"slot, prev, pager, next, sizes, jumper",background:!0,total:this.total,"page-count":vo(this.totalPages)||this.calcTotalPages!==this.totalPages?this.totalPages:this.calcTotalPages,"current-page":this.curPage,"page-size":this.size,"page-sizes":[10,20,30,40,50,60,70,80,90,100]},{"onUpdate:currentPage":this.onPageChange,"onUpdate:pageSize":this.onPageSizeChange,onChange:this.inputChange}),{default:()=>[o("span",{class:this.ns.b("btn")},[o(i("el-button"),{title:ht(ibiz.i18n.t("app.refresh")),onClick:this.pageRefresh},{default:()=>[o("ion-icon",{src:"./assets/images/svg/refresh.svg"},null)]})]),vo(this.totalPages)||this.calcTotalPages===this.totalPages?o("span",null,[ibiz.i18n.t("component.pagination.display"),b(" "),this.start,b(" - "),this.end,b(" "),ibiz.i18n.t("component.pagination.piece"),b(",")]):null,o("span",null,[ibiz.i18n.t("component.pagination.total"),b(" "),this.total,b(" "),ibiz.i18n.t("component.pagination.pieceData")])]})])}}),Ci=e("h",a({name:"IBizSortBar",props:{sortItems:{type:Array,required:!0}},emits:{SortChange:(e,t)=>!0},setup:(e,{emit:t})=>({ns:A("sort-bar"),onItemClick:a=>{"asc"===a.order?a.order="desc":"desc"===a.order?a.order=void 0:(e.sortItems.forEach((e=>{e.order=void 0})),a.order="asc"),t("SortChange",a,a.order)}}),render(){return o("div",{class:this.ns.b()},[this.sortItems.length>0&&this.sortItems.map((e=>o("div",{onClick:()=>this.onItemClick(e),class:[this.ns.b("item"),"asc"===e.order?this.ns.bm("item","asc"):"","desc"===e.order?this.ns.bm("item","desc"):""]},[e.caption,o("div",{class:this.ns.b("icon-wrapper")},[o("i",{class:this.ns.be("icon-wrapper","icon-asc")},null),o("i",{class:this.ns.be("icon-wrapper","icon-desc")},null)])])))])}}));function Ii(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Di=a({name:"DataImport",props:{dismiss:{type:Function,required:!0},appDataEntity:{type:Object,required:!0},dataImport:{type:Object,required:!1},context:{type:Object,required:!1},params:{type:Object,required:!1}},setup(e){const t=A("data-import"),a=n({state:"ready",message:""}),o=n(""),i=n(!1),s=()=>{e.dismiss()};return{ns:t,onLinkClick:async()=>{Mt(e.appDataEntity,e.dataImport)},selectFile:async()=>{i.value=!0;const t=await Rt({appDataEntity:e.appDataEntity,dataImport:e.dataImport,context:e.context});if(t.cancel)i.value=!1;else{if(!t.isAsync)if(t.errorMessage)o.value=t.errorMessage;else{const{success:e,total:n,message:o}=t,i=n?Number(n):0,s=e?Number(e):0,l=n-e;a.value.state=o?"error":"over",a.value.message=o||ibiz.i18n.t("component.dataImport.importSuccess",{totalNum:i,successNum:s,errorNum:l})}i.value=!1,t.isAsync&&s()}},onCancelButtonClick:s,isLoading:i,message:a,errorMessage:o}},render(){let e,t;return h(o("div",{class:this.ns.b()},[o("div",{class:this.ns.e("caption")},[ibiz.i18n.t("component.dataImport.importData")]),"ready"===this.message.state?o("div",{class:this.ns.b("upload"),onClick:this.selectFile},[o("img",{class:this.ns.be("upload","img"),src:"./assets/images/icon-import.svg"},null),o("span",{class:this.ns.be("upload","text")},[ibiz.i18n.t("component.dataImport.clickToUpload")])]):o("div",{class:[this.ns.b("message")]},[o("div",{class:this.ns.be("message","title")},[ibiz.i18n.t("component.dataImport.importResults")]),o("div",{class:[this.ns.be("message","content"),this.ns.is("error","error"===this.message.state)]},[this.message.message])]),this.errorMessage&&o("div",{class:this.ns.b("error-message")},[this.errorMessage]),o("div",{class:this.ns.e("template-container")},[o("div",{class:this.ns.e("template-description")},[ibiz.i18n.t("component.dataImport.downloadTemplate")]),o("div",{class:this.ns.e("template-link"),onClick:this.onLinkClick},[o("ion-icon",{class:this.ns.e("link-icon"),name:"link"},null),this.appDataEntity.logicName,ibiz.i18n.t("component.dataImport.templateFile")])]),o("div",{class:this.ns.e("button-bar")},[o(i("el-button"),{onClick:this.onCancelButtonClick},Ii(e=ibiz.i18n.t("app.cancel"))?e:{default:()=>[e]}),"ready"!==this.message.state&&o(i("el-button"),{onClick:this.selectFile},Ii(t=ibiz.i18n.t("component.dataImport.continue"))?t:{default:()=>[t]})])]),[[g("loading"),this.isLoading]])}});function Ei(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Pi=a({name:"DataImport2",props:{dismiss:{type:Function,required:!0},appDataEntity:{type:Object,required:!0},dataImport:{type:Object,required:!1},context:{type:Object,required:!1},params:{type:Object,required:!1}},setup(e){const t=A("data-import2"),a=n(!1),o=()=>{e.dismiss()},i=n([[]]),s=new Map,r=n([]),u=n([]),p=n(),h=n(),m=n("");let v="";const b=n(!0),g=n(""),w=new Map,f=n([]),y=n(!1),C=e.dataImport||Nt(e.appDataEntity),I=()=>{[...s.keys()].forEach((e=>{const t=s.get(e),a=mo(t);t&&a&&(a.name="",s.set(e,a),r.value[t.index]="")}))},D=async e=>{if(e){const t=w.get(e);if(!t)return;let a=t.fields;if(!t.fields){const n=await Lt(t.id);200===n.status&&n.data&&(a=n.data.fields),t.fields=n.data.fields,w.set(e,t)}""!==t.owner_type&&"PERSONAL"!==t.owner_type&&(y.value=!0);const n=[...s.keys()],o=new Map;I(),n.forEach((e=>{const t=s.get(e),n=e.lastIndexOf("-"),i=e.substring(0,n);let l=o.get(i);l||(o.set(i,0),l=0);const c=a&&a.filter((e=>e.caption===i)),d=c&&c[l];if(d){u.value.find((e=>e.id===d.name))&&t&&(o.set(i,l+1),d.index=t.index,s.set(e,d),r.value[d.index]=d.name)}}))}else I()};c(g,((e,t)=>{D(e)}));const E=async()=>{if(""!==r.value.join(""))if(i.value[0].length){b.value=!0;const t=[...s.values()].filter((e=>""!==e.name)),a={name:"".concat(m.value.split(".")[0],"|").concat((new Date).toLocaleString()),fields:t};if(e.params&&Object.assign(a,e.params),g.value){const t=w.get(g.value);t&&(a.name=t.name,a.id=t.id);const n=await Vt({appDataEntity:e.appDataEntity,dataImport:C,data:a});200===n.status&&n.ok&&w.set(g.value,n.data)}else{f.value.push({value:a.name,label:a.name,oldLabel:a.name,edit:!0,checkmark:!1,close:!1});const t=await Ft({appDataEntity:e.appDataEntity,dataImport:C,data:a});200===t.status&&t.ok&&w.set(a.name,t.data),g.value=a.name}}else ibiz.message.warning(ibiz.i18n.t("component.dataImport2.uploadPlease"));else ibiz.message.warning(ibiz.i18n.t("component.dataImport2.atLastOne"))},P=async()=>{if(i.value[0].length)if(g.value&&b.value){const t=w.get(g.value);let a="";t&&(a=t.id),await Ut({appDataEntity:e.appDataEntity,dataImport:C,fileId:v,schemaId:a}),o()}else await E(),await P();else ibiz.message.warning(ibiz.i18n.t("component.dataImport2.uploadPlease"))},k=e=>{/\bel-dialog\b/.test(e.className)?e.style.maxWidth="calc(100% - 100px)":e.parentElement&&k(e.parentElement)};d((()=>{C&&C.dedataImportItems?u.value=C.dedataImportItems:e.appDataEntity.appDEFields&&(u.value=e.appDataEntity.appDEFields),p.value&&p.value.parentElement&&k(p.value.parentElement),(async()=>{const t=await qt({appDataEntity:e.appDataEntity,dataImport:C});200===t.status&&t.data&&t.data.forEach((e=>{f.value.push({value:e.name,label:e.name,oldLabel:e.name,edit:!0,checkmark:!1,close:!1}),w.set(e.name,e)}))})()}));const S=n({Authorization:"Bearer ".concat(ro(mt.TOKEN))}),x=l((()=>{let e;e=-1!==ibiz.env.uploadFileUrl.indexOf("{cat}")?ibiz.env.uploadFileUrl.replace("/{cat}","/temp"):"".concat(ibiz.env.uploadFileUrl,"/temp");let t="".concat(ibiz.env.baseUrl,"/").concat(ibiz.env.appId).concat(e);return t+=Io.stringify({preview:!0},{addQueryPrefix:!0}),t}));return{ns:t,onButtonColumnMappingImportClick:E,onButtonImportClick:P,onCancelButtonClick:o,isLoading:a,UploadUrl:x,headers:S,onSuccess:(e,t,n)=>{if(m.value="",v="",e.name&&(m.value=e.name),e.fileid&&(v=e.fileid),e.previewinfo&&(i.value=JSON.parse(e.previewinfo),i.value[0]&&i.value[0].length>0)){const e=i.value[0].length;for(let t=1;t<i.value.length;t++){const a=i.value[t],n=a.length;if(n<e){const t=e-n;for(let e=0;e<t;e++)a.push("")}}s.clear(),i.value[0].forEach(((e,t)=>{s.set("".concat(e,"-").concat(t),{name:"",index:t,caption:e}),r.value[t]=""}))}a.value=!1,D(g.value)},previewinfo:i,selectValues:r,beforeUpload:()=>{a.value=!0},dataimport2:p,listValue:g,options:f,select:h,isNoPersonel:y,fileName:m,dataOption:u,ColumnMappingSave:b,columnMap:s,columnMappingSaveChange:e=>{b.value=e},selectValuesChange:(e,t)=>{r.value[e]=t},columnMapChange:(e,t)=>{s.set(e,t)},columnMappingListMap:w,listValueChange:e=>{g.value=e},columnMappingListMapChange:(e,t)=>{t?w.set(e,t):w.delete(e)},optionsChange:(e,t)=>{if(t){const a=f.value.findIndex((t=>t.label===e)),n=f.value[a];Object.keys(t).forEach((e=>{n[e]=t[e]}))}else{const t=f.value.findIndex((t=>t.label===e));-1!==t&&f.value.splice(t,1)}}}},render(){let e,t;return h(o("div",{class:[this.ns.b(),"ibiz-view"],ref:"dataimport2"},[o("div",{class:[this.ns.e("data-import2-toolbar"),"ibiz-panel-view-header"]},[o("div",{class:[this.ns.e("caption")]},[o("div",{class:"ibiz-panel-container"},[o("div",{class:"ibiz-control-captionbar"},[o("div",{class:"ibiz-control-captionbar-caption"},[ibiz.i18n.t("component.dataImport.importData")])])])]),o("div",{class:[this.ns.e("data-import2-toolbar-container"),"ibiz-panel-container--view_header_right"]},[o("div",{class:"ibiz-panel-container"},[o("div",{class:"ibiz-control-toolbar"},[o("div",{class:"ibiz-control-toolbar__item"},[this.fileName?ibiz.i18n.t("component.dataImport2.fileName",{fileName:this.fileName}):""]),this.previewinfo[0]&&this.previewinfo[0].length?o(i("data-import2-select"),{previewinfo:this.previewinfo,options:this.options,columnMappingListMap:this.columnMappingListMap,listValue:this.listValue,onListValueChange:this.listValueChange,onColumnMappingListMapChange:this.columnMappingListMapChange,onOptionsChange:this.optionsChange},null):"",this.previewinfo[0]&&this.previewinfo[0].length?o("div",{class:"ibiz-control-toolbar__item"},[o(i("el-button"),{onClick:this.onButtonColumnMappingImportClick,disabled:this.isNoPersonel},Ei(e=ibiz.i18n.t("component.dataImport2.saveMode"))?e:{default:()=>[e]})]):"",o(i("el-upload"),{class:"ibiz-control-toolbar__item",action:this.UploadUrl,headers:this.headers,data:this.params,"show-file-list":!1,onSuccess:this.onSuccess,"before-upload":this.beforeUpload},{default:()=>[o(i("el-button"),null,{default:()=>[this.previewinfo[0]&&this.previewinfo[0].length?ibiz.i18n.t("component.dataImport2.reUpload"):ibiz.i18n.t("component.dataImport2.fileUpload")]})]}),this.previewinfo[0]&&this.previewinfo[0].length?o("div",{class:"ibiz-control-toolbar__item"},[o(i("el-button"),{onClick:this.onButtonImportClick,disabled:!this.selectValues.join(""),title:ht(this.selectValues.join("")?"":ibiz.i18n.t("component.dataImport2.selectProperties"))},Ei(t=ibiz.i18n.t("component.dataImport2.import"))?t:{default:()=>[t]})]):""])])])]),o(i("data-import2-table"),{previewinfo:this.previewinfo,selectValues:this.selectValues,dataOption:this.dataOption,columnMappingSave:this.ColumnMappingSave,columnMap:this.columnMap,onSelectValuesChange:this.selectValuesChange,onColumnMappingSaveChange:this.columnMappingSaveChange,onColumnMapChange:this.columnMapChange},null)]),[[g("loading"),this.isLoading]])}});const ki=a({name:"DataImport2Table",props:{previewinfo:{type:Object,required:!0},dataOption:{type:Object,required:!0},selectValues:{type:Object,required:!0},columnMappingSave:{type:Boolean,required:!0},columnMap:{type:Object,required:!0}},setup(e,{emit:t}){const a=A("data-import2-table"),n=(n,l)=>{let r;return o(i("el-select"),{modelValue:e.selectValues[l],filterable:!0,placeholder:ibiz.i18n.t("component.dataImport2Table.selectAttribute"),onChange:a=>{t("selectValuesChange",l,a);const o=e.columnMap.get("".concat(n,"-").concat(l));o&&(o.name=a),t("columnMapChange","".concat(n,"-").concat(l),o),t("columnMappingSaveChange",!1)},key:l,"popper-class":a.e("dataimport-select"),class:a.e("select")},"function"==typeof(c=r=e.dataOption.map((e=>o(i("el-option"),{key:e.name,value:e.id,label:e.caption?e.caption:e.logicName},null))))||"[object Object]"===Object.prototype.toString.call(c)&&!s(c)?r:{default:()=>[r]});var c};return{ns:a,renderEmpty:()=>o("div",{class:a.e("empty")},[ibiz.i18n.t("app.noData")]),renderTable:()=>{const t=e.previewinfo,i=t.map(((e,t)=>o("tr",{key:t},[e.map(((e,n)=>0===t?o("th",{key:n,class:a.e("dataimport2-table-th")},[e]):o("td",{key:n,class:a.e("dataimport2-table-td")},[e])))]))),s=[o("tr",{key:"newRow"},[t[0].map(((e,t)=>o("td",{key:t,class:a.e("dataimpoer2-table-select")},[n(e,t)])))]),...i];return o("table",{class:a.e("dataimport-table")},[o("tbody",null,[s])])}}},render(){return o("div",{class:[this.ns.e("template-container"),"ibiz-panel-view-content"]},[this.previewinfo[0]&&this.previewinfo[0].length?this.renderTable():this.renderEmpty()])}});function Si(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const xi=a({name:"DataImport2Select",props:{previewinfo:{type:Object,required:!0},options:{type:Object,required:!0},columnMappingListMap:{type:Object,required:!0},listValue:{type:String,required:!0}},setup:(e,{emit:t})=>({ns:A("data-import2-select"),inputClick:e=>{e.stopPropagation()},editLabel:(e,a)=>{e.stopPropagation(),t("optionsChange",a.label,{edit:!1,checkmark:!0,close:!0})},saveLabel:async(a,n)=>{a.stopPropagation(),t("optionsChange",n.label,{edit:!0,checkmark:!1,close:!1,value:n.label,label:n.label});const o=e.columnMappingListMap.get(n.oldLabel);if(o){o.name=n.label;const e=await Vt({data:o});200===e.status&&e.ok&&t("columnMappingListMapChange",n.label,e.data)}e.listValue===n.oldLabel&&t("listValueChange",n.label),t("optionsChange",n.label,{oldLabel:n.label})},notSaveLabel:(e,a)=>{e.stopPropagation(),t("optionsChange",a.label,{edit:!0,checkmark:!1,close:!1,label:a.oldLabel})},handleDeleteOption:async(a,n)=>{a.stopPropagation();const o=e.columnMappingListMap.get(n);if(o){const a=await Gt(o.id);200===a.status&&a.ok&&(t("optionsChange",n),t("columnMappingListMapChange",n),e.listValue===n&&t("listValueChange",""))}},valueChange:e=>{t("listValueChange",e)}}),render(){let e;return o("div",{class:"ibiz-control-toolbar__item"},[o(i("el-select"),{ref:"select","model-value":this.listValue,onChange:this.valueChange,clearable:!0,placeholder:ibiz.i18n.t("component.dataImport2Select.selectMode"),disabled:!(this.previewinfo[0]&&this.previewinfo[0].length),"popper-class":this.ns.e("dataimport-select")},Si(e=this.options.map((e=>o(i("el-option"),{label:e.label,value:e.value,class:[this.ns.e("select-option")]},{default:()=>{let t;return o("div",{class:[this.ns.e("select-option-item")]},[e.edit?o("span",null,[e.label]):"",e.edit?"":o(i("el-input"),{"model-value":e.label,onClick:e=>this.inputClick(e),class:[this.ns.e("select-option-item-input")],onInput:t=>{e.label=t}},null),e.edit?o(i("el-button"),{text:!0,size:"small",onClick:t=>this.editLabel(t,e)},Si(t=ibiz.i18n.t("component.dataImport2Select.edit"))?t:{default:()=>[t]}):"",e.checkmark?o(i("el-button"),{size:"small",onClick:t=>this.saveLabel(t,e)},{default:()=>[o("ion-icon",{name:"checkmark-outline"},null)]}):"",e.close?o(i("el-button"),{size:"small",onClick:t=>this.notSaveLabel(t,e)},{default:()=>[o("ion-icon",{name:"close-outline"},null)]}):"",o(i("el-button"),{text:!0,size:"small",onClick:t=>this.handleDeleteOption(t,e.value),class:this.ns.e("select-option-item-button-delete")},{default:()=>[o("ion-icon",{name:"trash-outline",class:this.ns.e("select-option-item-button-delete-icon")},null)]})])}}))))?e:{default:()=>[e]})])}}),Ti=a({name:"IBizGridSetting",components:{draggable:Do},props:{columnStates:{type:Array,required:!0},controller:{type:Object,required:!0}},setup(e){const t=A("grid-setting"),a=e.controller,n=l((()=>e.columnStates.map((e=>({...e}))))),o=l((()=>!!a.controlParams.enablecolumnsort));return{ns:t,c:a,dragColumnStates:n,isDraggable:o,handleClick:e=>{const t=a.state.columnStates.find((t=>t.key===e.key));t&&a.setColumnVisible(t)},onDragChange:async e=>{if(e.moved){const t=e.moved.newIndex,n=e.moved.oldIndex,o=e.moved.element;a.changeColumnStateSort(o.key,t,n)}}}},render(){return o(i("el-popover"),{placement:"right-start",trigger:"click",width:"auto"},{reference:()=>o("ion-icon",{name:"options-outline",class:this.ns.b("set-icon"),title:ht(ibiz.i18n.t("component.gridSetting.hideControl"))},null),default:()=>o(Do,{class:this.ns.b("column-states"),modelValue:this.dragColumnStates,"onUpdate:modelValue":e=>this.dragColumnStates=e,group:this.c.model.id,itemKey:"key",sort:this.isDraggable,"force-fallback":!0,animation:500,"ghost-class":this.ns.b("column-state-ghost"),filter:".unmover",onChange:e=>this.onDragChange(e)},{item:({element:e})=>o("div",{class:[this.ns.b("column-state"),this.ns.is("disabled",e.hidden),this.ns.is("fixed",!!e.fixed),!!e.fixed&&"unmover"],onClick:()=>this.handleClick(e)},[this.isDraggable&&!e.fixed&&o(i("iBizIcon"),{class:this.ns.b("drag-icon"),icon:{imagePath:"svg/drag.svg"},baseDir:"iconfont"},null),o(i("iBizIcon"),{class:this.ns.b("disable-icon"),icon:{imagePath:"svg/disable.svg"},baseDir:"iconfont"},null),o(i("iBizIcon"),{class:this.ns.b("enable-icon"),icon:{imagePath:"svg/enable.svg"},baseDir:"iconfont"},null),o("div",{class:this.ns.b("state-caption")},[e.caption])])})})}}),zi=e("D",a({name:"DoingNotice",props:{info:{type:Object,required:!0}},setup:()=>({ns:A("doing-notice")}),render(){return o("div",{class:[this.ns.b()]},[o("span",{class:this.ns.e("text"),innerHTML:ibiz.i18n.t("component.doingNotice.jobInProgress",{class:this.ns.e("num"),num:this.info.num})},null),o("svg",{class:this.ns.e("loading-icon"),viewBox:"-10, -10, 50, 50"},[o("path",{class:"path",d:"M 30 15 L 28 17 M 25.61 25.61 A 15 15, 0, 0, 1, 15 30 A 15 15, 0, 1, 1, 27.99 7.5 L 15 15",style:"stroke-width: 4px; fill: rgba(0, 0, 0, 0)"},null)])])}}));const Oi=a({name:"IBizCarouselComponent",props:{carouselData:{type:Array,required:!0},isAuto:{type:Boolean,default:!0},timeSpan:{type:Number,default:3e3},showMode:{type:String,required:!0}},setup(e){const t=A("carousel-component"),a=n([]);return c((()=>e.carouselData),((e,t)=>{e!==t&&(a.value=e)}),{immediate:!0}),{ns:t,swipeData:a}},render(){let e;const t=e=>e.cssClass?-1!==e.cssClass.indexOf("fa-")?o("i",{class:[e.cssClass]},null):o("ion-icon",{name:e.cssClass},null):e.imgUrl?o("img",{src:e.imgUrl,alt:e.name},null):void 0;return o("div",null,["CARD"===this.showMode?o(i("IBizCarousel-card"),{swipeData:this.swipeData,isAuto:this.isAuto,timeSpan:this.timeSpan},null):o(i("el-carousel"),{class:this.ns.b(),autoplay:this.isAuto,interval:this.timeSpan},(a=e=this.swipeData.map((e=>o(i("el-carousel-item"),{key:e.id},{default:()=>[e.linkPath?o("a",{href:e.linkPath},[t(e)]):t(e)]}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?e:{default:()=>[e]}))]);var a}}),_i=a({name:"IBizCoopAlert",props:{title:{type:String},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0}},setup:()=>({ns:A("coop-alert")}),render(){if(this.title)return o(i("el-alert"),v({class:this.ns.b()},this.$props),null)}}),Ai=[{caption:"应用",labelLang:"app",children:[{caption:"字体",labelLang:"font",vars:[{label:"字号",value:"--ibiz-font-size-regular",labelLang:"fontSize",descLang:"fontSizeDesc",unit:"px",type:"size",kindVars:{"--ibiz-font-size-small":-2,"--ibiz-font-size-header-6":2,"--ibiz-font-size-header-5":4,"--ibiz-font-size-header-4":6,"--ibiz-font-size-header-3":8,"--ibiz-font-size-header-2":10,"--ibiz-font-size-header-1":12}},{label:"字重",value:"--ibiz-font-weight-regular",labelLang:"fontWeight",descLang:"fontWeightDesc",type:"size",kindVars:{"--ibiz-font-weight-light":-200,"--ibiz-font-weight-bold":200}}]},{caption:"颜色",labelLang:"color",children:[{caption:"主要颜色",labelLang:"primaryColor",vars:[{label:"主要颜色",description:"主要颜色,仅在需要非常强调的情况下使用",labelLang:"primaryColor",descLang:"primaryColorDesc",value:"--ibiz-color-primary"},{label:"主要文本颜色",description:"主要颜色文字色,和背景色形成对比",labelLang:"primaryTextColor",descLang:"primaryTextColorDesc",value:"--ibiz-color-primary-text"},{label:"主要悬浮颜色",description:"主要颜色悬浮态",labelLang:"primaryHoverColor",descLang:"primaryHoverColorDesc",value:"--ibiz-color-primary-hover"},{label:"主要悬浮文本颜色",description:"主要颜色悬浮态文字色,和背景色形成对比",labelLang:"primaryHoverTextColor",descLang:"primaryHoverTextColorDesc",value:"--ibiz-color-primary-hover-text"},{label:"主要激活颜色",description:"主要颜色激活态",labelLang:"primaryActiveColor",descLang:"primaryActiveColorDesc",value:"--ibiz-color-primary-active"},{label:"主要激活文本颜色",description:"主要颜色激活态文字色,和背景色形成对比",labelLang:"primaryActiveTextColor",descLang:"primaryActiveTextColorDesc",value:"--ibiz-color-primary-active-text"},{label:"主要禁用颜色",description:"主要颜色禁用态",labelLang:"primaryDisabledColor",descLang:"primaryDisabledColorDesc",value:"--ibiz-color-primary-disabled"},{label:"主要禁用文本颜色",description:"主要颜色禁用态文字色,和背景色形成对比",labelLang:"primaryDisabledTextColor",descLang:"primaryDisabledTextColorDesc",value:"--ibiz-color-primary-disabled-text"},{label:"主要浅版颜色",description:"浅版主要颜色(多用于背景)。仅在需要非常强调的情况下使用",labelLang:"primaryLightDefaultColor",descLang:"primaryLightDefaultColorDesc",value:"--ibiz-color-primary-light-default"},{label:"主要浅版悬浮色",description:"浅版主要颜色悬浮态",labelLang:"primaryLightHoverColor",descLang:"primaryLightHoverColorDesc",value:"--ibiz-color-primary-light-hover"},{label:"主要浅版激活色",description:"浅版主要颜色激活态",labelLang:"primaryLightActiveColor",descLang:"primaryLightActiveColorDesc",value:"--ibiz-color-primary-light-active"}]},{caption:"文本/图标颜色",labelLang:"textIcon",vars:[{label:"文本图标主色",description:"文本/图标颜色 - 最主要",labelLang:"mainTextIconColor",descLang:"mianTextIconColorDesc",value:"--ibiz-color-text-0"},{label:"文本图标稍次色",description:"文本/图标颜色 - 稍次要",labelLang:"minorTextIconColor",descLang:"minorTextIconColorDesc",value:"--ibiz-color-text-1"},{label:"文本图标次色",description:"文本/图标颜色 - 次要",labelLang:"secondaryTextIconColor",descLang:"secondaryTextIconColorDesc",value:"--ibiz-color-text-2"},{label:"文本图标最次色",description:"文本/图标颜色 - 最次要",labelLang:"lastTextIconColor",descLang:"lastTextIconColorDesc",value:"--ibiz-color-text-3"}]},{caption:"链接颜色",labelLang:"linkColor",vars:[{label:"文本链接色",description:"链接颜色 - 最主要",labelLang:"textLinkColor",descLang:"textLinkColorDesc",value:"--ibiz-color-link"},{label:"文本链接悬浮色",description:"链接颜色 - 悬浮态",labelLang:"textLinkHoverColor",descLang:"textLinkHoverColorDesc",value:"--ibiz-color-link-hover"},{label:"文本链接激活色",description:"链接颜色 - 激活态",labelLang:"textLinkActiveColor",descLang:"textLinkActiveColorDesc",value:"--ibiz-color-link-active"},{label:"文本链接已访问色",description:"链接颜色 - 已访问",labelLang:"textLinkVisitedColor",descLang:"textLinkVisitedColorDesc",value:"--ibiz-color-link-visited"}]},{caption:"背景色",labelLang:"bgColor",vars:[{label:"背景色最下层",description:"背景色 - 最下层(底部页面)",labelLang:"bgColorLowestLayer",descLang:"bgColorLowestLayerDesc",value:"--ibiz-color-bg-0"},{label:"背景色次下层",description:"背景色 - 次下层(页面中需要提升的内容)",labelLang:"bgColorLowerLayer",descLang:"bgColorLowerLayerDesc",value:"--ibiz-color-bg-1"},{label:"背景色中层",description:"背景色 - 中间层(模态等容器)",labelLang:"bgColorCenterLayer",descLang:"bgColorCenterLayerDesc",value:"--ibiz-color-bg-2"},{label:"背景色次上层",description:"背景色 - 次上层(通知,Toast等)",labelLang:"bgColorSecondaryUpperLayer",descLang:"bgColorSecondaryUpperLayerDesc",value:"--ibiz-color-bg-3"},{label:"背景色最上层",description:"背景色 - 最上层(特殊)",labelLang:"bgColorTopLayer",descLang:"bgColorTopLayerDesc",value:"--ibiz-color-bg-4"}]},{caption:"填充色",labelLang:"fillColor",vars:[{label:"默认填充色",description:"填充色 - 默认态",labelLang:"fillDefault",descLang:"fillDefaultDesc",value:"--ibiz-color-fill-0"},{label:"悬浮填充色",description:"填充色 - 悬浮态",labelLang:"fillHover",descLang:"fillHoverDesc",value:"--ibiz-color-fill-1"},{label:"激活填充色",description:"填充色 - 激活态",labelLang:"fillActive",descLang:"fillActiveDesc",value:"--ibiz-color-fill-2"}]},{caption:"边框",labelLang:"border",vars:[{label:"边框色",description:"默认描边颜色",labelLang:"borderColor",descLang:"borderColorDesc",value:"--ibiz-color-border"}]},{caption:"禁用态",labelLang:"disabledState",vars:[{label:"禁用文本色",description:"禁用态 - 文字",labelLang:"disabledText",descLang:"disabledTextDesc",value:"--ibiz-color-disabled-text"},{label:"禁用描边色",description:"禁用态 - 描边",labelLang:"disabledTextBorder",descLang:"disabledTextBorderDesc",value:"--ibiz-color-text-border"},{label:"禁用背景色",description:"禁用态 - 背景",labelLang:"disabledBg",descLang:"disabledBgDesc",value:"--ibiz-color-text-bg"},{label:"禁用填充色",description:"禁用态 - 填充",labelLang:"disabledFill",descLang:"disabledFillDesc",value:"--ibiz-color-text-fill"}]}]},{caption:"其他",labelLang:"other",vars:[{label:"间距",value:"--ibiz-spacing-base",labelLang:"spacing",descLang:"spacingDesc",unit:"px",type:"size",kindVars:{"--ibiz-spacing-super-tight":-14,"--ibiz-spacing-extra-tight":-12,"--ibiz-spacing-tight":-8,"--ibiz-spacing-base-tight":-4,"--ibiz-spacing-base-loose":4,"--ibiz-spacing-loose":8,"--ibiz-spacing-extra-loose":16,"--ibiz-spacing-super-loose":24}},{label:"圆角",value:"--ibiz-border-radius-medium",labelLang:"borderRadius",descLang:"borderRadiusDesc",unit:"px",type:"size",kindVars:{"--ibiz-border-radius-extra-small":-6,"--ibiz-border-radius-small":-4,"--ibiz-border-radius-large":4}},{label:"图标尺寸",value:"--ibiz-width-icon-medium",labelLang:"widthIcon",descLang:"widthIconDesc",unit:"px",type:"size",kindVars:{"--ibiz-width-icon-extra-small":-16,"--ibiz-width-icon-small":-4,"--ibiz-width-icon-large":4,"--ibiz-width-icon-extra-large":8}}]}]},{caption:"顶部导航栏",labelLang:"top",vars:[{label:"背景",value:"--ibiz-panel-app-header-horizontal-bg-color",defaultValue:"--ibiz-color-primary",labelLang:"topBgColor",descLang:"topBgColorDesc",className:"ibiz-panel-app-header"},{label:"字体颜色",value:"--ibiz-panel-app-header-horizontal-color",defaultValue:"--ibiz-color-primary-text",labelLang:"topColor",descLang:"topColorDesc",className:"ibiz-panel-app-header"},{label:"悬浮色",value:"--ibiz-panel-app-header-horizontal-hover-bg-color",defaultValue:"--ibiz-color-primary-hover",labelLang:"topHoverBgColor",descLang:"topHoverBgColorDesc",className:"ibiz-panel-app-header"},{label:"选中色",value:"--ibiz-panel-app-header-horizontal-select-bg-color",defaultValue:"--ibiz-color-primary-active",labelLang:"topSelectBgColor",descLang:"topSelectBgColorDesc",className:"ibiz-panel-app-header"}]},{caption:"侧边导航栏",labelLang:"sidebar",vars:[{label:"背景",value:"--ibiz-panel-app-header-bg-color",defaultValue:"--ibiz-color-primary",labelLang:"sidebarBg",descLang:"sidebarBgDesc",className:"ibiz-panel-app-header"},{label:"字体颜色",value:"--ibiz-panel-app-header-color",defaultValue:"--ibiz-color-primary-text",labelLang:"sidebarColor",descLang:"sidebarColorDesc",className:"ibiz-panel-app-header"},{label:"悬浮色",value:"--ibiz-panel-app-header-hover-bg-color",defaultValue:"--ibiz-color-primary-hover",labelLang:"sidebarHoverBgColor",descLang:"sidebarHoverBgColorDesc",className:"ibiz-panel-app-header"},{label:"选中色",value:"--ibiz-panel-app-header-select-bg-color",defaultValue:"--ibiz-color-primary-active",labelLang:"sidebarSelectBgColor",descLang:"sidebarSelectBgColorDesc",className:"ibiz-panel-app-header"}]},{caption:"控件",labelLang:"ctrl",children:[{caption:"表格",labelLang:"grid",vars:[{label:"表格头字体色",value:"--ibiz-control-grid-header-text-color",defaultValue:"--ibiz-color-text-2",labelLang:"gridHeaderColor",descLang:"gridHeaderColorDesc",className:"ibiz-control-grid"},{label:"表格头背景色",value:"--ibiz-control-grid-header-bg-color",defaultValue:"--ibiz-color-fill-1",labelLang:"gridHeaderBg",descLang:"gridHeaderBgDesc",className:"ibiz-control-grid"},{label:"表格行字体色",value:"--ibiz-control-grid-text-color",defaultValue:"--ibiz-color-text-0",labelLang:"gridRowColor",descLang:"gridRowColorDesc",className:"ibiz-control-grid"},{label:"表格行背景色亮色",value:"--ibiz-control-grid-row-bg-color",defaultValue:"--ibiz-color-bg-1",labelLang:"gridRowBg",descLang:"gridRowBgDesc",className:"ibiz-control-grid"},{label:"表格行背景色暗色",value:"--ibiz-control-grid-row-bg-color-2",defaultValue:"--ibiz-color-bg-0",labelLang:"gridRowBg2",descLang:"gridRowBg2Desc",className:"ibiz-control-grid"},{label:"表格行悬浮色",value:"--ibiz-control-grid-row-hover-color",defaultValue:"--ibiz-grey-1",labelLang:"gridRowHover",descLang:"gridRowHoverDesc",className:"ibiz-control-grid"},{label:"表格行选中色",value:"--ibiz-control-grid-row-select-color",defaultValue:"--ibiz-color-primary-light-default",labelLang:"gridRowSelect",descLang:"gridRowSelectDesc",className:"ibiz-control-grid"}]}]}];var Bi=Object.defineProperty,ji=(e,t,a)=>(((e,t,a)=>{t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Mi{constructor(){ji(this,"state",{}),ji(this,"model",[]),ji(this,"predefineType",[{codeName:"light",label:"亮色",labelLang:"light",color:"#557da5"}]),this.model=Ai;const e=ibiz.util.theme.getCustomTheme();this.state=mo(e),this.state=w(this.state)}getCssVar(e,t){let a=t||e;if(this.state.themeVars&&this.state.themeVars[e])a=this.state.themeVars[e];else{const n=window.getComputedStyle(document.documentElement);n&&(a=n.getPropertyValue(t||e)||a)}return a.toString().endsWith("px")&&(a=Number(a.toString().slice(0,-2))),a.toString().includes(",")&&!a.toString().startsWith("rgb")&&(a="rgba(".concat(a,", 1)")),a}calcSizeChange(e,t,a){this.state.themeVars[e]="".concat(t).concat(a.unit||""),a.kindVars&&Object.keys(a.kindVars).forEach((e=>{const n=a.kindVars[e];this.state.themeVars[e]="".concat(t+n).concat(a.unit||"")}))}}function Ri(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Ni=a({name:"IBizCustomTheme",props:{controller:{type:Object,required:!0}},emits:[],setup(){const e=A("custom-theme"),t=f().proxy,a=new Mi,s=n(0),l=e=>{let{value:t}=e;return e.className&&(t="".concat(e.className,":").concat(t)),o(i("el-color-picker"),{onChange:t=>{((e,t,n)=>{let o=e;n&&(o="".concat(n,":").concat(e)),a.state.themeVars[o]=t})(e.value,t,e.className)},"show-alpha":!0,"model-value":a.getCssVar(t,e.defaultValue)},null)},r=e=>{const t=a.getCssVar(e.value);return o(i("el-input-number"),{"model-value":t,step:t>=100?100:1,min:0,onChange:t=>{var n,o,i;n=e.value,o=t,i=e,a.calcSizeChange(n,o,i)}},null)},c=t=>t.children?t.children.map((e=>c(e))):o("div",{class:e.b("item")},[o("div",{class:e.be("item","caption")},[ibiz.i18n.t("control.common.customTheme.".concat(t.labelLang))]),o("div",{class:e.be("item","content")},[t.vars.map((t=>{let a=l(t);return"size"===t.type&&(a=r(t)),o("div",{class:e.b("var")},[o("span",{class:e.be("var","description"),title:ht(ibiz.i18n.t("control.common.customTheme.".concat(t.descLang)))},[ibiz.i18n.t("control.common.customTheme.".concat(t.labelLang))]),a])}))])]);return{ns:e,c:a,handlePreview:()=>{ibiz.util.theme.previewCustomTheme(a.state.themeTag,a.state.themeVars),t.$forceUpdate()},handleReset:()=>{a.state.themeVars={},ibiz.util.theme.resetCustomTheme(),t.$forceUpdate()},handleSave:async()=>{ibiz.util.theme.previewCustomTheme(a.state.themeTag,a.state.themeVars),t.$forceUpdate(),await ibiz.util.theme.saveCustomTheme(a.state.themeTag,a.state.themeVars)},handleShare:async()=>{ibiz.util.theme.previewCustomTheme(a.state.themeTag,a.state.themeVars),t.$forceUpdate(),await ibiz.util.theme.saveCustomTheme(a.state.themeTag,a.state.themeVars);const e=await ibiz.util.theme.shareCustomTheme(a.state.themeTag,a.state.themeVars);if(e){await ibiz.confirm.info({title:ibiz.i18n.t("control.common.customTheme.confirmCopyLink"),desc:"".concat(e)})&&ibiz.util.text.copy(e)}},renderHeader:()=>o("div",{class:e.b("item")},[o("div",{class:e.be("item","caption")},[ibiz.i18n.t("control.common.customTheme.themeColor")]),o("div",{class:e.be("item","content")},[a.predefineType.map((e=>o(i("el-button"),{color:e.color,title:ht(ibiz.i18n.t("control.common.customTheme.".concat(e.labelLang))),onClick:()=>{var t;t=e.codeName,a.state.themeTag=t}},{default:()=>[a.state.themeTag===e.codeName&&o("ion-icon",{name:"checkmark-sharp"},null)]})))])]),renderContent:()=>{let e;return o(i("el-tabs"),{modelValue:s.value,"onUpdate:modelValue":e=>s.value=e},Ri(e=a.model.map(((e,t)=>{let a;return o(i("el-tab-pane"),{name:t,label:ibiz.i18n.t("control.common.customTheme.".concat(e.labelLang))},Ri(a=c(e))?a:{default:()=>[a]})})))?e:{default:()=>[e]})}}},render(){let e,t,a;return o("div",{class:this.ns.b()},[o("div",{class:this.ns.b("header")},[this.renderHeader()]),o("div",{class:this.ns.b("content")},[this.renderContent()]),o("div",{class:this.ns.b("footer")},[o(i("el-button"),{onClick:this.handlePreview},Ri(e=ibiz.i18n.t("control.common.customTheme.preview"))?e:{default:()=>[e]}),o(i("el-button"),{onClick:this.handleSave},Ri(t=ibiz.i18n.t("control.common.customTheme.save"))?t:{default:()=>[t]}),o(i("el-button"),{onClick:this.handleReset},Ri(a=ibiz.i18n.t("control.common.customTheme.reset"))?a:{default:()=>[a]})])])}}),Li=a({name:"IBizCarouselCard",props:{swipeData:{type:Object,required:!0},isAuto:{type:Boolean,default:!0},timeSpan:{type:Number,default:3e3}},setup(e){const t=A("carousel-card"),a=n(3),o=n(),i=n(),s=n(600),r=n(0),c=l((()=>(r.value-s.value-0)/2));let h=null;const m=document.getElementsByClassName("swiper-slide-card"),v=500,b=l((()=>e.swipeData.length>2?[...e.swipeData.slice(-2),...e.swipeData,...e.swipeData.slice(0,2)]:[...e.swipeData])),g=()=>{for(let t=0;t<m.length;t++)2===e.swipeData.length?(m[0].style.left="".concat(r.value/4-s.value/2,"px"),m[1].style.left="".concat(r.value/4*3-s.value/2,"px")):1===e.swipeData.length?m[t].style.left="".concat(r.value/2-s.value/2,"px"):m[t].style.left="".concat((t-1)*(s.value+0),"px"),t===a.value-1?m[t].style.transform="scale(1)":m[t].style.transform="scale(".concat(.8,")")},w=t=>{2===e.swipeData.length?(a.value=a.value?0:1,g()):1===e.swipeData.length||(a.value>=2&&(o.value.style.transition="left ".concat(t/1e3,"s"),o.value.style.left="".concat(parseInt(o.value.style.left,10)-(0+s.value),"px")),a.value===e.swipeData.length+1?(a.value=e.swipeData.length+2,g(),setTimeout((()=>{a.value=2,g(),o.value.style.transitionProperty="none",o.value.style.left="".concat(-(s.value-c.value),"px")}),t)):(a.value++,g()))};g(),d((()=>{e.isAuto&&(h=window.setInterval((()=>w(v)),e.timeSpan))})),p((()=>{h&&(window.clearInterval(h),h=null)})),u((()=>{r.value=i.value.clientWidth,s.value=m[0].clientWidth,o.value&&(o.value.style.left="".concat(-(2*s.value+0-c.value),"px"),o.value.style.width="".concat((e.swipeData.length+2)*(s.value+0),"px")),g()}));return{ns:t,btnClick:t=>{var n;"left"===t?(n=v,2===e.swipeData.length?(a.value=a.value?0:1,g()):1===e.swipeData.length||(a.value--,o.value.style.transition="left ".concat(n/1e3,"s"),o.value.style.left="".concat(parseInt(o.value.style.left,10)+(0+s.value),"px"),1===a.value?(g(),setTimeout((()=>{a.value=e.swipeData.length+1,g(),o.value.style.transitionProperty="none",o.value.style.left="".concat(-(parseInt(m[a.value].style.left,10)-c.value-0),"px")}),n)):g())):"right"===t&&w(v)},mainDom:o,listDom:i,imgWidth:s,resImgArr:b,dotClick:t=>{a.value=t+2+1,a.value===e.swipeData.length+2&&(a.value=2),o.value.style.transition="left ".concat(.5,"s"),o.value.style.left="".concat(-((a.value-1)*s.value+0-c.value),"px"),g()},nowIndex:a}},render(){const e=e=>e.cssClass?-1!==e.cssClass.indexOf("fa-")?o("i",{class:[e.cssClas,"swiper-slide-card"]},null):o("ion-icon",{class:"swiper-slide-card",name:e.cssClass},null):e.imgUrl?o("img",{class:"swiper-slide-card",style:"width: ".concat(this.imgWidth,"px"),alt:e.name,src:e.imgUrl},null):void 0;let t=this.nowIndex;return this.nowIndex<this.swipeData.length&&(t=this.nowIndex+this.swipeData.length),o("div",{class:this.ns.b()},[o("div",{class:this.ns.e("swiper-list"),ref:"listDom"},[o("div",{class:this.ns.e("swiper-main"),ref:"mainDom"},[this.resImgArr.map((t=>e(t)))]),o("div",{id:"prev-card",class:this.ns.e("leftBtn"),style:"width:".concat(this.imgWidth,"px"),onClick:()=>this.btnClick("left")},null),o("div",{id:"next-card",class:this.ns.e("rightBtn"),style:"width:".concat(this.imgWidth,"px"),onClick:()=>this.btnClick("right")},null)]),o("div",{class:this.ns.e("dot")},[this.swipeData.map(((e,a)=>o("div",{class:[this.ns.e("dot-item"),a===t-3?"isActive":""],onClick:()=>this.dotClick(a)},null)))])])}});var Vi=Object.defineProperty,Fi=(e,t,a)=>(((e,t,a)=>{t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Ui{constructor(e,t,a){Fi(this,"name"),Fi(this,"icon"),Fi(this,"text"),this.name=e,this.icon=t,this.text=a}get label(){return this.name}}var qi=Object.defineProperty,Gi=(e,t,a)=>(((e,t,a)=>{t in e?qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);let Hi=class{constructor(e,t,a){Gi(this,"data"),Gi(this,"category"),Gi(this,"aliases"),this.data=e,this.category=t,this.aliases=a}};const Wi=[new Hi("😀","peoples",["grinning"]),new Hi("😃","peoples",["smiley"]),new Hi("😄","peoples",["smile"]),new Hi("😁","peoples",["grin"]),new Hi("😆","peoples",["laughing","satisfied"]),new Hi("😅","peoples",["sweat_smile"]),new Hi("😂","peoples",["joy"]),new Hi("🤣","peoples",["rofl"]),new Hi("😌","peoples",["relaxed"]),new Hi("😊","peoples",["blush"]),new Hi("😇","peoples",["innocent"]),new Hi("🙂","peoples",["slightly_smiling_face"]),new Hi("🙃","peoples",["upside_down_face"]),new Hi("😉","peoples",["wink"]),new Hi("😌","peoples",["relieved"]),new Hi("😍","peoples",["heart_eyes"]),new Hi("😘","peoples",["kissing_heart"]),new Hi("😗","peoples",["kissing"]),new Hi("😙","peoples",["kissing_smiling_eyes"]),new Hi("😚","peoples",["kissing_closed_eyes"]),new Hi("😋","peoples",["yum"]),new Hi("😜","peoples",["stuck_out_tongue_winking_eye"]),new Hi("😝","peoples",["stuck_out_tongue_closed_eyes"]),new Hi("😛","peoples",["stuck_out_tongue"]),new Hi("🤑","peoples",["money_mouth_face"]),new Hi("🤗","peoples",["hugs"]),new Hi("🤓","peoples",["nerd_face"]),new Hi("😎","peoples",["sunglasses"]),new Hi("🤡","peoples",["clown_face"]),new Hi("🤠","peoples",["cowboy_hat_face"]),new Hi("😏","peoples",["smirk"]),new Hi("😒","peoples",["unamused"]),new Hi("😞","peoples",["disappointed"]),new Hi("😔","peoples",["pensive"]),new Hi("😟","peoples",["worried"]),new Hi("😕","peoples",["confused"]),new Hi("🙁","peoples",["slightly_frowning_face"]),new Hi("☹️","peoples",["frowning_face"]),new Hi("😣","peoples",["persevere"]),new Hi("😖","peoples",["confounded"]),new Hi("😫","peoples",["tired_face"]),new Hi("😩","peoples",["weary"]),new Hi("😤","peoples",["triumph"]),new Hi("😠","peoples",["angry"]),new Hi("😡","peoples",["rage","pout"]),new Hi("😶","peoples",["no_mouth"]),new Hi("😐","peoples",["neutral_face"]),new Hi("😑","peoples",["expressionless"]),new Hi("😯","peoples",["hushed"]),new Hi("😦","peoples",["frowning"]),new Hi("😧","peoples",["anguished"]),new Hi("😮","peoples",["open_mouth"]),new Hi("😲","peoples",["astonished"]),new Hi("😵","peoples",["dizzy_face"]),new Hi("😳","peoples",["flushed"]),new Hi("😱","peoples",["scream"]),new Hi("😨","peoples",["fearful"]),new Hi("😰","peoples",["cold_sweat"]),new Hi("😢","peoples",["cry"]),new Hi("😥","peoples",["disappointed_relieved"]),new Hi("🤤","peoples",["drooling_face"]),new Hi("😭","peoples",["sob"]),new Hi("😓","peoples",["sweat"]),new Hi("😪","peoples",["sleepy"]),new Hi("😴","peoples",["sleeping"]),new Hi("🙄","peoples",["roll_eyes"]),new Hi("🤔","peoples",["thinking"]),new Hi("🤥","peoples",["lying_face"]),new Hi("😬","peoples",["grimacing"]),new Hi("🤐","peoples",["zipper_mouth_face"]),new Hi("🤢","peoples",["nauseated_face"]),new Hi("🤧","peoples",["sneezing_face"]),new Hi("😷","peoples",["mask"]),new Hi("🤒","peoples",["face_with_thermometer"]),new Hi("🤕","peoples",["face_with_head_bandage"]),new Hi("😈","peoples",["smiling_imp"]),new Hi("👿","peoples",["imp"]),new Hi("👹","peoples",["japanese_ogre"]),new Hi("👺","peoples",["japanese_goblin"]),new Hi("💩","peoples",["hankey","poop","shit"]),new Hi("👻","peoples",["ghost"]),new Hi("💀","peoples",["skull"]),new Hi("☠️","peoples",["skull_and_crossbones"]),new Hi("👽","peoples",["alien"]),new Hi("👾","peoples",["space_invader"]),new Hi("🤖","peoples",["robot"]),new Hi("🎃","peoples",["jack_o_lantern"]),new Hi("😺","peoples",["smiley_cat"]),new Hi("😸","peoples",["smile_cat"]),new Hi("😹","peoples",["joy_cat"]),new Hi("😻","peoples",["heart_eyes_cat"]),new Hi("😼","peoples",["smirk_cat"]),new Hi("😽","peoples",["kissing_cat"]),new Hi("🙀","peoples",["scream_cat"]),new Hi("😿","peoples",["crying_cat_face"]),new Hi("😾","peoples",["pouting_cat"]),new Hi("👐","peoples",["open_hands"]),new Hi("🙌","peoples",["raised_hands"]),new Hi("👏","peoples",["clap"]),new Hi("🙏","peoples",["pray"]),new Hi("🤝","peoples",["handshake"]),new Hi("👍","peoples",["+1","thumbsup"]),new Hi("👎","peoples",["-1","thumbsdown"]),new Hi("👊","peoples",["fist_oncoming","facepunch","punch"]),new Hi("✊","peoples",["fist_raised","fist"]),new Hi("🤛","peoples",["fist_left"]),new Hi("🤜","peoples",["fist_right"]),new Hi("🤞","peoples",["crossed_fingers"]),new Hi("✌️","peoples",["v"]),new Hi("🤘","peoples",["metal"]),new Hi("👌","peoples",["ok_hand"]),new Hi("👈","peoples",["point_left"]),new Hi("👉","peoples",["point_right"]),new Hi("👆","peoples",["point_up_2"]),new Hi("👇","peoples",["point_down"]),new Hi("☝️","peoples",["point_up"]),new Hi("✋","peoples",["hand","raised_hand"]),new Hi("🤚","peoples",["raised_back_of_hand"]),new Hi("🖐","peoples",["raised_hand_with_fingers_splayed"]),new Hi("🖖","peoples",["vulcan_salute"]),new Hi("👋","peoples",["wave"]),new Hi("🤙","peoples",["call_me_hand"]),new Hi("💪","peoples",["muscle"]),new Hi("🖕","peoples",["middle_finger","fu"]),new Hi("✍️","peoples",["writing_hand"]),new Hi("🤳","peoples",["selfie"]),new Hi("💅","peoples",["nail_care"]),new Hi("💍","peoples",["ring"]),new Hi("💄","peoples",["lipstick"]),new Hi("💋","peoples",["kiss"]),new Hi("👄","peoples",["lips"]),new Hi("👅","peoples",["tongue"]),new Hi("👂","peoples",["ear"]),new Hi("👃","peoples",["nose"]),new Hi("👣","peoples",["footprints"]),new Hi("👁","peoples",["eye"]),new Hi("👀","peoples",["eyes"]),new Hi("🗣","peoples",["speaking_head"]),new Hi("👤","peoples",["bust_in_silhouette"]),new Hi("👥","peoples",["busts_in_silhouette"]),new Hi("👶","peoples",["baby"]),new Hi("👦","peoples",["boy"]),new Hi("👧","peoples",["girl"]),new Hi("👨","peoples",["man"]),new Hi("👩","peoples",["woman"]),new Hi("👱♀","peoples",["blonde_woman"]),new Hi("👱","peoples",["blonde_man","person_with_blond_hair"]),new Hi("👴","peoples",["older_man"]),new Hi("👵","peoples",["older_woman"]),new Hi("👲","peoples",["man_with_gua_pi_mao"]),new Hi("👳♀","peoples",["woman_with_turban"]),new Hi("👳","peoples",["man_with_turban"]),new Hi("👮♀","peoples",["policewoman"]),new Hi("👮","peoples",["policeman","cop"]),new Hi("👷♀","peoples",["construction_worker_woman"]),new Hi("👷","peoples",["construction_worker_man","construction_worker"]),new Hi("💂♀","peoples",["guardswoman"]),new Hi("💂","peoples",["guardsman"]),new Hi("👩⚕","peoples",["woman_health_worker"]),new Hi("👨⚕","peoples",["man_health_worker"]),new Hi("👩🌾","peoples",["woman_farmer"]),new Hi("👨🌾","peoples",["man_farmer"]),new Hi("👩🍳","peoples",["woman_cook"]),new Hi("👨🍳","peoples",["man_cook"]),new Hi("👩🎓","peoples",["woman_student"]),new Hi("👨🎓","peoples",["man_student"]),new Hi("👩🎤","peoples",["woman_singer"]),new Hi("👨🎤","peoples",["man_singer"]),new Hi("👩🏫","peoples",["woman_teacher"]),new Hi("👨🏫","peoples",["man_teacher"]),new Hi("👩🏭","peoples",["woman_factory_worker"]),new Hi("👨🏭","peoples",["man_factory_worker"]),new Hi("👩💻","peoples",["woman_technologist"]),new Hi("👨💻","peoples",["man_technologist"]),new Hi("👩💼","peoples",["woman_office_worker"]),new Hi("👨💼","peoples",["man_office_worker"]),new Hi("👩🔧","peoples",["woman_mechanic"]),new Hi("👨🔧","peoples",["man_mechanic"]),new Hi("👩🔬","peoples",["woman_scientist"]),new Hi("👨🔬","peoples",["man_scientist"]),new Hi("👩🎨","peoples",["woman_artist"]),new Hi("👨🎨","peoples",["man_artist"]),new Hi("👩🚒","peoples",["woman_firefighter"]),new Hi("👨🚒","peoples",["man_firefighter"]),new Hi("👩🚀","peoples",["woman_astronaut"]),new Hi("👨🚀","peoples",["man_astronaut"]),new Hi("🤶","peoples",["mrs_claus"]),new Hi("🎅","peoples",["santa"]),new Hi("👸","peoples",["princess"]),new Hi("🤴","peoples",["prince"]),new Hi("👰","peoples",["bride_with_veil"]),new Hi("🤵","peoples",["man_in_tuxedo"]),new Hi("👼","peoples",["angel"]),new Hi("🤰","peoples",["pregnant_woman"]),new Hi("🙇♀","peoples",["bowing_woman"]),new Hi("🙇","peoples",["bowing_man","bow"]),new Hi("💁","peoples",["tipping_hand_woman","information_desk_person","sassy_woman"]),new Hi("💁♂","peoples",["tipping_hand_man","sassy_man"]),new Hi("🙅","peoples",["no_good_woman","no_good","ng_woman"]),new Hi("🙅♂","peoples",["no_good_man","ng_man"]),new Hi("🙆","peoples",["ok_woman"]),new Hi("🙆♂","peoples",["ok_man"]),new Hi("🙋","peoples",["raising_hand_woman","raising_hand"]),new Hi("🙋♂","peoples",["raising_hand_man"]),new Hi("🤦♀","peoples",["woman_facepalming"]),new Hi("🤦♂","peoples",["man_facepalming"]),new Hi("🤷♀","peoples",["woman_shrugging"]),new Hi("🤷♂","peoples",["man_shrugging"]),new Hi("🙎","peoples",["pouting_woman","person_with_pouting_face"]),new Hi("🙎♂","peoples",["pouting_man"]),new Hi("🙍","peoples",["frowning_woman","person_frowning"]),new Hi("🙍♂","peoples",["frowning_man"]),new Hi("💇","peoples",["haircut_woman","haircut"]),new Hi("💇♂","peoples",["haircut_man"]),new Hi("💆","peoples",["massage_woman","massage"]),new Hi("💆♂","peoples",["massage_man"]),new Hi("🕴","peoples",["business_suit_levitating"]),new Hi("💃","peoples",["dancer"]),new Hi("🕺","peoples",["man_dancing"]),new Hi("👯","peoples",["dancing_women","dancers"]),new Hi("👯♂","peoples",["dancing_men"]),new Hi("🚶♀","peoples",["walking_woman"]),new Hi("🚶","peoples",["walking_man","walking"]),new Hi("🏃♀","peoples",["running_woman"]),new Hi("🏃","peoples",["running_man","runner","running"]),new Hi("👫","peoples",["couple"]),new Hi("👭","peoples",["two_women_holding_hands"]),new Hi("👬","peoples",["two_men_holding_hands"]),new Hi("💑","peoples",["couple_with_heart_woman_man","couple_with_heart"]),new Hi("👩❤️👩","peoples",["couple_with_heart_woman_woman"]),new Hi("👨❤️👨","peoples",["couple_with_heart_man_man"]),new Hi("💏","peoples",["couplekiss_man_woman"]),new Hi("👩❤️💋👩","peoples",["couplekiss_woman_woman"]),new Hi("👨❤️💋👨","peoples",["couplekiss_man_man"]),new Hi("👪","peoples",["family_man_woman_boy","family"]),new Hi("👨👩👧","peoples",["family_man_woman_girl"]),new Hi("👨👩👧👦","peoples",["family_man_woman_girl_boy"]),new Hi("👨👩👦👦","peoples",["family_man_woman_boy_boy"]),new Hi("👨👩👧👧","peoples",["family_man_woman_girl_girl"]),new Hi("👩👩👦","peoples",["family_woman_woman_boy"]),new Hi("👩👩👧","peoples",["family_woman_woman_girl"]),new Hi("👩👩👧👦","peoples",["family_woman_woman_girl_boy"]),new Hi("👩👩👦👦","peoples",["family_woman_woman_boy_boy"]),new Hi("👩👩👧👧","peoples",["family_woman_woman_girl_girl"]),new Hi("👨👨👦","peoples",["family_man_man_boy"]),new Hi("👨👨👧","peoples",["family_man_man_girl"]),new Hi("👨👨👧👦","peoples",["family_man_man_girl_boy"]),new Hi("👨👨👦👦","peoples",["family_man_man_boy_boy"]),new Hi("👨👨👧👧","peoples",["family_man_man_girl_girl"]),new Hi("👩👦","peoples",["family_woman_boy"]),new Hi("👩👧","peoples",["family_woman_girl"]),new Hi("👩👧👦","peoples",["family_woman_girl_boy"]),new Hi("👩👦👦","peoples",["family_woman_boy_boy"]),new Hi("👩👧👧","peoples",["family_woman_girl_girl"]),new Hi("👨👦","peoples",["family_man_boy"]),new Hi("👨👧","peoples",["family_man_girl"]),new Hi("👨👧👦","peoples",["family_man_girl_boy"]),new Hi("👨👦👦","peoples",["family_man_boy_boy"]),new Hi("👨👧👧","peoples",["family_man_girl_girl"]),new Hi("👚","peoples",["womans_clothes"]),new Hi("👕","peoples",["shirt","tshirt"]),new Hi("👖","peoples",["jeans"]),new Hi("👔","peoples",["necktie"]),new Hi("👗","peoples",["dress"]),new Hi("👙","peoples",["bikini"]),new Hi("👘","peoples",["kimono"]),new Hi("👠","peoples",["high_heel"]),new Hi("👡","peoples",["sandal"]),new Hi("👢","peoples",["boot"]),new Hi("👞","peoples",["mans_shoe","shoe"]),new Hi("👟","peoples",["athletic_shoe"]),new Hi("👒","peoples",["womans_hat"]),new Hi("🎩","peoples",["tophat"]),new Hi("🎓","peoples",["mortar_board"]),new Hi("👑","peoples",["crown"]),new Hi("⛑","peoples",["rescue_worker_helmet"]),new Hi("🎒","peoples",["school_satchel"]),new Hi("👝","peoples",["pouch"]),new Hi("👛","peoples",["purse"]),new Hi("👜","peoples",["handbag"]),new Hi("💼","peoples",["briefcase"]),new Hi("👓","peoples",["eyeglasses"]),new Hi("🕶","peoples",["dark_sunglasses"]),new Hi("🌂","peoples",["closed_umbrella"]),new Hi("☂️","peoples",["open_umbrella"]),new Hi("🐶","nature",["dog"]),new Hi("🐱","nature",["cat"]),new Hi("🐭","nature",["mouse"]),new Hi("🐹","nature",["hamster"]),new Hi("🐰","nature",["rabbit"]),new Hi("🦊","nature",["fox_face"]),new Hi("🐻","nature",["bear"]),new Hi("🐼","nature",["panda_face"]),new Hi("🐨","nature",["koala"]),new Hi("🐯","nature",["tiger"]),new Hi("🦁","nature",["lion"]),new Hi("🐮","nature",["cow"]),new Hi("🐷","nature",["pig"]),new Hi("🐽","nature",["pig_nose"]),new Hi("🐸","nature",["frog"]),new Hi("🐵","nature",["monkey_face"]),new Hi("🙈","nature",["see_no_evil"]),new Hi("🙉","nature",["hear_no_evil"]),new Hi("🙊","nature",["speak_no_evil"]),new Hi("🐒","nature",["monkey"]),new Hi("🐔","nature",["chicken"]),new Hi("🐧","nature",["penguin"]),new Hi("🐦","nature",["bird"]),new Hi("🐤","nature",["baby_chick"]),new Hi("🐣","nature",["hatching_chick"]),new Hi("🐥","nature",["hatched_chick"]),new Hi("🦆","nature",["duck"]),new Hi("🦅","nature",["eagle"]),new Hi("🦉","nature",["owl"]),new Hi("🦇","nature",["bat"]),new Hi("🐺","nature",["wolf"]),new Hi("🐗","nature",["boar"]),new Hi("🐴","nature",["horse"]),new Hi("🦄","nature",["unicorn"]),new Hi("🐝","nature",["bee","honeybee"]),new Hi("🐛","nature",["bug"]),new Hi("🦋","nature",["butterfly"]),new Hi("🐌","nature",["snail"]),new Hi("🐚","nature",["shell"]),new Hi("🐞","nature",["beetle"]),new Hi("🐜","nature",["ant"]),new Hi("🕷","nature",["spider"]),new Hi("🕸","nature",["spider_web"]),new Hi("🐢","nature",["turtle"]),new Hi("🐍","nature",["snake"]),new Hi("🦎","nature",["lizard"]),new Hi("🦂","nature",["scorpion"]),new Hi("🦀","nature",["crab"]),new Hi("🦑","nature",["squid"]),new Hi("🐙","nature",["octopus"]),new Hi("🦐","nature",["shrimp"]),new Hi("🐠","nature",["tropical_fish"]),new Hi("🐟","nature",["fish"]),new Hi("🐡","nature",["blowfish"]),new Hi("🐬","nature",["dolphin","flipper"]),new Hi("🦈","nature",["shark"]),new Hi("🐳","nature",["whale"]),new Hi("🐋","nature",["whale2"]),new Hi("🐊","nature",["crocodile"]),new Hi("🐆","nature",["leopard"]),new Hi("🐅","nature",["tiger2"]),new Hi("🐃","nature",["water_buffalo"]),new Hi("🐂","nature",["ox"]),new Hi("🐄","nature",["cow2"]),new Hi("🦌","nature",["deer"]),new Hi("🐪","nature",["dromedary_camel"]),new Hi("🐫","nature",["camel"]),new Hi("🐘","nature",["elephant"]),new Hi("🦏","nature",["rhinoceros"]),new Hi("🦍","nature",["gorilla"]),new Hi("🐎","nature",["racehorse"]),new Hi("🐖","nature",["pig2"]),new Hi("🐐","nature",["goat"]),new Hi("🐏","nature",["ram"]),new Hi("🐑","nature",["sheep"]),new Hi("🐕","nature",["dog2"]),new Hi("🐩","nature",["poodle"]),new Hi("🐈","nature",["cat2"]),new Hi("🐓","nature",["rooster"]),new Hi("🦃","nature",["turkey"]),new Hi("🕊","nature",["dove"]),new Hi("🐇","nature",["rabbit2"]),new Hi("🐁","nature",["mouse2"]),new Hi("🐀","nature",["rat"]),new Hi("🐿","nature",["chipmunk"]),new Hi("🐾","nature",["feet","paw_prints"]),new Hi("🐉","nature",["dragon"]),new Hi("🐲","nature",["dragon_face"]),new Hi("🌵","nature",["cactus"]),new Hi("🎄","nature",["christmas_tree"]),new Hi("🌲","nature",["evergreen_tree"]),new Hi("🌳","nature",["deciduous_tree"]),new Hi("🌴","nature",["palm_tree"]),new Hi("🌱","nature",["seedling"]),new Hi("🌿","nature",["herb"]),new Hi("☘️","nature",["shamrock"]),new Hi("🍀","nature",["four_leaf_clover"]),new Hi("🎍","nature",["bamboo"]),new Hi("🎋","nature",["tanabata_tree"]),new Hi("🍃","nature",["leaves"]),new Hi("🍂","nature",["fallen_leaf"]),new Hi("🍁","nature",["maple_leaf"]),new Hi("🍄","nature",["mushroom"]),new Hi("🌾","nature",["ear_of_rice"]),new Hi("💐","nature",["bouquet"]),new Hi("🌷","nature",["tulip"]),new Hi("🌹","nature",["rose"]),new Hi("🥀","nature",["wilted_flower"]),new Hi("🌻","nature",["sunflower"]),new Hi("🌼","nature",["blossom"]),new Hi("🌸","nature",["cherry_blossom"]),new Hi("🌺","nature",["hibiscus"]),new Hi("🌎","nature",["earth_americas"]),new Hi("🌍","nature",["earth_africa"]),new Hi("🌏","nature",["earth_asia"]),new Hi("🌕","nature",["full_moon"]),new Hi("🌖","nature",["waning_gibbous_moon"]),new Hi("🌗","nature",["last_quarter_moon"]),new Hi("🌘","nature",["waning_crescent_moon"]),new Hi("🌑","nature",["new_moon"]),new Hi("🌒","nature",["waxing_crescent_moon"]),new Hi("🌓","nature",["first_quarter_moon"]),new Hi("🌔","nature",["moon","waxing_gibbous_moon"]),new Hi("🌚","nature",["new_moon_with_face"]),new Hi("🌝","nature",["full_moon_with_face"]),new Hi("🌞","nature",["sun_with_face"]),new Hi("🌛","nature",["first_quarter_moon_with_face"]),new Hi("🌜","nature",["last_quarter_moon_with_face"]),new Hi("🌙","nature",["crescent_moon"]),new Hi("💫","nature",["dizzy"]),new Hi("⭐️","nature",["star"]),new Hi("🌟","nature",["star2"]),new Hi("✨","nature",["sparkles"]),new Hi("⚡️","nature",["zap"]),new Hi("🔥","nature",["fire"]),new Hi("💥","nature",["boom","collision"]),new Hi("☄","nature",["comet"]),new Hi("☀️","nature",["sunny"]),new Hi("🌤","nature",["sun_behind_small_cloud"]),new Hi("⛅️","nature",["partly_sunny"]),new Hi("🌥","nature",["sun_behind_large_cloud"]),new Hi("🌦","nature",["sun_behind_rain_cloud"]),new Hi("🌈","nature",["rainbow"]),new Hi("☁️","nature",["cloud"]),new Hi("🌧","nature",["cloud_with_rain"]),new Hi("⛈","nature",["cloud_with_lightning_and_rain"]),new Hi("🌩","nature",["cloud_with_lightning"]),new Hi("🌨","nature",["cloud_with_snow"]),new Hi("☃️","nature",["snowman_with_snow"]),new Hi("⛄️","nature",["snowman"]),new Hi("❄️","nature",["snowflake"]),new Hi("🌬","nature",["wind_face"]),new Hi("💨","nature",["dash"]),new Hi("🌪","nature",["tornado"]),new Hi("🌫","nature",["fog"]),new Hi("🌊","nature",["ocean"]),new Hi("💧","nature",["droplet"]),new Hi("💦","nature",["sweat_drops"]),new Hi("☔️","nature",["umbrella"]),new Hi("🍏","foods",["green_apple"]),new Hi("🍎","foods",["apple"]),new Hi("🍐","foods",["pear"]),new Hi("🍊","foods",["tangerine","orange","mandarin"]),new Hi("🍋","foods",["lemon"]),new Hi("🍌","foods",["banana"]),new Hi("🍉","foods",["watermelon"]),new Hi("🍇","foods",["grapes"]),new Hi("🍓","foods",["strawberry"]),new Hi("🍈","foods",["melon"]),new Hi("🍒","foods",["cherries"]),new Hi("🍑","foods",["peach"]),new Hi("🍍","foods",["pineapple"]),new Hi("🥝","foods",["kiwi_fruit"]),new Hi("🥑","foods",["avocado"]),new Hi("🍅","foods",["tomato"]),new Hi("🍆","foods",["eggplant"]),new Hi("🥒","foods",["cucumber"]),new Hi("🥕","foods",["carrot"]),new Hi("🌽","foods",["corn"]),new Hi("🌶","foods",["hot_pepper"]),new Hi("🥔","foods",["potato"]),new Hi("🍠","foods",["sweet_potato"]),new Hi("🌰","foods",["chestnut"]),new Hi("🥜","foods",["peanuts"]),new Hi("🍯","foods",["honey_pot"]),new Hi("🥐","foods",["croissant"]),new Hi("🍞","foods",["bread"]),new Hi("🥖","foods",["baguette_bread"]),new Hi("🧀","foods",["cheese"]),new Hi("🥚","foods",["egg"]),new Hi("🍳","foods",["fried_egg"]),new Hi("🥓","foods",["bacon"]),new Hi("🥞","foods",["pancakes"]),new Hi("🍤","foods",["fried_shrimp"]),new Hi("🍗","foods",["poultry_leg"]),new Hi("🍖","foods",["meat_on_bone"]),new Hi("🍕","foods",["pizza"]),new Hi("🌭","foods",["hotdog"]),new Hi("🍔","foods",["hamburger"]),new Hi("🍟","foods",["fries"]),new Hi("🥙","foods",["stuffed_flatbread"]),new Hi("🌮","foods",["taco"]),new Hi("🌯","foods",["burrito"]),new Hi("🥗","foods",["green_salad"]),new Hi("🥘","foods",["shallow_pan_of_food"]),new Hi("🍝","foods",["spaghetti"]),new Hi("🍜","foods",["ramen"]),new Hi("🍲","foods",["stew"]),new Hi("🍥","foods",["fish_cake"]),new Hi("🍣","foods",["sushi"]),new Hi("🍱","foods",["bento"]),new Hi("🍛","foods",["curry"]),new Hi("🍚","foods",["rice"]),new Hi("🍙","foods",["rice_ball"]),new Hi("🍘","foods",["rice_cracker"]),new Hi("🍢","foods",["oden"]),new Hi("🍡","foods",["dango"]),new Hi("🍧","foods",["shaved_ice"]),new Hi("🍨","foods",["ice_cream"]),new Hi("🍦","foods",["icecream"]),new Hi("🍰","foods",["cake"]),new Hi("🎂","foods",["birthday"]),new Hi("🍮","foods",["custard"]),new Hi("🍭","foods",["lollipop"]),new Hi("🍬","foods",["candy"]),new Hi("🍫","foods",["chocolate_bar"]),new Hi("🍿","foods",["popcorn"]),new Hi("🍩","foods",["doughnut"]),new Hi("🍪","foods",["cookie"]),new Hi("🥛","foods",["milk_glass"]),new Hi("🍼","foods",["baby_bottle"]),new Hi("☕️","foods",["coffee"]),new Hi("🍵","foods",["tea"]),new Hi("🍶","foods",["sake"]),new Hi("🍺","foods",["beer"]),new Hi("🍻","foods",["beers"]),new Hi("🥂","foods",["clinking_glasses"]),new Hi("🍷","foods",["wine_glass"]),new Hi("🥃","foods",["tumbler_glass"]),new Hi("🍸","foods",["cocktail"]),new Hi("🍹","foods",["tropical_drink"]),new Hi("🍾","foods",["champagne"]),new Hi("🥄","foods",["spoon"]),new Hi("🍴","foods",["fork_and_knife"]),new Hi("🍽","foods",["plate_with_cutlery"]),new Hi("⚽️","activity",["soccer"]),new Hi("🏀","activity",["basketball"]),new Hi("🏈","activity",["football"]),new Hi("⚾️","activity",["baseball"]),new Hi("🎾","activity",["tennis"]),new Hi("🏐","activity",["volleyball"]),new Hi("🏉","activity",["rugby_football"]),new Hi("🎱","activity",["8ball"]),new Hi("🏓","activity",["ping_pong"]),new Hi("🏸","activity",["badminton"]),new Hi("🥅","activity",["goal_net"]),new Hi("🏒","activity",["ice_hockey"]),new Hi("🏑","activity",["field_hockey"]),new Hi("🏏","activity",["cricket"]),new Hi("⛳️","activity",["golf"]),new Hi("🏹","activity",["bow_and_arrow"]),new Hi("🎣","activity",["fishing_pole_and_fish"]),new Hi("🥊","activity",["boxing_glove"]),new Hi("🥋","activity",["martial_arts_uniform"]),new Hi("⛸","activity",["ice_skate"]),new Hi("🎿","activity",["ski"]),new Hi("⛷","activity",["skier"]),new Hi("🏂","activity",["snowboarder"]),new Hi("🏋️♀️","activity",["weight_lifting_woman"]),new Hi("🏋","activity",["weight_lifting_man"]),new Hi("🤺","activity",["person_fencing"]),new Hi("🤼♀","activity",["women_wrestling"]),new Hi("🤼♂","activity",["men_wrestling"]),new Hi("🤸♀","activity",["woman_cartwheeling"]),new Hi("🤸♂","activity",["man_cartwheeling"]),new Hi("⛹️♀️","activity",["basketball_woman"]),new Hi("⛹","activity",["basketball_man"]),new Hi("🤾♀","activity",["woman_playing_handball"]),new Hi("🤾♂","activity",["man_playing_handball"]),new Hi("🏌️♀️","activity",["golfing_woman"]),new Hi("🏌","activity",["golfing_man"]),new Hi("🏄♀","activity",["surfing_woman"]),new Hi("🏄","activity",["surfing_man","surfer"]),new Hi("🏊♀","activity",["swimming_woman"]),new Hi("🏊","activity",["swimming_man","swimmer"]),new Hi("🤽♀","activity",["woman_playing_water_polo"]),new Hi("🤽♂","activity",["man_playing_water_polo"]),new Hi("🚣♀","activity",["rowing_woman"]),new Hi("🚣","activity",["rowing_man","rowboat"]),new Hi("🏇","activity",["horse_racing"]),new Hi("🚴♀","activity",["biking_woman"]),new Hi("🚴","activity",["biking_man","bicyclist"]),new Hi("🚵♀","activity",["mountain_biking_woman"]),new Hi("🚵","activity",["mountain_biking_man","mountain_bicyclist"]),new Hi("🎽","activity",["running_shirt_with_sash"]),new Hi("🏅","activity",["medal_sports"]),new Hi("🎖","activity",["medal_military"]),new Hi("🥇","activity",["1st_place_medal"]),new Hi("🥈","activity",["2nd_place_medal"]),new Hi("🥉","activity",["3rd_place_medal"]),new Hi("🏆","activity",["trophy"]),new Hi("🏵","activity",["rosette"]),new Hi("🎗","activity",["reminder_ribbon"]),new Hi("🎫","activity",["ticket"]),new Hi("🎟","activity",["tickets"]),new Hi("🎪","activity",["circus_tent"]),new Hi("🤹♀","activity",["woman_juggling"]),new Hi("🤹♂","activity",["man_juggling"]),new Hi("🎭","activity",["performing_arts"]),new Hi("🎨","activity",["art"]),new Hi("🎬","activity",["clapper"]),new Hi("🎤","activity",["microphone"]),new Hi("🎧","activity",["headphones"]),new Hi("🎼","activity",["musical_score"]),new Hi("🎹","activity",["musical_keyboard"]),new Hi("🥁","activity",["drum"]),new Hi("🎷","activity",["saxophone"]),new Hi("🎺","activity",["trumpet"]),new Hi("🎸","activity",["guitar"]),new Hi("🎻","activity",["violin"]),new Hi("🎲","activity",["game_die"]),new Hi("🎯","activity",["dart"]),new Hi("🎳","activity",["bowling"]),new Hi("🎮","activity",["video_game"]),new Hi("🎰","activity",["slot_machine"]),new Hi("🚗","places",["car","red_car"]),new Hi("🚕","places",["taxi"]),new Hi("🚙","places",["blue_car"]),new Hi("🚌","places",["bus"]),new Hi("🚎","places",["trolleybus"]),new Hi("🏎","places",["racing_car"]),new Hi("🚓","places",["police_car"]),new Hi("🚑","places",["ambulance"]),new Hi("🚒","places",["fire_engine"]),new Hi("🚐","places",["minibus"]),new Hi("🚚","places",["truck"]),new Hi("🚛","places",["articulated_lorry"]),new Hi("🚜","places",["tractor"]),new Hi("🛴","places",["kick_scooter"]),new Hi("🚲","places",["bike"]),new Hi("🛵","places",["motor_scooter"]),new Hi("🏍","places",["motorcycle"]),new Hi("🚨","places",["rotating_light"]),new Hi("🚔","places",["oncoming_police_car"]),new Hi("🚍","places",["oncoming_bus"]),new Hi("🚘","places",["oncoming_automobile"]),new Hi("🚖","places",["oncoming_taxi"]),new Hi("🚡","places",["aerial_tramway"]),new Hi("🚠","places",["mountain_cableway"]),new Hi("🚟","places",["suspension_railway"]),new Hi("🚃","places",["railway_car"]),new Hi("🚋","places",["train"]),new Hi("🚞","places",["mountain_railway"]),new Hi("🚝","places",["monorail"]),new Hi("🚄","places",["bullettrain_side"]),new Hi("🚅","places",["bullettrain_front"]),new Hi("🚈","places",["light_rail"]),new Hi("🚂","places",["steam_locomotive"]),new Hi("🚆","places",["train2"]),new Hi("🚇","places",["metro"]),new Hi("🚊","places",["tram"]),new Hi("🚉","places",["station"]),new Hi("🚁","places",["helicopter"]),new Hi("🛩","places",["small_airplane"]),new Hi("✈️","places",["airplane"]),new Hi("🛫","places",["flight_departure"]),new Hi("🛬","places",["flight_arrival"]),new Hi("🚀","places",["rocket"]),new Hi("🛰","places",["artificial_satellite"]),new Hi("💺","places",["seat"]),new Hi("🛶","places",["canoe"]),new Hi("⛵️","places",["boat","sailboat"]),new Hi("🛥","places",["motor_boat"]),new Hi("🚤","places",["speedboat"]),new Hi("🛳","places",["passenger_ship"]),new Hi("⛴","places",["ferry"]),new Hi("🚢","places",["ship"]),new Hi("⚓️","places",["anchor"]),new Hi("🚧","places",["construction"]),new Hi("⛽️","places",["fuelpump"]),new Hi("🚏","places",["busstop"]),new Hi("🚦","places",["vertical_traffic_light"]),new Hi("🚥","places",["traffic_light"]),new Hi("🗺","places",["world_map"]),new Hi("🗿","places",["moyai"]),new Hi("🗽","places",["statue_of_liberty"]),new Hi("⛲️","places",["fountain"]),new Hi("🗼","places",["tokyo_tower"]),new Hi("🏰","places",["european_castle"]),new Hi("🏯","places",["japanese_castle"]),new Hi("🏟","places",["stadium"]),new Hi("🎡","places",["ferris_wheel"]),new Hi("🎢","places",["roller_coaster"]),new Hi("🎠","places",["carousel_horse"]),new Hi("⛱","places",["parasol_on_ground"]),new Hi("🏖","places",["beach_umbrella"]),new Hi("🏝","places",["desert_island"]),new Hi("⛰","places",["mountain"]),new Hi("🏔","places",["mountain_snow"]),new Hi("🗻","places",["mount_fuji"]),new Hi("🌋","places",["volcano"]),new Hi("🏜","places",["desert"]),new Hi("🏕","places",["camping"]),new Hi("⛺️","places",["tent"]),new Hi("🛤","places",["railway_track"]),new Hi("🛣","places",["motorway"]),new Hi("🏗","places",["building_construction"]),new Hi("🏭","places",["factory"]),new Hi("🏠","places",["house"]),new Hi("🏡","places",["house_with_garden"]),new Hi("🏘","places",["houses"]),new Hi("🏚","places",["derelict_house"]),new Hi("🏢","places",["office"]),new Hi("🏬","places",["department_store"]),new Hi("🏣","places",["post_office"]),new Hi("🏤","places",["european_post_office"]),new Hi("🏥","places",["hospital"]),new Hi("🏦","places",["bank"]),new Hi("🏨","places",["hotel"]),new Hi("🏪","places",["convenience_store"]),new Hi("🏫","places",["school"]),new Hi("🏩","places",["love_hotel"]),new Hi("💒","places",["wedding"]),new Hi("🏛","places",["classical_building"]),new Hi("⛪️","places",["church"]),new Hi("🕌","places",["mosque"]),new Hi("🕍","places",["synagogue"]),new Hi("🕋","places",["kaaba"]),new Hi("⛩","places",["shinto_shrine"]),new Hi("🗾","places",["japan"]),new Hi("🎑","places",["rice_scene"]),new Hi("🏞","places",["national_park"]),new Hi("🌅","places",["sunrise"]),new Hi("🌄","places",["sunrise_over_mountains"]),new Hi("🌠","places",["stars"]),new Hi("🎇","places",["sparkler"]),new Hi("🎆","places",["fireworks"]),new Hi("🌇","places",["city_sunrise"]),new Hi("🌆","places",["city_sunset"]),new Hi("🏙","places",["cityscape"]),new Hi("🌃","places",["night_with_stars"]),new Hi("🌌","places",["milky_way"]),new Hi("🌉","places",["bridge_at_night"]),new Hi("🌁","places",["foggy"]),new Hi("⌚️","objects",["watch"]),new Hi("📱","objects",["iphone"]),new Hi("📲","objects",["calling"]),new Hi("💻","objects",["computer"]),new Hi("⌨️","objects",["keyboard"]),new Hi("🖥","objects",["desktop_computer"]),new Hi("🖨","objects",["printer"]),new Hi("🖱","objects",["computer_mouse"]),new Hi("🖲","objects",["trackball"]),new Hi("🕹","objects",["joystick"]),new Hi("🗜","objects",["clamp"]),new Hi("💽","objects",["minidisc"]),new Hi("💾","objects",["floppy_disk"]),new Hi("💿","objects",["cd"]),new Hi("📀","objects",["dvd"]),new Hi("📼","objects",["vhs"]),new Hi("📷","objects",["camera"]),new Hi("📸","objects",["camera_flash"]),new Hi("📹","objects",["video_camera"]),new Hi("🎥","objects",["movie_camera"]),new Hi("📽","objects",["film_projector"]),new Hi("🎞","objects",["film_strip"]),new Hi("📞","objects",["telephone_receiver"]),new Hi("☎️","objects",["phone","telephone"]),new Hi("📟","objects",["pager"]),new Hi("📠","objects",["fax"]),new Hi("📺","objects",["tv"]),new Hi("📻","objects",["radio"]),new Hi("🎙","objects",["studio_microphone"]),new Hi("🎚","objects",["level_slider"]),new Hi("🎛","objects",["control_knobs"]),new Hi("⏱","objects",["stopwatch"]),new Hi("⏲","objects",["timer_clock"]),new Hi("⏰","objects",["alarm_clock"]),new Hi("🕰","objects",["mantelpiece_clock"]),new Hi("⌛️","objects",["hourglass"]),new Hi("⏳","objects",["hourglass_flowing_sand"]),new Hi("📡","objects",["satellite"]),new Hi("🔋","objects",["battery"]),new Hi("🔌","objects",["electric_plug"]),new Hi("💡","objects",["bulb"]),new Hi("🔦","objects",["flashlight"]),new Hi("🕯","objects",["candle"]),new Hi("🗑","objects",["wastebasket"]),new Hi("🛢","objects",["oil_drum"]),new Hi("💸","objects",["money_with_wings"]),new Hi("💵","objects",["dollar"]),new Hi("💴","objects",["yen"]),new Hi("💶","objects",["euro"]),new Hi("💷","objects",["pound"]),new Hi("💰","objects",["moneybag"]),new Hi("💳","objects",["credit_card"]),new Hi("💎","objects",["gem"]),new Hi("⚖️","objects",["balance_scale"]),new Hi("🔧","objects",["wrench"]),new Hi("🔨","objects",["hammer"]),new Hi("⚒","objects",["hammer_and_pick"]),new Hi("🛠","objects",["hammer_and_wrench"]),new Hi("⛏","objects",["pick"]),new Hi("🔩","objects",["nut_and_bolt"]),new Hi("⚙️","objects",["gear"]),new Hi("⛓","objects",["chains"]),new Hi("🔫","objects",["gun"]),new Hi("💣","objects",["bomb"]),new Hi("🔪","objects",["hocho","knife"]),new Hi("🗡","objects",["dagger"]),new Hi("⚔️","objects",["crossed_swords"]),new Hi("🛡","objects",["shield"]),new Hi("🚬","objects",["smoking"]),new Hi("⚰️","objects",["coffin"]),new Hi("⚱️","objects",["funeral_urn"]),new Hi("🏺","objects",["amphora"]),new Hi("🔮","objects",["crystal_ball"]),new Hi("📿","objects",["prayer_beads"]),new Hi("💈","objects",["barber"]),new Hi("⚗️","objects",["alembic"]),new Hi("🔭","objects",["telescope"]),new Hi("🔬","objects",["microscope"]),new Hi("🕳","objects",["hole"]),new Hi("💊","objects",["pill"]),new Hi("💉","objects",["syringe"]),new Hi("🌡","objects",["thermometer"]),new Hi("🚽","objects",["toilet"]),new Hi("🚰","objects",["potable_water"]),new Hi("🚿","objects",["shower"]),new Hi("🛁","objects",["bathtub"]),new Hi("🛀","objects",["bath"]),new Hi("🛎","objects",["bellhop_bell"]),new Hi("🔑","objects",["key"]),new Hi("🗝","objects",["old_key"]),new Hi("🚪","objects",["door"]),new Hi("🛋","objects",["couch_and_lamp"]),new Hi("🛏","objects",["bed"]),new Hi("🛌","objects",["sleeping_bed"]),new Hi("🖼","objects",["framed_picture"]),new Hi("🛍","objects",["shopping"]),new Hi("🛒","objects",["shopping_cart"]),new Hi("🎁","objects",["gift"]),new Hi("🎈","objects",["balloon"]),new Hi("🎏","objects",["flags"]),new Hi("🎀","objects",["ribbon"]),new Hi("🎊","objects",["confetti_ball"]),new Hi("🎉","objects",["tada"]),new Hi("🎎","objects",["dolls"]),new Hi("🏮","objects",["izakaya_lantern","lantern"]),new Hi("🎐","objects",["wind_chime"]),new Hi("✉️","objects",["email","envelope"]),new Hi("📩","objects",["envelope_with_arrow"]),new Hi("📨","objects",["incoming_envelope"]),new Hi("📧","objects",["e-mail"]),new Hi("💌","objects",["love_letter"]),new Hi("📥","objects",["inbox_tray"]),new Hi("📤","objects",["outbox_tray"]),new Hi("📦","objects",["package"]),new Hi("🏷","objects",["label"]),new Hi("📪","objects",["mailbox_closed"]),new Hi("📫","objects",["mailbox"]),new Hi("📬","objects",["mailbox_with_mail"]),new Hi("📭","objects",["mailbox_with_no_mail"]),new Hi("📮","objects",["postbox"]),new Hi("📯","objects",["postal_horn"]),new Hi("📜","objects",["scroll"]),new Hi("📃","objects",["page_with_curl"]),new Hi("📄","objects",["page_facing_up"]),new Hi("📑","objects",["bookmark_tabs"]),new Hi("📊","objects",["bar_chart"]),new Hi("📈","objects",["chart_with_upwards_trend"]),new Hi("📉","objects",["chart_with_downwards_trend"]),new Hi("🗒","objects",["spiral_notepad"]),new Hi("🗓","objects",["spiral_calendar"]),new Hi("📆","objects",["calendar"]),new Hi("📅","objects",["date"]),new Hi("📇","objects",["card_index"]),new Hi("🗃","objects",["card_file_box"]),new Hi("🗳","objects",["ballot_box"]),new Hi("🗄","objects",["file_cabinet"]),new Hi("📋","objects",["clipboard"]),new Hi("📁","objects",["file_folder"]),new Hi("📂","objects",["open_file_folder"]),new Hi("🗂","objects",["card_index_dividers"]),new Hi("🗞","objects",["newspaper_roll"]),new Hi("📰","objects",["newspaper"]),new Hi("📓","objects",["notebook"]),new Hi("📔","objects",["notebook_with_decorative_cover"]),new Hi("📒","objects",["ledger"]),new Hi("📕","objects",["closed_book"]),new Hi("📗","objects",["green_book"]),new Hi("📘","objects",["blue_book"]),new Hi("📙","objects",["orange_book"]),new Hi("📚","objects",["books"]),new Hi("📖","objects",["book","open_book"]),new Hi("🔖","objects",["bookmark"]),new Hi("🔗","objects",["link"]),new Hi("📎","objects",["paperclip"]),new Hi("🖇","objects",["paperclips"]),new Hi("📐","objects",["triangular_ruler"]),new Hi("📏","objects",["straight_ruler"]),new Hi("📌","objects",["pushpin"]),new Hi("📍","objects",["round_pushpin"]),new Hi("✂️","objects",["scissors"]),new Hi("🖊","objects",["pen"]),new Hi("🖋","objects",["fountain_pen"]),new Hi("✒️","objects",["black_nib"]),new Hi("🖌","objects",["paintbrush"]),new Hi("🖍","objects",["crayon"]),new Hi("📝","objects",["memo","pencil"]),new Hi("✏️","objects",["pencil2"]),new Hi("🔍","objects",["mag"]),new Hi("🔎","objects",["mag_right"]),new Hi("🔏","objects",["lock_with_ink_pen"]),new Hi("🔐","objects",["closed_lock_with_key"]),new Hi("🔒","objects",["lock"]),new Hi("🔓","objects",["unlock"]),new Hi("❤️","symbols",["heart"]),new Hi("💛","symbols",["yellow_heart"]),new Hi("💚","symbols",["green_heart"]),new Hi("💙","symbols",["blue_heart"]),new Hi("💜","symbols",["purple_heart"]),new Hi("🖤","symbols",["black_heart"]),new Hi("💔","symbols",["broken_heart"]),new Hi("❣️","symbols",["heavy_heart_exclamation"]),new Hi("💕","symbols",["two_hearts"]),new Hi("💞","symbols",["revolving_hearts"]),new Hi("💓","symbols",["heartbeat"]),new Hi("💗","symbols",["heartpulse"]),new Hi("💖","symbols",["sparkling_heart"]),new Hi("💘","symbols",["cupid"]),new Hi("💝","symbols",["gift_heart"]),new Hi("💟","symbols",["heart_decoration"]),new Hi("☮️","symbols",["peace_symbol"]),new Hi("✝️","symbols",["latin_cross"]),new Hi("☪️","symbols",["star_and_crescent"]),new Hi("🕉","symbols",["om"]),new Hi("☸️","symbols",["wheel_of_dharma"]),new Hi("✡️","symbols",["star_of_david"]),new Hi("🔯","symbols",["six_pointed_star"]),new Hi("🕎","symbols",["menorah"]),new Hi("☯️","symbols",["yin_yang"]),new Hi("☦️","symbols",["orthodox_cross"]),new Hi("🛐","symbols",["place_of_worship"]),new Hi("⛎","symbols",["ophiuchus"]),new Hi("♈️","symbols",["aries"]),new Hi("♉️","symbols",["taurus"]),new Hi("♊️","symbols",["gemini"]),new Hi("♋️","symbols",["cancer"]),new Hi("♌️","symbols",["leo"]),new Hi("♍️","symbols",["virgo"]),new Hi("♎️","symbols",["libra"]),new Hi("♏️","symbols",["scorpius"]),new Hi("♐️","symbols",["sagittarius"]),new Hi("♑️","symbols",["capricorn"]),new Hi("♒️","symbols",["aquarius"]),new Hi("♓️","symbols",["pisces"]),new Hi("🆔","symbols",["id"]),new Hi("⚛️","symbols",["atom_symbol"]),new Hi("🉑","symbols",["accept"]),new Hi("☢️","symbols",["radioactive"]),new Hi("☣️","symbols",["biohazard"]),new Hi("📴","symbols",["mobile_phone_off"]),new Hi("📳","symbols",["vibration_mode"]),new Hi("🈶","symbols",["u6709"]),new Hi("🈚️","symbols",["u7121"]),new Hi("🈸","symbols",["u7533"]),new Hi("🈺","symbols",["u55b6"]),new Hi("🈷️","symbols",["u6708"]),new Hi("✴️","symbols",["eight_pointed_black_star"]),new Hi("🆚","symbols",["vs"]),new Hi("💮","symbols",["white_flower"]),new Hi("🉐","symbols",["ideograph_advantage"]),new Hi("㊙️","symbols",["secret"]),new Hi("㊗️","symbols",["congratulations"]),new Hi("🈴","symbols",["u5408"]),new Hi("🈵","symbols",["u6e80"]),new Hi("🈹","symbols",["u5272"]),new Hi("🈲","symbols",["u7981"]),new Hi("🅰️","symbols",["a"]),new Hi("🅱️","symbols",["b"]),new Hi("🆎","symbols",["ab"]),new Hi("🆑","symbols",["cl"]),new Hi("🅾️","symbols",["o2"]),new Hi("🆘","symbols",["sos"]),new Hi("❌","symbols",["x"]),new Hi("⭕️","symbols",["o"]),new Hi("🛑","symbols",["stop_sign"]),new Hi("⛔️","symbols",["no_entry"]),new Hi("📛","symbols",["name_badge"]),new Hi("🚫","symbols",["no_entry_sign"]),new Hi("💯","symbols",["100"]),new Hi("💢","symbols",["anger"]),new Hi("♨️","symbols",["hotsprings"]),new Hi("🚷","symbols",["no_pedestrians"]),new Hi("🚯","symbols",["do_not_litter"]),new Hi("🚳","symbols",["no_bicycles"]),new Hi("🚱","symbols",["non-potable_water"]),new Hi("🔞","symbols",["underage"]),new Hi("📵","symbols",["no_mobile_phones"]),new Hi("🚭","symbols",["no_smoking"]),new Hi("❗️","symbols",["exclamation","heavy_exclamation_mark"]),new Hi("❕","symbols",["grey_exclamation"]),new Hi("❓","symbols",["question"]),new Hi("❔","symbols",["grey_question"]),new Hi("‼️","symbols",["bangbang"]),new Hi("⁉️","symbols",["interrobang"]),new Hi("🔅","symbols",["low_brightness"]),new Hi("🔆","symbols",["high_brightness"]),new Hi("〽️","symbols",["part_alternation_mark"]),new Hi("⚠️","symbols",["warning"]),new Hi("🚸","symbols",["children_crossing"]),new Hi("🔱","symbols",["trident"]),new Hi("⚜️","symbols",["fleur_de_lis"]),new Hi("🔰","symbols",["beginner"]),new Hi("♻️","symbols",["recycle"]),new Hi("✅","symbols",["white_check_mark"]),new Hi("🈯️","symbols",["u6307"]),new Hi("💹","symbols",["chart"]),new Hi("❇️","symbols",["sparkle"]),new Hi("✳️","symbols",["eight_spoked_asterisk"]),new Hi("❎","symbols",["negative_squared_cross_mark"]),new Hi("🌐","symbols",["globe_with_meridians"]),new Hi("💠","symbols",["diamond_shape_with_a_dot_inside"]),new Hi("Ⓜ️","symbols",["m"]),new Hi("🌀","symbols",["cyclone"]),new Hi("💤","symbols",["zzz"]),new Hi("🏧","symbols",["atm"]),new Hi("🚾","symbols",["wc"]),new Hi("♿️","symbols",["wheelchair"]),new Hi("🅿️","symbols",["parking"]),new Hi("🈳","symbols",["u7a7a"]),new Hi("🈂️","symbols",["sa"]),new Hi("🛂","symbols",["passport_control"]),new Hi("🛃","symbols",["customs"]),new Hi("🛄","symbols",["baggage_claim"]),new Hi("🛅","symbols",["left_luggage"]),new Hi("🚹","symbols",["mens"]),new Hi("🚺","symbols",["womens"]),new Hi("🚼","symbols",["baby_symbol"]),new Hi("🚻","symbols",["restroom"]),new Hi("🚮","symbols",["put_litter_in_its_place"]),new Hi("🎦","symbols",["cinema"]),new Hi("📶","symbols",["signal_strength"]),new Hi("🈁","symbols",["koko"]),new Hi("🔣","symbols",["symbols"]),new Hi("ℹ️","symbols",["information_source"]),new Hi("🔤","symbols",["abc"]),new Hi("🔡","symbols",["abcd"]),new Hi("🔠","symbols",["capital_abcd"]),new Hi("🆖","symbols",["ng"]),new Hi("🆗","symbols",["ok"]),new Hi("🆙","symbols",["up"]),new Hi("🆒","symbols",["cool"]),new Hi("🆕","symbols",["new"]),new Hi("🆓","symbols",["free"]),new Hi("0️⃣","symbols",["zero"]),new Hi("1️⃣","symbols",["one"]),new Hi("2️⃣","symbols",["two"]),new Hi("3️⃣","symbols",["three"]),new Hi("4️⃣","symbols",["four"]),new Hi("5️⃣","symbols",["five"]),new Hi("6️⃣","symbols",["six"]),new Hi("7️⃣","symbols",["seven"]),new Hi("8️⃣","symbols",["eight"]),new Hi("9️⃣","symbols",["nine"]),new Hi("🔟","symbols",["keycap_ten"]),new Hi("🔢","symbols",["1234"]),new Hi("#️⃣","symbols",["hash"]),new Hi("*️⃣","symbols",["asterisk"]),new Hi("▶️","symbols",["arrow_forward"]),new Hi("⏸","symbols",["pause_button"]),new Hi("⏯","symbols",["play_or_pause_button"]),new Hi("⏹","symbols",["stop_button"]),new Hi("⏺","symbols",["record_button"]),new Hi("⏭","symbols",["next_track_button"]),new Hi("⏮","symbols",["previous_track_button"]),new Hi("⏩","symbols",["fast_forward"]),new Hi("⏪","symbols",["rewind"]),new Hi("⏫","symbols",["arrow_double_up"]),new Hi("⏬","symbols",["arrow_double_down"]),new Hi("◀️","symbols",["arrow_backward"]),new Hi("🔼","symbols",["arrow_up_small"]),new Hi("🔽","symbols",["arrow_down_small"]),new Hi("➡️","symbols",["arrow_right"]),new Hi("⬅️","symbols",["arrow_left"]),new Hi("⬆️","symbols",["arrow_up"]),new Hi("⬇️","symbols",["arrow_down"]),new Hi("↗️","symbols",["arrow_upper_right"]),new Hi("↘️","symbols",["arrow_lower_right"]),new Hi("↙️","symbols",["arrow_lower_left"]),new Hi("↖️","symbols",["arrow_upper_left"]),new Hi("↕️","symbols",["arrow_up_down"]),new Hi("↔️","symbols",["left_right_arrow"]),new Hi("↪️","symbols",["arrow_right_hook"]),new Hi("↩️","symbols",["leftwards_arrow_with_hook"]),new Hi("⤴️","symbols",["arrow_heading_up"]),new Hi("⤵️","symbols",["arrow_heading_down"]),new Hi("🔀","symbols",["twisted_rightwards_arrows"]),new Hi("🔁","symbols",["repeat"]),new Hi("🔂","symbols",["repeat_one"]),new Hi("🔄","symbols",["arrows_counterclockwise"]),new Hi("🔃","symbols",["arrows_clockwise"]),new Hi("🎵","symbols",["musical_note"]),new Hi("🎶","symbols",["notes"]),new Hi("➕","symbols",["heavy_plus_sign"]),new Hi("➖","symbols",["heavy_minus_sign"]),new Hi("➗","symbols",["heavy_division_sign"]),new Hi("✖️","symbols",["heavy_multiplication_x"]),new Hi("💲","symbols",["heavy_dollar_sign"]),new Hi("💱","symbols",["currency_exchange"]),new Hi("™️","symbols",["tm"]),new Hi("©️","symbols",["copyright"]),new Hi("®️","symbols",["registered"]),new Hi("〰️","symbols",["wavy_dash"]),new Hi("➰","symbols",["curly_loop"]),new Hi("➿","symbols",["loop"]),new Hi("🔚","symbols",["end"]),new Hi("🔙","symbols",["back"]),new Hi("🔛","symbols",["on"]),new Hi("🔝","symbols",["top"]),new Hi("🔜","symbols",["soon"]),new Hi("✔️","symbols",["heavy_check_mark"]),new Hi("☑️","symbols",["ballot_box_with_check"]),new Hi("🔘","symbols",["radio_button"]),new Hi("⚪️","symbols",["white_circle"]),new Hi("⚫️","symbols",["black_circle"]),new Hi("🔴","symbols",["red_circle"]),new Hi("🔵","symbols",["large_blue_circle"]),new Hi("🔺","symbols",["small_red_triangle"]),new Hi("🔻","symbols",["small_red_triangle_down"]),new Hi("🔸","symbols",["small_orange_diamond"]),new Hi("🔹","symbols",["small_blue_diamond"]),new Hi("🔶","symbols",["large_orange_diamond"]),new Hi("🔷","symbols",["large_blue_diamond"]),new Hi("🔳","symbols",["white_square_button"]),new Hi("🔲","symbols",["black_square_button"]),new Hi("▪️","symbols",["black_small_square"]),new Hi("▫️","symbols",["white_small_square"]),new Hi("◾️","symbols",["black_medium_small_square"]),new Hi("◽️","symbols",["white_medium_small_square"]),new Hi("◼️","symbols",["black_medium_square"]),new Hi("◻️","symbols",["white_medium_square"]),new Hi("⬛️","symbols",["black_large_square"]),new Hi("⬜️","symbols",["white_large_square"]),new Hi("🔈","symbols",["speaker"]),new Hi("🔇","symbols",["mute"]),new Hi("🔉","symbols",["sound"]),new Hi("🔊","symbols",["loud_sound"]),new Hi("🔔","symbols",["bell"]),new Hi("🔕","symbols",["no_bell"]),new Hi("📣","symbols",["mega"]),new Hi("📢","symbols",["loudspeaker"]),new Hi("👁🗨","symbols",["eye_speech_bubble"]),new Hi("💬","symbols",["speech_balloon"]),new Hi("💭","symbols",["thought_balloon"]),new Hi("🗯","symbols",["right_anger_bubble"]),new Hi("♠️","symbols",["spades"]),new Hi("♣️","symbols",["clubs"]),new Hi("♥️","symbols",["hearts"]),new Hi("♦️","symbols",["diamonds"]),new Hi("🃏","symbols",["black_joker"]),new Hi("🎴","symbols",["flower_playing_cards"]),new Hi("🀄️","symbols",["mahjong"]),new Hi("🕐","symbols",["clock1"]),new Hi("🕑","symbols",["clock2"]),new Hi("🕒","symbols",["clock3"]),new Hi("🕓","symbols",["clock4"]),new Hi("🕔","symbols",["clock5"]),new Hi("🕕","symbols",["clock6"]),new Hi("🕖","symbols",["clock7"]),new Hi("🕗","symbols",["clock8"]),new Hi("🕘","symbols",["clock9"]),new Hi("🕙","symbols",["clock10"]),new Hi("🕚","symbols",["clock11"]),new Hi("🕛","symbols",["clock12"]),new Hi("🕜","symbols",["clock130"]),new Hi("🕝","symbols",["clock230"]),new Hi("🕞","symbols",["clock330"]),new Hi("🕟","symbols",["clock430"]),new Hi("🕠","symbols",["clock530"]),new Hi("🕡","symbols",["clock630"]),new Hi("🕢","symbols",["clock730"]),new Hi("🕣","symbols",["clock830"]),new Hi("🕤","symbols",["clock930"]),new Hi("🕥","symbols",["clock1030"]),new Hi("🕦","symbols",["clock1130"]),new Hi("🕧","symbols",["clock1230"]),new Hi("🏳️","flags",["white_flag"]),new Hi("🏴","flags",["black_flag"]),new Hi("🏁","flags",["checkered_flag"]),new Hi("🚩","flags",["triangular_flag_on_post"]),new Hi("🏳️🌈","flags",["rainbow_flag"]),new Hi("🇦🇫","flags",["afghanistan"]),new Hi("🇦🇽","flags",["aland_islands"]),new Hi("🇦🇱","flags",["albania"]),new Hi("🇩🇿","flags",["algeria"]),new Hi("🇦🇸","flags",["american_samoa"]),new Hi("🇦🇩","flags",["andorra"]),new Hi("🇦🇴","flags",["angola"]),new Hi("🇦🇮","flags",["anguilla"]),new Hi("🇦🇶","flags",["antarctica"]),new Hi("🇦🇬","flags",["antigua_barbuda"]),new Hi("🇦🇷","flags",["argentina"]),new Hi("🇦🇲","flags",["armenia"]),new Hi("🇦🇼","flags",["aruba"]),new Hi("🇦🇺","flags",["australia"]),new Hi("🇦🇹","flags",["austria"]),new Hi("🇦🇿","flags",["azerbaijan"]),new Hi("🇧🇸","flags",["bahamas"]),new Hi("🇧🇭","flags",["bahrain"]),new Hi("🇧🇩","flags",["bangladesh"]),new Hi("🇧🇧","flags",["barbados"]),new Hi("🇧🇾","flags",["belarus"]),new Hi("🇧🇪","flags",["belgium"]),new Hi("🇧🇿","flags",["belize"]),new Hi("🇧🇯","flags",["benin"]),new Hi("🇧🇲","flags",["bermuda"]),new Hi("🇧🇹","flags",["bhutan"]),new Hi("🇧🇴","flags",["bolivia"]),new Hi("🇧🇶","flags",["caribbean_netherlands"]),new Hi("🇧🇦","flags",["bosnia_herzegovina"]),new Hi("🇧🇼","flags",["botswana"]),new Hi("🇧🇷","flags",["brazil"]),new Hi("🇮🇴","flags",["british_indian_ocean_territory"]),new Hi("🇻🇬","flags",["british_virgin_islands"]),new Hi("🇧🇳","flags",["brunei"]),new Hi("🇧🇬","flags",["bulgaria"]),new Hi("🇧🇫","flags",["burkina_faso"]),new Hi("🇧🇮","flags",["burundi"]),new Hi("🇨🇻","flags",["cape_verde"]),new Hi("🇰🇭","flags",["cambodia"]),new Hi("🇨🇲","flags",["cameroon"]),new Hi("🇨🇦","flags",["canada"]),new Hi("🇮🇨","flags",["canary_islands"]),new Hi("🇰🇾","flags",["cayman_islands"]),new Hi("🇨🇫","flags",["central_african_republic"]),new Hi("🇹🇩","flags",["chad"]),new Hi("🇨🇱","flags",["chile"]),new Hi("🇨🇳","flags",["cn"]),new Hi("🇨🇽","flags",["christmas_island"]),new Hi("🇨🇨","flags",["cocos_islands"]),new Hi("🇨🇴","flags",["colombia"]),new Hi("🇰🇲","flags",["comoros"]),new Hi("🇨🇬","flags",["congo_brazzaville"]),new Hi("🇨🇩","flags",["congo_kinshasa"]),new Hi("🇨🇰","flags",["cook_islands"]),new Hi("🇨🇷","flags",["costa_rica"]),new Hi("🇨🇮","flags",["cote_divoire"]),new Hi("🇭🇷","flags",["croatia"]),new Hi("🇨🇺","flags",["cuba"]),new Hi("🇨🇼","flags",["curacao"]),new Hi("🇨🇾","flags",["cyprus"]),new Hi("🇨🇿","flags",["czech_republic"]),new Hi("🇩🇰","flags",["denmark"]),new Hi("🇩🇯","flags",["djibouti"]),new Hi("🇩🇲","flags",["dominica"]),new Hi("🇩🇴","flags",["dominican_republic"]),new Hi("🇪🇨","flags",["ecuador"]),new Hi("🇪🇬","flags",["egypt"]),new Hi("🇸🇻","flags",["el_salvador"]),new Hi("🇬🇶","flags",["equatorial_guinea"]),new Hi("🇪🇷","flags",["eritrea"]),new Hi("🇪🇪","flags",["estonia"]),new Hi("🇪🇹","flags",["ethiopia"]),new Hi("🇪🇺","flags",["eu","european_union"]),new Hi("🇫🇰","flags",["falkland_islands"]),new Hi("🇫🇴","flags",["faroe_islands"]),new Hi("🇫🇯","flags",["fiji"]),new Hi("🇫🇮","flags",["finland"]),new Hi("🇫🇷","flags",["fr"]),new Hi("🇬🇫","flags",["french_guiana"]),new Hi("🇵🇫","flags",["french_polynesia"]),new Hi("🇹🇫","flags",["french_southern_territories"]),new Hi("🇬🇦","flags",["gabon"]),new Hi("🇬🇲","flags",["gambia"]),new Hi("🇬🇪","flags",["georgia"]),new Hi("🇩🇪","flags",["de"]),new Hi("🇬🇭","flags",["ghana"]),new Hi("🇬🇮","flags",["gibraltar"]),new Hi("🇬🇷","flags",["greece"]),new Hi("🇬🇱","flags",["greenland"]),new Hi("🇬🇩","flags",["grenada"]),new Hi("🇬🇵","flags",["guadeloupe"]),new Hi("🇬🇺","flags",["guam"]),new Hi("🇬🇹","flags",["guatemala"]),new Hi("🇬🇬","flags",["guernsey"]),new Hi("🇬🇳","flags",["guinea"]),new Hi("🇬🇼","flags",["guinea_bissau"]),new Hi("🇬🇾","flags",["guyana"]),new Hi("🇭🇹","flags",["haiti"]),new Hi("🇭🇳","flags",["honduras"]),new Hi("🇭🇰","flags",["hong_kong"]),new Hi("🇭🇺","flags",["hungary"]),new Hi("🇮🇸","flags",["iceland"]),new Hi("🇮🇳","flags",["india"]),new Hi("🇮🇩","flags",["indonesia"]),new Hi("🇮🇷","flags",["iran"]),new Hi("🇮🇶","flags",["iraq"]),new Hi("🇮🇪","flags",["ireland"]),new Hi("🇮🇲","flags",["isle_of_man"]),new Hi("🇮🇱","flags",["israel"]),new Hi("🇮🇹","flags",["it"]),new Hi("🇯🇲","flags",["jamaica"]),new Hi("🇯🇵","flags",["jp"]),new Hi("🎌","flags",["crossed_flags"]),new Hi("🇯🇪","flags",["jersey"]),new Hi("🇯🇴","flags",["jordan"]),new Hi("🇰🇿","flags",["kazakhstan"]),new Hi("🇰🇪","flags",["kenya"]),new Hi("🇰🇮","flags",["kiribati"]),new Hi("🇽🇰","flags",["kosovo"]),new Hi("🇰🇼","flags",["kuwait"]),new Hi("🇰🇬","flags",["kyrgyzstan"]),new Hi("🇱🇦","flags",["laos"]),new Hi("🇱🇻","flags",["latvia"]),new Hi("🇱🇧","flags",["lebanon"]),new Hi("🇱🇸","flags",["lesotho"]),new Hi("🇱🇷","flags",["liberia"]),new Hi("🇱🇾","flags",["libya"]),new Hi("🇱🇮","flags",["liechtenstein"]),new Hi("🇱🇹","flags",["lithuania"]),new Hi("🇱🇺","flags",["luxembourg"]),new Hi("🇲🇴","flags",["macau"]),new Hi("🇲🇰","flags",["macedonia"]),new Hi("🇲🇬","flags",["madagascar"]),new Hi("🇲🇼","flags",["malawi"]),new Hi("🇲🇾","flags",["malaysia"]),new Hi("🇲🇻","flags",["maldives"]),new Hi("🇲🇱","flags",["mali"]),new Hi("🇲🇹","flags",["malta"]),new Hi("🇲🇭","flags",["marshall_islands"]),new Hi("🇲🇶","flags",["martinique"]),new Hi("🇲🇷","flags",["mauritania"]),new Hi("🇲🇺","flags",["mauritius"]),new Hi("🇾🇹","flags",["mayotte"]),new Hi("🇲🇽","flags",["mexico"]),new Hi("🇫🇲","flags",["micronesia"]),new Hi("🇲🇩","flags",["moldova"]),new Hi("🇲🇨","flags",["monaco"]),new Hi("🇲🇳","flags",["mongolia"]),new Hi("🇲🇪","flags",["montenegro"]),new Hi("🇲🇸","flags",["montserrat"]),new Hi("🇲🇦","flags",["morocco"]),new Hi("🇲🇿","flags",["mozambique"]),new Hi("🇲🇲","flags",["myanmar"]),new Hi("🇳🇦","flags",["namibia"]),new Hi("🇳🇷","flags",["nauru"]),new Hi("🇳🇵","flags",["nepal"]),new Hi("🇳🇱","flags",["netherlands"]),new Hi("🇳🇨","flags",["new_caledonia"]),new Hi("🇳🇿","flags",["new_zealand"]),new Hi("🇳🇮","flags",["nicaragua"]),new Hi("🇳🇪","flags",["niger"]),new Hi("🇳🇬","flags",["nigeria"]),new Hi("🇳🇺","flags",["niue"]),new Hi("🇳🇫","flags",["norfolk_island"]),new Hi("🇲🇵","flags",["northern_mariana_islands"]),new Hi("🇰🇵","flags",["north_korea"]),new Hi("🇳🇴","flags",["norway"]),new Hi("🇴🇲","flags",["oman"]),new Hi("🇵🇰","flags",["pakistan"]),new Hi("🇵🇼","flags",["palau"]),new Hi("🇵🇸","flags",["palestinian_territories"]),new Hi("🇵🇦","flags",["panama"]),new Hi("🇵🇬","flags",["papua_new_guinea"]),new Hi("🇵🇾","flags",["paraguay"]),new Hi("🇵🇪","flags",["peru"]),new Hi("🇵🇭","flags",["philippines"]),new Hi("🇵🇳","flags",["pitcairn_islands"]),new Hi("🇵🇱","flags",["poland"]),new Hi("🇵🇹","flags",["portugal"]),new Hi("🇵🇷","flags",["puerto_rico"]),new Hi("🇶🇦","flags",["qatar"]),new Hi("🇷🇪","flags",["reunion"]),new Hi("🇷🇴","flags",["romania"]),new Hi("🇷🇺","flags",["ru"]),new Hi("🇷🇼","flags",["rwanda"]),new Hi("🇧🇱","flags",["st_barthelemy"]),new Hi("🇸🇭","flags",["st_helena"]),new Hi("🇰🇳","flags",["st_kitts_nevis"]),new Hi("🇱🇨","flags",["st_lucia"]),new Hi("🇵🇲","flags",["st_pierre_miquelon"]),new Hi("🇻🇨","flags",["st_vincent_grenadines"]),new Hi("🇼🇸","flags",["samoa"]),new Hi("🇸🇲","flags",["san_marino"]),new Hi("🇸🇹","flags",["sao_tome_principe"]),new Hi("🇸🇦","flags",["saudi_arabia"]),new Hi("🇸🇳","flags",["senegal"]),new Hi("🇷🇸","flags",["serbia"]),new Hi("🇸🇨","flags",["seychelles"]),new Hi("🇸🇱","flags",["sierra_leone"]),new Hi("🇸🇬","flags",["singapore"]),new Hi("🇸🇽","flags",["sint_maarten"]),new Hi("🇸🇰","flags",["slovakia"]),new Hi("🇸🇮","flags",["slovenia"]),new Hi("🇸🇧","flags",["solomon_islands"]),new Hi("🇸🇴","flags",["somalia"]),new Hi("🇿🇦","flags",["south_africa"]),new Hi("🇬🇸","flags",["south_georgia_south_sandwich_islands"]),new Hi("🇰🇷","flags",["kr"]),new Hi("🇸🇸","flags",["south_sudan"]),new Hi("🇪🇸","flags",["es"]),new Hi("🇱🇰","flags",["sri_lanka"]),new Hi("🇸🇩","flags",["sudan"]),new Hi("🇸🇷","flags",["suriname"]),new Hi("🇸🇿","flags",["swaziland"]),new Hi("🇸🇪","flags",["sweden"]),new Hi("🇨🇭","flags",["switzerland"]),new Hi("🇸🇾","flags",["syria"]),new Hi("🇹🇼","flags",["taiwan"]),new Hi("🇹🇯","flags",["tajikistan"]),new Hi("🇹🇿","flags",["tanzania"]),new Hi("🇹🇭","flags",["thailand"]),new Hi("🇹🇱","flags",["timor_leste"]),new Hi("🇹🇬","flags",["togo"]),new Hi("🇹🇰","flags",["tokelau"]),new Hi("🇹🇴","flags",["tonga"]),new Hi("🇹🇹","flags",["trinidad_tobago"]),new Hi("🇹🇳","flags",["tunisia"]),new Hi("🇹🇷","flags",["tr"]),new Hi("🇹🇲","flags",["turkmenistan"]),new Hi("🇹🇨","flags",["turks_caicos_islands"]),new Hi("🇹🇻","flags",["tuvalu"]),new Hi("🇺🇬","flags",["uganda"]),new Hi("🇺🇦","flags",["ukraine"]),new Hi("🇦🇪","flags",["united_arab_emirates"]),new Hi("🇬🇧","flags",["gb","uk"]),new Hi("🇺🇸","flags",["us"]),new Hi("🇻🇮","flags",["us_virgin_islands"]),new Hi("🇺🇾","flags",["uruguay"]),new Hi("🇺🇿","flags",["uzbekistan"]),new Hi("🇻🇺","flags",["vanuatu"]),new Hi("🇻🇦","flags",["vatican_city"]),new Hi("🇻🇪","flags",["venezuela"]),new Hi("🇻🇳","flags",["vietnam"]),new Hi("🇼🇫","flags",["wallis_futuna"]),new Hi("🇪🇭","flags",["western_sahara"]),new Hi("🇾🇪","flags",["yemen"]),new Hi("🇿🇲","flags",["zambia"]),new Hi("🇿🇼","flags",["zimbabwe"])],Ki='\n <svg width="1em" height="1em"\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 303.6 303.6">\n <path d="M291.503 11.6c-10.4-10.4-37.2-11.6-48.4-11.6-50.4 0-122.4 18.4-173.6 69.6-77.2 76.8-78.4 201.6-58.4 222 10.8 10.4 35.6 12 49.2 12 49.6 0 121.2-18.4 173.2-70 76.4-76.4 80.4-199.6 58-222zm-231.2 277.2c-24.4 0-36-4.8-38.8-7.6-5.2-5.2-8.4-24.4-6.8-49.6l57.2 56.8c-4 .4-8 .4-11.6.4zm162.8-66c-38.8 38.8-90.4 57.2-132.4 63.6l-74-73.6c6-42 24-94 63.2-133.2 38-38 88-56.4 130.8-62.8l75.6 75.6c-6 40.8-24.4 91.6-63.2 130.4zm65.2-148.8l-58.8-59.2c4.8-.4 9.2-.4 13.6-.4 24.4 0 35.6 4.8 38 7.2 5.6 5.6 9.2 25.6 7.2 52.4z"/>\n <path d="M215.103 139.6l-20.8-20.8 13.2-13.2c2.8-2.8 2.8-7.6 0-10.4s-7.6-2.8-10.4 0l-13.2 13.6-20.8-20.8c-2.8-2.8-7.6-2.8-10.4 0-2.8 2.8-2.8 7.6 0 10.4l20.8 20.8-22 22-20.8-20.8c-2.8-2.8-7.6-2.8-10.4 0s-2.8 7.6 0 10.4l20.8 20.8-22 22-20.8-20.8c-2.8-2.8-7.6-2.8-10.4 0s-2.8 7.6 0 10.4l20.8 20.8-13.2 13.2c-2.8 2.8-2.8 7.6 0 10.4 1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2l13.2-13.2 20.8 20.8c1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2c2.8-2.8 2.8-7.6 0-10.4l-20.8-21.2 22-22 20.8 20.8c1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2c2.8-2.8 2.8-7.6 0-10.4l-20.8-20.8 22-22 20.8 20.8c1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2c2.8-2.8 2.8-7.6 0-10.4zM169.103 47.6c-1.2-4-5.2-6-9.2-4.8-3.2 1.2-80.8 25.6-110.4 98-1.6 4 0 8.4 4 9.6.8.4 2 .4 2.8.4 2.8 0 5.6-1.6 6.8-4.4 27.2-66 100.4-89.6 101.2-89.6 4-1.2 6-5.2 4.8-9.2z"/>\n </svg>\n ',Yi='\n <svg width="1em" height="1em"\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\n <path d="M472.928 34.72c-4.384-2.944-9.984-3.52-14.912-1.568-1.088.448-106.528 42.176-195.168.384C186.752-2.4 102.944 14.4 64 25.76V16c0-8.832-7.168-16-16-16S32 7.168 32 16v480c0 8.832 7.168 16 16 16s16-7.168 16-16V315.296c28.352-9.248 112.384-31.232 185.184 3.168 34.592 16.352 70.784 21.792 103.648 21.792 63.2 0 114.016-20.128 117.184-21.408 6.016-2.464 9.984-8.32 9.984-14.848V48c0-5.312-2.656-10.272-7.072-13.28zM448 292.672c-28.512 9.248-112.512 31.136-185.184-3.168C186.752 253.6 102.944 270.4 64 281.76V59.328c28.352-9.248 112.384-31.232 185.184 3.168 76 35.872 159.872 19.104 198.816 7.712v222.464z"/>\n </svg>\n ',Xi='\n <svg width="1em" height="1em"\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511.999 511.999">\n <path d="M413.949 155.583a10.153 10.153 0 0 0-3.24-2.16c-.61-.25-1.24-.44-1.87-.57-3.25-.66-6.701.41-9.03 2.73a10.093 10.093 0 0 0-2.93 7.07 10.098 10.098 0 0 0 1.69 5.56c.36.54.779 1.05 1.24 1.52 1.86 1.86 4.44 2.93 7.07 2.93.65 0 1.31-.07 1.96-.2.63-.13 1.26-.32 1.87-.57a10.146 10.146 0 0 0 3.24-2.16c.47-.47.88-.98 1.25-1.52a10.098 10.098 0 0 0 1.49-3.6 10.038 10.038 0 0 0-2.74-9.03zM115.289 385.873c-.12-.64-.32-1.27-.57-1.87-.25-.6-.55-1.18-.91-1.73-.37-.54-.79-1.06-1.25-1.52a9.57 9.57 0 0 0-1.52-1.24c-.54-.36-1.12-.67-1.72-.92-.61-.25-1.24-.44-1.88-.57a9.847 9.847 0 0 0-3.9 0c-.64.13-1.27.32-1.87.57-.61.25-1.19.56-1.73.92-.55.36-1.06.78-1.52 1.24-.46.46-.88.98-1.24 1.52-.36.55-.67 1.13-.92 1.73-.25.6-.45 1.23-.57 1.87-.13.651-.2 1.3-.2 1.96 0 .65.07 1.3.2 1.95.12.64.32 1.27.57 1.87.25.6.56 1.18.92 1.73.36.54.78 1.06 1.24 1.52.46.46.97.88 1.52 1.24.54.36 1.12.67 1.73.92.6.25 1.23.44 1.87.57s1.3.2 1.95.2c.65 0 1.31-.07 1.95-.2.64-.13 1.27-.32 1.88-.57.6-.25 1.18-.56 1.72-.92.55-.36 1.059-.78 1.52-1.24.46-.46.88-.98 1.25-1.52.36-.55.66-1.13.91-1.73.25-.6.45-1.23.57-1.87.13-.65.2-1.3.2-1.95 0-.66-.07-1.31-.2-1.96z"/>\n <path d="M511.999 222.726c0-14.215-9.228-26.315-22.007-30.624-1.628-74.155-62.456-133.978-136.994-133.978H159.002c-74.538 0-135.366 59.823-136.994 133.978C9.228 196.411 0 208.51 0 222.726a32.076 32.076 0 0 0 3.847 15.203 44.931 44.931 0 0 0-.795 8.427v.708c0 14.06 6.519 26.625 16.693 34.833-10.178 8.275-16.693 20.891-16.693 35.001 0 15.114 7.475 28.515 18.921 36.702v26.668c0 40.588 33.021 73.608 73.608 73.608h320.836c40.588 0 73.608-33.021 73.608-73.608V353.6c11.446-8.186 18.921-21.587 18.921-36.702 0-13.852-6.354-26.385-16.361-34.702 9.983-8.212 16.361-20.656 16.361-34.562v-.708c0-2.985-.294-5.944-.877-8.845a32.082 32.082 0 0 0 3.93-15.355zM44.033 173.229h322.441c5.523 0 10-4.477 10-10s-4.477-10-10-10H49.737c16.896-43.883 59.503-75.106 109.265-75.106h193.996c62.942 0 114.438 49.953 116.934 112.295H42.068c.234-5.848.9-11.588 1.965-17.189zM23.052 316.896c0-13.837 11.257-25.094 25.094-25.094h117.298l55.346 50.188H48.146c-13.837 0-25.094-11.256-25.094-25.094zm.976-62.945c.422.111.847.215 1.275.309 7.421 1.634 14.68 8.002 22.365 14.744a576.29 576.29 0 0 0 3.206 2.799h-3.081c-11.253-.001-20.774-7.551-23.765-17.852zm308.727 89.752l57.233-51.899 49.904.57-81.871 74.24-25.266-22.911zm7.861 34.126H295.12l17.467-15.839h10.563l17.466 15.839zm19.599-86.027l-82.499 74.811-82.499-74.811h164.998zm-59.529-20c.849-.842 1.677-1.675 2.49-2.493 9.531-9.587 17.059-17.16 32.89-17.16 15.832 0 23.359 7.573 32.89 17.162.812.817 1.64 1.65 2.489 2.491h-70.759zm-160.13 0a485.82 485.82 0 0 0 2.489-2.492c9.531-9.588 17.059-17.161 32.89-17.161 15.83 0 23.358 7.573 32.888 17.16.813.818 1.641 1.651 2.49 2.493h-70.757zm275.862 162.073H95.582c-29.56 0-53.608-24.049-53.608-53.608v-18.275h200.872l17.467 15.839H145.897c-5.523 0-10 4.477-10 10s4.477 10 10 10H467.07c-7.288 20.958-27.242 36.044-50.652 36.044zm53.608-56.046h-94.6l17.467-15.839h77.133v15.839zm-6.174-35.837h-48.906l54.624-49.533c11.135 2.604 19.376 12.665 19.376 24.439 0 13.836-11.257 25.094-25.094 25.094zm-2.728-70.19l.262-.227.101-.087.342-.298c.848-.738 1.682-1.469 2.501-2.187 4.105-3.601 8.089-7.095 12.04-9.819 3.446-2.375 6.868-4.164 10.326-4.925l.359-.081.04-.01.317-.076.065-.016a22.897 22.897 0 0 0 .42-.107l.196-.052a.374.374 0 0 0 .048-.012c-2.433 9.276-10.129 16.443-19.691 18.102a9.984 9.984 0 0 0-2.016-.205h-5.31zm21.271-37.073a40.746 40.746 0 0 0-4.536 1.281c-10.109 3.489-18.327 10.602-26.283 17.58l-.434.381c-9.178 8.052-17.923 15.723-29.033 17.834h-13.146c-11.249-1.93-17.833-8.552-25.823-16.591-10.213-10.275-22.923-23.062-47.074-23.062-24.15 0-36.86 12.786-47.074 23.06-7.992 8.04-14.576 14.663-25.829 16.593h-14.327c-11.253-1.93-17.837-8.553-25.829-16.593-10.213-10.274-22.923-23.06-47.072-23.06-24.151 0-36.861 12.787-47.074 23.062-7.991 8.039-14.574 14.661-25.824 16.591h-7.065c-14.134 0-24.325-8.939-35.113-18.404-9.248-8.112-18.81-16.501-31.252-19.241a12.237 12.237 0 0 1-7.025-4.453 10.027 10.027 0 0 0-1.153-1.252 12.234 12.234 0 0 1-1.428-5.727c-.001-6.788 5.52-12.309 12.307-12.309h447.384c6.787 0 12.308 5.521 12.308 12.308 0 5.729-4.039 10.776-9.605 12.002z"/>\n </svg>\n ',$i='\n <svg\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 219.15 219.15" width="1em" height="1em">\n <path d="M109.575 0C49.156 0 .001 49.155.001 109.574c0 60.42 49.154 109.576 109.573 109.576 60.42 0 109.574-49.156 109.574-109.576C219.149 49.155 169.995 0 109.575 0zm0 204.15c-52.148 0-94.573-42.427-94.573-94.576C15.001 57.426 57.427 15 109.575 15c52.148 0 94.574 42.426 94.574 94.574 0 52.15-42.426 94.576-94.574 94.576z"/>\n <path d="M166.112 108.111h-52.051V51.249a7.5 7.5 0 0 0-15 0v64.362a7.5 7.5 0 0 0 7.5 7.5h59.551a7.5 7.5 0 0 0 0-15z"/>\n </svg>\n ',Ji='\n <svg\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="1em" height="1em">\n <path d="M490.815 3.784C480.082 5.7 227.049 51.632 148.477 130.203c-39.153 39.153-64.259 87.884-70.694 137.218-5.881 45.081 4.347 85.929 28.878 116.708L.001 490.789 21.212 512l106.657-106.657c33.094 26.378 75.092 34.302 116.711 28.874 49.334-6.435 98.065-31.541 137.218-70.695C460.368 284.951 506.3 31.918 508.216 21.185L511.999 0l-21.184 3.784zm-43.303 39.493L309.407 181.383l-7.544-98.076c46.386-15.873 97.819-29.415 145.649-40.03zm-174.919 50.64l8.877 115.402-78.119 78.119-11.816-153.606c19.947-13.468 47.183-26.875 81.058-39.915zm-109.281 64.119l12.103 157.338-47.36 47.36c-39.246-52.892-24.821-139.885 35.257-204.698zm57.113 247.849c-26.548-.001-51.267-7.176-71.161-21.938l47.363-47.363 157.32 12.102c-40.432 37.475-89.488 57.201-133.522 57.199zm157.743-85.421l-153.605-11.816 78.118-78.118 115.403 8.877c-13.04 33.876-26.448 61.111-39.916 81.057zm50.526-110.326l-98.076-7.544L468.725 64.485c-10.589 47.717-24.147 99.232-40.031 145.653z"/>\n </svg>\n ',Qi='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 792 792">\n <path d="M425.512 741.214H365.58c-14.183 0-25.164 11.439-25.164 25.622S351.397 792 365.58 792h59.932c15.101 0 26.54-10.981 26.54-25.164s-11.44-25.622-26.54-25.622zM472.638 671.209H319.821c-14.183 0-26.081 10.98-26.081 25.163s11.898 25.164 26.081 25.164h152.817c14.183 0 25.164-10.981 25.164-25.164s-10.982-25.163-25.164-25.163zM639.188 138.634c-25.164-42.548-59.181-76.135-102.49-101.113C493.526 12.621 446.566 0 395.771 0 320.28 0 247.19 31.684 197.205 81.445c-49.761 49.527-81.904 121.24-81.904 196.282 0 33.861 7.779 68.629 22.879 103.866 15.1 35.228 38.565 78.614 70.005 130.396 7.448 12.269 15.764 31.205 25.623 56.271 12.104 30.757 22.87 51.713 31.566 63.602 5.027 6.872 11.899 10.063 20.596 10.063h228.766c9.605 0 16.359-4.188 21.504-11.898 6.754-10.132 13.987-27.516 22.42-51.693 8.951-25.691 16.838-43.982 23.329-55.364 30.571-53.587 54.446-99.747 70.464-137.717 16.018-37.979 24.246-74.124 24.246-107.526 0-49.878-12.347-96.545-37.511-139.093zm-35.696 232.437c-15.012 34.348-36.398 76.974-65.427 126.736-9.41 16.125-18.458 37.003-26.989 63.592-3.367 10.474-7.32 20.596-11.439 30.2H300.153c-6.862-11.439-12.26-25.837-18.761-42.089-12.718-31.801-23.338-52.621-30.2-64.061-28.824-48.043-49.868-87.39-64.051-118.957s-20.537-60.859-21.044-88.766c-2.235-121.718 106.13-228.991 229.674-226.941 41.631.693 80.527 10.063 115.765 30.659 35.227 20.586 63.134 48.043 83.729 82.812 20.586 34.768 31.108 72.748 31.108 113.47-.001 27.449-7.692 58.596-22.881 93.345z"/>\n </svg>\n ',Zi='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 106.059 106.059">\n <path d="M90.544 90.542c20.687-20.684 20.685-54.341.002-75.024-20.688-20.689-54.347-20.689-75.031-.006-20.688 20.687-20.686 54.346.002 75.034 20.682 20.684 54.341 20.684 75.027-.004zM21.302 21.3c17.494-17.493 45.959-17.495 63.457.002 17.494 17.494 17.492 45.963-.002 63.455-17.494 17.494-45.96 17.496-63.455.003-17.498-17.498-17.496-45.966 0-63.46zM27 69.865s-2.958-11.438 6.705-8.874c0 0 17.144 9.295 38.651 0 9.662-2.563 6.705 8.874 6.705 8.874C73.539 86.824 53.03 85.444 53.03 85.444S32.521 86.824 27 69.865zm6.24-31.194a6.202 6.202 0 1 1 12.399.001 6.202 6.202 0 0 1-12.399-.001zm28.117 0a6.202 6.202 0 1 1 12.403.001 6.202 6.202 0 0 1-12.403-.001z"/>\n </svg>\n ',es='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 611.999 611.998">\n <path d="M596.583 15.454C586.226 5.224 573.354.523 558.423.523c-15.597 0-31.901 4.906-49.452 14.599-17.296 9.551-32.851 20.574-46.458 32.524h-.665c-2.655 2.322-10.953 10.287-25.219 24.553-14.272 14.272-26.217 26.223-35.845 36.51L112.401 26.406c-6.896-1.968-12.928.014-17.593 4.645L46.687 78.839c-4.326 4.297-5.805 9.268-4.977 15.597.829 6.287 3.979 10.627 9.629 13.607L280.32 228.839 161.514 347.978l-95.91 3.32c-4.645.164-8.637 1.643-12.276 5.311L5.872 404.397c-4.312 4.34-6.641 9.289-5.643 16.262 1.657 6.967 5.31 11.611 11.618 13.602l117.142 48.787 48.787 117.148c2.421 5.812 6.634 9.621 13.607 11.279h3.313c4.977 0 9.296-1.658 12.942-5.311l47.456-47.457c3.653-3.645 5.494-7.965 5.643-12.275l3.32-95.91 118.807-118.807 121.128 228.99c2.988 5.643 7.32 8.793 13.607 9.621 6.329.836 11.271-1.316 15.597-5.643l47.456-47.457c4.978-4.977 6.945-10.697 4.978-17.586l-82.296-288.389 59.732-59.739c10.287-10.287 21.699-24.149 33.183-45.134 5.777-10.542 10.032-20.886 12.942-31.194 5.722-20.218 3.258-44.07-12.608-59.73zm-59.4 110.176l-67.039 67.372c-5.628 5.657-6.811 11.122-4.977 17.586l81.637 288.388-22.563 22.238L403.438 292.89c-2.98-5.643-7.299-8.963-12.941-9.621-6.301-1.331-11.611.325-16.263 4.977l-141.37 141.37c-2.987 2.986-4.644 6.973-5.643 11.949l-3.32 95.904-22.896 23.236-41.48-98.566c-1.331-4.645-4.553-8.184-9.629-10.287L51.338 411.03l23.229-22.895 95.578-3.654c5.643-.99 9.622-2.654 12.276-5.309l141.37-141.371c4.651-4.645 6.308-9.954 4.984-16.262-.666-5.643-3.986-9.954-9.629-12.942L90.829 87.47l22.231-22.238 288.389 81.637c6.464 1.833 11.951.666 17.587-4.977l28.545-28.539 26.217-25.884 11.278-11.285 1.331-.666c27.873-23.895 55.088-38.16 72.016-38.16 5.969 0 9.954 1.324 11.611 3.979 18.917 18.585-21.099 72.484-32.851 84.293z"/>\n </svg>\n ',ts='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 511.626 511.626">\n <path d="M475.366 71.949c-24.175-23.606-57.575-35.404-100.215-35.404-11.8 0-23.843 2.046-36.117 6.136-12.279 4.093-23.702 9.615-34.256 16.562-10.568 6.945-19.65 13.467-27.269 19.556a263.828 263.828 0 0 0-21.696 19.414 264.184 264.184 0 0 0-21.698-19.414c-7.616-6.089-16.702-12.607-27.268-19.556-10.564-6.95-21.985-12.468-34.261-16.562-12.275-4.089-24.316-6.136-36.116-6.136-42.637 0-76.039 11.801-100.211 35.404C12.087 95.55 0 128.286 0 170.16c0 12.753 2.24 25.891 6.711 39.398 4.471 13.514 9.566 25.031 15.275 34.546 5.708 9.514 12.181 18.792 19.414 27.834 7.233 9.041 12.519 15.272 15.846 18.698 3.33 3.426 5.948 5.903 7.851 7.427L243.25 469.938c3.427 3.426 7.614 5.144 12.562 5.144s9.138-1.718 12.563-5.144l177.87-171.31c43.588-43.58 65.38-86.406 65.38-128.472.001-41.877-12.085-74.61-36.259-98.207zm-53.961 199.846L255.813 431.391 89.938 271.507C54.344 235.922 36.55 202.133 36.55 170.156c0-15.415 2.046-29.026 6.136-40.824 4.093-11.8 9.327-21.177 15.703-28.124 6.377-6.949 14.132-12.607 23.268-16.988 9.141-4.377 18.086-7.328 26.84-8.85 8.754-1.52 18.079-2.281 27.978-2.281 9.896 0 20.557 2.424 31.977 7.279 11.418 4.853 21.934 10.944 31.545 18.271 9.613 7.332 17.845 14.183 24.7 20.557 6.851 6.38 12.559 12.229 17.128 17.559 3.424 4.189 8.091 6.283 13.989 6.283 5.9 0 10.562-2.094 13.99-6.283 4.568-5.33 10.28-11.182 17.131-17.559 6.852-6.374 15.085-13.222 24.694-20.557 9.613-7.327 20.129-13.418 31.553-18.271 11.416-4.854 22.08-7.279 31.977-7.279s19.219.761 27.977 2.281c8.757 1.521 17.702 4.473 26.84 8.85 9.137 4.38 16.892 10.042 23.267 16.988 6.376 6.947 11.612 16.324 15.705 28.124 4.086 11.798 6.132 25.409 6.132 40.824-.002 31.977-17.89 65.86-53.675 101.639z"/>\n </svg>\n ',as=a({name:"IBizCategories",props:{categories:{type:Array,required:!0,default:()=>[]},current:{type:String,required:!0}},emits:["select"],setup:(e,{emit:t})=>({ns:A("emoji-categories"),onSelect:e=>{t("select",e)}}),render(){return o("div",{class:this.ns.b()},[this.categories.map((e=>o("div",{class:[this.ns.e("category"),this.ns.is("active",e.name===this.current)],onClick:()=>this.onSelect(e)},[o("span",{class:this.ns.em("category","svg"),title:ht(e.label),innerHTML:e.icon},null)])))])}}),ns=a({name:"IBizCategoryLabel",props:{name:{type:String,default:""}},emits:["select"],setup:()=>({ns:A("emoji-category-label")}),render(){return o("div",{class:this.ns.b()},[this.name])}}),os=a({name:"IBizEmojiItem",props:{emoji:{type:Object,required:!0,default:()=>{}},size:{type:Number,required:!0},withBorder:{type:Boolean,required:!0}},emits:["click"],setup:(e,{emit:t})=>({ns:A("emoji-item"),styleSize:l((()=>({fontSize:"".concat(e.size-5,"px"),lineHeight:"".concat(e.size,"px"),height:"".concat(e.size,"px"),width:"".concat(e.size,"px")}))),onClick:()=>{t("click",e.emoji)}}),render(){return o("span",{class:[this.ns.b(),this.ns.is("border",this.withBorder)],style:this.styleSize,onClick:this.onClick,innerHTML:this.emoji.data},null)}}),is=(e,t)=>t.aliases.some((t=>(t=>t.toLowerCase().includes(e))(t))),ss=a({name:"IBizEmojiList",props:{data:{type:Object,required:!0},emojisByRow:{type:Number,required:!0},emojiWithBorder:{type:Boolean},emojiSize:{type:Number},filter:{type:String,default:""},continuousList:{type:Boolean},category:{type:String,default:""},categories:{type:Object,required:!0,default:()=>{}},hasSearch:{type:Boolean}},emits:["select","data"],setup(e,{emit:t}){const a=A("emoji-list"),i=n({}),s=n({}),r=l((()=>{let t=e.data[e.category];const a=e.filter.trim().toLowerCase();return a&&(t=t.filter((e=>is(a,e)))),t})),d=l((()=>Object.keys(e.data))),u=l((()=>{const t=100/e.emojisByRow;return{gridTemplateColumns:"repeat(".concat(e.emojisByRow,", ").concat(t,"%)")}})),p=l((()=>{const t={};Object.assign(t,e.data);const a=e.filter.trim().toLowerCase();return a&&d.value.forEach((n=>{t[n]=e.data[n].filter((e=>is(a,e)))})),t})),h=e=>{t("select",e)};c((()=>e.data),(()=>{i.value.$el.scrollTop=0})),c((()=>e.category),(t=>{if(e.continuousList){const a=s.value[t].$el;i.value.scrollTop=a.offsetTop-(e.hasSearch?88:44)}}));return{ns:a,emojisRef:i,gridDynamic:u,dataFiltered:r,dataFilteredByCategory:p,onSelect:h,setCategoryRef:(e,t)=>{t&&(s.value[e]=t)},renderGridEmojis:e=>{const{emojis:t,style:n,size:i,withBorder:s}=e;return t&&t.length>0?o("div",{class:[a.m("grid-emojis")],style:n},[t.map((e=>o(os,{emoji:e,size:i,withBorder:s,onClick:()=>h(e)},null)))]):""}}},render(){return o("div",{class:[this.ns.b()]},[o("div",{ref:"emojisRef",class:[this.ns.e("container")]},[this.continuousList?Object.keys(this.dataFilteredByCategory).map((e=>{const t=this.dataFilteredByCategory[e],a=this.categories[e],n=a?a.text:e;return o("div",null,[t.length?o(ns,{name:n,ref:t=>this.setCategoryRef(e,t)},null):"",this.renderGridEmojis({emojis:t,style:this.gridDynamic,size:this.emojiSize,withBorder:this.emojiWithBorder})])})):this.renderGridEmojis({emojis:this.dataFiltered||[],style:this.gridDynamic,size:this.emojiSize,withBorder:this.emojiWithBorder})])])}}),ls=a({name:"IBizInputSearch",emits:["update"],setup(e,{emit:t}){const a=A("emoji-input-search"),o=n(""),i=()=>{t("update",o.value)};return{ns:a,inputSearch:o,onSearch:i,handleKeyUp:e=>{e&&"Enter"===e.code&&i()}}},render(){return o("div",{class:[this.ns.b()]},[o("div",{class:this.ns.e("container"),onKeyup:this.handleKeyUp},[o("div",{class:this.ns.em("container","search"),onClick:this.onSearch},[o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false"},[o("g",{"stroke-width":"1"},[o("path",{d:"M6.751 12.303A5.557 5.557 0 0 1 1.2 6.751C1.2 3.691 3.69 1.2 6.751 1.2a5.558 5.558 0 0 1 5.551 5.551 5.557 5.557 0 0 1-5.551 5.552M6.751 0a6.751 6.751 0 1 0 4.309 11.949l3.855 3.855a.6.6 0 1 0 .849-.849l-3.854-3.853A6.751 6.751 0 0 0 6.751 0"},null)])])]),h(o("input",{class:this.ns.em("container","input"),type:"text","onUpdate:modelValue":e=>this.inputSearch=e,placeholder:ibiz.i18n.t("app.search")},null),[[y,this.inputSearch]])])])}}),rs=a({name:"IBizEmojiSelect",props:{customEmojis:{type:Array,required:!0,default:()=>Wi},customCategories:{type:Array,required:!0,default:()=>[]},limitFrequently:{type:Number,default:15},emojisByRow:{type:Number,default:8},continuousList:{type:Boolean,default:!1},emojiSize:{type:Number,default:27},emojiWithBorder:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},initialCategory:{type:String,default:"peoples"},exceptCategories:{type:Array,default:()=>[]},exceptEmojis:{type:Array,default:()=>[]}},emits:["select","changeCategory","customEmojis"],setup(e,{emit:t}){const a=A("emoji-select"),o=n([]),i=n([]),s=n("peoples"),r=n([]),u=n([]),p=n([]),h=n({}),m=n({}),v=n("");v.value=s.value;const b=n(""),g=i.value.map((e=>e.name));g.includes(s.value)||(s.value=g[0]);const w=l((()=>i.value.filter((e=>!r.value.includes(e))))),f=e=>{Object.assign(m.value,{frequently:[]}),e.filter((e=>!u.value.includes(e))).forEach((e=>{const t=e.category;m.value[t]||Object.assign(m.value,{[t]:[]}),m.value[t].push(e)}))},y=async t=>{const a=m.value.frequently,n=[...new Set([t,...a])];m.value.frequently=n.slice(0,e.limitFrequently),(e=>{const t=e.map((e=>o.value.indexOf(e)));p.value=t})(n)};return c((()=>e.customEmojis),(t=>{o.value=e.customEmojis,t&&t.length&&(m.value={},f(t))}),{immediate:!0,deep:!0}),c((()=>e.customCategories),(e=>{e&&e.length>0?i.value=e:i.value=[new Ui("frequently",$i,ibiz.i18n.t("component.emojiSelect.frequently")),new Ui("peoples",Zi,ibiz.i18n.t("component.emojiSelect.peoples")),new Ui("nature",Ji,ibiz.i18n.t("component.emojiSelect.nature")),new Ui("foods",Xi,ibiz.i18n.t("component.emojiSelect.foods")),new Ui("activity",Ki,ibiz.i18n.t("component.emojiSelect.activity")),new Ui("objects",Qi,ibiz.i18n.t("component.emojiSelect.objects")),new Ui("places",es,ibiz.i18n.t("component.emojiSelect.places")),new Ui("symbols",ts,ibiz.i18n.t("component.emojiSelect.symbols")),new Ui("flags",Yi,ibiz.i18n.t("component.emojiSelect.flags"))],i.value.forEach((e=>{Object.assign(h.value,{[e.name]:e})}))}),{immediate:!0,deep:!0}),c((()=>e.initialCategory),(()=>{s.value=e.initialCategory})),c((()=>e.exceptCategories),(()=>{r.value=e.exceptCategories})),c((()=>e.exceptEmojis),(()=>{u.value=e.exceptEmojis})),d((()=>{f(o.value),(async()=>{const e=p.value||[];Object.assign(m.value,{frequently:e.map((e=>o.value[e]))})})()})),C((()=>{m.value={},p.value=[]})),{ns:a,mapEmojis:m,filterEmoji:b,mapCategories:h,currentCategory:v,categoriesFiltered:w,onSearch:async e=>{b.value=e},onSelectEmoji:async e=>{await y(e),t("select",e)},changeCategory:async e=>{const a=m.value[e.name].length;v.value=e.name,a&&t("changeCategory",e)}}},render(){return o("div",{class:[this.ns.b(),this.ns.is("dark",this.dark)]},[this.showCategories&&o(as,{categories:this.categoriesFiltered,current:this.currentCategory,onSelect:this.changeCategory},null),this.showSearch&&o(ls,{onUpdate:this.onSearch},null),o(ss,{data:this.mapEmojis,category:this.currentCategory,filter:this.filterEmoji,categories:this.mapCategories,emojiWithBorder:this.emojiWithBorder,emojiSize:this.emojiSize,emojisByRow:this.emojisByRow,continuousList:this.continuousList,hasSearch:this.showSearch,onSelect:this.onSelectEmoji},null)])}});function cs(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const ds=a({name:"IBizQuickEdit",props:{context:{type:Object,required:!0},params:{type:Object,required:!0},modelData:{type:Object}},emits:{close:e=>!0},setup(e,{emit:t}){const a=A("quick-edit"),o=n(void 0),i=[],s=e=>{Ht(e).forEach((e=>{"FORMITEM"!==e.detailType||e.hidden||i.push(e),s(e)}))};var l;e.modelData&&(null==(l=e.modelData.deformPages)||l.forEach((e=>{s(e)})));return{ns:a,onCreated:e=>{o.value=e.ctrl},onConfirm:()=>{let e;if(o.value){const t=(()=>{const e={},t=o.value.getDiffData();return i.forEach((a=>{const n=a.id.toLowerCase(),o=a.fieldName||a.appDEFieldId;t[n]&&(e[o]=t[n])})),e})();Object.keys(t).length>0&&(e=[t])}t("close",{ok:!0,data:e})},onCancel:()=>{t("close",{ok:!1})}}},render(){let e,t;return o("div",{class:this.ns.b()},[o(i("iBizControlShell"),{params:this.params,context:this.context,modelData:this.modelData,onCreated:this.onCreated},null),o("div",{class:this.ns.e("footer")},[o(i("el-button"),{text:!0,onClick:this.onCancel},cs(e=ibiz.i18n.t("app.cancel"))?e:{default:()=>[e]}),o(i("el-button"),{onClick:this.onConfirm},cs(t=ibiz.i18n.t("app.confirm"))?t:{default:()=>[t]})])])}}),us=a({name:"AlarmClock",setup(){const e=A("alarm-clock"),t=n("00:00");let a,i=0,s=0;function l(){var e,a;s++,60===s&&(s=0,i++),60===i&&(i=0),t.value=(a=s,"".concat((e=i)<10?"0".concat(e):e,":").concat(a<10?"0".concat(a):a))}d((()=>{a=setInterval(l,1e3)})),p((()=>{clearInterval(a)}));return{ns:e,close:()=>{const e=document.getElementById("alarm-clock");e&&e.parentElement&&e.parentElement.removeChild(e)},closeSvg:()=>o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{id:"atjaction/quit","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M11.628 2.015a7.438 7.438 0 0 1 1.855 1.5 7.256 7.256 0 0 1 1.858 4.853c0 4.05-3.324 7.332-7.42 7.332C3.824 15.7.5 12.419.5 8.368c0-1.812.668-3.523 1.858-4.854a7.428 7.428 0 0 1 1.855-1.5.6.6 0 0 1 .595 1.043 6.238 6.238 0 0 0-1.556 1.257A6.056 6.056 0 0 0 1.7 8.368c0 3.385 2.783 6.132 6.22 6.132 3.438 0 6.221-2.747 6.221-6.132 0-1.514-.558-2.941-1.552-4.054a6.228 6.228 0 0 0-1.556-1.257.6.6 0 1 1 .595-1.042zM7.921.5a.6.6 0 0 1 .592.503l.008.097v7.18a.6.6 0 0 1-1.193.097l-.007-.098V1.1a.6.6 0 0 1 .6-.6z",id:"atj形状结合"},null)])]),formattedTime:t,timerInterval:a}},render(){return o("div",{ref:"componentRef",class:this.ns.b()},[o("div",{class:this.ns.e("wrapper")},[o("div",{class:this.ns.e("light-counter")},[this.formattedTime]),o("div",{class:this.ns.e("svg-wrapper")},[o("div",{class:this.ns.e("svg"),onClick:()=>this.close()},[this.closeSvg()])])])])}}),ps=a({name:"IBizFullscreenToolbar",setup(){const e=A("fullscreen-toolbar"),t=n(),a=n(),i=n(!1),s=n(0),l=n(0);let r=0,c=0;const u=()=>{if(a.value.globalCompositeOperation="destination-out",a.value.fillStyle="rgba(0, 0, 0, 0.05)",a.value.fillRect(0,0,t.value.width,t.value.height),a.value.globalCompositeOperation="source-over",i.value){const e=Math.sqrt((s.value-r)**2+(l.value-c)**2),t=Math.max(Math.round(e/5),1);for(let e=0;e<t;e++){const n=e/t,o=r+(s.value-r)*n,i=c+(l.value-c)*n;a.value.beginPath(),a.value.arc(o,i,5,0,2*Math.PI),a.value.fillStyle="#eb4c4a",a.value.fill()}r=s.value,c=l.value}requestAnimationFrame(u)},h=()=>{if(ibiz.fullscreenUtil.FullscreenClass){const e=document.querySelector(".".concat(ibiz.fullscreenUtil.FullscreenClass));e&&e.classList.toggle(ibiz.fullscreenUtil.FullscreenClass)}},m=n(),v=()=>{if(document.fullscreenElement);else{const e=document.getElementById("fullscreen");e&&(h(),e.parentElement&&e.parentElement.removeChild(e))}};return d((()=>{a.value=t.value.getContext("2d"),window.addEventListener("resize",(()=>{t.value.width=window.innerWidth,t.value.height=window.innerHeight})),t.value.addEventListener("mousemove",(e=>{s.value=e.clientX,l.value=e.clientY})),document.addEventListener("mousemove",(e=>{i.value||(s.value=e.clientX,l.value=e.clientY,r=e.clientX,c=e.clientY)})),a.value.clearRect(0,0,t.value.width,t.value.height),a.value.fillStyle="lightgray",a.value.fillRect(0,0,t.value.width,t.value.height),u(),window.dispatchEvent(new Event("resize")),document.addEventListener("fullscreenchange",v)})),p((()=>{document.removeEventListener("fullscreenchange",v)})),{ns:e,laserPointerSvg:()=>o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{id:"aoeeditor/laser-pointer","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M8.203 15.947a3 3 0 0 1-.198-5.993l-.069.005.926-1.19H3c-1.543 0-2.461-1.648-1.762-2.945l.075-.129.086-.125.083-.103.098-.093L8.97.097c.42-.3.941.15.755.593l-.04.078-2.483 4h5.75c1.488 0 2.414 1.548 1.813 2.841l-.067.133-.079.13-.066.092-3.351 5.098.002-.115a3 3 0 0 1-3 3zm0-4.8a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6zm-.685-8.785L2.215 6.149l-.024.032c-.436.59-.092 1.416.589 1.564l.11.018.11.006h6.884a.5.5 0 0 1 .442.734l-.047.073-1.174 1.51-.011-.004a3.008 3.008 0 0 1 1.826 1.592l-.001-.003L13.728 7.4l.064-.09c.408-.624-.003-1.456-.73-1.534l-.112-.006H6.304a.5.5 0 0 1-.462-.69l.037-.074 1.64-2.643z",id:"aoe形状结合"},null)])]),alarmClockSvg:()=>o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{id:"aah工时","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M9.6.2v1.2H8.099v1.427a6.486 6.486 0 0 1 4.27 2.167l.663-.528-.332-.41.933-.756 1.321 1.632-.932.755-.235-.289-.708.565A6.5 6.5 0 1 1 6.9 2.827V1.4H5.4V.2h4.2zM7.5 4a5.3 5.3 0 1 0 0 10.6A5.3 5.3 0 0 0 7.5 4zm.6 1.687v3.45l3.187.001v1.2H6.9v-4.65h1.2z",id:"aah形状结合"},null)])]),compressArrowsSvg:()=>o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{id:"ahsaction/compress-arrows","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M4.069 5.246L.792 1.815a.6.6 0 1 1 .868-.83l3.204 3.356V2.92a.6.6 0 1 1 1.2 0V5.84l.002.007a.6.6 0 0 1-.601.6H2.543a.6.6 0 0 1 0-1.2h1.526zm6.175 1.01l-.007.002a.599.599 0 0 1-.6-.6V2.737a.6.6 0 1 1 1.2 0v1.526l3.43-3.277a.601.601 0 0 1 .83.868l-3.355 3.204h1.419a.6.6 0 0 1 0 1.2h-2.917zm1.586 4.802l3.276 3.431a.6.6 0 1 1-.868.829l-3.204-3.355v1.419a.6.6 0 1 1-1.2 0v-2.917l-.001-.007a.6.6 0 0 1 .6-.6h2.922a.6.6 0 1 1 0 1.2H11.83zm-6.185-.996a.6.6 0 0 1 .6.6v2.922a.6.6 0 1 1-1.2 0v-1.526l-3.43 3.277a.6.6 0 1 1-.83-.868l3.355-3.204H2.721a.6.6 0 1 1 0-1.2h2.917l.007-.001z",id:"ahs形状结合"},null)])]),laserPointerClick:()=>{i.value=!i.value},alarmClockClick:()=>{const e=document.getElementById("fullscreen"),t=document.createElement("div");if(t.id="alarm-clock",t.style.zIndex="9999",e){e.appendChild(t);I(us).mount(t)}},compressArrowsClick:()=>{const e=document.getElementById("fullscreen");e&&(document.exitFullscreen(),h(),e.parentElement&&e.parentElement.removeChild(e))},laserPointerCanvas:t,isLaserEnabled:i,editorRef:m}},render(){return o("div",{class:[this.ns.b()],ref:"editorRef"},[o("div",{class:[this.ns.e("wrapper")]},[o("div",{class:[this.ns.e("wrapper-content")]},[o(i("el-tooltip"),{effect:"dark",content:"激光笔",placement:"top",offset:10,teleported:!0,"append-to":this.editorRef,"popper-class":this.ns.e("tooltip"),"popper-options":{modifiers:[{name:"offset",options:{offset:[0,20]}}]}},{default:()=>[o("div",{class:this.ns.e("item"),onClick:()=>this.laserPointerClick()},[this.laserPointerSvg()])]}),o(i("el-tooltip"),{effect:"dark",content:"关灯计时",placement:"top",offset:10,teleported:!0,"append-to":this.editorRef,"popper-class":this.ns.e("tooltip"),"popper-options":{modifiers:[{name:"offset",options:{offset:[0,20]}}]}},{default:()=>[o("div",{class:this.ns.e("item"),onClick:()=>this.alarmClockClick()},[this.alarmClockSvg()])]}),o("div",{class:this.ns.e("divider")},null),o(i("el-tooltip"),{effect:"dark",content:"退出演示模式",placement:"top",offset:10,teleported:!0,"append-to":this.editorRef,"popper-class":this.ns.e("tooltip"),"popper-options":{modifiers:[{name:"offset",options:{offset:[0,20]}}]}},{default:()=>[o("div",{class:this.ns.e("item"),onClick:()=>this.compressArrowsClick()},[this.compressArrowsSvg()])]})])]),o("div",{class:this.ns.e("canvas")},[o("canvas",{ref:"laserPointerCanvas",style:"background-color: transparent;",class:this.isLaserEnabled?"cursor":"nocursor"},null)])])}});function hs(e,t,a,n,o){return{sel:e,data:t,children:a,text:n,elm:o,key:void 0===t?void 0:t.key}}const ms=Array.isArray;function vs(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function bs(e,t,a){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==a&&void 0!==t)for(let e=0;e<t.length;++e){const a=t[e];if("string"==typeof a)continue;const n=a.data;void 0!==n&&bs(n,a.children,a.sel)}}function gs(e,t,a){let n,o,i,s={};if(void 0!==a?(null!==t&&(s=t),ms(a)?n=a:vs(a)?o=a.toString():a&&a.sel&&(n=[a])):null!=t&&(ms(t)?n=t:vs(t)?o=t.toString():t&&t.sel?n=[t]:s=t),void 0!==n)for(i=0;i<n.length;++i)vs(n[i])&&(n[i]=hs(void 0,void 0,void 0,n[i],void 0));return!e.startsWith("svg")||3!==e.length&&"."!==e[3]&&"#"!==e[3]||bs(s,n,e),hs(e,s,n,o,void 0)}const ws=[{valueOP:Wt.EQ,label:"等于",sqlOP:"="},{valueOP:Wt.NOT_EQ,label:"不等于",sqlOP:"<>"},{valueOP:Wt.GT,label:"大于",sqlOP:">"},{valueOP:Wt.GT_AND_EQ,label:"大于等于",sqlOP:">="},{valueOP:Wt.LT,label:"小于",sqlOP:"<"},{valueOP:Wt.LT_AND_EQ,label:"小于等于",sqlOP:"<="},{valueOP:Wt.IS_NULL,label:"为空",sqlOP:"IS NULL"},{valueOP:Wt.IS_NOT_NULL,label:"非空",sqlOP:"IS NOT NULL"},{valueOP:Wt.IN,label:"属于",sqlOP:"IN"},{valueOP:Wt.NOT_IN,label:"不属于",sqlOP:"NOT IN"},{valueOP:Wt.LIKE,label:"文本包含",sqlOP:"LIKE"}],fs=[Wt.IN,Wt.NOT_IN,Wt.LIKE],ys=[Wt.IS_NULL,Wt.IS_NOT_NULL,Wt.EXISTS,Wt.NOT_EXISTS],Cs=new Map;ws.forEach((e=>{Cs.set(e.valueOP,e)}));const Is=new Map;ws.forEach((e=>{Is.set(e.sqlOP,e.valueOP)}));const Ds=e=>{var t,a;try{const n=e.split(" "),o=[];for(let e=0;e<n.length;e++){if(0!==e){const t=n[e];if("and"!==t&&"or"!==t)throw new vt("pql自定义条件解析错误");if(e===n.length-1)throw new vt("pql自定义条件解析错误");o.push({type:"connection",value:{label:t,value:t}})}const i=n[0!==e?++e:e],s=n[++e];if(i&&/^\$/.test(i)&&s){const l=JSON.parse(i.slice(1));if(ys.includes(Is.get(s))){o.push({type:"condition",key:{label:l.caption,value:l.name},operator:{label:(null==(t=Cs.get(Is.get(s)))?void 0:t.label)||"",value:Is.get(s)}});continue}{const t=n[++e];if(t){const e=/^\$/.test(t)?JSON.parse(t.slice(1)):{caption:t,value:t};o.push({type:"condition",key:{label:l.caption,value:l.name},operator:{label:(null==(a=Cs.get(Is.get(s)))?void 0:a.label)||"",value:Is.get(s)},value:{type:/^\$/.test(t)?"pql-field-value":void 0,label:e.caption,value:e.value}});continue}}}throw new vt("pql自定义条件解析错误")}return o}catch(e){ibiz.log.error(null==e?void 0:e.message)}},Es=async(e,t,a)=>{const n=[],o=new Map,i=t.filter((t=>e.some((e=>{var a;return(null==(a=e.key)?void 0:a.value)===t.appDEFieldId}))));return await Promise.all(i.map((async e=>{if(e.appCodeListId){const t=await a(e.appCodeListId);t&&o.set(e.appDEFieldId,t)}}))),e.forEach((e=>{var a,i;if("condition"===e.type){const{key:a,operator:i,value:s}=e;n.push({type:"pql-field",label:null==a?void 0:a.label,value:null==a?void 0:a.value}),n.push({type:"pql-field-operator",label:null==i?void 0:i.label,value:null==i?void 0:i.value});const l=t.find((e=>e.appDEFieldId===(null==a?void 0:a.value)));if(null==s?void 0:s.type)if(l&&l.appCodeListId){const e=o.get(l.appDEFieldId);(null==e?void 0:e.find((e=>e.value===(null==s?void 0:s.value))))?n.push({type:"pql-field-value",label:null==s?void 0:s.label,value:null==s?void 0:s.value}):n.push({text:null==s?void 0:s.value})}else l&&l.appDataEntityId&&(null==s?void 0:s.label)!==(null==s?void 0:s.value)?n.push({type:"pql-field-value",label:null==s?void 0:s.label,value:null==s?void 0:s.value}):n.push({text:null==s?void 0:s.value});else n.push({text:null==s?void 0:s.value})}"connection"===e.type&&n.push({type:"pql-field-connection",label:null==(a=e.value)?void 0:a.label,value:null==(i=e.value)?void 0:i.value})})),n},Ps=e=>{let t="<p>";return e.forEach((e=>{t+=(e=>{const t=e.type||"";return t?'<span\n data-pql="true"\n data-w-e-type="'.concat(t,'"\n data-w-e-is-void\n data-w-e-is-inline\n data-label="').concat(e.label||"",'"\n data-value="').concat(e.value||"",'"\n ></span>'):e.text||""})(e)})),t+="</p>",t};function ks(e){return!!e&&(!("element"!==e.getAttribute("data-slate-node")||!e.getAttribute("data-slate-inline")||!e.getAttribute("data-slate-void"))||ks(e.parentElement))}const Ss=["pql-field","pql-field-value","pql-field-operator","pql-field-connection"];function xs(e){const{type:t,label:a=""}=e;if("pql-field-operator"===t||"pql-field-connection"===t)return gs("span",{props:{contentEditable:!1},style:{display:"inline-block",lineHeight:"22px"}},[a]);if("pql-field-value"===t)return gs("span",{props:{contentEditable:!1},style:{display:"inline-block",lineHeight:"22px",color:"#5dcfff"}},[a]);return gs("span",{props:{contentEditable:!1},style:{color:"#6698ff",backgroundColor:"#edf2fd",display:"inline-block",padding:"0 5px",borderRadius:"3px",lineHeight:"22px"}},[a])}function Ts(e){const t=e.type||"";if(!t)return e.text||"";return'<span\n data-pql="true"\n data-w-e-type="'.concat(t,'"\n data-w-e-is-void\n data-w-e-is-inline\n data-label="').concat(e.label||"",'"\n data-value="').concat(e.value||"",'"\n ></span>')}const zs={editorPlugin:function(e){var t;const{isVoid:a,isInline:n,deleteBackward:o,deleteFragment:i,insertText:s}=e,l=e,r=null==(t=l.getConfig().EXTEND_CONF)?void 0:t.pql;let c;const d=()=>{var t;const{selection:a}=e;if(a&&0===(null==(t=a.focus)?void 0:t.offset)){const t=Po.node(e,a)[0];if(t){ks(e.toDOMNode(t))&&e.move(1)}}};return l.isVoid=e=>{const t=Eo.getNodeType(e);return!!Ss.includes(t)||a(e)},l.isInline=e=>{const t=Eo.getNodeType(e);return!!Ss.includes(t)||n(e)},l.deleteBackward=e=>{o(e),r&&r.showSuggestion&&(window.clearTimeout(c),c=window.setTimeout((()=>{d(),r.showSuggestion()}),10))},l.deleteFragment=e=>{i(e),r&&r.showSuggestion&&(window.clearTimeout(c),c=window.setTimeout((()=>{d(),r.showSuggestion()}),10))},l.insertText=e=>{s(e),r&&r.showSuggestion&&(window.clearTimeout(c),c=window.setTimeout((()=>{r.showSuggestion()}),10))},l},renderElems:Ss.map((e=>({type:e,renderElem:xs}))),elemsToHtml:Ss.map((e=>({type:e,elemToHtml:Ts}))),parseElemsHtml:[{selector:'span[data-pql="true"]',parseElemHtml:function(e){const t=e.getAttribute("data-w-e-type")||"",a=e.getAttribute("data-label")||"",n=e.getAttribute("data-value")||"";return t?{type:t,label:a,value:n,children:[{text:""}]}:{children:[{text:""}]}}}]},Os=a({name:"IBizPqlEditorSuggestion",props:{items:{type:Array,default:()=>[]},renderItem:{type:Function}},emits:{select:e=>!0},setup:(e,{emit:t})=>({ns:A("pql-editor-suggestion"),handleClick:e=>{t("select",e)}}),render(){var e,t;return o("div",{class:this.ns.b()},[(null==(e=this.items[0])?void 0:e._msg)?o("div",{class:this.ns.bm("item","empty")},[this.items[0]._msg]):null,!(null==(t=this.items[0])?void 0:t._msg)&&this.items.map((e=>o("div",{class:[this.ns.b("item")],onClick:t=>{t.stopPropagation(),this.handleClick(e)}},[this.renderItem?this.renderItem(e):o("div",{class:this.ns.be("item","text")},[e.label||""])])))])}}),_s=a({name:"IBizPqlEditor",props:{fields:{type:Array,default:()=>[]},value:{type:String,default:""},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:""},context:{type:Object,required:!0},params:{type:Object},renderItem:{type:Function}},emits:{change:e=>!0},setup(e,{emit:t}){const a=A("pql-editor"),i=n();let s,l;const r=[{type:"pql-field-connection",label:"and",value:"and"},{type:"pql-field-connection",label:"or",value:"or"}],u=async t=>{if(!e.context)return[];const a=ibiz.hub.getApp(e.context.srfappid);return await a.codeList.get(t,e.context)},p=e=>{var t;if(!s||!e)return;const a=Eo.findPath(s,e);if(a&&xo.hasPrevious(a)){const e=null==(t=Po.node(s,xo.previous(a)))?void 0:t[0];if(e)return e.type||e.text?e:p(e)}},h=async()=>{var t,a,n,o,i,l,c;if(!s)return[];const d=(()=>{var e;if(!s)return;const t=s.selection;if(t){const a=null==(e=Po.node(s,t))?void 0:e[0];if(a)return a.type||a.text?a:p(a)}})(),{selection:h}=s;if(h&&0!==(null==(a=null==(t=h.focus)?void 0:t.path)?void 0:a[0]))return[];if(!d&&h&&0===(null==(n=h.focus)?void 0:n.offset)){const e=Po.node(s,h)[0];if(e){if(ks(s.toDOMNode(e)))return[]}}if(s.selection){const e=Po.node(s,s.selection);if(e&&(null==(o=e[0])?void 0:o.type))return[]}if(d&&"pql-field"===d.type){const t=e.fields.find((e=>e.appDEFieldId===d.value));return t&&t.valueOPs?ws.filter((e=>t.valueOPs.includes(e.valueOP))).map((e=>({type:"pql-field-operator",label:e.label,value:e.valueOP}))):[]}if(d&&"pql-field-value"===d.type)return r;if(d&&"pql-field-operator"===d.type){const t=ws.find((e=>e.valueOP===d.value));if(t){if(fs.includes(t.valueOP))return[];if(ys.includes(t.valueOP))return r;const a=p(d);if(a&&"pql-field"===a.type){const t=e.fields.find((e=>e.appDEFieldId===a.value));if(t&&t.appCodeListId){return(await u(t.appCodeListId)).map((e=>({type:"pql-field-value",label:e.text,value:e.value})))}if(t&&t.appDataEntityId){const a=await ibiz.hub.getAppDEService(e.context.srfappid,t.appDataEntityId,e.context),n=await a.fetchDefault(e.context,e.params);if(n&&Array.isArray(n.data)){const e=n.data;return e.length?e.map((e=>({type:"pql-field-value",label:e.srfmajortext,value:e.srfkey}))):[{_msg:"暂无数据"}]}}}}return[]}if(d&&"pql-field-connection"===d.type)return e.fields.map((e=>({type:"pql-field",label:e.caption,value:e.appDEFieldId})));if(d&&!d.type){const t=p(d);if(t&&"pql-field-operator"===t.type)return 0!==(null==(i=s.selection)?void 0:i.focus.offset)?r:[];if(t&&"pql-field"===t.type){if(0!==(null==(l=s.selection)?void 0:l.focus.offset))return r;const a=e.fields.find((e=>e.appDEFieldId===t.value));if(a&&a.valueOPs)return ws.filter((e=>a.valueOPs.includes(e.valueOP))).map((e=>({type:"pql-field-operator",label:e.label,value:e.valueOP})))}return t&&"pql-field-connection"===t.type?0!==(null==(c=s.selection)?void 0:c.focus.offset)?r:e.fields.map((e=>({type:"pql-field",label:e.caption,value:e.appDEFieldId}))):t&&"pql-field-value"===t.type?r:[]}return e.fields.map((e=>({type:"pql-field",label:e.caption,value:e.appDEFieldId})))},m=e=>{if(!s)return;if(s.restoreSelection(),!e.type)return void s.insertText(e.label);const t={type:e.type,label:e.label,value:e.value,children:[{text:""}]};s.insertNode(t),s.move(1)},v=async()=>{if(!s)return;const t=l;l=void 0,await(null==t?void 0:t.dismiss());const a=window.getSelection();if(!a)return;const{focusNode:n}=a;if(!n||!n.parentNode)return;const i=await h();!l&&s.isFocused()&&i&&i.length&&(l=ibiz.overlay.createPopover((()=>o(Os,{items:i,renderItem:e.renderItem,onSelect:m},null)),void 0,{placement:"bottom-start",autoClose:!0,width:"200px",noArrow:!0}),await l.present(n.parentNode),await l.onWillDismiss(),l=void 0)},b=n(),g=n(),w=n(""),f=n("");c((()=>e.value),(async()=>{if(e.value===w.value)return;if(!e.value)return w.value="",f.value="",void(null==s||s.clear());const t=Ds(e.value);if(t){const a=await Es(t,e.fields,u);if(a&&a.length){const t=Ps(a);return w.value=e.value,f.value=t,void(null==s||s.setHtml(t))}}w.value="",f.value="",null==s||s.clear()}),{immediate:!0}),c((()=>e.fields),(async()=>{if(!e.value)return w.value="",f.value="",void(null==s||s.clear());const t=Ds(e.value);if(t){const a=await Es(t,e.fields,u);if(a&&a.length){const t=Ps(a);return w.value=e.value,f.value=t,void(null==s||s.setHtml(t))}}w.value="",f.value="",null==s||s.clear()}),{immediate:!0});const y=()=>{var n;if(!s)return;const o=((null==(n=s.children[0])?void 0:n.children)||[]).filter((e=>e.type||e.text));setTimeout((()=>{var n;if(!s)return;const{msg:i,child:l}=(()=>{var e;if(!s)return;const t=((null==(e=s.children[0])?void 0:e.children)||[]).filter((e=>e.type||e.text));if(!t.length)return;let a={type:"pql-field-connection"};for(let e=0;e<t.length;e++){const n=t[e];if("pql-field-connection"===a.type)if("pql-field"===n.type)a=n;else{if("pql-field-operator"===n.type)return{msg:"错误的表达式。表达式缺失左值。",child:n};if("pql-field-value"===n.type||n.text)return{msg:"错误的表达式。表达式缺失左值。",child:n};if("pql-field-connection"===n.type)return{msg:"错误的表达式。连接符缺失表达式",child:n}}else if("pql-field"===a.type){if("pql-field"===n.type)return{msg:"错误的表达式。表达式缺失操作符。",child:t[e-1]||n};if("pql-field-operator"===n.type)a=n;else{if("pql-field-value"===n.type||n.text)return{msg:"错误的表达式。表达式缺失操作符。",child:n};if("pql-field-connection"===n.type)return{msg:"错误的表达式。表达式缺失操作符。",child:t[e-1]||n}}}else if("pql-field-operator"===a.type)if(a.value&&ys.includes(a.value)){if("pql-field"===n.type)return{msg:"错误的表达式。表达式缺失连接符。",child:n};if("pql-field-operator"===n.type)return{msg:"错误的表达式。表达式缺失连接符。",child:n};if("pql-field-value"===n.type||n.text)return{msg:"错误的表达式。表达式缺失连接符。",child:n};"pql-field-connection"===n.type&&(a=n)}else{if("pql-field"===n.type)return{msg:"错误的表达式。表达式缺失右值。",child:t[e-1]||n};if("pql-field-operator"===n.type)return{msg:"错误的表达式。表达式缺失右值。",child:t[e-1]||n};if("pql-field-value"===n.type||n.text)a=n;else if("pql-field-connection"===n.type)return{msg:"错误的表达式。表达式缺失右值。",child:t[e-1]||n}}else if("pql-field-value"===a.type||a.text){if("pql-field"===n.type)return{msg:"错误的表达式。表达式缺失连接符。",child:n};if("pql-field-operator"===n.type)return{msg:"错误的表达式。表达式缺失连接符。",child:n};if("pql-field-value"===n.type||n.text)return{msg:"错误的表达式。表达式缺失连接符。",child:n};"pql-field-connection"===n.type&&(a=n)}}if("pql-field-value"!==a.type||!a.text){if("pql-field"===a.type)return{msg:"错误的表达式。表达式缺失操作符。",child:t[t.length-1]};if("pql-field-operator"===a.type){if(a.value&&ys.includes(a.value))return;return{msg:"错误的表达式。表达式缺失右值。",child:t[t.length-1]}}if("pql-field-connection"===a.type)return{msg:"错误的表达式。连接符缺失表达式。",child:t[t.length-1]}}})()||{};if(b.value=i||"",null==(n=g.value)||n.classList.remove(a.b("error-msg")),l){const e=s.toDOMNode(l);e&&(g.value=e,e.classList.add(a.b("error-msg")))}if(!i)try{const a=(e=>{if(!e.length)return[];const t=[];for(let a=0;a<e.length;a++){if(0!==a){const n=e[a];if(!n||"pql-field-connection"!==n.type)throw new vt("pql节点解析错误");if(a===e.length-1)throw new vt("pql节点解析错误");t.push({type:"connection",value:{label:n.label,value:n.value}})}const n=e[0!==a?++a:a],o=e[++a];if(n&&o&&"pql-field"===n.type&&"pql-field-operator"===o.type){if(o.value&&ys.includes(o.value)){t.push({type:"condition",key:{label:n.label,value:n.value},operator:{label:o.label,value:o.value}});continue}{const i=e[++a];if(i&&("pql-field-value"===i.type||i.text)){t.push({type:"condition",key:{label:n.label,value:n.value},operator:{label:o.label,value:o.value},value:{type:i.type,label:"pql-field-value"===i.type?i.label:i.text,value:"pql-field-value"===i.type?i.value:i.text}});continue}}}throw new vt("pql节点解析错误")}return t})(o),n=((e,t)=>{const a=new Map;t.forEach((e=>{a.set(e.appDEFieldId,e)}));let n="";return e.forEach((e=>{var t,o,i;if("condition"===e.type){const{key:i,operator:s,value:l}=e,r=null==(t=Cs.get(null==s?void 0:s.value))?void 0:t.sqlOP,c=((null==l?void 0:l.value)||"").replace(/\s+/g," "),d="$".concat(JSON.stringify({value:(null==l?void 0:l.value)||"",caption:(null==l?void 0:l.label)||"",field:"".concat((null==(o=a.get((null==i?void 0:i.value)||""))?void 0:o.appDataEntityFullTag)||"",".").concat((null==i?void 0:i.value)||"")})),u=l?" ".concat((null==l?void 0:l.type)?d:c):"";n+="$".concat(JSON.stringify({name:(null==i?void 0:i.value)||"",caption:(null==i?void 0:i.label)||""})," ").concat(r).concat(u)}"connection"===e.type&&(n+=" ".concat(null==(i=e.value)?void 0:i.value," "))})),n})(a,e.fields);w.value=n,t("change",n)}catch(e){ibiz.log.error(null==e?void 0:e.message)}}),10)};let I=()=>{},D=()=>{};return d((()=>{if(!i.value)return;window.PqlModule||(ko.registerModule(zs),window.PqlModule=!0);const t={autoFocus:!1,readOnly:e.readonly,placeholder:e.placeholder,EXTEND_CONF:{pql:{showSuggestion:v}},onFocus:()=>{setTimeout((()=>{v()}),10)},onChange:y};s=So({selector:i.value,config:t,mode:"simple"}),s.setHtml(f.value),I=bt(i.value,"keydown",(e=>{setTimeout((()=>{if(("ArrowLeft"===e.key||"ArrowRight"===e.key)&&s){const{selection:t}=s;if(t&&0===t.focus.offset){const a=Po.node(s,t)[0];if(a){ks(s.toDOMNode(a))&&("ArrowLeft"===e.key&&s.moveReverse(1),"ArrowRight"===e.key&&s.move(1))}}setTimeout((()=>{v()}),10)}}),10),"Escape"!==e.key&&"Enter"!==e.key||(e.stopPropagation(),null==l||l.dismiss())})),e.readonly||(D=bt(i.value,"click",(()=>{setTimeout((()=>{v()}),10)})))})),C((()=>{I(),D(),null==l||l.dismiss()})),{ns:a,editorRef:i,editor:s,errorMsg:b,verify:()=>!b.value}},render(){return o("div",{class:this.ns.b()},[o("div",{ref:"editorRef",class:this.ns.b("content")},null),o("div",{class:this.ns.b("footer")},[this.errorMsg])])}}),As=e("I",{install:e=>{e.component(B.name,B),e.component(ds.name,ds),e.component(rs.name,rs),e.component(j.name,j),e.component(zi.name,zi),e.component(hi.name,hi),e.component(pi.name,pi),e.component(M.name,M),e.component(di.name,di),e.component(R.name,R),e.component(N.name,N),e.component(mi.name,mi),e.component(L.name,L),e.component(vi.name,vi),e.component(bi.name,bi),e.component(gi.name,gi),e.component(wi.name,wi),e.component(fi.name,fi),e.component(yi.name,yi),e.component(Ci.name,Ci),e.component(Di.name,Di),e.component(Pi.name,Pi),e.component(ki.name,ki),e.component(xi.name,xi),e.component(Ti.name,Ti),e.component("IBizMapChart",D({loader:()=>t.import("./map-chart-BsStf5eZ.js")})),e.component(V.name,V),e.component(Oi.name,Oi),e.component(_i.name,_i),e.component(Ni.name,Ni),e.component(Li.name,Li),e.component(ps.name,ps),e.component(_s.name,_s)}});function Bs(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const js=a({name:"IBizMenuDesign",props:{controller:{type:Object,required:!0},menus:{type:Array,required:!0}},emits:["saved","reset"],setup(e,{emit:t}){const a=A("menu-design"),s=e.controller,l=n(!1),r=n(!1),c=n([]),d=e=>{e.stopPropagation()},u=e=>{const t=[];return e.forEach((e=>{var a;const n={key:e.key,name:e.label,type:e.itemType,visible:e.config.visible};(null==(a=e.children)?void 0:a.length)&&(n.children=u(e.children)),t.push(n)})),t},p=e=>{const t=[];return e.forEach((e=>{if(t.push(e),e.children&&e.children.length>0){const a=p(e.children);t.push(...a)}})),t},h=e=>{let t=[];return s.saveConfigs&&s.saveConfigs.length>0&&(t=p(s.saveConfigs)),e.map((e=>{var a;const n=t.find((t=>t.key===e.key)),o={...e,isCollapse:!0,config:{visible:!0}};return(null==(a=e.children)?void 0:a.length)&&(o.children=h(e.children)),n&&Object.assign(o,{config:{visible:n.visible}}),o}))},m=async()=>{s.saveConfigs=[],await s.customController.resetCustomModelData(),c.value=h(Bo(e.menus)),t("reset")},v=async()=>{l.value=!0;const e=u(c.value);await s.customController.saveCustomModelData(e),s.saveConfigs=e,l.value=!1,t("saved",e)},b=e=>{var t;if(null==(t=s.state.menuItemsState[e.key])?void 0:t.visible){if("MENUITEM"===e.itemType){let t;const n=s.itemProviders[e.key];return t=n&&n.renderText?function(e,t){const a=t.allAppMenuItems.find((t=>t.id===e));if(!a)throw new vt("".concat(ibiz.i18n.t("control.menuDesign.noMenuItemModel",{menu:e})));const n=t.itemProviders[e];if(!n.renderText)throw new vt("".concat(ibiz.i18n.t("control.menuDesign.noProviderRenderText",{menu:e})));return n.renderText(a,t)}(e.key,s):[e.image?o(i("iBizIcon"),{class:a.e("icon"),icon:e.image},null):null,o("span",null,[e.label])],t}if("SEPERATOR"===e.itemType){const t="TOP"===s.view.model.mainMenuAlign?"vertical":"horizontal";return o("div",{class:a.be("content","menu-seperator")},[o(i("el-divider"),{direction:t,class:a.e("separator"),id:e.key},null)])}}},g=e=>e.children&&e.children.length>0?e.isCollapse?o("i",{class:[a.be("menu-set-drawer","group-icon"),"fa fa-caret-right"],"aria-hidden":"true"},null):o("i",{class:[a.be("menu-set-drawer","group-icon"),"fa fa-sort-down"],"aria-hidden":"true"},null):null,w=e=>e.map((e=>{const t=b(e);return t?o("div",{class:a.be("content","menu-item")},[o("div",{class:[a.be("content","menu-item-content"),a.is("is-menuitem","MENUITEM"===e.itemType)]},[o("div",{class:a.bem("content","menu-item-content","label"),onClick:()=>{var t;(t=e).isCollapse=!t.isCollapse}},[g(e),o("div",{class:a.bem("content","menu-item-content","label-content")},[t])]),"SEPERATOR"!==e.itemType?o("div",{class:a.bem("content","menu-item-content","checks")},[o(i("el-checkbox"),{modelValue:e.config.visible,"onUpdate:modelValue":t=>e.config.visible=t,onClick:d,label:ibiz.i18n.t("control.menuDesign.visible"),size:"large"},null)]):null]),e.children&&e.children.length>0?o("div",{class:[a.bem("content","menu-item","children"),a.is("collapse",e.isCollapse)]},[w(e.children)]):null]):null}));return{ns:a,c:s,configs:c,visible:r,loading:l,onReset:m,renderContent:()=>o("div",{class:a.b("content")},[w(c.value)]),renderHeader:()=>{let e,t;return o("div",{class:a.b("header")},[o("div",{class:a.be("header","caption")},[ibiz.i18n.t("control.menuDesign.customMenu")]),o("div",{class:a.be("header","actions")},[o(i("el-button"),{onClick:m,loading:l.value},Bs(e=ibiz.i18n.t("control.menuDesign.reset"))?e:{default:()=>[e]}),o(i("el-button"),{onClick:v,loading:l.value},Bs(t=ibiz.i18n.t("control.menuDesign.save"))?t:{default:()=>[t]})])])},onSave:v,openDesign:()=>{c.value=h(Bo(e.menus)),r.value=!0}}},render(){return o("div",{class:this.ns.b()},[o("div",{title:ht(ibiz.i18n.t("control.menu.menuSetting")),onClick:this.openDesign},[o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false",fill:"currentColor"},[o("g",{id:"augaction/settings","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M11.405 13.975l3.398-5.889L11.405 2.2H4.607L1.208 8.087l3.399 5.889h6.798zm1.023-12.4l3.43 5.938c.205.356.205.793 0 1.149l-3.43 5.938a1.147 1.147 0 0 1-.993.574H4.577c-.41 0-.789-.218-.994-.573L.153 8.66a1.153 1.153 0 0 1 0-1.147l3.43-5.94c.205-.356.584-.575.994-.575h6.858c.409 0 .788.22.993.576zM8.006 9.879c.988 0 1.792-.804 1.792-1.792s-.804-1.792-1.792-1.792-1.792.804-1.792 1.792.804 1.792 1.792 1.792zm0-4.784a2.993 2.993 0 1 1-.002 5.985 2.993 2.993 0 0 1 .002-5.985z",id:"aug形状结合"},null)])])]),o(i("el-drawer"),{modelValue:this.visible,"onUpdate:modelValue":e=>this.visible=e,"append-to-body":!0,"custom-class":this.ns.b("menu-set-drawer")},{default:()=>this.renderContent(),header:()=>this.renderHeader()})])}});function Ms(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}function Rs(e){return e.map((e=>{var t;const a={key:e.id,label:e.caption,image:e.sysImage,counterId:e.counterId,disabled:!e.appFuncId,tooltip:e.tooltip,itemType:e.itemType};return(null==(t=e.appMenuItems)?void 0:t.length)&&(a.children=Rs(e.appMenuItems)),a}))}function Ns(e,t){const a=t.allAppMenuItems.find((t=>t.id===e));if(!a)throw new vt(ibiz.i18n.t("control.menu.noFoundModel",{menuKey:e}));const n=t.itemProviders[e];if(!n.renderText)throw new vt(ibiz.i18n.t("control.menu.noFoundFunction",{menuKey:e}));return n.renderText(a,t)}function Ls(e,t){let a;return t&&t.some((t=>t.key===e?(a=t,!0):!!(t.children&&t.children.length>0)&&(a=Ls(e,t.children),!!a))),a}function Vs(e,t){const a=Ls(e,t);return!a||a.visible}function Fs(e,t,a,n,s,l,r){if(s.state.menuItemsState[t.key].visible&&Vs(t.key,r)){if("MENUITEM"===t.itemType){let r;const c=s.itemProviders[t.key];return r=c&&c.renderText?Ns(t.key,s):e&&a?[t.image?o(i("iBizIcon"),{class:n.e("icon"),icon:t.image},null):t.label.slice(0,1)]:[t.image?o(i("iBizIcon"),{class:n.e("icon"),icon:t.image},null):null,t.label,null!=l[t.counterId]?o(i("iBizBadge"),{class:n.e("counter"),value:l[t.counterId]},null):null],e&&a?o(i("el-tooltip"),{class:n.b("tooltip"),content:t.label,placement:"left",theme:"light"},{default:()=>[o(i("el-menu-item"),{class:n.e("item"),index:t.key,disabled:t.disabled},Ms(r)?r:{default:()=>[r]})]}):o(i("el-menu-item"),{class:n.e("item"),index:t.key,disabled:t.disabled,title:ht(t.tooltip)},Ms(r)?r:{default:()=>[r]})}if("SEPERATOR"===t.itemType){const e="TOP"===s.view.model.mainMenuAlign?"vertical":"horizontal";return o(i("el-divider"),{direction:e,class:n.e("separator"),id:t.key},null)}}}function Us(e,t,a,n,s,l,r){if(s.state.menuItemsState[t.key].visible&&Vs(t.key,r))return o(i("el-sub-menu"),{class:n.b("submenu"),index:t.key,"popper-class":n.b("popup-container")},{default:()=>t.children.map((e=>e.children?Us(!1,e,a,n,s,l,r):Fs(!1,e,a,n,s,l,r))),title:()=>{const r=s.itemProviders[t.key];return r&&r.renderText?Ns(t.key,s):a?t.image?o(i("iBizIcon"),{class:n.e("icon"),icon:t.image},null):[e?t.label.slice(0,1):t.label,e?null:o("ion-icon",{name:"chevron-forward-outline"},null)]:[o(i("iBizIcon"),{class:n.e("icon"),icon:t.image},null),t.label,null!=l[t.counterId]?o(i("iBizBadge"),{class:n.e("counter"),value:l[t.counterId]},null):null]}})}const qs=a({name:"IBizAppMenuControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},collapse:Boolean,currentPath:String},setup(){const e=F(((...e)=>new Kt(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),a=n(Rs(e.model.appMenuItems)),i=n([]),s=n(""),r=n([]),d=To();let u=null;const p=n({}),h=n(lo()),m=()=>{const t=e.getAllItems(),a=ibiz.hub.getApp(e.context.srfappid);return t.find((e=>{var t,n;if("MENUITEM"===e.itemType&&e.appFuncId){const o=a.getAppFunc(e.appFuncId);return(null==(n=null==(t=null==o?void 0:o.appViewId)?void 0:t.split("."))?void 0:n[1])===d.params.view2}return!1}))},v=async(t,a)=>{const n=m();(null==n?void 0:n.id)!==t&&await e.onClickMenuItem(t,a)};c((()=>d.params.view2),((e,t)=>{if(e!==t&&ibiz.config.appMenu.enableEcho){const e=m();s.value=e?e.id:""}}));const b=e=>{p.value=e};e.evt.on("onCreated",(async()=>{i.value=e.saveConfigs;const t=e.getAllItems(),a=t.find((e=>e.openDefault&&!e.hidden));if(!a||d.params.view2||d.fullPath.includes("404")){if(ibiz.config.appMenu.enableEcho){const e=m();s.value=e?e.id:""}}else s.value=a.id,v(s.value);const n=t.filter((e=>e.expanded&&!e.hidden));n.length>0&&n.forEach((e=>{r.value.push(e.id)}))})),e.evt.on("onMounted",(async()=>{const t=e.model.appCounterRefId;t&&(u=e.getCounter(t),u&&u.onChange(b))})),C((()=>{null==u||u.offChange(b),null==u||u.destroy()}));const g=l((()=>"TOP"===e.view.model.mainMenuAlign?"horizontal":"vertical"));e.view.model.mainMenuAlign&&"LEFT"!==e.view.model.mainMenuAlign&&"TOP"!==e.view.model.mainMenuAlign&&ibiz.message.warning(ibiz.i18n.t("control.menu.noSupportAlign",{align:e.view.model.mainMenuAlign}));const w=l((()=>"LEFT"===e.view.model.mainMenuAlign||void 0===e.view.model.mainMenuAlign)),f=l((()=>e.model.enableCustomized));return{menus:a,c:e,key:h,onClick:v,ns:t,defaultActive:s,defaultOpens:r,menuMode:g,counterData:p,saveConfigs:i,configSaves:e=>{i.value=e},configReset:()=>{i.value=[]},isShowCollapse:w,enableCustomized:f,ellipsisSvg:()=>o("ion-icon",{name:"ellipsis-horizontal"},null)}},render(){return o(i("iBizControlBase"),{class:[this.ns.b(),this.ns.m(this.menuMode),this.ns.is("collapse",this.collapse),this.ns.is("show-collapse",this.isShowCollapse),this.ns.is("show-menu-design",this.enableCustomized)],controller:this.c},{default:()=>[this.c.state.isCreated&&o(i("el-menu"),{key:this.key,ref:"menu","default-active":this.defaultActive,"default-openeds":this.defaultOpens,collapse:this.collapse,"collapse-transition":!1,onSelect:this.onClick,theme:"light",mode:this.menuMode,"ellipsis-icon":()=>this.ellipsisSvg(),ellipsis:"horizontal"===this.menuMode},{default:()=>this.menus.map((e=>{var t;return(null==(t=e.children)?void 0:t.length)>0?Us(!0,e,this.collapse,this.ns,this.c,this.counterData,this.saveConfigs):Fs(!0,e,this.collapse,this.ns,this.c,this.counterData,this.saveConfigs)}))}),this.enableCustomized&&o(js,{class:[this.ns.b("menu-set"),this.ns.is("collapse",this.collapse),this.ns.is("horizontal","TOP"===this.c.view.model.mainMenuAlign)],controller:this.c,menus:this.menus,onSaved:this.configSaves,onReset:this.configReset},null),this.isShowCollapse&&o("div",{class:[this.ns.b("collapse-icon"),this.ns.is("collapse",this.collapse)],onClick:()=>{this.c.view.call(Yt.TOGGLE_COLLAPSE)}},[o("ion-icon",{name:"menu-collapse"},null)])]})}});var Gs=Object.defineProperty,Hs=(e,t,a)=>(((e,t,a)=>{t in e?Gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Ws{constructor(){Hs(this,"component","IBizAppMenuControl")}}const Ks=e("j",U(qs,(function(e){e.component(js.name,js),e.component(qs.name,qs),Xt($t.APP_MENU,(()=>new Ws))})));var Ys=Object.defineProperty,Xs=(e,t,a)=>(((e,t,a)=>{t in e?Ys(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class $s{constructor(){Xs(this,"component","IBizAppMenuIconViewControl")}}function Js(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Qs=a({name:"IBizAppMenuIconViewControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},collapse:Boolean,currentPath:String},setup(){var e;const t=F(((...e)=>new Jt(...e))),a=A("control-".concat(t.model.controlType.toLowerCase(),"-iconview")),s=n(""),l=n([]);null==(e=t.model.appMenuItems)||e.forEach((e=>{"MENUITEM"===e.itemType&&l.value.push(e.id)}));const r=async(e,a)=>{await t.onClickMenuItem(e,a)},c=e=>t.state.menuItemsState[e.id].visible?o("div",{class:[a.b("item"),a.is("disabled",!e.appFuncId)],title:ht(e.tooltip||e.caption),onClick:t=>{e.appFuncId&&r(e.id,t)}},[o(i("iBizIcon"),{class:a.be("item","icon"),icon:e.sysImage},null),o("span",{class:a.be("item","label")},[e.caption])]):null;return{c:t,ns:a,defaultActive:s,defaultOpens:l,onClick:r,renderGroup:e=>t.state.menuItemsState[e.id].visible?o(i("el-collapse-item"),{class:a.b("group"),name:e.id,title:ht(e.caption)},{default:()=>{var t;return[null==(t=e.appMenuItems)?void 0:t.map((e=>c(e)))]}}):null,renderItem:c}},render(){var e;const{state:t,model:a}=this.c;let n=null;if(t.isCreated&&(null==(e=a.appMenuItems)?void 0:e.length)){let e;n=o(i("el-collapse"),{class:this.ns.e("content"),modelValue:this.defaultOpens,"onUpdate:modelValue":e=>this.defaultOpens=e},Js(e=a.appMenuItems.map((e=>"MENUITEM"!==e.itemType?null:this.renderGroup(e))))?e:{default:()=>[e]})}return o(i("iBizControlBase"),{class:[this.ns.b()],controller:this.c},Js(n)?n:{default:()=>[n]})}}),Zs=e("k",U(Qs,(function(e){e.component(Qs.name,Qs),Xt("".concat($t.APP_MENU,"_ICONVIEW"),(()=>new $s))}))),el=a({name:"IBizGridFieldColumn",props:{controller:{type:Qt,required:!0},row:{type:Zt,required:!0}},setup(e){const t=A("grid-field-column"),a=e.controller.grid.state.zIndex,s=n("");c((()=>e.row),(async()=>{s.value=await e.controller.getCustomHtml(e.row)}),{deep:!0,immediate:!0});const r=l((()=>e.row.data[e.controller.fieldName])),d=l((()=>e.controller.formatValue(r.value))),u=l((()=>{const{grid:t,fieldName:a}=e.controller;if(!t.percentkeys.includes(a))return"";const n=Number(r.value);if(!Number.isNaN(n)){const{totalResult:e={}}=t.state,o=e[a];if(o&&!Number.isNaN(o))return ibiz.util.text.format("".concat(n/o),"0.##%")}return""})),p=l((()=>ea.toText(e.controller.model,r.value))),h=n(""),m=l((()=>{if("ellipsis"===e.controller.grid.overflowMode&&bo(r.value)&&""!==r.value)return e.controller.codeList?h.value:d.value+(e.controller.model.unitName||"")})),v=n([]);e.controller.codeList&&(v.value=e.controller.codeListItems);q(e.controller.model.appCodeListId,e.controller.context.srfappid,(e=>{e&&(v.value=e)}));return{ns:t,onCellClick:t=>{e.controller.hasAction&&(t.stopPropagation(),e.controller.triggerAction(e.row,t))},onTextClick:t=>{e.controller.isLinkColumn&&(t.stopPropagation(),e.controller.openLinkView(e.row,t))},onInfoTextChange:e=>{h.value=e},onActionClick:async(t,a)=>{await e.controller.onActionClick(t,e.row,a)},CustomHtml:s,fieldValue:r,formatValue:d,percent:u,codeListValue:p,tooltip:m,zIndex:a,codeListItems:v,findLayoutPanel:()=>{var t;const{controlRenders:a=[]}=e.controller.model;return null==(t=a.find((e=>"LAYOUTPANEL"===e.renderType)))?void 0:t.layoutPanel},renderPanelItemLayout:(t,a)=>{const{context:n,params:s}=e.controller;return o(i("iBizControlShell"),{data:t,modelData:a,context:n,params:s},null)}}},render(){var e;const t=this.controller,a=t.model.deuiactionGroup?o(i("iBizActionToolbar"),{class:this.ns.e("toolbar"),"action-details":t.model.deuiactionGroup.uiactionGroupDetails,"actions-state":this.row.uiActionGroupStates[this.controller.model.codeName],groupLevelKeys:[50,100],onActionClick:this.onActionClick,zIndex:this.zIndex},null):null;let n=null;const s=this.findLayoutPanel();return n=t.isCustomCode?o("span",{class:this.ns.e("script"),innerHTML:this.CustomHtml},null):s?o(i("iBizControlShell"),{data:this.row.data,modelData:s,context:t.context,params:t.params},null):t.codeList?o(i("iBizCodeList"),{class:this.ns.e("text"),codeListItems:this.codeListItems,codeList:t.codeList,value:this.codeListValue,onClick:this.onTextClick,onInfoTextChange:this.onInfoTextChange,title:ht(this.tooltip)},null):o("span",{class:this.ns.e("text"),title:ht(this.tooltip),onClick:this.onTextClick},[this.formatValue,null!=this.fieldValue&&t.model.unitName,this.percent&&"(".concat(this.percent,")")]),o("div",{class:[this.ns.b(),t.clickable(this.row)&&this.ns.m("clickable"),this.ns.m(this.controller.grid.overflowMode),null==(e=this.controller.model.cellSysCss)?void 0:e.cssName,this.ns.is("has-action",!!t.model.deuiactionGroup)],onClick:this.onCellClick},[t.model.deuiactionGroup?[o("div",{class:this.ns.b("text-container")},[n]),o("div",{class:this.ns.b("toolbar-container")},[a])]:n])}});var tl=Object.defineProperty,al=(e,t,a)=>(((e,t,a)=>{t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class nl{constructor(){al(this,"component","IBizGridFieldColumn")}async createController(e,t){const a=new Qt(e,t);return await a.init(),a}}const ol=e("q",U(el,(function(e){e.component(el.name,el),ta("DEFGRIDCOLUMN",(()=>new nl)),ta("DEFTREEGRIDCOLUMN",(()=>new nl))}))),il=a({name:"IBizGridUAColumn",props:{controller:{type:aa,required:!0},row:{type:Zt,required:!0}},setup:e=>({ns:A("grid-ua-column"),onStopPropagation:e=>{e.stopPropagation()},onActionClick:async(t,a)=>{await e.controller.onActionClick(t,e.row,a)}}),render(){var e,t,a;return o("div",{class:[this.ns.b(),null==(e=this.controller.model.cellSysCss)?void 0:e.cssName]},[(null==(a=null==(t=this.controller.model.deuiactionGroup)?void 0:t.uiactionGroupDetails)?void 0:a.length)&&o(i("iBizActionToolbar"),{onDblclick:this.onStopPropagation,onClick:this.onStopPropagation,"action-details":this.controller.model.deuiactionGroup.uiactionGroupDetails,"actions-state":this.row.uaColStates[this.controller.model.codeName],onActionClick:this.onActionClick},null)])}});var sl=Object.defineProperty,ll=(e,t,a)=>(((e,t,a)=>{t in e?sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class rl{constructor(){ll(this,"component","IBizGridUAColumn")}async createController(e,t){const a=new aa(e,t);return await a.init(),a}}const cl=e("r",U(il,(function(e){e.component(il.name,il),ta("UAGRIDCOLUMN",(()=>new rl))})));const dl=a({name:"IBizGridFieldEditColumn",props:{controller:{type:na,required:!0},row:{type:Zt,required:!0},attrs:{type:Object,required:!1}},setup(e){const t=A("grid-field-edit-column"),a=n(),o=e.controller,{gridEditItemProps:i,editorProps:s}=(()=>{switch(ibiz.config.grid.editShowMode){case"cell":return function(e,t){const a=e.controller,n=l((()=>e.row.editColStates[a.fieldName].disabled)),o=l((()=>e.row.editColStates[a.fieldName].readonly)),i=l((()=>!!e.row.errors[a.fieldName])),s=l((()=>e.row.editColStates[a.fieldName].editable)),r=t=>{e.row.editColStates[a.fieldName].editable=t},c=l((()=>!n.value&&!o.value&&!i.value)),d=l((()=>i.value||c.value&&s.value)),u=l((()=>!d.value)),p=l((()=>!i.value)),h=l((()=>c.value&&!s.value)),m=l((()=>c.value||d.value));let v;return{gridEditItemProps:w({showEditMask:h,stopPropagation:m,onMaskClick:()=>{r(!0),v=G(t,(async e=>{r(!1),v.stop()}))}}),editorProps:w({autoFocus:p,disabled:!1,readonly:u,onBlur:()=>{ibiz.log.debug("".concat(a.fieldName,"属性编辑器blur事件")),r(!1),"cell-blur"===ibiz.config.grid.editSaveMode&&a.grid.save(e.row.data)},onFocus:()=>{v&&v.stop(),ibiz.log.debug("".concat(a.fieldName,"属性编辑器focus事件"))}})}}(e,a);case"row":return function(e){const t=e.controller,a=l((()=>e.row.editColStates[t.fieldName].disabled)),n=l((()=>e.row.editColStates[t.fieldName].readonly)),o=l((()=>e.row.editColStates[t.fieldName].editable)),i=l((()=>n.value||!o.value)),s=l((()=>o.value&&a.value)),r=l((()=>o.value));return{gridEditItemProps:w({stopPropagation:r}),editorProps:w({disabled:s,readonly:i})}}(e);case"all":return function(e){const t=e.controller,a=l((()=>e.row.editColStates[t.fieldName].disabled)),n=l((()=>e.row.editColStates[t.fieldName].readonly)),o=l((()=>e.controller.grid.state.rowEditOpen)),i=l((()=>n.value||!o.value)),s=l((()=>o.value&&a.value)),r=l((()=>o.value));return{gridEditItemProps:w({stopPropagation:r}),editorProps:w({disabled:s,readonly:i,onBlur:()=>{t.grid.save(e.row.data)}})}}(e);default:throw new vt(ibiz.i18n.t("control.common.noSupportItem",{name:ibiz.config.grid.editShowMode}))}})(),r=n(void 0),c=l((()=>{if(s.readonly){if(vo(r.value)){const t=e.row.data[o.fieldName];return o.formatValue(t)}return r.value}}));return{ns:t,c:o,componentRef:a,tooltip:c,rowDataChange:async(t,a)=>{ibiz.log.debug("".concat(o.fieldName,"值变更"),t),await o.setRowValue(e.row,t,a)},onInfoTextChange:e=>{r.value=e},gridEditItemProps:i,editorProps:s}},render(){var e;const t=this.row.data[this.c.fieldName];return o(i("iBizGridEditItem"),{ref:"componentRef",required:!this.c.editItem.allowEmpty,error:this.row.errors[this.c.fieldName],overflowMode:this.controller.grid.overflowMode,class:[this.ns,this.ns.m(this.c.grid.overflowMode),null==(e=this.controller.model.cellSysCss)?void 0:e.cssName],...this.gridEditItemProps},{default:()=>[this.c.editorProvider&&r(i(this.c.editorProvider.gridEditor),{class:this.ns.e("editor"),value:t,data:this.row.data,controller:this.c.editor,overflowMode:this.c.grid.overflowMode,onChange:this.rowDataChange,onInfoTextChange:this.onInfoTextChange,title:this.tooltip,...this.editorProps,...this.attrs})]})}});var ul=Object.defineProperty,pl=(e,t,a)=>(((e,t,a)=>{t in e?ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class hl{constructor(){pl(this,"component","IBizGridFieldEditColumn")}async createController(e,t){const a=new na(e,t);return await a.init(),a}}const ml=a({name:"IBizGridEditItem",props:{required:{type:Boolean,default:!1},showEditMask:{type:Boolean,default:!1},stopPropagation:{type:Boolean,default:!1},error:{type:String}},emits:{maskClick:e=>!0},setup(e,{emit:t}){const a=A("grid-edit-item"),n=l((()=>e.error));return{ns:a,tooltipContent:l((()=>e.error)),showTooltip:n,onClick:a=>{e.stopPropagation&&a.stopPropagation(),e.showEditMask&&t("maskClick",a)},onStopPropagation:t=>{e.stopPropagation&&t.stopPropagation()}}},render(){return o("div",{class:[this.ns.b(),this.ns.is("error",!!this.error),this.showEditMask&&this.ns.m("show-mask")],onDblclick:this.onStopPropagation,onClick:this.onClick},[o(i("el-tooltip"),{content:this.tooltipContent,disabled:!this.showTooltip,transfer:!0,"transfer-class-name":this.ns.e("tooltip-popper"),placement:"top"},{default:()=>{var e,t;return[o("div",{class:this.ns.e("tooltip")},[null==(t=(e=this.$slots).default)?void 0:t.call(e)])]}})])}}),vl=e("s",U(dl,(function(e){e.component(dl.name,dl),e.component(ml.name,ml),ta("DEFGRIDCOLUMN_EDIT",(()=>new hl))}))),bl=a({name:"IBizGridGroupColumn",props:{controller:{type:oa,required:!0},row:{type:Zt,required:!0}},setup:()=>({ns:A("grid-group-column")}),render(){return o("div",{class:[this.ns.b()]},null)}});var gl=Object.defineProperty,wl=(e,t,a)=>(((e,t,a)=>{t in e?gl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class fl{constructor(){wl(this,"component","")}async createController(e,t){const a=new oa(e,t);return await a.init(),a}}const yl=e("t",U(bl,(()=>{ta("GROUPGRIDCOLUMN",(()=>new fl))})));function Cl(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Il=a({name:"IBizRowEditPopover",props:{show:{type:Boolean,default:!1}},emits:{confirm:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const a=A("row-edit-popover"),o=()=>{t("cancel")},i=n(document);return H(i,"keydown",(t=>{e.show&&"Escape"===t.key&&o()}),{capture:!0}),{ns:a,onCancel:o,onConfirm:()=>{t("confirm")}}},render(){let e,t;return o("div",{class:[this.ns.b(),this.ns.is("hidden",!this.show)]},[o(i("el-button"),{onClick:this.onConfirm},Cl(e=ibiz.i18n.t("control.common.determine"))?e:{default:()=>[e]}),o(i("el-button"),{onClick:this.onCancel},Cl(t=ibiz.i18n.t("app.cancel"))?t:{default:()=>[t]})])}});function Dl(e){const t=n();let a=!1,o=!1;return c([()=>t.value,()=>e.state.isLoaded,()=>e.state.selectedData],(([n,o,i])=>{o&&n&&(e.state.singleSelect?i[0]?t.value.setCurrentRow(i[0],!0):t.value.setCurrentRow():(a=!0,t.value.clearSelection(),i.forEach((e=>t.value.toggleRowSelection(e,!0))),a=!1))})),c((()=>e.state.sortQuery),(a=>{if(a){const a=e.state.sortQuery.split(",")[0],n=e.state.sortQuery.split(",")[1];if(a&&n){const e="desc"===n?"descending":"ascending",i=()=>{t.value?u((()=>{o=!0,t.value.sort(a,e)})):setTimeout(i,500)};i()}}})),{tableRef:t,onRowClick:async function(t,a,n){if(t.srfuf!==ia.CREATE)if("row"===ibiz.config.grid.editShowMode&&e.model.enableRowEdit){const a=e.findRowState(t);a&&!0!==a.showRowEdit&&await e.switchRowEdit(a,!0)}else e.onRowClick(t)},onDbRowClick:function(t){t.srfuf!==ia.CREATE&&e.onDbRowClick(t)},onSelectionChange:function(t){a||e.setSelection(t)},onSortChange:function(t){if(o)return void(o=!1);const{prop:a,order:n}=t,i=e.fieldColumns[a].model.appDEFieldId;let s;"ascending"===n?s="asc":"descending"===n&&(s="desc"),"".concat(i,",").concat(s)!==e.state.sortQuery&&(e.setSort(i,s),e.load({isInitialLoad:2===e.model.pagingMode||3===e.model.pagingMode}))},handleRowClassName:function({row:t}){let a="";e.state.selectedData.length>0&&e.state.selectedData.forEach((e=>{e===t&&(a="current-row")}));const n=e.findRowState(t);return(null==n?void 0:n.showRowEdit)&&(a+=" editing-row"),t.srfkey&&(a+=" id-".concat(t.srfkey)),e.enableRowEditOrder&&(a+=" enable-order"),a},handleHeaderCellClassName:function({_row:t,column:a,_rowIndex:n,_columnIndex:o}){var i;const s=null==(i=e.model.degridColumns)?void 0:i.find((e=>e.codeName===a.property));return s&&s.headerSysCss&&s.headerSysCss.cssName?s.headerSysCss.cssName:""}}}function El(e){return{onPageChange:function(t){t&&t!==e.state.curPage&&(e.state.curPage=t,e.load())},onPageSizeChange:function(t){t&&t!==e.state.size&&(e.state.size=t,1===e.state.curPage&&e.load())},onPageRefresh:function(){e.load()}}}function Pl(e,t){const a=()=>{t.data&&(e.state.items=t.data,e.state.rows=t.data.map((t=>new Zt(new sa(t),e))),e.calcAggResult(e.state.items),e.calcTotalData())},n=l((()=>{var t;const a=Object.values(e.fieldColumns).find((t=>t.model.appDEFieldId===e.model.minorSortAppDEFieldId));return{prop:null==a?void 0:a.model.codeName,order:"desc"===(null==(t=e.model.minorSortDir)?void 0:t.toLowerCase())?"descending":"ascending"}}));e.evt.on("onCreated",(async()=>{t.isSimple&&(a(),e.state.isLoaded=!0)})),c((()=>t.data),(()=>{t.isSimple&&a()}),{deep:!0});const o=l((()=>{const t=e.state;if(e.model.enableGroup){const e=[];return t.groups.forEach((t=>{if(!t.children.length)return;const a=[...t.children],n=a.shift();e.push({tempsrfkey:(null==n?void 0:n.tempsrfkey)||t.caption,srfkey:(null==n?void 0:n.srfkey)||t.caption,isGroupData:!0,caption:t.caption,first:n,children:a})})),e}const{rowspankeys:a=[]}=e.controlParams;return a.length>0?function(e,t){const a=[],n=e[0]||"",o=t.filter((e=>(e[n]||a.push(e),e[n])));return o.sort(((t,a)=>{for(const n of e)if(t[n]!==a[n])return t[n]>a[n]?1:-1;return 0})),o.push(...a),o}(a,t.rows.map((e=>e.data))):t.rows.map((e=>e.data))})),i=l((()=>{if(e.isMultistageHeader)return e.model.degridColumns||[];const t=[];return e.state.columnStates.forEach((a=>{var n,o;if(a.hidden)return;const i=(null==(n=e.fieldColumns[a.key])?void 0:n.model)||(null==(o=e.uaColumns[a.key])?void 0:o.model);i&&t.push(i)})),t}));return{tableData:o,renderColumns:i,defaultSort:n,summaryMethod:({columns:t})=>t.map(((t,a)=>0===a?e.aggTitle:e.state.aggResult[t.property])),spanMethod:({row:t,column:a,rowIndex:n,columnIndex:s})=>{const{property:l}=a,{rowspankeys:r=[],colspankeys:c=[]}=e.controlParams;if(r.length>0&&r.includes(l)){const e=0===s||t[l];if(n>0&&e&&t[l]===o.value[n-1][l])return{rowspan:0,colspan:0};let a=1;for(let i=n+1;i<o.value.length&&(e&&o.value[i][l]===t[l]);i++)a+=1;return{rowspan:a,colspan:1}}if(c.length>0&&c.includes(l)){const e=i.value[s-1].codeName;if(s>0&&c.includes(e)&&t[l]===t[e])return{rowspan:0,colspan:0};let a=1;for(let e=s+1;e<i.value.length;e++){const n=i.value[e].codeName;if(!c.includes(n)||t[n]!==t[l])break;a+=1}return{rowspan:1,colspan:a}}},headerDragend:(t,a,n)=>{const{property:o}=n,s=e.columns[o];if(s.isAdaptiveColumn){s.isAdaptiveColumn=!1,s.model.width=t;const a=i.value.findIndex((t=>e.columns[t.codeName].isAdaptiveColumn));e.hasAdaptiveColumn=-1!==a}}}}function kl(e,t){let a=null,o=0;const i=n({}),s=E((()=>{e.value&&(()=>{if(window.ResizeObserver){const n=e.value.$el.querySelector(".el-table__header-wrapper");n&&(a=new ResizeObserver((e=>{const a=e[0].contentRect.height;if(a!==o){const e={"now-header-height":"".concat(a,"px")};i.value=t.cssVarBlock(e),o=a}})),a.observe(n))}})()}));return C((()=>{a&&a.disconnect(),s()})),{headerCssVars:i}}function Sl(e,t,a){if(!a.enableRowEditOrder)return{};let n=0,o=0,i=null,s=null;const l=[],r=e=>{let t="";return e.forEach((e=>{e.startsWith("id-")&&(t=e.replace("id-",""))})),t};return c([()=>e.value,()=>a.state.isLoaded],((t,c)=>{if(!c||!t)return;const d=e.value.$el;if(d){d.getElementsByClassName("el-table__row").forEach((e=>{(e=>{e.setAttribute("draggable","true");const t=bt(e,"dragstart",(e=>{if(e.target){const t=e.target;e.dataTransfer.effectAllowed="move";const o=r(t.classList);n=a.state.rows.findIndex((e=>e.data.srfkey===o)),i=a.state.rows[n]}})),c=bt(e,"dragenter",(e=>{e.preventDefault();const t=e.currentTarget,n=r(t.classList);o=a.state.rows.findIndex((e=>e.data.srfkey===n)),(null==i?void 0:i.data.srfkey)!==n&&-1!==o&&(s=a.state.rows[o])})),d=bt(e,"dragover",(e=>{e.preventDefault()})),u=bt(e,"dragend",(e=>{e.preventDefault(),i&&s&&a.onDragChange(i,s,o>n?"next":"prev")}));l.push(t),l.push(c),l.push(d),l.push(u)})(e)}))}})),{cleanup:()=>{l.forEach((e=>{e()}))}}}function xl(e,t){let a;const s=n(!1),l=n(),r=w({}),c=async t=>{const n=(t=>{if(!e.value)throw new vt(ibiz.i18n.t("control.common.citeErrMessage"));const a=e.value.$el;let n=".el-table__row";t.data.srfkey&&(n+=".id-".concat(t.data.srfkey));const o=a.querySelector(n);if(!o)throw new vt(ibiz.i18n.t("control.common.noDomErrMessage"));return o})(t);if(!a)throw new vt(ibiz.i18n.t("control.common.noPopErrMessage"));const o=a.$el,{x:i,y:c}=await Ko(n,o,{placement:"bottom"});Object.assign(r,{top:"".concat(c,"px"),left:"".concat(i,"px")}),l.value=t,s.value=!0},d=async()=>{l.value&&t.switchRowEdit(l.value,!1,!0)},u=async()=>{l.value&&t.switchRowEdit(l.value,!1,!1)};return t.evt.on("onRowEditChange",(e=>{e.row.showRowEdit?setTimeout((()=>{c(e.row)}),0):(l.value=void 0,s.value=!1,Object.assign(r,{top:void 0,left:void 0}))})),{renderPopover:()=>{const e=s.value&&t.state.rows[t.state.rows.length-1].showRowEdit;return[o("div",{class:"row-edit-popover__placeholder",style:{display:e?"block":"none"}},null),o(i("iBizRowEditPopover"),{ref:e=>{a=e},style:r,show:s.value,onConfirm:d,onCancel:u},null)]}}}var Tl=Object.defineProperty,zl=(e,t,a)=>(((e,t,a)=>{t in e?Tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Ol{constructor(){zl(this,"count",0),zl(this,"countRedirect",0),zl(this,"loading")}show(){0===this.count&&(this.loading=Zo.service({lock:!0,fullscreen:!0})),this.count+=1}hide(){this.count>0&&(this.count-=1),0===this.count&&this.loading&&this.loading.close()}showRedirect(){}hideRedirect(){}}e("a_",Ol);var _l=Object.defineProperty,Al=(e,t,a)=>(((e,t,a)=>{t in e?_l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Bl{constructor(){Al(this,"ns",A("message"))}info(e,t,a){ei.info({message:e,duration:t?1e3*t:t,showClose:a})}success(e,t,a){ei.success({message:e,duration:t?1e3*t:t,showClose:a})}warning(e,t,a){ei.warning({message:e,duration:t?1e3*t:t,showClose:a})}error(e,t,a){ei.error({message:e,duration:t?1e3*t:t,showClose:a})}formatParams(e){const t=go({type:"info"},e),a={};return Object.keys(t).forEach((e=>{const n=t[e];switch(e){case"duration":vo(n)||(a.duration=1e3*n);break;case"styleType":vo(n)||(a.customClass=this.ns.m(n));break;default:a[e]=n}})),a}notice(e){ei(this.formatParams(e))}}e("a$",Bl);class jl{async info(e){await ti.alert(e.desc,e.title,{...e.options,type:"info"})}async success(e){await ti.alert(e.desc,e.title,{...e.options,type:"success"})}async warning(e){await ti.alert(e.desc,e.title,{...e.options,type:"warning"})}async error(e){await ti.alert(e.desc,e.title,{...e.options,type:"error"})}async confirm(e){return new Promise((t=>{ti.confirm(e.desc,e.title,e).then((()=>t(!0))).catch((()=>t(!1)))}))}}e("b0",jl);var Ml=Object.defineProperty,Rl=(e,t,a)=>(((e,t,a)=>{t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Nl{constructor(){Rl(this,"ns",new gt("confirm"))}async info(e){return new Promise((t=>{ti.confirm(e.desc,e.title,{customClass:"".concat(this.ns.b()," ").concat(this.ns.e("info")),type:"info",cancelButtonClass:"".concat(this.ns.b("cancel")," el-button--info"),confirmButtonClass:"".concat(this.ns.b("ok")),...e.options}).then((()=>t(!0))).catch((()=>t(!1)))}))}async success(e){return new Promise((t=>{ti.confirm(e.desc,e.title,{customClass:"".concat(this.ns.b()," ").concat(this.ns.e("success")),cancelButtonClass:"".concat(this.ns.b("cancel")," el-button--info"),confirmButtonClass:"".concat(this.ns.b("ok")),type:"success",...e.options}).then((()=>t(!0))).catch((()=>t(!1)))}))}async warning(e){return new Promise((t=>{ti.confirm(e.desc,e.title,{customClass:"".concat(this.ns.b()," ").concat(this.ns.e("warning")),cancelButtonClass:"".concat(this.ns.b("cancel")," el-button--info"),confirmButtonClass:"".concat(this.ns.b("ok")),type:"warning",...e.options}).then((()=>t(!0))).catch((()=>t(!1)))}))}async error(e){return new Promise((t=>{ti.confirm(e.desc,e.title,{customClass:"".concat(this.ns.b()," ").concat(this.ns.e("error")),cancelButtonClass:"".concat(this.ns.b("cancel")," el-button--info"),confirmButtonClass:"".concat(this.ns.b("ok")),type:"error",...e.options}).then((()=>t(!0))).catch((()=>t(!1)))}))}}function Ll(e){return e.replaceAll(/<span data-w-e-type="emoji" class='emoji'>(.+?)<\/span>/g,((e,t)=>{const a=decodeURIComponent(atob(t));return"<span data-w-e-type=\"emoji\" class='emoji'>".concat(a,"</span>")}))}e("b1",Nl);var Vl=Object.defineProperty,Fl=(e,t,a)=>(((e,t,a)=>{t in e?Vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Ul{constructor(){Fl(this,"callStack",[]),Fl(this,"intervalId",null)}executeNext(){const e=this.callStack.shift();e?e():(clearInterval(this.intervalId),this.intervalId=null)}handleNotice(e,t){const a=e.duration?1e3*e.duration:4500,n=e.desc?Ll(e.desc):e.desc;ai({title:e.title,message:n,dangerouslyUseHTMLString:!!e.isHtmlDesc,type:t,position:e.position||"top-right",duration:a,customClass:e.class,onClick:e.onClick})}setTimer(){this.intervalId||(this.intervalId=setInterval((()=>{this.executeNext()}),50))}default(e){this.callStack.push((()=>this.handleNotice(e,""))),this.setTimer()}info(e){this.callStack.push((()=>this.handleNotice(e,"info"))),this.setTimer()}success(e){this.callStack.push((()=>this.handleNotice(e,"success"))),this.setTimer()}warning(e){this.callStack.push((()=>this.handleNotice(e,"warning"))),this.setTimer()}error(e){this.callStack.push((()=>this.handleNotice(e,"error"))),this.setTimer()}}e("b2",Ul);class ql{constructor(e){this.router=e}push(e){return W.open(this.router,e)}async root(e,t,a,n){const o=await ibiz.hub.config.view.get(e),{path:i}=await K(o,this.router.currentRoute.value,t,a);return n&&!0===n.replace?this.router.replace({path:i}):this.router.push({path:i}),{ok:!1}}async rootByModal(e,t,a){const n=await ibiz.hub.config.view.get(e),{path:o}=await Y(n,this.router.currentRoute.value,t,a);return this.push(o)}async modal(e,t,a){const n=await ibiz.hub.config.view.get(e),o={width:n.width||"80%",height:n.height||"80%",footerHide:!0,...n.modalOption};return X({context:t,params:a,viewId:n.id},o)}async popover(e,t,a,n,o={}){const i=await ibiz.hub.config.view.get(e),s={width:i.width,height:i.height,autoClose:!0,placement:"bottom",...o,...i.modalOption};return $(t,{context:a,params:n,viewId:i.id},s)}async drawer(e,t,a){const n=await ibiz.hub.config.view.get(e),o=J(n.openMode),i={width:n.width,height:n.height,placement:o,...n.modalOption};return Q({context:t,params:a,viewId:n.id},i)}async custom(e,t,a){const n=await ibiz.hub.config.view.get(e);throw ibiz.log.warn("openUserCustom",n,t,a),new Error}async popupApp(e,t,a){const n=await ibiz.hub.config.view.get(e),{path:o}=await K(n,this.router.currentRoute.value,t,a);window.open("".concat(wt.routeBase).concat(o),"_blank","popup")}}e("b3",ql);const Gl=a({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const a=A("popover"),o=n(!1),i=n(),s=n(),{zIndex:l}=ee(),r=l.increment(),c=w({}),{width:d,height:u}=e.opts;d&&(jo(d)?c.width=ft(d,"popover"):c.width=d),u&&(jo(u)?c.height=ft(u,"popover"):c.height=u);const p=new la({mode:ra.POPOVER,viewUsage:2,dismiss:e=>{l.decrement(),t.emit("dismiss",e)}});async function h(e){await p.dismiss(e)}let m=()=>{};C((()=>{m()}));return{ns:a,el:i,arrEl:s,isShow:o,modal:p,popoverZIndex:r,onMaskClick:()=>{!0===e.opts.autoClose&&h()},present:async function(t){o.value=!0,m=Yo(t,i.value,(()=>async function(e,t,a,n){const o=[Xo(n.offsetOpts||6),$o(),Jo()];n.noArrow||o.push(Qo({element:a}));const i={placement:n.placement,strategy:"absolute",middleware:o};n.options&&Object.assign(i,n.options);const s=await Ko(e,t,i);{const{x:e,y:o,placement:i,middlewareData:l}=s,{style:r}=t;if(r.left="".concat(e,"px"),r.top="".concat(o,"px"),!n.noArrow){const{x:e,y:t}=l.arrow,n={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];Object.assign(a.style,{left:null!=e?"".concat(e,"px"):"",top:null!=t?"".concat(t,"px"):"",right:"",bottom:"",[n]:"-4px"})}}}(t,i.value,s.value,e.opts)))},dismiss:h,customStyle:c}},render(){var e,t;const a=o("div",{class:[this.ns.b(),this.ns.is("show",this.isShow)],ref:"el",style:this.customStyle,onClick:e=>{e.stopPropagation()}},[!this.opts.noArrow&&o("div",{class:[this.ns.e("arrow")],ref:"arrEl"},null),null==(t=(e=this.$slots).default)?void 0:t.call(e,this.modal)]);return!0===this.opts.autoClose?o("div",{class:[this.ns.e("overlay")],style:{zIndex:this.popoverZIndex},onClick:()=>{this.onMaskClick()}},[a]):a}});const Hl=a({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const a=A("modal"),o=n(!1),{zIndex:i}=ee(),s=i.increment(),l=w({}),{width:r,height:c}=e.opts;r&&(jo(r)?l.width=ft(r,"modal"):l.width=r),c&&(jo(c)?l.height=ft(c,"modal"):l.height=c);const d=n({footerHide:!0,modalClass:""});e.opts&&Object.assign(d.value,e.opts);const u=new la({mode:d.value.isRouteModal?ra.ROUTE_MODAL:ra.MODAL,viewUsage:2,dismiss:e=>{i.decrement(),o.value=!1,t.emit("dismiss",e)}});return{ns:a,isShow:o,options:d,modalZIndex:s,customStyle:l,modal:u,present:()=>{o.value=!0},dismiss:e=>{u.dismiss(e)},onBeforeClose:async e=>{await u.dismiss()&&e()}}},render(){var e,t;return r(i("el-dialog"),{modelValue:this.isShow,alignCenter:!0,class:[this.ns.b(),this.options.placement&&this.ns.m(this.options.placement),this.options.modalClass],style:this.customStyle,zIndex:this.modalZIndex,beforeClose:this.onBeforeClose,...this.options},null==(t=(e=this.$slots).default)?void 0:t.call(e,this.modal))}});const Wl=a({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const a=A("drawer"),o=n(!1);let i;const{zIndex:s}=ee(),l=s.increment(),r=n("100%"),{width:c,height:d,placement:u}=e.opts;"top"!==u&&"bottom"!==u||(jo(d)?r.value=ft(d,"drawer"):r.value="100%"),"left"!==u&&"right"!==u||(jo(c)?r.value=ft(c,"drawer"):r.value=800);const p=new la({mode:ra.DRAWER,viewUsage:2,dismiss:e=>{s.decrement(),o.value=!1,i=e}});let h="";switch(e.opts.placement){case"left":h="ltr";break;case"top":h="ttb";break;case"bottom":h="btt";break;default:h="rtl"}return{ns:a,isShow:o,size:r,direction:h,drawerZIndex:l,modal:p,dismiss:e=>{p.dismiss(e)},present:()=>{o.value=!0},onClosed:()=>{t.emit("dismiss",i)},onBeforeClose:async e=>{await p.dismiss()&&e()}}},render(){var e,t;const a=this.opts||{};return r(i("el-drawer"),{modelValue:this.isShow,lockScroll:!0,size:this.size,class:this.ns.b(),zIndex:this.drawerZIndex,direction:this.direction,beforeClose:this.onBeforeClose,onClosed:this.onClosed,...a},null==(t=(e=this.$slots).default)?void 0:t.call(e,this.modal))}});const Kl=a({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const a=A("float-window"),o=n(),i=n(!1);let s;const{zIndex:l}=ee(),r=l.increment(),c=n({width:500,height:600,x:100,y:100});e.opts&&Object.assign(c.value,e.opts);const u=w({x:window.innerWidth-600,y:100,width:500,height:600,minWidth:300,minHeight:300}),p=()=>({left:"".concat(u.x,"px"),top:"".concat(u.y,"px"),height:"".concat(u.height,"px"),width:"".concat(u.width,"px"),zIndex:r}),h=()=>{Object.assign(o.value,p())};d((()=>{const e=o.value.getElementsByClassName(a.b("drag-handle")),t=e[0]?e[0]:o.value;ii(t).draggable({modifiers:[ii.modifiers.restrictRect({restriction:document.body,endOnly:!0})],cursorChecker:()=>"move",listeners:{move:e=>{u.x+=e.dx,u.y+=e.dy,h()}}}),ii(o.value).resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},margin:6,modifiers:[ii.modifiers.restrictEdges({outer:document.body}),ii.modifiers.restrictSize({min:{width:u.minWidth,height:u.minHeight}})],inertia:!0,listeners:{move:e=>{u.x+=e.deltaRect.left,u.y+=e.deltaRect.top,u.width=e.rect.width,u.height=e.rect.height,h()}}})}));const m=new la({mode:ra.MODAL,viewUsage:2,dismiss:e=>{l.decrement(),i.value=!1,s=e}});return{ns:a,isShow:i,options:c,modalZIndex:r,modal:m,calcStyle:p,present:()=>{i.value=!0},dismiss:e=>{m.dismiss(e)},onClosed:()=>{t.emit("dismiss",s)},containerRef:o}},render(){var e,t;return o("div",{class:[this.ns.b(),this.ns.is("show",this.isShow),this.options.windowClass],style:this.calcStyle(),"z-index":this.modalZIndex,ref:"containerRef"},[o("div",{class:this.ns.b("header")},[o("div",{class:this.ns.be("header","caption")},null),o("div",{class:this.ns.b("actions")},[o("i",{class:this.ns.b("action-item"),onClick:()=>{this.dismiss()}},null)])]),o("div",{class:this.ns.b("content")},[null==(t=(e=this.$slots).default)?void 0:t.call(e,this.modal),b("+")])])}});function Yl(e){return Ro(e)?i(e):e}class Xl{popover(e,t,a,n){const o=this.createPopover(t,a,n);return o.present(e),o.onWillDismiss()}createPopover(e,t,a){return function(e,t){return new Z(Gl,e,t)}(Mo(e)?e:()=>r(Yl(e),{...t}),a)}drawer(e,t,a){const n=this.createDrawer(e,t,a);return n.present(),n.onWillDismiss()}createDrawer(e,t,a){return function(e,t){return new te(Wl,e,t)}(Mo(e)?e:()=>r(Yl(e),{...t}),a)}async modal(e,t,a){const n=this.createModal(e,t,a);return n.present(),n.onWillDismiss()}createModal(e,t,a){return function(e,t){return new te(Hl,e,t)}(Mo(e)?e:()=>r(Yl(e),{...t}),a)}async floatWindow(e,t,a){const n=this.createFloatWindow(e,t,a);return n.present(),n.onWillDismiss()}createFloatWindow(e,t,a){return function(e,t){return new te(Kl,e,t)}(Mo(e)?e:()=>r(Yl(e),{...t}),a)}}function $l(e){return{onPageChange:function(t){t&&t!==e.state.curPage&&(e.state.curPage=t,e.load())},onPageSizeChange:function(t){t&&t!==e.state.size&&(e.state.size=t,1===e.state.curPage&&e.load())},onPageRefresh:function(){e.load()}}}e("b4",Xl);var Jl=Object.defineProperty,Ql=(e,t,a)=>(((e,t,a)=>{t in e?Jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Zl{constructor(){Ql(this,"doingNotice")}async showAsyncAction(e){const t=A("async-action-notice"),a=await ca(e);if(a.render){const n=ai({customClass:t.b(),message:a.render({action:e,onClose:()=>{n.close()}}),position:"bottom-right",duration:0})}}showDoingNotice(e){if(this.doingNotice)Object.assign(this.doingNotice.info,e);else{const t=w(e),a=ai({message:r(zi,{info:t}),onClose:()=>{this.closeDoingNotice()},position:"bottom-right",duration:0});this.doingNotice={info:t,close:()=>a.close()}}}closeDoingNotice(){this.doingNotice&&(this.doingNotice.close(),this.doingNotice=void 0)}}e("b6",Zl);class er{renderViewShell(e,t,a,n,o={}){const s={viewId:e,modelData:t,context:a,params:n,...o};return r(i("IBizViewShell"),s)}renderCtrlShell(e,t,a,n={}){const o={modelData:e,context:t,params:a,...n};return r(i("IBizControlShell"),o)}renderComponent(e,t){return r(i(e),t)}}e("b7",er);class tr{constructor(e){this.router=e}async login(e,t,a,n,o){const i=await ibiz.auth.login(e,t,a,n);return!0===i&&(window.location.hash=this.router.currentRoute.value.query.ru||"/",window.history.pushState({},""),window.location.reload()),i}async logout(e){const t=await ibiz.auth.logout();if(t){const e=window.location;if(-1!==e.search.indexOf("isAnonymous=true")){const t="".concat(e.origin).concat(e.pathname).concat(e.hash);window.history.replaceState({},"",t)}await this.router.push("/login"),ibiz.util.showAppLoading(),window.location.reload()}return t}async changePwd(e,t,a){if(this.validatePwd(e,t,a)){return await ibiz.auth.changePwd(e,t)}return{ok:!1,result:{}}}switchOrg(e,t,a){throw new Error("Method not implemented.")}switchTheme(e,t,a){throw new Error("Method not implemented.")}switchLanguage(e,t,a){throw new Error("Method not implemented.")}validatePwd(e,t,a={}){const{surePwd:n}=a;return e?t?n?e===t?(ibiz.message.error("新密码不能与旧密码一致"),!1):t===n||(ibiz.message.error("两次密码不一致"),!1):(ibiz.message.error("确认密码不能为空"),!1):(ibiz.message.error("新密码不能为空"),!1):(ibiz.message.error("原密码不能为空"),!1)}}e("b8",tr);var ar=Object.defineProperty,nr=(e,t,a)=>(((e,t,a)=>{t in e?ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class or{constructor(){nr(this,"FullscreenClass","")}openElementFullscreen(e,t){if(!this.FullscreenClass&&t&&t.class&&(this.FullscreenClass=t.class),!document.fullscreenElement&&e){e.requestFullscreen(),this.FullscreenClass&&e.classList.toggle(this.FullscreenClass),e.style.background="white";const t=document.createElement("div");t.id="fullscreen",t.style.position="absolute",t.style.bottom="20px",t.style.left="45%",e.appendChild(t);const a=I(ps);a.use(ni),a.mount(t)}}closeElementFullscreen(){document.exitFullscreen()}}function ir(e,t){var a;const n={};return null==(a=e.controlAttributes)||a.forEach((e=>{e.attrName&&e.attrValue&&(n[e.attrName]=ua.execSingleLine(e.attrValue,{...t}))})),n}function sr(e,t,a,n){var s,l;if("GROUPGRIDCOLUMN"===t.columnType){const n=(null==(s=t.degridColumns)?void 0:s.filter((e=>!e.hideDefault&&!e.hiddenDataItem)))||[],{width:r}=t,c=(null==(l=t.align)?void 0:l.toLowerCase())||"center";return o(i("el-table-column"),{prop:t.codeName,label:t.caption,"min-width":r,align:c},{default:()=>n.map(((t,n)=>sr(e,t,a,n)))})}return function(e,t,a,n){var s;const{codeName:l,width:c}=t,d=e.columns[l],u=e.state.columnStates.find((e=>e.key===l)),p=d.isAdaptiveColumn||!e.hasAdaptiveColumn&&n===a.length-1?"min-width":"width";return o(i("el-table-column"),v({label:t.caption,prop:l},{[p]:c},{fixed:u.fixed,sortable:!!t.enableSort&&"custom",align:(null==(s=t.align)?void 0:s.toLowerCase())||"center"}),{default:({row:a})=>{let n=a;a.isGroupData&&(n=a.first);const o=e.findRowState(n);if(o){const a=i(e.providers[l].component);return r(a,{controller:d,row:o,key:n.tempsrfkey+l,attrs:ir(t,{...e.getEventArgs(),data:o.data})})}return null}})}(e,t,a,n)}e("b9",or);const lr=a({name:"IBizGridControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0},rowEditOpen:{type:Boolean,default:void 0},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1},loadDefault:{type:Boolean,default:!0}},setup(e,{slots:t}){const a=F(((...e)=>new da(...e))),s=A("control-".concat(a.model.controlType.toLowerCase())),{zIndex:r}=ee();a.state.zIndex=r.increment();const{tableRef:d,onRowClick:u,onDbRowClick:p,onSelectionChange:h,onSortChange:m,handleRowClassName:v,handleHeaderCellClassName:g}=Dl(a),{onPageChange:w,onPageRefresh:f,onPageSizeChange:y}=$l(a),{headerCssVars:I}=kl(d,s),{cleanup:D=yt}=Sl(d,0,a),{tableData:E,renderColumns:k,defaultSort:S,summaryMethod:x,spanMethod:T,headerDragend:z}=Pl(a,e),{renderPopover:O}=xl(d,a);C((()=>{r.decrement(),D!==yt&&D()}));const _=l((()=>2!==a.model.pagingMode||(a.state.items.length>=a.state.total||a.state.isLoading||a.state.total<=a.state.size))),B=n(),j=n(lo());return c((()=>a.state.curPage),(()=>{var e,t;if(1===a.state.curPage&&(2===a.model.pagingMode||3===a.model.pagingMode)){j.value=lo();const a=null==(t=null==(e=B.value)?void 0:e.ElInfiniteScroll)?void 0:t.containerEl;a&&(a.lastScrollTop=0,a.scrollTop=0)}})),{c:a,ns:s,tableRef:d,tableData:E,renderColumns:k,renderTableColumn:(e,n)=>t[e.id]?P(t,e.id,{model:e,data:a.state.items}):sr(a,e,k.value,n),onDbRowClick:p,onRowClick:u,onSelectionChange:h,onSortChange:m,onPageChange:w,onPageSizeChange:y,onPageRefresh:f,handleRowClassName:v,handleHeaderCellClassName:g,renderNoData:()=>{var e;const{isLoaded:t}=a.state;if(t){const t=null==(e=a.model.controls)?void 0:e.find((e=>e.name==="".concat(a.model.name,"_quicktoolbar")));return t?o(i("iBizToolbarControl"),{modelData:t,context:a.context,params:a.params,class:s.b("quick-toolbar")},null):o(i("iBizNoData"),{text:a.model.emptyText,emptyTextLanguageRes:a.model.emptyTextLanguageRes,enableShowImage:a.state.hideNoDataImage},null)}return o("div",null,null)},summaryMethod:x,spanMethod:T,headerDragend:z,renderPopover:O,defaultSort:S,renderBatchToolBar:()=>{var e;const t=null==(e=a.model.controls)?void 0:e.find((e=>e.name==="".concat(a.model.name,"_batchtoolbar")));if(t&&!a.state.singleSelect)return o("div",{class:[s.b("batch-toolbar"),s.is("show",a.state.selectedData.length>0)]},[o("div",{class:s.b("batch-toolbar-content")},[o("div",{class:s.b("batch-toolbar-text")},[ibiz.i18n.t("control.common.itemsSelected",{length:a.state.selectedData.length})]),o("div",{class:s.b("batch-toolbar-separator")},[b("|")]),o(i("iBizToolbarControl"),{modelData:t,context:a.context,params:a.params,class:s.b("batch-toolbar-items")},null)])])},headerCssVars:I,renderDragIconColumn:()=>o(i("el-table-column"),{"class-name":s.e("drag-icon"),type:"default",width:"16"},{default:()=>o("svg",{viewBox:"0 0 16 16",class:"icon",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false"},[o("g",{id:"drag-icon/drag--","stroke-width":"1","fill-rule":"evenodd"},[o("g",{id:"drag-icon",transform:"translate(5 1)","fill-rule":"nonzero"},[o("path",{d:"M1 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM1 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",id:"drag-icon-air"},null)])])])}),isLodeMoreDisabled:_,infiniteScroll:B,infiniteScrollKey:j}},render(){if(!this.c.state.isCreated)return;const e=this.c.state,t="true"===this.c.controlParams.defaultexpandall;return o(i("iBizControlBase"),{class:[this.ns.is("show-header",!this.c.state.hideHeader),this.ns.is("enable-page",this.c.state.enablePagingBar),this.ns.is("enable-group",this.c.model.enableGroup),this.ns.is("single-select",e.singleSelect),this.ns.is("empty",0===e.items.length),this.ns.is("enable-customized",this.c.model.enableCustomized)],controller:this.c,style:this.headerCssVars},{default:()=>[o(i("el-table"),v({ref:"tableRef",class:this.ns.e("table"),"default-sort":this.defaultSort,border:!0,"show-header":!this.c.state.hideHeader,"show-summary":this.c.enableAgg,"summary-method":this.summaryMethod,"highlight-current-row":e.singleSelect,"row-class-name":this.handleRowClassName,"header-cell-class-name":this.handleHeaderCellClassName,"row-key":"tempsrfkey",data:this.tableData,"default-expand-all":t,"span-method":this.spanMethod,onRowClick:this.onRowClick,onRowDblclick:this.onDbRowClick,onSelectionChange:this.onSelectionChange,onSortChange:this.onSortChange,onHeaderDragend:this.headerDragend,"tooltip-effect":"light","scrollbar-always-on":!0},this.$attrs),{empty:this.renderNoData,default:()=>[this.c.enableRowEditOrder&&this.renderDragIconColumn(),!e.singleSelect&&o(i("el-table-column"),{"class-name":this.ns.e("selection"),type:"selection",width:"55"},null),this.renderColumns.map(((e,t)=>this.renderTableColumn(e,t)))],append:()=>{let e;return[h(o("div",{ref:"infiniteScroll",key:this.infiniteScrollKey,"infinite-scroll-distance":10,"infinite-scroll-disabled":this.isLodeMoreDisabled},null),[[g("infinite-scroll"),()=>this.c.loadMore()]]),3===this.c.model.pagingMode&&!(this.c.state.items.length>=this.c.state.total||this.c.state.isLoading||this.c.state.total<=this.c.state.size)&&o("div",{class:this.ns.e("load-more-button")},[o(i("el-button"),{text:!0,onClick:()=>this.c.loadMore()},(t=e=ibiz.i18n.t("control.common.loadMore"),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]}))]),this.renderPopover()];var t}}),this.c.state.enablePagingBar&&1===this.c.model.pagingMode&&o(i("iBizPagination"),{total:e.total,curPage:e.curPage,size:e.size,totalPages:e.totalPages,onChange:this.onPageChange,onPageSizeChange:this.onPageSizeChange,onPageRefresh:this.onPageRefresh},null),this.c.model.enableCustomized&&!this.c.state.hideHeader&&o("div",{class:this.ns.b("setting-box")},[o(i("iBizGridSetting"),{columnStates:e.columnStates,controller:this.c},null)]),this.renderBatchToolBar()]})}});var rr=Object.defineProperty,cr=(e,t,a)=>(((e,t,a)=>{t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class dr{constructor(){cr(this,"component","IBizGridControl")}}const ur=e("l",U(lr,(e=>{e.component(lr.name,lr),e.component(Il.name,Il),e.use(ol),e.use(cl),e.use(vl),e.use(yl),Xt($t.GRID,(()=>new dr))})));function pr(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const hr=a({name:"IBizListControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0},isSimple:{type:Boolean,required:!1},loadDefault:{type:Boolean,default:!0}},setup(e){const t=F(((...e)=>new pa(...e))),a=A("control-".concat(t.model.controlType.toLowerCase())),{onPageChange:s,onPageRefresh:r,onPageSizeChange:d}=$l(t),u=l((()=>!0===t.model.enablePagingBar||(2!==t.model.pagingMode||(t.state.items.length>=t.state.total||t.state.isLoading||t.state.total<=t.state.size)))),p=n(),m=n(lo()),v=n();"true"===t.controlParams.defaultexpandall&&(c((()=>t.state.groups),(()=>{t.state.groups.length>0&&(v.value=t.state.groups.map((e=>e.key)))})),v.value=t.state.groups.map((e=>e.key))),c((()=>t.state.curPage),(()=>{var e,a;if(1===t.state.curPage&&(2===t.model.pagingMode||3===t.model.pagingMode)){m.value=lo();const t=null==(a=null==(e=p.value)?void 0:e.ElInfiniteScroll)?void 0:a.containerEl;t&&(t.lastScrollTop=0,t.scrollTop=0)}}));const b=(e,n)=>{const{context:s,params:l}=t,r=t.state.selectedData.findIndex((t=>t.srfkey===e.srfkey)),c=[a.b("item"),a.is("active",-1!==r)];return o(i("iBizControlShell"),{class:c,data:e,modelData:n,context:s,params:l,onClick:()=>t.onRowClick(e),onDblclick:()=>t.onDbRowClick(e)},null)},w=e=>{const n=t.state.selectedData.findIndex((t=>t.srfkey===e.srfkey)),i=[a.b("item"),a.is("active",-1!==n)];return o("div",{class:i,key:e.srfkey,onClick:()=>t.onRowClick(e),onDblclick:()=>t.onDbRowClick(e)},["".concat(No(e.srfmajortext)?"":e.srfmajortext)])},f=t=>{const n=e.modelData.itemLayoutPanel;return o(i("el-collapse-item"),{title:ht(t.caption),class:a.be("group-content","item"),name:t.key},{default:()=>[t.children.length>0?t.children.map((e=>n?b(e,n):w(e))):o("div",{class:a.bem("group-content","item","empty")},[ibiz.i18n.t("app.noData")])]})};return{c:t,ns:a,infiniteScroll:p,renderListContent:()=>{let n;if(t.model.enableGroup&&!t.state.isSimple)return o(i("el-collapse"),{modelValue:v.value,"onUpdate:modelValue":e=>v.value=e,class:[a.b("group-content"),a.b("content")]},{default:()=>{var e;return[null==(e=t.state.groups)?void 0:e.map((e=>o("div",{class:[a.b("scroll-item")]},[f(e)])))]}});const s=e.modelData.itemLayoutPanel;return h(o("div",{class:[a.b("scroll"),a.b("content")],"infinite-scroll-distance":10,"infinite-scroll-disabled":u.value,ref:"infiniteScroll",key:m.value},[t.state.items.map((e=>o("div",{class:[a.b("scroll-item")]},[s?b(e,s):w(e)]))),3===t.model.pagingMode&&!(t.state.items.length>=t.state.total||t.state.isLoading||t.state.total<=t.state.size)&&o("div",{class:a.e("load-more-button")},[o(i("el-button"),{text:!0,onClick:()=>t.loadMore()},pr(n=ibiz.i18n.t("control.common.loadMore"))?n:{default:()=>[n]})])]),[[g("infinite-scroll"),()=>t.loadMore()]])},renderNoData:()=>{let e;const{isLoaded:n}=t.state;if(n)return n&&o(i("iBizNoData"),{class:a.b("content"),text:t.model.emptyText,emptyTextLanguageRes:t.model.emptyTextLanguageRes,enableShowImage:t.state.hideNoDataImage},pr(e=(()=>{var e;const a=null==(e=t.model.controls)?void 0:e.find((e=>e.name==="".concat(t.model.name,"_quicktoolbar")));if(a)return o(i("iBizToolbarControl"),{modelData:a,context:t.context,params:t.params},null)})())?e:{default:()=>[e]})},renderBatchToolBar:()=>{var e;const n=null==(e=t.model.controls)?void 0:e.find((e=>e.name==="".concat(t.model.name,"_batchtoolbar")));if(n)return o("div",{class:a.b("batchtoolbar")},[o(i("iBizToolbarControl"),{modelData:n,context:t.context,params:t.params},null)])},onPageChange:s,onPageRefresh:r,onPageSizeChange:d}},render(){let e=null;return this.c.state.isCreated&&(e=[this.c.state.items.length>0?this.renderListContent():this.renderNoData(),this.renderBatchToolBar(),this.c.state.enablePagingBar&&1===this.c.model.pagingMode?o(i("iBizPagination"),{class:this.ns.e("pagination"),total:this.c.state.total,curPage:this.c.state.curPage,size:this.c.state.size,totalPages:this.c.state.totalPages,onChange:this.onPageChange,onPageSizeChange:this.onPageSizeChange,onPageRefresh:this.onPageRefresh},null):null]),o(i("iBizControlBase"),{class:[this.ns.is("enable-page",!!this.c.state.enablePagingBar)],controller:this.c},pr(e)?e:{default:()=>[e]})}});var mr=Object.defineProperty,vr=(e,t,a)=>(((e,t,a)=>{t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class br{constructor(){vr(this,"component","IBizListControl")}}const gr=e("v",U(hr,(function(e){e.component(hr.name,hr),Xt($t.LIST,(()=>new br))}))),wr=a({name:"IBizSearchFormControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new ha(...e))),t=A("control-".concat(e.model.controlType.toLowerCase()));return e.evt.on("onCreated",(()=>{Object.keys(e.details).forEach((t=>{const a=e.details[t];a.state=w(a.state)}))})),{c:e,ns:t}},render(){const{state:e}=this.c;if(e.isCreated)return o(i("iBizFormControl"),{class:[this.ns.b()],controller:this.c,onKeyup:e=>this.c.onKeyUp(e)},{...this.$slots})}});var fr=Object.defineProperty,yr=(e,t,a)=>(((e,t,a)=>{t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Cr{constructor(){yr(this,"component","IBizSearchFormControl")}}const Ir=e("w",U(wr,(function(e){e.component(wr.name,wr),Xt($t.SEARCHFORM,(()=>new Cr))})));function Dr(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Er=a({name:"IBizFormGroupPanel",props:{modelData:{type:Object,required:!0},controller:{type:ma,required:!0}},setup(e){const t=A("form-group"),a=n(!e.controller.defaultExpansion),o=l((()=>{const{captionItemName:t,caption:a}=e.modelData;return t?e.controller.data[t]:a}));return{ns:t,isCollapse:a,captionText:o,changeCollapse:()=>{e.controller.disableClose||(a.value=!a.value)},onActionClick:async(t,a)=>{await e.controller.onActionClick(t,a)}}},render(){var e,t;let a;const{state:n}=this.controller,s=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],l=o(i("iBizRow"),{class:this.ns.be("content","row"),layout:this.modelData.layout},Dr(a=s.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Dr(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]}),r=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];!0===this.modelData.showCaption&&(r.push(this.ns.m("show-header")),r.push(this.ns.b("collapse")),r.push(this.ns.is("collapse",this.isCollapse)),this.controller.disableClose&&r.push(this.ns.bm("collapse","disable-close")),2===this.modelData.showMoreMode&&r.push(this.ns.m("show-more")));let c=null;this.modelData.showCaption&&(c=o("div",{class:[this.ns.b("header")],onClick:this.changeCollapse},[o("div",{class:[this.ns.be("header","left")]},[o("div",{class:[this.ns.e("caption"),...this.controller.labelClass]},[this.captionText])]),o("div",{class:[this.ns.be("header","right")]},[this.modelData.uiactionGroup&&o(i("iBizActionToolbar"),{class:this.ns.e("toolbar"),"action-details":this.modelData.uiactionGroup.uiactionGroupDetails,"actions-state":n.actionGroupState,onActionClick:this.onActionClick,caption:this.modelData.uiactionGroup.name,mode:"ITEMS"===this.modelData.actionGroupExtractMode?"dropdown":"buttons"},null),void 0!==this.modelData.titleBarCloseMode&&0!==this.modelData.titleBarCloseMode&&(this.isCollapse?o("ion-icon",{name:"caret-forward-sharp"},null):o("ion-icon",{name:"caret-down-sharp"},null))])]));let d=null;return 2===this.modelData.showMoreMode&&(d=o("div",{class:[this.ns.b("footer")]},[o("div",{class:this.ns.be("footer","show-more-button"),onClick:()=>{n.isShowMore=!n.isShowMore}},[n.isShowMore?ibiz.i18n.t("app.retract"):ibiz.i18n.t("control.form.formGroupPanel.showMore")])])),o("div",{class:r,onClick:e=>this.controller.onClick(e)},[c,o("div",{class:[this.ns.b("content")]},[l]),d])}});var Pr=Object.defineProperty,kr=(e,t,a)=>(((e,t,a)=>{t in e?Pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Sr{constructor(){kr(this,"component","IBizFormGroupPanel")}async createController(e,t,a){const n=new ma(e,t,a);return await n.init(),n}}const xr=e("x",U(Er,(function(e){e.component(Er.name,Er),va("GROUPPANEL",(()=>new Sr))})));const Tr=a({name:"IBizFormItem",props:{modelData:{type:Object,required:!0},controller:{type:ba,required:!0},attrs:{type:Object,required:!1}},setup:e=>({ns:A("form-item"),c:e.controller,onValueChange:(t,a)=>{e.controller.setDataValue(t,a)}}),render(){var e,t;if(!this.c.state.visible||"HIDDEN"===(null==(e=this.controller.model.editor)?void 0:e.editorType))return null;let a=null;const n={style:null==(t=this.controller.editor)?void 0:t.style,value:this.controller.value,data:this.controller.data,controller:this.controller.editor,disabled:this.controller.state.disabled,readonly:this.controller.state.readonly,onChange:this.onValueChange,controlParams:this.controller.form.controlParams,onFocus:e=>this.c.onFocus(e),onBlur:e=>this.c.onBlur(e),onEnter:e=>this.controller.onEnter(e),...this.attrs};if(this.c.form.state.isLoaded)if(this.$slots.default)a=this.$slots.default(n);else if(this.controller.editorProvider){const e=i(this.controller.editorProvider.formEditor);a=r(e,{...n})}else a=o(i("not-supported-editor"),{modelData:this.modelData.editor},null);return o(i("iBizFormItemContainer"),{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass],style:this.modelData.cssStyle,required:this.c.state.required,error:this.c.state.error,label:this.c.labelCaption,labelClass:this.controller.labelClass,"label-pos":this.c.model.labelPos,"label-width":this.c.model.labelWidth,enableInputTip:this.modelData.enableInputTip,inputTip:this.modelData.inputTip,inputTipUrl:this.modelData.inputTipUrl,inputTipClosable:this.modelData.inputTipClosable,onClick:e=>this.c.onClick(e)},"function"==typeof(l=a)||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?a:{default:()=>[a]});var l}}),zr=e("z",a({name:"IBizFormItemContainer",props:{required:{type:Boolean,required:!0},error:{type:String},label:{type:String},labelClass:{type:Array},labelPos:{type:String,required:!0},labelWidth:{type:Number,default:130},enableInputTip:{type:Boolean},inputTip:{type:String},inputTipUrl:{type:String},inputTipClosable:{type:Boolean}},setup(e){const t=A("form-item-container"),a=n(),s=l((()=>130!==e.labelWidth?t.cssVarBlock({"label-width":"".concat(e.labelWidth,"px")}):{})),r=()=>{a.value&&a.value.hide()};return{ns:t,cssVars:s,tooltip:a,renderLabel:()=>{const a=[t.e("label"),...e.labelClass||[]];return e.enableInputTip?o(i("el-tooltip"),{effect:"light",offset:4,"popper-class":t.e("popper"),ref:"tooltip"},{default:()=>o("div",{class:a},[e.label]),content:()=>o("div",{class:t.em("label","tooltip")},[e.inputTip||e.label,e.inputTipUrl&&o("a",{href:e.inputTipUrl,target:"_blank"},[ibiz.i18n.t("component.formItemContainer.more")]),e.inputTipClosable&&o("ion-icon",{name:"close-circle",onClick:r},null)])}):o("div",{class:a,title:ht(e.label)},[e.label])}}},render(){var e,t;const a=o("div",{class:[this.ns.e("content"),this.ns.em("content","label-".concat(this.labelPos.toLowerCase()))]},[o("div",{class:[this.ns.e("editor")]},[null==(t=(e=this.$slots).default)?void 0:t.call(e)]),this.error?o("div",{title:ht(this.error),class:[this.ns.e("error")]},[this.error]):null]);return o("div",{class:[this.ns.b(),this.ns.m(this.labelPos.toLowerCase()),this.ns.is("required",this.required),this.ns.is("error",!!this.error)],style:this.cssVars},["LEFT"===this.labelPos||"TOP"===this.labelPos?this.renderLabel():null,a,"RIGHT"===this.labelPos||"BOTTOM"===this.labelPos?this.renderLabel():null])}}));var Or=Object.defineProperty,_r=(e,t,a)=>(((e,t,a)=>{t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Ar{constructor(){_r(this,"component","IBizFormItem")}async createController(e,t,a){const n=new ba(e,t,a);return await n.init(),n}}const Br=e("y",U(Tr,(function(e){e.component(Tr.name,Tr),e.component(zr.name,zr),va("FORMITEM",(()=>new Ar))})));const jr=a({name:"IBizFormPage",props:{modelData:{type:Object,required:!0}},setup(e){const t=A("form-page");let a="top";return e.modelData.tabHeaderPos&&(a=e.modelData.tabHeaderPos.toLowerCase()),{ns:t,position:a}},render(){var e,t,a,n;let l;const{noTabHeader:r}=this.modelData,c=(null==(a=null==(t=(e=this.$slots).default)?void 0:t.call(e)[0])?void 0:a.children)||[];return 1===c.length||r?o("div",{class:[this.ns.b(),this.ns.m("no-tab-header")]},[c]):o(i("el-tabs"),{class:[this.ns.b(),this.ns.b("tab"),this.ns.e(this.position)],"model-value":null==(n=c[0])?void 0:n.key,"tab-position":this.position},"function"==typeof(d=l=c.map((e=>{const t=e.props;if(!t||!t.controller)return e;const a=t.controller;return a.state.visible||a.state.keepAlive?o(i("el-tab-pane"),{class:this.ns.b("tab-item"),name:a.model.id,lazy:!0},{default:()=>e,label:()=>o("span",{class:a.labelClass},[a.model.sysImage?o(i("iBizIcon"),{icon:a.model.sysImage},null):null,a.model.caption])}):null})))||"[object Object]"===Object.prototype.toString.call(d)&&!s(d)?l:{default:()=>[l]});var d}});function Mr(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Rr=e("B",a({name:"IBizFormPageItem",props:{modelData:{type:Object,required:!0},controller:{type:ga,required:!0}},setup:()=>({ns:A("form-page-item")}),render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return n.forEach((e=>{var t;const a=null==(t=e.component)?void 0:t.data;a&&(a.class={[this.ns.b("child")]:!0})})),o(i("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass],layout:this.modelData.layout},Mr(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Mr(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]})}}));var Nr=Object.defineProperty,Lr=(e,t,a)=>(((e,t,a)=>{t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Vr{constructor(){Lr(this,"component","IBizFormPageItem")}async createController(e,t,a){const n=new ga(e,t);return await n.init(),n}}const Fr=e("A",U(jr,(function(e){e.component(jr.name,jr),e.component(Rr.name,Rr),va("FORMPAGE",(()=>new Vr))}))),Ur=a({name:"IBizFormButton",props:{modelData:{type:Object,required:!0},controller:{type:wa,required:!0}},setup:e=>({ns:A("form-button"),captionText:l((()=>{const{caption:t,captionItemName:a}=e.modelData;return a&&e.controller.data[a]?e.controller.data[a]:t}))}),render(){return this.controller.state.visible?o("div",{class:[this.ns.b(),this.ns.m(this.modelData.codeName),this.ns.is("loading",this.controller.state.loading),this.modelData.detailStyle&&this.ns.m(this.modelData.detailStyle.toLowerCase()),...this.controller.containerClass]},[o(i("el-button"),{sime:"small",onClick:this.controller.onClick.bind(this.controller),loading:this.controller.state.loading,disabled:this.controller.state.disabled,title:ht(this.modelData.tooltip)},{default:()=>[o("div",{class:this.ns.b("content")},[o(i("iBizIcon"),{class:this.ns.bm("content","icon"),icon:this.modelData.sysImage},null),this.modelData.showCaption?o("span",{class:this.ns.bm("content","caption")},[this.captionText]):null])]})]):null}});var qr=Object.defineProperty,Gr=(e,t,a)=>(((e,t,a)=>{t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Hr{constructor(){Gr(this,"component","IBizFormButton")}async createController(e,t,a){const n=new wa(e,t,a);return await n.init(),n}}const Wr=e("C",U(Ur,(function(e){e.component(Ur.name,Ur),va("BUTTON",(()=>new Hr))}))),Kr=a({name:"IBizFormDRUIPart",props:{modelData:{type:Object,required:!0},controller:{type:fa,required:!0}},setup(e){const t=A("form-druipart");ae(e.controller);return{ns:t,onCreated:t=>{e.controller.setEmbedView(t.view)}}},render(){if(!this.controller.state.visible&&!this.controller.state.keepAlive||!this.controller.state.viewComponentKey)return null;const e=i("IBizViewShell");return o("div",{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],onClick:e=>this.controller.onClick(e)},[r(e,{context:this.controller.navContext,params:this.controller.navParams,key:this.controller.state.viewComponentKey,viewId:this.controller.model.appViewId,state:{noLoadDefault:!0},onCreated:this.onCreated}),this.controller.state.showMask&&o("div",{class:this.ns.e("mask")},[this.modelData.maskInfo||ibiz.i18n.t("control.form.formDruipart.saveFirst")])])}});var Yr=Object.defineProperty,Xr=(e,t,a)=>(((e,t,a)=>{t in e?Yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class $r{constructor(){Xr(this,"component","IBizFormDRUIPart")}async createController(e,t,a){const n=new fa(e,t,a);return await n.init(),n}}const Jr=e("E",U(Kr,(function(e){e.component(Kr.name,Kr),va("DRUIPART",(()=>new $r))}))),Qr=a({name:"IBizFormMDCtrl",props:{modelData:{type:Object,required:!0},controller:{type:ya,required:!0}},setup(e){const t=A("form-mdctrl");ae(e.controller);const a=e.controller,n=a.model.showCaption&&!!a.model.caption;return{c:a,ns:t,hasCaption:n,hasHeader:n||a.model.uiactionGroup,onActionClick:async(t,a)=>{await e.controller.onActionClick(t,a)}}},render(){const{model:e}=this.c;let t;switch(e.contentType){case"GRID":case"LIST":case"DATAVIEW":t=o(i("iBizFormMDCtrlMD"),{controller:this.c},null);break;case"FORM":t=o(i("iBizFormMDCtrlForm"),{controller:this.c},null);break;case"REPEATER":t=o(i("iBizFormMDCtrlRepeater"),{controller:this.c},null);break;default:o("div",null,[ibiz.i18n.t("app.noSupport")])}return o("div",{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass,this.hasCaption?this.ns.m("show-caption"):""]},[this.hasHeader&&o("div",{class:this.ns.b("header")},[o("div",{class:this.ns.e("title")},[this.hasCaption?this.c.model.caption:""]),e.uiactionGroup&&o(i("iBizActionToolbar"),{class:this.ns.e("toolbar"),"action-details":e.uiactionGroup.uiactionGroupDetails,"actions-state":this.controller.state.actionGroupState,onActionClick:this.onActionClick},null)]),t])}});const Zr=a({name:"IBizFormMDCtrlForm",props:{controller:{type:Ca,required:!0}},setup(e){const t=A("form-mdctrl-form"),a=l((()=>e.controller.enableCreate||e.controller.enableDelete));return{ns:t,showActions:a,onCreated:(t,a)=>{e.controller.setFormController(t,a.ctrl)},renderAddBtn:()=>{let a;return o(i("el-button"),{class:[t.be("item-actions","create"),t.be("item-actions","btn")],onClick:()=>e.controller.create()},"function"==typeof(n=a=ibiz.i18n.t("app.add"))||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?a:{default:()=>[a]});var n}}},render(){const{state:e,formProvider:t,model:a}=this.controller;return"STYLE2"===a.detailStyle?o(i("iBizMDCtrlContainer2"),{controller:this.controller,items:e.items},{item:({data:e})=>{if(!t)return o("div",null,[ibiz.i18n.t("control.form.formMDctrlForm.noFindProvider")]);return r(i(t.component),{class:this.ns.be("item","form"),key:e.id,modelData:a.contentControl,context:e.context,params:e.params,onCreated:t=>{this.onCreated(e.id,t)}})}}):o(i("iBizMDCtrlContainer"),{class:this.ns.b(),items:e.items,enableCreate:this.controller.enableCreate,enableDelete:this.controller.enableDelete,onAddClick:()=>this.controller.create(),onRemoveClick:e=>this.controller.remove(e.id)},{item:({data:e})=>{if(!t)return o("div",null,[ibiz.i18n.t("control.form.formMDctrlForm.noFindProvider")]);return r(i(t.component),{class:this.ns.be("item","form"),key:e.id,modelData:a.contentControl,context:e.context,params:e.params,onCreated:t=>{this.onCreated(e.id,t)}})}})}});function ec(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const tc=a({name:"IBizFormMDCtrlMD",props:{controller:{type:Ia,required:!0}},setup(e){const t=A("form-mdctrl-md"),a=l((()=>e.controller.enableCreate||e.controller.enableDelete)),o=n(!1);return{ns:t,showActions:a,isSelected:o,onCreated:t=>{e.controller.setMDControl(t.ctrl)},onSelectionChange:e=>{o.value=e.data.length>0}}},render(){let e,t;const{mdProvider:a,model:n}=this.controller;let s=null;if(this.controller.form.state.isLoaded){const e={class:this.ns.b("content"),modelData:n.contentControl,context:this.controller.form.context,params:this.controller.form.params,onCreated:this.onCreated,onSelectionChange:this.onSelectionChange};"GRID"===n.contentType&&(e.rowEditOpen=!0),s=r(i(a.component),e)}return o("div",{class:this.ns.b()},[s,this.showActions&&o("div",{class:this.ns.b("actions")},[this.controller.enableCreate&&o(i("el-button"),{class:[this.ns.be("actions","create"),this.ns.be("actions","btn")],onClick:()=>this.controller.create()},ec(e=ibiz.i18n.t("app.add"))?e:{default:()=>[e]}),this.controller.enableDelete&&o(i("el-button"),{type:"danger",disabled:!this.isSelected,class:[this.ns.be("actions","remove"),this.ns.be("actions","btn")],onClick:()=>this.controller.remove()},ec(t=ibiz.i18n.t("app.delete"))?t:{default:()=>[t]})])])}}),ac=a({name:"IBizRepeaterSingleForm",props:{data:{type:Object,required:!0},controller:{type:Da,required:!0}},emits:{change:e=>!0,created:e=>!0},setup(e,{emit:t}){const a=A("repeater-single-form");return{ns:a,onFormDataChange:e=>{const a=(e=>{const t={};return e.$dataUIMap.forEach((a=>{void 0!==e[a.dataKey]&&(t[a.dataKey]=e[a.dataKey])})),t})(e.data[0]);t("change",a)},onCreated:e=>{t("created",e)}}},render(){if(!this.controller.repeatedForm)throw new vt(ibiz.i18n.t("control.form.repeaterSingleForm.errorMessage"));return o(i("iBizControlShell"),{class:this.ns.b(),context:this.controller.context,params:this.controller.params,modelData:this.controller.repeatedForm,isSimple:!0,data:this.data,onFormDataChange:this.onFormDataChange,onCreated:this.onCreated},null)}}),nc=a({name:"IBizRepeaterMultiForm",props:{controller:{type:Da,required:!0}},emits:{change:e=>!0},setup:(e,{emit:t})=>({ns:A("repeater-multi-form"),onValueChange:(a,n)=>{const o=[...e.controller.value];o[n]=a,t("change",o)},onCreated:(t,a)=>{e.controller.setRepeaterController("".concat(t),a.ctrl)}}),render(){const e=this.controller.value;return o(i("iBizMDCtrlContainer"),{class:this.ns.b(),items:e,enableCreate:this.controller.enableCreate,enableDelete:this.controller.enableDelete,onAddClick:()=>this.controller.create(),onRemoveClick:(e,t)=>this.controller.remove(t)},{item:({data:e,index:t})=>o(ac,{key:t,data:e,controller:this.controller,onChange:e=>{this.onValueChange(e,t)},onCreated:e=>this.onCreated(t,e)},null)})}});function oc(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const ic=a({name:"IBizRepeaterGrid",props:{controller:{type:Da,required:!0}},emits:{change:e=>!0},setup(e,{emit:t}){const a=A("repeater-grid"),n=[];Ct(e.controller.repeatedForm,(e=>{"FORMITEM"===e.detailType&&n.push(e)}),{childrenFields:["deformPages","deformTabPages","deformDetails"]});const s=ne(),l=w([]),r=async(a={})=>{const n=new Ea(e.controller.repeatedForm,e.controller.context,e.controller.params,s);n.state.isSimple=!0,await n.created(),n.setSimpleData(a),l.push(n),e.controller.setRepeaterController("".concat(l.length-1),n),n.evt.on("onFormDataChange",(a=>{((a,n)=>{const o=[...e.controller.value];o[n]=a,t("change",o)})({...a.data[0]},l.indexOf(n))}))};c((()=>e.controller.value),(e=>{e&&e.length>0&&(e.forEach(((e,t)=>{const a=l[t];if(a){const t=e||{};Object.keys(a.data).find((e=>t[e]!==a.data[e]))&&a.setSimpleData(t)}else r(e)})),e.length<l.length&&l.forEach(((t,a)=>{a>=e.length&&(t.state.isLoaded=!1)})))}),{immediate:!0,deep:!0});return{ns:a,formItems:n,formControllers:l,renderRemoveBtn:t=>{let n;return e.controller.enableDelete?ibiz.config.form.mdCtrlConfirmBeforeRemove?o(i("el-popconfirm"),{title:ht(ibiz.i18n.t("control.form.repeaterGrid.promptInformation")),"confirm-button-text":ibiz.i18n.t("app.confirm"),"cancel-button-text":ibiz.i18n.t("app.cancel"),onConfirm:()=>e.controller.remove(t)},{reference:()=>{let e;return o(i("el-button"),{text:!0,type:"danger",class:[a.be("index","remove")]},oc(e=ibiz.i18n.t("app.delete"))?e:{default:()=>[e]})}}):o(i("el-button"),{text:!0,type:"danger",class:[a.be("index","remove")],onClick:()=>e.controller.remove(t)},oc(n=ibiz.i18n.t("app.delete"))?n:{default:()=>[n]}):null}}},render(){let e;return o("div",{class:this.ns.b()},[this.controller.enableCreate&&o(i("el-button"),{class:this.ns.e("add-btn"),onClick:()=>{this.controller.create()}},oc(e=ibiz.i18n.t("app.add"))?e:{default:()=>[e]}),o(i("el-table"),{class:this.ns.e("table"),"show-header":!0,data:this.controller.value,"cell-class-name":({columnIndex:e})=>0===e?this.ns.b("index"):""},{default:()=>[o(i("el-table-column"),{type:"index",width:66,align:"center"},{default:e=>{const{$index:t}=e;return this.controller.enableDelete?[this.renderRemoveBtn(t),o("span",{class:this.ns.be("index","text")},[t+1])]:o("span",null,[t+1])}}),this.formItems.length>0&&this.formItems.map((e=>{const t=e.labelWidth;let a="";return"number"==typeof t&&(a="".concat(t,"px")),o(i("el-table-column"),{label:e.caption,prop:e.id,width:a,align:"center"},{default:t=>{const{$index:a}=t,n=k(this.formControllers[a]);if(!n||!n.state.isLoaded)return o("div",null,[ibiz.i18n.t("control.form.repeaterGrid.absentOrLoad")]);const s=n.formItems.find((t=>t.name===e.id));let l=null;if(s.editorProvider){const e=i(s.editorProvider.formEditor);l=r(e,{value:s.value,data:s.data,controller:s.editor,disabled:s.state.disabled,readonly:s.state.readonly,onChange:(e,t)=>{s.setDataValue(e,t)}})}else l=o(i("not-supported-editor"),{modelData:e.editor},null);return o(i("iBizGridEditItem"),{error:s.state.error,required:s.state.required},oc(l)?l:{default:()=>[l]})}})}))]})])}}),sc=a({name:"IBizFormMDCtrlRepeater",props:{controller:{type:Da,required:!0}},setup:e=>({ns:A("form-mdctrl-repeater"),onDataChange:t=>{e.controller.setValue(t)}}),render(){const e=[this.ns.b()];switch(this.controller.repeaterStyle){case"MultiForm":return o(nc,{class:e,onChange:this.onDataChange,controller:this.controller},null);case"Grid":return o(ic,{class:e,controller:this.controller,onChange:this.onDataChange},null);case"SingleForm":return o(ac,{class:e,data:this.controller.value,controller:this.controller,onChange:this.onDataChange},null);default:return o("div",{class:e},[ibiz.i18n.t("control.form.formMDctrlRepeater.noSupportStyle",{repeaterStyle:this.controller.repeaterStyle})])}}});var lc=Object.defineProperty,rc=(e,t,a)=>(((e,t,a)=>{t in e?lc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class cc{constructor(){rc(this,"component","IBizFormMDCtrl")}async createController(e,t,a){let n;switch(e.contentType){case"LIST":case"GRID":case"DATAVIEW":n=new Ia(e,t,a);break;case"FORM":n=new Ca(e,t,a);break;case"REPEATER":n=new Da(e,t,a);break;default:throw new It(e,"".concat(ibiz.i18n.t("control.form.formMDctrl.errorMessage",{contentType:e.contentType})))}return await n.init(),n}}function dc(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const uc=a({name:"IBizMDCtrlContainer",props:{enableCreate:{type:Boolean,required:!0},enableDelete:{type:Boolean,required:!0},items:{type:Object,required:!0}},emits:{addClick:()=>!0,removeClick:(e,t)=>!0},setup(e,{emit:t}){const a=A("mdctrl-container"),n=l((()=>e.enableCreate||e.enableDelete));return{ns:a,showActions:n,renderAddBtn:()=>{let e;return o(i("el-button"),{class:[a.be("item-actions","create"),a.be("item-actions","btn")],onClick:()=>t("addClick")},dc(e=ibiz.i18n.t("app.add"))?e:{default:()=>[e]})},renderRemoveBtn:(n,s)=>{let l;return e.enableDelete?ibiz.config.form.mdCtrlConfirmBeforeRemove?o(i("el-popconfirm"),{title:ht(ibiz.i18n.t("control.form.mdCtrlContainer.promptInformation")),"confirm-button-text":ibiz.i18n.t("app.confirm"),"cancel-button-text":ibiz.i18n.t("app.cancel"),onConfirm:()=>t("removeClick",n,s)},{reference:()=>{let e;return o(i("el-button"),{type:"danger",class:[a.be("item-actions","remove"),a.be("item-actions","btn")]},dc(e=ibiz.i18n.t("app.delete"))?e:{default:()=>[e]})}}):o(i("el-button"),{type:"danger",class:[a.be("item-actions","remove"),a.be("item-actions","btn")],onClick:()=>t("removeClick",n,s)},dc(l=ibiz.i18n.t("app.delete"))?l:{default:()=>[l]}):null}}},render(){var e;return o("div",{class:this.ns.b()},[(null==(e=this.items)?void 0:e.length)?this.items.map(((e,t)=>{const a=this.$slots.item?this.$slots.item({data:e,index:t}):o("div",null,[ibiz.i18n.t("control.form.mdCtrlContainer.noSlot")]);return o("div",{class:this.ns.b("item")},[a,this.showActions&&o("div",{class:this.ns.b("item-actions")},[0===t&&this.enableCreate&&this.renderAddBtn(),this.renderRemoveBtn(e,t)])])})):o("div",{class:this.ns.b("no-data")},[this.enableCreate&&o("div",{class:this.ns.b("item-actions")},[this.renderAddBtn()])])])}}),pc=a({name:"IBizMDCtrlContainer2",components:{draggable:Do},props:{controller:{type:Ca,required:!0},items:{type:Array,default:()=>[]}},setup(e){const t=A("mdctrl-container2"),a=n("");c((()=>e.items),(()=>{var t;a.value||(a.value=(null==(t=e.items[0])?void 0:t.id)||"")}),{immediate:!0});const o=n(""),i=n(),s=n(!1),l=n(!1),r=n(!0);let u;const p=()=>{if(i.value){const e=i.value.$el;e&&(s.value=e.scrollLeft>0,l.value=e.scrollLeft<e.scrollWidth-e.offsetWidth,r.value=e.offsetWidth>e.scrollWidth)}};d((()=>{i.value&&i.value.$el&&(u=new ResizeObserver((e=>{e.forEach((()=>{p()}))})),u.observe(i.value.$el))})),C((()=>{u&&u.disconnect()}));return{ns:t,currentItem:a,draggingKey:o,container:i,isShowLeftArrow:s,isShowRightArrow:l,isShowBorder:r,handleSelect:(e,t)=>{e.stopPropagation(),a.value=t.id},handleAdd:t=>{var n;t.stopPropagation(),e.controller.create(),a.value=(null==(n=e.items[e.items.length-1])?void 0:n.id)||""},handleRemove:async(t,n)=>{var o;t.stopPropagation(),await e.controller.remove(n.id),a.value===n.id&&(a.value=(null==(o=e.items[0])?void 0:o.id)||""),p()},handleArrowClick:(e,a)=>{if(e.stopPropagation(),i.value){const e=i.value.$el;if(e){const n=Array.from(e.children||[]).find((e=>e.classList.contains(t.b("header-item"))));if(n){const t=n.offsetWidth;"right"===a&&(e.scrollLeft+=t),"left"===a&&(e.scrollLeft-=t)}p()}}},handleDragStart:e=>{o.value=e.id},handleDragEnd:()=>{o.value="",e.controller.updateData(),p()}}},render(){return o("div",{class:this.ns.b()},[o("div",{class:[this.ns.b("header")]},[o(Do,{ref:"container",class:[this.ns.b("header-content")],list:this.items,ghostClass:this.ns.bm("header-item","ghost"),itemKey:"id"},{item:({element:e})=>o("div",{class:[this.ns.b("header-item"),this.draggingKey&&this.ns.bm("header-item","dragging"),this.draggingKey===e.id&&this.ns.bm("header-item","drag"),this.currentItem===e.id&&this.ns.bm("header-item","active")],onDragstart:()=>{this.handleDragStart(e)},onDragend:()=>{this.handleDragEnd()},onClick:t=>{this.handleSelect(t,e)}},[o("div",{class:this.ns.be("header-item","drag-icon")},[o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{"stroke-width":"1","fill-rule":"evenodd"},[o("g",{transform:"translate(5 1)","fill-rule":"nonzero"},[o("path",{d:"M1 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM1 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"},null)])])])]),o("div",{class:this.ns.be("header-item","text")},[e.title]),this.controller.enableDelete&&o("div",{class:this.ns.be("header-item","btn"),title:ht(ibiz.i18n.t("app.delete")),onClick:t=>{this.handleRemove(t,e)}},[o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{"stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M4.002 3.403V1a1 1 0 0 1 1-1h6.003a1 1 0 0 1 1 1v2.403h3.396a.6.6 0 1 1 0 1.2h-1.395V15a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.603H.6a.6.6 0 1 1 0-1.2h3.4zm8.804 1.205H3.2V14.8h9.605V4.608zM5.202 1.2v2.155h5.603V1.2H5.202zm.6 6.417a.6.6 0 0 1 1.201 0v4.758a.6.6 0 0 1-1.2 0V7.617zm3.202 0a.6.6 0 0 1 1.2 0v4.758a.6.6 0 0 1-1.2 0V7.617z"},null)])])])]),footer:()=>[this.controller.enableCreate&&o("div",{class:[this.ns.b("header-item"),!this.isShowBorder&&this.ns.bm("header-item","hidden-border")],onClick:e=>{this.handleAdd(e)}},[o("div",{class:this.ns.be("header-item","icon")},[o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{"stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M8.578 7.383V1.602a.601.601 0 1 0-1.2 0v5.781H1.6a.601.601 0 0 0 0 1.203h5.777v5.812a.601.601 0 1 0 1.2 0V8.586H14.4a.601.601 0 0 0 0-1.203H8.578z"},null)])])]),o("div",{class:this.ns.be("header-item","text")},[ibiz.i18n.t("app.add")])]),this.isShowLeftArrow&&o("div",{class:this.ns.b("header-left-arrow"),onClick:e=>{this.handleArrowClick(e,"left")}},[o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{"stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M7.028 10.976l5.951-5.952a.6.6 0 0 1 1.024.425V11.4a.6.6 0 0 1-.6.6H7.452a.6.6 0 0 1-.424-1.024z",transform:"scale(-1 1) rotate(-45 0 32.15)"},null)])])]),this.isShowRightArrow&&o("div",{class:this.ns.b("header-right-arrow"),onClick:e=>{this.handleArrowClick(e,"right")}},[o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[o("g",{"stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M3.028 10.976l5.951-5.952a.6.6 0 0 1 1.024.425V11.4a.6.6 0 0 1-.6.6H3.452a.6.6 0 0 1-.424-1.024z",transform:"rotate(-45 6.003 8)"},null)])])])]})]),o("div",{class:this.ns.b("content")},[this.items.map((e=>{var t,a;return o("div",{key:e.id,class:this.ns.b("content-item"),style:{display:e.id!==this.currentItem?"none":""}},[null==(a=(t=this.$slots).item)?void 0:a.call(t,{data:e})])}))])])}}),hc=e("F",U(Qr,(function(e){e.component(Qr.name,Qr),e.component(Zr.name,Zr),e.component(tc.name,tc),e.component(sc.name,sc),e.component(uc.name,uc),e.component(pc.name,pc),va("MDCTRL",(()=>new cc))}))),mc=a({name:"IBizFormRawItem",props:{modelData:{type:Object,required:!0},controller:{type:Pa,required:!0}},setup(e){const t=A("form-raw-item"),a=e.controller,o=n(""),i=l((()=>!(!e.controller.form.controlParams||"hover"!==e.controller.form.controlParams.editmode)));return c((()=>a.data),(async e=>{if(e){const t=a.model.rawItem;if(!t)return;let n="";const i={...e};"RAW"===t.contentType?n=t.caption:"HTML"===t.contentType&&(n=t.content),n&&t.templateMode&&(n=await ibiz.util.hbs.render(n.replaceAll("//n","\n"),Object.assign(i,{data:{...e}}))),o.value=n}}),{immediate:!0}),{ns:t,content:o,showFormDefaultContent:i}},render(){var e;return this.controller.state.visible?o(i("iBizRawItem"),{class:[this.ns.b(),...this.controller.containerClass,this.ns.is("show-default",this.showFormDefaultContent),this.ns.is("form-text",["TEXT","RAW"].includes((null==(e=this.modelData.rawItem)?void 0:e.contentType)||""))],rawItem:this.modelData,content:this.content,onClick:e=>this.controller.onClick(e)},null):null}});var vc=Object.defineProperty,bc=(e,t,a)=>(((e,t,a)=>{t in e?vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class gc{constructor(){bc(this,"component","IBizFormRawItem")}async createController(e,t,a){const n=new Pa(e,t,a);return await n.init(),n}}const wc=e("G",U(mc,(function(e){e.component(mc.name,mc),va("RAWITEM",(()=>new gc))})));function fc(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const yc=a({name:"IBizFormTabPanel",props:{modelData:{type:Object,required:!0},controller:{type:ka,required:!0}},setup(e,{slots:t}){const a=A("form-tab-panel");ae(e.controller);let o=null;const i=w({}),s=n(""),l=e=>{i.value=e};return d((()=>{var a,n;const i=(null==(a=t.default)?void 0:a.call(t))||[];for(let e=0;e<i.length;e++){const t=null==(n=i[e].props)?void 0:n.controller;if(t&&t.model&&t.model.appCounterRefId){s.value=t.model.appCounterRefId;break}}s.value&&(o=e.controller.getCounter(s.value),o&&o.onChange(l))})),C((()=>{null==o||o.offChange(l)})),{ns:a,onTabClick:(t,a)=>{e.controller.onTabChange(t.props.name);const n=e.controller.form.details[t.props.name];n&&n.onClick(a)},counterData:i}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=e=>o("span",{class:[this.ns.b("tab-item-content"),...e.labelClass]},[e.model.sysImage&&o(i("iBizIcon"),{icon:e.model.sysImage},null),e.model.showCaption&&e.model.caption]);return o(i("el-tabs"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],"model-value":this.controller.state.activeTab,onTabClick:this.onTabClick},fc(a=n.map((e=>{const t=e.props;if(!t||!t.controller)return e;const a=t.controller;return a.state.visible||a.state.keepAlive?o(i("el-tab-pane"),{class:this.ns.b("tab-item"),label:a.model.caption,name:a.model.id,lazy:!0},{default:()=>e,label:()=>{let e;const t=a.model.counterId?this.counterData.value[a.model.counterId]:void 0;return a.model.counterId?o(i("el-badge"),{class:this.ns.e("badge"),value:t,hidden:!t&&0!==t||1===a.model.counterMode&&t<=0},fc(e=s(a))?e:{default:()=>[e]}):s(a)}}):null})))?a:{default:()=>[a]})}});var Cc=Object.defineProperty,Ic=(e,t,a)=>(((e,t,a)=>{t in e?Cc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Dc{constructor(){Ic(this,"component","IBizFormTabPanel")}async createController(e,t,a){const n=new ka(e,t,a);return await n.init(),n}}const Ec=e("H",U(yc,(function(e){e.component(yc.name,yc),va("TABPANEL",(()=>new Dc))})));function Pc(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const kc=a({name:"IBizFormTabPage",props:{modelData:{type:Object,required:!0},controller:{type:Sa,required:!0}},setup(e){const t=A("form-tab-page");return ae(e.controller),{ns:t}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return o(i("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],layout:this.modelData.layout,onClick:e=>this.controller.onClick(e)},Pc(a=n.map((e=>{const t=e.props;if(!t||!t.controller)return e;const a=t.controller;return o(i("iBizCol"),{layoutPos:a.model.layoutPos,state:a.state},Pc(e)?e:{default:()=>[e]})})))?a:{default:()=>[a]})}});var Sc=Object.defineProperty,xc=(e,t,a)=>(((e,t,a)=>{t in e?Sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Tc{constructor(){xc(this,"component","IBizFormTabPage")}async createController(e,t,a){const n=new Sa(e,t,a);return await n.init(),n}}const zc=e("J",U(kc,(function(e){e.component(kc.name,kc),va("TABPAGE",(()=>new Tc))})));var Oc=Object.defineProperty,_c=(e,t,a)=>(((e,t,a)=>{t in e?Oc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Ac{constructor(){_c(this,"component","IBizEditFormControl")}}const Bc=a({name:"IBizEditFormControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},isSimple:{type:Boolean,required:!1},data:{type:Object,required:!1},loadDefault:{type:Boolean,default:!0}},setup(e){const t=F(((...e)=>new Ea(...e)),{excludePropsKeys:["data"]});e.isSimple&&(t.evt.on("onMounted",(()=>{t.setSimpleData(e.data||{})})),c((()=>e.data),(e=>{const a=e||{};Object.keys(t.data).find((e=>a[e]!==t.data[e]))&&t.setSimpleData(a)}),{deep:!0}));const a=A("control-".concat(t.model.controlType.toLowerCase()));return t.evt.on("onCreated",(()=>{Object.keys(t.details).forEach((e=>{const a=t.details[e];a.state=w(a.state)}))})),{c:t,ns:a}},render(){return o(i("iBizFormControl"),{class:this.ns.b(),controller:this.c},{...this.$slots})}}),jc=e("K",U(Bc,(function(e){e.component(Bc.name,Bc),Xt($t.FORM,(()=>new Ac))})));const Mc=a({name:"IBizFormControl",props:{controller:{type:Object,required:!0}},setup(e,{slots:t}){const a=A("control-form"),n=e.controller,s={form:n},l=t=>{var a;const n={};return null==(a=t.controlAttributes)||a.forEach((t=>{t.attrName&&t.attrValue&&(n[t.attrName]=ua.execSingleLine(t.attrValue,{...e.controller.getEventArgs(),data:e.controller.data}))})),n},c=e=>{if(e.hidden)return;const a=e.id;if(t[a])return P(t,a,{model:e,data:n.state.data,value:n.state.data[a]});const s={};"FORMITEM"===e.detailType&&t["".concat(a,"_editor")]&&(s.default=(...e)=>t["".concat(a,"_editor")](...e));const d=Ht(e);d.length&&(s.default=()=>d.map((e=>c(e))));const u=n.providers[a];if(!u)return o("div",null,[ibiz.i18n.t("control.form.noSupportDetailType",{detailType:e.detailType})]);const p=i(u.component);return r(p,{modelData:e,controller:n.details[a],key:e.id,attrs:l(e)},s)},d=e=>{const{modelData:t}=e;return(t instanceof Array?t:[t]).map((e=>c(e)))};return d.props=["modelData"],s.FormDetail=d,{ns:a,c:n,FormDetail:d,slotProps:s,renderByDetailType:c}},render(){const{state:e,model:t,controlPanel:a}=this.c,{isCreated:n}=e,l={};if(n)if(this.$slots.default)l.default=()=>this.$slots.default({...this.slotProps});else{const e=t.controlType===$t.SEARCHFORM?"searchform":"form";l[a?e:"default"]=()=>o(i("iBizFormPage"),{modelData:this.c.model,controller:this.c},{default:()=>{var e;return[null==(e=this.c.model.deformPages)?void 0:e.map((e=>this.renderByDetailType(e)))]}})}return o(i("iBizControlBase"),{class:[this.ns.b()],controller:this.c},"function"==typeof(r=l)||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?l:{default:()=>[l]});var r}}),Rc=e("L",U(Mc,(function(e){e.component(Mc.name,Mc),e.use(Fr),e.use(Br),e.use(xr),e.use(Wr),e.use(Jr),e.use(hc),e.use(wc),e.use(Ec),e.use(zc)})));function Nc(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Lc=a({name:"IBizExportExcel",props:{mode:{type:String,required:!1},size:{type:String,required:!1},item:{type:Object,required:!0},btnContent:{type:Function,required:!0},controller:{type:Object}},emits:["exportExcel"],setup(e,{emit:t}){const a=A("export-excel"),o=n(1),i=n(9999);return{ns:a,endPage:i,startPage:o,onCommand:(e,a)=>{e&&t("exportExcel",a,{type:e,startPage:o.value,endPage:i.value})}}},render(){return"menu"===this.$props.mode?o(i("el-sub-menu"),{index:this.$props.item.id,class:this.ns.b("submenu"),"popper-class":this.ns.b("submenu-popper")},{title:()=>{let e;return o(i("el-button"),{title:ht(this.item.tooltip),size:this.$props.size,class:this.ns.b("submenu-button")},Nc(e=this.btnContent(this.item))?e:{default:()=>[e]})},default:()=>{let e,t,a,n;return[o(i("el-menu-item"),{class:this.ns.b("menu-item"),onClick:e=>this.onCommand("maxRowCount",e)},Nc(e=ibiz.i18n.t("control.toolbar.exportExcel.exportAll"))?e:{default:()=>[e]}),o(i("el-menu-item"),{class:this.ns.b("menu-item"),onClick:e=>this.onCommand("activatedPage",e)},Nc(t=ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage"))?t:{default:()=>[t]}),o(i("el-menu-item"),{class:this.ns.b("menu-item"),onClick:e=>this.onCommand("selectedRows",e)},Nc(a=ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect"))?a:{default:()=>[a]}),o(i("el-menu-item"),{class:[this.ns.b("menu-item"),this.ns.e("custom")]},{default:()=>[o(i("el-input"),{type:"number",modelValue:this.startPage,"onUpdate:modelValue":e=>this.startPage=e,size:"small",maxlength:"4",onClick:e=>{e.stopPropagation()},onChange:e=>{this.startPage=e}},null),o("span",{class:"item-text",onClick:e=>{e.stopPropagation()}},[b("-")]),o(i("el-input"),{modelValue:this.endPage,"onUpdate:modelValue":e=>this.endPage=e,size:"small",type:"number",maxlength:"4",onClick:e=>{e.stopPropagation()}},null),o("span",{class:"item-text",onClick:e=>{e.stopPropagation()}},[ibiz.i18n.t("control.toolbar.exportExcel.page")]),o(i("el-button"),{onClick:e=>this.onCommand("customPage",e),size:"small"},Nc(n=ibiz.i18n.t("control.toolbar.exportExcel.export"))?n:{default:()=>[n]})]})]}}):o(i("el-dropdown"),{size:this.$props.size,onCommand:this.onCommand,"popper-class":this.ns.b(),trigger:"click"},{default:()=>{let e;return o(i("el-button"),{title:ht(this.item.tooltip),size:this.$props.size,class:this.ns.e("button")},Nc(e=this.btnContent(this.item))?e:{default:()=>[e]})},dropdown:()=>{let e,t,a,n;return o(i("el-dropdown-menu"),null,{default:()=>[o(i("el-dropdown-item"),{command:"maxRowCount"},Nc(e=ibiz.i18n.t("control.toolbar.exportExcel.exportAll"))?e:{default:()=>[e]}),o(i("el-dropdown-item"),{command:"activatedPage"},Nc(t=ibiz.i18n.t("control.toolbar.exportExcel.expCurrentPage"))?t:{default:()=>[t]}),o(i("el-dropdown-item"),{command:"selectedRows"},Nc(a=ibiz.i18n.t("control.toolbar.exportExcel.expCurrentSelect"))?a:{default:()=>[a]}),o(i("el-dropdown-item"),{class:this.ns.e("custom"),command:""},{default:()=>[o(i("el-input"),{type:"number",modelValue:this.startPage,"onUpdate:modelValue":e=>this.startPage=e,size:"small",maxlength:"4",onClick:e=>{e.stopPropagation()},onChange:e=>{this.startPage=e}},null),o("span",{class:"item-text",onClick:e=>{e.stopPropagation()}},[b("-")]),o(i("el-input"),{modelValue:this.endPage,"onUpdate:modelValue":e=>this.endPage=e,size:"small",type:"number",maxlength:"4",onClick:e=>{e.stopPropagation()}},null),o("span",{class:"item-text",onClick:e=>{e.stopPropagation()}},[ibiz.i18n.t("control.toolbar.exportExcel.page")]),o(i("el-button"),{onClick:e=>this.onCommand("customPage",e),size:"small"},Nc(n=ibiz.i18n.t("control.toolbar.exportExcel.export"))?n:{default:()=>[n]})]})]})}})}}),Vc=a({name:"IBizShortCutButton",props:{mode:{type:String,required:!1},size:{type:String,required:!1},item:{type:Object,required:!0},controller:{type:Object,required:!0}},emits:["click"],setup(e,{emit:t}){var a;const n=A("short-cut-button"),o=A("toolbar-item"),i=null==(a=e.item.buttonStyle)?void 0:a.toLowerCase();return{ns:n,ns2:o,buttonState:l((()=>e.controller.state.buttonsState[e.item.id])),buttonType:i,isShortCut:l((()=>e.controller.view.state.isShortCut)),onClick:e=>{t("click",e)}}},render(){return o("div",{class:[this.ns.b(),this.ns.is("short-cut",this.isShortCut)]},[o(i("el-button"),{title:ht(this.isShortCut?"".concat(ibiz.i18n.t("app.cancel")).concat(this.item.tooltip):this.item.tooltip),size:this.size,text:Object.is(this.buttonType,"inverse"),type:this.buttonType,loading:this.buttonState.loading,disabled:this.buttonState.disabled,onClick:this.onClick},{default:()=>[this.item.showIcon&&this.item.sysImage&&o("span",{class:[this.ns2.b("icon"),this.ns.e("icon")]},[o(i("iBizIcon"),{icon:this.item.sysImage},null)]),this.item.showCaption&&o("span",{class:this.ns2.b("text")},[this.isShortCut?"".concat(ibiz.i18n.t("app.cancel")).concat(this.item.caption):this.item.caption])]})])}});function Fc(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Uc=e=>{const t=e.sysImage,a=[],n=A("toolbar-item");return e.showIcon&&t&&a.push(o("span",{class:n.b("icon")},[o(i("iBizIcon"),{icon:t},null)])),e.showCaption&&e.caption&&a.push(o("span",{class:n.b("text")},[e.caption])),a},qc=e=>{var t;return null==(t=null==e?void 0:e.sysCss)?void 0:t.cssName},Gc=a({name:"IBizToolbarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},manualCalcButtonState:{type:Boolean,default:!1}},setup(){var e;const t=F(((...e)=>new xa(...e))),a=A("control-".concat(t.model.controlType.toLowerCase())),s=A("control-".concat(t.model.controlType.toLowerCase(),"-actions")),l=n("default"),c=null==(e=t.model.toolbarStyle)?void 0:e.toLowerCase(),d=async(e,a,n)=>{await t.onItemClick(e,a,n)},u=e=>{const n=e.detoolbarItems||[],s=t.state.buttonsState[e.id].visible,p=t.state.buttonsState[e.id].disabled;if(!s)return null;const h=-1!==n.findIndex((e=>t.state.buttonsState[e.id].loading));if(!(-1!==n.findIndex((e=>!0===t.state.buttonsState[e.id].visible))))return null;const m=p||-1===n.findIndex((e=>!1===t.state.buttonsState[e.id].disabled)),v=e.buttonStyle||"";return o(i("el-sub-menu"),{class:[a.b("submenu"),a.em("item",v.toLowerCase()),qc(e)],index:e.id,disabled:m,title:ht(e.tooltip),"popper-class":[a.b("submenu-popper"),a.bm("submenu-popper",c),a.em("submenu-popper",v.toLowerCase()),a.bm("submenu-popper",qc(e))]},{default:()=>n.map((n=>{var s,c;const p=n.uiactionId,h=null==(s=t.state.buttonsState[n.id])?void 0:s.visible,m=t.itemProviders[n.id];if(!h)return null;if(m){const o=i(m.component);return r(o,{key:n.id,class:[a.e("item")],item:e,controller:t})}if("SEPERATOR"!==n.itemType){if("RAWITEM"===n.itemType)return o(i("el-menu-item"),{index:"menuitem".concat(n.id),title:ht(n.tooltip)},{default:()=>[o(i("iBizRawItem"),{rawItem:n,class:a.b("submenu-rawitem")},null)]});if("DEUIACTION"===n.itemType){let e;const s=null==(c=n.buttonStyle)?void 0:c.toLowerCase();return"exportexcel"===p?o(Lc,{class:[a.e("menu-exportexcel"),a.em("item",s),qc(n)],mode:"menu",item:n,btnContent:Uc,size:l.value,controller:t,onExportExcel:(e,t)=>{d(n,e,t)}},null):o(i("el-menu-item"),{class:[a.is("loading",t.state.buttonsState[n.id].loading),a.em("item",s),qc(n)],index:"menuitem".concat(n.id),disabled:t.state.buttonsState[n.id].disabled,title:ht(n.tooltip),onClick:e=>d(n,e)},{default:()=>[o(i("el-button"),{loading:t.state.buttonsState[n.id].loading},Fc(e=Uc(n))?e:{default:()=>[e]})]})}return"ITEMS"===n.itemType?u(n):null}})),title:()=>{let t;return o(i("el-button"),{loading:h,disabled:m},Fc(t=Uc(e))?t:{default:()=>[t]})}})},p=e=>{if(t.state.buttonsState[e.id].visible){let a;return[o(i("el-button"),{title:ht(e.caption),size:l.value,class:[qc(e)],loading:t.state.buttonsState[e.id].loading,disabled:t.state.buttonsState[e.id].disabled,onClick:t=>(async(e,t,a)=>{const n={};Object.assign(n,{...e,itemType:e.detailType}),await d(n,t,a)})(e,t)},Fc(a=Uc(e))?a:{default:()=>[a]})]}return null},h=e=>{if(t.state.buttonsState[e.id].visible){let a;const n=t.state.buttonsState[e.id].disabled;return o(i("el-dropdown-item"),{class:[s.be("dropdown-popper","dropdown-item"),s.is("disabled",n)]},Fc(a=p(e))?a:{default:()=>[a]})}return null},m=(e,a)=>{const n=e.slice(a,1);return n[0]?t.state.buttonsState[n[0].id].visible?a:m(e,a+1):-1},v=e=>{const{groupExtractMode:t}=e;switch(t){case"ITEMS":return(e=>{const{uiactionGroup:t}=e;if(t&&t.uiactionGroupDetails){const{uiactionGroupDetails:a}=t,n=a.length>0,l=e.buttonStyle||"";return o(i("el-dropdown"),{"popper-class":[s.b("dropdown-popper"),s.bm("dropdown-popper",c),s.em("dropdown-popper",l.toLowerCase()),s.bm("dropdown-popper",qc(e))]},{default:()=>p(e),dropdown:()=>{let e;return n&&o(i("el-dropdown-menu"),null,Fc(e=a.map((e=>h(e))))?e:{default:()=>[e]})}})}return null})(e);case"ITEMX":return(e=>{const{uiactionGroup:t}=e;if(t&&t.uiactionGroupDetails){const{uiactionGroupDetails:a}=t,n=m(a,0);if(-1!==n){const t=a.slice(n,1),l=a.slice(n+1),r=l.length>0,d=e.buttonStyle||"";return o(i("el-dropdown"),{"split-button":r,"popper-class":[s.b("dropdown-popper"),s.bm("dropdown-popper",c),s.em("dropdown-popper",d.toLowerCase()),s.bm("dropdown-popper",qc(e))]},{default:()=>p(t[0]),dropdown:()=>{let e;return r&&o(i("el-dropdown-menu"),null,Fc(e=l.map((e=>h(e))))?e:{default:()=>[e]})}})}}return null})(e);default:return(e=>{const{uiactionGroup:t}=e;if(t&&t.uiactionGroupDetails){const{uiactionGroupDetails:e}=t;return e.map((e=>o("div",{class:s.e("item-deuiaction")},[p(e)])))}return null})(e)}};return{c:t,btnSize:l,ns:a,toolbarStyle:c,handleClick:d,renderExtraButtons:e=>e.map((e=>{let t;return o("div",{key:e.id,class:[a.e("item")]},[o(i("el-button"),{title:ht(e.tooltip),size:l.value,onClick:t=>d(e,t)},Fc(t=Uc(e))?t:{default:()=>[t]})])})),renderToolbarItem:e=>{var n,c,p;const h=e.id,m=null==(n=t.state.buttonsState[h])?void 0:n.visible,g=t.itemProviders[h];if(!m)return null;if(g){const n=i(g.component);return r(n,{key:h,class:[a.e("item")],item:e,controller:t})}if("SEPERATOR"===e.itemType)return o("div",{key:h,class:[a.e("item"),a.e("item-separator")]},[b("|")]);if("RAWITEM"===e.itemType)return o("div",{key:h,class:[a.e("item"),a.e("item-rawitem")]},[o(i("iBizRawItem"),{rawItem:e},null)]);if("DEUIACTION"===e.itemType){let n;const s=e.uiactionId,r=null==(c=e.buttonStyle)?void 0:c.toLowerCase();return"exportexcel"===s?o(Lc,{class:[a.e("item"),a.e("item-deuiaction"),a.em("item",r),qc(e)],item:e,btnContent:Uc,size:l.value,controller:t,onExportExcel:(t,a)=>{d(e,t,a)}},null):"shortcut"===s?o(Vc,{key:h,class:[a.e("item"),a.e("item-deuiaction"),a.em("item",r),qc(e)],item:e,controller:t,size:l.value,onClick:t=>d(e,t)},null):o("div",{key:h,class:[a.e("item"),a.e("item-deuiaction"),a.em("item",r),qc(e),a.is("loading",t.state.buttonsState[h].loading)]},[o(i("el-button"),{title:ht(e.tooltip),size:l.value,text:Object.is(r,"inverse"),type:r,loading:t.state.buttonsState[h].loading,disabled:t.state.buttonsState[h].disabled,onClick:t=>d(e,t)},Fc(n=Uc(e))?n:{default:()=>[n]})])}if("ITEMS"===e.itemType){let t;const n=e,l=n.buttonStyle||"";if(n.groupExtractMode&&n.uiactionGroup){const t="extract-mode-".concat((null==(p=n.groupExtractMode)?void 0:p.toLowerCase())||"item");return o("div",{class:[s.b(),s.e(t),s.em("item",l.toLowerCase()),qc(e)]},[v(e)])}return o(i("el-menu"),{mode:"horizontal",class:[a.e("menu"),a.em("menu",l.toLowerCase()),qc(e)],ellipsis:!1,"menu-trigger":"hover"},Fc(t=u(e))?t:{default:()=>[t]})}return null}}},render(){var e,t,a;const{state:n}=this.c;let s=null;return n.isCreated&&(s=[(null==(e=n.extraButtons.before)?void 0:e.length)>0&&this.renderExtraButtons(n.extraButtons.before),null==(t=this.modelData.detoolbarItems)?void 0:t.map(((e,t)=>{var a;const o=this.renderToolbarItem(e);return(null==(a=n.extraButtons[t])?void 0:a.length)?[o,this.renderExtraButtons(n.extraButtons[t])]:o})),(null==(a=n.extraButtons.after)?void 0:a.length)>0&&this.renderExtraButtons(n.extraButtons.after)]),o(i("iBizControlBase"),{controller:this.c,class:[this.ns.m(n.viewMode.toLowerCase()),this.ns.m(this.toolbarStyle)]},Fc(s)?s:{default:()=>[s]})}});var Hc=Object.defineProperty,Wc=(e,t,a)=>(((e,t,a)=>{t in e?Hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Kc{constructor(){Wc(this,"component","IBizToolbarControl")}}const Yc=e("M",U(Gc,(function(e){e.component(Gc.name,Gc),Xt($t.TOOLBAR,(()=>new Kc))}))),Xc=a({name:"IBizCaptionBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=F(((...e)=>new Ta(...e))),t=A("control-".concat(e.model.controlType.toLowerCase()));return e.setBrowserTabTitle(),S((()=>{e.setBrowserTabTitle()})),{c:e,ns:t}},render(){return o(i("iBizControlBase"),{controller:this.c,class:[this.ns.b()]},{default:()=>[o("div",{class:[this.ns.b("caption"),this.ns.is("show-icon",!!this.c.model.sysImage)]},[this.c.model.sysImage&&o(i("iBizIcon"),{class:[this.ns.be("caption","icon")],icon:this.c.model.sysImage},null),o("div",{class:[this.ns.be("caption","content")]},[this.c.state.caption])])]})}});var $c=Object.defineProperty,Jc=(e,t,a)=>(((e,t,a)=>{t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Qc{constructor(){Jc(this,"component","IBizCaptionBarControl")}}const Zc=e("N",U(Xc,(function(e){e.component(Xc.name,Xc),Xt($t.CAPTIONBAR,(()=>new Qc))})));function ed(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const td=a({name:"IBizDataViewControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(e){const t=F(((...e)=>new za(...e))),a=A("control-".concat(t.model.controlType.toLowerCase())),s=l((()=>[a.is("enable-page",!0===t.model.enablePagingBar)])),r=l((()=>!0===t.model.enablePagingBar||(2!==t.model.pagingMode||(t.state.items.length>=t.state.total||t.state.isLoading||t.state.total<=t.state.size)))),d=n(),u=n(lo());c((()=>t.state.curPage),(()=>{var e,a;if(1===t.state.curPage&&(2===t.model.pagingMode||3===t.model.pagingMode)){u.value=lo();const t=null==(a=null==(e=d.value)?void 0:e.ElInfiniteScroll)?void 0:a.containerEl;t&&(t.lastScrollTop=0,t.scrollTop=0)}}));const{onPageChange:p,onPageRefresh:m,onPageSizeChange:v}=$l(t),b=(e,a)=>(a.stopPropagation(),t.onRowClick(e)),w=(e,a)=>(a.stopPropagation(),t.onDbRowClick(e)),f=(e,a)=>{const{context:n,params:s}=t;return o(i("iBizControlShell"),{data:e,modelData:a,context:n,params:s,onClick:t=>b(e,t),onDblclick:t=>w(e,t)},null)},y=e=>{var n;return o(i("iBizActionToolbar"),{class:a.bem("item-content","bottom","actions"),"action-details":null==(n=t.getOptItemModel().deuiactionGroup)?void 0:n.uiactionGroupDetails,"actions-state":t.getOptItemAction(e),onActionClick:(a,n)=>t.onActionClick(a,e,n)},null)},C=e=>o("div",{class:a.b("item-content")},[o("div",{class:a.be("item-content","top")},[o("div",{class:a.bem("item-content","top","title")},[e.srfmajortext]),o("div",{class:a.bem("item-content","top","description")},[e.content])]),t.getOptItemModel()?o("div",{class:a.be("item-content","bottom")},[y(e)]):null]),I=n=>{let s=-1!==t.state.selectedData.findIndex((e=>e.srfkey===n.srfkey));"DEDATAVIEW"===t.view.model.viewType&&1===t.state.mdctrlActiveMode&&!0===t.state.singleSelect&&(s=!1);const l=[a.b("item"),a.is("active",s)],r={};t.model.cardWidth&&Object.assign(r,{width:"".concat(t.model.cardWidth,"px")}),t.model.cardHeight&&Object.assign(r,{height:"".concat(t.model.cardHeight,"px")});const c=e.modelData.itemLayoutPanel;return o(i("el-card"),{shadow:"hover",class:l,"body-style":r,onClick:e=>b(n,e),onDblclick:e=>w(n,e)},{default:()=>[c?f(n,c):C(n)]})},D=e=>{const{cardColXS:n,cardColSM:s,cardColMD:l,cardColLG:r,groupSysCss:c}=t.model;return o("div",{class:[a.be("group-content","item"),null==c?void 0:c.cssName]},[o("div",{class:a.be("group-content","item-header")},[o("span",{class:a.be("group-content","item-title")},[e.caption]),o("span",{class:a.be("group-content","item-action")},[t.model.groupUIActionGroup&&e.groupActionGroupState&&o(i("iBizActionToolbar"),{class:a.be("group-content","header-actions"),"action-details":t.model.groupUIActionGroup.uiactionGroupDetails,"actions-state":e.groupActionGroupState,onActionClick:(a,n)=>{t.onGroupToolbarClick(a,n,e)}},null)])]),n||s||l||r?o(i("el-row"),{class:a.be("group-content","item-row")},{default:()=>[e.children.length>0?e.children.map((e=>{let t;return o(i("el-col"),{xs:n,sm:s,md:l,lg:r,class:a.be("group-content","item-col")},ed(t=I(e))?t:{default:()=>[t]})})):o("div",{class:a.bem("group-content","item","empty")},[ibiz.i18n.t("app.noData")])]}):o("div",{class:a.be("group-content","item-content")},[e.children.length>0?e.children.map((e=>I(e))):o("div",{class:a.bem("group-content","item","empty")},[ibiz.i18n.t("app.noData")])])])},E=()=>{const{cardColXS:e,cardColSM:n,cardColMD:s,cardColLG:l}=t.model;if(t.model.enableGroup)return o("div",{class:a.b("group-content")},[t.state.groups.map((e=>o("div",{class:[a.b("scroll-item")]},[D(e)])))]);if(e||n||s||l){let r;return o(i("el-row"),{class:[a.b("item-row")]},ed(r=t.state.items.map((t=>{let r;return o(i("el-col"),{xs:e,sm:n,md:s,lg:l,class:[a.b("item-col")]},ed(r=I(t))?r:{default:()=>[r]})})))?r:{default:()=>[r]})}return t.state.items.map((e=>o("div",{class:[a.b("scroll-item")]},[I(e)])))};return{c:t,ns:a,classNames:s,infiniteScroll:d,renderHasData:()=>{let e;return h(o("div",{class:[a.b("scroll"),a.e("content")],"infinite-scroll-distance":10,"infinite-scroll-disabled":r.value,ref:"infiniteScroll",key:u.value},[E(),3===t.model.pagingMode&&!(t.state.items.length>=t.state.total||t.state.isLoading||t.state.total<=t.state.size)&&o("div",{class:a.e("load-more-button")},[o(i("el-button"),{text:!0,onClick:()=>t.loadMore()},ed(e=ibiz.i18n.t("control.common.loadMore"))?e:{default:()=>[e]})])]),[[g("infinite-scroll"),()=>t.loadMore()]])},renderNoData:()=>{const{isLoaded:e}=t.state;if(e)return o(i("iBizNoData"),{class:a.e("content"),text:t.model.emptyText,emptyTextLanguageRes:t.model.emptyTextLanguageRes,enableShowImage:t.state.hideNoDataImage},null)},onPageChange:p,onPageRefresh:m,onPageSizeChange:v}},render(){const{items:e,isCreated:t}=this.c.state;let a=null;return t&&(a=[this.c.state.noSort?null:o(i("iBizSortBar"),{onSortChange:(e,t)=>{this.c.setSort(e.key,t),this.c.load({isInitialLoad:2===this.c.model.pagingMode||3===this.c.model.pagingMode})},sortItems:this.c.state.sortItems},null),e.length>0?this.renderHasData():this.renderNoData(),this.c.state.enablePagingBar&&1===this.c.model.pagingMode?o(i("iBizPagination"),{class:this.ns.e("pagination"),total:this.c.state.total,curPage:this.c.state.curPage,size:this.c.state.size,totalPages:this.c.state.totalPages,onChange:this.onPageChange,onPageSizeChange:this.onPageSizeChange,onPageRefresh:this.onPageRefresh},null):null]),o(i("iBizControlBase"),{class:[this.ns.is("enable-page",!!this.c.state.enablePagingBar)],controller:this.c},ed(a)?a:{default:()=>[a]})}});var ad=Object.defineProperty,nd=(e,t,a)=>(((e,t,a)=>{t in e?ad(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class od{constructor(){nd(this,"component","IBizDataViewControl")}}e("P",od);const id=e("O",U(td,(function(e){e.component(td.name,td),Xt($t.DATAVIEW,(()=>new od))})));function sd(e,t){const a=t.state.items.find((t=>t._id===e));return a||t.state.items.find((t=>t._uuid===e))}function ld(e){switch(e){case"inner":return"inner";case"before":return"prev";case"after":return"next";default:throw new vt(ibiz.i18n.t("control.tree.noSupported",{dropType:e}))}}const rd=a({name:"IBizTreeControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0},navigational:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},loadDefault:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new Oa(...e))),a=n(!1),s=w({}),r=e=>{Object.assign(s,e)};e.evt.on("onCreated",(()=>{e.counter&&e.counter.onChange(r,!0),e.controlParams.cascadeselect&&(a.value=!0)})),C((()=>{var t;null==(t=e.counter)||t.offChange(r)}));const p=A("control-".concat(e.model.controlType.toLowerCase())),h=n(null),m=n(null),v=n(""),b=n(null),g=n(null),f=n(null);c((()=>b.value),(e=>{e&&e.$el.getElementsByTagName("input")[0].focus()}));const y=()=>{var t;const a=null==(t=h.value)?void 0:t.getCurrentKey();if(!a||a===g.value)return;const n=sd(a,e),o=e.getNodeModel(n._nodeId);(null==o?void 0:o.allowEditText)&&(g.value=a)},{updateUI:I,triggerNodeExpand:D}=function(e,t){const a=()=>{const t=e.value;if(!t)throw new vt(ibiz.i18n.t("control.tree.noFoundInstance"));return t},n=()=>{var a;const o=e.value;o?(Object.values(o.store.nodesMap).forEach((e=>{const a=t.state.expandedKeys.includes(e.data._id);a!==e.expanded&&(a?e.expand():e.collapse())})),t.state.singleSelect?e.value.setCurrentKey((null==(a=t.state.selectedData[0])?void 0:a._id)||void 0):o.setCheckedKeys(t.state.selectedData.map((e=>e._id)))):setTimeout((()=>{n()}),200)},o=Lo(n,500);return{getTreeInstance:a,updateUI:o,triggerNodeExpand:e=>{const t=a().store.nodesMap[e];if(t)return t.expanded?(t.collapse(),!1):(t.expand(),!0)}}}(h,e),E=e=>e.map((e=>({_id:e._id,_uuid:e._uuid,_leaf:e._leaf,_text:e._text,_disableSelect:e._disableSelect})));e.evt.on("onAfterRefreshParent",(e=>{if(h.value){const{parentNode:t,children:a}=e,n=E(a);h.value.updateKeyChildren(t._id,n),I()}})),e.evt.on("onAfterNodeDrop",(e=>{e.isChangedParent&&(v.value=lo())}));const P=l((()=>e.state.isLoaded?e.model.rootVisible?e.state.rootNodes:e.state.rootNodes.reduce(((e,t)=>t._children?e.concat(t._children):e),[]):[]));c(P,((e,t)=>{e!==t&&(v.value=lo())}));let k=!1;e.evt.on("onLoadSuccess",(()=>{k=!0,setTimeout((()=>{k=!1}),200)})),e.evt.on("onSelectionChange",(async()=>{var t;k&&await u(),e.state.singleSelect?h.value.setCurrentKey((null==(t=e.state.selectedData[0])?void 0:t._id)||void 0):h.value.setCheckedKeys(e.state.selectedData.map((e=>e._id)))}));let S=!1;const x=l((()=>!(!0!==e.context.srfreadonly&&"true"!==e.context.srfreadonly)));let T;e.evt.on("onMounted",(()=>{if(Object.values(e.contextMenus).length>0){(()=>t.import("@imengyu/vue3-context-menu"))().then((e=>{T=e.default,T.default&&!T.showContextMenu&&(T=T.default)}))}}));const z=i("IBizRawItem"),O=i("IBizIcon"),_=(t,a,n,i)=>{const s=[];return t.forEach((t=>{var l;if("SEPERATOR"===t.itemType)return void s.push({divided:"self"});const r=i[t.id];if(r&&!r.visible)return;const c={};if(t.showCaption&&t.caption&&(c.label=t.caption),t.sysImage&&t.showIcon&&(c.icon=o(O,{icon:t.sysImage},null)),"DEUIACTION"===t.itemType){c.disabled=r.disabled,c.clickClose=!0;const{uiactionId:o}=t;o&&(c.onClick=()=>{e.doUIAction(o,a,n,t.appId)})}else if("RAWITEM"===t.itemType){const{rawItem:e}=t;e&&(c.label=o(z,{rawItem:t},null))}else"ITEMS"===t.itemType&&(null==(l=t.detoolbarItems)?void 0:l.length)&&(c.children=_(t.detoolbarItems,a,n,i));s.push(c)})),s},B=Lo((()=>{e.load()}),500),j=e=>{"F2"!==e.code&&"Enter"!==e.code||y()};d((()=>{var e;null==(e=m.value)||e.$el.addEventListener("keydown",j)})),C((()=>{var e;null==(e=m.value)||e.$el.removeEventListener("keydown",j)}));return{c:e,ns:p,treeRef:h,treeviewRef:m,treeNodeTextInputRef:b,treeData:P,treeRefreshKey:v,editingNodeKey:g,editingNodeText:f,cascadeSelect:a,findNodeData:sd,onCheck:(t,a)=>{const{checkedNodes:n}=a;e.setSelection(n)},onNodeClick:(t,a)=>{var n,o;if(a.stopPropagation(),!t._disableSelect&&!S){if((null==(n=h.value)?void 0:n.getCurrentKey())!==t._id||x.value||y(),e.state.singleSelect||null==(o=h.value)||o.setCurrentKey(t._id),e.state.navigational){const a=e.getNodeModel(t._nodeId);if(!(null==a?void 0:a.navAppViewId)){const a=D(t._id);e.onExpandChange(t,a)}}e.onTreeNodeClick(t,a),S=!0,setTimeout((()=>{S=!1}),200)}},onNodeDbClick:(t,a)=>{a.stopPropagation(),t._disableSelect||e.onDbTreeNodeClick(t)},onNodeContextmenu:async(t,a)=>{a.preventDefault(),a.stopPropagation();const n=e.getNodeModel(t._nodeId);if(!(null==n?void 0:n.decontextMenu))return;const o=e.contextMenus[n.decontextMenu.id];if(!o.model.detoolbarItems)return;await o.calcButtonState(t._deData||(t.srfkey?t:void 0),n.appDataEntityId);const i=o.state.buttonsState,s=_(o.model.detoolbarItems,t,a,i);s.length&&T.showContextMenu({x:a.x,y:a.y,customClass:p.b("context-menu"),items:s})},loadData:async(t,a)=>{let n;if(0===t.level)n=P.value,ibiz.log.debug("初始加载");else{const a=sd(t.data._uuid,e);a._children?(ibiz.log.debug("节点展开加载-本地",a),n=a._children):(ibiz.log.debug("节点展开加载-远程",a),n=await e.loadNodes(a))}ibiz.log.debug("给树返回值",n),a(E(n)),I()},renderContextMenu:(t,a)=>{var n,s;if(!(null==(s=null==(n=null==t?void 0:t.decontextMenu)?void 0:n.detoolbarItems)?void 0:s.length))return;const l=e.contextMenuInfos[t.id];return l.clickTBUIActionItem&&l.onlyOneActionItem?null:o(i("iBizContextMenuControl"),{modelData:t.decontextMenu,groupLevelKeys:[50,100],nodeModel:t,nodeData:a,context:e.context,onActionClick:(t,n)=>e.doUIAction(t.uiactionId,a,n,t.appId)},null)},renderCounter:e=>{if(e.counterId){const t=s[e.counterId];return vo(t)||1===e.counterMode&&0===t?null:o(i("iBizBadge"),{class:p.e("counter"),value:t},null)}},updateNodeExpand:(t,a)=>{const n=sd(t._uuid,e);if(!n)throw new vt(ibiz.i18n.t("control.common.noFoundNode",{id:t._uuid}));e.onExpandChange(n,a)},onInput:t=>{e.state.query=t,B()},allowDrop:(t,a,n)=>{const o=sd(t.data._uuid,e),i=sd(a.data._uuid,e);return e.calcAllowDrop(o,i,n)},allowDrag:t=>{const a=sd(t.data._uuid,e);return e.calcAllowDrag(a)},handleDrop:(t,a,n)=>{const o=ld(n),i=sd(t.data._uuid,e),s=sd(a.data._uuid,e);e.onNodeDrop(i,s,o)},onNodeTextEditBlur:async()=>{if(g.value)if(f.value){const t=sd(g.value,e);await e.modifyNodeText(t,f.value),g.value=null,f.value=null}else g.value=null}}},render(){const e={searchbar:()=>this.c.enableQuickSearch?o(i("el-input"),{"model-value":this.c.state.query,class:this.ns.b("quick-search"),placeholder:this.c.state.placeHolder,onInput:this.onInput},{prefix:()=>o("ion-icon",{class:this.ns.e("search-icon"),name:"search"},null)}):null},t=this.c.controlPanel?"tree":"default";return e[t]=()=>{if(this.c.state.isLoaded&&this.treeRefreshKey)return o(i("el-tree"),{ref:"treeRef",class:this.ns.b("tree"),key:this.treeRefreshKey,"node-key":"_id","highlight-current":!0,"expand-on-click-node":!1,"auto-expand-parent":!1,"show-checkbox":!this.c.state.singleSelect,"check-strictly":!this.cascadeSelect&&this.checkStrictly,"default-expanded-keys":this.c.state.expandedKeys,props:{label:"_text",children:"_children",isLeaf:"_leaf",disabled:"_disableSelect"},lazy:!0,load:this.loadData,onCheck:this.onCheck,onNodeExpand:e=>{this.updateNodeExpand(e,!0)},onNodeCollapse:e=>{this.updateNodeExpand(e,!1)},draggable:!0,"allow-drop":this.allowDrop,"allow-drag":this.allowDrag,onNodeDrop:this.handleDrop},{default:({data:e})=>{var t,a;const n=this.findNodeData(e._uuid,this.c);if(!n)return null;const s=this.c.getNodeModel(n._nodeId);if(this.editingNodeKey===n._id)return o("div",{class:[this.ns.b("node"),null==(t=s.sysCss)?void 0:t.cssName]},[o(i("el-input"),{modelValue:this.editingNodeText,"onUpdate:modelValue":e=>this.editingNodeText=e,ref:"treeNodeTextInputRef",class:this.ns.b("editing-node"),onBlur:()=>{this.onNodeTextEditBlur()},onKeydown:e=>{e.stopPropagation(),"Enter"===e.code&&this.onNodeTextEditBlur()}},null)]);const l=_a(s);let r;return r=l?o(i("iBizControlShell"),{data:n,modelData:l,context:this.c.context,params:this.c.params},null):[n._icon?o(i("iBizIcon"),{class:this.ns.be("node","icon"),icon:n._icon},null):null,n._textHtml?o("span",{class:this.ns.be("node","label"),innerHTML:n._textHtml},null):o("span",{class:this.ns.be("node","label")},[n._text])],o("div",{onDblclick:e=>this.onNodeDbClick(n,e),onClick:e=>this.onNodeClick(n,e),onContextmenu:e=>this.onNodeContextmenu(n,e),class:[this.ns.b("node"),n._disableSelect?this.ns.bm("node","disabled"):"",null==(a=s.sysCss)?void 0:a.cssName]},[r,this.renderCounter(s),this.renderContextMenu(s,n)])}})},h(o(i("iBizControlBase"),{ref:"treeviewRef",controller:this.c},"function"==typeof(a=e)||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?e:{default:()=>[e]}),[[g("loading"),this.c.state.isLoading]]);var a}});var cd=Object.defineProperty,dd=(e,t,a)=>(((e,t,a)=>{t in e?cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class ud{constructor(){dd(this,"component","IBizTreeControl")}}const pd=e("Q",U(rd,(function(e){e.component(rd.name,rd),Xt($t.TREEVIEW,(()=>new ud))}))),hd=a({name:"IBizPickupViewPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},singleSelect:{type:Boolean,default:!0},noLoadDefault:{type:Boolean,default:!1}},setup(){const e=F(((...e)=>new Aa(...e))),t=A("control-".concat(e.model.controlType.toLowerCase()));return{c:e,ns:t,onCreated:t=>{e.setEmbedView(t.view)}}},render(){return o(i("iBizControlBase"),{controller:this.c},{default:()=>[this.c.state.isCreated&&(this.$slots.default?this.$slots.default({context:this.c.state.context,params:this.c.state.params,state:{singleSelect:this.c.state.singleSelect,noLoadDefault:this.noLoadDefault},onCreated:this.onCreated}):r(i("IBizViewShell"),{context:this.c.state.context,params:this.c.state.params,viewId:this.c.model.embeddedAppDEViewId,state:{singleSelect:this.c.state.singleSelect,noLoadDefault:this.noLoadDefault},onCreated:this.onCreated}))]})}});var md=Object.defineProperty,vd=(e,t,a)=>(((e,t,a)=>{t in e?md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class bd{constructor(){vd(this,"component","IBizPickupViewPanelControl")}}const gd=e("R",U(hd,(function(e){e.component(hd.name,hd),Xt($t.PICKUP_VIEW_PANEL,(()=>new bd))})));const wd=a({name:"IBizTabExpPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},defaultTabName:{type:String,required:!1}},setup(){var e;const t=F(((...e)=>new Ba(...e))),a=A("control-".concat(t.model.controlType.toLowerCase())),n=(null==(e=t.view.model.tabLayout)?void 0:e.toLowerCase())||"top",o=To();let i="";return t.routeDepth&&(i=oe(o,t.routeDepth)),c((()=>o.fullPath),((e,a)=>{if(e!==a){const e=t.routeDepth;if(e){if(oe(o,t.routeDepth)===i){const a=ie(o),{srfnav:n}=a.pathNodes[e-1];n&&t.state.activeName&&t.state.activeName!==n&&(t.state.activeName=n,t.handleTabChange())}}}}),{immediate:!0}),{c:t,ns:a,tabPosition:n,handleTabChange:()=>{t.handleTabChange()}}},render(){let e;const{isCreated:t,tabPages:a}=this.c.state;return o(i("iBizControlBase"),{controller:this.c},{default:()=>{return[t&&o(i("el-tabs"),{modelValue:this.c.state.activeName,"onUpdate:modelValue":e=>this.c.state.activeName=e,tabPosition:this.tabPosition,onTabChange:this.handleTabChange},(n=e=a.map((e=>o(i("el-tab-pane"),{class:[this.ns.e("tab-item")],label:e.caption,name:e.tabTag},{label:()=>o("span",{class:[...e.class]},[this.c.isShowIcon&&o(i("iBizIcon"),{icon:e.sysImage},null),this.c.isShowCaption&&e.caption])}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?e:{default:()=>[e]}))];var n}})}});var fd=Object.defineProperty,yd=(e,t,a)=>(((e,t,a)=>{t in e?fd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Cd{constructor(){yd(this,"component","IBizTabExpPanelControl")}}const Id=e("S",U(wd,(function(e){e.component(wd.name,wd),Xt($t.TAB_EXP_PANEL,(()=>new Cd))})));function Dd(e,t){const a=A("exp-bar"),n=Lo((()=>{e.load()}),500),s=t=>{e.state.query=t,n()};return{renderTitle:()=>{const{model:n}=e;if(!n.showTitleBar)return null;let s=n.title;return n.titleLanguageRes&&(s=ibiz.i18n.t(n.titleLanguageRes.lanResTag,n.title)),o("div",{class:[t.b("caption"),a.b("caption")]},[n.sysImage&&o(i("iBizIcon"),{class:[a.be("caption","icon")],icon:n.sysImage},null),s&&o("span",{class:[t.be("caption","text")]},[s])])},renderSearchBar:()=>{var n,l;const{model:c}=e;if(!c.enableSearch)return null;const d=null==(l=null==(n=e.view.model.viewLayoutPanel)?void 0:n.controls)?void 0:l.find((e=>"searchbar"===e.id));if(d){const t={context:e.context,params:e.params},a=i("IBizControlShell");return r(a,{modelData:d,...t})}return o(i("el-input"),{"model-value":e.state.query,class:[t.b("quick-search"),a.b("quick-search")],placeholder:e.state.placeHolder,onInput:s},{prefix:()=>o("ion-icon",{class:t.e("search-icon"),name:"search"},null)})}}}function Ed(e){const t=e.view.modal.routeDepth;if(t){const a=To();let n;se((({currentKey:o,fullPath:i})=>{if(n){if(n===o){const n=ie(a),{srfnav:o}=n.pathNodes[t-1];e.onRouterChange({srfnav:o||"",path:i})}}else n=o}),t)}}const Pd=a({name:"IBizTreeExpBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},noNeedNavView:{type:Boolean,required:!1},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new ja(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),{renderTitle:a,renderSearchBar:n}=Dd(e,t);Ed(e);const o=l((()=>e.view.model.viewType&&!["DEMPICKUPVIEW2","DEPICKUPVIEW2"].includes(e.view.model.viewType)));return{c:e,ns:t,navigational:o,renderTitle:a,renderSearchBar:n}},render(){const{state:e,XDataModel:t}=this.c,{isCreated:a}=e,n={captionbar:this.renderTitle,searchbar:this.renderSearchBar};if(a&&t){const e=this.c.controlPanel?t.name:"default";n[e]=()=>o(i("iBizControlShell"),{context:this.c.context,params:this.c.params,modelData:t,singleSelect:!0,navigational:this.navigational,mdctrlActiveMode:1,loadDefault:!1,"default-expanded-keys":this.c.defaultExpandedKeys},null)}return o(i("iBizControlBase"),{controller:this.c},"function"==typeof(l=n)||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?n:{default:()=>[n]});var l}});var kd=Object.defineProperty,Sd=(e,t,a)=>(((e,t,a)=>{t in e?kd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class xd{constructor(){Sd(this,"component","IBizTreeExpBarControl")}}const Td=e("T",U(Pd,(function(e){e.component(Pd.name,Pd),Xt($t.TREE_EXP_BAR,(()=>new xd))})));const zd=a({name:"IBizListExpBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new Ma(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),{renderTitle:a,renderSearchBar:n}=Dd(e,t);return Ed(e),{c:e,ns:t,renderTitle:a,renderSearchBar:n}},render(){const{isCreated:e}=this.c.state,{XDataModel:t}=this.c,a={captionbar:this.renderTitle,searchbar:this.renderSearchBar};if(e&&t){const e=this.c.controlPanel?t.name:"default";a[e]=()=>o(i("iBizControlShell"),{context:this.c.context,params:this.c.params,modelData:t,singleSelect:!0,mdctrlActiveMode:1,loadDefault:!1},null)}return o(i("iBizControlBase"),{controller:this.c},"function"==typeof(n=a)||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?a:{default:()=>[a]});var n}});var Od=Object.defineProperty,_d=(e,t,a)=>(((e,t,a)=>{t in e?Od(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Ad{constructor(){_d(this,"component","IBizListExpBarControl")}}const Bd=e("U",U(zd,(function(e){e.component(zd.name,zd),Xt($t.LIST_EXPBAR,(()=>new Ad))})));const jd=a({name:"IBizGridExpBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new Ma(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),{renderTitle:a,renderSearchBar:n}=Dd(e,t);return Ed(e),{c:e,ns:t,renderTitle:a,renderSearchBar:n}},render(){const{isCreated:e}=this.c.state,{XDataModel:t}=this.c,a={captionbar:this.renderTitle,searchbar:this.renderSearchBar};if(e&&t){const e=this.c.controlPanel?t.name:"default";a[e]=()=>o(i("iBizControlShell"),{context:this.c.context,params:this.c.params,modelData:t,singleSelect:!0,mdctrlActiveMode:1,loadDefault:!1},null)}return o(i("iBizControlBase"),{controller:this.c},"function"==typeof(n=a)||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?a:{default:()=>[a]});var n}});var Md=Object.defineProperty,Rd=(e,t,a)=>(((e,t,a)=>{t in e?Md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Nd{constructor(){Rd(this,"component","IBizGridExpBarControl")}}const Ld=e("V",U(jd,(function(e){e.component(jd.name,jd),Xt($t.GRID_EXPBAR,(()=>new Nd))})));const Vd=a({name:"IBizDataViewExpBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new Ma(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),{renderTitle:a,renderSearchBar:n}=Dd(e,t);return Ed(e),{c:e,ns:t,renderTitle:a,renderSearchBar:n}},render(){const{isCreated:e}=this.c.state,{XDataModel:t}=this.c,a={captionbar:this.renderTitle,searchbar:this.renderSearchBar};if(e&&t){const e=this.c.controlPanel?t.name:"default";a[e]=()=>o(i("iBizControlShell"),{context:this.c.context,params:this.c.params,modelData:t,singleSelect:!0,mdctrlActiveMode:1,loadDefault:!1},null)}return o(i("iBizControlBase"),{controller:this.c},"function"==typeof(n=a)||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?a:{default:()=>[a]});var n}});var Fd=Object.defineProperty,Ud=(e,t,a)=>(((e,t,a)=>{t in e?Fd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class qd{constructor(){Ud(this,"component","IBizDataViewExpBarControl")}}const Gd=e("W",U(Vd,(function(e){e.component(Vd.name,Vd),Xt($t.DATA_VIEW_EXPBAR,(()=>new qd))})));const Hd=a({name:"IBizCalendarExpBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new Ra(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),{renderTitle:a,renderSearchBar:n}=Dd(e,t);return Ed(e),{c:e,ns:t,renderTitle:a,renderSearchBar:n}},render(){const{state:e,XDataModel:t}=this.c,{isCreated:a}=e,n={captionbar:this.renderTitle,searchbar:this.renderSearchBar};if(a&&t){const e=this.c.controlPanel?t.name:"default";n[e]=()=>o(i("iBizControlShell"),{context:this.c.context,params:this.c.params,modelData:t,singleSelect:!0,mdctrlActiveMode:1,loadDefault:!1},null)}return o(i("iBizControlBase"),{controller:this.c},"function"==typeof(l=n)||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?n:{default:()=>[n]});var l}});var Wd=Object.defineProperty,Kd=(e,t,a)=>(((e,t,a)=>{t in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Yd{constructor(){Kd(this,"component","IBizCalendarExpBarControl")}}const Xd=e("X",U(Hd,(function(e){e.component(Hd.name,Hd),Xt($t.CALENDAR_EXPBAR,(()=>new Yd))})));const $d=a({name:"IBizChartExpBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new Na(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),{renderTitle:a,renderSearchBar:n}=Dd(e,t);return Ed(e),{c:e,ns:t,renderTitle:a,renderSearchBar:n}},render(){const{isCreated:e}=this.c.state,{XDataModel:t}=this.c,a={captionbar:this.renderTitle,searchbar:this.renderSearchBar};if(e&&t){const e=this.c.controlPanel?t.name:"default";a[e]=()=>o(i("iBizControlShell"),{context:this.c.context,params:this.c.params,modelData:t,singleSelect:!0,mdctrlActiveMode:1,loadDefault:!1},null)}return o(i("iBizControlBase"),{controller:this.c},"function"==typeof(n=a)||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?a:{default:()=>[a]});var n}});var Jd=Object.defineProperty,Qd=(e,t,a)=>(((e,t,a)=>{t in e?Jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Zd{constructor(){Qd(this,"component","IBizChartExpBarControl")}}const eu=e("Y",U($d,(function(e){e.component($d.name,$d),Xt($t.CHART_EXPBAR,(()=>new Zd))}))),tu=a({name:"IBizSearchBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){var e;const t=F(((...e)=>new La(...e)));t.setStorageKeyFn(le(t.context,"SEARCH_BAR_SELECTED_GROUP",t.view.modal.routeDepth));const a=A("control-".concat(t.model.controlType.toLowerCase()));let s=!1;const r=()=>{s=!0,t.onSearch()},c=l((()=>t.model.quickSearchWidth?a.cssVarBlock({"quick-search-width":"".concat(t.model.quickSearchWidth,"px")}):{}));t.model.enableGroup&&t.model.searchBarGroups&&(null==(e=t.model.searchBarGroups)?void 0:e.length)>0&&(t.state.selectedGroupItem=t.model.searchBarGroups[0]);const d=n();let u;return{c:t,ns:a,cssVars:c,filterButtonRef:d,onClear:()=>{!0===s&&(s=!1,t.onSearch())},onSearch:r,onKeydown:e=>{"Enter"===e.code&&r()},onGroupClick:e=>{t.state.selectedGroupItem=e,r()},triggerFilter:()=>{u?u.dismiss():(async()=>{u=ibiz.overlay.createPopover((()=>o(i("iBizFilterTreeControl"),{filterControllers:t.filterControllers,filterNodes:t.state.filterNodes,parent:"search-bar",filterMode:t.state.filterMode,customCond:t.state.customCond,context:t.context,params:t.params,schemaEntityMap:t.schemaEntityMap,onCustomCondChange:e=>{t.state.customCond=e},onConfirm:(e,a)=>{t.state.filterMode=e,t.state.customCond=a,t.onSearch(),u&&u.dismiss()},onCancel:()=>{t.resetFilter(),t.state.customCond=""}},null)),void 0,{placement:"bottom-end",autoClose:!0}),u.present(d.value.$el),await u.onWillDismiss(),u=void 0})()},handleSave:()=>{t.handleSave()},renderAdvancedSearch:()=>t.state.advancedQuickSearch?o(i("iBizQuickSearchSelect"),{controller:t},null):null}},render(){return o(i("iBizControlBase"),{controller:this.c,class:[this.ns.b()],style:this.cssVars},{default:()=>{var e;return[this.c.model.enableGroup&&(this.c.isBackendSearchGroup?o(i("iBizSearchGroups"),{controller:this.c},null):o("div",{class:this.ns.b("quick-group")},[null==(e=this.c.model.searchBarGroups)?void 0:e.map((e=>{var t;return o("span",{class:[this.ns.b("quick-group-item"),this.ns.is("selected",(null==(t=this.c.state.selectedGroupItem)?void 0:t.id)===e.id)],onClick:()=>this.onGroupClick(e)},[e.caption])}))])),this.c.model.enableGroup&&this.c.isBackendSearchGroup&&o(i("el-button"),{class:this.ns.b("save"),title:ht(ibiz.i18n.t("control.searchBar.saveGroup")),onClick:this.handleSave},{default:()=>[o("ion-icon",{name:"save-outline"},null)]}),this.c.model.enableQuickSearch&&o(i("el-input"),{modelValue:this.c.state.query,"onUpdate:modelValue":e=>this.c.state.query=e,class:this.ns.b("quick-search"),placeholder:this.c.state.quickSearchPlaceHolder,clearable:!0,onKeydown:this.onKeydown,onClear:this.onClear,"suffix-icon":o("ion-icon",{onClick:this.onSearch,class:this.ns.e("search-icon"),name:"search"},null)},{prepend:()=>this.renderAdvancedSearch()}),this.c.enableFilter&&o(i("el-button"),{ref:"filterButtonRef",type:"primary",title:ht(ibiz.i18n.t("control.searchBar.filter")),class:this.ns.b("filter"),onClick:()=>this.triggerFilter()},{default:()=>[o(i("iBizIcon"),{icon:{cssClass:"funnel-outline"}},null)]})]}})}});var au=Object.defineProperty,nu=(e,t,a)=>(((e,t,a)=>{t in e?au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class ou{constructor(){nu(this,"component","IBizSearchBarControl")}}function iu(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const su=[{valueOP:Wt.EQ,label:"等于(=)"},{valueOP:Wt.NOT_EQ,label:"不等于(<>)"},{valueOP:Wt.GT,label:"大于(>)"},{valueOP:Wt.GT_AND_EQ,label:"大于等于(>=)"},{valueOP:Wt.LT,label:"小于(<)"},{valueOP:Wt.LT_AND_EQ,label:"小于等于(<=)"},{valueOP:Wt.IS_NULL,label:"值为空(Nil)"},{valueOP:Wt.IS_NOT_NULL,label:"值不为空(NotNil)"},{valueOP:Wt.IN,label:"值在范围中(In)"},{valueOP:Wt.NOT_IN,label:"值不在范围中(NotIn)"},{valueOP:Wt.LIKE,label:"文本包含(%)"},{valueOP:Wt.LIFT_LIKE,label:"文本左包含(%#)"},{valueOP:Wt.RIGHT_LIKE,label:"文本右包含(#%)"},{valueOP:Wt.EXISTS,label:"存在(EXISTS)"},{valueOP:Wt.NOT_EXISTS,label:"不存在(NOTEXISTS)"}],lu=[Wt.IS_NULL,Wt.IS_NOT_NULL,Wt.EXISTS,Wt.NOT_EXISTS],ru=a({name:"IBizFilterTreeControl",props:{filterControllers:{type:Array,required:!0},filterNodes:{type:Array,required:!0},parent:{type:String,required:!0},filterMode:{type:String,default:"default"},customCond:{type:String,default:""},context:{type:Object},params:{type:Object},schemaEntityMap:{type:Object,default:()=>new Map}},emits:["confirm","cancel","change","customCondChange"],setup(e,{emit:t}){const a=A("filter-tree"),s=l((()=>"search-bar"===e.parent)),d=l((()=>e.filterNodes)),u=t=>{if("ITEMS"===t.nodeType&&t.simple){const a=t.children[0];return e.filterControllers.find((e=>{if("SIMPLE_ITEMS"===e.type){const n=e;if(n.fieldName===t.field&&n.valueOP===t.valueOP&&n.subFieldName===a.field&&n.subValueOP===a.valueOP)return!0}return!1}))}const{field:a,valueOP:n}=t;return e.filterControllers.find((e=>"SIMPLE_ITEMS"!==e.type&&(e.fieldName===a&&(!e.valueOP||e.valueOP===n))))},p=[];e.filterControllers.forEach((e=>{let t=p.find((t=>t.name===e.key));e.hidden||(void 0===t&&(t={name:e.key,fieldName:e.fieldName,label:e.label,valueOPs:[]},"SIMPLE_ITEMS"===e.type&&(t.simpleFilterC=e),p.push(t)),e.valueOP?t.valueOPs.push(e.valueOP):t.valueOPs=su.map((e=>e.valueOP)))}));const h=n([]);p.forEach((async t=>{var a,n;const o=e.filterControllers.find((e=>e.key===t.name));o&&h.value.push({appDEFieldId:t.fieldName,caption:t.label,valueOPs:t.valueOPs,appDataEntityId:e.schemaEntityMap.get(t.fieldName),appDataEntityFullTag:null==(a=o.appDataEntity)?void 0:a.defullTag,appCodeListId:null==(n=o.model.editor)?void 0:n.appCodeListId})}));const m=n(),v=n(e.filterMode||"default"),g=n(""),w=e=>{g.value=e,t("customCondChange",g.value)};c((()=>e.customCond),(()=>{g.value=e.customCond}),{immediate:!0});const f=(e,t,a=p)=>{const n=a.find((e=>e.name===t));n?(co(e),n.simpleFilterC?n.simpleFilterC.addSimpleFilterNode(e):(e.nodeType="FIELD",e.field=n.fieldName)):ibiz.log.error("allFields找不到属性标识为".concat(t,"的"))},y=e=>{e.children.push({nodeType:"FIELD",field:null,valueOP:null,value:null})},C=(e,t)=>{if(t.noEditor||e.valueOP&&lu.includes(e.valueOP))return null;let n=null;if(t.editorProvider){const{data:a,value:o}=t.calcEditorProps(e),s=i(t.editorProvider.formEditor);n=r(s,{key:t.editor.model.id,value:o,controller:t.editor,disabled:e.disabled,data:a,onChange:(a,n)=>{t.onEditorChange(e,a,n)}})}else n=o(i("not-supported-editor"),{modelData:t.model.editor},null);return o("div",{class:a.e("editor")},[n])},I=(e,t)=>{if(e.hidden)return;let n=p;t&&(n=t.allFields);const s=((e,t=p)=>{if(!e)return;const a=t.find((t=>t.name===e));return a?a.valueOPs:void 0})(e.field,n);let l=null;if(e.field&&e.valueOP)if(t){const a=t.getSubFilterController(e.field,e.valueOP);l=C(e,a)}else{const t=u(e);t&&!["EXISTS","NOTEXISTS"].includes(t.valueOP)&&(l=C(e,t))}return o("div",{class:a.b("item")},[o(i("el-select"),{disabled:e.disabled,"model-value":e.field,teleported:!1,class:a.e("field-select"),onChange:t=>{f(e,t,n)}},{default:()=>[null==n?void 0:n.map((e=>o(i("el-option"),{key:e.name,value:e.name,label:e.label},null)))]}),s&&s.length>0&&o(i("iBizFilterModeSelect"),{disabled:e.disabled,class:a.e("mode-select"),value:e.valueOP,modes:s,onChange:t=>{((e,t)=>{e.valueOP=t,e.value=null,["EXISTS","NOTEXISTS"].includes(t)?Object.assign(e,{nodeType:"ITEMS",children:[{nodeType:"FIELD",field:null,valueOP:null,value:null}]}):Object.assign(e,{nodeType:"FIELD",children:void 0})})(e,t)}},null),l])};let D=e=>o("div",null,null);const E=(t,n,l)=>{if(!t.hidden)return"ITEMS"===t.nodeType?D(t):o("div",{class:a.b("group")},[o("div",{class:a.be("group","actions")},[o(i("el-button"),{text:!0,type:"primary",onClick:()=>{"pql"!==v.value?(e=>{e.children.push({nodeType:"GROUP",logicType:"AND",children:[{nodeType:"FIELD",field:null,valueOP:null,value:null}]})})(t):v.value="default"}},{default:()=>["pql"===v.value?"切换组":"添加组"]}),o(i("el-button"),{text:!0,onClick:()=>{"pql"!==v.value?y(t):v.value="default"}},{default:()=>["pql"===v.value?"切换项":"添加项"]}),l&&s.value&&o(i("el-button"),{text:!0,onClick:()=>{v.value="pql"}},{default:()=>[b("添加PQL")]}),o(i("el-select"),{"model-value":t.logicType,teleported:!1,class:a.be("group","logic-type"),onChange:e=>{v.value="default",((e,t)=>{e.logicType=t})(t,e)}},{default:()=>[o(i("el-option"),{key:"AND",value:"AND",label:"AND"},null),o(i("el-option"),{key:"OR",value:"OR",label:"OR"},null)]})]),"pql"===v.value&&o("div",{class:a.be("group","editor")},[o(i("iBizPqlEditor"),{ref:"pqlEditor",value:g.value,fields:h.value,context:e.context,params:e.params,onChange:w},null)]),"pql"!==v.value&&o("div",{class:a.be("group","list")},[t.children.length>0&&t.children.map(((e,s)=>{const l="FIELD"===e.nodeType?I(e,n):E(e,n);return l?o("div",{class:a.be("group","list-item")},[o("div",{class:a.be("group","list-item-left")},[t.logicType]),l,o(i("iBizIcon"),{class:a.be("group","list-item-right"),onClick:()=>{t.children.splice(s,1)},icon:{cssClass:"trash"}},null)]):null}))])])};D=e=>{let t;const n=u(e);if(e.simple){let t;const s=e.children[0];if(!s)return;return[o(i("el-select"),{"model-value":n.key,teleported:!1,class:a.e("field-select"),onChange:t=>{f(e,t)}},iu(t=p.map((e=>o(i("el-option"),{key:e.name,value:e.name,label:e.label},null))))?t:{default:()=>[t]}),o(i("iBizFilterModeSelect"),{disabled:!0,class:a.e("mode-select"),value:s.valueOP,modes:[s.valueOP]},null),C(s,n)]}return o("div",{class:(a.b("group"),a.bm("group","items"))},[o("div",{class:a.be("group","actions")},[I(e),o(i("el-button"),{text:!0,onClick:()=>{y(e)}},iu(t=ibiz.i18n.t("control.searchBar.filterTree.addItem"))?t:{default:()=>[t]})]),o("div",{class:a.be("group","list")},[e.children.length>0&&e.children.map(((t,s)=>{const l="FIELD"===t.nodeType?I(t,n):E(t,n);return o("div",{class:a.be("group","list-item")},[o("div",{class:a.be("group","list-item-left")},[b("AND")]),l,o(i("iBizIcon"),{class:a.be("group","list-item-right"),onClick:()=>{e.children.splice(s,1)},icon:{cssClass:"trash"}},null)])}))])])};return{ns:a,renderFilterGroup:E,renderFilterItem:I,onConfirm:()=>{var e,a;if("pql"!==v.value)t("confirm",v.value,g.value);else if(m.value){(null==(a=(e=m.value).verify)?void 0:a.call(e))&&t("confirm",v.value,g.value)}},onCancel:()=>{t("cancel")},isInSearchBar:s,UiFilterNodes:d,pqlEditor:m}},render(){let e;return o("div",{class:[this.ns.b()]},[this.UiFilterNodes.length>0&&this.UiFilterNodes.map((e=>"FIELD"===e.nodeType?this.renderFilterItem(e):this.renderFilterGroup(e,void 0,!0))),o("div",{class:this.ns.b("footer")},[o(i("el-button"),{onClick:()=>{this.onConfirm()}},{default:()=>[this.isInSearchBar?ibiz.i18n.t("app.search"):ibiz.i18n.t("control.common.determine")]}),o(i("el-button"),{onClick:()=>{this.onCancel()}},iu(e=ibiz.i18n.t("app.reset"))?e:{default:()=>[e]})])])}});const cu=[{valueOP:Wt.EQ,label:"等于(=)"},{valueOP:Wt.NOT_EQ,label:"不等于(<>)"},{valueOP:Wt.GT,label:"大于(>)"},{valueOP:Wt.GT_AND_EQ,label:"大于等于(>=)"},{valueOP:Wt.LT,label:"小于(<)"},{valueOP:Wt.LT_AND_EQ,label:"小于等于(<=)"},{valueOP:Wt.IS_NULL,label:"值为空(Nil)"},{valueOP:Wt.IS_NOT_NULL,label:"值不为空(NotNil)"},{valueOP:Wt.IN,label:"值在范围中(In)"},{valueOP:Wt.NOT_IN,label:"值不在范围中(NotIn)"},{valueOP:Wt.LIKE,label:"文本包含(%)"},{valueOP:Wt.LIFT_LIKE,label:"文本左包含(%#)"},{valueOP:Wt.RIGHT_LIKE,label:"文本右包含(#%)"},{valueOP:Wt.EXISTS,label:"存在(EXISTS)"},{valueOP:Wt.NOT_EXISTS,label:"不存在(NOTEXISTS)"}],du=a({name:"IBizFilterModeSelect",props:{value:String,modes:Array,disabled:Boolean},emits:{change:e=>!0},setup:(e,{emit:t})=>({availableModes:l((()=>{var t;return(null==(t=e.modes)?void 0:t.length)?cu.filter((t=>e.modes.includes(t.valueOP))):cu})),onChange:e=>{t("change",e)}}),render(){let e;return o(i("el-select"),{"model-value":this.value,disabled:this.disabled,teleported:!1,onChange:e=>{this.onChange(e)}},"function"==typeof(t=e=this.availableModes.map((e=>o(i("el-option"),{key:e.valueOP,value:e.valueOP,label:e.label},null))))||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]});var t}});function uu(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const pu=a({name:"IBizSearchGroups",components:{draggable:Do},props:{controller:{type:Object,required:!0}},setup(e){const t=A("search-groups"),a=e.controller,i=n(!1),{newDialogVisible:s,newForm:r,newFormRef:c,newFormRules:d,handleNewFormSubmit:u,handleNewFormCancel:p}=function(e){const t=n(!1),a=w({caption:""}),o=n(),i=w({caption:[{required:!0,message:ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),trigger:"blur"}]}),s=()=>{o.value&&o.value.resetFields(),t.value=!1};return{newDialogVisible:t,newForm:a,newFormRef:o,newFormRules:i,handleNewFormSubmit:async()=>{o.value&&await o.value.validate((async(t,n)=>{if(t){if(e.state.searchBarGroups.find((e=>e.caption===a.caption)))return void ibiz.message.error(ibiz.i18n.t("control.searchBar.searchGroups.errorMessage"));await e.service.create(a.caption),s(),await e.initSearBarGroups(),ibiz.message.success("".concat(ibiz.i18n.t("control.common.newSuccCreated"),"!"))}}))},handleNewFormCancel:s}}(a),{editDialogVisible:h,editForm:m,editFormRef:v,editFormRules:b,handleEditFormSubmit:g,handleEditFormCancel:f}=function(e){const t=n(!1),a=w({caption:""}),o=n(),i=w({caption:[{required:!0,message:ibiz.i18n.t("control.searchBar.searchGroups.groupValueRule"),trigger:"blur"}]});return{editDialogVisible:t,editForm:a,editFormRef:o,editFormRules:i,handleEditFormSubmit:async()=>{o.value&&await o.value.validate((async(n,o)=>{if(n){if(e.currentEditGroup&&(await e.service.update(e.currentEditGroup.id,{caption:a.caption})).ok){const t=e.state.searchBarGroups.findIndex((t=>t.id===e.currentEditGroup.id));-1!==t&&(e.state.searchBarGroups[t].caption=a.caption)}ibiz.message.success("".concat(ibiz.i18n.t("control.common.updateSuccess"),"!")),t.value=!1}}))},handleEditFormCancel:()=>{t.value=!1}}}(a),y=a.model.quickGroupCount||4,C=l((()=>a.state.searchBarGroups.filter((e=>e.show)).slice(0,y))),I=l((()=>a.state.searchBarGroups.filter((e=>e.show)).slice(y))),D=l((()=>!!a.state.selectedSearchGroupItem&&I.value.includes(a.state.selectedSearchGroupItem)));return{ns:t,c:a,showGroups:C,hiddenGroups:I,onGroupClick:e=>{a.handleGroupClick(e)},newDialogVisible:s,editDialogVisible:h,manageDialogVisible:i,newGroup:()=>{s.value=!0},manageGroup:()=>{i.value=!0},newForm:r,newFormRef:c,newFormRules:d,handleNewFormSubmit:u,handleNewFormCancel:p,editForm:m,editFormRef:v,editFormRules:b,handleEditFormSubmit:g,handleEditFormCancel:f,editGroup:e=>{h.value=!0,a.currentEditGroup=e,m.caption=e.caption||e.name},removeGroup:e=>{ti({title:ibiz.i18n.t("control.searchBar.searchGroups.delTitle"),message:()=>o("div",{class:t.b("remove-dialog")},[o("div",{class:t.b("remove-dialog-content"),innerHTML:ibiz.i18n.t("control.searchBar.searchGroups.confirmDelPrompt",{itemName:e.caption||e.name})},null),o("div",{class:t.b("remove-dialog-tip")},[ibiz.i18n.t("control.searchBar.searchGroups.unrecoverablePrompt")])]),showCancelButton:!0,confirmButtonText:ibiz.i18n.t("control.common.determine"),confirmButtonClass:t.b("remove-confirm-btn"),cancelButtonText:ibiz.i18n.t("app.cancel"),cancelButtonClass:t.b("remove-cancel-btn")}).then((async()=>{if(e.id){if((await a.service.remove(e.id)).ok){const t=a.state.searchBarGroups.findIndex((t=>t.name===e.name));-1!==t&&a.state.searchBarGroups.splice(t,1)}ibiz.message.success("".concat(ibiz.i18n.t("control.common.deleteSuccess"),"!")),await a.initSearBarGroups()}})).catch((()=>{}))},isActiveMore:D,onDragChange:async e=>{if(a.state.searchBarGroups.forEach(((e,t)=>{e.order=100*(t+1)})),e.moved){const t=e.moved.newIndex,n=e.moved.oldIndex,o=Math.min(t,n),i=Math.max(t,n)+1,s=a.state.searchBarGroups.slice(o,i);if(s.length>0){const e=async()=>{await a.service.updateBatch(s)},t=s.filter((e=>!e.saved));if(t.length){const n=await a.service.createBatch(t);if(n.ok&&n.data&&n.data[0]){const o=n.data[0];o.length>0&&o.forEach((e=>{const t=s.find((t=>t.name===e.name));t&&Dt(t,e)})),await e(),t.forEach((e=>{const t=a.state.searchBarGroups.find((t=>t.name===e.name));t&&(t.saved=!0)}))}}else await e()}}},editLinkTitle:e=>e.saved?e.noEdit?ibiz.i18n.t("control.searchBar.searchGroups.noEditPrompt"):"":ibiz.i18n.t("control.searchBar.searchGroups.savePrompt")}},render(){var e;return o("div",{class:this.ns.b()},[null==(e=this.showGroups)?void 0:e.map((e=>{var t;return o("span",{class:[this.ns.b("quick-group-item"),this.ns.is("selected",(null==(t=this.c.state.selectedSearchGroupItem)?void 0:t.name)===e.name)],onClick:()=>this.onGroupClick(e)},[e.caption||e.name])})),o(i("el-dropdown"),{"popper-class":this.ns.b("dropdown")},{default:()=>o("div",{class:[this.ns.b("more"),this.ns.is("selected",this.isActiveMore)]},[this.c.model.groupMoreText||ibiz.i18n.t("app.more"),o("ion-icon",{name:"chevron-down-outline"},null)]),dropdown:()=>o(i("el-dropdown-menu"),null,{default:()=>[this.hiddenGroups.map((e=>o(i("el-dropdown-item"),{onClick:()=>this.onGroupClick(e)},{default:()=>{var t;return[o("ion-icon",{name:"list-outline"},null),o("span",{class:this.ns.b("item-caption")},[e.caption||e.name]),(null==(t=this.c.state.selectedSearchGroupItem)?void 0:t.name)===e.name&&o("ion-icon",{name:"checkmark-outline"},null)]}}))),o(i("el-dropdown-item"),{divided:this.hiddenGroups.length>0,onClick:this.newGroup},{default:()=>[o("ion-icon",{name:"add-outline"},null),o("span",{class:this.ns.b("item-caption")},[ibiz.i18n.t("control.searchBar.searchGroups.newGroup")])]}),o(i("el-dropdown-item"),{onClick:this.manageGroup},{default:()=>[o("ion-icon",{name:"settings-outline"},null),o("span",{class:this.ns.b("item-caption")},[ibiz.i18n.t("control.searchBar.searchGroups.groupManage")])]})]})}),o(i("el-dialog"),{modelValue:this.newDialogVisible,"onUpdate:modelValue":e=>this.newDialogVisible=e,title:ht(ibiz.i18n.t("control.searchBar.searchGroups.newGroup")),"modal-class":this.ns.b("new-dialog")},{default:()=>o(i("el-form"),{ref:"newFormRef",model:this.newForm,"label-position":"top",rules:this.newFormRules},{default:()=>[o(i("el-form-item"),{label:ibiz.i18n.t("control.searchBar.searchGroups.groupName"),prop:"caption"},{default:()=>[o(i("el-input"),{modelValue:this.newForm.caption,"onUpdate:modelValue":e=>this.newForm.caption=e,placeholder:ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")},null)]})]}),footer:()=>{let e,t;return o("div",{class:this.ns.b("new-dialog-footer")},[o(i("el-button"),{class:this.ns.b("cancel-btn"),onClick:this.handleNewFormCancel},uu(e=ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel"))?e:{default:()=>[e]}),o(i("el-button"),{type:"primary",onClick:this.handleNewFormSubmit},uu(t=ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine"))?t:{default:()=>[t]})])}}),o(i("el-dialog"),{modelValue:this.editDialogVisible,"onUpdate:modelValue":e=>this.editDialogVisible=e,title:ht(ibiz.i18n.t("control.searchBar.searchGroups.editGroup")),"modal-class":this.ns.b("edit-dialog")},{default:()=>o(i("el-form"),{ref:"editFormRef",model:this.editForm,"label-position":"top",rules:this.editFormRules},{default:()=>[o(i("el-form-item"),{label:ibiz.i18n.t("control.searchBar.searchGroups.groupName"),prop:"caption"},{default:()=>[o(i("el-input"),{modelValue:this.editForm.caption,"onUpdate:modelValue":e=>this.editForm.caption=e,placeholder:ibiz.i18n.t("control.searchBar.searchGroups.enterPrompt")},null)]})]}),footer:()=>{let e,t;return o("div",{class:this.ns.b("edit-dialog-footer")},[o(i("el-button"),{class:this.ns.b("cancel-btn"),onClick:this.handleEditFormCancel},uu(e=ibiz.i18n.t("control.searchBar.searchGroups.dialogCancel"))?e:{default:()=>[e]}),o(i("el-button"),{type:"primary",onClick:this.handleEditFormSubmit},uu(t=ibiz.i18n.t("control.searchBar.searchGroups.dialogDetermine"))?t:{default:()=>[t]})])}}),o(i("el-dialog"),{modelValue:this.manageDialogVisible,"onUpdate:modelValue":e=>this.manageDialogVisible=e,title:ht(ibiz.i18n.t("control.searchBar.searchGroups.groupManage")),"modal-class":this.ns.b("manage-dialog")},{default:()=>[o("div",{class:this.ns.b("manage-dialog-content")},[o("div",{class:this.ns.b("content-top")},[o("div",{class:this.ns.b("content-top-left")},[o("ion-icon",{name:"alert-circle-outline"},null),ibiz.i18n.t("control.searchBar.searchGroups.manageTips")]),o("div",{class:this.ns.b("content-top-right")},[o(i("el-button"),{onClick:()=>{this.newDialogVisible=!0}},{default:()=>[o("ion-icon",{name:"add-outline"},null),ibiz.i18n.t("control.searchBar.searchGroups.newGroup")]})])]),o("div",{class:this.ns.b("content-bottom")},[o("div",{class:this.ns.b("table-header")},[o("div",{class:this.ns.b("name")},[ibiz.i18n.t("control.searchBar.searchGroups.name")]),o("div",{class:this.ns.b("show")},[ibiz.i18n.t("control.searchBar.searchGroups.show")]),o("div",{class:this.ns.b("action")},[ibiz.i18n.t("control.searchBar.searchGroups.operate")])]),o(Do,{class:this.ns.b("table-body"),modelValue:this.c.state.searchBarGroups,"onUpdate:modelValue":e=>this.c.state.searchBarGroups=e,group:this.c.model.id,itemKey:"id",sort:!0,"force-fallback":!0,animation:500,"ghost-class":this.ns.b("table-row-ghost"),onChange:e=>this.onDragChange(e)},{item:({element:e})=>{let t,a;return o("div",{class:this.ns.b("table-row")},[o("div",{class:this.ns.b("name")},[e.caption||e.name]),o("div",{class:this.ns.b("show")},[o(i("el-switch"),{modelValue:e.show,"onUpdate:modelValue":t=>e.show=t},null)]),o("div",{class:this.ns.b("action")},[o(i("el-link"),{type:"primary",disabled:!e.saved||e.noEdit,title:ht(this.editLinkTitle(e)),onClick:()=>this.editGroup(e)},uu(t=ibiz.i18n.t("app.edit"))?t:{default:()=>[t]}),o(i("el-link"),{type:"danger",disabled:!e.saved,title:ht(e.saved?"":ibiz.i18n.t("control.searchBar.searchGroups.savePrompt")),onClick:()=>this.removeGroup(e)},uu(a=ibiz.i18n.t("app.delete"))?a:{default:()=>[a]})])])}})])])]})])}});const hu=a({name:"IBizQuickSearchSelect",props:{controller:{type:La,required:!0}},setup:e=>({ns:A("quick-search-select"),onItemClick:t=>{const a=t.fieldName,{quickSearchFieldNames:n}=e.controller.state,o=n.indexOf(a);-1===o?n.push(a):n.splice(o,1),e.controller.calcQuickSearchPlaceHolder()}}),render(){const{state:e}=this.controller;return o(i("el-dropdown"),{onCommand:this.onItemClick,trigger:"click","hide-on-click":!1,class:[this.ns.b()],"popper-class":[this.ns.b("popover")]},{default:()=>o("div",{class:this.ns.e("icon")},[o("ion-icon",{name:"settings-outline"},null)]),dropdown:()=>{let t;return o(i("el-dropdown-menu"),null,"function"==typeof(a=t=e.quickSearchItems.map((t=>{const a=e.quickSearchFieldNames.includes(t.fieldName);return o(i("el-dropdown-item"),{class:[this.ns.be("popover","item"),a&&this.ns.bem("popover","item","selected")],command:t},{default:()=>[t.label]})})))||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?t:{default:()=>[t]});var a}})}}),mu=e("Z",U(tu,(function(e){e.component(tu.name,tu),e.component(ru.name,ru),e.component(du.name,du),e.component(pu.name,pu),e.component(hu.name,hu),Xt($t.SEARCHBAR,(()=>new ou))})));var vu=Object.defineProperty,bu=(e,t,a)=>(((e,t,a)=>{t in e?vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class gu{constructor(){bu(this,"component","IBizChartControl")}}const wu=e("_",{install(e){e.component("IBizChartControl",D({loader:()=>t.import("./chart-C95ofGUJ.js"),loadingComponent:re,delay:0})),Xt($t.CHART,(()=>new gu))}});const fu=a({name:"IBizWizardPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=F(((...e)=>new Va(...e))),t=A("control-".concat(e.model.controlType.toLowerCase()));return{c:e,ns:t}},render(){var e,t,a,n,l;const{activeFormTag:c,buttonsState:d}=this.c.state;let u=null,p=null,h=null;if(c&&this.c.activeWizardForm){if(this.c.providers[c]){const t=i(this.c.providers[c].component),a=null==(e=this.c.model.deeditForms)?void 0:e.find((e=>{var t;return c===(null==(t=e.dewizardForm)?void 0:t.formTag)}));p=r(t,{class:this.ns.e("form"),modelData:a,context:this.c.context,params:this.c.params,key:c,onMounted:e=>this.c.onFormMounted(c,e),onSaveSuccess:e=>this.c.onFormSaved(e)})}const{dewizard:v}=this.c.model;h=v&&o("div",{key:"".concat(c,"footer"),class:this.ns.b("footer")},[(null==(t=d["".concat(c,"@PREV")])?void 0:t.visible)&&o(i("el-button"),{onClick:()=>{this.c.onPrevClick()}},{default:()=>[v.prevCaption?v.prevCaption:ibiz.i18n.t("control.common.retreat")]}),(null==(a=d["".concat(c,"@NEXT")])?void 0:a.visible)&&o(i("el-button"),{onClick:()=>{this.c.onNextClick()}},{default:()=>[v.nextCaption?v.nextCaption:ibiz.i18n.t("control.common.forward")]}),(null==(n=d["".concat(c,"@FINISH")])?void 0:n.visible)&&o(i("el-button"),{onClick:()=>{this.c.onFinishClick()}},{default:()=>[v.finishCaption?v.finishCaption:ibiz.i18n.t("app.complete")]})]);const{dewizardSteps:b}=v;if(this.c.model.showStepBar&&b&&b.length>0){let e;const t=this.c.steps.indexOf(this.c.stepTags["".concat(this.c.model.name,"_form_").concat(null==(l=this.c.state.activeFormTag)?void 0:l.toLowerCase())])+1;u=o(i("el-steps"),{class:this.ns.b("header"),"align-center":!0,"finish-status":"success",active:t},"function"==typeof(m=e=b.map((e=>o(i("el-step"),{title:ht(e.title)},null))))||"[object Object]"===Object.prototype.toString.call(m)&&!s(m)?e:{default:()=>[e]})}}var m;return o(i("iBizControlBase"),{controller:this.c,class:[this.ns.b(),this.ns.is("header",this.c.model.showStepBar)]},{default:()=>[u,p,h]})}});var yu=Object.defineProperty,Cu=(e,t,a)=>(((e,t,a)=>{t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Iu{constructor(){Cu(this,"component","IBizWizardPanelControl")}}const Du=e("$",U(fu,(function(e){e.component(fu.name,fu),Xt($t.WIZARD_PANEL,(()=>new Iu))})));var Eu=Object.defineProperty,Pu=(e,t,a)=>(((e,t,a)=>{t in e?Eu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class ku extends Fa{constructor(){super(...arguments),Pu(this,"counter"),Pu(this,"router")}get navPos(){var e;return null==(e=this.view.layoutPanel)?void 0:e.panelItems.nav_pos}get viewNavPos(){var e;return null==(e=this.view.layoutPanel)?void 0:e.panelItems.view_nav_pos}get form(){var e;return null==(e=this.view)?void 0:e.getController("form")}get isCreate(){return this.getData()[0].srfuf!==ia.UPDATE}getData(){var e;return(null==(e=this.form)?void 0:e.getData())||[{}]}setRouter(e){this.router=e}get routeDepth(){return this.view.modal.routeDepth}initState(){super.initState(),this.state.drBarItems=[],this.state.srfnav="",this.state.hideEditItem=!!this.model.hideEditItem}async onCreated(){await super.onCreated(),this.initDRBarItems(),await this.initCounter()}calcItemStateByCounter(e,t=!0){if(this.state.drBarItems.forEach((e=>{var t;if(null==(t=e.children)?void 0:t.length)e.children.forEach((e=>{const t=Ua(e,this.counter);void 0!==t&&(e.visible=t)})),e.visible=e.children.some((e=>e.visible));else{const t=Ua(e,this.counter);void 0!==t&&(e.visible=t)}})),this.state.selectedItem&&t){const{visible:e,defaultVisibleItem:t}=this.getItemVisibleState(this.state.selectedItem);!e&&t&&this.handleSelectChange(t.tag)}}getItemVisibleState(e){let t,a=!0;return this.state.drBarItems.forEach((n=>{if(n.children){t||(t=n.children.find((e=>e.visible)));const o=n.children.find((t=>t.tag===e));o&&(a=!!o.visible)}else!t&&n.visible&&(t=n),n.tag===e&&(a=!!n.visible)})),{visible:a,defaultVisibleItem:t}}async calcPermitted(e){var t;let a=!0;const n=(null==(t=this.getData())?void 0:t.length)?this.getData()[0]:void 0,o=await qa(e,this.context,this.params,this.model.appDataEntityId,this.model.appId,n);void 0!==o&&(a=o),e.visible=a}async calcDrBarItemsState(){await Promise.all(this.state.drBarItems.map((async e=>{var t;(null==(t=e.children)?void 0:t.length)?(await Promise.all(e.children.map((async e=>{await this.calcPermitted(e)}))),e.visible=e.children.some((e=>e.visible))):await this.calcPermitted(e)}))),this.calcItemStateByCounter({},!1),this.state.isCalculatedPermission=!0}async onMounted(){await super.onMounted(),this.form?(this.form.evt.on("onLoadSuccess",(async e=>{const t=e.data[0];this.view.state.srfactiveviewdata=t,Object.prototype.hasOwnProperty.call(t,"srfreadonly")&&(this.view.context.srfreadonly=t.srfreadonly),await this.calcDrBarItemsState(),this.handleFormChange(),this.doDefaultSelect()})),this.form.evt.on("onLoadDraftSuccess",(()=>{this.handleFormChange()})),this.form.evt.on("onSaveSuccess",(()=>{this.handleFormChange()}))):await this.calcDrBarItemsState(),this.form.state.isLoaded&&this.doDefaultSelect()}handleFormChange(){const e=this.isCreate;this.setDRBarItemsState(this.state.drBarItems,e)}setDRBarItemsState(e,t){e.forEach((e=>{e.tag!==this.model.uniqueTag&&(e.disabled=t),e.children&&this.setDRBarItemsState(e.children,t)}))}initDRBarItems(){const{dedrctrlItems:e,dedrbarGroups:t}=this.model,a=[];if(!this.state.hideEditItem){const{editItemCaption:e,editItemCapLanguageRes:t,editItemSysImage:n,uniqueTag:o}=this.model;let i=e;t&&(i=ibiz.i18n.t(t.lanResTag,e)),a.push({tag:o,caption:i,disabled:!1,sysImage:n,fullPath:this.router.currentRoute.value.fullPath}),this.state.defaultItem=o}const n=e=>{let t=e.caption;e.capLanguageRes&&(t=ibiz.i18n.t(e.capLanguageRes.lanResTag,e.caption));const{enableMode:a,testAppDELogicId:n,testScriptCode:o,counterMode:i}=e;return{tag:e.id,caption:t,sysImage:e.sysImage,disabled:!1,counterId:e.counterId,visible:!1,dataAccessAction:e.dataAccessAction||void 0,enableMode:a,testAppDELogicId:n,testScriptCode:o,counterMode:i}};t&&e&&(1===t.length?e.forEach((e=>{a.push(n(e))})):t.forEach((t=>{var o;const i=e.filter((e=>e.dedrbarGroupId===t.id));if(i.length>1||"true"===(null==(o=this.controlParams)?void 0:o.singleitemgroup)&&1===i.length){let e=t.caption;t.capLanguageRes&&(e=ibiz.i18n.t(t.capLanguageRes.lanResTag,t.caption)),a.push({tag:t.id,caption:e,sysImage:t.sysImage,visible:!1,children:i.map((e=>n(e)))})}else 1===i.length&&a.push(n(i[0]))}))),this.state.drBarItems=a}handleSelectChange(e=this.state.defaultItem,t=!1){var a;if(this.state.selectedItem===e)return;const n=null==(a=this.model.dedrctrlItems)?void 0:a.find((t=>t.id===e));n?(this.setVisible("navPos"),this.openNavPosView(n,t)):(this.setVisible("form"),this.routeDepth&&this.router.push(this.state.drBarItems[0].fullPath)),this.state.selectedItem=e}setVisible(e){var t;if(this.state.hideEditItem)return;const a=null==(t=this.view.layoutPanel)?void 0:t.panelItems.view_form;"form"===e?(a&&(a.state.visible=!0,a.state.keepAlive=!0),this.viewNavPos&&(this.viewNavPos.state.visible=!1,this.viewNavPos.state.keepAlive=!0)):(a&&(a.state.visible=!1,a.state.keepAlive=!0),this.viewNavPos&&(this.viewNavPos.state.visible=!0,this.viewNavPos.state.keepAlive=!0))}prepareParams(e){const{navigateContexts:t,navigateParams:a}=e,n={navContexts:t,navParams:a},o={context:this.context,params:this.params,data:this.getData()[0]},{resultContext:i,resultParams:s}=Ga(n,o);return{context:Object.assign(this.context.clone(),i),params:{...this.params,...s}}}async openNavPosView(e,t=!1){var a;const{context:n,params:o}=this.prepareParams(e);n.currentSrfNav=e.id,this.state.srfnav=e.id,null==(a=this.navPos)||a.openView({key:e.id,context:n,params:o,viewId:e.appViewId,isRoutePushed:t})}doDefaultSelect(){var e,t;const a=null==(e=this.view.layoutPanel)?void 0:e.panelItems.view_form;if(a&&(a.state.visible=!1,a.state.keepAlive=!1),!this.state.hideEditItem&&!this.state.srfnav)return void this.setVisible("form");if(this.isCreate)return void(this.state.defaultItem=this.model.uniqueTag);const{drBarItems:n}=this.state;let o=(null==(t=n[0].children)?void 0:t[0].tag)||n[0].tag;if(this.routeDepth&&this.state.srfnav&&(o=this.state.srfnav),o){const e=!!this.routeDepth&&Ha(this.routeDepth),{visible:t,defaultVisibleItem:a}=this.getItemVisibleState(o);!t&&a?(o=a.tag,this.handleSelectChange(o)):this.handleSelectChange(o,e),this.state.defaultItem=o}}async initCounter(){const{appCounterRefs:e}=this.model,t=null==e?void 0:e[0];t&&(this.counter=await Wa.getCounterByRef(t,this.context,{...this.params}),this.calcItemStateByCounter=this.calcItemStateByCounter.bind(this),this.counter.onChange(this.calcItemStateByCounter))}async onDestroyed(){await super.onDestroyed(),this.counter&&(this.counter.offChange(this.calcItemStateByCounter),this.counter.destroy())}}e("a1",ku);const Su=a({name:"IBizDrBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},showMode:{type:String,default:"vertical"},hideEditItem:{type:Boolean,default:void 0}},setup(e){const t=F(((...e)=>new ku(...e))),a=A("control-".concat(t.model.controlType.toLowerCase())),n=zo(),s=w({}),l=e=>{Object.assign(s,e)};t.evt.on("onCreated",(()=>{t.counter&&t.counter.onChange(l,!0)})),C((()=>{var e;null==(e=t.counter)||e.offChange(l)})),t.setRouter(n);const r=To();let d="";const u=[];c((()=>t.state.isCreated),((a,n)=>{if("horizontal"!==e.showMode){const{drBarItems:e}=t.state;e.forEach((e=>{u.push(e.tag)}))}})),t.routeDepth&&(d=oe(r,t.routeDepth)),c((()=>r.fullPath),((e,a)=>{if(e!==a){const e=t.routeDepth;if(e){if(oe(r,t.routeDepth)===d){const a=ie(r),{srfnav:n}=a.pathNodes[e-1];t.handleSelectChange(n)}}}}),{immediate:!0});const p=n=>{if(n.visible){if(n.children){let s="";if("horizontal"===e.showMode&&n.tag!==t.state.selectedItem){const e=n.children.find((e=>e.tag===t.state.selectedItem));e&&(s="-".concat(e.caption))}return o(i("el-sub-menu"),{class:a.b("group"),index:n.tag,disabled:n.disabled},{default:()=>n.children.map((e=>p(e))),title:()=>[o(i("iBizIcon"),{class:a.e("icon"),icon:n.sysImage},null),o("span",null,[n.caption,s])]})}return o(i("el-menu-item"),{class:a.e("item"),index:n.tag,disabled:n.disabled},{default:()=>[o(i("iBizIcon"),{class:a.e("icon"),icon:n.sysImage},null),o("span",null,[n.caption]),n.counterId&&null!=s[n.counterId]&&o(i("iBizBadge"),{class:a.e("counter"),value:s[n.counterId],counterMode:n.counterMode},null)]})}};return{c:t,ns:a,handleSelect:e=>{t.handleSelectChange(e)},renderMenuItems:p,opens:u}},render(){let e;const{isCreated:t,drBarItems:a,selectedItem:n,isCalculatedPermission:l}=this.c.state;return o(i("iBizControlBase"),{controller:this.c,class:this.ns.b()},{default:()=>{return[t&&l&&o(i("el-menu"),{class:this.ns.e("menu"),mode:this.showMode,"default-active":n,onSelect:this.handleSelect,"default-openeds":this.opens},(r=e=a.map((e=>this.renderMenuItems(e))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?e:{default:()=>[e]}))];var r}})}});var xu=Object.defineProperty,Tu=(e,t,a)=>(((e,t,a)=>{t in e?xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class zu{constructor(){Tu(this,"component","IBizDrBarControl")}}const Ou=e("a0",U(Su,(function(e){e.component(Su.name,Su),Xt($t.DRBAR,(()=>new zu))})));var _u=Object.defineProperty,Au=(e,t,a)=>(((e,t,a)=>{t in e?_u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Bu extends Fa{constructor(){super(...arguments),Au(this,"counter"),Au(this,"router")}get navPos(){var e;return null==(e=this.view.layoutPanel)?void 0:e.panelItems.nav_pos}get form(){var e;return null==(e=this.view)?void 0:e.getController("form")}get routeDepth(){return this.view.modal.routeDepth}setRouter(e){this.router=e}getData(){var e;return(null==(e=this.form)?void 0:e.getData())||[{}]}initState(){super.initState(),this.state.drTabPages=[],this.state.showMore=!1}async onCreated(){await super.onCreated(),await this.initCounter()}handleControlParams(){super.handleControlParams(),this.controlParams.showmore&&(this.state.showMore="true"===this.controlParams.showmore)}calcItemStateByCounter(){if(this.state.drTabPages.forEach((e=>{const t=Ua(e,this.counter);void 0!==t&&(e.hidden=!t)})),this.state.activeName){const{visible:e,defaultVisibleItem:t}=this.getItemVisibleState(this.state.activeName);!e&&t&&(this.state.activeName=t.tag,this.handleTabChange())}}getItemVisibleState(e){let t,a=!0;return this.state.drTabPages.forEach((n=>{t||n.hidden||(t=n),n.tag===e&&(a=!n.hidden)})),{visible:a,defaultVisibleItem:t}}async calcPermitted(e){var t;let a=!0;const n=(null==(t=this.getData())?void 0:t.length)?this.getData()[0]:void 0,o=await qa(e,this.context,this.params,this.model.appDataEntityId,this.model.appId,n);void 0!==o&&(a=o),e.hidden=!a}async calcDrTabPagesState(){await Promise.all(this.state.drTabPages.map((async e=>{await this.calcPermitted(e)}))),this.calcItemStateByCounter(),this.state.isCalculatedPermission=!0}async onMounted(){await super.onMounted(),this.form&&(this.form.evt.on("onLoadSuccess",(async e=>{const t=e.data[0];this.view.state.srfactiveviewdata=t,Object.prototype.hasOwnProperty.call(t,"srfreadonly")&&(this.view.context.srfreadonly=t.srfreadonly),await this.calcDrTabPagesState(),this.handleFormChange()})),this.form.evt.on("onLoadDraftSuccess",(()=>{this.handleFormChange()})),this.form.evt.on("onSaveSuccess",(()=>{this.handleFormChange()}))),this.initDRTabPages(),this.form||await this.calcDrTabPagesState()}handleFormChange(){const e=this.getData()[0].srfuf!==ia.UPDATE;this.setDRTabPagesState(this.state.drTabPages,e)}setDRTabPagesState(e,t){e.forEach((e=>{e.tag!==this.model.uniqueTag&&(e.disabled=t)}))}initDRTabPages(){const{editItemCaption:e,editItemCapLanguageRes:t,hideEditItem:a,editItemSysImage:n,uniqueTag:o,dedrtabPages:i}=this.model,s=[];let l=e;t&&(l=ibiz.i18n.t(t.lanResTag,e)),a?this.state.defaultName=(null==i?void 0:i[0].id)||"":(s.push({tag:o,caption:l,hidden:!!a,disabled:!1,sysImage:n,fullPath:this.routeDepth?oe(this.router.currentRoute.value,this.routeDepth):""}),this.state.defaultName=""),null==i||i.forEach((e=>{let t=e.caption;e.capLanguageRes&&(t=ibiz.i18n.t(e.capLanguageRes.lanResTag,e.caption));const{enableMode:a,dataAccessAction:n,testAppDELogicId:o,testScriptCode:i,counterMode:l}=e;s.push({tag:e.id,caption:t,sysImage:e.sysImage,hidden:!1,disabled:!1,counterId:e.counterId,dataAccessAction:n,enableMode:a,testAppDELogicId:o,testScriptCode:i,counterMode:l})})),this.state.drTabPages=s,this.view.state.srfnav?this.state.activeName=this.view.state.srfnav:this.state.activeName=s[0].tag;const r=!!this.routeDepth&&Ha(this.routeDepth);this.handleTabChange(r)}handleTabChange(e=!1){var t;const{activeName:a}=this.state,n=null==(t=this.model.dedrtabPages)?void 0:t.find((e=>e.id===a));n?(this.setVisible("navPos"),this.openNavPosView(n,e)):(this.setVisible("form"),this.routeDepth&&this.state.drTabPages[0]&&this.router.push(this.state.drTabPages[0].fullPath))}setVisible(e){var t;const a=null==(t=this.view.layoutPanel)?void 0:t.panelItems.view_form;"form"===e?(a&&(a.state.visible=!0,a.state.keepAlive=!0),this.navPos&&(this.navPos.state.visible=!1,this.navPos.state.keepAlive=!0)):(a&&(a.state.visible=!1,a.state.keepAlive=!0),this.navPos&&(this.navPos.state.visible=!0,this.navPos.state.keepAlive=!0))}prepareParams(e){const{navigateContexts:t,navigateParams:a}=e,n={navContexts:t,navParams:a},o={context:this.context,params:this.params,data:this.getData()[0]},{resultContext:i,resultParams:s}=Ga(n,o);return{context:Object.assign(this.context.clone(),i,{currentSrfNav:e.id}),params:{...this.params,...s}}}async openNavPosView(e,t=!1){var a;const{context:n,params:o}=this.prepareParams(e);null==(a=this.navPos)||a.openView({key:e.id,context:n,params:o,viewId:e.appViewId,isRoutePushed:t})}async initCounter(){const{appCounterRefs:e}=this.model,t=null==e?void 0:e[0];t&&(this.counter=await Wa.getCounterByRef(t,this.context,{...this.params}),this.calcItemStateByCounter=this.calcItemStateByCounter.bind(this),this.counter.onChange(this.calcItemStateByCounter))}async onDestroyed(){await super.onDestroyed(),this.counter&&(this.counter.offChange(this.calcItemStateByCounter),this.counter.destroy())}}e("a3",Bu);const ju="ibiz";function Mu(e,t,a){let o=null,i=0;const s=n([]),l=n([]),r=(e,t={})=>{let a=0;const n=document.createElement("span"),o=document.createElement("span");return o.innerHTML=e,Object.assign(o.style,t),Object.assign(n.style,{width:"auto",position:"absolute",left:"-9999px"}),n.appendChild(o),document.body.appendChild(n),a=n.offsetWidth,document.body.removeChild(n),a};function d(){const{drTabPages:n,showMore:o}=e.state;if(!t.value||!o||0===n.length)return s.value=n,void(l.value=[]);const i=t.value.$el.offsetWidth;let c=0;s.value=[],l.value=[],n.forEach(((e,t)=>{if(!e.hidden){const n=e.caption||"",o=e.counterId?a[e.counterId]:void 0,d="var(--".concat(ju,"-font-size-regular)");if(null!=o&&(o||0===o)&&!(1===e.counterMode&&o<=0)){const e={marginLeft:"var(--".concat(ju,"-spacing-tight)"),minWidth:"20px",fontSize:d},t=r(String(o),e);c+=t}const u={padding:"0 var(--".concat(ju,0===t?"-spacing-base) 0 0":"-spacing-base)"),fontSize:d},p=r(n,u);c+=p;const h={padding:"0 0 0 var(--".concat(ju,"-spacing-base)"),fontSize:d},m=r("".concat(ibiz.i18n.t("app.more")," ^"),h);c+m>i?l.value.push(e):s.value.push(e)}}))}c((()=>e.state.drTabPages),(()=>{d()}),{deep:!0});const u=E((()=>{t.value&&(()=>{if(window.ResizeObserver){const e=t.value.$el;e&&(o=new ResizeObserver((e=>{const t=e[0].contentRect.width;t!==i&&(d(),i=t)})),o.observe(e))}})()}));return C((()=>{o&&o.disconnect(),u()})),{visibleItems:s,moreItems:l}}const Ru=a({name:"IBizDrTabControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=F(((...e)=>new Bu(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),a=zo(),o=n(),i=w({}),{visibleItems:s,moreItems:l}=Mu(e,o,i),r=e=>{Object.assign(i,e)};e.evt.on("onCreated",(()=>{e.counter&&e.counter.onChange(r,!0)})),C((()=>{var t;null==(t=e.counter)||t.offChange(r)})),e.setRouter(a);const d=To();let u="";return e.routeDepth&&(u=oe(d,e.routeDepth)),c((()=>d.fullPath),((t,a)=>{if(t!==a){const t=e.routeDepth;if(t){if(oe(d,e.routeDepth)===u){const a=ie(d),{srfnav:n}=a.pathNodes[t-1],o=!!e.routeDepth&&Ha(e.routeDepth);if(n&&e.state.activeName&&e.state.activeName!==n)e.state.activeName=n,e.handleTabChange(o);else if(!n){const t=!!e.routeDepth&&!Ha(e.routeDepth);(e.state.activeName!==e.state.defaultName||t)&&(e.state.activeName=e.state.defaultName,e.handleTabChange(o))}}}}}),{immediate:!0}),{c:e,ns:t,controlRef:o,counterData:i,visibleItems:s,moreItems:l,handleTabChange:()=>{e.handleTabChange()},handleMoreChange:t=>{e.state.activeName=t,e.handleTabChange()}}},render(){const{isCreated:e,isCalculatedPermission:t}=this.c.state,a=this.moreItems.find((e=>e.tag===this.c.state.activeName))||{},n=o(i("el-dropdown"),{trigger:"click",class:this.ns.b("more-dropdown"),"popper-class":this.ns.b("more-dropdown-popper")},{default:()=>o("div",{class:this.ns.be("more-dropdown","link"),onClick:e=>e.stopPropagation()},[o("span",null,[ibiz.i18n.t("app.more"),b(" ")]),o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em"},[o("g",{"stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M7.978 11.997l-.005.006L2.3 6.33l.83-.831 4.848 4.848L12.826 5.5l.83.83-5.673 5.673-.005-.006z"},null)])])]),dropdown:()=>o(i("el-dropdown-menu"),null,{default:()=>this.moreItems.map((e=>o(i("el-dropdown-item"),{class:[this.c.state.activeName===e.tag?this.ns.be("more-dropdown-popper","active"):""],onClick:()=>this.handleMoreChange(e.tag)},{default:()=>[o("span",{class:[this.ns.be("more-dropdown-popper","label")]},[o("span",{class:this.ns.bem("more-dropdown-popper","label","text"),title:ht(e.caption||"")},[e.caption||""]),e.counterId&&null!=this.counterData[e.counterId]&&o(i("iBizBadge"),{class:this.ns.bem("more-dropdown-popper","label","counter"),value:this.counterData[e.counterId],counterMode:e.counterMode},null)])]})))})});return o(i("iBizControlBase"),{ref:"controlRef",controller:this.c,class:[this.ns.b(),this.moreItems.length>0?this.ns.b("more"):""]},{default:()=>[e&&t&&o(i("el-tabs"),{modelValue:this.c.state.activeName,"onUpdate:modelValue":e=>this.c.state.activeName=e,onTabChange:this.handleTabChange},{default:()=>[this.visibleItems.map((e=>{const t=e.counterId?this.counterData[e.counterId]:void 0;return e.hidden?null:o(i("el-tab-pane"),{class:this.ns.e("tab-item"),label:e.caption+t,disabled:e.disabled,name:e.tag},{label:()=>o("span",{class:this.ns.b("label")},[o("span",{class:this.ns.be("label","text")},[e.caption]),!vo(t)&&o(i("iBizBadge"),{class:this.ns.e("counter"),value:t,counterMode:e.counterMode},null)])})})),this.moreItems.length>0&&o(i("el-tab-pane"),{label:"",name:a.tag},{label:()=>n})]})]})}});var Nu=Object.defineProperty,Lu=(e,t,a)=>(((e,t,a)=>{t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Vu{constructor(){Lu(this,"component","IBizDrTabControl")}}const Fu=e("a2",U(Ru,(function(e){e.component(Ru.name,Ru),Xt($t.DRTAB,(()=>new Vu))})));function Uu(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const qu={};function Gu(e,t,a){var n;const s=t.providers[e.id],l={modelData:e,controller:t.portlets[e.id]};if(!s)return o("div",null,[e.portletType,ibiz.i18n.t("app.noSupport")]);const c=i(s.component);if("CONTAINER"===e.portletType){const a=e;return r(c,{...l,key:e.id},{default:()=>{var e;return null==(e=a.controls)?void 0:e.map((e=>Gu(e,t)))}})}return r(c,{...l,key:(null==(n=qu[e.id])?void 0:n.refreshtag)?qu[e.id].refreshtag:e.id})}const Hu=a({name:"IBizDashboardControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=F(((...e)=>new Ka(...e))),t=f().proxy,a=n([]),o=A("control-".concat(e.model.controlType.toLowerCase()));e.evt.on("onCreated",(()=>{Object.values(e.portlets).forEach((e=>{e.state=w(e.state)}))})),e.evt.on("onItemModelReset",(async n=>{const{name:o}=n,i=a.value.findIndex((e=>e.id===o));if(-1!==i){const n=ibiz.hub.getApp(ibiz.env.appId),s=await e.loadDynaPortletById("".concat(n.model.codeName,".").concat(o));s&&(qu[s.id]={refreshtag:Vo()},a.value.splice(i,1,s),t.$forceUpdate())}}));return{c:e,ns:o,customModelDatas:a,handleCustomModelChange:e=>{a.value=e.model,t.$forceUpdate()}}},render(){let e;const{state:t,model:a}=this.c,n=()=>o(i("iBizRow"),{class:[this.ns.b()],layout:a.layout},{default:()=>{var e;return[null==(e=a.controls)?void 0:e.map((e=>{var t;let a;return o(i("iBizCol"),{layoutPos:e.layoutPos,state:null==(t=this.c.portlets[e.id])?void 0:t.state},Uu(a=Gu(e,this.c))?a:{default:()=>[a]})}))]}}),s=()=>{const e={default:()=>n()};return this.customModelDatas.forEach((t=>{e[t.codeName]=()=>Gu(t,this.c)})),e};return o(i("iBizControlBase"),{controller:this.c,class:[this.ns.b()]},{default:()=>[t.isCreated&&(a.enableCustomized?o(i("iBizCustomDashboardContainer"),{modelData:this.modelData,dashboard:this.c,onChanged:this.handleCustomModelChange},Uu(e=s())?e:{default:()=>[e]}):n())]})}});function Wu(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Ku=a({name:"IBizDashboardDesign",props:{dashboard:{type:Object,required:!0},customDashboard:{type:Object,required:!0},isShowDesign:{type:Boolean,required:!0}},emits:["saved","reset"],setup(e,{emit:t}){const a=A("dashboard-design"),o=e.dashboard,i=e.customDashboard,s=n([]),r=n([]),d=n([]),u=n(""),p=n(mo(i.customModelData)),h=n(mo(i.portletConfig)),m=n({}),v=n({}),b=n(null),g=e=>{const t=[];return e.forEach((e=>{let a=t.find((t=>Object.is(e.type,t.type)));a||(a={},Object.assign(a,{type:e.type,name:Object.is(e.type,"app")?ibiz.i18n.t("control.dashboard.dashboardDesign.global"):e.appName,children:[]}),t.push(a)),((e,t)=>{let a=e.find((e=>Object.is(t.groupCodeName,e.type)));a||(a={},Object.assign(a,{type:t.groupCodeName,name:t.groupName,children:[]}),e.push(a)),a.children.find((e=>Object.is(e.portletCodeName,t.portletCodeName)))||a.children.push(t)})(a.children,e)})),t},w=async()=>{const t=[],a=ibiz.hub.getApp(ibiz.env.appId);if(2===o.model.customizeMode){const e=await o.loadAllDynaPortlet();null==e||e.forEach((e=>{const n={type:"app",dynamodelFlag:1,portletId:e.psappportletid,portletCodeName:e.codename,portletName:e.psappportletname,groupCodeName:e.groupcodename||"Ungroup",groupName:e.groupname||"未分类",appCodeName:a.model.pkgcodeName,appName:a.model.name};t.push(n)}))}else if(a.model.appPortletCats&&a.model.appPortlets){const n=i.model.appDataEntityId,o=e.dashboard.controlParams.categorytag;a.model.appPortlets.forEach((e=>{var i;if(!n&&!e.enableAppDashboard)return;if(n&&!e.enableDEDashboard)return;const s=null==(i=a.model.appPortletCats)?void 0:i.find((t=>{var a;return t.codeName===(null==(a=e.appPortletCat)?void 0:a.codeName)}));if(o&&(!s||s.codeName!==o))return;const l={type:"app",portletCodeName:e.codeName,portletName:e.name,portletImage:e.control.sysImage,groupCodeName:(null==s?void 0:s.codeName)||"",groupName:(null==s?void 0:s.name)||"",appCodeName:e.appDataEntityId||a.model.pkgcodeName,appName:a.model.name};t.push(l)}))}const n=(e=>{const t=[];return e.forEach((e=>{var a;Object.is(e.type,"app")&&t.push(e);const n=(null==(a=i.model)?void 0:a.appDataEntityId)||"app";Object.is(e.appCodeName,n)&&t.push(e)})),t})(t);s.value=n,r.value=g(n).reverse(),d.value=(e=>{const t=[];return e.forEach((e=>{const a=t.find((t=>Object.is(t.value,e.groupCodeName)));a?a.children.find((t=>Object.is(t.portletCodeName,e.portletCodeName)))||a.children.push(e):t.push({name:e.groupName,value:e.groupCodeName,children:[e]})})),t})(n)},f=l((()=>{let e=[];return u.value?e=[u.value]:d.value.forEach(((t,a)=>{e.push(t.value+a)})),e})),y=e=>{const t=ibiz.hub.getApp(ibiz.env.appId);if(t.model.appPortlets){const a=t.model.appPortlets.find((t=>{var a;return(null==(a=t.control)?void 0:a.codeName)===e}));if(a)return a.control}},I=async e=>{if(e.dynamodelFlag){if(e.portletModel)return e.portletModel;return await o.loadDynaPortletById(e.portletId)}return y(e.portletCodeName)},D=async t=>{const a=await(async e=>{const t=[];if(e.length>0)for(let a=0;a<e.length;a++){const n=await I(e[a]);n&&t.push(n)}return t})(t);return await(async t=>{(null==t?void 0:t.length)&&await Promise.all(t.map((async t=>{const a=await Ya(t);if(a){m.value[t.id]=a;const n=await a.createController(t,e.dashboard);v.value[t.id]=n}})))})(a),await(async()=>{const e=h.value||{};Object.keys(e).forEach((t=>{const a=v.value[t];a&&(a.config=e[t],a.state.title=a.config.srftitle,Object.assign(a.params,a.config))}))})(),a};c((()=>e.isShowDesign),(async e=>{if(e){await w();const e=await i.loadCustomModelData(),t=mo(e.model),a=await D(t);p.value=t,p.value.forEach(((e,t)=>{e.dynamodelFlag&&(e.portletModel=a[t])})),h.value=mo(e.config)}}),{immediate:!0});const E=n(0),P=l((()=>"calc((100% - 10px) / ".concat(i.layoutColNum,") ").concat(i.layoutRowH+10,"px")));return C((async()=>{const e=Object.values(v.value);await Promise.all(e.map((async e=>{await e.destroyed()})))})),{ns:a,customC:i,portlets:s,list:r,groups:d,filterVal:u,defaultOpens:f,layoutModel:p,onReset:async()=>{const e=await i.resetCustomModelData();p.value=e.model,h.value=e.config,t("reset")},onSave:async()=>{const e=await i.saveCustomModelData(p.value);t("saved",{model:e.model,config:e.config})},removeItem:async e=>{const t=p.value.indexOf(e);if(-1!==t){p.value.splice(t,1);const a=await I(e);if(a){const e=v.value[a.id];await e.destroyed()}}},addLayoutItem:async e=>{const t=await D([e]),a=b.value;a&&(E.value=a.scrollHeight+3*i.layoutRowH);let n=0;for(const e of p.value)e.y>n&&(n=e.y);const s={w:4,h:3,x:0,y:n+3,i:e.portletCodeName,...e};if(e.dynamodelFlag){const a=o.dynaPortletMap.get(e.portletId);a&&Object.assign(s,{controlmodeldigest:a.controlmodeldigest}),Object.assign(s,{portletModel:t[0]})}if(p.value.push(s),a){const e=setInterval((()=>{a.scrollHeight>=E.value&&(a.scrollTo({top:a.scrollHeight,behavior:"smooth"}),clearInterval(e))}),50)}},handleColNumberChange:e=>{i.layoutColNum=e},handleRolHChange:e=>{i.layoutRowH=e},isDisabled:e=>!!p.value.find((t=>t.i===e.portletCodeName)),providers:m,portletControllers:v,maskSize:P,designPanel:b,getPortletModelByCodeName:y}},render(){let e,t,a,n;const s=e=>o(i("el-menu-item"),{key:e.portletCodeName,index:e.portletCodeName,tag:e.portletCodeName,disabled:this.isDisabled(e)},{default:()=>[o("span",null,[o("ion-icon",{icon:e.portletImage},null),e.portletName]),o("ion-icon",{title:ht(ibiz.i18n.t("control.dashboard.dashboardDesign.add")),name:"arrow-forward-outline",onClick:()=>this.addLayoutItem(e)},null)]}),l=e=>{const t=e.dynamodelFlag?e.portletModel:this.getPortletModelByCodeName(e.portletCodeName);if(!t)return null;const a=this.providers[t.id],n={modelData:t,controller:this.portletControllers[t.id]};if(!a)return o("div",null,[t.portletType,ibiz.i18n.t("app.noSupport")]);const s=i(a.component);return r(s,{...n,key:t.id})};return o("div",{class:this.ns.b()},[o("div",{class:this.ns.b("header")},[o("span",null,[ibiz.i18n.t("control.dashboard.dashboardDesign.customPortal")]),o("span",{class:this.ns.b("header-utils")},[o("div",{class:this.ns.be("header-utils","col-num")},[ibiz.i18n.t("control.dashboard.dashboardDesign.colNum"),b(":"),o(i("el-input-number"),{modelValue:this.customC.layoutColNum,"onUpdate:modelValue":e=>this.customC.layoutColNum=e,onChange:this.handleColNumberChange},null)]),o("div",{class:this.ns.be("header-utils","row-h")},[ibiz.i18n.t("control.dashboard.dashboardDesign.cellHeight"),b(":"),o(i("el-input-number"),{modelValue:this.customC.layoutRowH,"onUpdate:modelValue":e=>this.customC.layoutRowH=e,onChange:this.handleRolHChange},null)]),o(i("el-button"),{class:this.ns.be("header-utils","reset"),style:{display:this.customC.multiMode?"none":"inline-flex"},onClick:this.onReset},Wu(e=ibiz.i18n.t("control.dashboard.dashboardDesign.restoreDefault"))?e:{default:()=>[e]}),o(i("el-button"),{class:this.ns.be("header-utils","save"),onClick:this.onSave},Wu(t=ibiz.i18n.t("control.dashboard.dashboardDesign.save"))?t:{default:()=>[t]})])]),o("div",{class:this.ns.b("content")},[o("div",{class:this.ns.b("tree")},[o(i("el-select"),{modelValue:this.filterVal,"onUpdate:modelValue":e=>this.filterVal=e,clearable:!0,class:this.ns.b("tree-filter")},Wu(a=this.groups.map((e=>o(i("el-option"),{key:e.value,value:e.value,label:e.name},null))))?a:{default:()=>[a]}),o("div",{class:this.ns.b("tree-content")},[(()=>{let e,t;return this.filterVal?o(i("el-menu"),{"default-openeds":this.defaultOpens,class:this.ns.is("filter",!0),key:this.filterVal},Wu(e=this.groups.map((e=>e.value===this.filterVal?o(i("el-sub-menu"),{key:e.value,index:e.value},{title:()=>e.name,default:()=>e.children.map((e=>s(e)))}):null)))?e:{default:()=>[e]}):o(i("el-menu"),{class:this.ns.is("no-filter",!0),"default-openeds":this.defaultOpens,key:"default"},Wu(t=this.groups.map(((e,t)=>o(i("el-sub-menu"),{key:e.value+t,index:e.value+t},{title:()=>e.name,default:()=>e.children.map((e=>s(e)))}))))?t:{default:()=>[t]})})()])]),o("div",{class:this.ns.b("scroll-box"),ref:"designPanel"},[o("div",{class:this.ns.b("panel")},[o("div",{class:this.ns.b("grid-layout-mask"),style:{backgroundSize:this.maskSize}},null),o(i("grid-layout"),{class:this.ns.b("grid-layout"),layout:this.layoutModel,"col-num":this.customC.layoutColNum,"row-height":this.customC.layoutRowH,"is-draggable":!0,"is-resizable":!0,"is-mirrored":!1,"vertical-compact":!0,margin:[10,10],"use-css-transforms":!0,style:{maxHeight:"100%"}},Wu(n=this.layoutModel.map((e=>o(i("grid-item"),{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i,key:e.i},{default:()=>[o(i("el-card"),{class:this.ns.b("grid-layout-item")},{default:()=>[o("div",{class:this.ns.b("grid-layout-item-header")},[o("span",null,[e.portletName]),o("ion-icon",{name:"close-outline",onClick:()=>this.removeItem(e)},null)]),o("div",{class:this.ns.b("grid-layout-item-content")},[l(e)])]})]}))))?n:{default:()=>[n]})])])])])}}),Yu=a({name:"IBizCustomDashboardContainer",props:{modelData:{type:Object,required:!0},dashboard:{type:Object,required:!0}},setup(e,{emit:t}){const a=A("custom-dashboard-container"),o=w(new Xa(e.modelData,e.dashboard)),i=n(!1),s=n(!1),r=n(!1),c=async t=>{if(t.dynamodelFlag){if(t.portletModel)return t.portletModel;return await e.dashboard.loadDynaPortletById(t.portletId)}return(e=>{const t=ibiz.hub.getApp(ibiz.env.appId);if(t.model.appPortlets){const a=t.model.appPortlets.find((t=>{var a;return(null==(a=t.control)?void 0:a.codeName)===e}));if(a)return a.control}})(t.portletCodeName)},p=async e=>{const t=[];if(e.length>0)for(let a=0;a<e.length;a++){const n=await c(e[a]);n&&t.push(n)}return t},h=async t=>{await e.dashboard.initPortlets(t.model),await e.dashboard.initPortletsConfig(t.config)},m=l((()=>0===o.customModelData.length));return d((async()=>{const a=await o.loadCustomModelData(),n=await p(a.model);t("changed",{model:n}),await h({model:n,config:a.config}),i.value=!0,e.dashboard.evt.on("onConfigChange",(async e=>{const{name:t,config:a}=e;o.saveCustomModelData(o.customModelData,{[t]:a})}))})),{ns:a,customC:o,isShowDesign:s,isInited:i,isShowDefault:m,showTypeDir:r,openDesign:()=>{s.value=!0},onSaved:async a=>{s.value=!1;const n=await p(a.model);await h({model:n,config:a.config}),await e.dashboard.evt.emit("onSavePortlet",void 0),t("changed",{model:n})},onReset:async()=>{i.value=!1,s.value=!1,await e.dashboard.resetPortlets(),await u(),i.value=!0},clickCollapse:e=>{r.value="left"===e}}},render(){var e,t;return o("div",{class:[this.ns.b()]},[this.customC.showDesignBtn?o("div",{class:this.ns.b("build-btn")},[this.showTypeDir?o("div",null,[o(i("el-button"),{class:this.ns.b("deisgn-btn"),title:ht(ibiz.i18n.t("control.dashboard.customDashboardContainer.portalCustomPrompt")),onClick:this.openDesign},{default:()=>[o("ion-icon",{name:"build-outline"},null)]}),o(i("el-button"),{class:this.ns.b("forward-btn"),onClick:()=>this.clickCollapse("right")},{default:()=>[o("ion-icon",{name:"chevron-forward-outline"},null)]})]):o(i("el-button"),{class:this.ns.b("back-btn"),onClick:()=>this.clickCollapse("left")},{default:()=>[o("ion-icon",{name:"chevron-back-outline"},null)]})]):null,o(i("el-drawer"),{modelValue:this.isShowDesign,"onUpdate:modelValue":e=>this.isShowDesign=e,"with-header":!1,size:"80%","modal-class":"custom-dashboard-drawer"},{default:()=>[this.isShowDesign&&o(i("iBizDashboardDesign"),{dashboard:this.dashboard,"custom-dashboard":this.customC,"is-show-design":this.isShowDesign,onSaved:this.onSaved,onReset:this.onReset},null)]}),this.isInited&&(this.isShowDefault?null==(t=(e=this.$slots).default)?void 0:t.call(e):this.customC.customModelData.map((e=>{var t,a;const n={position:"absolute",height:"".concat(e.h*this.customC.layoutRowH,"px"),width:"calc(100% / ".concat(this.customC.layoutColNum," * ").concat(e.w,")"),top:"".concat(e.y*this.customC.layoutRowH,"px"),left:"calc(100% / ".concat(this.customC.layoutColNum," * ").concat(e.x,")")};return o("div",{style:n},[null==(a=(t=this.$slots)[e.portletCodeName])?void 0:a.call(t)])})))])}});var Xu=Object.defineProperty,$u=(e,t,a)=>(((e,t,a)=>{t in e?Xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Ju{constructor(){$u(this,"component","IBizDashboardControl")}}function Qu(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Zu=e("a6",a({name:"IBizContainerPortlet",props:{modelData:{type:Object,required:!0},controller:{type:$a,required:!0}},setup(e){var t;return{ns:A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase()))}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=o(i("iBizRow"),{layout:this.modelData.layout},Qu(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Qu(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]}),l=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];return o(i("iBizPortletLayout"),{controller:this.controller,class:l},Qu(s)?s:{default:()=>[s]})}}));var ep=Object.defineProperty,tp=(e,t,a)=>(((e,t,a)=>{t in e?ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class ap{constructor(){tp(this,"component","IBizContainerPortlet")}async createController(e,t,a){const n=new $a(e,t,a);return await n.init(),n}}const np=e("a5",U(Zu,(function(e){e.component(Zu.name,Zu),Ja("CONTAINER",(()=>new ap))}))),op=e("a7",a({name:"IBizPortletLayout",props:{controller:{type:Qa,required:!0},linkAction:{type:Object}},setup(e){var t;const a=A("portlet-layout"),n="portlet-".concat(null==(t=e.controller.model.portletType)?void 0:t.toLowerCase()),o=e.controller,i=l((()=>{const e=[a.em("toolbar","".concat(n,"-").concat(o.model.id))],{codeName:t}=o.dashboard.view.model;return e.push(a.em("toolbar",t)),e})),s=l((()=>o.model.showTitleBar&&(o.model.title||o.model.sysImage)||o.model.uiactionGroup));return{c:o,ns:a,popperClass:i,portletType:n,isShowHeader:s,onActionClick:async(t,a)=>{await e.controller.onActionClick(t,a)},openLink:t=>{e.linkAction&&e.controller.onActionClick(e.linkAction,t)}}},render(){var e,t;const{model:a,state:n}=this.controller;return o("div",{class:[this.ns.b(),this.ns.is("no-header",!this.isShowHeader)]},[this.isShowHeader&&o("div",{key:"header",class:this.ns.b("header")},[o("div",{class:this.ns.be("header","left")},[a.showTitleBar&&o("div",{class:[this.ns.e("caption"),this.ns.is("link",!!this.linkAction)],onClick:this.openLink},[o(i("iBizIcon"),{class:this.ns.e("caption-icon"),icon:a.sysImage},null),o("span",{class:this.ns.e("caption-text"),title:ht(n.title)},[n.title])])]),o("div",{class:this.ns.be("header","right")},[a.uiactionGroup&&o(i("iBizActionToolbar"),{class:this.ns.e("toolbar"),"action-details":a.uiactionGroup.uiactionGroupDetails,"actions-state":n.actionGroupState,mode:"ITEMS"===a.actionGroupExtractMode?"dropdown":"buttons",popperClass:this.popperClass,onActionClick:this.onActionClick},null)])]),o("div",{key:"content",class:this.ns.b("content")},[null==(t=(e=this.$slots).default)?void 0:t.call(e)])])}}));const ip=e("a9",a({name:"IBizViewPortlet",props:{modelData:{type:Object,required:!0},controller:{type:Za,required:!0}},setup(e){var t;const a=A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),n=e.modelData.portletAppView;let o;return d((()=>{const t=e.controller.model.timer;t&&t>0&&(o=setInterval((()=>{e.controller.refresh()}),t))})),p((()=>{clearInterval(o)})),{ns:a,view:n}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:a,params:n}=this.controller;return o(i("iBizPortletLayout"),{controller:this.controller,class:t},"function"==typeof(l=e=r(i("IBizViewShell"),{context:a,params:n,modelData:this.view}))||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?e:{default:()=>[e]});var l}}));var sp=Object.defineProperty,lp=(e,t,a)=>(((e,t,a)=>{t in e?sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class rp{constructor(){lp(this,"component","IBizViewPortlet")}async createController(e,t,a){const n=new Za(e,t,a);return await n.init(),n}}const cp=e("a8",U(ip,(function(e){e.component(ip.name,ip),Ja("VIEW",(()=>new rp))})));function dp(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const up=a({name:"IBizAppMenuPortletControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},collapse:Boolean,currentPath:String},setup(){var e;const t=F(((...e)=>new Jt(...e))),a=A("control-".concat(t.model.controlType.toLowerCase(),"-portlet")),s=n(""),l=n([]);null==(e=t.model.appMenuItems)||e.forEach((e=>{"MENUITEM"===e.itemType&&l.value.push(e.id)}));const r=async(e,a)=>{await t.onClickMenuItem(e,a)},c=e=>t.state.menuItemsState[e.id].visible?o("div",{class:[a.b("item"),a.is("disabled",!e.appFuncId)],title:ht(e.tooltip||e.caption),onClick:t=>{e.appFuncId&&r(e.id,t)}},[o(i("iBizIcon"),{class:a.be("item","icon"),icon:e.sysImage},null),o("span",{class:a.be("item","label")},[e.caption])]):null;return{c:t,ns:a,defaultActive:s,defaultOpens:l,onClick:r,renderGroup:e=>t.state.menuItemsState[e.id].visible?e.appMenuItems?o(i("el-collapse-item"),{class:a.b("group"),name:e.id,title:ht(e.caption)},{default:()=>{var t;return[null==(t=e.appMenuItems)?void 0:t.map((e=>c(e)))]}}):c(e):null,renderItem:c}},render(){var e;const{state:t,model:a}=this.c;let n=null;if(t.isCreated&&(null==(e=a.appMenuItems)?void 0:e.length)){let e;n=o(i("el-collapse"),{class:this.ns.e("content"),modelValue:this.defaultOpens,"onUpdate:modelValue":e=>this.defaultOpens=e},dp(e=a.appMenuItems.map((e=>"MENUITEM"!==e.itemType?null:this.renderGroup(e))))?e:{default:()=>[e]})}return o(i("iBizControlBase"),{class:[this.ns.b()],controller:this.c},dp(n)?n:{default:()=>[n]})}}),pp=e("ab",a({name:"IBizMenuPortlet",props:{modelData:{type:Object,required:!0},controller:{type:en,required:!0}},setup(e){var t,a;return{ns:A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),menu:null==(a=e.modelData.controls)?void 0:a.find((e=>e.controlType===$t.APP_MENU))}},render(){const e=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:t,params:a}=this.controller;return o(i("iBizPortletLayout"),{controller:this.controller,class:e},{default:()=>[this.menu&&o(i("iBizAppMenuPortletControl"),{modelData:this.menu,context:t,params:a},null)]})}}));var hp=Object.defineProperty,mp=(e,t,a)=>(((e,t,a)=>{t in e?hp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class vp{constructor(){mp(this,"component","IBizMenuPortlet")}async createController(e,t,a){const n=new en(e,t,a);return await n.init(),n}}const bp=e("aa",U(pp,(function(e){e.component(pp.name,pp),e.component(up.name,up),Ja("APPMENU",(()=>new vp))})));const gp=e("ad",a({name:"IBizChartPortlet",props:{modelData:{type:Object,required:!0},controller:{type:tn,required:!0}},setup(e){var t,a;const n=A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),o=null==(a=e.modelData.controls)?void 0:a.find((e=>e.controlType===$t.CHART));let i;return d((()=>{const t=e.controller.model.timer;t&&t>0&&(i=setInterval((()=>{e.controller.refresh()}),t))})),p((()=>{clearInterval(i)})),{ns:n,chart:o}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:a,params:n}=this.controller;return o(i("iBizPortletLayout"),{controller:this.controller,class:t},"function"==typeof(l=e=r(i("IBizControlShell"),{context:a,params:n,modelData:this.chart}))||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?e:{default:()=>[e]});var l}}));var wp=Object.defineProperty,fp=(e,t,a)=>(((e,t,a)=>{t in e?wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class yp{constructor(){fp(this,"component","IBizChartPortlet")}async createController(e,t,a){const n=new tn(e,t,a);return await n.init(),n}}const Cp=e("ac",U(gp,(function(e){e.component(gp.name,gp),Ja("CHART",(()=>new yp))})));const Ip=e("af",a({name:"IBizRawItemPortlet",props:{modelData:{type:Object,required:!0},controller:{type:an,required:!0}},setup(e){var t;return{ns:A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),rawItem:e.modelData}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];return o(i("iBizPortletLayout"),{controller:this.controller,class:t},"function"==typeof(a=e=r(i("iBizRawItem"),{rawItem:this.rawItem}))||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?e:{default:()=>[e]});var a}}));var Dp=Object.defineProperty,Ep=(e,t,a)=>(((e,t,a)=>{t in e?Dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Pp{constructor(){Ep(this,"component","IBizRawItemPortlet")}async createController(e,t,a){const n=new an(e,t,a);return await n.init(),n}}const kp=e("ae",U(Ip,(function(e){e.component(Ip.name,Ip),Ja("RAWITEM",(()=>new Pp))})));const Sp=e("ah",a({name:"IBizListPortlet",props:{modelData:{type:Object,required:!0},controller:{type:nn,required:!0}},setup(e){var t,a;const n=A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),o=null==(a=e.modelData.controls)?void 0:a.find((e=>e.controlType===$t.LIST));let i;return d((()=>{const t=e.controller.model.timer;t&&t>0&&(i=setInterval((()=>{e.controller.refresh()}),t))})),p((()=>{clearInterval(i)})),{ns:n,list:o}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:a,params:n}=this.controller;return o(i("iBizPortletLayout"),{controller:this.controller,class:t},"function"==typeof(l=e=r(i("IBizControlShell"),{context:a,params:n,modelData:this.list}))||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?e:{default:()=>[e]});var l}}));var xp=Object.defineProperty,Tp=(e,t,a)=>(((e,t,a)=>{t in e?xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class zp{constructor(){Tp(this,"component","IBizListPortlet")}async createController(e,t,a){const n=new nn(e,t,a);return await n.init(),n}}const Op=e("ag",U(Sp,(function(e){e.component(Sp.name,Sp),Ja("LIST",(()=>new zp))}))),_p=e("aj",a({name:"IBizHtmlPortlet",props:{modelData:{type:Object,required:!0},controller:{type:on,required:!0}},setup(e){var t;return{ns:A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase()))}},render(){const e=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];return o(i("iBizPortletLayout"),{controller:this.controller,class:e},{default:()=>[o("iframe",{src:this.modelData.pageUrl},null)]})}}));var Ap=Object.defineProperty,Bp=(e,t,a)=>(((e,t,a)=>{t in e?Ap(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class jp{constructor(){Bp(this,"component","IBizHtmlPortlet")}async createController(e,t,a){const n=new on(e,t,a);return await n.init(),n}}const Mp=e("ai",U(_p,(function(e){e.component(_p.name,_p),Ja("HTML",(()=>new jp))}))),Rp=e("al",a({name:"IBizActionBarPortlet",props:{modelData:{type:Object,required:!0},controller:{type:sn,required:!0}},setup(e){var t;return{ns:A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),onActionClick:async(t,a)=>{await e.controller.onActionClick(t,a)}}},render(){const e=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];return o(i("iBizPortletLayout"),{controller:this.controller,class:e},{default:()=>[this.modelData.uiactionGroup&&o(i("iBizActionToolbar"),{"action-details":this.modelData.uiactionGroup.uiactionGroupDetails,"actions-state":this.controller.state.actionGroupState,onActionClick:this.onActionClick},null)]})}}));var Np=Object.defineProperty,Lp=(e,t,a)=>(((e,t,a)=>{t in e?Np(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Vp{constructor(){Lp(this,"component","IBizActionBarPortlet")}async createController(e,t,a){const n=new sn(e,t,a);return await n.init(),n}}const Fp=e("ak",U(Rp,(function(e){e.component(Rp.name,Rp),Ja("ACTIONBAR",(()=>new Vp))})));const Up=e("an",a({name:"IBizReportPortlet",props:{modelData:{type:Object,required:!0},controller:{type:ln,required:!0}},setup(e){var t,a;const n=A("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),o=null==(a=e.modelData.controls)?void 0:a.find((e=>e.controlType===$t.REPORT_PANEL)),i=l((()=>{const{uiactionGroupDetails:t=[]}=e.controller.model.uiactionGroup||{};return t.find((e=>e.uiactionId&&e.uiactionId.startsWith("bi_report_view")))}));let s;return d((()=>{const t=e.controller.model.timer;t&&t>0&&(s=setInterval((()=>{e.controller.refresh()}),t))})),p((()=>{clearInterval(s)})),{ns:n,report:o,linkAction:i}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:a,params:n}=this.controller;return o(i("iBizPortletLayout"),{controller:this.controller,linkAction:this.linkAction,class:t},"function"==typeof(l=e=r(i("IBizControlShell"),{context:a,params:n,modelData:this.report}))||"[object Object]"===Object.prototype.toString.call(l)&&!s(l)?e:{default:()=>[e]});var l}}));var qp=Object.defineProperty,Gp=(e,t,a)=>(((e,t,a)=>{t in e?qp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Hp{constructor(){Gp(this,"component","IBizReportPortlet")}async createController(e,t,a){const n=new ln(e,t,a);return await n.init(),n}}const Wp=e("am",U(Up,(function(e){e.component(Up.name,Up),Ja("REPORT",(()=>new Hp))}))),Kp=e("a4",U(Hu,(function(e){e.component(Hu.name,Hu),e.component(Ku.name,Ku),e.component(Yu.name,Yu),Xt($t.DASHBOARD,(()=>new Ju)),e.component(op.name,op),e.use(np),e.use(cp),e.use(bp),e.use(Cp),e.use(kp),e.use(Op),e.use(Mp),e.use(Fp),e.use(Wp)})));let Yp,Xp=0;const $p="__epPropKey",Jp=["#2196F3","#4CAF50","#3F51B5","#FF9800","#673AB7","#757575"],Qp=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,Zp=/^(rgb|rgba|RGB|RGBA)/;function eh(e){var t;return e?!(null==e?void 0:e.parentNode)||(null==(t=null==e?void 0:e.classList)?void 0:t.contains("el-popover"))?e:eh(e.parentNode):null}const th=e=>{const t=eh(e.target);t&&(t.style.display="none")},ah=(e,t,a,n="-")=>{var o,i;let s="";return e&&(null==(o=ho(e))?void 0:o.isValid())&&(s=ho(e).format(a)),t&&(null==(i=ho(t))?void 0:i.isValid())&&(s="".concat(s," ").concat(n," ").concat(ho(t).format(a))),s},nh=(e,t)=>{let a=e.get(t);const n=e.size;return t&&!a&&n<Jp.length&&(a=Jp[n],e.set(t,a)),a||Jp[0]},oh=e=>{if(!e)return console.error("getRgbValue: Missing parameters!"),!1;const t=(e=>{const t=Qp.test(e),a=Zp.test(e),n=e;return t||a||e?n:(console.error("Color: Invalid color!"),"")})(e);if(!t)return!1;const a=Qp.test(t),n=Zp.test(t),o=t.toLowerCase();return a?(e=>{const t=e.replace("#","");return[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]})(o):n?(e=>e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map((function(e){return parseInt(e,10)})))(o):void 0},ih=(e,t)=>{const a=t;if(!e)return console.error("fade: Missing parameters!"),!1;const n=oh(e);if(!n)return!1;return(e=>{if(!e)return console.error("getColorFromRgbValue: Missing parameters!"),!1;const t=e.length;if(3!==t&&4!==t)return console.error("getColorFromRgbValue: Value is illegal!"),!1;let a=3===t?"rgb(":"rgba(";return a+="".concat(e.join(","),")"),a})([...n,a/100])},sh=(e,t)=>{const a=new Date(e),n=t?new Date(t):new Date;return a.getDate()===n.getDate()&&a.getMonth()===n.getMonth()&&a.getFullYear()===n.getFullYear()};function lh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const rh=(e,t,a)=>{const n=new Date(e),o=new Date(t),i=new Date(a);return n.setHours(0,0,0,0),o.setHours(0,0,0,0),i.setHours(0,0,0,0),n>=o&&n<=i},ch=(e,t)=>{const a=new Date(e),n=new Date(t);return a.getTime()>n.getTime()},dh=(e,t,a,n,o,i,s)=>{let l=mo(i),r=!0;const c=n.find((e=>t.id===e.id)),d=l.findIndex((e=>t.id===e.id));switch(o?-1===d?l.push(c):(Object.assign(t,{isSelectedEvent:!1}),r=!1,l.splice(d,1)):-1===d?l=[c]:(Object.assign(t,{isSelectedEvent:!1}),r=!1,l=[]),e){case"eventClick":s("eventClick",{location:a,data:l});break;case"eventDblClick":s("eventDblClick",{location:a,data:l})}return{eventName:e,tempSelectedData:l,isSelectedEvent:r}},uh=(e,t,a,n,o,i)=>new Promise((s=>{Xp+=1,1===Xp?Yp=setTimeout((()=>{1===Xp&&s(dh("eventClick",e,t,a,n,o,i)),Xp=0}),300):2===Xp&&(clearTimeout(Yp),s(dh("eventDblClick",e,t,a,n,o,i)),Xp=0)})),ph=(e,t)=>{if(!Uo(e)||Uo(a=e)&&a[$p])return e;var a;const{values:n,required:o,default:i,type:s,validator:l}=e,r=n||l?a=>{let o=!1,s=[];if(n&&(s=Array.from(n),lh(e,"default")&&s.push(i),o||(o=s.includes(a))),l&&(o||(o=l(a))),!o&&s.length>0){const e=[...new Set(s)].map((e=>JSON.stringify(e))).join(", ");x("Invalid prop: validation failed".concat(t?' for prop "'.concat(t,'"'):"",". Expected one of [").concat(e,"], got value ").concat(JSON.stringify(a),"."))}return o}:void 0,c={type:s,required:!!o,validator:r,[$p]:!0};return lh(e,"default")&&(c.default=i),c},hh=e=>Fo(Object.entries(e).map((([e,t])=>[e,ph(t,e)]))),mh="update:modelValue",vh="change",bh="input",gh="eventClick",wh="eventDblClick",fh=hh({calendarTitle:{type:String},showDetail:{type:Boolean,default:!1},modelValue:{type:Date},range:{type:Array,validator:e=>qo(e)&&2===e.length&&e.every((e=>Go(e)))},viewType:{type:String,default:"DAY"},events:{type:Array,default:[]},legends:{type:Array,default:[]},multiple:{type:Boolean},selectedData:{type:Object}}),yh={[mh]:e=>Go(e),[bh]:e=>Go(e),[vh]:e=>Go(e),[gh]:e=>e,[wh]:e=>e},Ch=hh({selectedDay:{type:Object},events:{type:Array,default:[]},legends:{type:Array,default:[]},multiple:{type:Boolean},selectedData:{type:Object}}),Ih={pick:e=>Uo(e),eventClick:e=>e,eventDblClick:e=>e},Dh=hh({showDetail:{type:Boolean,default:!1},selectedDay:{type:Object},events:{type:Array,default:[]},legends:{type:Array,default:[]},multiple:{type:Boolean},selectedData:{type:Object}}),Eh={pick:e=>Uo(e),eventClick:e=>e,eventDblClick:e=>e},Ph=a({name:"CalendarDaily",props:Ch,emits:Ih,setup(e,{emit:t,slots:a}){const i=A("calendar-daily"),{drawData:s,curTimeTop:r,curTimeVal:u,resizableHand:p,events:h,curTimeTimer:m,calendarDaily:v,selectedData:b,eventClick:g,handleDrag:w,handleDragStart:f,handleCurTime:y,initDrawData:I}=((e,t)=>{const a=n([]),o=n(),i=n(0),s=n("00:00"),r=n(),c=n(),d=l((()=>e.legends||[])),u=l((()=>!0===e.multiple)),p=n([]);let h=0,m=0;const v=l((()=>b(e.events,null==e?void 0:e.selectedDay,d.value,c.value))),b=(e,t,a,n)=>{const o=[],i=new Map;let s=0;n&&(s=parseInt(window.getComputedStyle(n).width,10)),e.sort(((e,t)=>{const a=new Date(e.beginTime).getTime()-new Date(t.beginTime).getTime();let n;return n=0===a?new Date(e.endTime).getTime()-new Date(t.endTime).getTime():a,n}));const l=e.filter((e=>e&&e.beginTime&&e.endTime&&sh(t,e.beginTime)&&sh(t,e.endTime)));return l.forEach(((e,n)=>{const r={};Object.assign(r,e);const c=a.find((t=>Object.is(t.id,e.itemType))),d=p.value.find((t=>t.id===e.id));Object.assign(r,{zIndex:n+1});const u=l.length,h=(s-90)/u,m=Number((100/u).toFixed(3));let v="".concat(m,"%"),b="".concat(n*m,"%");if(h<100&&(v="100px",b="".concat(100*n,"px")),Object.assign(r,{width:v,styleLeft:b}),e.beginTime&&e.endTime){const a=g(e.beginTime,e.endTime,t),n=ah(e.beginTime,e.endTime,"HH:mm");Object.assign(r,{height:a,timeRange:n})}if(e.beginTime){const{styleTop:t}=w(new Date(e.beginTime));Object.assign(r,{styleTop:t})}if(!(null==e?void 0:e.bkColor)){const t=c?c.bkcolor:nh(i,e.itemType);Object.assign(r,{bkColor:t})}if(r.bkColor){const e=ih(r.bkColor,10);Object.assign(r,{bkColorFade:e})}if((null==r?void 0:r.height)&&(null==r?void 0:r.height)>10){const e="1px solid #FFF";Object.assign(r,{border:e})}else Object.assign(r,{border:"none"});d?Object.assign(r,{isSelectedEvent:!0}):Object.assign(r,{isSelectedEvent:!1}),(c&&c.isShow||!c)&&o.push(r)})),i.clear(),o},g=(e,t,a)=>{let n=1;if(sh(e,a)&&sh(t,a)){const a=new Date(t).getTime()-new Date(e).getTime();n=Math.floor(a/6e4)}return n<3&&(n=3),n},w=e=>{const t=e.getHours(),a=e.getMinutes(),n=String(t).padStart(2,"0"),o=String(a).padStart(2,"0");let i,s;return 0===t&&0===a?(i=0,s="00:00"):(i=60*t+a,s="".concat(n,":").concat(o)),{styleTop:i,timeVal:s}};return{drawData:a,curTimeTimer:o,curTimeTop:i,curTimeVal:s,events:v,resizableHand:r,calendarDaily:c,selectedData:p,handleCurTime:()=>{const{styleTop:e,timeVal:t}=w(new Date);i.value=e,s.value=t},handleDrag:e=>{const t=e.clientY-h+m;r.value.style.height="".concat(t,"px")},handleDragStart:e=>{h=e.clientY,m=parseInt(window.getComputedStyle(r.value).height,10)},eventClick:async(a,n)=>{const o=await uh(a,n,e.events,u.value,p.value,t),{tempSelectedData:i,isSelectedEvent:s}=o;s||Object.assign(a,{isSelectedEvent:s}),p.value=i},initDrawData:()=>{const e=[];for(let t=1;t<24;t++){const a=String(t).padStart(2,"0"),n="".concat(a,":00");e.push(n)}return e}}})(e,t);c((()=>e.selectedData),(()=>{if(e.selectedData&&e.selectedData.length>0){const t=e.selectedData.length>b.value.length?e.selectedData:b.value;b.value=t}else b.value=[]}),{immediate:!0,deep:!0}),d((()=>{y(),s.value=I(),m.value=setInterval((()=>y()),1e3)})),C((()=>{const e=m.value;e&&(clearInterval(e),m.value=null)}));const D=(e,t,n,s,l,r,c)=>{var d;return o("div",{key:l,class:[i.em(c,"event-box")],style:t},[o("button",{class:[i.em(c,"event-content"),s.isSelectedEvent?"is-selected-event":"",s.classname],onClick:()=>g(s,"head"),style:n},[a[r]?null==(d=a[r])?void 0:d.call(a,{data:s}):o("div",{class:[i.em(c,"event-summary"),s.classname],title:ht("".concat(s.text||""," ").concat(s.timeRange||""))},[s.icon&&o("span",{class:[s.icon,i.em(c,"event-icon")],style:{color:s.bkColor}},null),s.text&&o("span",{class:[i.em(c,"event-name")]},[s.text])]),"header"===e&&s.isSelectedEvent?o("span",{class:["fa fa-check",i.em(c,"check")]},null):""])])};return{ns:i,calendarDaily:v,renderHeader:()=>o("div",{class:[i.e("calendar-daily__head")],ref:e=>{p.value=e}},[o("div",{class:i.e("allday-info")},[ibiz.i18n.t("control.calendar.calendardaily.tip")]),o("div",{class:i.em("allday-info","work-items")},[o("div",{class:i.em("allday-info","work-items-scroll")},[o("div",{class:i.em("allday-info","work-items-body")},[h.value.map(((e,t)=>{const a={color:e.color,background:e.bkColorFade};return D("header",{},a,e,t,"head-event","allday-info")}))])])]),o("div",{class:i.e("resizable-handle"),draggable:"true",onDrag:e=>w(e),onDragstart:e=>f(e)},[o("div",{class:i.e("allday-resize-line")},null)])]),renderContent:()=>o("div",{class:[i.e("scroll-area")]},[o("div",{class:i.e("time-pane")},[o("div",{class:i.em("time-pane","time-labels")},[s.value.map((e=>o("div",{key:e,class:[i.em("time-pane","time-label")]},[e])))]),o("div",{class:i.em("time-pane","time-columns")},[s.value.map(((e,t)=>o("div",{key:e,class:[i.em("time-pane","time-column"),t===s.value.length-1&&i.em("time-pane","time-column-last")]},null))),o("div",{class:i.em("time-pane","event-timed-container")},[o("div",{class:i.em("time-pane","container-scroll")},[h.value.map(((e,t)=>{const a={top:"".concat(e.styleTop,"px"),left:"".concat(e.styleLeft),height:"".concat(e.height,"px"),width:"".concat(e.width),"min-height":"".concat(e.height,"px"),"z-index":e.zIndex},n={background:e.bkColorFade,"border-left":"3px solid ".concat(e.bkColor),color:e.color};return D("content",a,n,e,t,"event","time-pane")}))])])]),sh(null==e?void 0:e.selectedDay,new Date)?o("div",{class:i.em("time-pane","current-time"),style:{top:"".concat(r.value,"px")}},[o("div",{class:i.em("time-pane","current-time-label")},[u.value])]):""])])}},render(){return o("div",{ref:e=>{this.calendarDaily=e},class:this.ns.b()},[this.renderHeader(),this.renderContent()])}}),kh=U(Ph,(function(e){e.component(Ph.name,Ph)})),Sh=(e,t)=>{const a=n([]),o=n(),i=n(1),s=n("00:00"),r=n(),c=n(),d=n(),u=l((()=>!0===e.multiple)),p=n([]),h=n([]),m=n([]),v=n([]),b=n(!0);let g=0,w=0;const f=(e,t)=>{const a=new Date(e),n=new Date(t),o=[];a.setHours(0,0,0,0),n.setHours(0,0,0,0);for(let e=new Date(a);e<=n;e.setDate(e.getDate()+1))o.push(new Date(e));return o},y=()=>{const t=e.events,a=null==e?void 0:e.selectedDay,n=new Map,{firstDay:o,lastDay:i}=(e=>{const t=new Date(e),a=t.getDay(),n=new Date(t);n.setDate(t.getDate()-a);const o=new Date(n);return o.setDate(n.getDate()+6),n.setHours(0,0,0,0),o.setHours(23,59,59,0),{firstDay:n,lastDay:o}})(a),s=[],l=[],r=[];v.value=[];for(let e=0;e<7;e++){const t=e,n=o.getDate()+t,i=new Date(o.getFullYear(),o.getMonth(),n),c=i.getDate(),d={date:i,day:c,caption:["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map((e=>ibiz.i18n.t("control.calendar.calendarweek.weeks.".concat(e))))[e],isActivate:sh(i,a)};v.value.push(d),s.push([]),l.push([]),r.push([])}t.forEach((e=>{if(e.beginTime){const t={};Object.assign(t,e);if(p.value.find((t=>t.id===e.id))?Object.assign(t,{isSelectedEvent:!0}):Object.assign(t,{isSelectedEvent:!1}),!e.endTime&&e.beginTime&&Object.assign(t,{endTime:e.beginTime}),rh(t.beginTime,o,i)&&rh(t.endTime,o,i)){f(t.beginTime,t.endTime).forEach((e=>{const a=new Date(e).getDay();s[a].push(t)}))}else if(rh(t.beginTime,o,i)&&!rh(t.endTime,o,i)){f(t.beginTime,i).forEach((e=>{const a=new Date(e).getDay();s[a].push(t)}))}else if(rh(t.endTime,o,i)&&!rh(t.beginTime,o,i)){f(o,t.endTime).forEach((e=>{const a=new Date(e).getDay();s[a].push(t)}))}else if(!rh(e.endTime,o,i)&&!rh(e.beginTime,o,i)&&ch(o,e.beginTime)&&ch(e.endTime,o)){f(o,i).forEach((e=>{const a=new Date(e).getDay();s[a].push(t)}))}}})),s.forEach((e=>{e.sort(((e,t)=>{const a=e,n=t,o=new Date(a.beginTime).getTime()-new Date(n.beginTime).getTime();let i;return i=0===o?new Date(a.endTime).getTime()-new Date(n.endTime).getTime():o,i}))})),s.forEach(((e,t)=>{e.forEach(((e,a)=>{const c=d.value.find((t=>Object.is(t.id,e.itemType)));if(c&&c.isShow||!c){const d={},u={},p=s[t].length,h=v.value[t];Object.assign(d,e),Object.assign(d,{zIndex:a+1});const m=Number((100/p).toFixed(3)),b="".concat(m,"%"),g="".concat(a*m,"%");Object.assign(d,{width:b,styleLeft:g});let w=3,f=60,y="";if(sh(e.beginTime,e.endTime)){w=C(e.beginTime,e.endTime),y=ah(e.beginTime,e.endTime,"HH:mm");f=E(new Date(e.beginTime)).styleTop}else if(sh(e.beginTime,h.date)&&!sh(e.endTime,h.date)){const t=new Date(h.date);t.setHours(23,59,59,0),w=C(e.beginTime,t),y=ah(e.beginTime,e.endTime,"YYYY-MM-DD HH:mm");f=E(new Date(e.beginTime)).styleTop}else if(sh(e.endTime,h.date)&&!sh(e.beginTime,h.date)){const t=new Date(h.date);t.setHours(0,0,0,0),w=C(t,e.endTime),y=ah(e.beginTime,e.endTime,"YYYY-MM-DD HH:mm");f=E(new Date(t)).styleTop}else{const t=new Date(h.date),a=new Date(t.setHours(0,0,0,0)),n=new Date(t.setHours(23,59,59,59));w=C(a,n),y=ah(e.beginTime,e.endTime,"YYYY-MM-DD HH:mm");f=E(new Date(a)).styleTop}if(Object.assign(d,{height:w,styleTop:f,timeRange:y}),!(null==e?void 0:e.bkColor)){const t=c?c.bkcolor:nh(n,e.itemType);Object.assign(d,{bkColor:t})}if(d.bkColor){const e=ih(d.bkColor,10);Object.assign(d,{bkColorFade:e})}if((null==d?void 0:d.height)&&(null==d?void 0:d.height)>10){const e="1px solid #FFF";Object.assign(d,{border:e})}else Object.assign(d,{border:"none"});if(l[t].push(d),!sh(e.beginTime,e.endTime)){Object.assign(u,d),Object.assign(u,{width:0,styleLeft:0});let a=0,n=0;if(rh(e.beginTime,o,i)&&rh(e.endTime,o,i)){const t=I(e.beginTime,e.endTime,o,i),s=D(e.beginTime,o,i);a="".concat(t,"%"),n="".concat(s,"%")}else if(rh(e.beginTime,o,i)&&!rh(e.endTime,o,i)){const t=I(e.beginTime,i,o,i),s=D(e.beginTime,o,i);a="".concat(t,"%"),n="".concat(s,"%")}else if(rh(e.endTime,o,i)&&!rh(e.beginTime,o,i)){const t=I(o,e.endTime,o,i);a="".concat(t,"%"),n="".concat(0,"%")}else if(!rh(e.endTime,o,i)&&!rh(e.beginTime,o,i)&&ch(o,e.beginTime)&&ch(e.endTime,o)){const e=I(o,i,o,i);a="".concat(e,"%"),n="".concat(0,"%")}Object.assign(u,{width:a,styleLeft:n});let s=!1;(rh(e.beginTime,o,i)&&sh(e.beginTime,h.date)||0===t)&&(s=!0),Object.assign(u,{isShow:s}),r[t].push(u)}}}))})),n.clear(),h.value=l,m.value=r},C=(e,t)=>{let a=1;if(sh(e,t)){const n=new Date(t).getTime()-new Date(e).getTime();a=Math.floor(n/6e4)}return a<3&&(a=3),a},I=(e,t,a,n)=>{let o="0";if(rh(e,a,n)&&rh(t,a,n)){const a=Number((100/24).toFixed(3));o=((new Date(t).getTime()-new Date(e).getTime())/36e5*a).toFixed(3)}return o},D=(e,t,a)=>{let n="0";if(rh(e,t,a)){n=((new Date(e).getHours()+new Date(e).getMinutes()/60)*Number((100/24).toFixed(3))).toFixed(3)}return n},E=e=>{const t=e.getHours(),a=e.getMinutes(),n=String(t).padStart(2,"0"),o=String(a).padStart(2,"0");let i,s;if(0===t&&0===a)i=1,s="00:00";else{i=60*t+a,s="".concat(n,":").concat(o)}return{styleTop:i,timeVal:s}};return{drawData:a,curTimeTimer:o,curTimeTop:i,curTimeVal:s,rows:h,resizableHand:r,calendarWeek:c,selectedData:p,weekDays:v,legends:d,rowsHeader:m,popVisible:b,handleCurTime:()=>{const{styleTop:e,timeVal:t}=E(new Date);i.value=e,s.value=t},handleDrag:e=>{const t=e.clientY-g+w;r.value.style.height="".concat(t,"px")},handleDragStart:e=>{g=e.clientY,w=parseInt(window.getComputedStyle(r.value).height,10)},eventClick:async(a,n)=>{b.value=!1;const o=await uh(a,n,e.events,u.value,p.value,t),{tempSelectedData:i,isSelectedEvent:s}=o;s||Object.assign(a,{isSelectedEvent:s}),p.value=i,y()},initDrawData:()=>{const e=[];for(let t=1;t<24;t++){const a=String(t).padStart(2,"0"),n="".concat(a,":00");e.push(n)}return e},handleUIEvents:y}},xh=a({name:"CalendarWeek",props:Dh,emits:Eh,setup(e,{emit:t,slots:a}){const s=A("calendar-week"),{drawData:l,resizableHand:r,rows:u,weekDays:p,curTimeTimer:h,calendarWeek:m,selectedData:v,legends:b,rowsHeader:g,eventClick:w,handleDrag:f,handleDragStart:y,handleCurTime:I,initDrawData:D,handleUIEvents:E}=Sh(e,t),P=n(""),k=n(!1);c((()=>e.selectedData),(()=>{if(e.selectedData&&e.selectedData.length>0){const t=e.selectedData.length>v.value.length?e.selectedData:v.value;v.value=t}else v.value=[]}),{immediate:!0,deep:!0}),c((()=>e.legends),(()=>{b.value=e.legends||[],E()}),{immediate:!0,deep:!0}),c((()=>e.events),(()=>{E()}),{immediate:!0,deep:!0}),d((()=>{I(),l.value=D(),h.value=setInterval((()=>I()),1e3)})),C((()=>{const e=h.value;e&&(clearInterval(e),h.value=null)}));const S=()=>{k.value=!1},x=()=>{P.value="",k.value=!1},T=(e,t,n,i,l,r,c)=>{var d;return o("div",{key:l,class:[s.em(c,"event-box")],style:t,onMouseenter:()=>(e=>{P.value=String(e.id),k.value=!0})(i),onMouseleave:x,onClick:S},[o("button",{class:[s.em(c,"event-content"),i.isSelectedEvent?"is-selected-event":"",i.classname],onClick:()=>{w(i,"head")},style:n},[a[r]?null==(d=a[r])?void 0:d.call(a,{data:i}):o("div",{class:[s.em(c,"event-summary"),i.classname],title:ht("header"===e?"".concat(i.text||""," ").concat(i.timeRange||""):"")},[i.icon&&o("span",{class:[i.icon,s.em(c,"event-icon")],style:{color:i.bkColor}},null),i.text&&o("span",{class:[s.em(c,"event-name")]},[i.text])]),"header"===e&&i.isSelectedEvent?o("span",{class:["fa fa-check",s.em(c,"check")]},null):""])])};return{ns:s,calendarWeek:m,renderHeader:()=>o("div",{class:[s.e("header")],ref:e=>{r.value=e}},[o("div",{class:[s.em("header","dates")]},[o("div",{class:[s.em("header","date-cell-first")]},null),p.value.map((e=>o("div",{class:[s.em("header","date-cell")]},[o("div",{class:[s.em("header","date-week")]},[e.caption]),o("div",{class:[s.em("header","date-day"),e.isActivate?"is-today":""]},[e.day])])))]),o("div",{class:[s.em("header","events")]},[o("div",{class:[s.em("header","event-cell-first")]},[ibiz.i18n.t("control.calendar.calendardaily.tip")]),g.value.map((e=>o("div",{class:[s.em("header","event-cell")]},[e.map(((e,t)=>{const a={top:"".concat(Number(26*t)+2,"px"),left:"".concat(e.styleLeft),width:"".concat(null==e?void 0:e.width)},n={color:e.color,background:e.bkColorFade};return e.isShow?T("header",a,n,e,t,"head-event","header"):""}))])))]),o("div",{class:s.em("header","resizable-handle"),draggable:"true",onDrag:e=>f(e),onDragstart:e=>y(e)},[o("div",{class:s.em("header","resize-line")},null)])]),renderContent:()=>o("div",{class:[s.e("scroll-area")]},[o("div",{class:s.e("time-pane")},[o("div",{class:s.em("time-pane","time-labels")},[l.value.map((e=>o("div",{key:e,class:[s.em("time-pane","time-label")]},[e])))]),u.value.map((t=>o("div",{class:s.em("time-pane","time-columns")},[l.value.map(((e,t)=>o("div",{key:e,class:[s.em("time-pane","time-column"),t===l.value.length-1&&s.em("time-pane","time-column-last")]},null))),o("div",{class:s.em("time-pane","event-timed-container")},[o("div",{class:s.em("time-pane","container-scroll")},[t.map(((t,n)=>{const l={top:"".concat(t.styleTop,"px"),left:"".concat(t.styleLeft),height:"".concat(t.height,"px"),width:"".concat(t.width),"min-height":"".concat(t.height,"px"),"z-index":t.zIndex},r={background:t.bkColorFade,"border-left":"3px solid ".concat(t.bkColor),color:t.color};return((t,n)=>e.showDetail?o(i("el-popover"),{visible:k.value&&n.id===P.value,"show-after":100,offset:4,width:"auto","popper-class":[s.e("event-popover")],placement:"right-start"},{reference:()=>t,default:()=>{var e;return o("div",{class:[s.em("event-popover","body")]},[o("div",{class:[s.em("event-popover","close")],onClick:e=>th(e),innerHTML:"<i class='el-icon' data-v-ea893728=''> <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' data-v-ea893728='' > <path d='M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z'></path> </svg></i>"},null),o("div",{class:[s.em("event-popover","scroll")]},[(null==a?void 0:a.event)?null==(e=a.event)?void 0:e.call(a,{data:n}):o("div",{class:[s.em("event-popover","content")]},["".concat(n.text||""," ").concat(n.timeRange||"")])])])}}):t)(T("content",l,r,t,n,"","time-pane"),t)}))])])])))])])}},render(){return o("div",{ref:e=>{this.calendarWeek=e},class:this.ns.b()},[this.renderHeader(),this.renderContent()])}}),Th=U(xh,(function(e){e.component(xh.name,xh)})),zh=a({name:"CustomCalendar",props:fh,emits:yh,setup(e,{emit:t,slots:a}){const s=A("custom-calendar"),{date:r,events:u,shortcuts:p,viewType:h,validatedRange:m,realSelectedDay:v,curWeek:b,legends:g,multiple:w,selectedData:f,pickDay:y,handleEVentClick:C,handleEVentDblClick:I,selectDate:D,selectLegend:E}=((e,t)=>{const{lang:a}=oi(),o=n(),i=ho().locale(a.value),s=n(),r=l((()=>e.viewType)),d=n([]),u=new Map,p=l((()=>!0===e.multiple)),h=l((()=>e.selectedData));c((()=>e.legends),(t=>{const a=[];t&&e.legends.forEach((e=>{const t={};if(Object.assign(t,e),Object.assign(t,{isShow:!0}),e&&!e.bkcolor){const a=nh(u,e.id);Object.assign(t,{bkcolor:a})}a.push(t)})),d.value=a}),{immediate:!0,deep:!0});const m=(e,t)=>{const a=e.startOf("week"),n=t.endOf("week"),o=a.get("month"),i=n.get("month");let s;return s=o===i?[[a,n]]:(o+1)%12===i?((e,t)=>{const a=e.endOf("month"),n=t.startOf("month"),o=a.isSame(n,"week");return[[e,a],[(o?n.add(1,"week"):n).startOf("week"),t]]})(a,n):o+2===i||(o+1)%11===i?((e,t)=>{const a=e.endOf("month"),n=e.add(1,"month").startOf("month"),o=a.isSame(n,"week")?n.add(1,"week"):n,i=o.endOf("month"),s=t.startOf("month"),l=i.isSame(s,"week")?s.add(1,"week"):s;return[[e,a],[o.startOf("week"),i],[l.startOf("week"),t]]})(a,n):[],s},v=l((()=>{if(!e.range)return[];let t=[];const n=e.range.map((e=>ho(e).locale(a.value))),[o,i]=n;return o.isAfter(i)&&(t=[]),o.isSame(i,"month")||o.add(1,"month").month()!==i.month()&&(t=[]),t=m(o,i),t})),b=l((()=>{let t;return t=e.modelValue?ho(e.modelValue).locale(a.value):s.value||(v.value.length?v.value[0][0]:i),t})),g=l({get(){let t=b.value;return e.modelValue||(t=o.value),s.value=t,t},set(e){if(!e)return;const a=ho(e);o.value=a;const n=a.toDate();t(bh,n),t(vh,n),t(mh,n)}}),w=l((()=>{if(e.events.length>0)return e.events.map((e=>{const t={};return Object.assign(t,e),Object.assign(t,{deData:e.deData,beginTime:e.beginTime,endTime:e.endTime,id:e.id,classname:e.classname,text:e.text,content:e.content,tips:e.tips,icon:e.icon,color:e.color,bkColor:e.bkColor,itemType:e.itemType}),t}))})),f=l((()=>b.value.subtract(1,"month").date(1))),y=l((()=>b.value.add(1,"month").date(1))),C=l((()=>b.value.subtract(1,"year").date(1))),I=l((()=>b.value.add(1,"year").date(1))),D=e=>{g.value=e},E=l((()=>{const e="".concat(b.value.format("M"));return"".concat(b.value.year()," ").concat(ibiz.i18n.t("control.calendar.year")," ").concat(e," ").concat(ibiz.i18n.t("control.calendar.month"))})),P=[{text:ibiz.i18n.t("control.calendar.today"),value:new Date},{text:ibiz.i18n.t("control.calendar.calendardaily.tomorrow"),value:()=>{const e=new Date;return e.setTime(e.getTime()+864e5),e}},{text:ibiz.i18n.t("control.calendar.calendardaily.nextweek"),value:()=>{const e=new Date;return e.setTime(e.getTime()+6048e5),e}}],k=l((()=>{let e="";if(g.value){const t=g.value.day();e=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map((e=>ibiz.i18n.t("control.calendar.calendardaily.weeks.".concat(e))))[t]}return e}));return{date:b,viewType:r,i18nDate:E,events:w,shortcuts:P,validatedRange:v,realSelectedDay:g,curWeek:k,legends:d,multiple:p,selectedData:h,calculateValidatedDateRange:m,pickDay:D,selectDate:e=>{const t={"prev-month":f.value,"next-month":y.value,"prev-year":C.value,"next-year":I.value,today:i}[e];t.isSame(b.value,"day")||D(t)},handleEVentClick:e=>{t("eventClick",e)},handleEVentDblClick:e=>{t("eventDblClick",e)},selectLegend:e=>{const t=d.value.find((t=>e.id===t.id));t&&Object.assign(t,{isShow:!e.isShow})}}})(e,t);d((()=>{y(ho(new Date))}));return{ns:s,date:r,validatedRange:m,pickDay:y,selectDate:D,renderContent:()=>{switch(h.value){case"DAY":return o("div",{class:[s.e("calendar-week")]},[(null==a?void 0:a.header)?o("div",{class:[s.em("calendar-month","header")]},[null==(t=null==a?void 0:a.header)?void 0:t.call(a,{date:ho(v.value).format("YYYY-MM-DD"),legends:g.value})]):o("div",{class:[s.em("calendar-week","header")]},[o("div",{class:s.em("calendar-week","header-top")},[o("div",{class:s.em("calendar-week","title")},[e.calendarTitle||ibiz.i18n.t("control.calendar.title")]),o("div",{class:s.em("calendar-week","legend")},[g.value.length>1&&g.value.map((e=>o("div",{class:s.em("calendar-week","legend-item"),onClick:()=>E(e)},[o("div",{class:s.em("calendar-week","legend-item-tip"),style:{background:e.isShow?e.bkcolor:"#CCCCCC"}},null),o("div",{class:s.em("calendar-week","legend-item-text"),style:{color:e.isShow?e.color:"#CCCCCC"},title:ht(e.name)},[e.name])])))]),o("div",{class:s.em("calendar-week","select-time")},[o(i("el-date-picker"),{modelValue:v.value,"onUpdate:modelValue":e=>v.value=e,type:"date",placeholder:"选择日期",shortcuts:p},null)])]),o("div",{class:s.em("calendar-week","text-secondary")},[b.value])]),o(kh,{"selected-day":v.value,controller:e.controller,events:u.value,legends:g.value,multiple:w.value,selectedData:f.value,onEventClick:e=>C(e),onEventDblClick:e=>I(e)},a)]);case"WEEK":return(()=>{var t;return o("div",{class:[s.e("calendar-week")]},[(null==a?void 0:a.header)?o("div",{class:[s.em("calendar-month","header")]},[null==(t=null==a?void 0:a.header)?void 0:t.call(a,{date:ho(v.value).format("YYYY-MM-DD"),legends:g.value})]):o("div",{class:[s.em("calendar-week","header")]},[o("div",{class:s.em("calendar-week","header-top")},[o("div",{class:s.em("calendar-week","title")},[e.calendarTitle||ibiz.i18n.t("control.calendar.title")]),o("div",{class:s.em("calendar-week","legend")},[g.value.length>1&&g.value.map((e=>o("div",{class:s.em("calendar-week","legend-item"),onClick:()=>E(e)},[o("div",{class:s.em("calendar-week","legend-item-tip"),style:{background:e.isShow?e.bkcolor:"#CCCCCC"}},null),o("div",{class:s.em("calendar-week","legend-item-text"),style:{color:e.isShow?e.color:"#CCCCCC"},title:ht(e.name)},[e.name])])))]),o("div",{class:s.em("calendar-week","select-time")},[o(i("el-date-picker"),{modelValue:v.value,"onUpdate:modelValue":e=>v.value=e,type:"date",placeholder:"选择日期",shortcuts:p},null)])])]),o(Th,{"selected-day":v.value,showDetail:e.showDetail,events:u.value,legends:g.value,multiple:w.value,selectedData:f.value,onEventClick:e=>C(e),onEventDblClick:e=>I(e)},a)])})();default:return null}var t}}},render(){return o("div",{class:[this.ns.b()]},[this.renderContent()])}}),Oh=U(zh,(function(e){e.component(zh.name,zh)}));function _h(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Ah=a({name:"IBizCalendarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new rn(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),a=n(),o=n(!1);e.evt.on("onActive",(()=>{o.value=!1})),c((()=>e.state.selectedDate),((t,a)=>{ho(t).format("YYYY-MM")!==ho(a).format("YYYY-MM")&&e.load()}));return{c:e,ns:t,calendarRef:a,popoverVisible:o,selectDate:e=>{a.value&&a.value.selectDate(e)},calcItemStyle:e=>({color:e.color,backgroundColor:e.bkColor})}},render(){let e;const t=(e,t)=>{const{context:a,params:n}=this.c,s=this.c.state.selectedData.findIndex((t=>t.deData.srfkey===e.deData.srfkey)),l=[this.ns.b("item"),this.ns.is("active",-1!==s)],r=this.calcItemStyle(e);return o(i("iBizControlShell"),{class:l,data:e.deData,modelData:t,context:a,params:n,style:r,onClick:t=>(t.stopPropagation(),this.c.onRowClick(e)),onDblclick:t=>(t.stopPropagation(),this.c.onDbRowClick(e))},null)},a=e=>{const t=this.c.state.selectedData.findIndex((t=>t.deData.srfkey===e.deData.srfkey)),a=[this.ns.b("item"),this.ns.is("active",-1!==t)],n=this.calcItemStyle(e);return o("div",{class:a,key:e.deData.srfkey,style:n,title:ht(e.tips||e.text),onClick:()=>this.c.onRowClick(e),onDblclick:()=>this.c.onDbRowClick(e)},[e.text])},n=e=>{var n;const o=(null==(n=this.c.model.sysCalendarItems)?void 0:n.find((t=>e.itemType===t.itemType))).layoutPanel;return o?t(e,o):a(e)},s=e=>e.length>1?[n(e[0]),o(i("el-popover"),{trigger:"click",visible:this.popoverVisible,"onUpdate:visible":e=>this.popoverVisible=e},{reference:()=>o("span",{class:this.ns.b("more")},["+".concat(e.length-1," ").concat(ibiz.i18n.t("app.more"),"...")]),default:()=>e.map((e=>n(e)))})]:e.map((e=>n(e))),l=e=>{const t=ho(e).format("YYYY-MM-DD"),a=this.c.state.items.filter((e=>{const a=new Date(e.beginTime);return t===ho(a).format("YYYY-MM-DD")}));return s(a)},r=()=>o("div",{class:this.ns.b("content")},[o(i("el-calendar"),{modelValue:this.c.state.selectedDate,"onUpdate:modelValue":e=>this.c.state.selectedDate=e,ref:"calendarRef"},{header:({date:e})=>{var t;let a,n,s,l,r;return[o("span",{class:this.ns.b("content-title")},[e]),o("div",{class:this.ns.b("content-header")},[o(i("el-date-picker"),{modelValue:this.c.state.selectedDate,"onUpdate:modelValue":e=>this.c.state.selectedDate=e,type:"month"},null),o(i("el-button-group"),null,{default:()=>[o(i("el-button"),{onClick:()=>{this.selectDate("prev-year")}},_h(a=ibiz.i18n.t("control.calendar.lastYear"))?a:{default:()=>[a]}),o(i("el-button"),{onClick:()=>{this.selectDate("prev-month")}},_h(n=ibiz.i18n.t("control.calendar.lastMonth"))?n:{default:()=>[n]}),o(i("el-button"),{onClick:()=>{this.selectDate("today")}},_h(s=ibiz.i18n.t("control.calendar.today"))?s:{default:()=>[s]}),o(i("el-button"),{onClick:()=>{this.selectDate("next-month")}},_h(l=ibiz.i18n.t("control.calendar.nextMonth"))?l:{default:()=>[l]}),o(i("el-button"),{onClick:()=>{this.selectDate("next-year")}},_h(r=ibiz.i18n.t("control.calendar.nextYear"))?r:{default:()=>[r]})]})]),o("div",{class:this.ns.b("legend")},[this.c.model.sysCalendarItems&&this.c.model.sysCalendarItems.length>1&&(null==(t=this.c.model.sysCalendarItems)?void 0:t.map((e=>{let t=e.name;return e.nameLanguageRes&&(t=ibiz.i18n.t(e.nameLanguageRes.lanResTag,e.name)),o("div",{class:this.ns.e("calendar-item")},[o("div",{class:this.ns.e("icon"),style:{background:e.bkcolor,color:e.color}},null),t])})))])]},"date-cell":({data:e})=>{const{date:t}=e;return o("div",{class:this.ns.b("day")},[o("p",{class:this.ns.b("date-text")},[t.getDate()]),o("div",{class:this.ns.b("items")},[l(t)])])}})]),c=()=>{const{isLoaded:e}=this.c.state;return e&&o(i("iBizNoData"),{text:this.c.model.emptyText,emptyTextLanguageRes:this.c.model.emptyTextLanguageRes,enableShowImage:this.c.state.hideNoDataImage},null)},d=()=>{const e={},{sysCalendarItems:n}=this.c.model;return e.event=({data:e})=>{const o=null==n?void 0:n.find((t=>t.id===e.itemType));return o&&o.layoutPanel?t(e,o.layoutPanel):a(e)},o("div",{class:this.ns.b("content")},[o(Oh,{modelValue:this.c.state.selectedDate,"onUpdate:modelValue":e=>this.c.state.selectedDate=e,showDetail:this.c.state.showDetail,calendarTitle:this.c.state.calendarTitle,ref:"calendarRef",viewType:this.c.model.calendarStyle,events:this.c.state.items,legends:this.c.state.legends,multiple:!this.c.state.singleSelect,selectedData:this.c.state.selectedData,onEventClick:e=>{const{data:t}=e;this.c.onRowClick(t[0])},onEventDblClick:e=>{const{data:t}=e;this.c.onDbRowClick(t[0])}},_h(e)?e:{default:()=>[e]})])},u=()=>o("div",{class:this.ns.b("timeline-content")},[o(i("el-timeline"),null,{default:()=>[this.c.state.items.length>0?this.c.state.items.map((e=>{var n;const s=null==(n=this.c.model.sysCalendarItems)?void 0:n.find((t=>e.itemType===t.itemType));return o(i("el-timeline-item"),{key:e.id,placement:"top",color:e.bkColor,timestamp:e.beginTime},{default:()=>[(null==s?void 0:s.layoutPanel)?t(e,s.layoutPanel):a(e)]})})):c()]})]);return o(i("iBizControlBase"),{controller:this.c},_h(e=(()=>{switch(this.c.model.calendarStyle){case"TIMELINE":return u();case"WEEK":case"DAY":return d();default:return r()}})())?e:{default:()=>[e]})}});var Bh=Object.defineProperty,jh=(e,t,a)=>(((e,t,a)=>{t in e?Bh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Mh{constructor(){jh(this,"component","IBizCalendarControl")}}const Rh=e("ao",U(Ah,(function(e){e.use(Oh),e.component(Ah.name,Ah),Xt($t.CALENDAR,(()=>new Mh))})));function Nh(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Lh=a({name:"IBizKanbanControl",components:{draggable:Do},props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(e){var t,a,s;const r=F(((...e)=>new cn(...e))),c=A("control-".concat(r.model.controlType.toLowerCase())),u=n(),h=n(!1),m=l((()=>!r.state.draggable||r.state.updating)),v=l((()=>r.state.batching?r.state.selectGroupKey:"")),g=null==(t=r.model.controls)?void 0:t.find((e=>e.name==="".concat(r.model.name,"_quicktoolbar")||e.name==="".concat(r.model.name,"_groupquicktoolbar"))),w=null==(a=r.model.controls)?void 0:a.find((e=>e.name==="".concat(r.model.name,"_batchtoolbar"))),f=(null==(s=r.model.groupSysCss)?void 0:s.cssName)||"",y=n({});let C=yt;const I={};switch(r.model.groupLayout){case"ROW":I.width="".concat(r.model.groupWidth||300,"px"),I.height="100%";break;case"COLUMN":I.width="100%",I.height="".concat(r.model.groupHeight||500,"px")}const D=e=>{e.stopPropagation()},E=(e,t)=>{D(t);const a=String(e.key);y.value[a]=!y.value[a]};d((()=>{C=bt(window,"resize",(()=>{h.value=r.getFullscreen()}))})),p((()=>{C!==yt&&C()}));const P=(e,t)=>{const{context:a,params:n}=r;return o(i("iBizControlShell"),{data:e,modelData:t,context:a,params:n},null)},k=(e,t)=>{var a;return o(i("iBizActionToolbar"),{class:c.bem("item","bottom","actions"),"action-details":null==(a=r.getOptItemModel().deuiactionGroup)?void 0:a.uiactionGroupDetails,"actions-state":r.getOptItemAction(e),onActionClick:(a,n)=>r.onGroupActionClick(a,e,n,t)},null)},S=e=>{if(g)return o(i("iBizControlShell"),{class:c.e("quicktoolbar"),modelData:{...g,name:"".concat(g.name,"_").concat(e.key)},context:r.context,params:r.params},null)},x=e=>{if(w)return o("div",{class:c.be("batch","toolbar")},[o(i("iBizControlShell"),{modelData:{...w,name:"".concat(w.name,"_").concat(e.key)},context:r.context,params:r.params},null)])},T=e=>{let t;const a=e.selectedData||[],n=a.length===e.children.length,s=a.length>0&&a.length<e.children.length;return o("div",{class:c.be("batch","check")},[o(i("el-checkbox"),{"model-value":n,indeterminate:s,onChange:()=>((e,t)=>{const a=e.selectedData||[];t?a.forEach((e=>{r.onRowClick(e)})):e.children.filter((e=>!a.includes(e))).forEach((e=>{r.onRowClick(e)}))})(e,n)},Nh(t=ibiz.i18n.t("control.kanban.selectAll"))?t:{default:()=>[t]}),o("span",{class:c.be("batch","info"),innerHTML:ibiz.i18n.t("control.kanban.selectedDataCount",{length:a.length})},null)])},z=e=>{if(v.value===e.key)return o("div",{class:c.b("batch")},[x(e),T(e)])},O=(e,t)=>[o("div",{class:c.be("item","top")},[o("div",{class:c.bem("item","top","title")},[e.srfmajortext]),o("div",{class:c.bem("item","top","description")},[e.content])]),r.getOptItemModel()?o("div",{class:c.be("item","bottom")},[k(e,t)]):null],_=(t,a)=>{const n=r.state.selectedData.findIndex((e=>e.srfkey===t.srfkey)),s=[c.b("item"),c.is("selected",-1!==n),c.is("disabled",m.value)],l={};r.model.cardWidth&&(l.width="".concat(r.model.cardWidth,"px")),r.model.cardHeight&&(l.height="".concat(r.model.cardHeight,"px"));const d=e.modelData.itemLayoutPanel;return o(i("el-card"),{shadow:"hover",class:s,"body-style":l,onClick:e=>((e,t)=>(D(t),r.onRowClick(e)))(t,e),onDblclick:e=>((e,t)=>(D(t),r.onDbRowClick(e)))(t,e)},{default:()=>[d?P(t,d):O(t,a)]})},B=()=>{if(r.state.isLoaded)return o(i("iBizNoData"),{text:r.model.emptyText,emptyTextLanguageRes:r.model.emptyTextLanguageRes},null)};let j=null;const M=e=>{const t=r.model.groupUIActionGroup&&e.groupActionGroupState||w;if(v.value===e.key){let e;return o("span",{class:c.be("group","header-right"),onClick:e=>D(e)},[o(i("el-button"),{text:!0,onClick:()=>r.closeBatch()},Nh(e=ibiz.i18n.t("app.complete"))?e:{default:()=>[e]})])}return o("span",{class:c.be("group","header-right"),onClick:e=>D(e)},[r.enableNew&&!r.state.readonly&&o(i("el-button"),{class:c.be("group","header-new"),text:!0,circle:!0,onClick:t=>{((e,t)=>{D(e),r.onClickNew(e,t)})(t,e.key)}},{default:()=>[o("ion-icon",{name:"add-outline",title:ht(ibiz.i18n.t("app.newlyBuild"))},null)]}),t&&o(i("el-dropdown"),{class:c.be("group","header-actions"),trigger:"click",teleported:!1},{default:()=>o("span",null,[b("···")]),dropdown:()=>o("div",{class:c.be("group","actions-dropdown")},[r.model.groupUIActionGroup&&e.groupActionGroupState&&o(i("iBizActionToolbar"),{actionDetails:r.model.groupUIActionGroup.uiactionGroupDetails,actionsState:e.groupActionGroupState,onActionClick:(t,a)=>{r.onGroupToolbarClick(t,a,e)}},null),w&&o(i("el-button"),{size:"small",onClick:()=>{r.openBatch(e.key)}},{default:()=>[o("ion-icon",{name:"checkmark-sharp"},null),ibiz.i18n.t("control.kanban.natchOperation")]})])})])};return{c:r,ns:c,isFull:h,kanban:u,onFullScreen:()=>{const e=u.value.$el;h.value=r.onFullScreen(e)},renderGroup:e=>{const t=y.value[String(e.key)],a="COLUMN"===r.model.groupLayout,n={...I};return t&&(n.height="50px"),!t||a?o("div",{class:[c.b("group"),c.is("collapse",t),f],style:n},[o("div",{class:c.be("group","header"),style:{borderTopColor:e.color||"transparent"},onClick:t=>E(e,t)},[o("div",{class:c.be("group","header-left")},[o("ion-icon",{name:"caret-down-sharp"},null),o("span",{class:[c.be("group","header-caption"),c.is("badge",!!e.color)],style:{backgroundColor:e.color}},["".concat(e.caption).concat(e.children.length?" · ".concat(e.children.length):"")])]),M(e)]),z(e),o("div",{class:[c.be("group","list"),c.is("empty",!e.children.length)]},[o(Do,{class:c.be("group","draggable"),modelValue:e.children,group:r.model.id,itemKey:"srfkey",disabled:m.value||r.state.readonly,onChange:t=>((e,t)=>{e.moved&&r.onDragChange({from:t,to:t,fromIndex:e.moved.oldIndex,toIndex:e.moved.newIndex}),e.added&&(j={to:t,toIndex:e.added.newIndex}),e.removed&&(j&&(j.from=t,j.fromIndex=e.removed.oldIndex,r.onDragChange(j)),j=null)})(t,e.key)},{item:({element:t})=>_(t,e),header:()=>e.children.length?null:o("div",{class:c.be("group","list")},[B()])}),S(e)])]):o("div",{class:[c.b("group"),c.is("collapse",t),f]},[o("div",{class:c.be("group","header"),style:{borderTopColor:e.color||"transparent"},onClick:t=>E(e,t)},[o("span",{class:[c.be("group","header-caption"),c.is("badge",!!e.color)],style:{backgroundColor:e.color}},["".concat(e.caption).concat(e.children.length?" · ".concat(e.children.length):"")]),o("ion-icon",{name:"caret-forward-sharp"},null)])])}}},render(){var e;const{groups:t,isCreated:a}=this.c.state;return a?o(i("iBizControlBase"),{ref:"kanban",controller:this.c,class:[this.ns.m(null==(e=this.modelData.groupLayout)?void 0:e.toLowerCase()),this.ns.is("full",this.isFull)]},{default:()=>[o("div",{class:this.ns.b("group-container")},[t.length>0&&t.map((e=>this.renderGroup(e)))]),t.length>0&&o("div",{class:this.ns.e("full-btn"),onClick:this.onFullScreen},[this.isFull?o("ion-icon",{name:"contract-outline"},null):o("ion-icon",{name:"expand-outline"},null)])]}):null}});var Vh=Object.defineProperty,Fh=(e,t,a)=>(((e,t,a)=>{t in e?Vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Uh{constructor(){Fh(this,"component","IBizKanbanControl")}}const qh=e("ap",U(Lh,(function(e){e.component(Lh.name,Lh),Xt($t.KANBAN,(()=>new Uh))})));function Gh(e,t){let a;const s=n(!1),l=n(!1),r=n(),c=w({}),d=async t=>{var n;const o=(t=>{if(!e.value)throw new vt(ibiz.i18n.t("control.common.citeErrMessage"));const a=e.value.$el;let n=".el-table__row";t.data._uuid&&(n+=".id-".concat(t.data._uuid));const o=a.querySelector(n);if(!o)throw new vt(ibiz.i18n.t("control.common.noDomErrMessage"));return o})(t);if(l.value=(null==(n=o.parentNode)?void 0:n.lastElementChild)===o,!a)throw new vt(ibiz.i18n.t("control.common.noPopErrMessage"));const i=a.$el,{x:d,y:u}=await Ko(o,i,{placement:"bottom"});Object.assign(c,{top:"".concat(u,"px"),left:"".concat(d,"px")}),r.value=t,setTimeout((()=>{s.value=!0}),200)},u=async()=>{r.value&&t.switchRowEdit(r.value,!1,!0)},p=async()=>{r.value&&t.switchRowEdit(r.value,!1,!1)};return t.evt.on("onRowEditChange",(e=>{e.row.showRowEdit?setTimeout((()=>{d(e.row)}),0):(r.value=void 0,s.value=!1,Object.assign(c,{top:void 0,left:void 0}))})),{renderPopover:()=>[o("div",{class:"row-edit-popover__placeholder",style:{display:l.value?"block":"none"}},null),o(i("iBizRowEditPopover"),{ref:e=>{a=e},style:c,show:s.value,onConfirm:u,onCancel:p},null)]}}const Hh=a({name:"IBizTreeGridExControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=F(((...e)=>new dn(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),a=l((()=>{const t=[];return e.state.columnStates.forEach((a=>{var n,o;if(a.hidden)return;const i=(null==(n=e.fieldColumns[a.key])?void 0:n.model)||(null==(o=e.uaColumns[a.key])?void 0:o.model);i&&t.push(i)})),t})),s=(e,t=!1)=>e.map((e=>{const a={id:e._id,_uuid:e._uuid,hasChildren:!e._leaf};return t||e._leaf||void 0===e._children||(a.children=s(e._children)),a})),r=n(lo()),c=l((()=>e.state.isLoaded?e.model.rootVisible?e.state.rootNodes:e.state.rootNodes.reduce(((e,t)=>t._children?e.concat(t._children):e),[]):[])),d=l((()=>(r.value=lo(),0===c.value.length?[]:s(c.value,!0))));e.evt.on("onAfterRefreshParent",(()=>{r.value=lo()}));const u=n(),{renderPopover:p}=Gh(u,e);E((()=>{if(u.value){const t=u.value.store.states.treeData.value,a=e.state.expandedKeys;Object.keys(t).forEach((n=>{if(a.includes(n)!==t[n].expanded){const t=s([e.getNodeData(n)])[0];u.value.store.loadOrToggle(t)}}))}}));return{c:e,ns:t,tableRef:u,elTableData:d,renderColumns:a,tableRefreshKey:r,renderNoData:()=>{const{isLoaded:t}=e.state;return t&&o(i("iBizNoData"),{text:e.model.emptyText,emptyTextLanguageRes:e.model.emptyTextLanguageRes},null)},loadData:async(t,a,n)=>{let o;const i=e.getNodeData(t.id);o=i._children?i._children:await e.loadNodes(i),n(s(o))},onRowClick:async(t,a,n)=>{const o=e.getNodeData(t.id);if("row"===ibiz.config.grid.editShowMode&&e.model.enableEdit){const a=e.state.rows[o._uuid];if(!a||!0===a.showRowEdit)throw new vt(ibiz.i18n.t("control.treeGridEx.noFoundMessage",{id:t.id}));await e.switchRowEdit(a,!0)}else e.onTreeNodeClick(o,n)},onExpandChange:(t,a)=>{const n=e.getNodeData(t._uuid);if(!n)throw new vt(ibiz.i18n.t("control.common.noFoundNode",{id:t._uuid}));e.onExpandChange(n,a)},renderPopover:p,handleRowClassName:function({row:t}){const a=e.getNodeData(t.id);if(!a)return"";let n="";e.state.selectedData.length>0&&e.state.selectedData.forEach((e=>{e===a&&(n="current-row")}));const o=e.getRowState(a._uuid);return(null==o?void 0:o.showRowEdit)&&(n+=" editing-row"),n+=" id-".concat(a._uuid),n}}},render(){const e=(e,t)=>{var a,n;if(this.$slots[e.id])return P(this.$slots,e.id,{model:e,data:this.c.state.items});const{codeName:s,width:l}=e,c=this.c.columns[s],d=this.c.state.columnStates.find((e=>e.key===s)),u=c.isAdaptiveColumn||!this.c.hasAdaptiveColumn&&t===this.renderColumns.length-1?"min-width":"width";return o(i("el-table-column"),v({label:e.caption,prop:s},{[u]:l},{fixed:d.fixed,sortable:!!e.enableSort&&"custom","label-class-name":null==(a=c.model.headerSysCss)?void 0:a.cssName,align:(null==(n=e.align)?void 0:n.toLowerCase())||"center"}),{default:({row:e})=>{const t=this.c.getRowState(e.id);if(t){const e=i(this.c.providers[s].component);return r(e,{controller:c,row:t,key:t.data._uuid+s})}return null}})};return o(i("iBizControlBase"),{controller:this.c,class:[this.ns.b()]},{default:()=>[this.c.state.isLoaded&&o(i("el-table"),{ref:"tableRef",key:this.tableRefreshKey,class:this.ns.e("table"),border:!0,"row-key":"id",data:this.elTableData,"tree-props":{children:"children",hasChildren:"hasChildren"},lazy:!0,onRowClick:this.onRowClick,onExpandChange:this.onExpandChange,"row-class-name":this.handleRowClassName,load:this.loadData},{empty:this.renderNoData,default:()=>[this.renderColumns.map(((t,a)=>e(t,a)))],append:()=>this.renderPopover()})]})}});var Wh=Object.defineProperty,Kh=(e,t,a)=>(((e,t,a)=>{t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Yh{constructor(){Kh(this,"component","IBizTreeGridExControl")}}const Xh=a({name:"IBizTreeGridExFieldColumn",props:{controller:{type:un,required:!0},row:{type:pn,required:!0}},setup(e){const t=A("tree-grid-ex-field-column"),a=l((()=>"DE"!==e.row.data._nodeType&&e.controller.isFirstShowColumn?e.row.data._text:e.row.data[e.controller.name])),o=l((()=>e.controller.nodeColumnControllerMap.get(e.row.data._nodeId))),i=n(""),s=l((()=>{const e=o.value;if(e){if(e.nodeEditItem)return;return e.codeList?i.value:e.formatValue(a.value)+(e.unitName||"")}return a.value})),r=l((()=>{if("ellipsis"===e.controller.treeGrid.overflowMode&&bo(a.value)&&""!==a.value)return s.value})),c=l((()=>a.value&&o.value&&(o.value.isLinkColumn||o.value.hasClickAction)));return{ns:t,nodeColumn:o,fieldValue:a,showText:s,clickable:c,tooltip:r,onInfoTextChange:e=>{i.value=e},onTextClick:t=>{var a;null==(a=o.value)||a.onTextClick(e.row,t)},onActionClick:async(t,a)=>{var n;await(null==(n=o.value)?void 0:n.onActionClick(t,e.row,a))}}},render(){var e,t,a,n;let s,l=null;return l=(null==(e=this.nodeColumn)?void 0:e.nodeEditItem)?o(i("iBizTreeGridExEditColumn"),{controller:this.nodeColumn,row:this.row},null):(null==(t=this.nodeColumn)?void 0:t.codeList)?o(i("iBizCodeList"),{class:this.ns.e("text"),codeListItems:this.nodeColumn.codeListItems,codeList:this.nodeColumn.codeList,value:this.fieldValue,onClick:this.onTextClick,onInfoTextChange:this.onInfoTextChange,title:ht(this.tooltip)},null):o("span",{class:this.ns.e("text"),title:ht(this.tooltip),onClick:this.onTextClick},[this.showText]),this.$slots.actions?s=this.$slots.actions():this.row.columnActionsStates[this.controller.name]&&(s=o(i("iBizActionToolbar"),{class:this.ns.e("toolbar"),"action-details":null==(a=this.nodeColumn)?void 0:a.nodeColumn.deuiactionGroup.uiactionGroupDetails,"actions-state":this.row.columnActionsStates[this.controller.name],groupLevelKeys:[50,100],onActionClick:this.onActionClick},null)),o("div",{class:[this.ns.b(),this.clickable&&this.ns.m("clickable"),this.ns.m(this.controller.treeGrid.overflowMode),null==(n=this.controller.model.cellSysCss)?void 0:n.cssName,this.ns.is("has-action",!!s)]},[o("div",{class:this.ns.b("text-container")},[l]),o("div",{class:this.ns.b("toolbar-container")},[s])])}});var $h=Object.defineProperty,Jh=(e,t,a)=>(((e,t,a)=>{t in e?$h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Qh{constructor(){Jh(this,"component","IBizTreeGridExFieldColumn")}async createController(e,t){const a=new un(e,t);return await a.init(),a}}const Zh=U(Xh,(function(e){e.component(Xh.name,Xh),hn("DEFGRIDCOLUMN",(()=>new Qh))}));const em=a({name:"IBizTreeGridExEditColumn",props:{controller:{type:mn,required:!0},row:{type:pn,required:!0}},setup(e){const t=l((()=>e.row.data[e.controller.name])),a=A("tree-grid-ex-edit-column"),o=n(),i=e.controller,{gridEditItemProps:s,editorProps:r}=(()=>{switch(ibiz.config.grid.editShowMode){case"cell":return function(e,t){const a=e.controller,n=l((()=>e.row.editColStates[a.name].disabled)),o=l((()=>e.row.editColStates[a.name].readonly)),i=l((()=>!!e.row.errors[a.name])),s=l((()=>e.row.editColStates[a.name].editable)),r=t=>{e.row.editColStates[a.name].editable=t},c=l((()=>!n.value&&!o.value&&!i.value)),d=l((()=>i.value||c.value&&s.value)),u=l((()=>!d.value)),p=l((()=>!i.value)),h=l((()=>c.value&&!s.value)),m=l((()=>c.value));let v;return{gridEditItemProps:w({showEditMask:h,stopPropagation:m,onMaskClick:()=>{r(!0),v=G(t,(async e=>{r(!1),v.stop()}))}}),editorProps:w({autoFocus:p,disabled:!1,readonly:u,onBlur:()=>{ibiz.log.debug("".concat(a.name,"属性编辑器blur事件")),r(!1),"cell-blur"===ibiz.config.grid.editSaveMode&&a.treeGrid.save(e.row.data)},onFocus:()=>{v&&v.stop(),ibiz.log.debug("".concat(a.name,"属性编辑器focus事件"))}})}}(e,o);case"row":return function(e){const t=e.controller,a=l((()=>e.row.editColStates[t.name].disabled)),n=l((()=>e.row.editColStates[t.name].readonly)),o=l((()=>e.row.editColStates[t.name].editable)),i=l((()=>n.value||!o.value)),s=l((()=>o.value&&a.value)),r=l((()=>o.value));return{gridEditItemProps:w({stopPropagation:r}),editorProps:w({disabled:s,readonly:i})}}(e);case"all":return function(e){const t=e.controller,a=l((()=>e.row.editColStates[t.name].disabled)),n=l((()=>e.row.editColStates[t.name].readonly)),o=l((()=>e.controller.treeGrid.state.rowEditOpen)),i=l((()=>n.value||!o.value)),s=l((()=>o.value&&a.value)),r=l((()=>o.value));return{gridEditItemProps:w({stopPropagation:r}),editorProps:w({disabled:s,readonly:i,onBlur:()=>{t.treeGrid.save(e.row.data)}})}}(e);default:throw new vt(ibiz.i18n.t("control.common.noSupportItem",{name:ibiz.config.grid.editShowMode}))}})(),c=n(void 0),d=l((()=>{if(r.readonly)return vo(c.value)?i.formatValue(t.value):c.value}));return{ns:a,fieldValue:t,componentRef:o,tooltip:d,rowDataChange:async(t,a)=>{ibiz.log.debug("".concat(i.name,"值变更"),t),await i.setRowValue(e.row,t,a)},onInfoTextChange:e=>{c.value=e},gridEditItemProps:s,editorProps:r}},render(){return o(i("iBizGridEditItem"),{ref:"componentRef",required:!this.controller.nodeEditItem.allowEmpty,overflowMode:this.controller.overflowMode,class:[this.ns,this.ns.m(this.controller.overflowMode)],...this.gridEditItemProps},{default:()=>[this.controller.editorProvider&&r(i(this.controller.editorProvider.gridEditor),{class:this.ns.e("editor"),value:this.fieldValue,data:this.row.data,controller:this.controller.editor,overflowMode:this.controller.overflowMode,onChange:this.rowDataChange,onInfoTextChange:this.onInfoTextChange,title:this.tooltip,...this.editorProps})]})}}),tm=a({name:"IBizTreeGridExUAColumn",props:{controller:{type:vn,required:!0},row:{type:pn,required:!0}},setup:e=>({ns:A("tree-grid-ex-ua-column"),onStopPropagation:e=>{e.stopPropagation()},onActionClick:async(t,a)=>{await e.controller.onActionClick(t,e.row,a)}}),render(){var e,t;const a=this.controller.getUIActionGroup(this.row);return o("div",{class:[this.ns.b(),null==(e=this.controller.model.cellSysCss)?void 0:e.cssName],onDblclick:this.onStopPropagation,onClick:this.onStopPropagation},[(null==(t=null==a?void 0:a.uiactionGroupDetails)?void 0:t.length)&&o(i("iBizActionToolbar"),{"action-details":a.uiactionGroupDetails,"actions-state":this.row.columnActionsStates[this.controller.model.codeName],onActionClick:this.onActionClick},null)])}});var am=Object.defineProperty,nm=(e,t,a)=>(((e,t,a)=>{t in e?am(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class om{constructor(){nm(this,"component","IBizTreeGridExUAColumn")}async createController(e,t){const a=new vn(e,t);return await a.init(),a}}const im=U(tm,(function(e){e.component(tm.name,tm),hn("UAGRIDCOLUMN",(()=>new om))})),sm=e("aq",U(Hh,(function(e){e.component(Hh.name,Hh),e.component(em.name,em),Xt($t.TREE_GRIDEX,(()=>new Yh)),e.use(Zh),e.use(im)}))),lm=a({name:"IBizTreeGridControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0},rowEditOpen:{type:Boolean,default:void 0},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1},loadDefault:{type:Boolean,default:!0}},setup(e,{slots:t}){const a=F(((...e)=>new bn(...e))),n=A("control-grid"),s=A("control-".concat(a.model.controlType.toLowerCase())),{tableRef:r,onRowClick:c,onDbRowClick:d,onSelectionChange:u,onSortChange:p,handleRowClassName:h}=Dl(a),{onPageChange:m,onPageRefresh:v,onPageSizeChange:g}=El(a),{tableData:w,renderColumns:f,defaultSort:y,summaryMethod:C,headerDragend:I}=Pl(a,e),{renderPopover:D}=xl(r,a),{headerCssVars:E}=kl(r,n),k=e=>{const t=e.clone();return t.hasChildren=a.state.items.some((t=>e[a.treeGridValueField]===t[a.treeGridParentField])),t.children=[],t},S=l((()=>{const e=a.state.rows.map((e=>k(e.data))),t=[],n=[];return e.forEach((e=>{const t=e[a.treeGridValueField];t&&n.push(t)})),e.forEach((e=>{n.includes(e[a.treeGridParentField])||t.push(e)})),t}));return{c:a,ns:n,ns2:s,tableRef:r,treeGirdData:S,tableData:w,renderColumns:f,renderColumn:(e,n)=>t[e.id]?P(t,e.id,{model:e,data:a.state.items}):sr(a,e,f.value,n),defaultSort:y,onDbRowClick:d,onRowClick:c,onSelectionChange:u,onSortChange:p,onPageChange:m,onPageSizeChange:g,onPageRefresh:v,handleRowClassName:h,renderNoData:()=>{var e;const{isLoaded:t}=a.state;if(t){const t=null==(e=a.model.controls)?void 0:e.find((e=>e.name==="".concat(a.model.name,"_quicktoolbar")));return t?o(i("iBizToolbarControl"),{modelData:t,context:a.context,params:a.params,class:n.b("quick-toolbar")},null):o(i("iBizNoData"),{text:a.model.emptyText,emptyTextLanguageRes:a.model.emptyTextLanguageRes},null)}return null},loadData:async(e,t,n)=>{n(a.state.rows.map((e=>k(e.data))).filter((t=>e[a.treeGridValueField]===t[a.treeGridParentField])))},summaryMethod:C,headerDragend:I,renderPopover:D,renderBatchToolBar:()=>{var e;const t=null==(e=a.model.controls)?void 0:e.find((e=>e.name==="".concat(a.model.name,"_batchtoolbar")));if(t&&!a.state.singleSelect)return o("div",{class:[n.b("batch-toolbar"),n.is("show",a.state.selectedData.length>0)]},[o("div",{class:n.b("batch-toolbar-content")},[o("div",{class:n.b("batch-toolbar-text")},[ibiz.i18n.t("control.common.itemsSelected",{length:a.state.selectedData.length})]),o("div",{class:n.b("batch-toolbar-separator")},[b("|")]),o(i("iBizToolbarControl"),{modelData:t,context:a.context,params:a.params,class:n.b("batch-toolbar-items")},null)])])},headerCssVars:E}},render(){const e=this.c.state,{hideHeader:t,enablePagingBar:a}=this.c.model;return o(i("iBizControlBase"),{class:[this.ns.b(),this.ns2.b(),this.ns.is("show-header",!t),this.ns.is("enable-page",a),this.ns.is("enable-group",this.c.model.enableGroup),this.ns.is("enable-customized",this.c.model.enableCustomized)],controller:this.c,style:this.headerCssVars},{default:()=>[this.c.state.isLoaded&&o(i("el-table"),{ref:"tableRef",class:this.ns.e("table"),"default-sort":this.defaultSort,border:!0,"show-header":!t,"show-summary":this.c.enableAgg,"summary-method":this.summaryMethod,"highlight-current-row":e.singleSelect,"row-class-name":this.handleRowClassName,"row-key":"srfkey",data:this.c.state.showTreeGrid?this.treeGirdData:this.tableData,onRowClick:this.onRowClick,onRowDblclick:this.onDbRowClick,onSelectionChange:this.onSelectionChange,onSortChange:this.onSortChange,onHeaderDragend:this.headerDragend,"tooltip-effect":"light","tree-props":{children:"children",hasChildren:"hasChildren"},load:this.loadData,lazy:!0},{empty:this.renderNoData,default:()=>[!e.singleSelect&&o(i("el-table-column"),{"class-name":this.ns.e("selection"),type:"selection",width:"55"},null),e.isCreated&&this.renderColumns.map(((e,t)=>this.renderColumn(e,t)))],append:()=>this.renderPopover()}),a&&o(i("iBizPagination"),{total:e.total,curPage:e.curPage,size:e.size,totalPages:e.totalPages,onChange:this.onPageChange,onPageSizeChange:this.onPageSizeChange,onPageRefresh:this.onPageRefresh},null),this.c.model.enableCustomized&&!t&&o("div",{class:this.ns.b("setting-box")},[o(i("iBizGridSetting"),{columnStates:e.columnStates,controller:this.c},null)]),this.renderBatchToolBar()]})}});var rm=Object.defineProperty,cm=(e,t,a)=>(((e,t,a)=>{t in e?rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class dm{constructor(){cm(this,"component","IBizTreeGridControl")}}const um=e("ar",U(lm,(function(e){e.component(lm.name,lm),Xt($t.TREEGRID,(()=>new dm))})));const pm=a({name:"IBizMEditViewPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup(){const e=F(((...e)=>new gn(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),a=n(null),o=n(0);let i=null;return d((()=>{a.value&&(i=new MutationObserver((()=>{const t=a.value.scrollHeight;t!==o.value&&e.state.isNeedScroll&&(o.value=t,a.value.scrollTop=t)})),i.observe(a.value,{childList:!0,attributes:!0,characterData:!0,subtree:!0}))})),C((()=>{i&&i.disconnect()})),{c:e,ns:t,panelContent:a,handleDelete:t=>{e.handleDelete(t)}}},render(){const e=i("IBizViewShell"),t=()=>{let t;return o(i("el-tabs"),{class:this.ns.b("tabs"),modelValue:this.c.state.activeTab,"onUpdate:modelValue":e=>this.c.state.activeTab=e},(a=t=this.c.state.panelUiItems.map(((t,a)=>o(i("el-tab-pane"),{key:t.id+t.srfmajortext,name:t.id},{label:()=>o("div",{class:this.ns.b("tab-label")},[o("span",null,[t.srfmajortext]),o("ion-icon",{name:"close-outline",onClick:()=>this.c.handleTabDelete(t,a)},null)]),default:()=>this.c.state.activeTab===t.id&&r(e,{context:t.context,params:t.params,viewId:this.c.model.embeddedAppViewId,onDataChange:e=>this.c.onViewDataChange(e,t.id)})}))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?t:{default:()=>[t]}));var a},a=()=>this.c.state.panelUiItems.map((t=>o("div",{class:this.ns.b("item"),key:t.id},[[r(e,{context:t.context,params:t.params,viewId:this.c.model.embeddedAppViewId,onDataChange:e=>this.c.onViewDataChange(e,t.id)}),o("div",{class:this.ns.b("close")},[o("ion-icon",{name:"close-outline",onClick:()=>this.handleDelete(t)},null)])]]))),n=()=>{if(this.c.model.embeddedAppViewId)return Object.is(this.c.model.panelStyle,"TAB_TOP")?t():a()};return o(i("iBizControlBase"),{controller:this.c},{default:()=>[o("div",{class:this.ns.b("content"),ref:"panelContent"},[this.c.state.panelUiItems.length>0?n():null])]})}});var hm=Object.defineProperty,mm=(e,t,a)=>(((e,t,a)=>{t in e?hm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class vm{constructor(){mm(this,"component","IBizMEditViewPanelControl")}}const bm=e("as",U(pm,(function(e){e.component(pm.name,pm),Xt($t.MULTI_EDIT_VIEWPANEL,(()=>new vm))}))),gm=a({name:"IBizMapControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(){const e=F(((...e)=>new wn(...e))),t=A("control-".concat(e.model.controlType.toLowerCase())),a=n(),o=l((()=>({strAreaCode:e.state.strAreaCode,defaultAreaCode:e.state.defaultAreaCode,jsonBaseUrl:e.state.jsonBaseUrl})));return{c:e,ns:t,mapRef:a,mapOpts:o}},render(){const{state:e}=this.c;return o(i("iBizControlBase"),{controller:this.c},{default:()=>[e.isLoaded&&o(i("iBizMapChart"),{areaData:e.areaData,pointData:e.pointData,options:this.mapOpts,class:this.ns.e("map"),onMapChange:e=>{this.c.onMapChange(e.areaCode)},onPointChange:e=>{this.c.onAreaClick(e)},onAreaChange:e=>{this.c.onPointClick(e)}},null)]})}});var wm=Object.defineProperty,fm=(e,t,a)=>(((e,t,a)=>{t in e?wm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class ym{constructor(){fm(this,"component","IBizMapControl")}}const Cm=e("at",{install(e){e.component(gm.name,gm),Xt($t.MAP,(()=>new ym))}});const Im=a({name:"IBizReportPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},noLoadDefault:{type:Boolean,default:!1}},setup(){const e=F(((...e)=>new fn(...e))),t=A("control-".concat(e.model.controlType.toLowerCase()));return{c:e,ns:t,renderContent:()=>{const{reportType:t}=e.state;switch(t){case"USER":return o(i("iBizUserReportPanel"),{controller:e},null);case"USER2":return o(i("iBizUser2ReportPanel"),{controller:e},null);case"DESYSBIREPORTS":case"SYSBICUBE":case"DESYSBICUBES":case"ALLSYSBICUBES":case"SYSBIREPORT":case"SYSBICUBEREPORTS":case"ALLSYSBIREPORTS":return o(i("iBizBIReportPanel"),{controller:e},null);default:return o("div",null,[ibiz.i18n.t("control.reportPanel.unrealized")])}}}},render(){let e;var t;if(this.c.state.isCreated)return o(i("iBizControlBase"),{controller:this.c},"function"==typeof(t=e=this.renderContent())||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]})}});var Dm=Object.defineProperty,Em=(e,t,a)=>(((e,t,a)=>{t in e?Dm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Pm{constructor(){Em(this,"component","IBizReportPanelControl")}}const km=a({name:"IBizUserReportPanel",props:{controller:{type:Object}},setup(e){const t=e.controller;return{c:t,ns:A("user-report-panel"),generator:t&&t.generator}},render(){if(!this.c)return;const e=this.c.state;return o("div",{class:this.ns.e("container")},[o(i("iBizRelationshipDesign"),{data:e.data,context:this.c.context,params:this.c.params,config:this.generator&&this.generator.config.CONFIG,pluginConfig:this.generator&&this.generator.config.PLUGINCONFIG,nodeLegendConfig:this.generator&&this.generator.config.NODELEGENDCONFIG,edgeLegendConfig:this.generator&&this.generator.config.EDGELEGENDCONFIG,hooks:this.generator&&this.generator.config.HOOKS,showLoading:!0,onInit:e=>{this.generator&&this.generator.init(e)}},null)])}}),Sm=U(km,(function(e){e.component(km.name,km)})),xm=a({name:"IBizUser2ReportPanel",props:{controller:{type:Object}},setup(e){const t=e.controller,a=A("user2-report-panel"),n=t&&t.generator;return{c:t,ns:a,generator:n,handleClick:async e=>{let a=e.target.getAttribute("click"),n=e.target.getAttribute("params");if(!a||!t||!n)return;a=a.replaceAll("`",""),n=n.replaceAll("`",'"');const o=/\(([^)]+)\)/.exec(a);o&&o[1]&&yn.exec(o[1],{context:t.context,params:t.params,data:[JSON.parse(n)],view:t.view},t.context.srfappid)}}},render(){if(!this.c)return;const e=this.c.state;return e.isLoaded?o("div",{class:this.ns.e("container"),innerHTML:e.data,onClick:e=>{this.handleClick(e)}},null):o("div",{class:this.ns.e("empty")},[ibiz.i18n.t("control.common.currentNoData")])}}),Tm=U(xm,(function(e){e.component(xm.name,xm)})),zm=a({name:"IBizBIReportPanel",props:{controller:{type:Object}},setup(e){const t=e.controller;return{c:t,ns:A("bi-report-panel"),generator:t&&t.generator}},render(){if(this.c)return o("div",{class:this.ns.e("container")},[o(i("iBizBIReportContent"),{mode:"CONTENT",context:this.c.context,viewParams:this.c.params,config:this.generator&&this.generator.config,onInit:e=>{this.generator&&this.generator.init(e)},onReportChartChange:e=>{this.generator&&this.generator.init(e)}},null)])}}),Om=U(zm,(function(e){e.component(zm.name,zm)})),_m=e("au",U(Im,(function(e){e.use(Sm),e.use(Tm),e.use(Om),e.component(Im.name,Im),Xt($t.REPORT_PANEL,(()=>new Pm))}))),Am=a({name:"IBizGanttControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},loadDefault:{type:Boolean,default:!0},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0}},setup(e){var a;const s=F(((...e)=>new Cn(...e))),c=n(),u=n(!1),p=A("control-".concat(s.model.controlType.toLowerCase())),h=n(!1),m=i("IBizRawItem"),v=i("IBizIcon");let b=!1;const g=[],w=["blue","light-blue","blue-cyan","pink","purple","violet","indigo","cyan","teal","green","light-green","lime","yellow","amber","orange","grey","sky-blue"],y=null==(a=f())?void 0:a.appContext.app;d((()=>{t.import("@ibiz-template-plugin/gantt").then((e=>{const t=e.default;null==y||y.use(t),u.value=!0}))}));const C=e=>{const t=document.documentElement;return getComputedStyle(t).getPropertyValue(e)},I=l((()=>{var e,t;return{primaryColor:(null==(e=s.state.ganttStyle)?void 0:e.primaryColor)||C("--ibiz-color-primary"),textColor:(null==(t=s.state.ganttStyle)?void 0:t.textColor)||C("--ibiz-color-primary-text")}})),D=l((()=>{var e;const t={};return null==(e=s.model.detreeNodes)||e.forEach(((e,a)=>{const n=a%w.length;t[e.id]="rgba(".concat(C("--ibiz-".concat(w[n],"-0")),", 1)")})),t})),E=l((()=>!!s.state.isLoaded&&s.state.isLoading)),P=l((()=>s.state.isLoaded?s.model.rootVisible?s.state.rootNodes:s.state.rootNodes.reduce(((e,t)=>t._children?e.concat(t._children):e),[]):[])),k=l((()=>{const e=[];return s.state.columnStates.forEach((t=>{var a;const n=null==(a=s.columns[t.key])?void 0:a.model;!t.hidden&&n&&e.push(n)})),e})),S=l((()=>ibiz.i18n.getLang().toLowerCase())),x=(e,t)=>{b||h.value?h.value=!1:(s.onTreeNodeClick(e,t),b=!0,setTimeout((()=>{b=!1}),200))},T=e=>{s.onDbTreeNodeClick(e)};s.evt.on("onNewRow",(e=>{var t;const a=e.row.data;null==(t=c.value)||t.setExpand(a)}));const z=(e,t,a,n)=>{const i=[];return e.forEach((e=>{var l;if("SEPERATOR"===e.itemType)return void i.push({divided:"self"});const r=n[e.id];if(r&&!r.visible)return;const c={};if(e.showCaption&&e.caption&&(c.label=e.caption),e.sysImage&&e.showIcon&&(c.icon=o(v,{icon:e.sysImage},null)),"DEUIACTION"===e.itemType){c.disabled=r.disabled,c.clickClose=!0;const{uiactionId:n}=e;n&&(c.onClick=()=>{s.doUIAction(n,t,a,e.appId)})}else if("RAWITEM"===e.itemType){const{rawItem:t}=e;t&&(c.label=o(m,{rawItem:e},null))}else"ITEMS"===e.itemType&&(null==(l=e.detoolbarItems)?void 0:l.length)&&(c.children=z(e.detoolbarItems,t,a,n));i.push(c)})),i};let O;s.evt.on("onMounted",(()=>{if(Object.values(s.contextMenus).length>0){(()=>t.import("@imengyu/vue3-context-menu"))().then((e=>{O=e.default,O.default&&!O.showContextMenu&&(O=O.default)}))}}));const _=()=>o(i("x-gantt-slider"),{"allow-link":!1,move:s.state.sliderDraggable,"resize-left":s.state.sliderDraggable,"resize-right":s.state.sliderDraggable},{content:({row:e})=>o(i("el-popover"),{placement:"bottom",width:"auto","popper-style":{"min-width":"300px"}},{reference:()=>o("div",{class:p.e("slider"),style:{background:D.value[e._nodeId]},onClick:t=>x(e,t),onDblclick:()=>T(e),onContextmenu:t=>(async(e,t)=>{t.stopPropagation(),t.preventDefault();const a=s.getNodeModel(e._nodeId);if(!(null==a?void 0:a.decontextMenu))return;const n=s.contextMenus[a.decontextMenu.id];if(!n.model.detoolbarItems)return;await n.calcButtonState(e._deData||(e.srfkey?e:void 0),a.appDataEntityId);const o=n.state.buttonsState,i=z(n.model.detoolbarItems,e,t,o);i.length&&O.showContextMenu({x:t.x,y:t.y,customClass:p.b("context-menu"),items:i})})(e,t)},null),default:()=>{const t=(e=>{var t;let a;const n=s.getNodeModel(e);return null==(t=null==n?void 0:n.controlRenders)||t.forEach((e=>{"LAYOUTPANEL"===e.renderType&&(a=e.layoutPanel)})),a})(e._nodeId);return t?(a=t,n=e._deData,o(i("iBizControlShell"),{data:n,modelData:a,context:s.context,params:s.params},null)):(e=>o("div",{class:p.em("slider","container")},[o("div",{class:p.em("slider","container-title")},[o("div",{class:"number"},[e._icon&&o(v,{class:"icon",icon:e._icon},null),e._snDataItemValue]),o("div",{class:"caption"},[e._text])])]))(e);var a,n}})});return{c:s,ns:p,ganttRef:c,isInited:u,data:P,locale:S,columns:k,onCheck:(e,t)=>{if(e)g.push(t);else{const e=g.findIndex((e=>e._id===t._id));e>-1&&g.splice(e,1)}s.setSelection(g)},loading:E,ganttStyle:I,onNodeClick:x,onNodeDbClick:T,onNodeExpand:e=>{s.onExpandChange(e,!0),e&&!e._children&&s.refreshNodeChildren(e)},onNodeCollapse:e=>{s.onExpandChange(e,!1)},renderContent:()=>[...k.value.map(((e,t)=>(e=>{const{caption:t,codeName:a,width:n,headerSysCss:l,align:c}=e,d=s.columns[a];return o(i("x-gantt-column"),{label:t,prop:a,width:n&&n>30?n:30,center:"center"===(null==c?void 0:c.toLowerCase())},{title:({label:e})=>o("div",{class:null==l?void 0:l.cssName},[e]),default:({row:e})=>{const t=s.getRowState(e._id);if(t){const e=i(s.providers[a].component);return r(e,{controller:d,row:t,key:t.data._uuid+a})}return null}})})(e))),_()],onSliderMove:e=>{var t;const a=null==(t=e[0])?void 0:t.row,n={begin:a._beginDataItemValue?ho(a._beginDataItemValue).format("YYYY-MM-DD HH:mm:ss"):void 0,end:a._endDataItemValue?ho(a._endDataItemValue).format("YYYY-MM-DD HH:mm:ss"):void 0};h.value=!0,s.modifyNodeTime(a,n)},renderNoData:()=>{const{isLoaded:e}=s.state;return e&&o(i("iBizNoData"),{text:s.model.emptyText,emptyTextLanguageRes:s.model.emptyTextLanguageRes},null)},allowDrop:(e,t,a)=>{const n=sd(e._uuid,s),o=sd(t._uuid,s);return s.calcAllowDrop(n,o,a)},allowDrag:e=>{const t=sd(e._uuid,s);return s.calcAllowDrag(t)},handleDrop:(e,t,a)=>{const n=sd(e._uuid,s),o=sd(t._uuid,s),i=ld(a);s.onNodeDrop(n,o,i)}}},render(){var e;return this.isInited?h(o(i("iBizControlBase"),{controller:this.c,class:[this.ns.b(),(null==(e=this.data)?void 0:e.length)?"":this.ns.m("empty")]},{default:()=>[o(i("x-gantt"),{ref:"ganttRef","data-id":"_id",data:this.data,"row-height":46,"expand-all":!1,"start-key":"_beginDataItemValue","end-key":"_endDataItemValue",children:"_children",leaf:"_leaf","expand-key":"_defaultExpand",locale:this.locale,draggable:{level:"all",draggable:!0},"allow-drop":this.allowDrop,"allow-drag":this.allowDrag,onNodeDrop:this.handleDrop,showCheckbox:!this.c.state.singleSelect,onNodeExpand:this.onNodeExpand,onNodeCollapse:this.onNodeCollapse,onRowClick:this.onNodeClick,onRowDblClick:this.onNodeDbClick,onRowChecked:this.onCheck,onMoveSlider:this.onSliderMove,primaryColor:this.ganttStyle.primaryColor,headerStyle:{textColor:this.ganttStyle.textColor}},{default:()=>this.renderContent(),empty:()=>this.renderNoData()})]}),[[g("loading"),this.loading]]):null}});var Bm=Object.defineProperty,jm=(e,t,a)=>(((e,t,a)=>{t in e?Bm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Mm{constructor(){jm(this,"component","IBizGanttControl")}}const Rm=e("av",U(Am,(function(e){e.component(Am.name,Am),Xt($t.GANTT,(()=>new Mm))})));const Nm=a({name:"IBizContextMenuControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},mode:{type:String,default:"buttons"},groupLevelKeys:{type:Object,default:[50]},nodeData:{type:Object,required:!0},nodeModel:{type:Object,required:!0}},setup(e,{emit:t}){const a=F(((...e)=>new In(...e))),o=A("context-menu"),i=e.modelData.detoolbarItems,s=n([]),l=n([]),r=n(),d=n(),u=n(!1),p=e=>{Array.isArray(e)&&e.forEach((e=>{e.capLanguageRes&&e.capLanguageRes.lanResTag&&(e.caption=ibiz.i18n.t(e.capLanguageRes.lanResTag,e.caption)),e.tooltipLanguageRes&&e.tooltipLanguageRes.lanResTag&&(e.tooltip=ibiz.i18n.t(e.tooltipLanguageRes.lanResTag,e.tooltip)),p(e.detoolbarItems)}))};i&&(p(i),i.forEach((t=>{t.actionLevel&&-1===e.groupLevelKeys.findIndex((e=>e===t.actionLevel))?s.value.push(t):l.value.push(t)})));c((()=>e.nodeData),(async(t,n)=>{t!==n&&await a.calcButtonState(t._deData||(t.srfkey?t:void 0),e.nodeModel.appDataEntityId)})),a.evt.on("onCreated",(async()=>{await a.calcButtonState(e.nodeData._deData||(e.nodeData.srfkey?e.nodeData:void 0),e.nodeModel.appDataEntityId)}));return{c:a,ns:o,expandDetails:s,groupDetails:l,groupButtonRef:r,dropdownRef:d,popoverVisible:u,handleClick:async(a,n)=>{"buttons"===e.mode?u.value=!1:d.value&&d.value.handleClose(),n.stopPropagation(),u.value=!1,t("action-click",a,n)},calcActionItemClass:e=>{const{actionLevel:t}=e;return[o.e("item"),o.is("disabled",!1),o.em("item","level-".concat(t))]},actionDetails:i}},render(){const e=this.actionDetails||[],t=e=>o(i("el-divider"),{class:this.ns.e("separator"),"border-style":"double",direction:e?"vertical":"horizontal"},null),a=(e,n=!0)=>e.map((e=>{var s,l;return(null==(s=this.c.state.buttonsState[e.id])?void 0:s.visible)?"SEPERATOR"===e.itemType?t(n):"DEUIACTION"===e.itemType||"ITEMS"===e.itemType&&!(null==(l=e.detoolbarItems)?void 0:l.length)?[e.addSeparator&&t(n),o(i("el-button"),{text:!0,size:"small",onClick:t=>this.handleClick(e,t),title:ht(e.tooltip),disabled:this.c.state.buttonsState[e.id].disabled,class:this.calcActionItemClass(e)},{default:()=>[o("div",{class:this.ns.e("action-content")},[e.showIcon&&e.sysImage&&o("div",{class:this.ns.e("action-content-icon")},[o(i("iBizIcon"),{icon:e.sysImage},null)]),e.showCaption?o("div",{class:this.ns.e("action-content-caption")},[e.caption]):""])]})]:"ITEMS"===e.itemType?o(i("el-popover"),{placement:"right-start","popper-class":this.ns.e("popover"),teleported:!1},{reference:()=>[e.addSeparator&&t(n),o(i("el-button"),{text:!0,size:"small",onClick:t=>this.handleClick(e,t),title:ht(e.tooltip),disabled:this.c.state.buttonsState[e.id].disabled,class:this.calcActionItemClass(e)},{default:()=>[o("div",{class:this.ns.e("action-content")},[e.showIcon&&e.sysImage&&o("div",{class:this.ns.e("action-content-icon")},[o(i("iBizIcon"),{icon:e.sysImage},null)]),e.showCaption?o("div",{class:[this.ns.e("action-content-caption"),this.ns.e("action-content-group-caption")]},[e.caption]):"",o("ion-icon",{class:this.ns.e("action-content-group-icon"),name:"chevron-forward-outline"},null)])]})],default:()=>a(e.detoolbarItems||[],n)}):null:null})),n=()=>{let e;if(0===this.groupDetails.length)return null;if(!(-1!==this.groupDetails.findIndex((e=>!0===this.c.state.buttonsState[e.id].visible))))return null;const t=-1===this.groupDetails.findIndex((e=>!1===this.c.state.buttonsState[e.id].disabled));return[o(i("el-button"),{size:"small",text:!0,disabled:t,ref:"groupButtonRef",class:[this.ns.e("item"),this.ns.is("expand",this.popoverVisible)]},{icon:()=>o("ion-icon",{class:this.ns.e("icon"),name:"ellipsis-vertical"},null)}),o(i("el-popover"),{placement:"bottom-start","virtual-ref":this.groupButtonRef,trigger:"click",visible:this.popoverVisible,"onUpdate:visible":e=>this.popoverVisible=e,"popper-class":this.ns.e("popover"),"virtual-triggering":!0,transition:"none"},(n=e=a(this.groupDetails,!1),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?e:{default:()=>[e]}))];var n};if(this.c.state.buttonsState.visible)return"buttons"===this.mode?o("div",{class:[this.ns.b(),this.ns.m("buttons")],onClick:e=>e.stopPropagation()},[a(this.expandDetails),n()]):o(i("el-dropdown"),{ref:"dropdownRef",onCommand:e=>this.handleClick(e,new MouseEvent("click")),class:[this.ns.b(),this.ns.m("dropdown")]},{default:()=>o("span",{class:this.ns.e("caption")},[o("ion-icon",{class:this.ns.e("caption-icon"),name:"ibiz-arrow-down"},null)]),dropdown:()=>o(i("el-dropdown-menu"),null,{default:()=>[e.length>0&&e.map((e=>{var t;return(null==(t=this.c.state.buttonsState[e.id])?void 0:t.visible)?o(i("el-dropdown-item"),{class:[this.ns.e("item"),this.ns.is("disabled",!1)],title:ht(e.tooltip),disabled:this.c.state.buttonsState[e.id].disabled,command:e},{default:()=>[e.showIcon&&e.sysImage&&o(i("iBizIcon"),{icon:e.sysImage},null),e.showCaption?e.caption:""]}):null}))]})})}});var Lm=Object.defineProperty,Vm=(e,t,a)=>(((e,t,a)=>{t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Fm{constructor(){Vm(this,"component","IBizContextMenuControl")}}const Um=e("aw",U(Nm,(function(e){e.component(Nm.name,Nm),Xt($t.CONTEXT_MENU,(()=>new Fm))}))),qm=a({name:"IBizAuthUserinfo",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){var t;const a=A("user-info"),n=e.controller,{srfusername:o=ibiz.i18n.t("panelComponent.authUserinfo.visitor"),loginname:i}=(null==(t=ibiz.appData)?void 0:t.context)||{},s=zo(),r=T("ctx",void 0),c=l((()=>(null==r?void 0:r.view)&&r.view.model.mainMenuAlign||"LEFT")),d=l((()=>n.panel.view.state.isCollapse));return{ns:a,c:n,onClick:()=>{ibiz.hub.controller.logout()},srfusername:o,loginname:i,router:s,menuAlign:c,isCollapse:d}},render(){return o("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("left","LEFT"===this.menuAlign),this.ns.is("top","TOP"===this.menuAlign),this.ns.is("collapse",this.isCollapse)]},[o(i("el-dropdown"),null,{default:()=>o("div",{class:[this.ns.b("info"),this.ns.is("collapse",this.isCollapse)]},[o("div",{class:this.ns.b("label")},[o(i("el-avatar"),{class:this.ns.b("avatar"),src:"./assets/images/user-avatar.png"},null),!this.isCollapse&&o("div",{class:this.ns.b("name")},[o("div",{class:this.ns.be("name","user-name")},[this.srfusername]),"LEFT"===this.menuAlign&&this.loginname&&o("div",{class:this.ns.be("name","person-name")},[this.loginname])])]),o("ion-icon",{class:[this.ns.e("down"),this.ns.is("collapse",this.isCollapse)],name:"chevron-down-outline"},null)]),dropdown:()=>o(i("el-dropdown-menu"),null,{default:()=>[o(i("el-dropdown-item"),null,{default:()=>[o("ion-icon",{name:"log-out-outline",class:this.ns.e("icon")},null),o("span",{onClick:this.onClick},[ibiz.i18n.t("app.logout")])]})]})})])}});var Gm=Object.defineProperty,Hm=(e,t,a)=>(((e,t,a)=>{t in e?Gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Wm{constructor(){Hm(this,"component","IBizAuthUserinfo")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Km=e("ay",U(qm,(function(e){e.component(qm.name,qm),En("RAWITEM_AUTH_USERINFO",(()=>new Wm))})));var Ym=Object.defineProperty,Xm=(e,t,a)=>(((e,t,a)=>{t in e?Ym(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class $m extends Pn{constructor(){super(...arguments),Xm(this,"currentKey",""),Xm(this,"cacheKeys",["RouterShell"]),Xm(this,"navViewMsgs",{}),Xm(this,"operateSort",[])}}e("az",$m);var Jm=Object.defineProperty,Qm=(e,t,a)=>(((e,t,a)=>{t in e?Jm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Zm extends Dn{constructor(){super(...arguments),Qm(this,"viewModals",{}),Qm(this,"router"),Qm(this,"autoGoLast",!0),Qm(this,"noCache",!1),Qm(this,"rawItemParams",{})}createState(){var e;return new $m(null==(e=this.parent)?void 0:e.state)}setRouter(e){this.router=e}get routeDepth(){return this.panel.view.modal.routeDepth}get navTabs(){return this.panel.panelItems.nav_tabs}get appmenu(){return this.panel.getController("appmenu")}async onInit(){await super.onInit(),this.handleRawItemParams(),this.noCache="NO_CACHE"===this.rawItemParams.expcache}changeView(e){var t;const a=this.state.navViewMsgs[e];(null==a?void 0:a.fullPath)&&(null==(t=this.router)||t.push(a.fullPath))}onRouteChange({currentKey:e,fullPath:t}){if(this.state.currentKey!==e){if(this.state.cacheKeys.includes(e)&&this.router&&this.router.currentRoute.value.matched.length===this.routeDepth+1){const a=this.state.navViewMsgs[e].fullPath;if(a!==t)return void setTimeout((()=>{this.router.replace({path:a})}),0)}this.state.currentKey=e,this.navTabs&&(this.navTabs.state.currentKey=e)}if(""===e)return;const a=this.state.operateSort.indexOf(e);-1!==a&&this.state.operateSort.splice(a,1),this.state.operateSort.push(e),this.state.cacheKeys.includes(e)||(this.state.cacheKeys.push(e),this.routeDepth&&(this.viewModals[e]=new la({mode:ra.ROUTE,viewUsage:1,routeDepth:this.routeDepth+1,dismiss:t=>{this.dismiss(e,t)}}))),this.state.navViewMsgs[e]?this.state.navViewMsgs[e].fullPath=t:(ibiz.log.debug("维护导航视图信息",e,t),this.state.navViewMsgs[e]={key:e,fullPath:t},W.active(e))}onViewCreated(e){if(this.navTabs){const{view:t}=e,a=this.state.currentKey;this.navTabs.updateViewInfo(a,{caption:t.model.caption}),t.evt.on("onViewInfoChange",(({caption:e,dataInfo:t})=>{this.navTabs.updateViewInfo(a,{caption:e,dataInfo:t})}))}}removeCache(e){const t=this.state.cacheKeys.indexOf(e);if(-1!==t){this.state.cacheKeys.splice(t,1),delete this.viewModals[e],delete this.state.navViewMsgs[e];const a=this.state.operateSort.indexOf(e);-1!==a&&this.state.operateSort.splice(a,1)}}clearCache(){this.state.cacheKeys=[],this.viewModals={}}async closeViewByKeys(e){this.autoGoLast=!1;for(let t=0;t<e.length;t++){const a=e[t],n=this.viewModals[a];await n.dismiss()}this.goLast(),this.autoGoLast=!0}dismiss(e,t){W.close(e,t),this.navTabs&&this.navTabs.removeCache(e),this.removeCache(e),this.autoGoLast&&this.goLast()}goLast(){const e=this.state.operateSort.pop();if(e){if(this.state.currentKey===e)return void this.state.operateSort.push(e);const t=this.state.navViewMsgs[e].fullPath;this.router.push(t)}else{const e=this.router.currentRoute.value,{appContext:t}=e.params;let a="/".concat(t);for(let t=1;t<=this.routeDepth;t++)a+="/".concat(e.params["view".concat(t)],"/").concat(ibiz.env.routePlaceholder);this.router.push(a),ibiz.util.setBrowserTitle("")}}handleRawItemParams(){var e;let t={};const a=null==(e=this.model.rawItem)?void 0:e.rawItemParams;uo(a)&&(t=a.reduce(((e,t)=>(e[t.key.toLowerCase()]=t.value,e)),{})),Object.assign(this.rawItemParams,t)}}e("aA",Zm);const ev=a({name:"IBizNavPosIndex",props:{modelData:{type:Object,required:!0},controller:{type:Zm,required:!0}},setup(e){var t;const a=e.controller,n=A("nav-pos-index"),o=zo();if(a.setRouter(o),a.routeDepth&&(se((e=>{a.onRouteChange(e)}),a.routeDepth+1),"APPINDEXVIEW"===a.panel.view.model.viewType&&!a.navTabs)){const e=To();let n="";null==(t=a.appmenu)||t.evt.on("onClick",(()=>{n=e.fullPath})),o.beforeEach(((e,t,o)=>{t.fullPath===n&&a.clearCache(),o()}))}return{ns:n,onViewCreated:e=>{a.onViewCreated(e)},c:a}},render(){const{state:e,viewModals:t}=this.c,{currentKey:a,cacheKeys:n}=e;return o("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("no-nav",ibiz.config.view.disableHomeTabs)]},[this.c.routeDepth?o(i("iBizRouterView"),{manualKey:a,modal:t[a],onCreated:this.onViewCreated},{default:({Component:e})=>this.c.noCache?e?o(e,null,null):null:o(i("keepAlive"),{include:n,max:30,isKey:!0},{default:()=>[e&&o(e,null,null)]})}):o("div",null,[ibiz.i18n.t("panelComponent.navPosIndex.noSupportPrompt")])])}});var tv=Object.defineProperty,av=(e,t,a)=>(((e,t,a)=>{t in e?tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class nv{constructor(){av(this,"component","IBizNavPosIndex")}async createController(e,t,a){const n=new Zm(e,t,a);return await n.init(),n}}const ov=e("aB",U(ev,(function(e){e.component(ev.name,ev),En("RAWITEM_NAV_POS_INDEX",(()=>new nv))})));var iv=Object.defineProperty,sv=(e,t,a)=>(((e,t,a)=>{t in e?iv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class lv extends Pn{constructor(){super(...arguments),sv(this,"currentKey",""),sv(this,"tabItems",[]),sv(this,"activeTab","")}}class rv extends Dn{createState(){var e;return new lv(null==(e=this.parent)?void 0:e.state)}get routeDepth(){return this.panel.view.modal.routeDepth}get navPos(){return this.panel.panelItems.nav_pos_index}findTabItem(e){return this.state.tabItems.find((t=>t.key===e))}onTabClick(e){var t;null==(t=this.navPos)||t.changeView(e)}updateViewInfo(e,t){const a=this.findTabItem(e);a?(Object.assign(a,wo(vo,t)),this.refreshItemUI()):(this.state.tabItems.push({key:e,...t}),this.state.activeTab=this.state.currentKey)}removeCache(e){const t=this.state.tabItems.findIndex((t=>t.key===e));-1!==t&&this.state.tabItems.splice(t,1)}onTabRemove(e){var t;null==(t=this.navPos)||t.closeViewByKeys([e])}removeOther(){var e;const t=this.state.currentKey,a=[];this.state.tabItems.forEach((e=>{e.key!==t&&a.push(e.key)})),a.length>0&&(null==(e=this.navPos)||e.closeViewByKeys(a))}removeAll(){var e;const t=this.state.tabItems.map((e=>e.key));t.length>0&&(null==(e=this.navPos)||e.closeViewByKeys(t))}refreshItemUI(){const e={key:"exampleItem",caption:""};this.state.tabItems.push(e),this.state.activeTab=e.key,u((()=>{this.state.tabItems.pop(),this.state.activeTab=this.state.tabItems[this.state.tabItems.length-1].key}))}}function cv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const dv=a({name:"IBizNavTabs",props:{modelData:{type:Object,required:!0},controller:{type:rv,required:!0}},setup(e){const t=A("nav-tabs"),a=e.controller,{state:n}=e.controller,o=[{text:ibiz.i18n.t("panelComponent.navTabs.closeAll"),value:"closeAll"},{text:ibiz.i18n.t("panelComponent.navTabs.closeOther"),value:"closeOther"}];return c((()=>a.state.currentKey),((e,t)=>{if(e!==t){a.findTabItem(e)&&(n.activeTab=e)}})),{ns:t,actions:o,changePage:e=>{n.currentKey!==e.paneName&&a.onTabClick(e.paneName)},onTabRemove:e=>{a.onTabRemove(e)},handleCommand:e=>{"closeAll"===e.value?a.removeAll():"closeOther"===e.value&&a.removeOther()}}},render(){let e;const{state:t}=this.controller;return o("div",{class:[this.ns.b(),...this.controller.containerClass]},[o("div",{class:this.ns.e("left")},[o(i("el-tabs"),{type:"card",modelValue:t.activeTab,"onUpdate:modelValue":e=>t.activeTab=e,closable:!0,onTabClick:this.changePage,onTabRemove:this.onTabRemove},cv(e=t.tabItems.map((e=>{let t=e.caption;return e.dataInfo&&(t+=" - ".concat(e.dataInfo)),o(i("el-tab-pane"),{name:e.key,key:e.key,label:t},{label:()=>o("div",{class:this.ns.em("left","caption")},[t])})})))?e:{default:()=>[e]})]),o("div",{class:this.ns.e("right")},[o(i("el-dropdown"),{onCommand:this.handleCommand},{default:()=>o(i("el-button"),{size:"small",type:"primary"},{default:()=>[ibiz.i18n.t("app.more"),o("ion-icon",{name:"arrow-down"},null)]}),dropdown:()=>{let e;return o(i("el-dropdown-menu"),null,cv(e=this.actions.map((e=>o(i("el-dropdown-item"),{command:e},{default:()=>[e.text]}))))?e:{default:()=>[e]})}})])])}});var uv=Object.defineProperty,pv=(e,t,a)=>(((e,t,a)=>{t in e?uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class hv{constructor(){pv(this,"component","IBizNavTabs")}async createController(e,t,a){const n=new rv(e,t,a);return await n.init(),n}}const mv=U(dv,(function(e){e.component(dv.name,dv),En("RAWITEM_NAV_TABS",(()=>new hv))}));var vv=Object.defineProperty,bv=(e,t,a)=>(((e,t,a)=>{t in e?vv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class gv extends Pn{constructor(){super(...arguments),bv(this,"loading",!1),bv(this,"uiActionState")}}class wv extends Dn{createState(){var e;return new gv(null==(e=this.parent)?void 0:e.state)}get data(){return this.dataParent.data}constructor(e,t,a){super(e,t,a),this.state.uiActionState=this.createUIActionState()}async onInit(){await super.onInit(),this.updateButtonState()}createUIActionState(){const{uiactionId:e,name:t}=this.model;return new kn(t,this.panel.context.srfappid,e)}async dataChangeNotify(e){await this.updateButtonState(),super.dataChangeNotify(e)}async panelStateNotify(e){await this.updateButtonState(),super.panelStateNotify(e)}async updateButtonState(){await this.state.uiActionState.update(this.panel.context,this.data,this.panel.model.appDataEntityId)}async onActionClick(e){const{uiactionId:t,actionType:a}=this.model;"NONE"!==a&&(e.stopPropagation(),e.preventDefault(),await yn.execAndResolved(t,{context:this.panel.context,params:{panelDataParent:this.dataParent.model.id,...this.panel.params},data:[this.data],view:this.panel.view,event:e,noWaitRoute:!0},this.model.appId))}calcItemVisible(e){!1!==this.state.uiActionState.visible?super.calcItemVisible(e):this.state.visible=!1}calcItemDisabled(e){!0!==this.state.uiActionState.disabled?super.calcItemDisabled(e):this.state.disabled=!0}}e("aD",wv);const fv=a({name:"IBizPanelButton",props:{modelData:{type:Object,required:!0},controller:{type:wv,required:!0}},setup(e){const t=A("panel-button"),{caption:a,captionItemName:o,renderMode:i,showCaption:s,sysImage:r,codeName:c,itemStyle:d,tooltip:u,buttonCssStyle:p}=e.modelData,{panel:h,state:m}=e.controller,v=n("");p&&(v.value=p);const b=l((()=>o&&h.data?h.data[o.toLowerCase()]:a));let g=!1;Object.is(i,"LINK")&&(g=!0);return{ns:t,isText:g,captionText:b,buttonType:l((()=>{if(Object.is(i,"LINK"))return null;switch(d){case"PRIMARY":return"primary";case"SUCCESS":return"success";case"INFO":case"INVERSE":return"info";case"WARNING":return"warning";case"DANGER":return"danger";default:return null}})),showCaption:s,sysImage:r,codeName:c,state:m,tooltip:u,handleButtonClick:async t=>{try{m.loading=!0,await e.controller.onActionClick(t),e.controller.onClick()}finally{m.loading=!1}},buttonCssStyle:p,tempStyle:v,itemStyle:d}},render(){return this.state.visible?o("div",{class:[this.ns.b(),this.ns.m(this.codeName),this.ns.is("loading",this.state.loading),this.itemStyle&&this.ns.m(this.itemStyle.toLowerCase()),...this.controller.containerClass],style:this.tempStyle},[o(i("el-button"),{type:this.buttonType,text:this.isText,title:ht(this.tooltip),disabled:this.state.disabled,loading:this.state.loading,onClick:this.handleButtonClick},{default:()=>[o("div",{class:this.ns.b("content")},[o(i("iBizIcon"),{class:this.ns.bm("content","icon"),icon:this.sysImage},null),this.showCaption?o("span",{class:this.ns.bm("content","caption")},[this.captionText]):""])]})]):null}});var yv=Object.defineProperty,Cv=(e,t,a)=>(((e,t,a)=>{t in e?yv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Iv{constructor(){Cv(this,"component","IBizPanelButton")}async createController(e,t,a){const n=new wv(e,t,a);return await n.init(),n}}const Dv=e("aC",U(fv,(function(e){e.component(fv.name,fv),En("BUTTON",(()=>new Iv))})));var Ev=Object.defineProperty,Pv=(e,t,a)=>(((e,t,a)=>{t in e?Ev(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class kv extends Pn{constructor(){super(...arguments),Pv(this,"caption",""),Pv(this,"caption2",""),Pv(this,"subCaption",""),Pv(this,"subCaption2",""),Pv(this,"icon",""),Pv(this,"icon2",""),Pv(this,"isSvg",!1)}}var Sv=Object.defineProperty,xv=(e,t,a)=>(((e,t,a)=>{t in e?Sv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Tv extends Dn{constructor(){super(...arguments),xv(this,"captionSplit","|")}createState(){var e;return new kv(null==(e=this.parent)?void 0:e.state)}async onInit(){await super.onInit();const e=this.panel.view.model;e.title&&(document.title=e.title),this.model.sysImage&&this.model.sysImage.rawContent?this.state.icon=this.model.sysImage.rawContent:e.appIconPath&&(this.state.icon=e.appIconPath),e.appIconPath2&&(this.state.icon2=e.appIconPath2),e.caption&&(this.state.caption=e.caption.split(this.captionSplit)[0],this.state.caption2=e.caption.split(this.captionSplit)[1]||e.caption.split(this.captionSplit)[0]),e.subCaption&&(this.state.subCaption=e.subCaption.split(this.captionSplit)[0],this.state.subCaption2=e.subCaption.split(this.captionSplit)[1]||e.subCaption.split(this.captionSplit)[0]),(this.state.icon.endsWith(".svg")||this.state.icon2.endsWith(".svg"))&&(this.state.isSvg=!0)}}e("aF",Tv);const zv=a({name:"IBizPanelAppTitle",props:{modelData:{type:Object,required:!0},controller:{type:Tv,required:!0}},setup(e){const t=A("panel-app-title"),a=e.controller,n=To(),o=zo(),i=T("ctx",void 0),s=l((()=>(null==i?void 0:i.view)&&i.view.model.mainMenuAlign||"LEFT")),r=l((()=>"LEFT"===s.value)),c=l((()=>a.panel.view.state.isCollapse));return{ns:t,c:a,menuAlign:s,showImgOnly:r,handleClick:async()=>{if(null==i?void 0:i.view){const e=ie(n);e.pathNodes=e.pathNodes.slice(0,1);const t=ce(e);o.push({path:t}),setTimeout((()=>{window.location.reload()}))}e.controller.onClick()},isCollapse:c}},render(){const{icon:e,isSvg:t,caption:a,caption2:n,subCaption:i,subCaption2:s}=this.c.state;let l=null;const r=o("span",{class:this.ns.e("title")},[a]);if("LEFT"===this.menuAlign)if(this.isCollapse)if(e){let a=null;a=t?o("ion-icon",{class:this.ns.e("logo"),icon:e},null):o("span",{class:this.ns.e("logo")},[o("img",{src:e},null)]),l=o("div",{class:this.ns.e("collpase-icon")},[a])}else l=o("div",{class:this.ns.e("collapse-title")},[o("div",{class:this.ns.e("caption2")},[n]),o("div",{class:this.ns.e("subCaption2")},[s])]);else l=o("span",{class:this.ns.e("logo")},[o("svg",{width:"256px",height:"90px",viewBox:"0 0 256 90",version:"1.1"},[o("g",{id:"画板",stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[o("text",{id:"Omni-OA","font-family":"Poppins-Bold, Poppins","font-size":"22","font-weight":"bold"},[o("tspan",{x:"20.961",y:"39"},[a])]),o("text",{id:"一体化办公平台","font-family":"PingFangSC-Semibold, PingFang SC","font-size":"18","font-weight":"bold"},[o("tspan",{x:"96",y:"73"},[i])])])])]);else"TOP"===this.menuAlign&&e&&(l=t?o("ion-icon",{class:this.ns.e("logo"),icon:e},null):o("span",{class:this.ns.e("logo")},[o("img",{src:e},null)]));let c=null;return c="LEFT"===this.menuAlign?l:[l,r],o("div",{class:[this.ns.b(),this.ns.is("only-img",this.showImgOnly),this.ns.is("collapse",this.isCollapse),...this.controller.containerClass],onClick:this.handleClick},[c])}});var Ov=Object.defineProperty,_v=(e,t,a)=>(((e,t,a)=>{t in e?Ov(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Av{constructor(){_v(this,"component","IBizPanelAppTitle")}async createController(e,t,a){const n=new Tv(e,t,a);return await n.init(),n}}const Bv=e("aE",U(zv,(function(e){e.component(zv.name,zv),En("RAWITEM_APP_APPTITLE",(()=>new Av))})));function jv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Mv=a({name:"IBizPanelAppHeader",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("panel-app-header"),{showCaption:a,titleBarCloseMode:o,id:i}=e.modelData,s=0!==o,r=n(2===o),c=l((()=>"TOP"===e.controller.panel.view.model.mainMenuAlign?"horizontal":"vertical")),d=l((()=>{let n=[t.b(),t.m(c.value),t.m(i)];return!0===a&&(n=[...n,...e.controller.containerClass,a&&t.m("show-header"),s&&t.m("collapsible"),t.is("collapse",s&&r.value),t.is("hidden",!e.controller.state.visible)]),n}));return{ns:t,isCollapse:r,classArr:d,changeCollapse:()=>{s&&(r.value=!r.value)}}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=o(i("iBizRow"),{slot:"content",layout:this.modelData.layout},jv(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},jv(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]});return o("div",{class:this.classArr},[s])}});var Rv=Object.defineProperty,Nv=(e,t,a)=>(((e,t,a)=>{t in e?Rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Lv{constructor(){Nv(this,"component","IBizPanelAppHeader")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Vv=U(Mv,(function(e){e.component(Mv.name,Mv),En("CONTAINER_AppHeader",(()=>new Lv))}));function Fv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Uv=a({name:"IBizPanelViewHeader",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("panel-view-header"),{showCaption:a,titleBarCloseMode:o,id:i}=e.modelData,s=0!==o,r=n(2===o),c=l((()=>{let n=[t.b(),t.m(i)];return!0===a&&(n=[...n,...e.controller.containerClass,a&&t.m("show-header"),s&&t.m("collapsible"),t.is("collapse",s&&r.value),t.is("hidden",!e.controller.state.visible)]),n}));return{ns:t,isCollapse:r,classArr:c,changeCollapse:()=>{s&&(r.value=!r.value)}}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=o(i("iBizRow"),{slot:"content",layout:this.modelData.layout},Fv(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Fv(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]});return o("div",{class:this.classArr},[s])}});var qv=Object.defineProperty,Gv=(e,t,a)=>(((e,t,a)=>{t in e?qv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Hv{constructor(){Gv(this,"component","IBizPanelViewHeader")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Wv=U(Uv,(function(e){e.component(Uv.name,Uv),En("CONTAINER_ViewHeader",(()=>new Hv))}));function Kv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Yv=a({name:"IBizPanelExpHeader",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("panel-exp-header"),{showCaption:a,titleBarCloseMode:o,id:i}=e.modelData,s=0!==o,r=n(2===o),c=l((()=>{let n=[t.b(),t.m(i)];return!0===a&&(n=[...n,...e.controller.containerClass,a&&t.m("show-header"),s&&t.m("collapsible"),t.is("collapse",s&&r.value),t.is("hidden",!e.controller.state.visible)]),n}));return{ns:t,isCollapse:r,classArr:c,changeCollapse:()=>{s&&(r.value=!r.value)}}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=o(i("iBizRow"),{slot:"content",layout:this.modelData.layout},Kv(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Kv(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]});return o("div",{class:this.classArr},[s])}});var Xv=Object.defineProperty,$v=(e,t,a)=>(((e,t,a)=>{t in e?Xv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Jv{constructor(){$v(this,"component","IBizPanelExpHeader")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Qv=U(Yv,(function(e){e.component(Yv.name,Yv),En("CONTAINER_Exp_Header",(()=>new Jv))}));function Zv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const eb=a({name:"IBizPanelViewContent",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("panel-view-content"),{showCaption:a,titleBarCloseMode:o,id:i}=e.modelData,s=0!==o,r=n(2===o),c=l((()=>{let n=[t.b(),t.m(i)];return!0===a&&(n=[...n,...e.controller.containerClass,t.is("collapse",s&&r.value),t.is("hidden",!e.controller.state.visible)]),n}));return{ns:t,isCollapse:r,classArr:c,changeCollapse:()=>{s&&(r.value=!r.value)}}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=o(i("iBizRow"),{layout:this.modelData.layout},Zv(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Zv(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]});return o("div",{class:this.classArr},[s])}});var tb=Object.defineProperty,ab=(e,t,a)=>(((e,t,a)=>{t in e?tb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class nb{constructor(){ab(this,"component","IBizPanelViewContent")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const ob=U(eb,(function(e){e.component(eb.name,eb),En("CONTAINER_VIEWCONTENT",(()=>new nb))}));var ib=Object.defineProperty,sb=(e,t,a)=>(((e,t,a)=>{t in e?ib(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class lb extends Pn{constructor(){super(...arguments),sb(this,"activeTab","")}}class rb extends Dn{createState(){var e;return new lb(null==(e=this.parent)?void 0:e.state)}async onInit(){var e;await super.onInit(),this.state.activeTab=(null==(e=this.model.panelTabPages)?void 0:e[0].id)||""}onTabChange(e){this.state.activeTab=e}}function cb(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const db=a({name:"IBizPanelTabPanel",props:{modelData:{type:Object,required:!0},controller:{type:rb,required:!0}},setup(e){const t=A("panel-tab-panel"),{state:a}=e.controller,n=l((()=>{const{id:a}=e.modelData,n=[t.b(),t.m(a)];return n.push(...e.controller.containerClass),n}));return{ns:t,state:a,classArr:n,onTabClick:(t,a)=>{e.controller.onTabChange(t.props.name)}}},render(){var e,t;let a;if(!this.controller.state.visible)return;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return o(i("el-tabs"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],"model-value":this.state.activeTab,onTabClick:this.onTabClick},cb(a=n.map((e=>{const t=e.props;if(!t||!t.controller)return e;const a=t.controller;return a.state.visible||a.state.keepAlive?o(i("el-tab-pane"),{class:this.ns.b("tab-item"),label:a.model.caption,name:a.model.id,lazy:!0},cb(e)?e:{default:()=>[e]}):null})))?a:{default:()=>[a]})}});var ub=Object.defineProperty,pb=(e,t,a)=>(((e,t,a)=>{t in e?ub(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class hb{constructor(){pb(this,"component","IBizPanelTabPanel")}async createController(e,t,a){const n=new rb(e,t,a);return await n.init(),n}}const mb=e("aG",U(db,(function(e){e.component(db.name,db),En("TABPANEL",(()=>new hb))})));var vb=Object.defineProperty,bb=(e,t,a)=>(((e,t,a)=>{t in e?vb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class gb extends Dn{constructor(){super(...arguments),bb(this,"splitMode","horizontal"),bb(this,"splitValue",.5),bb(this,"lastSplitValue",null)}initSplitValue(e,t){"PX"===t&&(this.splitValue="".concat(e,"px")),"PERCENTAGE"===t&&(this.splitValue=e/100),this.state.splitValue=this.splitValue}async onInit(){await super.onInit();const{predefinedType:e,panelItems:t}=this.model;if(this.splitMode="CONTAINER_V_SPLIT"===e?"vertical":"horizontal",Array.isArray(t)&&t.length){const e=t[0].layoutPos;if(e){if("horizontal"===this.splitMode){const{width:t,widthMode:a}=e;null!=t&&null!=a&&this.initSplitValue(t,a)}if("vertical"===this.splitMode){const{height:t,heightMode:a}=e;null!=t&&null!=a&&this.initSplitValue(t,a)}}}}hiddenPanel(e){this.lastSplitValue=this.state.splitValue,"left"!==e&&"top"!==e||(this.state.splitValue=0),"right"!==e&&"bottom"!==e||(this.state.splitValue=1),this.state.isHiddenTrigger=!0}showPanel(){null!=this.lastSplitValue&&(this.state.splitValue=this.lastSplitValue,this.state.isHiddenTrigger=!1,this.lastSplitValue=null)}}e("aH",gb);const wb=a({name:"IBizSplitContainer",props:{modelData:{type:Object,required:!0},controller:{type:gb,required:!0}},setup(e){const t=A("split-container"),{id:a}=e.modelData,n=l((()=>{let n=[t.b(),t.m(a)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible),t.is("hidden-trigger",e.controller.state.isHiddenTrigger)],n}));return{ns:t,classArr:n}},render(){var e,t;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return o("div",{class:this.classArr},[o(i("iBizSplit"),{modelValue:this.controller.state.splitValue,"onUpdate:modelValue":e=>this.controller.state.splitValue=e,mode:this.controller.splitMode},{left:()=>a[0],right:()=>a[1],top:()=>a[0],bottom:()=>a[1]})])}});var fb=Object.defineProperty,yb=(e,t,a)=>(((e,t,a)=>{t in e?fb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Cb{constructor(){yb(this,"component","IBizSplitContainer")}async createController(e,t,a){const n=new gb(e,t,a);return await n.init(),n}}const Ib=e("aI",U(wb,(function(e){e.component(wb.name,wb),En("CONTAINER_CONTAINER_H_SPLIT",(()=>new Cb)),En("CONTAINER_CONTAINER_V_SPLIT",(()=>new Cb))}))),Db=a({name:"IBizPanelIndexViewSearch",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("panel-index-view-search"),a=e.controller,o=n(""),i=Lo((()=>{}),500),s=T("ctx",void 0),r=l((()=>(null==s?void 0:s.view)&&s.view.model.mainMenuAlign||"LEFT")),c=l((()=>a.panel.view.state.isCollapse)),d=l((()=>{const{id:a}=e.modelData,n=[t.b(),t.m(a),t.is("collapse",c.value)];return n.push(...e.controller.containerClass),n})),u=async()=>{const t=e.modelData.id,n=a.panel.view.getController("appmenu");if(n){const e=n.allAppMenuItems.find((e=>e.id===t));if(e){const t=a.panel.context.clone(),n=a.panel.params;t.srfappid=e.appId||ibiz.env.appId,await ibiz.commands.execute(Sn.TAG,e.appFuncId,t,{...n,srfquery:o.value},{})}}};return{ns:t,classArr:d,isCollapse:c,onInput:e=>{o.value=e,i()},onSearch:u,c:a,query:o,menuAlign:r,onEnter:e=>{"Enter"===e.key&&u()}}},render(){if(this.controller.state.visible)return o("div",{class:this.classArr},["LEFT"===this.menuAlign&&!this.isCollapse&&o(i("el-input"),{"model-value":this.query,class:this.ns.b("search"),placeholder:ibiz.i18n.t("component.indexSearch.placeholder"),onInput:this.onInput,onKeyup:this.onEnter},{prefix:()=>o("ion-icon",{class:this.ns.e("search-icon"),name:"search"},null)})])}});var Eb=Object.defineProperty,Pb=(e,t,a)=>(((e,t,a)=>{t in e?Eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class kb{constructor(){Pb(this,"component","IBizPanelIndexViewSearch")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Sb=e("aJ",U(Db,(function(e){e.component(Db.name,Db),En("RAWITEM_INDEX_VIEW_SEARCH",(()=>new kb))})));class xb extends Pn{}class Tb extends Dn{createState(){var e;return new xb(null==(e=this.parent)?void 0:e.state)}}function zb(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Ob=a({name:"IBizPanelAppLoginView",props:{modelData:{type:Object,required:!0},controller:{type:Tb,required:!0}},setup(e){const t=A("panel-app-login-view"),{id:a}=e.modelData,n=l((()=>{let n=[t.b(),t.m(a)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible)],n})),o=l((()=>{let e={};const a=window.location.pathname;if(a){const t=a.lastIndexOf("/");if(-1!==t){const n=a.substring(0,t+1);e={"header-url":"url('".concat(n,"assets/images/login-header.png')"),"avatar-url":"url('".concat(n,"assets/images/login-avatar.png')")}}}return t.cssVarBlock(e)}));return{ns:t,classArr:n,cssVars:o}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=o(i("iBizRow"),{slot:"content",layout:this.modelData.layout},zb(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},zb(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]});return o("div",{class:this.classArr,style:this.cssVars,onClick:()=>{this.controller.onClick()}},[this.controller.model.cssStyle?o("style",{type:"text/css"},[this.controller.model.cssStyle]):null,s])}});var _b=Object.defineProperty,Ab=(e,t,a)=>(((e,t,a)=>{t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Bb{constructor(){Ab(this,"component","IBizPanelAppLoginView")}async createController(e,t,a){const n=new Tb(e,t,a);return await n.init(),n}}const jb=U(Ob,(function(e){e.component(Ob.name,Ob),En("CONTAINER_APPLOGINVIEW",(()=>new Bb))}));class Mb extends Pn{}class Rb extends Dn{createState(){var e;return new Mb(null==(e=this.parent)?void 0:e.state)}}const Nb=a({name:"IBizPanelRememberMe",props:{modelData:{type:Object,required:!0},controller:{type:Rb,required:!0}},setup(e){const t=A("panel-remember-me"),{id:a}=e.modelData,n=e.controller,o=l((()=>{let n=[t.b(),t.m(a)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible)],n})),i=l({get:()=>n.panel.state.data.isRemember,set:e=>{n.panel.state.data.isRemember=e}});return{ns:t,classArr:o,c:n,isRemember:i}},render(){return o("div",{class:this.classArr},[o(i("el-checkbox"),{modelValue:this.isRemember,"onUpdate:modelValue":e=>this.isRemember=e,label:ibiz.i18n.t("app.rememberMe")},null)])}});var Lb=Object.defineProperty,Vb=(e,t,a)=>(((e,t,a)=>{t in e?Lb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Fb{constructor(){Vb(this,"component","IBizPanelRememberMe")}async createController(e,t,a){const n=new Rb(e,t,a);return await n.init(),n}}const Ub=U(Nb,(function(e){e.component(Nb.name,Nb),En("CONTAINER_REMEMBER_ME",(()=>new Fb)),En("FIELD_AUTH_REMEMBERME",(()=>new Fb))}));function qb(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Gb=a({name:"IBizIndexActions",props:{modelData:{type:Object,required:!0},controller:{type:de,required:!0}},setup(e){const t=A("index-actions"),{id:a}=e.modelData,n=l((()=>e.controller.panel.view.state.isCollapse)),o=l((()=>{let o=[t.b(),t.m(a)];return o=[...o,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible),t.is("collapse",n.value)],o}));return{ns:t,classArr:o,isCollapse:n}},render(){var e,t;let a;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],s=o(i("iBizRow"),{slot:"content",layout:this.modelData.layout},qb(a=n.map((e=>{const t=e.props;return t&&t.controller?o(i("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},qb(e)?e:{default:()=>[e]}):e})))?a:{default:()=>[a]});return o("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[this.controller.model.cssStyle?o("style",{type:"text/css"},[this.controller.model.cssStyle]):null,s])}});var Hb=Object.defineProperty,Wb=(e,t,a)=>(((e,t,a)=>{t in e?Hb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Kb{constructor(){Wb(this,"component","IBizIndexActions")}async createController(e,t,a){const n=new de(e,t,a);return await n.init(),n}}const Yb=e("aK",U(Gb,(function(e){e.component(Gb.name,Gb),En("CONTAINER_INDEX_ACTIONS",(()=>new Kb))}))),Xb={10:"未开始",20:"执行中",30:"已执行",40:"执行失败"},$b={10:"info",20:"",30:"success",40:"danger"},Jb=a({name:"IBizAsyncAction",props:{action:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup(e,{emit:t}){const a=A("async-action"),n=l((()=>Uo(e.action.actionresult))),o=l((()=>!e.action.actiontype||n.value));return{ns:a,showErrorInfo:l((()=>e.action.actiontype&&Ro(e.action.actionresult))),clickable:o,actionstate:l((()=>{if(n.value){const t=e.action.actionresult;return t.total-t.success>0?40:30}return e.action.actionstate})),progressText:l((()=>e.action.completionrate?"(".concat(e.action.completionrate,"%)"):"")),onClick:async a=>{if(e.provider.onClick){await e.provider.onClick(e.action,a)&&t("close")}}}},render(){const{asyncacitonname:e,begintime:t,stepinfo:a="进行中"}=this.action;return o("div",{class:[this.ns.b(),this.clickable?this.ns.m("clickable"):""],onClick:this.onClick},[o("div",{class:this.ns.b("left")},[o("ion-icon",{name:"list-outline"},null)]),o("div",{class:this.ns.b("center")},[o("div",{class:this.ns.e("caption")},[e]),this.showErrorInfo&&o("div",{title:ht(this.action.actionresult),class:this.ns.e("error-info")},[this.action.actionresult]),20===this.actionstate?o("div",{class:this.ns.e("progress")},[a,this.progressText]):o("div",{class:this.ns.e("begin-time")},[t])]),o("div",{class:this.ns.b("right")},[o(i("el-tag"),{type:$b[this.actionstate]},{default:()=>[Xb[this.actionstate]]})]),20===this.actionstate&&!!this.action.completionrate&&o("div",{class:this.ns.b("loading-warp")},[o("div",{class:this.ns.be("loading-warp","inner"),style:"width:".concat(this.action.completionrate,"%;")},null)])])}}),Qb=a({name:"IBizAsyncActionTab",props:{controller:{type:Object,required:!0},showPopover:{type:Boolean,required:!0}},emits:{hiddenPopover:()=>!0},setup(e,{emit:t}){const a=A("async-action-tab"),o=e.controller,i=n([]),s=()=>{i.value=Et(o.actions)};s(),o.evt.on("dataChange",s);return{ns:a,allItems:i,hiddenPopover:()=>{t("hiddenPopover")}}},render(){return o("div",{class:[this.ns.b()]},[this.allItems.length>0&&this.allItems.map((e=>{let t;try{t=ca(e)}catch(e){ibiz.log.error(e)}return t?t.render({class:this.ns.e("item"),action:e,onClose:this.hiddenPopover}):o("div",{class:this.ns.e("item")},[ibiz.i18n.t("panelComponent.userMessage.asyncActionTab.noSupportType",{type:e.actiontype})])})),0===this.allItems.length&&o("div",{class:this.ns.e("nodata")},[ibiz.i18n.t("panelComponent.userMessage.asyncActionTab.noAsyncAction")])])}});function Zb(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const eg=a({name:"IBizAsyncActionPreview",props:{asyncAction:{type:Object,required:!0},modal:{type:Object,required:!0}},setup(e){const t=A("async-action-preview"),a=w({title:"",beginTime:"",endTime:"",total:0,success:0,error:0,errorDetails:[{row:0,reason:""}],errorFileUrl:""});if(a.title=ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importDetailPrompt",{name:e.asyncAction.asyncacitonname}),a.beginTime=e.asyncAction.begintime,a.endTime=e.asyncAction.endtime,e.asyncAction.actionresult){let t=e.asyncAction.actionresult;if("string"==typeof t)try{t=JSON.parse(t)}catch(e){throw new vt(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.parseImportInfoErr"))}a.total=t.total||0,a.success=t.success||0,a.error=a.total-a.success,t.errorinfo?a.errorDetails=Object.keys(t.errorinfo).map((e=>({row:Number(e),reason:t.errorinfo[e].errorInfo}))):a.errorDetails=[],t.errorfile&&(a.errorFileUrl="".concat(ibiz.env.baseUrl,"/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl,"/").concat(t.errorfile.folder,"/").concat(t.errorfile.fileid).replace("/{cat}",""))}return{ns:t,info:a,onClose:()=>{e.modal.dismiss()},onDownLoad:()=>{var e;e={url:a.errorFileUrl,name:a.title},ibiz.net.request(e.url,{method:"get",responseType:"blob",baseURL:""}).then((t=>{let a=Io.parse(t.headers["content-disposition"],{delimiter:";"}).filename;if(a&&(a.startsWith('"')&&a.endsWith('"')&&(a=a.substring(1,a.length-1)),e.name+=".".concat(a.split(".")[1])),200!==t.status)throw new vt(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.downloadFailedErr"));if(!t.data)throw new vt(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.noExistentErr"));{const a=e.name;Pt(t.data,a)}}))}}},render(){let e,t;return o("div",{class:[this.ns.b()]},[o("div",{class:this.ns.b("header")},[o("div",{class:this.ns.e("title")},[this.info.title]),o("div",{class:this.ns.b("toolbar")},[this.info.errorFileUrl&&o(i("el-button"),{onClick:this.onDownLoad},Zb(e=ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.downloadErrFile"))?e:{default:()=>[e]}),o(i("el-button"),{onClick:this.onClose},Zb(t=ibiz.i18n.t("app.close"))?t:{default:()=>[t]})])]),o("div",{class:this.ns.b("time")},[o(i("el-form-item"),{label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importTime")},{default:()=>[this.info.beginTime,b(" ~ "),this.info.endTime]})]),o(i("el-row"),{class:this.ns.b("count")},{default:()=>[o(i("el-col"),{span:8},{default:()=>[o(i("el-form-item"),{label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importTotal")},{default:()=>[this.info.total]})]}),o(i("el-col"),{span:8},{default:()=>[o(i("el-form-item"),{label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.successImport")},{default:()=>[this.info.success]})]}),o(i("el-col"),{span:8},{default:()=>[o(i("el-form-item"),{label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.ImportFailed")},{default:()=>[this.info.error]})]})]}),this.info.errorDetails.length>0&&o("div",{class:this.ns.b("detail")},[this.info.errorDetails.map((e=>o("div",{class:this.ns.b("detail-item")},[o("div",{class:this.ns.be("detail-item","index")},[e.row]),o("div",{class:this.ns.be("detail-item","error")},[o("div",{class:this.ns.be("detail-item","error-title")},[ibiz.i18n.t("app.error")]),o("div",{class:this.ns.be("detail-item","error-reason")},[e.reason])])])))])])}}),tg=a({name:"IBizAsyncActionResult",props:{asyncAction:{type:Object,required:!0},modal:{type:Object,required:!0}},setup:e=>({ns:A("async-action-preview"),message:l((()=>Uo(e.asyncAction.actionresult)?JSON.stringify(e.asyncAction.actionresult):"".concat(e.asyncAction.actionresult)))}),render(){return o("div",{class:[this.ns.b()]},[this.message])}});var ag=Object.defineProperty,ng=(e,t,a)=>(((e,t,a)=>{t in e?ag(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class og{constructor(){ng(this,"component",Jb)}render(e){return r(this.component,{provider:this,...e})}async onClick(e,t){return No(e.actiontype)?(ibiz.overlay.modal((t=>r(tg,{asyncAction:e,modal:t})),{},{width:"80%",height:"80%"}),!0):!!Uo(e.actionresult)&&(ibiz.overlay.modal((t=>r(eg,{asyncAction:e,modal:t})),{},{width:"80%",height:"80%"}),!0)}}const ig={READ:"已阅读",SENT:"已发送",RECEIVED:"已接收",REPLIED:"已回复",SEND_FAILED:"发送失败",NOT_SENT:"未发送",DELETED:"已删除"},sg={READ:"",SENT:"success",RECEIVED:"success",REPLIED:"warning",SEND_FAILED:"danger",NOT_SENT:"info",DELETED:"info"},lg=a({name:"IBizInternalMessageDefault",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup:()=>({ns:A("internal-message")}),render(){const{title:e,create_time:t,content:a,status:n}=this.message,s=o("div",{class:this.ns.e("short-content")},[a]);return o(i("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,onClose:()=>this.$emit("close")},{default:()=>[o("div",{class:this.ns.b("left")},[o("ion-icon",{name:"list-outline"},null)]),o("div",{class:this.ns.b("center")},[o("div",{class:this.ns.e("caption")},[o(i("el-tag"),{class:this.ns.e("status"),type:sg[n]},{default:()=>[ig[n]]}),e]),s,o("div",{class:this.ns.e("create-time")},[t])])]})}});var rg=Object.defineProperty,cg=(e,t,a)=>(((e,t,a)=>{t in e?rg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class dg{constructor(){cg(this,"component",lg),cg(this,"router",zo())}render(e){return r(this.component,{provider:this,...e})}async onClick(e,t){await ibiz.hub.notice.internalMessage.markRead(e);const a=ibiz.env.isMob?e.mobile_url:e.url;return this.openViewByUrl(a)}async openRedirectView(e,t){await ibiz.hub.notice.internalMessage.markRead(e),this.openViewByUrl(t)}openViewByUrl(e){if(e){if(e.startsWith("view://")){const{viewId:t,context:a,params:n}=xn(e);ibiz.commands.execute(Tn.TAG,t,kt.create(a),n)}else if(e.startsWith("route://")){const t="/".concat(e.split("route://")[1]);this.router.push(t)}return!0}return!1}}const ug=a({name:"IBizInternalMessageJSON",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup(e,{emit:t}){const a=A("internal-message-json"),n=l((()=>e.message.content&&"JSON"===e.message.content_type?JSON.parse(e.message.content):null)),o=l((()=>{var t;return(ibiz.env.isMob?e.message.mobile_url:e.message.url)||(null==(t=n.value)?void 0:t.redirecturl)})),i=l((()=>{if(o.value)return[{icon:"link-outline",key:"openRedirectView",tooltip:ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.jumpToView")}]}));return{ns:a,jsonContent:n,toolbarItems:i,redirectUrl:o,onToolbarClick:a=>{"openRedirectView"===a&&(e.provider.openRedirectView(e.message,o.value),t("close"))}}},render(){var e;let t=null;return t=(null==(e=this.jsonContent)?void 0:e.html)?o("div",{class:this.ns.e("content"),innerHTML:this.jsonContent.html},null):o("div",{class:this.ns.e("content")},[ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.missingHtml")]),o(i("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,clickable:!!this.redirectUrl,toolbarItems:this.toolbarItems,onToolbarClick:this.onToolbarClick,onClose:()=>this.$emit("close")},"function"==typeof(a=t)||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?t:{default:()=>[t]});var a}}),pg=a({name:"IBizInternalMessageContainer",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0},clickable:{type:Boolean,default:void 0},toolbarItems:{type:Array,default:()=>[]}},emits:{toolbarClick:e=>!0,close:()=>!0},setup(e,{emit:t}){const a=A("internal-message-container"),n=l((()=>"RECEIVED"===e.message.status)),o=l((()=>{const t=[...e.toolbarItems];return n.value&&t.push({key:"read",icon:"checkmark-done-outline",tooltip:ibiz.i18n.t("panelComponent.userMessage.internalMessageContainer.markAsRead")}),t})),i=l((()=>void 0===e.clickable?ibiz.env.isMob?!!e.message.mobile_url:!!e.message.url:e.clickable));return{ns:a,isUnread:n,isClickable:i,finalToolbarItems:o,onToolbarClick:(a,n)=>{a.stopPropagation(),"read"===n?ibiz.hub.notice.internalMessage.markRead(e.message):t("toolbarClick",n)},onClick:async a=>{if(i.value&&e.provider.onClick){await e.provider.onClick(e.message,a)&&t("close")}}}},render(){var e,t;return o("div",{class:[this.ns.b(),this.isClickable?this.ns.m("clickable"):"",this.isUnread?this.ns.m("unread"):""],onClick:this.onClick},[null==(t=(e=this.$slots).default)?void 0:t.call(e),o("div",{class:this.ns.b("toolbar")},[this.finalToolbarItems.map((e=>o(i("iBizIcon"),{class:this.ns.be("toolbar","button"),icon:{imagePath:"svg/read.svg"},baseDir:"iconfont",title:ht(e.tooltip),onClick:t=>this.onToolbarClick(t,e.key)},null)))]),o("div",{class:this.ns.e("unread-tag")},null),this.isClickable&&o("ion-icon",{class:this.ns.e("click-tag"),name:"chevron-forward-outline"},null)])}});var hg=Object.defineProperty,mg=(e,t,a)=>(((e,t,a)=>{t in e?hg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class vg extends dg{constructor(){super(...arguments),mg(this,"component",ug)}async onClick(e,t){if(!await super.onClick(e,t)&&"JSON"===e.content_type&&e.content){const t=JSON.parse(e.content);if(t.redirecturl)return this.openRedirectView(e,t.redirecturl),!0}return!0}}const bg=a({name:"IBizInternalMessageHTML",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup:e=>({ns:A("internal-message-html"),msgContent:l((()=>Ll(e.message.content)))}),render(){return o(i("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,onClose:()=>this.$emit("close")},{default:()=>[o("div",{class:this.ns.e("content"),innerHTML:this.msgContent},null)]})}});var gg=Object.defineProperty,wg=(e,t,a)=>(((e,t,a)=>{t in e?gg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class fg extends dg{constructor(){super(...arguments),wg(this,"component",bg)}async onClick(e,t){if(!await super.onClick(e,t)&&"JSON"===e.content_type&&e.content){const t=JSON.parse(e.content);if(t.redirecturl)return this.openRedirectView(e,t.redirecturl),!0}return!0}}const yg=a({name:"IBizInternalMessageText",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup:()=>({ns:A("internal-message-text")}),render(){const{title:e,create_time:t,content:a}=this.message;return o(i("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,onClose:()=>this.$emit("close")},{default:()=>[o("div",{class:this.ns.e("caption")},[e]),!!a&&o("div",{class:this.ns.e("content")},[a]),o("div",{class:this.ns.e("create-time")},[t])]})}});var Cg=Object.defineProperty,Ig=(e,t,a)=>(((e,t,a)=>{t in e?Cg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Dg extends dg{constructor(){super(...arguments),Ig(this,"component",yg)}}const Eg=a({name:"IBizInternalMessageTab",props:{controller:{type:Object,required:!0},showPopover:{type:Boolean,required:!0}},emits:{hiddenPopover:()=>!0},setup(e,{emit:t}){var a;const o=A("internal-message-tab"),i=e.controller,s="".concat(null==(a=ibiz.appData)?void 0:a.context.srfsystemid,"-unreadOnly"),l=n(!1);ibiz.mc.command.internalMessage.on((async e=>{ibiz.log.debug("mqtt internalMessage: ",e),"INTERNALMESSAGE"===e.subtype&&(l.value=!0)})),c((()=>e.showPopover),(e=>{e&&l.value&&(i.load(),i.refreshUnreadCount(),l.value=!1)}));const r=n([]),u=w({total:0,pageSize:0,unreadOnly:i.unreadOnly}),p=()=>{r.value=mo(i.messages),u.total=i.total,u.pageSize=i.size};p();const h=e=>{u.unreadOnly=e};i.evt.on("dataChange",p),i.evt.on("unreadOnlyChange",h),C((()=>{i.evt.off("dataChange",p),i.evt.off("unreadOnlyChange",h)}));return d((()=>{(()=>{const e=localStorage.getItem(s);e&&("true"===e?(u.unreadOnly=!0,i.unreadOnly=!0):(u.unreadOnly=!1,i.unreadOnly=!1))})(),i.load()})),{ns:o,allItems:r,state:u,hiddenPopover:()=>{t("hiddenPopover")},showMore:()=>{i.loadMore()},switchChange:()=>{i.toggleUnReadOnly(),localStorage.setItem(s,i.unreadOnly.toString())}}},render(){const e=this.state.total-this.allItems.length;return o("div",{class:[this.ns.b()]},[o("div",{class:this.ns.b("content")},[this.allItems.length>0&&this.allItems.map((e=>{let t;try{t=zn(e)}catch(e){ibiz.log.error(e)}return t?t.render({class:[this.ns.e("item")],message:e,onClose:this.hiddenPopover}):o("div",{class:this.ns.e("item")},[ibiz.i18n.t("panelComponent.userMessage.internalMessageTab.noSupportType",{type:e.content_type})])})),0===this.allItems.length&&o("div",{class:this.ns.e("nodata")},[ibiz.i18n.t("panelComponent.userMessage.internalMessageTab.notificationYet")]),e>0&&o("div",{class:this.ns.e("load-more"),onClick:this.showMore},[ibiz.i18n.t("panelComponent.userMessage.internalMessageTab.loadMore",{length:e})])]),o("div",{class:this.ns.b("footer")},[o(i("el-switch"),{value:this.state.unreadOnly,onChange:this.switchChange,class:this.ns.be("footer","switch")},null)," ",ibiz.i18n.t("panelComponent.userMessage.internalMessageTab.onlyShowUnread")])])}});const Pg=a({name:"IBizUserMessage",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(e){const t=A("user-message"),a=e.controller,o=ibiz.hub.notice,i=n(!1);let s=0;o.internalMessage.ns=t,o.internalMessage.provider=new dg;const l=n("notification"),r=e.modelData.sysImage||{imagePath:"svg/message.svg"},c=n(),u=n(o.total),p=e=>{u.value=e};o.evt.on("totalChange",p);const h=()=>{if("hidden"===document.visibilityState)s=(new Date).getTime();else{((new Date).getTime()-s)/1e3>300&&(async()=>{const e=await ibiz.net.get("/appdata");e.ok&&(ibiz.appData=e.data)})()}};return d((()=>{document.addEventListener("visibilitychange",h)})),C((()=>{o.evt.off("totalChange",p),document.removeEventListener("visibilitychange",h)})),{ns:t,c:a,noticeController:o,noticeNum:u,popoverRef:c,showPopover:i,sysImage:r,currentTab:l,hiddenPopover:()=>{c.value.hide()},onBatchReadClick:()=>{o.internalMessage.batchMarkRead()}}},render(){return o("div",{title:ht(ibiz.i18n.t("panelComponent.userMessage.notice")),class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},[o(i("el-popover"),{ref:"popoverRef","popper-class":this.ns.b("popover"),placement:"bottom",trigger:"click",visible:this.showPopover,"onUpdate:visible":e=>this.showPopover=e},{reference:()=>o(i("el-badge"),{class:this.ns.e("badge"),value:this.noticeNum,hidden:0===this.noticeNum},{default:()=>[o(i("i-biz-icon"),{id:_n.MESSAGE,class:[this.ns.e("image")],icon:this.sysImage},null)]}),default:()=>o("div",{class:this.ns.b("popover-content-box")},[o(i("el-tabs"),{class:this.ns.b("popover-content"),modelValue:this.currentTab,"onUpdate:modelValue":e=>this.currentTab=e},{default:()=>[o(i("el-tab-pane"),{label:ibiz.i18n.t("panelComponent.userMessage.notice"),name:"notification"},{default:()=>[o(Eg,{controller:this.noticeController.internalMessage,showPopover:this.showPopover,onHiddenPopover:this.hiddenPopover},null)]}),o(i("el-tab-pane"),{label:ibiz.i18n.t("panelComponent.userMessage.backendTasks"),name:"async-action"},{default:()=>[o(Qb,{controller:this.noticeController.asyncAction,showPopover:this.showPopover,onHiddenPopover:this.hiddenPopover},null)]})]}),o("div",{class:this.ns.b("popover-icons")},[o(i("iBizIcon"),{class:this.ns.b("popover-icons-read"),icon:{imagePath:"svg/read.svg"},baseDir:"iconfont",title:ht(ibiz.i18n.t("panelComponent.userMessage.allRead")),onClick:this.onBatchReadClick},null)])])})])}});var kg=Object.defineProperty,Sg=(e,t,a)=>(((e,t,a)=>{t in e?kg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class xg{constructor(){Sg(this,"component","IBizUserMessage")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Tg=U(Pg,(function(e){e.component(Pg.name,Pg),e.component(Jb.name,Jb),An("DEIMPORTDATA2",(()=>new og)),An("DEFAULT",(()=>new og)),function(e){e.component(pg.name,pg),e.component(lg.name,lg),e.component(ug.name,ug),e.component(bg.name,bg),e.component(yg.name,yg),On("DEFAULT",(()=>new dg)),On("JSON",(()=>new vg)),On("HTML",(()=>new fg)),On("TEXT",(()=>new Dg))}(e),En("RAWITEM_USERMESSAGE",(()=>new xg))}));var zg=Object.defineProperty,Og=(e,t,a)=>(((e,t,a)=>{t in e?zg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class _g extends Dn{constructor(){super(...arguments),Og(this,"searchFrom")}get searchButtonStyle(){return this.searchFrom.model.searchButtonStyle||"DEFAULT"}get storedFilters(){var e;return(null==(e=this.searchFrom)?void 0:e.state.storedFilters)||[]}async onInit(){await super.onInit();const e=this.panel.container;if(!e)throw new vt(ibiz.i18n.t("panelComponent.searchformButtons.errMessage"));this.searchFrom=e}onSearchButtonClick(){yn.execAndResolved("search",{context:this.panel.context,params:this.panel.params,data:[],view:this.panel.view},this.panel.context.srfappid)}onResetButtonClick(){yn.execAndResolved("reset",{context:this.panel.context,params:this.panel.params,data:[],view:this.panel.view},this.panel.context.srfappid)}}function Ag(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const Bg=a({name:"IBizSearchFormButtons",props:{modelData:{type:Object,required:!0},controller:{type:_g,required:!0}},setup(e){const t=A("searchform-buttons"),a=e.controller;return{ns:t,c:a,onSearchButtonClick:()=>{a.onSearchButtonClick()},onResetButtonClick:()=>{a.onResetButtonClick()},saveFilterConfirm:()=>{ti.prompt(ibiz.i18n.t("panelComponent.searchformButtons.enterPrompt"),ibiz.i18n.t("panelComponent.searchformButtons.queryPrompt"),{confirmButtonText:ibiz.i18n.t("app.save"),cancelButtonText:ibiz.i18n.t("app.cancel")}).then((({value:e})=>{a.searchFrom.storeFilter(e)}))}}},render(){let e;return o("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},["SEARCHONLY"===this.controller.searchButtonStyle?o(i("el-button"),{onClick:this.onSearchButtonClick},Ag(e=ibiz.i18n.t("app.search"))?e:{default:()=>[e]}):o(i("el-dropdown"),{"split-button":!0,type:"primary",onClick:this.onSearchButtonClick},{default:()=>o("span",{class:this.ns.b("label")},[ibiz.i18n.t("app.search")]),dropdown:()=>{let e,t;return o(i("el-dropdown-menu"),null,{default:()=>[o(i("el-dropdown-item"),{onClick:this.onResetButtonClick},Ag(e=ibiz.i18n.t("app.reset"))?e:{default:()=>[e]}),o(i("el-dropdown-item"),{onClick:this.saveFilterConfirm},Ag(t=ibiz.i18n.t("panelComponent.searchformButtons.saveCondition"))?t:{default:()=>[t]}),this.controller.storedFilters.length>0&&this.controller.storedFilters.map(((e,t)=>o(i("el-dropdown-item"),{class:this.ns.b("filter-item"),onClick:()=>{this.controller.searchFrom.applyStoredFilter(t)}},{default:()=>[o("span",{class:this.ns.be("filter-item","text")},[e.name,o("ion-icon",{class:this.ns.be("filter-item","remove"),onClick:e=>{e.stopPropagation(),this.controller.searchFrom.removeStoredFilter(t)},name:"close-outline"},null)])]})))]})}})])}});var jg=Object.defineProperty,Mg=(e,t,a)=>(((e,t,a)=>{t in e?jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Rg{constructor(){Mg(this,"component","IBizSearchFormButtons")}async createController(e,t,a){const n=new _g(e,t,a);return await n.init(),n}}const Ng=U(Bg,(function(e){e.component(Bg.name,Bg),En("RAWITEM_SEARCHFORM_BUTTONS",(()=>new Rg))})),Lg=a({name:"IBizViewMessage",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("view-message"),a=e.controller,n=ne(),{view:o}=n;return{ns:t,c:a,view:o}},render(){const e=this.view;if(e.state.isCreated){const t=e.state.viewMessages.BODY;if(null==t?void 0:t.length)return o(i("view-message"),{class:[this.ns.e("body-message")],messages:t},null)}return null}});var Vg=Object.defineProperty,Fg=(e,t,a)=>(((e,t,a)=>{t in e?Vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Ug{constructor(){Fg(this,"component","IBizViewMessage")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const qg=U(Lg,(function(e){e.component(Lg.name,Lg),En("RAWITEM_VIEW_MESSAGE",(()=>new Ug))})),Gg=a({name:"IBizPanelStaticCarousel",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){var t;const a=A("panel-static-carousel"),o=e.modelData,i=n([]),s=n(!0),l=n(3e3),r=n("DEFAULT"),c=e=>{const t=e.find((e=>Object.is(e.key,"autoplay")));t&&(s.value=!!Object.is(t.value,"1"));const a=e.find((e=>Object.is(e.key,"timespan")));a&&(l.value=Number(a.value)||0);const n=e.find((e=>Object.is(e.key,"showMode")));n&&n.value&&(r.value=n.value)};if(null==(t=o.rawItem)?void 0:t.rawItemParams){let e=[];const t=o.rawItem.rawItemParams;let a=0;t.findIndex((e=>Object.is(e.key,"autoplay")))>=0&&(a+=1),t.findIndex((e=>Object.is(e.key,"timespan")))>=0&&(a+=1),t.findIndex((e=>Object.is(e.key,"showMode")))>=0&&(a+=1),a>0?(e=t.slice(0,-a),c(t.slice(-a))):(e=t,c(t)),i.value=e.map((e=>{const{id:t,key:a,sysImage:n}=e;return{id:t,name:a,imgUrl:(null==n?void 0:n.imagePath)||(null==n?void 0:n.rawContent),cssClass:null==n?void 0:n.cssClass,linkPath:e.linkPath}}))}return{ns:a,carouselData:i,isAuto:s,timeSpan:l,showMode:r}},render(){return o("div",{class:this.ns.b()},[o(i("iBizCarouselComponent"),{carouselData:this.carouselData,isAuto:this.isAuto,timeSpan:this.timeSpan,showMode:this.showMode},null)])}});var Hg=Object.defineProperty,Wg=(e,t,a)=>(((e,t,a)=>{t in e?Hg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Kg{constructor(){Wg(this,"component","IBizPanelStaticCarousel")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Yg=U(Gg,(function(e){e.component(Gg.name,Gg),En("RAWITEM_STATIC_CAROUSEL",(()=>new Kg))}));var Xg=Object.defineProperty,$g=(e,t,a)=>(((e,t,a)=>{t in e?Xg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Jg extends Pn{constructor(){super(...arguments),$g(this,"key",lo()),$g(this,"alertParams",{data:{action:"VIEW",entity:"",key:"",time:0,username:""}})}}class Qg extends Dn{createState(){var e;return new Jg(null==(e=this.parent)?void 0:e.state)}updateMessage(e){this.state.key=lo(),this.state.alertParams=e}}const Zg=a({name:"IBizCoopPos",props:{modelData:{type:Object,required:!0},controller:{type:Qg,required:!0}},setup(e){const t=e.controller;return{ns:A("coop-pos"),c:t}},render(){return o("div",{class:this.ns.b()},[o(i("iBizCoopAlert"),v({key:this.c.state.key},this.c.state.alertParams),null)])}});var ew=Object.defineProperty,tw=(e,t,a)=>(((e,t,a)=>{t in e?ew(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class aw{constructor(){tw(this,"component","IBizCoopPos")}async createController(e,t,a){const n=new Qg(e,t,a);return await n.init(),n}}const nw=U(Zg,(function(e){e.component(Zg.name,Zg),En("RAWITEM_COOP_POS",(()=>new aw))}));var ow=Object.defineProperty,iw=(e,t,a)=>(((e,t,a)=>{t in e?ow(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class sw extends Dn{constructor(){super(...arguments),iw(this,"rawItemParams",{})}async onInit(){await super.onInit(),this.handleRawItemParams()}handleRawItemParams(){var e;const t=null==(e=this.model.rawItem)?void 0:e.rawItemParams;Array.isArray(t)&&t.forEach((e=>{const t=e.key,a=e.value;t&&a&&(this.rawItemParams[t.toLowerCase()]=a)}))}}const lw=a({name:"IBizViewMsgPos",props:{modelData:{type:Object,required:!0},controller:{type:sw,required:!0}},setup:()=>({ns:A("view-msg-pos"),view:ne().view}),render(){const e=this.controller;if(!this.view.state.isCreated)return;const t=e.rawItemParams.position||"BODY",a="true"===e.rawItemParams.scroll,n=this.view.state.viewMessages[t];return(null==n?void 0:n.length)?o("div",{class:this.ns.b()},[o(i("view-message"),{messages:n,scroll:a,context:e.panel.context,params:e.panel.params,controller:e.panel.view.viewMsgController},null)]):null}});var rw=Object.defineProperty,cw=(e,t,a)=>(((e,t,a)=>{t in e?rw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class dw{constructor(){cw(this,"component","IBizViewMsgPos")}async createController(e,t,a){const n=new sw(e,t,a);return await n.init(),n}}const uw=U(lw,(function(e){e.component(lw.name,lw),En("RAWITEM_VIEWMSG_POS",(()=>new dw))})),pw=a({name:"IBizUserAction",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(e){const t=A("user-action"),a=e.controller,n={SETTING:{imagePath:"svg/setting.svg"},HELPER:{imagePath:"svg/helper.svg"},CUSTOM:{imagePath:"svg/custom-workbench.svg"}};let o=e.modelData.sysImage;if(!o&&e.modelData&&e.modelData.rawItem){const t=e.modelData.rawItem.predefinedType;t&&(o=n[t])}return{ns:t,c:a,sysImage:o,onClick:async t=>{const n={...t};n.target=t.currentTarget;const o=e.modelData.id,i=a.panel.view.getController("appmenu");if(i){const e=i.allAppMenuItems.find((e=>e.id===o));if(e){if(e.accessKey){if(!(await ibiz.hub.getApp(a.panel.context.srfappid)).authority.calcByResCode(e.accessKey))return}const t=a.panel.context.clone(),o=a.panel.params;t.srfappid=e.appId||ibiz.env.appId,await ibiz.commands.execute(Sn.TAG,e.appFuncId,t,o,{event:n})}}}}},render(){return o("div",{class:this.ns.b(),title:ht(this.modelData.caption)},[o(i("i-biz-icon"),{class:[this.ns.e("image")],icon:this.sysImage,onClick:e=>this.onClick(e)},null)])}});var hw=Object.defineProperty,mw=(e,t,a)=>(((e,t,a)=>{t in e?hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class vw{constructor(){mw(this,"component","IBizUserAction")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const bw=e("aL",U(pw,(function(e){e.component(pw.name,pw),En("RAWITEM_SETTING",(()=>new vw)),En("RAWITEM_HELPER",(()=>new vw)),En("RAWITEM_CUSTOM",(()=>new vw))}))),gw=a({name:"IBizDataImportShell",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("data-import-shell"),a=e.controller;return{ns:t,c:a,onDismiss:()=>{a.panel.view.closeView()}}},render(){const{deDataImport:e,appDataEntity:t}=this.c.panel.view.state,a=[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass],n=e.enableCustomized?"DataImport2":"DataImport";return r(i(n),{dismiss:this.onDismiss,dataImport:e,appDataEntity:t,context:this.c.panel.context,params:this.c.panel.params,class:a})}});var ww=Object.defineProperty,fw=(e,t,a)=>(((e,t,a)=>{t in e?ww(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class yw{constructor(){fw(this,"component","IBizDataImportShell")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const Cw=U(gw,(function(e){e.component(gw.name,gw),En("RAWITEM_DATA_IMPORT",(()=>new yw))})),Iw=a({name:"IBizShortCut",components:{draggable:Do},props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup(e){const t=A("short-cut"),a=f().proxy,s=zo(),l=ibiz.util.shortCut,r=n(!0),c=n(!1),u=w(l.data),p={newIndex:0,oldIndex:0},h=new Map([["ROUTE_MODAL","INDEXVIEWTAB_POPUPMODAL"],["MODAL","POPUPMODAL"],["DRAWER","DRAWER_RIGHT"]]),m=e=>{0===u.length&&c.value&&(c.value=!1),a.$forceUpdate()};d((()=>{r.value="vertical"!==l.mode,ibiz.util.shortCut.onChange(m)})),C((()=>{ibiz.util.shortCut.offChange(m)}));const v=()=>{r.value=!r.value,r.value?(c.value=!1,l.setShortCutMode("horizontal")):l.setShortCutMode("vertical")},b=e=>{e.moved?ibiz.util.shortCut.changeIndex(e.moved.newIndex,e.moved.oldIndex):e.added?p.newIndex=e.added.newIndex:e.removed&&(p.oldIndex=e.removed.oldIndex,ibiz.util.shortCut.changeIndex(p.newIndex,p.oldIndex))},g=a=>o(Do,{itemKey:"key",class:[t.e("draggable"),t.is("horizontal",!a),t.is("vertical",a)],modelValue:u,group:e.controller.model.id,onChange:e=>b(e)},{item:({element:e,index:n})=>{if(a&&!r.value||a&&r.value&&n>5||!a&&n<6)return o("div",{class:[t.e("item"),t.e("draggable-item")],title:ht(e.caption),onClick:()=>(e=>{if(c.value=!1,"ROUTE"===e.openMode){const t=e.fullPath.substring(1);s.currentRoute.value.fullPath!==t&&s.push({path:e.fullPath.substring(1)})}else ibiz.commands.execute(Tn.TAG,e.appViewId,kt.create(e.context),e.params,{openMode:h.get(e.openMode)})})(e)},[o("svg",{viewBox:"0 0 16 16",class:["drag-icon","icon"],xmlns:"http://www.w3.org/2000/svg",height:"16px",width:"16px",focusable:"false"},[o("g",{id:"drag-icon/drag--","stroke-width":"1","fill-rule":"evenodd"},[o("g",{id:"drag-icon",transform:"translate(5 1)","fill-rule":"nonzero"},[o("path",{d:"M1 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM1 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",id:"drag-icon-air"},null)])])]),e.icon?o(i("iBizIcon"),{class:["caption-icon","icon"],icon:e.icon},null):o("ion-icon",{class:["caption-icon","icon"],name:"ellipsis-horizontal-circle-outline"},null),o("div",{class:t.em("item","caption")},[e.caption]),o("ion-icon",{name:"close-outline",class:["close-icon","icon"],onClick:t=>((e,t)=>{e.stopPropagation(),ibiz.util.shortCut.removeShortCut(t)})(t,e.key)},null)])}});return{ns:t,data:u,isShowToolbar:r,onChange:b,renderDraggable:g,renderMore:()=>o(i("el-popover"),{visible:c.value,"onUpdate:visible":e=>c.value=e,placement:"top-start",trigger:"click",width:"auto","popper-class":t.e("popover")},{reference:()=>o("div",{class:[t.e("more"),t.e("operate")]},[o(i("el-tooltip"),{content:ibiz.i18n.t("app.more"),placement:"top"},{default:()=>[o("div",null,[o("span",{class:t.em("more","caption")},[r.value?"6/".concat(u.length):u.length]),o("i",{class:["fa","icon","more-icon",c.value?"fa-angle-double-down":"fa-angle-double-up"],"aria-hidden":"true"},null)])]})]),default:()=>[g(!0),o("div",{class:[t.e("item"),t.e("action-item"),t.is("hidden",r.value)],onClick:v},[o("ion-icon",{class:["expand-icon","icon"],name:"chevron-back-outline"},null),o("div",{class:t.em("item","caption")},[ibiz.i18n.t("panelComponent.shortCut.expandToolbar")])])]}),renderRecover:()=>o("div",{class:[t.e("recover"),t.e("operate")],onClick:v},[o(i("el-tooltip"),{effect:"dark",content:ibiz.i18n.t("app.retract"),placement:"top"},{default:()=>[o("ion-icon",{class:["recover-icon","icon"],name:"chevron-forward-outline"},null)]})])}},render(){return o("div",{class:[this.ns.b(),...this.controller.containerClass,this.ns.is("conceal",0===this.data.length)]},[this.isShowToolbar&&this.renderDraggable(!1),(!this.isShowToolbar||this.data.length>6)&&this.renderMore(),this.isShowToolbar&&this.renderRecover()])}});var Dw=Object.defineProperty,Ew=(e,t,a)=>(((e,t,a)=>{t in e?Dw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Pw{constructor(){Ew(this,"component","IBizShortCut")}async createController(e,t,a){const n=new Dn(e,t,a);return await n.init(),n}}const kw=U(Iw,(function(e){e.component(Iw.name,Iw),En("RAWITEM_SHORTCUT",(()=>new Pw))}));var Sw=Object.defineProperty,xw=(e,t,a)=>(((e,t,a)=>{t in e?Sw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Tw extends Pn{constructor(){super(...arguments),xw(this,"code",""),xw(this,"image",""),xw(this,"state",""),xw(this,"loading",!1),xw(this,"error")}}var zw=Object.defineProperty,Ow=(e,t,a)=>(((e,t,a)=>{t in e?zw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class _w extends Dn{constructor(){super(...arguments),Ow(this,"captcha",w({"Captcha-State":"","Captcha-Code":""}))}createState(){var e;return new Tw(null==(e=this.parent)?void 0:e.state)}async panelStateNotify(e){super.panelStateNotify(e),this.data.captcha=this.captcha}async onInit(){super.onInit(),await this.loadCaptcha(),this.panel.view.evt.on("onAfterLogin",(e=>{e.ok||e.panelDataParent&&e.panelDataParent!==this.dataParent.model.id||(this.loadCaptcha(),this.state.code="")}))}async validate(){return this.state.code?(this.state.error=void 0,!0):(this.state.error="请输入验证码",!1)}onChange(){Object.assign(this.captcha,{"Captcha-State":this.state.state,"Captcha-Code":this.state.code})}async loadCaptcha(){this.state.loading=!0;const e={url:"".concat(ibiz.env.baseUrl,"/").concat(ibiz.env.appId,"/auths/captcha"),method:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Accept:"application/json"},data:{}};try{const t=await si(e);200===t.status&&t.data&&(this.state.state=t.data.state,this.state.image=t.data.image)}catch(e){this.state.state="",this.state.image=""}finally{this.state.loading=!1,this.onChange()}}}const Aw=a({name:"IBizAuthCaptcha",props:{modelData:{type:Object,required:!0},controller:{type:_w,required:!0}},setup(e){const t=A("auth-captcha"),a=e.controller,n=l((()=>{let n=[t.b(),t.m(a.model.id)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible),t.is("error",!!a.state.error)],n}));return{c:a,ns:t,classArr:n,onClick:()=>{a.state.loading||a.loadCaptcha()},onChange:()=>{a.onChange(),a.validate()}}},render(){return o("div",{class:this.classArr},[o(i("el-input"),{modelValue:this.c.state.code,"onUpdate:modelValue":e=>this.c.state.code=e,class:this.ns.e("captcha"),onInput:this.onChange,onBlur:this.onChange,placeholder:"验证码"},null),h(o(i("el-image"),{src:this.c.state.image,class:this.ns.e("image"),onClick:this.onClick,title:ht("点击图片刷新")},{error:()=>o("div",{onClick:this.onClick,class:[this.ns.em("image","hint"),this.ns.is("loading",this.c.state.loading)]},[this.c.state.loading?"加载中...":"加载失败"])}),[[g("loading"),this.c.state.loading]]),this.c.state.error&&o("div",{class:this.ns.e("error")},[this.c.state.error])])}});var Bw=Object.defineProperty,jw=(e,t,a)=>(((e,t,a)=>{t in e?Bw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Mw{constructor(){jw(this,"component","IBizAuthCaptcha")}async createController(e,t,a){const n=new _w(e,t,a);return await n.init(),n}}const Rw=U(Aw,(function(e){e.component(Aw.name,Aw),En("RAWITEM_AUTH_CAPTCHA",(()=>new Mw))})),Nw=e("ax",{install:e=>{e.use(ue),e.use(pe),e.use(he),e.use(Km),e.use(ov),e.use(mv),e.use(Dv),e.use(me),e.use(Bv),e.use(ve),e.use(be),e.use(ge),e.use(Vv),e.use(Wv),e.use(Qv),e.use(we),e.use(ob),e.use(fe),e.use(mb),e.use(ye),e.use(Ib),e.use(Sb),e.use(jb),e.use(Ub),e.use(Yb),e.use(Ce),e.use(Tg),e.use(Ie),e.use(Ng),e.use(De),e.use(qg),e.use(Yg),e.use(Ee),e.use(Pe),e.use(nw),e.use(uw),e.use(bw),e.use(Cw),e.use(kw),e.use(Rw)}}),Lw=a({name:"NotSupportedEditor",props:{modelData:{type:Object,required:!0}},setup:()=>({ns:A("not-supported-editor")}),render(){return o("div",{class:this.ns.b()},[ibiz.i18n.t("editor.notSupportedEditor.unsupportedType",{type:this.modelData.editorType})])}});ho.extend(li);const Vw=a({name:"IBizSpan",props:ke(),setup(e,{emit:t}){var a;const o=A("span"),i=e.controller,s=n(""),r=i.codeList,{valueFormat:d,dataType:u,unitName:p}=i.parent,h=i.model.textSeparator||(null==(a=i.editorParams)?void 0:a.TEXTSEPARATOR)||",";c((()=>e.value),((e,t)=>{if(e!==t){if(vo(e))return void(s.value="");if("SIMPLES"===i.model.valueType)s.value=e.join(h);else if("OBJECT"===i.model.valueType)s.value=e[i.model.objectNameField?i.model.objectNameField:"srfmajortext"];else if("OBJECTS"===i.model.valueType){const t=[];e.forEach((e=>{t.push(e[i.model.objectNameField?i.model.objectNameField:"srfmajortext"])})),s.value=t.join(h)}else if("ADDRESSPICKUP"===i.model.editorType)try{const t=[];JSON.parse(e).forEach((e=>{t.push(e[i.model.objectNameField?i.model.objectNameField:"srfmajortext"])})),s.value=t.join(h)}catch(t){ibiz.log.error("标签地址选择器的值不符合JSON格式".concat(e))}else if(d)try{if(null!=u&&St.isDate(u))s.value=ho(e).format(d);else{const t=ho(e).format(d);(a=t)!==(n=d)&&ho(a,n,!0).isValid()?s.value=t:s.value=ibiz.util.text.format("".concat(e),d)}}catch(t){s.value="".concat(e),ibiz.log.error("".concat(e," 值格式化错误"))}else xt("".concat(e))?s.value=Tt("".concat(e)):s.value="".concat(e);p&&(s.value+=p)}var a,n}),{immediate:!0});const m=n([]);r&&c((()=>e.data),(e=>{i.loadCodeList(e).then((e=>{m.value=e}))}),{immediate:!0,deep:!0});q(i.model.appCodeListId,i.context.srfappid,(e=>{e&&(m.value=e)}));const{componentRef:v}=Se((()=>t("focus")),(()=>t("blur"))),b=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));return{ns:o,c:i,text:s,editorRef:v,items:m,valueFormat:d,unitName:p,showFormDefaultContent:b}},render(){let e=null;e=this.c.codeList?this.c.codeList.thresholdGroup?this.items.length>0&&o(i("iBizCodeList"),{class:this.ns.e("code-list"),codeListItems:this.items,codeList:this.c.codeList,value:this.value,valueFormat:this.valueFormat,unitName:this.unitName,convertToCodeItemText:this.c.convertToCodeItemText},null):this.items.length>0&&o(i("iBizCodeList"),{class:this.ns.e("code-list"),codeListItems:this.items,codeList:this.c.codeList,value:this.text},null):this.text?this.text:"- - -";const t="ellipsis"===this.c.editorParams.overflowMode||"NOWRAP"===this.c.model.wrapMode;return o("span",{class:[this.ns.b(),this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent),this.ns.is("is-ellipsis",t)],ref:"editorRef"},[e])}}),Fw=a({name:"IBizSpanLink",props:ke(),emits:xe(),setup(e,{emit:t}){const a=A("span-link"),o=e.controller,i=n("");c((()=>e.value),((e,t)=>{e&&e!==t&&(i.value="".concat(e))}),{immediate:!0});const{componentRef:s}=Se((()=>t("focus")),(()=>t("blur"))),r=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));return{ns:a,openLinkView:async()=>{await o.openLinkView(e.data)},curValue:i,editorRef:s,showFormDefaultContent:r}},render(){return o("div",{class:[this.ns.b(),this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)],ref:"editorRef"},[o("a",{onClick:this.openLinkView},[this.curValue])])}});var Uw=Object.defineProperty,qw=(e,t,a)=>(((e,t,a)=>{t in e?Uw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Gw extends Bn{constructor(){super(...arguments),qw(this,"valueItem",""),qw(this,"codeList")}async onInit(){var e,t;if(super.onInit(),(null==(t=null==(e=this.model)?void 0:e.editorItems)?void 0:t[0])&&(this.valueItem=this.model.editorItems[0].id),this.model.appCodeListId){const e=await ibiz.hub.getApp(this.context.srfappid);this.codeList=e.codeList.getCodeList(this.model.appCodeListId)}}async openLinkView(e){const t=this.context.clone();e[this.valueItem]&&(t.srfkey=e[this.valueItem]);const{context:a,params:n}=this.handlePublicParams(e,t,this.params),{linkAppViewId:o}=this.model;if(!o)throw new zt(this.model,ibiz.i18n.t("editor.common.linkViewConfigErr"));return ibiz.commands.execute(Tn.TAG,o,a,n)}}var Hw=Object.defineProperty,Ww=(e,t,a)=>(((e,t,a)=>{t in e?Hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Kw{constructor(e){Ww(this,"formEditor","IBizSpan"),Ww(this,"gridEditor","IBizSpan"),"SPAN_LINK"===e&&(this.formEditor="IBizSpanLink",this.gridEditor="IBizSpanLink")}async createController(e,t){const a=new Gw(e,t);return await a.init(),a}}const Yw=a({name:"IBizInput",props:Te(),emits:xe(),setup(e,{emit:a}){const o=A("input"),i=e.controller,s=i.model,r=n(!1),d=n(),u=n(!0),p=n(!1),h=n(2);"TEXTAREA_10"===s.editorType&&(h.value=10),i.editorParams&&("false"===i.editorParams.SHOWLIMIT&&(u.value=!1),"true"===i.editorParams.ISAUTO&&(p.value=!0));const m=l((()=>{switch(s.editorType){case"TEXTBOX":return"text";case"PASSWORD":return"password";case"TEXTAREA":case"TEXTAREA_10":return"textarea";default:return"string"}})),v=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),b=n("");c((()=>e.value),((e,t)=>{e!==t&&(null==e?b.value="":xt("".concat(e))?b.value=Tt("".concat(e)):b.value=e.toString())}),{immediate:!0});const g=l((()=>b.value?e.controller.formatValue(b.value):"")),w=(e,t="blur")=>{t===i.triggerMode&&a("change",e)},f=e=>{e?r.value=e:setTimeout((()=>{r.value=e}),100)};let y;const I=e=>{y!==e&&w(e),y=void 0};c(d,(t=>{if(e.autoFocus&&t){const e="textarea"===m.value?"textarea":"input";t.$el.getElementsByTagName(e)[0].focus()}}));let D;C((()=>{D&&D.close()}));const E=l((()=>{const{unitName:t}=e.controller.parent;let a="".concat(e.controller.formatValue(b.value));return a&&t&&(a+=t),a})),P=l((()=>i.model.editorParams&&i.model.editorParams.autocomplete&&i.toBoolean(i.model.editorParams.autocomplete)?"on":"new-password")),k=n([]);i.codeList&&c((()=>e.data),(e=>{i.loadCodeList(e).then((e=>{k.value=e}))}),{immediate:!0,deep:!0});return q(i.model.appCodeListId,i.context.srfappid,(e=>{e&&(k.value=e)})),{c:i,ns:o,rows:h,type:m,items:k,currentVal:b,readonlyText:E,handleChange:I,handleInput:e=>{y!==e&&w(e,"input"),y=void 0},handleKeyUp:e=>{e&&"Enter"===e.code&&(a("enter",e),d.value.$el.dispatchEvent(e))},onBlur:t=>{y=t.target.value,y!=e.value&&w(y),a("blur",t),f(!1)},onFocus:e=>{a("focus",e),f(!0)},editorRef:d,onClick:async()=>{var e,a;if(i.deService){const n=await t.import("@ibiz-template-plugin/ai-chat"),o=n.chat||n.default.chat;D=o;const s=o.create({question:async e=>{var t,a;const n=lo();return await(null==(a=i.deService)?void 0:a.aiChatSse((e=>{if(ibiz.log.info("aiChatSse",e),20===e.actionstate&&e.actionresult)s.addMessage({messageid:n,state:e.actionstate,type:"DEFAULT",role:"ASSISTANT",content:e.actionresult});else if(30===e.actionstate&&e.actionresult){const t=JSON.parse(e.actionresult).choices;t&&t.length>0&&s.replaceMessage({messageid:n,state:e.actionstate,type:"DEFAULT",role:"ASSISTANT",content:t[0].content||""})}else 40===e.actionstate&&s.replaceMessage({messageid:n,state:e.actionstate,type:"ERROR",role:"ASSISTANT",content:e.actionresult})}),i.context,{srfactag:null==(t=i.deACMode)?void 0:t.codeName},{messages:e})),s.addMessage({messageid:n,state:10,type:"DEFAULT",role:"ASSISTANT",content:""}),!0},action:(e,t)=>{"backfill"===e&&I(t.content)}}),l=await(null==(a=i.deService)?void 0:a.aiChatHistory(i.context,{srfactag:null==(e=i.deACMode)?void 0:e.codeName}));l.data&&Array.isArray(l.data)&&l.data.forEach((e=>{const t={messageid:lo(),state:30,type:"DEFAULT",role:e.role,content:e.content};s.addMessage(t)}))}},shouldAutoComplete:P,isEditable:r,setEditable:f,showLimit:u,isAuto:p,showFormDefaultContent:v,currentFormatVal:g}},render(){const{unitName:e}=this.c.parent,{editorWidth:t,editorHeight:a,predefinedType:n}=this.c.model;let l=null;if(this.readonly)l=this.c.codeList?o(i("iBizCodeList"),{codeListItems:this.items,codeList:this.c.codeList,value:this.currentVal,convertToCodeItemText:this.c.convertToCodeItemText},null):this.readonlyText;else{const t={};e&&(t.suffix=()=>o("i",{class:this.ns.e("unit")},[e])),"AUTH_USERID"===n?t.prefix=()=>o("ion-icon",{name:"person"},null):"AUTH_PASSWORD"===n&&(t.prefix=()=>o("ion-icon",{name:"unlock-alt"},null)),l=o(i("el-input"),v({ref:"editorRef",clearable:!0,modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,placeholder:this.c.placeHolder,type:this.type,rows:this.rows,resize:"none",autosize:this.isAuto,maxlength:this.c.model.maxLength,minlength:this.c.model.minLength,"show-word-limit":this.showLimit&&this.c.model.showMaxLength,onChange:this.handleChange,onInput:this.handleInput,onKeyup:this.handleKeyUp,onBlur:this.onBlur,onFocus:this.onFocus,class:this.ns.b("input"),disabled:this.disabled,"show-password":"password"===this.type,autocomplete:this.shouldAutoComplete},this.$attrs),"function"==typeof(r=t)||"[object Object]"===Object.prototype.toString.call(r)&&!s(r)?t:{default:()=>[t]})}var r;const c=o("div",{class:this.ns.b("form-default-content")},[this.currentVal?"password"===this.type?this.currentVal.split("").map((e=>"•")):this.currentFormatVal:"-"]);return o("div",{class:[this.ns.b(),this.ns.is("textarea",Object.is(this.type,"textarea")),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)],style:{width:t?"".concat(t,"px"):"",height:a?"".concat(a,"px"):""}},[this.showFormDefaultContent&&c,"password"===this.type&&"new-password"===this.shouldAutoComplete?o("input",{type:"text",style:"opacity: 0;position:absolute;width:0;height:0;"},null):null,l,this.c.chatCompletion?o("div",{class:this.ns.e("ai-chat"),onClick:this.onClick},[o("ion-icon",{src:"./assets/images/svg/chat.svg"},null)]):null])}}),Xw=a({name:"IBizInputNumber",props:ze(),emits:xe(),setup(e,{emit:t}){const a=A("input-number"),o=n(!1),i=e.controller,s=i.model,r=n(null);let d=1/0,u=-1/0;s.editorParams&&(s.editorParams.maxvalue&&(d=Ho(s.editorParams.maxvalue)),s.editorParams.minvalue&&(u=Ho(s.editorParams.minvalue)),s.editorParams.enablethousands&&(o.value=JSON.parse(s.editorParams.enablethousands)));const p=n(!1),h=n(),m=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),v=(e,t=0)=>{const a={minimumFractionDigits:t,maximumFractionDigits:t};return e.toLocaleString("en-US",a)};c((()=>e.value),((e,t)=>{if(e!==t){const t=null==e||Object.is(e,"")?null:Number(e);o.value?r.value=Number.isNaN(t)?null:v(t,i.precision?i.precision:0):r.value=Number.isNaN(t)?null:t}}),{immediate:!0});const b=l((()=>{if(o.value){if(r.value||0===r.value)return v(Number(r.value),i.precision?i.precision:0)}else if(r.value||0===r.value)return e.controller.formatValue(r.value);return""})),g=e=>{e?p.value=e:setTimeout((()=>{p.value=e}),100)};c(h,(t=>{if(e.autoFocus&&t){t.$el.getElementsByTagName("input")[0].focus()}}));const w=((e,t)=>{let a;return(...n)=>{clearTimeout(a),a=setTimeout((()=>e.apply(this,n)),t)}})((e=>{let a=null;"string"==typeof e&&(a=(e=>{const t=e.replace(/,/g,"");return parseFloat(t)})(e)),t("change",a)}),300);return{ns:a,c:i,currentVal:r,handleChange:(e,a="blur")=>{a===i.triggerMode&&t("change",e)},onFocus:e=>{t("focus",e),g(!0)},onBlur:e=>{t("blur",e),o.value&&w(r.value),g(!1)},editorRef:h,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},isEditable:p,setEditable:g,showFormDefaultContent:m,max:d,min:u,currentFormatVal:b,enablethousands:o,onInput:e=>{r.value=e}}},render(){const{unitName:e}=this.c.parent;let t=null;this.readonly?(t=po(this.currentVal)?"":"".concat(this.currentFormatVal),t&&e&&(t+=e)):t=[this.enablethousands?o(i("el-input"),v({ref:"editorRef",class:[this.ns.b("input")],"model-value":this.currentVal,onInput:this.onInput,placeholder:this.c.placeHolder,disabled:this.disabled,onFocus:this.onFocus,onBlur:this.onBlur,onKeyup:this.handleKeyUp},this.$attrs),null):o(i("el-input-number"),v({ref:"editorRef",class:[this.ns.b("input")],"model-value":this.currentVal,placeholder:this.c.placeHolder,min:this.min,max:this.max,precision:this.c.precision,disabled:this.disabled,controls:!1,onChange:e=>this.handleChange(e,"blur"),onInput:e=>this.handleChange(e,"input"),onFocus:this.onFocus,onBlur:this.onBlur,onKeyup:this.handleKeyUp},this.$attrs),null),e&&o("i",{class:this.ns.e("unit")},[e])];const a=o("div",{class:this.ns.b("form-default-content")},[this.currentVal||0===this.currentVal?this.currentFormatVal:"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)]},[this.showFormDefaultContent&&a,t])}}),$w=a({name:"IBizInputIP",props:Oe(),emits:xe(),setup(e,{emit:t}){const a=A("input-ip"),o=e.controller,i=n(),s=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),r=n([]),d=n(!1),u=n(!1),p=n(""),h=n(""),m=n(""),v=n("");if(e.value){const t=e.value.split(".");r.value=t,p.value=r.value[0],h.value=r.value[1],m.value=r.value[2],v.value=r.value[3]}const b=(e,a,n,o)=>{if(""===e)return;/^(([0-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5]))))$/g.test(e)?r.value[o]=e:n&&(ibiz.message.warning(ibiz.i18n.t("editor.textBox.warningMessage",{num:o+1})),n.value=a,r.value[o]=a),p.value&&h.value&&m.value&&v.value&&t("change","".concat(p.value,".").concat(h.value,".").concat(m.value,".").concat(v.value))};c(p,((e,t)=>{b(e,t,p,0)})),c(h,((e,t)=>{b(e,t,h,1)})),c(m,((e,t)=>{b(e,t,m,2)})),c(v,((e,t)=>{b(e,t,v,3)})),c(i,(t=>{if(e.autoFocus&&t){t.$el.getElementsByTagName("input")[0].focus()}}));return{ns:a,c:o,editorRef:i,currentVal:r,getFocus:()=>{d.value=!0,u.value&&(u.value=!1,t("focus"))},blur:()=>{d.value=!1,setTimeout((()=>{d.value||(u.value=!0,t("blur"))}),0)},firstIp:p,secIp:h,thirdIp:m,forIp:v,showFormDefaultContent:s,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)}}},render(){return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)]},[o(i("el-input"),{ref:"editorRef",type:"text",size:"small",disabled:this.disabled,readonly:this.readonly,onFocus:this.getFocus,onBlur:this.blur,onKeyup:this.handleKeyUp,maxlength:3,modelValue:this.firstIp,"onUpdate:modelValue":e=>this.firstIp=e},null),b("."),o(i("el-input"),{type:"text",size:"small",disabled:this.disabled,readonly:this.readonly,onFocus:this.getFocus,onBlur:this.blur,onKeyup:this.handleKeyUp,maxlength:3,modelValue:this.secIp,"onUpdate:modelValue":e=>this.secIp=e},null),b("."),o(i("el-input"),{type:"text",size:"small",disabled:this.disabled,readonly:this.readonly,onFocus:this.getFocus,onBlur:this.blur,onKeyup:this.handleKeyUp,maxlength:3,modelValue:this.thirdIp,"onUpdate:modelValue":e=>this.thirdIp=e},null),b("."),o(i("el-input"),{type:"text",size:"small",disabled:this.disabled,readonly:this.readonly,onFocus:this.getFocus,onBlur:this.blur,onKeyup:this.handleKeyUp,maxlength:3,modelValue:this.forIp,"onUpdate:modelValue":e=>this.forIp=e},null)])}});var Jw=Object.defineProperty,Qw=(e,t,a)=>(((e,t,a)=>{t in e?Jw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Zw extends Bn{constructor(){super(...arguments),Qw(this,"precision"),Qw(this,"deService"),Qw(this,"deACMode"),Qw(this,"keyName","srfkey"),Qw(this,"textName","srfmajortext"),Qw(this,"sort","asc"),Qw(this,"dataItems",[]),Qw(this,"chatCompletion",!1),Qw(this,"codeList")}async onInit(){if(await super.onInit(),this.precision=this.editorParams.precision?Ho(this.editorParams.precision):this.model.precision,"TEXTAREA"===this.model.editorType||"TEXTAREA_10"===this.model.editorType){const e=this.model;if(e.appDEACModeId&&(this.deACMode=await jn(e.appDEACModeId,e.appDataEntityId,this.context.srfappid),this.deACMode)){if("AUTOCOMPLETE"===this.deACMode.actype){const{minorSortAppDEFieldId:e,minorSortDir:t}=this.deACMode;e&&t&&(this.sort="".concat(e.toLowerCase(),",").concat(t.toLowerCase())),this.deACMode.textAppDEFieldId&&(this.textName=this.deACMode.textAppDEFieldId),this.deACMode.valueAppDEFieldId&&(this.keyName=this.deACMode.valueAppDEFieldId),this.deACMode.deacmodeDataItems&&(this.dataItems=[],this.deACMode.deacmodeDataItems.forEach((e=>{"value"!==e.id&&"text"!==e.id&&this.dataItems.push(e)})))}"CHATCOMPLETION"===this.deACMode.actype&&(this.deService=await ibiz.hub.getApp(e.appId).deService.getService(this.context,e.appDataEntityId),this.chatCompletion=!0)}}if("AUTH_USERID"!==this.model.predefinedType||this.placeHolder?"AUTH_PASSWORD"!==this.model.predefinedType||this.placeHolder||(this.placeHolder=ibiz.i18n.t("app.pleaseEnterPassword")):this.placeHolder=ibiz.i18n.t("app.pleaseEnterAccount"),this.model.appCodeListId){const e=await ibiz.hub.getApp(this.context.srfappid);this.codeList=e.codeList.getCodeList(this.model.appCodeListId)}}}var ef=Object.defineProperty,tf=(e,t,a)=>(((e,t,a)=>{t in e?ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class af{constructor(e){tf(this,"formEditor","IBizInput"),tf(this,"gridEditor","IBizInput"),"NUMBER"===e&&(this.formEditor="IBizInputNumber",this.gridEditor="IBizInputNumber"),"IPADDRESSTEXTBOX"===e&&(this.formEditor="IBizInputIP",this.gridEditor="IBizInputIP")}async createController(e,t){const a=new Zw(e,t);return await a.init(),a}}const nf=a({name:"IBizDropdown",props:_e(),emits:xe(),setup(e,{emit:t}){const a=A("dropdown"),o=e.controller,i=n([]),s=n([]),r=n(!1),p=n(!1),h=n([]),m=n(!1),v=n(),b=o.model.editorItems,g=n(!1);let w,f="";const y=n(!1),I=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),D=l((()=>"DROPDOWNLIST_100"===o.model.editorType?a.cssVarBlock({width:"100px"}):{})),E=e=>{if(0===e.length)return[];const t=[];return e.forEach((e=>{var a;s.value.push(e);const n={label:e.text,value:null==(a=e.value)?void 0:a.toString(),color:null==e?void 0:e.color,textCls:null==e?void 0:e.textCls,sysImage:e.sysImage,disabled:!0===e.disableSelect,children:[]};e.children&&e.children.length>0&&(n.children=E(e.children)),t.push(n)})),t},P=async()=>{if(o.model.appCodeListId){const e=ibiz.hub.getApp(o.context.srfappid).codeList.getCodeList(o.model.appCodeListId);e&&(y.value=e.codeItemValueNumber||!1)}g.value=!0;const t=await o.loadCodeList(e.data);r.value=!0,o.blankItemName?i.value=[{value:void 0,text:o.blankItemName},...t]:i.value=t;for(let e=0;e<i.value.length;e++){if(i.value[e].children){p.value=!0,h.value=E(t);break}}g.value=!1};c((()=>e.value),(async(e,t)=>{(e||null===e||0===e)&&(r.value||void 0!==t||await P())}),{immediate:!0});const k=e=>{e?m.value=e:setTimeout((()=>{m.value=e}),100)},S=l({get(){var t,a,n;return r.value?b&&b.length>0&&!o.multiple?null==(t=e.data[b[0].id])?void 0:t.toString():e.value&&"string"==typeof e.value?o.multiple?null==(a=e.value)?void 0:a.toString().split(","):e.value.toString():e.value&&Array.isArray(e.value)?o.multiple?e.value:e.value.toString():null==(n=e.value)?void 0:n.toString():o.multiple?[]:""},set(a){let n=a;if(o.blankItemName&&!a&&(n=void 0),Array.isArray(n)){let e=null;e=0===n.length?null:"SIMPLES"===o.model.valueType?n:n.join(","),t("change",e)}else if(b&&b.length>0){t("change",y.value?Number(n):n,b[0].id);const e=(l=y.value?Number(n):n,(p.value?s.value:i.value).find((e=>e.value===l)));e&&t("change",e.text)}else t("change",y.value?Number(n):n);var l;k(!1),"true"===o.editorParams.alwaysLoad&&P(),e.autoFocus&&(f="blur",t("blur"))}}),x=l((()=>{const e=Array.isArray(S.value)?S.value:[S.value],t=p.value?s.value:i.value,a=[];return e.forEach((e=>{t.forEach((t=>{(y.value?t.value===Number(e):t.value===e)&&a.push(t.text)}))})),a.join(",")}));c(x,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0}),c(v,(t=>{e.autoFocus&&t&&t.focus&&t.focus()}));return q(o.model.appCodeListId,o.context.srfappid,(e=>{e&&(i.value=e)})),d((()=>{v.value&&(w=G(v,(async e=>{f="outside"})))})),C((()=>{w&&w.stop&&w.stop()})),{ns:a,c:o,curValue:S,items:i,customNodeClass:(e,t)=>e.children.length?a.e("branch-node"):null,valueText:x,hasChildren:p,onBlur:e=>{f="blur",t("blur",e),k(!1)},onFocus:e=>{f="focus",t("focus",e),k(!0)},editorRef:v,treeNodes:h,cssVars:D,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},getCodeListItem:e=>(p.value?s.value:i.value).find((t=>t.text===e)),isEditable:m,setEditable:k,showFormDefaultContent:I,onVisibleChange:async e=>{e&&!r.value&&(await P(),p.value&&v.value&&"outside"!==f&&u((()=>{v.value.focus()})))},isLoading:g}},render(){const e="ellipsis"===(this.c.editorParams.overflowMode||ibiz.config.pickerEditor.overflowMode),t=this.hasChildren?o(i("el-tree-select"),v({ref:"editorRef",modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,clearable:!0,class:[this.ns.b("select")],filterable:!0,teleported:!this.showFormDefaultContent,data:this.treeNodes,"check-strictly":!0,"render-after-expand":!0,multiple:this.c.multiple,placeholder:this.c.placeHolder?this.c.placeHolder:" ",disabled:this.disabled,loading:this.isLoading,"fit-input-width":e,onBlur:this.onBlur,onFocus:this.onFocus,onKeyup:this.handleKeyUp,onVisibleChange:this.onVisibleChange,props:{class:this.customNodeClass}},this.$attrs),{default:t=>{const a=(t.data||{}).label||"";return o("span",{title:ht(e?a:"")},[a])}}):o(i("el-select"),v({ref:"editorRef",modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,clearable:!0,class:[this.ns.b("select")],filterable:!0,teleported:!this.showFormDefaultContent,multiple:this.c.multiple,"allow-create":!this.c.forceSelection,placeholder:this.c.placeHolder?this.c.placeHolder:" ",disabled:this.disabled,loading:this.isLoading,"fit-input-width":e,"popper-class":"".concat(this.ns.b("popper")," ").concat("round"===this.c.editorParams.type?this.ns.bm("popper","round"):""," ").concat(this.ns.bm("popper","".concat(this.c.model.id))),onBlur:this.onBlur,onFocus:this.onFocus,onKeyup:this.handleKeyUp,onVisibleChange:this.onVisibleChange},this.$attrs),{default:()=>this.items.map((t=>{var a;return o(i("el-option"),{key:t.value,value:null==(a=t.value)?void 0:a.toString(),label:t.text,disabled:!0===t.disableSelect,style:t.bkcolor?this.ns.cssVarBlock({"select-option-item-bkcolor":"".concat(t.bkcolor)}):"",class:[t.cls?t.cls:null],title:ht(e?t.text:"")},{default:()=>o("div",{class:[this.ns.b("select-option-content"),t.textCls?t.textCls:null],style:t.color?this.ns.cssVarBlock({"select-option-item-color":"".concat(t.color)}):""},[t.sysImage&&o(i("iBizIcon"),{icon:t.sysImage},null),o("span",{class:[e&&this.ns.be("select-option-content","text")]},[t.text])])})})),prefix:()=>{if("round"===this.c.editorParams.type)return this.valueText.split(",").map((e=>{const t=this.getCodeListItem(e);return o("div",{class:[this.ns.b("select-option-text"),null==t?void 0:t.textCls],style:(null==t?void 0:t.color)||(null==t?void 0:t.bkcolor)?this.ns.cssVarBlock({"select-option-item-color":"".concat(t.color||""),"select-option-item-bkcolor":"".concat(t.bkcolor||"")}):""},[(null==t?void 0:t.sysImage)&&o(i("iBizIcon"),{icon:null==t?void 0:t.sysImage},null),e||""])}))}}),a=this.valueText.split(",").map((e=>{const t=this.getCodeListItem(e);return o("span",{class:[this.ns.b("readonly-text-item"),null==t?void 0:t.textCls],style:(null==t?void 0:t.color)||(null==t?void 0:t.bkcolor)?this.ns.cssVarBlock({"readonly-text-item-color":"".concat(t.color||""),"select-option-item-color":"".concat(t.color||""),"select-option-item-bkcolor":"".concat(("round"===this.c.editorParams.type?t.bkcolor:"")||"")}):""},[(null==t?void 0:t.sysImage)&&o(i("iBizIcon"),{icon:null==t?void 0:t.sysImage},null),o("span",{class:this.ns.be("readonly-text-item","label")},[e])])})),n=o("div",{class:[this.ns.b("form-default-content"),this.ns.is("multiple",this.c.multiple)]},[this.valueText?this.valueText.split(",").map((e=>{const t=this.getCodeListItem(e);return o("span",{class:[this.ns.b("content-item"),null==t?void 0:t.textCls],style:(null==t?void 0:t.color)||(null==t?void 0:t.bkcolor)?this.ns.cssVarBlock({"select-option-item-color":"".concat(t.color||""),"select-option-item-bkcolor":"".concat(("round"===this.c.editorParams.type?t.bkcolor:"")||"")}):""},[o("span",{class:this.ns.be("content-item","label")},[e])])})):"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent),"round"===this.c.editorParams.type&&this.ns.m("round")],style:this.cssVars},[this.showFormDefaultContent&&n,this.readonly?a:t])}}),of=a({name:"IBizEmojiPicker",props:_e(),emits:xe(),setup(e,{emit:t}){const a=A("emoji-picker"),s=e.controller,r=n(),d=n(""),u=n(!1),p=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),h=e=>{e.stopPropagation(),e.preventDefault(),u.value=!0},m=e=>{e.stopPropagation(),e.preventDefault(),d.value="",u.value=!1,t("change",""),r.value.click()};c((()=>e.value),((e,t)=>{e!==t&&(d.value=e&&xt("".concat(e))?Tt(e):e)}),{immediate:!0});const v=()=>{let e=o("span",{class:[a.e("button-content")],onClick:h},[o("svg",{class:a.em("button-content","icon"),viewBox:"0 0 1040 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1490",width:"1em",height:"1em"},[o("path",{d:"M512.075261 1024A511.774217 511.774217 0 1 1 730.482434 48.769072a37.630457 37.630457 0 1 1-32.061149 68.035867 436.513303 436.513303 0 1 0 250.468323 395.270322 37.630457 37.630457 0 0 1 75.260914 0 512.526826 512.526826 0 0 1-512.075261 511.924739z","p-id":"1491"},null),o("path",{d:"M333.857416 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.499339 57.499339 0 0 0-57.348817-57.348817zM686.53006 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.348817 57.348817 0 0 0-57.348817-57.348817zM515.236219 783.165074c-162.864619 0-262.359547-141.942084-262.359547-219.159782a30.104366 30.104366 0 0 1 60.208731 0c0 48.618551 76.314567 158.951051 202.150816 158.951051s193.571072-134.114949 193.571072-158.951051a30.104366 30.104366 0 0 1 60.208731 0c0 54.488902-90.012054 219.159782-253.779803 219.159782zM1009.549904 207.720123h-67.132735V139.985301a30.104366 30.104366 0 1 0-60.208732 0v67.734822h-67.734822a30.104366 30.104366 0 0 0-30.104366 30.104366 30.104366 30.104366 0 0 0 30.104366 30.104366h67.734822v67.734823a30.104366 30.104366 0 0 0 60.208732 0v-67.734823h67.734823a30.104366 30.104366 0 0 0 30.104365-30.104366 30.104366 30.104366 0 0 0-30.706453-30.104366z","p-id":"1492"},null)]),ibiz.i18n.t("editor.emojiPicker.addEmoji")]);return d.value&&(e=o("span",{class:[a.e("button-content")]},[o("svg",{class:a.em("button-content","icon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em",onClick:m},[o("path",{d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"},null)]),o("span",{innerHTML:d.value},null)])),e};return{ns:a,c:s,emoji:d,visible:u,emojiRef:r,showFormDefaultContent:p,onSelect:e=>{u.value=!1,d.value=e.data,t("change",Ot(e.data))},onAddEmoji:h,onClearEmoji:m,renderReference:()=>o(i("el-button"),{class:[a.e("button"),a.is("clear",!!d.value)]},{default:()=>[p.value&&o("div",{class:[a.b("form-default-content"),a.is("clear",!!d.value)]},[d.value?d.value:"-"]),v()]})}},render(){return o("div",{ref:"emojiRef",class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("active",this.visible),this.ns.is("show-default",this.showFormDefaultContent)]},[o(i("el-popover"),{trigger:"click",placement:"bottom-start",width:"auto",visible:this.visible,"onUpdate:visible":e=>this.visible=e,"hide-after":0,"popper-class":[this.ns.b("popper")]},{reference:()=>this.renderReference(),default:()=>o(i("iBizEmojiSelect"),{continuousList:!0,dark:!0,onSelect:this.onSelect},null)})])}});var sf=Object.defineProperty,lf=(e,t,a)=>(((e,t,a)=>{t in e?sf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class rf extends Bn{constructor(){super(...arguments),lf(this,"multiple",!1),lf(this,"forceSelection",!0),lf(this,"blankItemName","")}async onInit(){var e,t;super.onInit(),"MDROPDOWNLIST"===this.model.editorType&&(this.multiple=!0),(null==(e=this.editorParams)?void 0:e.forceSelection)&&(this.forceSelection=this.toBoolean(this.editorParams.forceSelection)),(null==(t=this.editorParams)?void 0:t.blankItemName)&&(this.blankItemName=this.editorParams.blankItemName)}}var cf=Object.defineProperty,df=(e,t,a)=>(((e,t,a)=>{t in e?cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class uf{constructor(e){df(this,"formEditor","IBizDropdown"),df(this,"gridEditor","IBizDropdown");let t="IBizDropdown";if("EMOJI_PICKER"===e)t="IBizEmojiPicker";this.formEditor=t,this.gridEditor=t}async createController(e,t){const a=new rf(e,t);return await a.init(),a}}const pf=a({name:"IBizCheckbox",props:Ae(),emits:xe(),setup(e,{emit:t}){var a,n;const o=A("checkbox"),i=e.controller.model;let s=1,r=0;(null==(a=i.editorParams)?void 0:a.selectValue)&&(s=i.editorParams.selectValue),(null==(n=i.editorParams)?void 0:n.nullValue)&&(r=i.editorParams.nullValue);const c=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),{useInFocusAndBlur:d,useInValueChange:u}=Be(e,t),p=l({get:()=>e.value==s,set(e){let a;a=e?s:r,t("change",a),u()}}),{componentRef:h}=Se((()=>t("focus")),(()=>d()));return{ns:o,editorModel:i,currentVal:p,editorRef:h,showFormDefaultContent:c}},render(){return o("div",{class:[this.ns.b(),this.ns.is("show-default",this.showFormDefaultContent)],ref:"editorRef"},[o(i("el-checkbox"),v({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled||this.readonly},this.$attrs),null)])}});class hf extends Mn{}var mf=Object.defineProperty,vf=(e,t,a)=>(((e,t,a)=>{t in e?mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class bf{constructor(){vf(this,"formEditor","IBizCheckbox"),vf(this,"gridEditor","IBizCheckbox")}async createController(e,t){const a=new hf(e,t);return await a.init(),a}}const gf=a({name:"IBizCheckboxList",props:je(),emits:xe(),setup(e,{emit:t}){const a=A("checkbox-list"),o=e.controller,i=o.codeList,s=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),r=n([]);c((()=>e.data),(e=>{o.loadCodeList(e).then((e=>{r.value=e}))}),{immediate:!0,deep:!0});const d=l((()=>i&&i.orMode?i.orMode.toLowerCase():"str"));q(o.model.appCodeListId,o.context.srfappid,(e=>{e&&(r.value=e)}));let u=",";i&&i.valueSeparator&&(u=i.valueSeparator);const{useInFocusAndBlur:p,useInValueChange:h}=Be(e,t),m=l({get(){if(!vo(e.value)){if(Object.is(d.value,"num")&&r){const t=[],a="string"==typeof e.value?parseInt(e.value,10):e.value;return r.value.forEach((e=>{(a&e.value)===e.value&&t.push(e.value)})),t}if(Object.is(d.value,"str")){const t=e.value;if(""!==t){if(i){const e="SIMPLES"===o.model.valueType?t:t.split(u);if(i.codeItemValueNumber)for(let t=0,a=e.length;t<a;t++)e[t]=Number(e[t]);return e}return t.split(",")}}}return[]},set(e){let a=null;if(Object.is(d.value,"num")){let t=0;e.forEach((e=>{const a="string"==typeof e?parseInt(e,10):e;t|=a})),"SIMPLES"===o.model.valueType?a=[t]:"SIMPLE"===o.model.valueType&&(a=t)}else if(Object.is(d.value,"str")){const t=[];r.value.length>0&&(r.value.forEach((a=>{-1!==e.findIndex((e=>Object.is(a.value,e)))&&t.push(a.value)})),"SIMPLES"===o.model.valueType?a=t:"SIMPLE"===o.model.valueType&&(a=t.join(u)))}t("change",a),h()}}),v=l((()=>{const e=Array.isArray(m.value)?m.value:[m.value];return r.value.filter((t=>{let a=!1;return e.forEach((e=>{e==t.value&&(a=!0)})),a})).map((e=>e.text)).join(",")}));c(v,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0});const{componentRef:b}=Se((()=>t("focus")),(()=>p()));return{ns:a,items:r,selectArray:m,valueText:v,editorRef:b,onSelectArrayChange:e=>{m.value=e},showFormDefaultContent:s}},render(){let e;return o("div",{ref:"editorRef",class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent),this.ns.is("grid-layout",!!this.controller.rowNumber)],style:this.controller.rowNumber?"--ibiz-checkbox-list-group-row-number:".concat(this.controller.rowNumber):""},[this.readonly?this.valueText:o(i("el-checkbox-group"),v({"model-value":this.selectArray,onChange:this.onSelectArrayChange},this.$attrs),(t=e=this.items.map(((e,t)=>o(i("el-checkbox"),{key:t,label:e.value,disabled:this.disabled||!0===e.disableSelect},{default:()=>[o("span",{class:this.ns.e("text")},[e.text])]}))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]}))]);var t}});var wf=Object.defineProperty,ff=(e,t,a)=>(((e,t,a)=>{t in e?wf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class yf extends Bn{constructor(){super(...arguments),ff(this,"codeList"),ff(this,"rowNumber")}async onInit(){var e;if(super.onInit(),this.model.appCodeListId){const e=await ibiz.hub.getApp(this.context.srfappid);this.codeList=e.codeList.getCodeList(this.model.appCodeListId)}(null==(e=this.editorParams)?void 0:e.rowNumber)&&(this.rowNumber=Number(this.editorParams.rowNumber))}}var Cf=Object.defineProperty,If=(e,t,a)=>(((e,t,a)=>{t in e?Cf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Df{constructor(){If(this,"formEditor","IBizCheckboxList"),If(this,"gridEditor","IBizCheckboxList")}async createController(e,t){const a=new yf(e,t);return await a.init(),a}}const Ef=a({name:"IBizRadio",props:Me(),emits:xe(),setup(e,{emit:t}){const a=A("radio"),o=e.controller,i=o.model;let s="radio",r=!1;i.editorParams&&(i.editorParams.renderMode&&(s=i.editorParams.renderMode),i.editorParams.isBtnRoundCorner&&(r=o.toBoolean(i.editorParams.isBtnRoundCorner)));const{useInFocusAndBlur:d,useInValueChange:u}=Be(e,t),p=n([]);c((()=>e.data),(e=>{o.loadCodeList(e).then((e=>{p.value=e}))}),{immediate:!0,deep:!0});q(o.model.appCodeListId,o.context.srfappid,(e=>{e&&(p.value=e)}));const h=l((()=>{var t;return(null==(t=p.value.find((t=>t.value==e.value)))?void 0:t.text)||""})),m=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c(h,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0});const{componentRef:v}=Se((()=>t("focus")),(()=>d()));return{ns:a,editorModel:i,items:p,valueText:h,onSelectValueChange:e=>{t("change",e),u()},editorRef:v,renderMode:s,isBtnRoundCorner:r,showFormDefaultContent:m}},render(){let e;return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent),this.ns.is("grid-layout",!!this.controller.rowNumber)],style:this.controller.rowNumber?"--ibiz-radio-group-row-number:".concat(this.controller.rowNumber):"",ref:"editorRef"},[this.readonly?this.valueText:o(i("el-radio-group"),v({class:this.ns.e("group"),"model-value":uo(this.value)?String(this.value):"",onChange:this.onSelectValueChange},this.$attrs),(t=e=this.items.map(((e,t)=>"radio"===this.renderMode?o(i("el-radio"),{key:t,label:uo(e.value)?String(e.value):"",disabled:this.disabled||!0===e.disableSelect},{default:()=>[o("span",{class:this.ns.e("text")},[e.text])]}):o(i("el-radio-button"),{key:t,class:[this.ns.e("button"),this.isBtnRoundCorner?this.ns.em("button","round-corner"):""],label:uo(e.value)?String(e.value):"",disabled:this.disabled||!0===e.disableSelect},{default:()=>[o("span",{class:this.ns.em("button","text")},[e.text])]}))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]}))]);var t}});var Pf=Object.defineProperty,kf=(e,t,a)=>(((e,t,a)=>{t in e?Pf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class Sf extends Bn{constructor(){super(...arguments),kf(this,"rowNumber")}async onInit(){var e;super.onInit(),(null==(e=this.editorParams)?void 0:e.rowNumber)&&(this.rowNumber=Number(this.editorParams.rowNumber))}}var xf=Object.defineProperty,Tf=(e,t,a)=>(((e,t,a)=>{t in e?xf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class zf{constructor(){Tf(this,"formEditor","IBizRadio"),Tf(this,"gridEditor","IBizRadio")}async createController(e,t){const a=new Sf(e,t);return await a.init(),a}}const Of=a({name:"IBizDatePicker",props:Re(),emits:xe(),setup(e,{emit:t}){const a=A("date-picker"),o=e.controller,i=o.model,s=n("date"),r=n("YYYY-MM-DD"),d=n(!1),u=n(!1),p=n(),h=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));switch(i.editorType){case"DATEPICKEREX":case"DATEPICKEREX_NOTIME":s.value="date";break;case"DATEPICKEREX_NODAY":case"DATEPICKEREX_NODAY_NOSECOND":d.value=!0,s.value="time";break;default:s.value="datetime"}const m=o.valueFormat;m&&(r.value=m);const v=n();c((()=>e.value),((e,t)=>{if(e&&e!==t){const t=ho(e).format(m);v.value="Invalid Date"!==t?t:e}else null==e&&(v.value=e)}),{immediate:!0});const b=e=>{e?u.value=e:setTimeout((()=>{u.value=e}),100)};c(p,(t=>{e.autoFocus&&t&&t.focus&&t.focus()}));c(v,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0});return{ns:a,c:o,editorModel:i,type:s,format:r,formatValue:v,handleChange:(e,a)=>{t("change",e),b(!1)},editorRef:p,isTimePicker:d,onFocus:e=>{t("focus",e),b(!0)},onBlur:e=>{t("blur",e),b(!1)},isEditable:u,setEditable:b,showFormDefaultContent:h,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)}}},render(){const e=this.isTimePicker?o(i("el-time-picker"),v({ref:"editorRef",class:[this.ns.b("input")],type:this.type,format:this.format,"value-format":this.format,placeholder:this.c.placeHolder,modelValue:this.formatValue,"onUpdate:modelValue":e=>this.formatValue=e,onChange:this.handleChange,disabled:this.disabled,onFocus:this.onFocus,onBlur:this.onBlur},this.$attrs),null):o(i("el-date-picker"),v({ref:"editorRef",class:[this.ns.b("input")],type:this.type,format:this.format,"value-format":this.format,placeholder:this.c.placeHolder,modelValue:this.formatValue,"onUpdate:modelValue":e=>this.formatValue=e,onChange:this.handleChange,disabled:this.disabled,onFocus:this.onFocus,onBlur:this.onBlur},this.$attrs),null),t=this.formatValue,a=o("div",{class:this.ns.b("form-default-content")},[this.formatValue?this.formatValue:"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.e(this.editorModel.editorType),this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)],onKeyup:this.handleKeyUp},[this.showFormDefaultContent&&a,this.readonly?t:e])}});class _f extends Mn{getFormatByType(e){switch(e){case"DATEPICKER":case"DATEPICKEREX":case"DATEPICKEREX_SECOND":default:return"YYYY-MM-DD HH:mm:ss";case"DATEPICKEREX_NOTIME":return"YYYY-MM-DD";case"DATEPICKEREX_HOUR":return"YYYY-MM-DD HH";case"DATEPICKEREX_MINUTE":case"DATEPICKEREX_NOSECOND":return"YYYY-MM-DD HH:mm";case"DATEPICKEREX_NODAY":return"HH:mm:ss";case"DATEPICKEREX_NODAY_NOSECOND":return"HH:mm"}}get valueFormat(){return this.model.dateTimeFormat?this.model.dateTimeFormat:super.valueFormat?super.valueFormat:this.getFormatByType(this.model.editorType)}}var Af=Object.defineProperty,Bf=(e,t,a)=>(((e,t,a)=>{t in e?Af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class jf{constructor(){Bf(this,"formEditor","IBizDatePicker"),Bf(this,"gridEditor","IBizDatePicker")}async createController(e,t){const a=new _f(e,t);return await a.init(),a}}const Mf=a({name:"IBizRaw",props:Ne(),emits:xe(),setup(e){var t,a,o,i;const s=A("raw"),r=e.controller.model,d=n("");let u="TEXT",p="";r.contentType&&(u=r.contentType),(null==(t=r.editorParams)?void 0:t.contenttype)&&(u=null==(a=r.editorParams)?void 0:a.contenttype),(null==(o=r.editorParams)?void 0:o.template)&&(p=r.editorParams.template.replaceAll("//n","\n")),(null==(i=r.editorParams)?void 0:i.TEMPLATE)&&(p=r.editorParams.TEMPLATE.replaceAll("//n","\n"));const h=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));return c((()=>e.value),(async(t,a)=>{if(t!==a&&("string"!=typeof t&&"number"!=typeof t&&t||(d.value=t),p&&t)){let a=t;if("string"==typeof t)try{a=JSON.parse(t)}catch(e){ibiz.log.error("JSON字符串转换错误")}Array.isArray(a)||Object.assign(a,{data:{...e.data}}),d.value=await ibiz.util.hbs.render(p,a)}}),{immediate:!0}),{ns:s,content:d,type:u,template:p,showFormDefaultContent:h}},render(){return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)]},[this.content&&o(i("iBizRawItem"),{class:this.ns.b("content"),content:this.content,type:this.type},null)])}});class Rf extends Mn{}var Nf=Object.defineProperty,Lf=(e,t,a)=>(((e,t,a)=>{t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Vf{constructor(){Lf(this,"formEditor","IBizRaw"),Lf(this,"gridEditor","IBizRaw")}async createController(e,t){const a=new Rf(e,t);return await a.init(),a}}const Ff=a({name:"IBizStepper",props:Le(),emits:xe(),setup(e,{emit:t}){const a=A("stepper"),o=e.controller,i=o.model,s=n(null);let r=1,d=0,u=1/0,p=-1/0;i.editorParams&&(i.editorParams.stepvalue&&(r=Ho(i.editorParams.stepvalue)),i.editorParams.precision&&(d=Ho(i.editorParams.precision)),i.editorParams.maxvalue&&(u=Ho(i.editorParams.maxvalue)),i.editorParams.minvalue&&(p=Ho(i.editorParams.minvalue)));const h=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((e,t)=>{if(e!==t){const t=Number(e);s.value=Number.isNaN(t)?0:t}}),{immediate:!0});const m=n();return{ns:a,c:o,currentVal:s,handleChange:e=>{t("change",e)},inputRef:m,step:r,precision:d,max:u,min:p,onFocus:()=>{t("focus")},onBlur:()=>{t("blur")},showFormDefaultContent:h}},render(){let e=null;return e=this.readonly?"".concat(this.currentVal):[o(i("el-input-number"),v({ref:"inputRef",modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,placeholder:this.c.placeHolder,precision:this.precision,min:this.min,max:this.max,step:this.step,disabled:this.disabled,onChange:this.handleChange,onFocus:this.onFocus,onBlur:this.onBlur},this.$attrs),null)],o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)]},[e])}});class Uf extends Mn{}var qf=Object.defineProperty,Gf=(e,t,a)=>(((e,t,a)=>{t in e?qf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Hf{constructor(){Gf(this,"formEditor","IBizStepper"),Gf(this,"gridEditor","IBizStepper")}async createController(e,t){const a=new Uf(e,t);return await a.init(),a}}const Wf=a({name:"IBizRate",props:Ve(),emits:xe(),setup(e,{emit:t}){const a=A("rate"),o=n(),i=e.controller,s=i.model,{useInFocusAndBlur:r,useInValueChange:d}=Be(e,t);let u=[],p=!1,h=5,m=[];s.editorParams&&(s.editorParams.colors&&(u=i.toObj(s.editorParams.colors)),s.editorParams.showText&&(p=i.toBoolean(s.editorParams.showText)),s.editorParams.maxvalue&&(h=Ho(s.editorParams.maxvalue)),s.editorParams.texts&&(m=i.toObj(s.editorParams.texts)));const v=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((e,t)=>{e!==t&&(o.value=e||0)}),{immediate:!0});const{componentRef:b}=Se((()=>t("focus")),(()=>r()));return{ns:a,currentVal:o,handleChange:e=>{t("change",e),d()},colors:u,showText:p,max:h,texts:m,editorRef:b,showFormDefaultContent:v}},render(){return o("div",{class:[this.ns.b(),this.ns.is("show-default",this.showFormDefaultContent)],ref:"editorRef"},[o(i("el-rate"),v({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled||this.readonly,max:this.max,colors:this.colors,showText:this.showText,texts:this.texts,onChange:this.handleChange},this.$attrs),null)])}});class Kf extends Mn{}var Yf=Object.defineProperty,Xf=(e,t,a)=>(((e,t,a)=>{t in e?Yf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class $f{constructor(){Xf(this,"formEditor","IBizRate"),Xf(this,"gridEditor","IBizRate")}async createController(e,t){const a=new Kf(e,t);return await a.init(),a}}const Jf=a({name:"IBizSwitch",props:Fe(),emits:xe(),setup(e,{emit:t}){const a=A("switch"),o=e.controller,i=o.model,s=n(!1);let r="",d="",u=[{value:0,label:""},{value:1,label:""}];if(i.editorParams&&i.editorParams.dicData&&(u=o.toObj(i.editorParams.dicData)),u&&Array.isArray(u)){const e=u.find((e=>0===e.value));e&&(d=e.label);const t=u.find((e=>1===e.value));t&&(r=t.label)}const p=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((t,a)=>{t!==a&&(s.value=!!t&&1==e.value)}),{immediate:!0});const h=l((()=>!e.autoFocus&&(e.disabled||e.readonly))),{useInFocusAndBlur:m,useInValueChange:v}=Be(e,t),{componentRef:b}=Se((()=>t("focus")),(()=>m()));return{ns:a,currentVal:s,curDisabled:h,activeText:r,inactiveText:d,handleChange:e=>{t("change",!0===e?1:0),v()},dicData:u,editorRef:b,showFormDefaultContent:p}},render(){const e={...this.$attrs,title:""};return o("div",{class:[this.ns.b(),this.ns.is("show-default",this.showFormDefaultContent)],ref:"editorRef"},[o(i("el-switch"),v({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.curDisabled,activeText:this.activeText,inactiveText:this.inactiveText,onChange:this.handleChange},e),null)])}});class Qf extends Mn{}var Zf=Object.defineProperty,ey=(e,t,a)=>(((e,t,a)=>{t in e?Zf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class ty{constructor(){ey(this,"formEditor","IBizSwitch"),ey(this,"gridEditor","IBizSwitch")}async createController(e,t){const a=new Qf(e,t);return await a.init(),a}}const ay=a({name:"IBizSlider",props:Ue(),emits:xe(),setup(e,{emit:t}){const a=A("slider"),o=e.controller,i=o.model,{valueFormat:s}=o.parent,{useInFocusAndBlur:r,useInValueChange:d}=Be(e,t);let u=1,p=100,h=0,m=!1,v=!1,b=!1,g=!1,w=s||"0%",f="line",y="";i.editorParams&&(i.editorParams.stepvalue&&(u=Ho(i.editorParams.stepvalue)),i.editorParams.maxvalue&&(p=Ho(i.editorParams.maxvalue)),i.editorParams.minvalue&&(h=Ho(i.editorParams.minvalue)),i.editorParams.showstops&&(m=o.toBoolean(i.editorParams.showstops)),i.editorParams.range&&(v=o.toBoolean(i.editorParams.range)),i.editorParams.showinput&&(b=o.toBoolean(i.editorParams.showinput)),i.editorParams.showText&&(g=o.toBoolean(i.editorParams.showText)),i.editorParams.format&&(w=i.editorParams.format),i.editorParams.type&&(f=i.editorParams.type),i.editorParams.textItem&&(y=i.editorParams.textItem));const C=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),I=e=>{switch(f){case"line":return(e=>v?JSON.parse(e):Number(e))(e);case"circle":return(e=>100*Number(e))(e);default:return e}},D=n();c((()=>e.value),((e,t)=>{e!==t&&(D.value=null==e?v?[0,1]:0:I(e))}),{immediate:!0});const E=l((()=>{if(y){const t=e.data||{};return ibiz.util.text.format("".concat(t[y]),w)}const t=Number(D.value),a=Number(t/p);return ibiz.util.text.format("".concat(a),w)})),{componentRef:P}=Se((()=>t("focus")),(()=>r()));return{ns:a,currentVal:D,handleChange:e=>{Array.isArray(e)?t("change",JSON.stringify(e)):t("change",e),d()},step:u,max:p,min:h,type:f,textItem:y,showStops:m,range:v,showInput:b,editorRef:P,showText:g,textVal:E,showFormDefaultContent:C}},render(){let e;return"line"===this.type&&(e=[o(i("el-slider"),v({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled||this.readonly,step:this.step,max:this.max,min:this.min,showStops:this.showStops,range:this.range,showInput:this.showInput,onChange:this.handleChange},this.$attrs),null),this.showText?o("span",{class:[this.ns.em("text","val")]},[this.textVal]):null]),"circle"===this.type&&(e=o(i("el-progress"),v({type:this.type,percentage:this.currentVal},this.$attrs),{default:e=>{if(!this.showText)return"";let t=e.percentage;return this.textItem&&(t=this.textVal),o("span",{class:this.ns.em("circle","text")},[t])}})),o("div",{class:[this.ns.b(),this.readonly?this.ns.m("readonly"):"",this.showText?this.ns.e("text"):"",this.ns.is("show-default",this.showFormDefaultContent),this.ns.e(this.type)],ref:"editorRef"},[e])}});class ny extends Mn{async onInit(){super.onInit(),this.model.precision&&ibiz.log.warn("滑动输入条不支持配置精度")}}var oy=Object.defineProperty,iy=(e,t,a)=>(((e,t,a)=>{t in e?oy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class sy{constructor(){iy(this,"formEditor","IBizSlider"),iy(this,"gridEditor","IBizSlider")}async createController(e,t){const a=new ny(e,t);return await a.init(),a}}function ly(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const ry=a({name:"IBizListBox",props:qe(),emits:xe(),setup(e,{emit:t}){const a=A("list-box"),o=e.controller,i=o.model;let s=!1;i.editorParams&&i.editorParams.multiple&&(s=o.toBoolean(i.editorParams.multiple));const{useInFocusAndBlur:r,useInValueChange:d}=Be(e,t),u=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),p=o.codeList,h=i.editorType,m=n([]);(async()=>{if(Object.is("LISTBOX",h)){o.loadCodeList(e.data).then((e=>{m.value=e}))}else if(Object.is("LISTBOXPICKUP",h)){const t=o;if(t.model.appDataEntityId){const a=await t.getServiceData(e.data);a&&(m.value=a.data.map((e=>({value:e[t.keyName],text:e[t.textName]}))))}}})();q(o.model.appCodeListId,o.context.srfappid,(e=>{e&&(m.value=e)}));const v=l((()=>p&&p.orMode?p.orMode.toLowerCase():"str"));let b=",";p&&p.valueSeparator&&(b=p.valueSeparator);const g=n([]);c((()=>e.value),(e=>{if(vo(e))g.value=[];else if(s){let t=[];if("LISTBOX"===h){if(Object.is(v.value,"num")&&m){const a="string"==typeof e?parseInt(e,10):e;m.value.forEach((e=>{(a&e.value)===e.value&&t.push(e.value)}))}else if(Object.is(v.value,"str")&&""!==e&&p&&("string"==typeof e||Array.isArray(e))&&(t=Array.isArray(e)?e:e.split(b),p.codeItemValueNumber))for(let e=0,a=t.length;e<a;e++)t[e]=Number(t[e])}else"LISTBOXPICKUP"===h&&""!==e&&(t="SIMPLES"===o.model.valueType&&Array.isArray(e)?e:e.split(b));g.value=t}else g.value=[e]}),{immediate:!0,deep:!0});const{componentRef:w}=Se((()=>t("focus")),(()=>r()));return{ns:a,items:m,selectArray:g,onSelectArrayChange:e=>{let a;if(s){const t=[...e];if(Object.is("LISTBOX",h))if(Object.is(v,"num")){let e=0;t.forEach((t=>{e|=parseInt(t,10)})),a=e}else Object.is(v,"str")&&("SIMPLES"===o.model.valueType?a=t:"SIMPLE"===o.model.valueType&&(a=t.join(b)));else Object.is("LISTBOXPICKUP",h)&&("SIMPLES"===o.model.valueType?a=t:"SIMPLE"===o.model.valueType&&(a=t.join(b)))}else a=e;t("change",a),d()},multiple:s,editorRef:w,showFormDefaultContent:u}},render(){let e,t;return o("div",{class:[this.ns.b(),this.ns.is("show-default",this.showFormDefaultContent)],ref:"editorRef"},[this.multiple?o(i("el-checkbox-group"),v({class:this.ns.b("checkbox"),modelValue:this.selectArray,onChange:this.onSelectArrayChange},this.$attrs),ly(e=this.items.map(((e,t)=>o(i("el-checkbox"),{key:t,label:e.value,disabled:this.disabled||this.readonly||!0===e.disableSelect},{default:()=>{const t=this.controller;if(t.acItemProvider){const a=i(t.acItemProvider.component);return r(a,{item:e,controller:t})}return o("span",{class:this.ns.e("text")},[e.text])}}))))?e:{default:()=>[e]}):o(i("el-radio-group"),v({class:this.ns.b("radio"),modelValue:this.selectArray[0]},this.$attrs),ly(t=this.items.map(((e,t)=>o(i("el-radio"),{key:t,label:e.value,disabled:this.disabled||this.readonly||!0===e.disableSelect,onChange:()=>{this.onSelectArrayChange(e.value)}},{default:()=>{const t=this.controller;if(t.acItemProvider){const a=i(t.acItemProvider.component);return r(a,{item:e,controller:t})}return o("span",{class:this.ns.e("text")},[e.text])}}))))?t:{default:()=>[t]})])}});var cy=Object.defineProperty,dy=(e,t,a)=>(((e,t,a)=>{t in e?cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class uy extends Bn{constructor(){super(...arguments),dy(this,"codeList")}async onInit(){if(super.onInit(),this.model.appCodeListId){const e=await ibiz.hub.getApp(this.context.srfappid);this.codeList=e.codeList.getCodeList(this.model.appCodeListId)}}}var py=Object.defineProperty,hy=(e,t,a)=>(((e,t,a)=>{t in e?py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class my extends Mn{constructor(){super(...arguments),hy(this,"keyName","srfkey"),hy(this,"textName","srfmajortext"),hy(this,"interfaceName",""),hy(this,"deACMode"),hy(this,"acItemProvider")}async onInit(){super.onInit(),"LISTBOXPICKUP"===this.model.editorType&&(this.model.appDEDataSetId&&(this.interfaceName=this.model.appDEDataSetId),this.model.appDataEntityId&&this.model.appDEACModeId&&(this.deACMode=await jn(this.model.appDEACModeId,this.model.appDataEntityId,this.context.srfappid),this.deACMode&&this.deACMode.itemSysPFPluginId&&(this.acItemProvider=await Rn(this.deACMode))))}async getServiceData(e){const{context:t,params:a}=this.handlePublicParams(e,this.context,this.params),n=fo(a,{size:1e3});if(this.interfaceName){const e=ibiz.hub.getApp(this.context.srfappid);return await e.deService.exec(this.model.appDataEntityId,this.interfaceName,t,n)}throw new zt(this.model,ibiz.i18n.t("editor.common.entityConfigErr"))}}var vy=Object.defineProperty,by=(e,t,a)=>(((e,t,a)=>{t in e?vy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class gy{constructor(){by(this,"formEditor","IBizListBox"),by(this,"gridEditor","IBizListBox")}async createController(e,t){let a;return a="LISTBOXPICKUP"===e.editorType?new my(e,t):new uy(e,t),await a.init(),a}}const wy=a({name:"IBizAutoComplete",props:Ge(),emits:xe(),setup(e,{emit:t}){const a=A("autocomplete"),o=e.controller,i=o.model.editorType,s=n(""),r=n([]),d=n(!0),u=n(!1),p=n(),h=n(!1),m=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c(r,((t,a)=>{if(0===a.length&&t.length>0){const a=t.findIndex((t=>Object.is(t[o.keyName],e.value)));-1!==a&&(s.value=t[a][o.textName])}}));const v=e=>{e?u.value=e:setTimeout((()=>{u.value=e}),100)},b=async(t,a)=>{if(o.model.appDataEntityId){const n=t.trim(),i=await o.getServiceData(n,e.data);i&&(r.value=i.data,h.value=!0,a&&a instanceof Function&&a(r.value))}};c((()=>e.value),(async(e,t)=>{if(e||null===e){h.value||void 0!==t||await b(""),null===e&&(s.value="");const a=r.value.findIndex((t=>Object.is(t[o.keyName],e)));s.value=-1!==a?r.value[a][o.textName]:e}}),{immediate:!0}),c(p,(t=>{e.autoFocus&&t&&t.focus&&t.focus()}));const g=l((()=>!Object.is("AC_NOBUTTON",i))),w=l((()=>!(Object.is("AC_NOBUTTON",i)||Object.is("AC_FS_NOBUTTON",i))));let f,y=!1;const C=Lo((e=>{f!==e&&t("change",e),f=void 0,y=!1}),300,{leading:!0});return{ns:a,c:o,curValue:s,triggerOnFocus:g,autoCompleteClearable:w,onSearch:b,onClear:()=>{const e=o.dataItems;e.length>0&&e.forEach((e=>{t("change",null,e.id)})),t("change",null)},onFocus:e=>{t("focus",e),v(!0)},onBlur:e=>{t("blur",e),v(!1)},onACSelect:async e=>{await(async e=>{const a=await o.calcFillDataItems(e);a.length&&a.forEach((e=>{t("change",e.value,e.id)})),t("change",e[o.keyName])})(e),d.value=!0,v(!1)},items:r,handleInput:e=>{"AC_FS"!==i&&"AC_FS_NOBUTTON"!==i&&(y=!0,C(e))},isDebounce:y,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},editorRef:p,isEditable:u,setEditable:v,showFormDefaultContent:m}},render(){const e="ellipsis"===(this.c.editorParams.overflowMode||ibiz.config.pickerEditor.overflowMode),t=o(i("el-autocomplete"),v({class:this.ns.b("input"),ref:"editorRef",modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,"value-key":this.c.textName,placeholder:this.c.placeHolder,placement:"bottom",clearable:this.autoCompleteClearable,"popper-class":this.ns.e("transfer"),teleported:!this.showFormDefaultContent,"fetch-suggestions":this.onSearch,onClear:this.onClear,disabled:this.disabled||this.readonly,onSelect:this.onACSelect,onInput:this.handleInput,onFocus:this.onFocus,onBlur:this.onBlur,onKeyup:this.handleKeyUp,"fit-input-width":e},this.$attrs),{default:({item:t})=>{if(this.c.acItemProvider){const e=i(this.c.acItemProvider.component);return r(e,{item:t,controller:this.c})}return o("div",{class:[this.ns.e("transfer-item"),this.ns.is("ellipsis",e)],title:ht(e?t[this.c.textName]:"")},[t[this.c.textName]])},suffix:()=>{}}),a=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.curValue]),n=o("div",{class:this.ns.b("form-default-content")},[this.curValue?this.curValue:"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)]},[this.showFormDefaultContent&&n,this.readonly?a:t])}});var fy=Object.defineProperty,yy=(e,t,a)=>(((e,t,a)=>{t in e?fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Cy extends Mn{constructor(){super(...arguments),yy(this,"keyName","srfkey"),yy(this,"textName","srfmajortext"),yy(this,"interfaceName",""),yy(this,"sort",""),yy(this,"deACMode"),yy(this,"dataItems",[]),yy(this,"acItemProvider")}async onInit(){if(super.onInit(),this.model.appDataEntityId&&(this.model.appDEDataSetId&&(this.interfaceName=this.model.appDEDataSetId),this.model.appDEACModeId&&(this.deACMode=await jn(this.model.appDEACModeId,this.model.appDataEntityId,this.context.srfappid),this.deACMode))){const{minorSortAppDEFieldId:e,minorSortDir:t}=this.deACMode;e&&t&&(this.sort="".concat(e.toLowerCase(),",").concat(t.toLowerCase())),this.deACMode.textAppDEFieldId&&(this.textName=this.deACMode.textAppDEFieldId),this.deACMode.valueAppDEFieldId&&(this.keyName=this.deACMode.valueAppDEFieldId),this.deACMode.deacmodeDataItems&&(this.dataItems=[],this.deACMode.deacmodeDataItems.forEach((e=>{"value"!==e.id&&"text"!==e.id&&this.dataItems.push(e)}))),this.deACMode.itemSysPFPluginId&&(this.acItemProvider=await Rn(this.deACMode))}}async getServiceData(e,t){const{context:a,params:n}=this.handlePublicParams(t,this.context,this.params),o={};this.sort&&!Object.is(this.sort,"")&&Object.assign(o,{sort:this.sort}),e&&Object.assign(o,{query:e}),Object.assign(o,{size:1e3});const i=fo(n,o);if(this.interfaceName){const e=ibiz.hub.getApp(this.context.srfappid);return await e.deService.exec(this.model.appDataEntityId,this.interfaceName,a,i)}throw new zt(this.model,ibiz.i18n.t("editor.common.entityConfigErr"))}async calcFillDataItems(e){if(this.deACMode){if(0===this.dataItems.length)return[];return await Promise.all(this.dataItems.map((t=>{const a=e[t.appDEFieldId];return t.format||t.convertToCodeItemText&&t.codeListId||t.customCode,{id:t.id,value:a}})))}return[]}}var Iy=Object.defineProperty,Dy=(e,t,a)=>(((e,t,a)=>{t in e?Iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Ey{constructor(){Dy(this,"formEditor","IBizAutoComplete"),Dy(this,"gridEditor","IBizAutoComplete")}async createController(e,t){const a=new Cy(e,t);return await a.init(),a}}function Py(e,t,a){const o=n([]),i=n({Authorization:"Bearer ".concat(ro(mt.TOKEN))}),s=n(""),r=n(""),d={count:0,cacheFiles:[]};c((()=>e.value),(e=>{o.value=e?JSON.parse(e):[]}),{immediate:!0}),c((()=>e.data),(e=>{if(e){const t=ibiz.util.file.calcFileUpDownUrl(a.context,a.params,e,a.editorParams);s.value=t.uploadUrl,r.value=t.downloadUrl}}),{immediate:!0,deep:!0}),c(o,(e=>{(null==e?void 0:e.length)&&r.value&&e.forEach((e=>{e.url=e.url||r.value.replace("%fileId%",e.id)}))}),{immediate:!0}),c(r,(e=>{e&&o.value.length&&o.value.forEach((e=>{e.url=r.value.replace("%fileId%",e.id)}))}),{immediate:!0});const u=()=>{const e=[...o.value,...d.cacheFiles],a=e.length>0?JSON.stringify(e.map((e=>({name:e.name,id:e.id})))):null;d.cacheFiles=[],t(a)},p=l((()=>a.multiple?9999:1));return{uploadUrl:s,downloadUrl:r,headers:i,files:o,limit:p,onDownload:e=>{const t=e.url||r.value.replace("%fileId%",e.id);ibiz.util.file.fileDownload(t,e.name)},onError:(...e)=>{const t=e[0];throw d.count-=1,new _t({response:{data:JSON.parse(t.message),status:t.status}})},onRemove:t=>{if(e.disabled)return;const a=o.value.findIndex((e=>e.id===t.id));-1!==a&&o.value.splice(a,1),u()},onSuccess:e=>{e&&(d.cacheFiles.push({name:e.filename,id:e.fileid}),d.count-=1,0===d.count&&u())},beforeUpload:e=>{const t=e.size/1024/1024;return a.size&&t>a.size?(ibiz.message.error("".concat(ibiz.i18n.t("editor.upload.fileSizeErr")," ").concat(a.size,"MB!")),!1):(d.count+=1,!0)}}}const ky=a({name:"IBizFileUpload",props:He(),emits:xe(),setup(e,{emit:t}){const a=A("file-upload"),n=e.controller,{useInFocusAndBlur:o,useInValueChange:i}=Be(e,t),{uploadUrl:s,headers:r,files:c,limit:d,onDownload:u,onError:p,onRemove:h,onSuccess:m,beforeUpload:v}=Py(e,(e=>{t("change",e),i()}),n),b=l((()=>{var e;return 1===d.value&&1===(null==(e=c.value)?void 0:e.length)})),g=l((()=>!!n.parent.model.columnType)),w=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),{componentRef:f}=Se((()=>t("focus")),(()=>o()));return{ns:a,c:n,uploadUrl:s,headers:r,files:c,limit:d,noUploadIcon:b,onDownload:u,onError:p,onRemove:h,onSuccess:m,beforeUpload:v,isGridEditor:g,componentRef:f,showFormDefaultContent:w}},render(){let e;return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)],ref:"componentRef"},[o(i("el-upload"),v({class:[this.ns.b("icon"),this.ns.is("not-show",this.noUploadIcon)],"file-list":this.files,action:this.uploadUrl,headers:this.headers,disabled:this.disabled,multiple:this.c.multiple,limit:this.limit,drag:!!this.c.isDrag,accept:this.c.accept,"before-upload":this.beforeUpload,onSuccess:this.onSuccess,onError:this.onError,onRemove:this.onRemove,onPreview:this.onDownload},this.$attrs),{default:()=>{return[this.noUploadIcon?null:o(i("el-button"),{class:[this.ns.b("button")],size:this.isGridEditor?"small":"default"},(t=e=ibiz.i18n.t("editor.upload.uploadFiles"),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]}))];var t}})])}}),Sy=a({name:"IBizImageUpload",props:He(),emits:xe(),setup(e,{emit:t}){const a=A("image-upload"),o=e.controller,{useInFocusAndBlur:i,useInValueChange:s}=Be(e,t),{uploadUrl:r,headers:c,files:d,limit:u,onDownload:p,onError:h,onRemove:m,onSuccess:v,beforeUpload:b}=Py(e,(e=>{t("change",e),s()}),o),g=n([]),w=n(0),f=n(!1),y=l((()=>1===u.value&&1===d.value.length)),C=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),{componentRef:I}=Se((()=>t("focus")),(()=>i()));return{ns:a,c:o,files:d,limit:u,headers:c,uploadUrl:r,dialogImageUrl:g,dialogVisible:f,noUploadIcon:y,beforeUpload:b,onSuccess:v,onError:h,onRemove:m,onDownload:p,onDialogVisibleChange:e=>{f.value=e},onPreview:e=>{g.value=[],d.value.forEach((e=>{e.url&&g.value.push(e.url)})),w.value=d.value.findIndex((t=>t.url===e.url)),f.value=!0},componentRef:I,showFormDefaultContent:C,dialogImageUrlIndex:w}},render(){return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.readonly&&this.c.autoPreview&&this.ns.m("autosize"),this.ns.is("show-default",this.showFormDefaultContent)],ref:"componentRef"},[o("div",{class:this.ns.e("image-upload-list")},[this.files.map((e=>o("div",{key:e.id,class:this.ns.e("list-item")},[o("img",{src:e.url},null),o("div",{class:this.ns.e("list-item-cover")},[o("ion-icon",{class:this.ns.e("preview-icon"),onClick:()=>this.onPreview(e),name:"search"},null),o("ion-icon",{class:this.ns.e("download-icon"),onClick:()=>this.onDownload(e),name:"download"},null),o("ion-icon",{class:this.ns.e("remove-icon"),onClick:()=>this.onRemove(e),name:"remove"},null)])])))]),o(i("el-upload"),v({ref:"imageUpload",class:[this.ns.b("icon"),this.ns.is("not-show",this.noUploadIcon)],"file-list":this.files,action:this.uploadUrl,headers:this.headers,disabled:this.disabled,multiple:this.c.multiple,limit:this.limit,"show-file-list":!1,accept:this.c.accept,"list-type":"picture-card","before-upload":this.beforeUpload,onSuccess:this.onSuccess,onError:this.onError,onRemove:this.onRemove,onPreview:this.onDownload},this.$attrs),{default:()=>[o("ion-icon",{name:"add-outline",class:this.ns.e("image-upload-add")},null)]}),this.dialogVisible?o(i("el-image-viewer"),v({onClose:()=>this.onDialogVisibleChange(!1),"url-list":this.dialogImageUrl,"hide-on-click-modal":!0,"close-on-press-escape":!0,teleported:!0,"z-index":9999,"initial-index":this.dialogImageUrlIndex},this.$attrs),null):null])}}),xy=a({name:"IBizImagePreview",props:He(),emits:xe(),setup:e=>({ns:A("image-preview"),c:e.controller,showFormDefaultContent:l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)))}),render(){return o("div",{class:[this.ns.b(),this.ns.is("show-default",this.showFormDefaultContent)],onClick:e=>{e.stopPropagation()}},[o(i("el-image"),v({fit:"contain",src:this.value,"preview-src-list":[this.value]},this.$attrs),null)])}});var Ty=Object.defineProperty,zy=(e,t,a)=>(((e,t,a)=>{t in e?Ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Oy extends Mn{constructor(){super(...arguments),zy(this,"isDrag",!1),zy(this,"multiple",!0),zy(this,"accept",""),zy(this,"size",0),zy(this,"uploadParams"),zy(this,"exportParams"),zy(this,"autoPreview",!1)}async onInit(){var e;if(await super.onInit(),(null==(e=this.model.editorType)?void 0:e.includes("PICTURE"))&&(this.accept="image/*"),["FILEUPLOADER_ONE","PICTURE_ONE","PICTURE_ONE_RAW"].includes(this.model.editorType)&&(this.multiple=!1),this.editorParams){const{isDrag:e,multiple:t,accept:a,size:n,uploadParams:o,exportParams:i,autoPreview:s}=this.editorParams;if(e&&(this.isDrag=Boolean(e)),s&&(this.autoPreview=s),t&&(this.multiple=Boolean(t)),a&&(this.accept=a),n&&(this.size=Number(n)),o)try{this.uploadParams=JSON.parse(o)}catch(e){throw new zt(o,ibiz.i18n.t("editor.upload.uploadJsonFormatErr"))}if(i)try{this.exportParams=JSON.parse(i)}catch(e){throw new zt(i,ibiz.i18n.t("editor.upload.exportJsonFormatErr"))}}}}var _y=Object.defineProperty,Ay=(e,t,a)=>(((e,t,a)=>{t in e?_y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class By{constructor(e){Ay(this,"formEditor","IBizFileUpload"),Ay(this,"gridEditor","IBizFileUpload");let t="IBizFileUpload";switch(e){case"PICTURE":case"PICTURE_ONE":t="IBizImageUpload";break;case"PICTURE_ONE_RAW":t="IBizImagePreview"}this.formEditor=t,this.gridEditor=t}async createController(e,t){const a=new Oy(e,t);return await a.init(),a}}const jy=a({name:"IBizPicker",props:We(),emits:xe(),setup(e,{emit:t}){const a=A("picker"),o=e.controller,i=n(""),s=n([]),r=n(!0),u=n(!1),p=n(),h=n(!1),m=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),(t=>{if(t||null===t){"OBJECT"===o.model.valueType?i.value=t?t[o.objectNameField]:null:i.value=t,null===t&&(i.value="");const a=e.data[o.valueItem];if(-1!==s.value.findIndex((e=>Object.is(e[o.keyName],a))))return;s.value=[],t&&!yo(a)&&s.value.push({[o.textName]:t,[o.keyName]:a})}}),{immediate:!0});const v=e=>{e?u.value=e:setTimeout((()=>{u.value=e}),100)},b=async e=>{const a=await o.calcFillDataItems(e);a.length&&a.forEach((e=>{t("change",e.value,e.id)})),Object.assign(e,{[o.keyName]:e[o.keyName]?e[o.keyName]:e.srfkey,[o.textName]:e[o.textName]?e[o.textName]:e.srfmajortext}),o.valueItem&&t("change",e[o.keyName],o.valueItem),"OBJECT"===o.model.valueType?t("change",o.handleObjectParams(e)):t("change",e[o.textName]),v(!1)},g=async(t,a)=>{if(o.model.appDataEntityId){let n="";t!==e.value&&(n=t.trim());const i=await o.getServiceData(n,e.data);i&&(s.value=i.data,h.value=!0,a&&a instanceof Function&&a(s.value))}},w=(o.linkView?1:0)+(o.pickupView?1:0);c(p,(t=>{e.autoFocus&&t&&t.focus&&t.focus()}));const f=l((()=>Ke(i.value)));return c(f,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0}),d((()=>{c((()=>e.data[o.valueItem]),(async(a,n)=>{if(a!==n){!h.value&&p.value&&vo(e.value)&&await g("");const n=s.value.find((e=>Object.is(e[o.keyName],a)));n&&(i.value=n[o.textName]),null===a&&t("change",null)}}),{immediate:!0})})),{ns:a,c:o,curValue:i,valueText:f,items:s,openPickUpView:async t=>{t.stopPropagation();const a=await o.openPickUpView(e.data);a&&a[0]&&await b(a[0])},openLinkView:async t=>{t.stopPropagation();const a=await o.openLinkView(e.data);a&&a.ok&&a.data&&a.data.length>0&&await b(a.data[0])},onACSelect:async e=>{await b(e),r.value=!0},onSearch:g,editorRef:p,onClear:()=>{const e=o.dataItems;(null==e?void 0:e.length)&&e.forEach((e=>{t("change",null,e.id)})),o.valueItem&&t("change",null,o.valueItem),t("change",null)},onFocus:e=>{t("focus",e),v(!0)},onBlur:e=>{t("blur",e),v(!1)},handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},closeCircle:w,isEditable:u,setEditable:v,showFormDefaultContent:m}},render(){const e="ellipsis"===(this.c.editorParams.overflowMode||ibiz.config.pickerEditor.overflowMode),t=t=>{var a;const n=null==(a=this.c.deACMode)?void 0:a.itemLayoutPanel,{context:s,params:l}=this.c;if(this.c.acItemProvider){const e=i(this.c.acItemProvider.component);return r(e,{item:t,controller:this.c,onClick:()=>{this.onACSelect(t)}})}return n?o(i("iBizControlShell"),{data:t,modelData:n,context:s,params:l,onClick:()=>{this.onACSelect(t)}},null):o("div",{class:[this.ns.e("transfer-item"),this.ns.is("ellipsis",e)],title:ht(e?t[this.c.textName]:""),onClick:()=>{this.onACSelect(t)}},[t[this.c.textName]])},a=this.c.noAC?o(i("el-input"),v({ref:"editorRef",class:[this.ns.b("input")],modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,clearable:!0,placeholder:this.c.placeHolder,onClear:this.onClear,disabled:this.disabled,onBlur:this.onBlur,onFocus:this.onFocus,onKeyup:this.handleKeyUp},this.$attrs),{suffix:()=>this.$slots.append?this.$slots.append({}):this.c.noButton?void 0:[this.c.model.pickupAppViewId?o("ion-icon",{onClick:this.openPickUpView,name:"search"},null):null,this.c.model.linkAppViewId&&this.curValue?o("ion-icon",{onClick:this.openLinkView,name:"link-arrow"},null):null]}):o("div",{class:[this.ns.e("autocomplete"),this.ns.m(this.closeCircle.toString())]},[o(i("el-autocomplete"),v({ref:"editorRef",class:[this.ns.b("input")],modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,"value-key":this.c.textName,placeholder:this.c.placeHolder,clearable:!0,"popper-class":this.ns.e("transfer"),"fetch-suggestions":this.onSearch,onClear:this.onClear,onBlur:this.onBlur,onFocus:this.onFocus,onKeyup:this.handleKeyUp,disabled:this.disabled,"fit-input-width":e},this.$attrs),{default:({item:e})=>this.$slots.append?this.$slots.append({}):t(e),suffix:()=>{if(!this.c.noButton)return[this.c.model.pickupAppViewId?o("ion-icon",{onClick:this.openPickUpView,name:"search"},null):null,this.c.model.linkAppViewId&&this.curValue?o("ion-icon",{onClick:this.openLinkView,name:"link-arrow"},null):null]}})]),n=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.valueText]),s=o("div",{class:this.ns.b("form-default-content")},[this.curValue?this.valueText:"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)]},[this.showFormDefaultContent&&s,this.readonly?n:a])}});const My=a({name:"IBizMPicker",props:We(),emits:xe(),setup(e,{emit:t}){const a=A("mpicker"),o=e.controller,i=n([]),s=n([]),r=n([]),u=n(!1),p=n(!1),h=n(!1),m=n(),v=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),(e=>{if(i.value=[],r.value=[],e){if("OBJECTS"===o.model.valueType)e.forEach((e=>{const t=Wo(e);Object.assign(t,{[o.keyName]:e[o.objectIdField],[o.textName]:e[o.objectNameField]}),o.objectValueField&&(Object.assign(t,{...e[o.objectValueField]}),delete t[o.objectValueField]),t[o.keyName]&&r.value.push(t)}));else if(o.objectIdField&&o.model.valueSeparator){e.split(o.model.valueSeparator).forEach((e=>{r.value.push({[o.keyName]:e})}))}else try{r.value=JSON.parse(e)}catch(t){ibiz.log.error("SIMPLE类型地址栏值格式".concat(e,"不符合JSON字符串要求"))}r.value.forEach((e=>{i.value.push(e[o.keyName]);s.value.findIndex((t=>Object.is(t[o.keyName],e[o.keyName])))<0&&s.value.push({[o.keyName]:e[o.keyName],[o.textName]:e[o.textName]})}))}}),{immediate:!0,deep:!0}),c(m,(t=>{e.autoFocus&&t&&t.focus&&t.focus()}));const b=e=>{e?h.value=e:setTimeout((()=>{h.value=e}),100)},g=async t=>{if(o.model.appDataEntityId){p.value=!0;try{const a=t.trim(),n=await o.getServiceData(a,e.data);p.value=!1,n&&(s.value=n.data)}catch(e){p.value=!1}}},w=l((()=>r.value.map((e=>e[o.textName])).join(",")));c(w,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0});return d((()=>{o.objectNameField&&g("")})),{ns:a,c:o,curValue:i,loading:p,items:s,valueText:w,onSearch:g,onOpenChange:e=>{u.value=e,u.value&&(s.value=[],g(""))},onSelect:e=>{const a=[];let n=null;e.length>0&&(e.forEach((e=>{let t=s.value.findIndex((t=>Object.is(t[o.keyName],e))),n={};t>=0?n=s.value[t]:(t=r.value.findIndex((t=>Object.is(t[o.keyName],e))),t>=0&&(n=r.value[t])),"OBJECTS"===o.model.valueType?a.push(o.handleObjectParams(n)):o.objectIdField?a.push(n[o.keyName]):a.push({[o.keyName]:n[o.keyName],[o.textName]:n[o.textName]})})),a.length>0&&(n="OBJECTS"===o.model.valueType?a:o.objectIdField?a.join(o.model.valueSeparator):JSON.stringify(a)),t("change",n)),b(!1)},onRemove:e=>{const a=r.value.findIndex((t=>Object.is(t[o.keyName],e)));if(a>=0){r.value.splice(a,1);const e=[];let n=null;r.value.forEach((t=>{"OBJECTS"===o.model.valueType?e.push(o.handleObjectParams(t)):o.objectIdField?e.push(t[o.keyName]):e.push({[o.keyName]:t[o.keyName],[o.textName]:t[o.textName]})})),e.length>0&&(n="OBJECTS"===o.model.valueType?e:o.objectIdField?e.join(o.model.valueSeparator):JSON.stringify(e)),t("change",n)}},openPickUpView:async()=>{let a;if(r.value.length){const e=JSON.parse(JSON.stringify(r.value));e.forEach(((t,a)=>{e[a].srfkey=t[o.keyName],e[a].srfmajortext=t[o.textName]})),a=JSON.stringify(e)}const n=await o.openPickUpView(e.data,a);n&&(e=>{const a=[];e&&Array.isArray(e)&&e.forEach((e=>{Object.assign(e,{[o.keyName]:e[o.keyName]?e[o.keyName]:e.srfkey,[o.textName]:e[o.textName]?e[o.textName]:e.srfmajortext}),"OBJECTS"===o.model.valueType?a.push(o.handleObjectParams(e)):o.objectIdField?a.push(e[o.keyName]):a.push({[o.keyName]:e[o.keyName],[o.textName]:e[o.textName]}),s.value.findIndex((t=>Object.is(t[o.keyName],e[o.keyName])))<0&&s.value.push(e)}));let n=null;a.length>0&&(n="OBJECTS"===o.model.valueType?a:o.objectIdField?a.join(o.model.valueSeparator):JSON.stringify(a)),t("change",n),b(!1)})(n)},onFocus:e=>{t("focus",e),b(!0)},onBlur:e=>{t("blur",e),b(!1)},handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},selectItems:r,editorRef:m,isEditable:h,setEditable:b,showFormDefaultContent:v}},render(){let e;const t="ellipsis"===(this.c.editorParams.overflowMode||ibiz.config.pickerEditor.overflowMode),a=[!this.readonly&&o(i("el-select"),v({ref:"editorRef",class:[this.ns.b("select")],modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,filterable:!0,remote:!0,multiple:!0,teleported:!this.showFormDefaultContent,loading:this.loading,placeholder:this.c.placeHolder?this.c.placeHolder:" ","remote-method":this.onSearch,onVisibleChange:this.onOpenChange,onChange:this.onSelect,onRemoveTag:this.onRemove,disabled:this.disabled,onFocus:this.onFocus,onBlur:this.onBlur,onKeyup:this.handleKeyUp,"fit-input-width":t,"remote-show-suffix":this.c.model.showTrigger},this.$attrs),(n=e=this.items.map((e=>o(i("el-option"),{title:ht(t?e[this.c.textName]:""),key:e[this.c.keyName],value:e[this.c.keyName],label:e[this.c.textName]},{default:()=>{if(this.c.acItemProvider){const t=i(this.c.acItemProvider.component);return r(t,{item:e,controller:this.c})}return o("span",null,[null!=e[this.c.textName]?e[this.c.textName]:""])}}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?e:{default:()=>[e]})),!this.readonly&&o("div",{class:this.ns.e("buns-position")},[this.c.model.pickupAppViewId?o("div",{class:this.ns.e("btns"),onClick:this.openPickUpView},[o("ion-icon",{name:"search"},null)]):null])];var n;const l=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.valueText]),c=o("div",{class:this.ns.b("form-default-content")},[this.curValue.length>0?this.selectItems.map((e=>o("span",{class:this.ns.b("content-item")},[e[this.c.textName]]))):"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)]},[this.showFormDefaultContent&&c,this.readonly?l:a])}});const Ry=a({name:"IBizPickerDropDown",props:We(),emits:xe(),setup(e,{emit:t}){const a=A("picker-dropdown"),o=e.controller,i=n(""),s=n([]),r=n(!1),u=n(""),p=n(!1),h=n(),m=n(!1);let v=null;const b=n(!1),g=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),(t=>{if(t||null===t){"OBJECT"===o.model.valueType?i.value=t?t[o.objectNameField]:null:i.value=t,null===t&&(i.value=""),u.value=i.value;const a=e.data[o.valueItem];if(-1!==s.value.findIndex((e=>Object.is(e[o.keyName],a))))return;s.value=[],vo(t)||vo(a)||s.value.push({[o.textName]:t,[o.keyName]:a})}}),{immediate:!0}),c(h,(t=>{e.autoFocus&&t&&t.focus&&t.focus()}));const w=async t=>{if(r.value)if(o.model.appDataEntityId&&!1===m.value){m.value=!0;try{let a="";t!==e.value&&(a=t.trim());const n=await o.getServiceData(a,e.data);n&&(s.value=n.data)}finally{if(m.value=!1,b.value=!0,null!=v){const e=v;v=null,await w(e)}}}else v=t};d((()=>{c((()=>e.data[o.valueItem]),(async(a,n)=>{a!==n&&(!b.value&&h.value&&vo(e.value)&&(r.value=!0,await w("")),u.value=a,null===a&&t("change",null))}),{immediate:!0,deep:!0})}));const f=e=>{e?p.value=e:setTimeout((()=>{p.value=e}),100)},y=l((()=>Ke(i.value)));return c(y,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0}),{ns:a,c:o,refValue:u,curValue:i,valueText:y,loading:m,items:s,onOpenChange:e=>{e&&(s.value=[],w(""))},onClear:()=>{const e=o.dataItems;(null==e?void 0:e.length)&&e.forEach((e=>{t("change",null,e.id)})),o.valueItem&&t("change",null,o.valueItem),t("change",null)},onSelect:e=>{const a=s.value.findIndex((t=>Object.is(t[o.keyName],e)));a>=0&&(async e=>{const a=await o.calcFillDataItems(e);a.length&&a.forEach((e=>{t("change",e.value,e.id)}));const n=mo(e);Object.assign(n,{[o.keyName]:n[o.keyName]?n[o.keyName]:n.srfkey,[o.textName]:n[o.textName]?n[o.textName]:n.srfmajortext}),o.valueItem&&t("change",n[o.keyName],o.valueItem),"OBJECT"===o.model.valueType?t("change",o.handleObjectParams(n)):t("change",e[o.textName]),f(!1)})(s.value[a]),r.value=!1},onSearch:w,onFocus:e=>{r.value=!0,t("focus",e),f(!0)},onBlur:e=>{r.value=!1,t("blur",e),f(!1)},onClick:()=>{r.value=!0},handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},editorRef:h,isEditable:p,setEditable:f,showFormDefaultContent:g}},render(){let e;const t="ellipsis"===(this.c.editorParams.overflowMode||ibiz.config.pickerEditor.overflowMode),a=this.readonly?this.value:o(i("el-select"),v({ref:"editorRef",class:[this.ns.b("select")],modelValue:this.refValue,"onUpdate:modelValue":e=>this.refValue=e,filterable:!0,remote:!0,"remote-show-suffix":this.c.model.showTrigger,clearable:!0,loading:this.loading,placeholder:this.c.placeHolder?this.c.placeHolder:" ","remote-method":this.onSearch,onVisibleChange:this.onOpenChange,onChange:this.onSelect,onClear:this.onClear,disabled:this.disabled,onFocus:this.onFocus,onBlur:this.onBlur,onKeyup:this.handleKeyUp,onClick:this.onClick,"fit-input-width":t},this.$attrs),"function"==typeof(n=e=this.items.map((e=>o(i("el-option"),{title:ht(t?e[this.c.textName]:""),value:e[this.c.keyName],key:e[this.c.keyName],label:e[this.c.textName]},{default:()=>{if(this.c.acItemProvider){const t=i(this.c.acItemProvider.component);return r(t,{item:e,controller:this.c})}return o("span",null,[null!=e[this.c.textName]?e[this.c.textName]:""])}}))))||"[object Object]"===Object.prototype.toString.call(n)&&!s(n)?e:{default:()=>[e]});var n;const l=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.valueText]),c=o("div",{class:this.ns.b("form-default-content")},[this.curValue?this.valueText:"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)]},[this.showFormDefaultContent&&c,this.readonly?l:a])}}),Ny=a({name:"IBizPickerLink",props:We(),emits:xe(),setup(e,{emit:t}){const a=A("picker-link"),o=e.controller,i=n(""),s=n([]),{useInFocusAndBlur:r,useInValueChange:u}=Be(e,t),p=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((e,t)=>{e&&e!==t&&("OBJECT"===o.model.valueType?i.value=e?e[o.objectNameField]:"":i.value=e)}),{immediate:!0}),d((()=>{c((()=>e.data[o.valueItem]),(async(a,n)=>{if(a!==n){vo(e.value)&&await(async t=>{if(o.model.appDataEntityId){let a="";t!==e.value&&(a=t.trim());const n=await o.getServiceData(a,e.data);n&&(s.value=n.data)}})("");const n=s.value.find((e=>Object.is(e[o.keyName],a)));n&&(i.value=n[o.textName]),null===a&&t("change",null)}}),{immediate:!0})}));const{componentRef:h}=Se((()=>t("focus")),(()=>r())),m=l((()=>Ke(i.value)));return c(m,((e,a)=>{e!==a&&t("infoTextChange",e)}),{immediate:!0}),{ns:a,openLinkView:async()=>{const a=await o.openLinkView(e.data);a&&a.ok&&a.data&&a.data.length&&(e=>{const a={};Object.assign(a,e),Object.assign(a,{[o.keyName]:a[o.keyName]?a[o.keyName]:a.srfkey,[o.textName]:a[o.textName]?a[o.textName]:a.srfmajortext}),o.valueItem&&t("change",a[o.keyName],o.valueItem),"OBJECT"===o.model.valueType?t("change",o.handleObjectParams(a)):t("change",e[o.textName]),u()})(a.data[0])},curValue:i,editorRef:h,showFormDefaultContent:p}},render(){return o("div",{class:[this.ns.b(),this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)],ref:"editorRef"},[o("a",{onClick:this.openLinkView},[this.curValue])])}}),Ly=a({name:"IBizPickerEmbedView",props:We(),emits:xe(),setup(e,{emit:t}){const a=A("picker-embed-view"),o=e.controller,i=n(mo(o.context)),s=n(mo(o.params)),r=()=>{const{context:t,params:a}=o.handlePublicParams(e.data,o.context,o.params);Object.assign(i.value,t),Object.assign(s.value,a)};r(),c((()=>e.data),((e,t)=>{e!==t&&r()}));const d=o.model.editorParams,u=n(!0),p=n(!0),h=n(!0);d&&(d.multiple&&(u.value=!o.toBoolean(d.multiple)),d.checkStrictly&&(p.value=o.toBoolean(d.checkStrictly)),d.isShowText&&(h.value=o.toBoolean(d.isShowText)));const m=n([]);c((()=>e.value),(t=>{var a,n,i,s;if(m.value=[],t&&o.valueItem){const l=null==(i=null==(n=null==(a=e.data)?void 0:a[o.valueItem])?void 0:n.split)?void 0:i.call(n,","),r=null==(s=null==t?void 0:t.split)?void 0:s.call(t,",");l&&r&&(m.value=l.map(((e,t)=>({srfkey:e,srfmajortext:r[t]}))))}}),{immediate:!0});const{componentRef:v}=Se((()=>t("focus")),(()=>t("blur"))),b=l((()=>o.pickupView));return{ns:a,c:o,context:i,params:s,onSelectionChange:e=>{(e=>{let a="",n="";e&&Array.isArray(e)&&(e.forEach((e=>{a+="".concat(e.srfkey,","),n+="".concat(e.srfmajortext,",")})),a=a.substring(0,a.length-1),n=n.substring(0,n.length-1),o.valueItem&&t("change",a,o.valueItem),t("change",n))})(e.data)},editorRef:v,pickupViewModel:b,singleSelect:u,checkStrictly:p,isShowText:h,selectedData:m}},render(){var e;const t=i("IBizViewShell");return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):""],ref:"editorRef"},[this.pickupViewModel?[o("div",{class:this.ns.b("view")},[r(t,{context:this.context,params:this.params,viewId:null==(e=this.c.pickupView)?void 0:e.id,state:{singleSelect:this.singleSelect,checkStrictly:this.checkStrictly,selectedData:this.selectedData},onSelectionChange:this.onSelectionChange})]),this.isShowText&&o("div",{class:this.ns.b("value")},[this.$props.value?this.$props.value.split(",").map((e=>o("span",null,[e,b("; ")]))):o("span",null,[this.c.placeHolder])])]:null])}});const Vy=a({name:"IBizPickerSelectView",props:We(),emits:xe(),setup(e,{emit:t}){const a=A("picker-select-view"),i=e.controller,s=i.model,r=n(!0);s.editorParams&&s.editorParams.multiple&&(r.value=!i.toBoolean(s.editorParams.multiple));const u=n([]),p=n([]),h=n([]),m=n(""),v=n(!1),b=n("auto"),g=n(i.context),w=n(i.params);c((()=>e.data),(e=>{const{context:t,params:a}=i.handlePublicParams(e,i.context,i.params);Object.assign(g.value,t),Object.assign(w.value,a)}),{immediate:!0,deep:!0});const f=n(!1),y=n(null),C=n(null),I=n(null),D=n(!1),E=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),P=e=>{e?f.value=e:setTimeout((()=>{f.value=e}),100)},{componentRef:k}=Se((()=>t("focus")),(()=>t("blur")));c((()=>e.value),(t=>{if(r.value)"OBJECT"===i.model.valueType?m.value=t?t[i.objectNameField]:null:m.value=t||"",e.data&&i.valueItem&&e.data[i.valueItem]?(h.value=[{srfkey:e.data[i.valueItem],srfmajortext:e.value}],w.value.selecteddata=h.value):ibiz.log.error("值项异常");else{const a=[];if(u.value=[],p.value=[],t)if("OBJECTS"===i.model.valueType)t.forEach((e=>{const t=mo(e);Object.assign(t,{[i.keyName]:e[i.objectIdField],[i.textName]:e[i.objectNameField]}),i.objectValueField&&(Object.assign(t,{...e[i.objectValueField]}),delete t[i.objectValueField]),t[i.keyName]&&(p.value.push(t),u.value.push(t[i.keyName]))})),a.push(...t);else if(e.data&&i.valueItem&&e.data[i.valueItem]){const n=e.data[i.valueItem].split(","),o=t.split(",");n.forEach(((e,t)=>{a.push({srfmajortext:o[t],srfkey:e})})),a.forEach((e=>{u.value.push(e.srfkey);p.value.findIndex((t=>Object.is(t.srfkey,e.srfkey)))<0&&p.value.push({srfmajortext:e.srfmajortext,srfkey:e.srfkey})}))}else ibiz.log.error("值项异常");h.value=a,I.value=a}}),{immediate:!0,deep:!0}),c(k,(t=>{e.autoFocus&&t&&t.focus&&t.focus()})),d((()=>{k.value&&(b.value="".concat(k.value.$parent.$el.offsetWidth,"px"))}));const S=()=>{const e=i.dataItems;(null==e?void 0:e.length)&&e.forEach((e=>{t("change",null,e.id)})),i.valueItem&&t("change",null,i.valueItem),t("change",null)},x=e=>{if(0!==e.length){if(r.value){if(v.value=!1,i.valueItem){const a=e[0][i.keyName]?e[0][i.keyName]:e[0].srfkey;t("change",a,i.valueItem)}const a=e[0][i.textName]?e[0][i.textName]:e[0].srfmajortext;"OBJECT"===i.model.valueType?t("change",i.handleObjectParams(e[0])):t("change",a)}else if("OBJECTS"===i.model.valueType){if(e&&Array.isArray(e)){const t=[];e.forEach((e=>{const a=i.handleObjectParams(e);t.push(a)})),I.value=t}}else{let t="",a="";e&&Array.isArray(e)&&(p.value=[],e.forEach((e=>{const n=e[i.keyName]?e[i.keyName]:e.srfkey;t+="".concat(n,",");const o=e[i.textName]?e[i.textName]:e.srfmajortext;a+="".concat(o,",");p.value.findIndex((e=>Object.is(e.srfkey,n)))<0&&p.value.push({srfmajortext:o,srfkey:n})}))),t=t.substring(0,t.length-1),a=a.substring(0,a.length-1),i.valueItem&&(y.value=t),C.value=a}r.value||(0===e.length?(p.value=[],u.value=[]):Array.isArray(e)&&(p.value=e.map((e=>({srfkey:e[i.keyName]||e.srfkey,srfmajortext:e[i.textName]||e.srfmajortext}))),u.value=p.value.map((e=>e.srfkey)))),r.value||("OBJECTS"===i.model.valueType?t("change",I.value):(i.valueItem&&t("change",y.value,i.valueItem),t("change",C.value)))}else r.value?S():(p.value=[],"OBJECTS"===i.model.valueType?I.value=null:(i.valueItem&&(y.value=null),C.value=null),u.value=[])},T=e=>{e.data&&(x(e.data),r.value&&k.value&&k.value.handleClose())},z=new la({mode:ra.DRAWER,viewUsage:2,dismiss:e=>{T(e)}}),O=e=>{t("blur",e),P(!1)},_=l((()=>r.value?m.value:h.value.map((e=>e[i.textName])).join(",")));return{ns:a,c:i,singleSelect:r,keySet:u,items:p,queryValue:m,visible:v,pickViewWidth:b,context:g,params:w,editorRef:k,onInputChange:e=>{e||S()},triggerMenu:t=>{e.disabled||(v.value=t||!v.value)},onViewDataChange:x,onClear:S,openLinkView:async t=>{t.stopPropagation();const a=await i.openLinkView(e.data);a&&a.ok&&a.data&&x(a.data)},onSelectChange:e=>{const a=[];if(e.length>0&&e.forEach((e=>{const t=p.value.findIndex((t=>Object.is(t.srfkey,e)));t>=0&&a.push(p.value[t])})),"OBJECTS"===i.model.valueType){const e=[];a.forEach((t=>{const a=i.handleObjectParams(t);e.push(a)})),t("change",e)}else{let e="",n="";a.forEach((t=>{const a=t[i.keyName]?t[i.keyName]:t.srfkey;e+="".concat(a,",");const o=t[i.textName]?t[i.textName]:t.srfmajortext;n+="".concat(o,",")})),e=e.substring(0,e.length-1),n=n.substring(0,n.length-1),i.valueItem&&(y.value=e,t("change",e,i.valueItem)),C.value=n,t("change",n)}},remoteMethod:e=>{m.value=e},onSelectionChange:T,modal:z,onFocus:e=>{t("focus",e),P(!0)},onBlur:O,handleKeyUp:e=>{e&&"Enter"===e.code?t("enter",e):"Escape"===e.code&&(e.stopPropagation(),k.value&&k.value.handleClose())},valueText:_,isEditable:f,setEditable:P,showFormDefaultContent:E,onVisibleChange:e=>{D.value=e,!1===e&&O({})},showView:D,selectedData:h,handleDropDownKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),k.value&&k.value.handleClose())},arrow:()=>o("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[o("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null)])}},render(){const e=o(i("el-dropdown"),{ref:"editorRef",trigger:"click",class:this.ns.b("select"),"popper-class":this.ns.b("popper"),onVisibleChange:this.onVisibleChange,onKeydown:this.handleDropDownKeyDown},{default:()=>{let e;return this.singleSelect?o(i("el-input"),{modelValue:this.queryValue,"onUpdate:modelValue":e=>this.queryValue=e,placeholder:this.c.placeHolder,disabled:this.disabled,readonly:this.readonly,onChange:this.onInputChange,clearable:!0,onFocus:e=>{this.onFocus(e)},onKeyup:this.handleKeyUp},{suffix:()=>[this.queryValue&&!this.disabled&&!this.readonly&&o("ion-icon",{onClick:this.onClear,name:"clear"},null),this.c.model.linkAppViewId&&o("ion-icon",{onClick:this.openLinkView,name:"link-arrow"},null),this.c.model.showTrigger&&o("div",{class:[this.ns.e("arrow"),this.showView?"overturn":""]},[this.arrow()])]}):o(i("el-select"),{"popper-class":this.ns.b("select-popover"),"model-value":this.keySet,placeholder:this.c.placeHolder?this.c.placeHolder:" ",multiple:!0,filterable:!0,remote:!0,"remote-method":this.remoteMethod,onChange:this.onSelectChange,onFocus:e=>{this.onFocus(e)},onKeyup:this.handleKeyUp,disabled:this.disabled||this.readonly,"remote-show-suffix":this.c.model.showTrigger},(t=e=this.items.map(((e,t)=>o(i("el-option"),{key:e.srfkey+t,label:e.srfmajortext,value:e.srfkey},null))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]}));var t},dropdown:()=>{if(!this.showView)return;const e=i("IBizViewShell");return this.c.pickupView&&r(e,{context:this.context,params:this.params,viewId:this.c.pickupView.id,style:{height:"100%",width:this.pickViewWidth},state:{singleSelect:this.singleSelect,selectedData:this.selectedData},onSelectionChange:this.onSelectionChange,modal:this.modal})}}),t=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.valueText]),a=o("div",{class:this.ns.b("form-default-content")},[this.valueText?this.singleSelect?o("span",{class:this.ns.b("content-item")},[this.valueText]):this.valueText.split(",").map((e=>o("span",{class:this.ns.b("content-item")},[e]))):"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)]},[this.showFormDefaultContent&&a,this.readonly?t:e])}});var Fy=Object.defineProperty,Uy=(e,t,a)=>(((e,t,a)=>{t in e?Fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class qy extends Mn{constructor(){super(...arguments),Uy(this,"multiple",!1),Uy(this,"pickupView",null),Uy(this,"linkView",null),Uy(this,"valueItem",""),Uy(this,"keyName","srfkey"),Uy(this,"textName","srfmajortext"),Uy(this,"interfaceName",""),Uy(this,"sort",""),Uy(this,"noAC",!1),Uy(this,"noButton",!1),Uy(this,"deACMode"),Uy(this,"dataItems",[]),Uy(this,"objectIdField",""),Uy(this,"objectNameField",""),Uy(this,"objectValueField",""),Uy(this,"acItemProvider")}async onInit(){var e,t,a,n;if(super.onInit(),this.initParams(),this.valueItem=(null==(e=this.model.valueItemName)?void 0:e.toLowerCase())||"",this.model.appDataEntityId&&(this.model.appDEDataSetId&&(this.interfaceName=this.model.appDEDataSetId),this.model.appDEACModeId&&(this.deACMode=await jn(this.model.appDEACModeId,this.model.appDataEntityId,this.context.srfappid),this.deACMode))){const{minorSortAppDEFieldId:e,minorSortDir:t}=this.deACMode;e&&t&&(this.sort="".concat(e.toLowerCase(),",").concat(t.toLowerCase())),this.deACMode.textAppDEFieldId&&(this.textName=this.deACMode.textAppDEFieldId),this.deACMode.valueAppDEFieldId&&(this.keyName=this.deACMode.valueAppDEFieldId),this.deACMode.deacmodeDataItems&&(this.dataItems=[],this.deACMode.deacmodeDataItems.forEach((e=>{"value"!==e.id&&"text"!==e.id&&this.dataItems.push(e)}))),this.deACMode.itemSysPFPluginId&&(this.acItemProvider=await Rn(this.deACMode))}this.model.editorType&&["PICKEREX_DROPDOWNVIEW","PICKEREX_DROPDOWNVIEW_LINK","PICKUPVIEW"].includes(this.model.editorType)&&this.initPickupViewParams(),this.objectIdField=null==(t=this.model.objectIdField)?void 0:t.toLowerCase(),this.objectNameField=null==(a=this.model.objectNameField)?void 0:a.toLowerCase(),this.objectValueField=null==(n=this.model.objectValueField)?void 0:n.toLowerCase()}initParams(){switch(this.model.editorType){case"PICKEREX_NOAC":case"PICKEREX_NOAC_LINK":this.noAC=!0;break;case"PICKEREX_NOBUTTON":this.noButton=!0;break;default:this.noButton=!1,this.noAC=!1}}async initPickupViewParams(){this.model.pickupAppViewId&&(this.pickupView=await ibiz.hub.config.view.get(this.model.pickupAppViewId))}async initLinkViewParams(){this.model.linkAppViewId&&(this.linkView=await ibiz.hub.config.view.get(this.model.linkAppViewId))}async getServiceData(e,t){const{context:a,params:n}=this.handlePublicParams(t,this.context,this.params),o={};this.sort&&!Object.is(this.sort,"")&&Object.assign(o,{sort:this.sort}),e&&Object.assign(o,{query:e}),Object.assign(o,{size:1e3});const i=fo(n,o);if(this.interfaceName){const e=ibiz.hub.getApp(this.context.srfappid);return await e.deService.exec(this.model.appDataEntityId,this.interfaceName,a,i)}throw new zt(this.model,ibiz.i18n.t("editor.common.entityConfigErr"))}async openPickUpView(e,t){await this.initPickupViewParams();const{context:a,params:n}=this.handlePublicParams(e,this.context,this.params);if(t&&(n.selecteddata=t),!this.pickupView)throw new zt(this.model,ibiz.i18n.t("editor.common.selectViewConfigErr"));const o=await ibiz.commands.execute(Tn.TAG,this.pickupView.id,a,n,{openMode:"POPUPMODAL"});if(o&&o.ok&&o.data)return o.data;ibiz.log.debug("模态取消或关闭异常",o)}async openLinkView(e){const t=this.context.clone();e[this.valueItem]&&(t.srfkey=e[this.valueItem]);const{context:a,params:n}=this.handlePublicParams(e,t,this.params),{linkAppViewId:o}=this.model;if(!o)throw new zt(this.model,ibiz.i18n.t("editor.common.linkViewConfigErr"));return ibiz.commands.execute(Tn.TAG,o,a,n)}async calcFillDataItems(e){if(this.deACMode){if(0===this.dataItems.length)return[];return await Promise.all(this.dataItems.map((t=>{const a=e[t.appDEFieldId];return t.format||t.convertToCodeItemText&&t.codeListId||t.customCode,{id:t.id,value:a}})))}return[]}handleObjectParams(e){const t={};return this.objectIdField&&Object.assign(t,{[this.objectIdField]:e[this.keyName]}),this.objectNameField&&Object.assign(t,{[this.objectNameField]:e[this.textName]}),this.objectValueField&&Object.assign(t,{[this.objectValueField]:{...e}}),e.srfnodeid&&Object.assign(t,{srfnodeid:e.srfnodeid}),t}}var Gy=Object.defineProperty,Hy=(e,t,a)=>(((e,t,a)=>{t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Wy{constructor(e){Hy(this,"formEditor"),Hy(this,"gridEditor");let t="IBizPicker";switch(e){case"PICKEREX_TRIGGER":t="IBizPickerDropDown";break;case"PICKEREX_LINK":case"PICKEREX_LINKONLY":t="IBizPickerLink";break;case"ADDRESSPICKUP":case"ADDRESSPICKUP_AC":t="IBizMPicker";break;case"PICKEREX_DROPDOWNVIEW":case"PICKEREX_DROPDOWNVIEW_LINK":t="IBizPickerSelectView";break;case"PICKUPVIEW":t="IBizPickerEmbedView"}this.formEditor=t,this.gridEditor=t}async createController(e,t){const a=new qy(e,t);return await a.init(),a}}const Ky=a({name:"IBizNumberRangePicker",props:Ye(),emits:xe(),setup(e,{emit:t}){const a=A("number-range-picker"),o=e.controller,i=o.model,{useInFocusAndBlur:s,useInValueChange:r}=Be(e,t);let d=1/0,u=-1/0,p=0,h="-";const m=i.placeHolder&&i.placeHolder.split(";")[0]||"",v=i.placeHolder&&i.placeHolder.split(";")[1]||"";let b="~";i.editorParams&&(i.editorParams.maxvalue&&(d=Ho(i.editorParams.maxvalue)),i.editorParams.minvalue&&(u=Ho(i.editorParams.minvalue)),i.editorParams.precision&&(p=Ho(i.editorParams.precision)),i.editorParams.valueSeparator&&(h=i.editorParams.valueSeparator),i.editorParams.rangeSeparator&&(b=i.editorParams.rangeSeparator));const g=n([]),w=i.editorItems;if(w&&w.length>0){const e=w.map((e=>e.id));g.value=e}const f=n(null),y=n(null),C=n(!1),I=n(),D=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((e,t)=>{e!==t&&"string"==typeof e&&(f.value=e.split(h)[0]?Number(e.split(h)[0]):null,y.value=e.split(h)[1]?Number(e.split(h)[1]):null)}),{immediate:!0});const E=e=>{e?C.value=e:setTimeout((()=>{C.value=e}),100)},P=(e,a,n)=>{e===o.triggerMode&&t("change",a,n)},{componentRef:k}=Se((()=>t("focus")),(()=>s())),S=l((()=>"number"==typeof f.value&&"number"==typeof y.value?"".concat(f.value).concat(b).concat(y.value):null));return{ns:a,c:o,refFormItem:g,minValue:f,maxValue:y,handleChange:(e,t,a="blur")=>{if(0===t?f.value=e:1===t&&(y.value=e),null!==f.value&&null!==y.value&&(P(a,[f.value,y.value].join(h)),E(!1),r()),g.value){const n=g.value[t];P(a,e,n),r()}},max:d,min:u,precision:p,valueSeparator:h,startPlaceHolder:m,endPlaceHolder:v,rangeSeparator:b,componentRef:k,editorRef:I,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},onFocus:e=>{t("focus",e),E(!0)},onBlur:e=>{null!==f.value&&null!==y.value&&(t("blur",e),E(!1))},valueText:S,isEditable:C,setEditable:E,showFormDefaultContent:D}},render(){const e=o("div",{class:this.ns.b("input")},[o(i("el-input-number"),v({ref:"editorRef",min:this.min,modelValue:this.minValue,disabled:this.disabled,readonly:this.readonly,precision:this.controller.model.precision,placeholder:this.startPlaceHolder,controls:!1,onChange:e=>this.handleChange(e,0),onInput:e=>this.handleChange(e,0,"input"),onKeyup:this.handleKeyUp,onFocus:this.onFocus,onBlur:this.onBlur},this.$attrs),null),o("div",{class:this.ns.b("separator")},[this.rangeSeparator]),o(i("el-input-number"),v({min:"number"==typeof this.minValue?this.minValue+1:-1/0,max:this.max,modelValue:this.maxValue,disabled:this.disabled,readonly:this.readonly,precision:this.controller.model.precision,placeholder:this.endPlaceHolder,controls:!1,onChange:e=>this.handleChange(e,1),onInput:e=>this.handleChange(e,1,"input"),onKeyup:this.handleKeyUp,onFocus:this.onFocus,onBlur:this.onBlur},this.$attrs),null)]),t=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.valueText]),a=o("div",{class:this.ns.b("form-default-content")},[this.valueText?[o("div",{class:this.ns.b("default-min")},[this.minValue]),o("div",{class:this.ns.b("default-separator")},[this.rangeSeparator]),o("div",{class:this.ns.b("default-max")},[this.maxValue])]:"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)],ref:"componentRef"},[this.showFormDefaultContent&&a,this.readonly?t:e])}});class Yy extends Mn{}var Xy=Object.defineProperty,$y=(e,t,a)=>(((e,t,a)=>{t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class Jy{constructor(){$y(this,"formEditor","IBizNumberRangePicker"),$y(this,"gridEditor","IBizNumberRangePicker")}async createController(e,t){const a=new Yy(e,t);return await a.init(),a}}const Qy=a({name:"IBizDateRangePicker",props:Xe(),emits:xe(),setup(e,{emit:t}){const a=A("date-range-picker"),o=e.controller,i=o.model;let s=",",r=!1;const d=i.placeHolder&&i.placeHolder.split(";")[0]||"",u=i.placeHolder&&i.placeHolder.split(";")[1]||"";let p=ibiz.i18n.t("editor.dateRange.rangeSeparator");i.editorParams&&(i.editorParams.valueSeparator&&(s=i.editorParams.valueSeparator),i.editorParams.rangeSeparator&&(p=i.editorParams.rangeSeparator),i.editorParams.unlinkPanels&&(r=o.toBoolean(i.editorParams.unlinkPanels)));const h=n("daterange");switch(i.editorType){case"DATERANGE":default:h.value="datetimerange";break;case"DATERANGE_NOTIME":h.value="daterange"}const m=n("YYYY-MM-DD"),v=o.valueFormat;v&&(m.value=v);const b=n([]),g=i.editorItems;if(g&&g.length>0){const e=g.map((e=>e.id));b.value=e}const w=n(!1),f=n(),y=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),C=e=>{e?w.value=e:setTimeout((()=>{w.value=e}),100)},I=l({get(){let t=[];return b.value.length>0?b.value.forEach((a=>{e.data[a]&&t.push(e.data[a])})):e.value&&"string"==typeof e.value&&(t=e.value.split(s)),t},set(e){e&&e.length>0?(t("change",e.join(s)),b.value.length>0&&e.forEach(((e,a)=>{t("change",e,b.value[a])}))):(t("change",null),b.value.length>0&&b.value.forEach(((e,a)=>{t("change",null,b.value[a])}))),C(!1)}});c(f,(t=>{e.autoFocus&&t&&t.focus&&t.focus()}));const D=l((()=>I.value.length>0?"".concat(I.value[0]," ").concat(p," ").concat(I.value[1]):null));return{ns:a,c:o,refFormItem:b,curValue:I,type:h,format:m,valueSeparator:s,startPlaceHolder:d,endPlaceHolder:u,rangeSeparator:p,unlinkPanels:r,onFocus:e=>{t("focus",e),C(!0)},onBlur:e=>{t("blur",e),C(!1)},editorRef:f,valueText:D,isEditable:w,setEditable:C,showFormDefaultContent:y,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},onCalendarChange:e=>{o.dateRange=mo(e)}}},render(){const e=o(i("el-date-picker"),v({ref:"editorRef",modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,class:this.ns.b("input"),type:this.type,"popper-class":this.ns.b("popper"),format:this.format,"value-format":this.format,disabled:this.disabled,readonly:this.readonly,"range-separator":this.rangeSeparator,"start-placeholder":this.startPlaceHolder,"end-placeholder":this.endPlaceHolder,"unlink-panels":this.unlinkPanels,onFocus:this.onFocus,onBlur:this.onBlur,onCalendarChange:this.onCalendarChange},this.$attrs),null),t=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.valueText]),a=o("div",{class:[this.ns.b("form-default-content"),this.ns.is("has-val",this.curValue.length>0)]},[this.curValue.length>0?o(i("el-date-picker"),v({"model-value":this.curValue,class:this.ns.b("default-input"),type:this.type,format:this.format,"value-format":this.format,readonly:!0,"range-separator":this.rangeSeparator,"start-placeholder":this.startPlaceHolder,"end-placeholder":this.endPlaceHolder,"unlink-panels":this.unlinkPanels},this.$attrs),null):"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)],onKeyup:this.handleKeyUp},[this.showFormDefaultContent&&a,this.readonly?t:e])}});var Zy=Object.defineProperty,eC=(e,t,a)=>(((e,t,a)=>{t in e?Zy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class tC extends Mn{constructor(){super(...arguments),eC(this,"dateRange",[])}getFormatByType(){switch(this.model.editorType){case"DATERANGE":default:return"YYYY-MM-DD HH:mm:ss";case"DATERANGE_NOTIME":return"YYYY-MM-DD"}}get valueFormat(){return this.model.dateTimeFormat?this.model.dateTimeFormat:super.valueFormat?super.valueFormat:this.getFormatByType()}}var aC=Object.defineProperty,nC=(e,t,a)=>(((e,t,a)=>{t in e?aC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class oC{constructor(){nC(this,"formEditor","IBizDateRangePicker"),nC(this,"gridEditor","IBizDateRangePicker")}async createController(e,t){const a=new tC(e,t);return await a.init(),a}}function iC(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function sC(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function lC(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?sC(Object(a),!0).forEach((function(t){iC(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):sC(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function rC(e,t){if(null==e)return{};var a,n,o=function(e,t){if(null==e)return{};var a,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)a=i[n],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function cC(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function dC(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function uC(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function pC(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?uC(Object(a),!0).forEach((function(t){dC(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):uC(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function hC(e){return function t(){for(var a=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(a,[].concat(o,n))}}}function mC(e){return{}.toString.call(e).includes("Object")}function vC(e){return"function"==typeof e}var bC=hC((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),gC={changes:function(e,t){return mC(t)||bC("changeType"),Object.keys(t).some((function(t){return a=e,n=t,!Object.prototype.hasOwnProperty.call(a,n);var a,n}))&&bC("changeField"),t},selector:function(e){vC(e)||bC("selectorType")},handler:function(e){vC(e)||mC(e)||bC("handlerType"),mC(e)&&Object.values(e).some((function(e){return!vC(e)}))&&bC("handlersType")},initial:function(e){var t;e||bC("initialIsRequired"),mC(e)||bC("initialType"),t=e,Object.keys(t).length||bC("initialContent")}};function wC(e,t){return vC(t)?t(e.current):t}function fC(e,t){return e.current=pC(pC({},e.current),t),t}function yC(e,t,a){return vC(t)?t(e.current):Object.keys(a).forEach((function(a){var n;return null===(n=t[a])||void 0===n?void 0:n.call(t,e.current[a])})),a}var CC={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gC.initial(e),gC.handler(t);var a={current:e},n=hC(yC)(a,t),o=hC(fC)(a),i=hC(gC.changes)(e),s=hC(wC)(a);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return gC.selector(e),e(a.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(n,o,i,s)(e)}]}};var IC,DC={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},EC=(IC=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return n.length>=IC.length?IC.apply(this,n):function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return e.apply(t,[].concat(n,o))}})(DC),PC={config:function(e){var t;return e||EC("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||EC("configType"),e.urls?(console.warn(DC.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};function kC(e,t){return Object.keys(t).forEach((function(a){t[a]instanceof Object&&e[a]&&Object.assign(t[a],kC(e[a],t[a]))})),lC(lC({},e),t)}var SC={type:"cancelation",msg:"operation is manually canceled"};function xC(e){var t=!1,a=new Promise((function(a,n){e.then((function(e){return t?n(SC):a(e)})),e.catch(n)}));return a.cancel=function(){return t=!0},a}var TC,zC,OC=CC.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),_C=(zC=2,function(e){if(Array.isArray(e))return e}(TC=OC)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var a=[],n=!0,o=!1,i=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(a.push(s.value),!t||a.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return a}}(TC,zC)||function(e,t){if(e){if("string"==typeof e)return cC(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?cC(e,t):void 0}}(TC,zC)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),AC=_C[0],BC=_C[1];function jC(e){return document.body.appendChild(e)}function MC(e){var t,a,n=AC((function(e){return{config:e.config,reject:e.reject}})),o=(t="".concat(n.config.paths.vs,"/loader.js"),a=document.createElement("script"),t&&(a.src=t),a);return o.onload=function(){return e()},o.onerror=n.reject,o}function RC(){var e=AC((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){NC(t),e.resolve(t)}),(function(t){e.reject(t)}))}function NC(e){AC().monaco||BC({monaco:e})}var LC=new Promise((function(e,t){return BC({resolve:e,reject:t})})),VC={config:function(e){var t=PC.config(e),a=t.monaco,n=rC(t,["monaco"]);BC((function(e){return{config:kC(e.config,n),monaco:a}}))},init:function(){var e=AC((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(BC({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),xC(LC);if(window.monaco&&window.monaco.editor)return NC(window.monaco),e.resolve(window.monaco),xC(LC);!function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(jC,MC)(RC)}return xC(LC)},__getMonacoInstance:function(){return AC((function(e){return e.monaco}))}};const FC=a({name:"IBizCode",props:$e(),emits:xe(),setup(e,{emit:t}){const a=A("code"),i=e.controller,s=n(""),l=n(!0),r=n(!1),p=n(!1),h=n(!1),m=n(!1),v=i.model;let b,g;v.editorParams&&(v.editorParams.enableEdit&&(r.value=!0,p.value=!0,l.value=i.toBoolean(v.editorParams.enableEdit)&&!e.readonly&&!e.disabled),v.editorParams.enableFullScreen&&(h.value=i.toBoolean(v.editorParams.enableFullScreen)));const{UIStore:w}=ee(),f=e=>"dark"===e?"vs-".concat(w.theme):"vs";c((()=>w.theme),(e=>{g.setTheme(f(e))})),c((()=>e.value),(e=>{e!==s.value&&(s.value=e||"",null==b||b.setValue(s.value))}),{immediate:!0});const y=()=>{b&&((e.readonly||e.disabled)&&(r.value=!1,p.value=!0),b.updateOptions({readOnly:r.value?p.value:e.readonly||e.disabled}))};c((()=>e.readonly),y,{immediate:!0}),c((()=>e.disabled),y,{immediate:!0});const I=n(),D=()=>{u((()=>{VC.config({paths:{vs:"".concat(ibiz.env.pluginBaseUrl,"/monaco-editor@0.45.0/min/vs")}}),VC.init().then((a=>{b||(g=a.editor,b=g.create(I.value,{language:e.language||e.controller.language,theme:f(w.theme),foldingStrategy:"indentation",renderLineHighlight:"all",selectOnLineNumbers:!0,minimap:{enabled:!0},readOnly:r.value?p.value:e.readonly||e.disabled,readOnlyMessage:{value:ibiz.i18n.t("editor.code.readOnlyPrompt")},fontSize:16,scrollBeyondLastLine:!1,overviewRulerBorder:!1})),setTimeout((()=>{b.layout(),b.setValue(s.value)})),b.onDidChangeModelContent((()=>{r.value||(s.value=b.getValue(),t("change",s.value))})),window.addEventListener("resize",(()=>{b.layout()}))}))}))},E=()=>{p.value=!p.value,b&&(p.value?b.updateOptions({readOnly:!0}):b.updateOptions({readOnly:!1}))},P=async()=>{s.value=String(null==b?void 0:b.getValue()),null==b||b.dispose(),b=null,m.value=!m.value,D()};return d((()=>{D()})),C((()=>{null==b||b.dispose()})),{ns:a,currentVal:s,codeEditBox:I,isFullScreen:m,hasEnableEdit:r,readonlyState:p,renderFooter:()=>r.value?o("div",{class:[a.b("footer"),{[a.b("footer-dialog")]:m.value}]},[o("div",{class:a.be("footer","cancel"),onClick:()=>{e.value!==(null==b?void 0:b.getValue())?ti({title:ibiz.i18n.t("editor.common.confirmCancel"),type:"warning",customClass:a.b("message"),message:o("div",{class:a.be("message","message-content")},[o("p",null,[ibiz.i18n.t("editor.common.confirmCancelPrompt")]),o("p",{class:a.bem("message","message-content","message-tip")},[ibiz.i18n.t("editor.common.cancelEditPrompt")])]),showCancelButton:!0,cancelButtonClass:a.be("message","message-cancel"),confirmButtonClass:a.be("message","message-comfire")}).then((()=>{null==b||b.setValue(String(e.value||"")),E()})).catch((()=>{null==b||b.focus()})):E()}},[ibiz.i18n.t("app.cancel")]),o("div",{class:a.be("footer","save"),onClick:()=>(E(),b&&(s.value=b.getValue(),t("change",s.value)),void(m.value&&P()))},[ibiz.i18n.t("app.save")])]):null,renderHeaderToolbar:()=>r.value||h.value?o("div",{class:a.b("toolbar")},[r.value&&l.value&&p.value?o("i",{class:"fa fa-edit","aria-hidden":"true",onClick:()=>E()},null):null,h.value?m.value?o("i",{class:"fa fa-compress","aria-hidden":"true",onClick:()=>P()},null):o("i",{class:"fa fa-expand","aria-hidden":"true",onClick:()=>P()},null):null]):null,renderCodeContent:()=>o("div",{ref:I,class:a.e("box")},null),changeFullScreenState:P}},render(){return this.isFullScreen?o(i("el-dialog"),{modelValue:this.isFullScreen,"onUpdate:modelValue":e=>this.isFullScreen=e,width:"80%",top:"10vh",class:this.ns.b("dialog-full-screen"),onClose:()=>this.changeFullScreenState()},{default:()=>[o("div",{class:[this.ns.b(),{[this.ns.b("editor-readonly")]:this.readonlyState},{[this.ns.b("editor-enable")]:!this.readonlyState}]},[this.renderHeaderToolbar(),this.renderCodeContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null])]}):o("div",{class:[this.ns.b(),{[this.ns.b("editor-readonly")]:this.readonlyState},{[this.ns.b("editor-enable")]:!this.readonlyState}]},[this.renderHeaderToolbar(),this.renderCodeContent(),this.hasEnableEdit&&!this.readonlyState?this.renderFooter():null])}});class UC extends Mn{get language(){return this.editorParams.codeType||this.editorParams.language||"typescript"}get theme(){return this.editorParams.theme||"vs-dark"}}var qC=Object.defineProperty,GC=(e,t,a)=>(((e,t,a)=>{t in e?qC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class HC{constructor(){GC(this,"formEditor","IBizCode"),GC(this,"gridEditor","IBizCode")}async createController(e,t){const a=new UC(e,t);return await a.init(),a}}var WC=Object.defineProperty,KC=(e,t,a)=>(((e,t,a)=>{t in e?WC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class YC{constructor(){KC(this,"title","AI"),KC(this,"iconSvg",'<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <text x="0" y="13" font-size="16" fill="black">AI</text></svg>'),KC(this,"tag","button")}isActive(){return!1}getValue(){return"aichart"}isDisabled(){return!1}exec(e){e.emit("aiClick")}}const XC={key:"aichart",factory:()=>new YC};var $C=Object.defineProperty,JC=(e,t,a)=>(((e,t,a)=>{t in e?$C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);const QC={type:"emoji",renderElem:e=>{const{data:t={}}=e;return gs("emoji-elem",{dataset:{value:t.emoji?Tt(t.emoji):""},props:{contentEditable:!1}},[])}};class ZC{constructor(){JC(this,"title","".concat(ibiz.i18n.t("editor.html.wangEditor.emoji"))),JC(this,"tag","button"),JC(this,"iconSvg","<svg viewBox='0 0 1040 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='1490' width='1em' height='1em' stroke='var(--w-e-toolbar-color)' > <path stroke-width='38' d='M512.075261 1024A511.774217 511.774217 0 1 1 730.482434 48.769072a37.630457 37.630457 0 1 1-32.061149 68.035867 436.513303 436.513303 0 1 0 250.468323 395.270322 37.630457 37.630457 0 0 1 75.260914 0 512.526826 512.526826 0 0 1-512.075261 511.924739z' p-id='1491' ></path> <path stroke-width='38' d='M333.857416 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.499339 57.499339 0 0 0-57.348817-57.348817zM686.53006 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.348817 57.348817 0 0 0-57.348817-57.348817zM515.236219 783.165074c-162.864619 0-262.359547-141.942084-262.359547-219.159782a30.104366 30.104366 0 0 1 60.208731 0c0 48.618551 76.314567 158.951051 202.150816 158.951051s193.571072-134.114949 193.571072-158.951051a30.104366 30.104366 0 0 1 60.208731 0c0 54.488902-90.012054 219.159782-253.779803 219.159782zM1009.549904 207.720123h-67.132735V139.985301a30.104366 30.104366 0 1 0-60.208732 0v67.734822h-67.734822a30.104366 30.104366 0 0 0-30.104366 30.104366 30.104366 30.104366 0 0 0 30.104366 30.104366h67.734822v67.734823a30.104366 30.104366 0 0 0 60.208732 0v-67.734823h67.734823a30.104366 30.104366 0 0 0 30.104365-30.104366 30.104366 30.104366 0 0 0-30.706453-30.104366z' p-id='1492' ></path> </svg>")}isActive(){return!1}getValue(){return!1}isDisabled(){return!1}exec(e){e.emit("openEmojiSelect")}}const eI={renderElems:[QC],elemsToHtml:[{type:"emoji",elemToHtml:e=>{const{data:t}=e;return'<span data-w-e-type="emoji" class="emoji">'.concat(t.emoji,"</span>")}}],parseElemsHtml:[{selector:'span[data-w-e-type="emoji"]',parseElemHtml:e=>({data:{emoji:e.innerHTML},type:"emoji",children:[{text:""}]})}],menus:[{key:"emoji",factory:()=>new ZC}]};class tI extends HTMLElement{static get observedAttributes(){return["data-value"]}attributeChangedCallback(e,t,a){if("data-value"===e){if(a&&t===a)return;const e=this.attachShadow({mode:"open"}),n=e.ownerDocument.createElement("span");n.innerHTML=a,n.part.add("box"),n.classList.add("emoji-elem_box"),e.appendChild(n)}}}const aI=e=>{const{isInline:t,isVoid:a}=e;return e.isInline=e=>"emoji"===Eo.getNodeType(e)||t(e),e.isVoid=e=>"emoji"===Eo.getNodeType(e)||a(e),e},nI=a({name:"IBizHtmlEmoji",props:{modal:{type:Object,required:!0}},setup:e=>({ns:A("html-emoji"),onSelect:t=>{const a={ok:!0,data:[{emoji:Ot(t.data)}]};e.modal.dismiss(a)}}),render(){return o("div",{class:this.ns.b()},[o(i("iBizEmojiSelect"),{dark:!0,continuousList:!0,onSelect:this.onSelect},null)])}});var oI=Object.defineProperty,iI=(e,t,a)=>(((e,t,a)=>{t in e?oI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class sI extends Mn{constructor(){super(...arguments),iI(this,"uploadParams"),iI(this,"exportParams"),iI(this,"deService"),iI(this,"deACMode"),iI(this,"chatCompletion",!1),iI(this,"wangEditor"),iI(this,"overlay",null),iI(this,"cleanup",yt),iI(this,"presetPreventEvents",[13,38,40]),iI(this,"presetPreventPropEvents",[27])}async onInit(){if(await super.onInit(),this.customRegister(),this.editorParams){const{uploadParams:e,exportParams:t}=this.editorParams;if(e)try{this.uploadParams=JSON.parse(e)}catch(e){ibiz.log.error("编辑器[".concat(ibiz.log.error(e),"]编辑器参数 uploadParams 非 json 格式"))}if(t)try{this.exportParams=JSON.parse(t)}catch(e){ibiz.log.error("编辑器[".concat(ibiz.log.error(e),"]编辑器参数 exportParams 非 json 格式"))}}const e=this.model;e.appDEACModeId&&(this.deACMode=await jn(e.appDEACModeId,e.appDataEntityId,this.context.srfappid),this.deACMode&&"CHATCOMPLETION"===this.deACMode.actype&&(this.deService=await ibiz.hub.getApp(e.appId).deService.getService(this.context,e.appDataEntityId),this.chatCompletion=!0))}customRegister(){window.aichartRegister||(ko.registerMenu(XC),window.aichartRegister=!0),window.customElements.get("emoji-elem")||window.customElements.define("emoji-elem",tI),window.emojiIsRegiter||(ko.registerModule(eI),window.emojiIsRegiter=!0),window.wangEditorPlugin||(ko.registerPlugin(aI),window.wangEditorPlugin=!0)}onCreated(e){this.wangEditor=e,this.listenEvent()}listenEvent(){const e=this.wangEditor.getEditableContainer();this.wangEditor.on("openEmojiSelect",(()=>this.openEmojiSelect())),this.cleanup=bt(e,"keydown",(e=>{var t;this.overlay&&this.presetPreventEvents.includes(e.keyCode)&&e.preventDefault(),this.overlay&&this.presetPreventPropEvents.includes(e.keyCode)&&(e.stopPropagation(),null==(t=this.overlay)||t.dismiss())}))}async openEmojiSelect(){const e=document.getSelection(),{focusNode:t}=e;t&&(this.overlay=ibiz.overlay.createPopover((e=>r(nI,{modal:e})),void 0,{width:"auto",noArrow:!0,autoClose:!0,placement:"bottom-start"}),await this.overlay.present(t.parentNode),this.overlay.onWillDismiss().then((e=>{var t;const a=e,n=null==(t=a.data)?void 0:t[0];a.ok&&n&&this.addEmojiNode(n),this.overlay=null})))}addEmojiNode(e){const t={data:e,type:"emoji",children:[{text:""}]};this.wangEditor.restoreSelection(),this.wangEditor.insertNode(t),this.wangEditor.move(1)}onDestroyed(){this.cleanup!==yt&&this.cleanup(),this.overlay&&this.overlay.dismiss()}}var lI=Object.defineProperty,rI=(e,t,a)=>(((e,t,a)=>{t in e?lI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class cI{constructor(){rI(this,"formEditor","IBizHtml"),rI(this,"gridEditor","IBizHtml")}async createController(e,t){const a=new sI(e,t);return await a.init(),a}}var dI=Object.defineProperty,uI=(e,t,a)=>(((e,t,a)=>{t in e?dI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class pI extends Mn{constructor(){super(...arguments),uI(this,"uploadParams"),uI(this,"exportParams"),uI(this,"deService"),uI(this,"deACMode"),uI(this,"keyName","srfkey"),uI(this,"textName","srfmajortext"),uI(this,"sort","asc"),uI(this,"dataItems",[]),uI(this,"chatCompletion",!1)}async onInit(){if(await super.onInit(),this.style.height||(this.style.height="600px"),this.editorParams){const{uploadparams:e,exportparams:t}=this.editorParams;if(e)try{this.uploadParams=JSON.parse(e)}catch(t){throw new zt(e,ibiz.i18n.t("editor.markdown.uploadJsonFormatErr"))}if(t)try{this.exportParams=JSON.parse(t)}catch(e){throw new zt(t,ibiz.i18n.t("editor.markdown.exportJsonFormatErr"))}}const e=this.model;if(e.appDEACModeId&&(this.deACMode=await jn(e.appDEACModeId,e.appDataEntityId,this.context.srfappid),this.deACMode)){if("AUTOCOMPLETE"===this.deACMode.actype){const{minorSortAppDEFieldId:e,minorSortDir:t}=this.deACMode;e&&t&&(this.sort="".concat(e.toLowerCase(),",").concat(t.toLowerCase())),this.deACMode.textAppDEFieldId&&(this.textName=this.deACMode.textAppDEFieldId),this.deACMode.valueAppDEFieldId&&(this.keyName=this.deACMode.valueAppDEFieldId),this.deACMode.deacmodeDataItems&&(this.dataItems=[],this.deACMode.deacmodeDataItems.forEach((e=>{"value"!==e.id&&"text"!==e.id&&this.dataItems.push(e)})))}"CHATCOMPLETION"===this.deACMode.actype&&(this.deService=await ibiz.hub.getApp(e.appId).deService.getService(this.context,e.appDataEntityId),this.chatCompletion=!0)}}}var hI=Object.defineProperty,mI=(e,t,a)=>(((e,t,a)=>{t in e?hI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class vI{constructor(){mI(this,"formEditor","IBizMarkDown"),mI(this,"gridEditor","IBizMarkDown")}async createController(e,t){const a=new pI(e,t);return await a.init(),a}}const bI=a({name:"IBizArray",props:Je(),emits:xe(),setup(e,{emit:t}){const a=A("array"),o=e.controller,i=o.model;let s,r="default",d="default",u=0,p=!1,h="",m="",v="_blank";const b=n([]);i.editorParams&&(i.editorParams.editorStyle&&(r=i.editorParams.editorStyle),i.editorParams.size&&(d=i.editorParams.size),i.editorParams.limit&&(u=Ho(i.editorParams.limit)),i.editorParams.maxLength&&(s=Ho(i.editorParams.maxLength)),i.editorParams.showWordLimit&&(p=o.toBoolean(i.editorParams.showWordLimit)),i.editorParams.prepend&&(h=i.editorParams.prepend),i.editorParams.append&&(m=i.editorParams.append),i.editorParams.target&&(v=i.editorParams.target));const g=i.dataType,w=Object.is(g,"NUMBER")||Object.is(g,"INTEGER")?"number":"text",f=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((e,t)=>{if(e&&e!==t&&0===b.value.length){const t=e.map((e=>({value:e,key:lo()})));b.value=t}}),{immediate:!0});const y=(e="blur")=>{const a=b.value.map((e=>e.value));e===o.triggerMode&&t("change",a)};return{ns:a,c:o,editorStyle:r,type:w,size:d,limit:u,maxLength:s,showWordLimit:p,prepend:h,append:m,target:v,items:b,getUrl:e=>{let t=e;return t&&(h&&(t=h+t),m&&(t+=m)),t},addItem:t=>{if(e.disabled||e.readonly)return;const a={key:lo(),value:null};t?b.value.splice(t,0,a):b.value.push(a),y()},removeItem:e=>{b.value.splice(e,1),y()},handleChange:(e,t)=>{b.value[t].value=e,y()},handleInput:(e,t)=>{b.value[t].value=e,y("input")},onBlur:e=>{t("blur",e)},onFocus:e=>{t("focus",e)},handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},showFormDefaultContent:f}},render(){return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)]},[0===this.items.length?o("ion-icon",{class:this.ns.b("add-icon"),name:"add-outline",onClick:this.addItem},null):this.items.map(((e,t)=>o("div",{class:this.ns.b("item"),key:e.key},["default"===this.editorStyle?o(i("el-input"),v({type:this.type,size:this.size,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,placeholder:this.c.placeHolder,disabled:this.disabled,onBlur:this.onBlur,onFocus:this.onFocus,onKeyup:this.handleKeyUp,onChange:e=>this.handleChange(e,t),onInput:e=>this.handleInput(e,t)},this.$attrs),null):o(i("el-tooltip"),{placement:"bottom",trigger:"hover"},{default:()=>o(i("el-input"),v({type:this.type,size:this.size,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,placeholder:this.c.placeHolder,disabled:this.disabled,maxlength:Object.is(this.editorStyle,"url")?this.maxLength:null,"show-word-limit":Object.is(this.editorStyle,"url")?this.showWordLimit:null,onBlur:this.onBlur,onFocus:this.onFocus,onChange:e=>this.handleChange(e,t),onInput:e=>this.handleInput(e,t),onKeyup:this.handleKeyUp},this.$attrs),{prefix:()=>Object.is(this.editorStyle,"url")&&this.prepend?this.prepend:null,suffix:()=>Object.is(this.editorStyle,"url")&&this.append?this.append:null}),content:()=>{let t;return"img"===this.editorStyle?o(i("el-image"),{fit:"contain",src:e.value},null):o(i("el-link"),{href:this.getUrl(e.value),target:this.target},"function"==typeof(a=t=this.getUrl(e.value))||"[object Object]"===Object.prototype.toString.call(a)&&!s(a)?t:{default:()=>[t]});var a}}),!(this.disabled||this.readonly)&&o("div",{class:this.ns.b("icons")},[(!this.limit||this.items.length<this.limit)&&o("ion-icon",{class:this.ns.b("add-icon"),name:"add",onClick:()=>this.addItem(t+1)},null),o("ion-icon",{class:this.ns.b("remove-icon"),name:"remove",onClick:()=>this.removeItem(t)},null)])])))])}});class gI extends Mn{}var wI=Object.defineProperty,fI=(e,t,a)=>(((e,t,a)=>{t in e?wI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class yI{constructor(){fI(this,"formEditor","IBizArray"),fI(this,"gridEditor","IBizArray")}async createController(e,t){const a=new gI(e,t);return await a.init(),a}}const CI=a({name:"IBizCascader",props:Qe(),emits:xe(),setup(e,{emit:t}){const a=A("cascader"),o=e.controller,i=o.model,s=n(null),r=n([]),c=i.editorItems;if(c&&c.length>0){const e=c.map((e=>({name:e.id,appId:e.appId,appDataEntityId:e.appDataEntityId,appDEDataSetId:e.appDEDataSetId})));r.value=e}let d="default",u="default",p=!0,h=!1,m="/";i.editorParams&&(i.editorParams.editorStyle&&(d=i.editorParams.editorStyle),i.editorParams.size&&(u=i.editorParams.size),i.editorParams.filterable&&(p=o.toBoolean(i.editorParams.filterable)),i.editorParams.multiple&&(h=o.toBoolean(i.editorParams.multiple)),i.editorParams.separator&&(m=i.editorParams.separator));const v=n([]),b=n([]),g=n(null),w=n([]),f=n([]),y=n([]),C=n(""),I=n(!1),D=n(!1),E=n(),P=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly))),k=e=>{e?D.value=e:setTimeout((()=>{D.value=e}),100)};r.value&&r.value.length>0&&r.value.forEach((e=>{f.value.push({name:e.name,value:[]})}));const S=(t,a)=>{const{level:n,value:o}=t;I.value=!0;let i=[];if(0===n)(()=>{if(e.value&&r.value){const t=[],a=JSON.parse(e.value);if(a.forEach((e=>{t.push({label:e,value:[]})})),f.value.forEach((t=>{const a=e.data[t.name]?e.data[t.name].split(","):[];t.value=a})),w.value=[],t.forEach(((e,t)=>{f.value.forEach((a=>{e.value.push(a.value[t])}));const a=e.value.join(m);w.value.push({label:e.label,value:a})})),w.value.forEach((e=>{const t=e.value.split(m),a=e.label.split(m);t.forEach(((e,t)=>{b.value.find((t=>t.value===e))||b.value.push({value:e,label:a[t]})}))})),Object.is(d,"default")){let e=[];h?w.value.forEach((t=>{e.push(t.value.split(m))})):e=w.value[0].value.split(m),g.value=e}else{g.value=h?a:a.join(m);const e=f.value[f.value.length-1].value;if(f.value.length>1){const t=f.value[f.value.length-2].value;t&&t.length>0&&t.forEach(((t,a)=>{e[a]="".concat(t,"_").concat(e[a])}))}y.value=e}}})(),v.value.length>0?a.forEach((e=>{const t=v.value.findIndex((t=>e.value===t.value));t>-1?Object.assign(v.value[t],e):(v.value.push(e),i.push(e))})):(v.value=[...a],i=[...a]);else{const e=(t,n)=>{t&&t.length>0&&t.forEach((t=>{t.value===o?t.children&&t.children.length>0?a.forEach((e=>{const a=t.children.findIndex((t=>t.value===e.value));a>-1?Object.assign(t.children[a],e):(t.children.push(e),i.push(e))})):(t.children=a,i=a):e(t.children)}))};e(v.value)}const s=g.value||[];return setTimeout((()=>{g.value=s,I.value=!1})),i},x=()=>{var e,a;if(!I.value){f.value.forEach((e=>{e.value=[]})),(null==(e=g.value)?void 0:e.length)&&g.value.forEach(((e,t)=>{"string"==typeof e?f.value[t].value.push(e):e.forEach(((e,t)=>{f.value[t].value.push(e)}))}));const n=[];let o=[];(null==(a=g.value)?void 0:a.length)&&g.value.forEach((e=>{if(h){const t=e.map((e=>{const t=b.value.find((t=>t.value===e));if(t)return t.label}));n.push(t)}else{const t=b.value.find((t=>t.value===e));t&&n.push(t.label)}})),f.value.forEach((e=>{t("change",e.value.length>0?e.value.join(","):null,e.name)})),n.length>0&&(h?n.forEach((e=>{o.push(e.join(m))})):o=[n.join(m)]),t("change",o.length>0?JSON.stringify(o):null),k(!1)}},T=l((()=>{if(e.value){return JSON.parse(e.value)[0]}return null}));return{ns:a,c:o,valueItems:r,editorStyle:d,filterable:p,separator:m,onBlur:e=>{t("blur",e),k(!1)},onFocus:e=>{t("focus",e),k(!0)},treeData:v,items:b,selectValue:g,treeSelectData:w,valueItemData:f,defaultCheckedKeys:y,searchValue:C,isLoaded:I,getSize:()=>{switch(u){case"large":return"large";case"small":return"small";default:return"default"}},getIsLeaf:(e,t)=>e.leaf,getDisabled:(e,t)=>t.level!==r.value.length,loadData:async(e,t)=>{const{level:a}=e,n=Object.is(d,"default")?e.value:e.data?e.data.value:null,i=r.value[a];try{if(i.appDataEntityId&&i.appDEDataSetId){const{context:s,params:l}=await(async(e,t)=>{const a=mo(o.context),n=mo(o.params);if(e>0){const o=r.value[e-1];Object.assign(a,{[Nn(o.appDataEntityId)]:t});const i=await ibiz.hub.getAppDataEntity(o.appDataEntityId,o.appId);Object.assign(n,{["n_".concat(i.keyAppDEFieldId.toLowerCase(),"_eq")]:t})}return{context:a,params:n}})(a,n),c=ibiz.hub.getApp(o.context.srfappid),u=await c.deService.exec(i.appDataEntityId,i.appDEDataSetId,s,l);if(u&&200===u.status&&u.data.length>0){const o=u.data.map(((e,t)=>({...e,value:e.srfkey,label:e.srfmajortext?e.srfmajortext:ibiz.i18n.t("editor.cascader.ibizCascader.title",{index:t}),leaf:a===r.value.length-1,nodekey:"".concat(n?"".concat(n,"_").concat(e.srfkey):e.srfkey)})));if(o.forEach((e=>{const t=b.value.findIndex((t=>e.value===t.value));t>-1?b.value[t]=e:b.value.push(e)})),Object.is(d,"default")){t(S(e,o))}else t(o)}}t([])}catch(e){console.log(i,"查询数据集失败"),t([])}},treeRef:s,handleTreeClear:()=>{w.value=[],f.value.forEach((e=>{e.value=[]})),s.value&&s.value.setCheckedKeys([]),(()=>{const e=[];g.value=[],w.value.forEach((t=>{e.push(t.label)})),g.value=h?e:e.length>0?e[0]:null,f.value.forEach((e=>{t("change",e.value.length>0?e.value.join(","):null,e.name)})),t("change",g.value.length>0?JSON.stringify(g.value):null)})()},handleRemoveTag:()=>{setTimeout((()=>{x()}))},multiple:h,handleCascaderValueChange:x,editorRef:E,valueText:T,isEditable:D,setEditable:k,showFormDefaultContent:P,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)}}},render(){const e=o(i("el-cascader"),v({ref:"editorRef",class:[this.ns.b("input")],"popper-class":this.ns.b("popper"),clearable:!0,teleported:!this.showFormDefaultContent,options:this.treeData,size:this.getSize(),separator:this.separator,filterable:this.filterable,placeholder:this.c.placeHolder?this.c.placeHolder:" ",props:{lazy:!0,multiple:this.multiple,lazyLoad:this.loadData},disable:this.disabled,modelValue:this.selectValue,"onUpdate:modelValue":e=>this.selectValue=e,onBlur:this.onBlur,onFocus:this.onFocus,onRemoveTag:this.handleRemoveTag,onChange:this.handleCascaderValueChange},this.$attrs),null),t=o("div",{class:(this.ns.b(),this.ns.m("readonly"))},[this.valueText]),a=o("div",{class:this.ns.b("form-default-content")},[this.valueText?this.valueText:"-"]);return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)],onKeyup:this.handleKeyUp},[this.showFormDefaultContent&&a,this.readonly?t:e])}});class II extends Mn{}var DI=Object.defineProperty,EI=(e,t,a)=>(((e,t,a)=>{t in e?DI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class PI{constructor(){EI(this,"formEditor","IBizCascader"),EI(this,"gridEditor","IBizCascader")}async createController(e,t){const a=new II(e,t);return await a.init(),a}}const kI=a({name:"IBizColorPicker",props:Ze(),emits:xe(),setup(e,{emit:t}){const a=A("color-picker"),o=e.controller,i=n(""),s=n(null),r=n(["#000000","#2C2C2C","#50555C","#ACB3BF","#D0D3D9","#C4C4C4","#DADADA","#E5E5E5","#F0F0F0","#F24E1E","#E99C58","#FFC700","#FF4D00","#FF00D6","#D82E57","#8E1DE8","#0ACF83","#18A0FB","#A259FF","#907CFF"]),d=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((e,t)=>{e!==t&&(i.value=e||"")}),{immediate:!0});const u=l((()=>o.style?o.style:null));return{ns:a,c:o,currentVal:i,predefineColors:r,contentStyle:u,colorPicker:s,handleChange:e=>{t("change",e)},showPicker:e=>{setTimeout((()=>{s.value&&s.value.show()}),200)},onFocus:e=>{t("focus",e)},onBlur:e=>{t("blur",e)},showFormDefaultContent:d}},render(){let e=null;return e=this.readonly?"".concat(this.currentVal):o("span",{class:this.ns.b("content"),style:this.contentStyle,onClick:this.showPicker},[o(i("el-color-picker"),v({ref:"colorPicker",modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled,onChange:this.handleChange,onBlur:this.onBlur,onFocus:this.onFocus,size:"small",predefine:this.predefineColors,"show-alpha":!0},this.$attrs),null),o("span",{class:this.ns.b("text")},[this.currentVal])]),o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)],style:{color:this.currentVal||""}},[e])}});class SI extends Mn{}var xI=Object.defineProperty,TI=(e,t,a)=>(((e,t,a)=>{t in e?xI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class zI{constructor(){TI(this,"formEditor","IBizColorPicker"),TI(this,"gridEditor","IBizColorPicker")}async createController(e,t){const a=new SI(e,t);return await a.init(),a}}const OI=a({name:"IBizPresetRawitem",props:Ne(),emits:xe(),setup(e,{emit:t}){const a=A("preset-rawitem"),o=e.controller,i=o.model,{componentRef:s}=Se((()=>t("focus")),(()=>t("blur"))),l=o.model.predefinedType,r=n("");return c((()=>e.value),((e,t)=>{e!==t&&(r.value=e)}),{immediate:!0}),{ns:a,editorModel:i,editorRef:s,type:l,content:r}},render(){let e=null;return e="FIELD_IMAGE"===this.type?o(i("iBizRawItem"),{content:this.content,type:"IMAGE"},null):"FIELD_TEXT_DYNAMIC"===this.type?o(i("iBizRawItem"),{content:this.content,type:"TEXT"},null):o("div",null,[ibiz.i18n.t("editor.preset.ibizPresetRawitem.noSupportType",{type:this.type})]),o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""],ref:"editorRef"},[e])}}),_I=a({name:"IBizCarousel",props:Re(),emits:xe(),setup(e){const t=A("carousel"),a=e.controller,o=a.model,i=n([]),s=n(!0),l=n(3e3),r=n("");return c((()=>e.value),(e=>{"string"==typeof e&&(i.value=e?JSON.parse(e):[])}),{immediate:!0}),c((()=>e.data),(e=>{if(e){const t=ibiz.util.file.calcFileUpDownUrl(a.context,a.params,e,a.editorParams);r.value=t.downloadUrl}}),{immediate:!0,deep:!0}),c(i,(e=>{(null==e?void 0:e.length)&&r.value&&e.forEach((e=>{e.imgUrl=e.imgUrl||r.value.replace("%fileId%",e.id)}))}),{immediate:!0}),{ns:t,c:a,editorModel:o,downloadUrl:r,carouselData:i,isAuto:s,timeSpan:l}},render(){return o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.e(this.editorModel.editorType)]},[o(i("iBizCarouselComponent"),v({carouselData:this.carouselData,isAuto:this.isAuto,timeSpan:this.timeSpan},this.$attrs),null)])}});class AI extends Mn{}var BI=Object.defineProperty,jI=(e,t,a)=>(((e,t,a)=>{t in e?BI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class MI{constructor(){jI(this,"formEditor","IBizCarousel"),jI(this,"gridEditor","IBizCarousel")}async createController(e,t){const a=new AI(e,t);return await a.init(),a}}var RI=Object.defineProperty,NI=(e,t,a)=>(((e,t,a)=>{t in e?RI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class LI extends Mn{constructor(){super(...arguments),NI(this,"searchBarFilters",[]),NI(this,"filterControllers",[]),NI(this,"appDataEntity",null)}async onInit(){await super.onInit(),await this.initByEntitySchema(),await this.initSearchBarFilters()}async initByEntitySchema(){if(!this.model.appDataEntityId)return;const e=await ibiz.hub.getAppDataEntity(this.model.appDataEntityId,this.context.srfappid);e&&(this.appDataEntity=e);const t=await Ln(this.model.appDataEntityId,this.context);if(!t)return;const a=await Vn(t,this.model.appDataEntityId,this.model.appId);this.searchBarFilters=a}async initSearchBarFilters(){var e;(null==(e=this.searchBarFilters)?void 0:e.length)&&this.appDataEntity&&(this.searchBarFilters.forEach((e=>{const t=new Fn(e,this.appDataEntity,this.context,this.params);this.filterControllers.push(t)})),await Promise.all(this.filterControllers.map((e=>e.init()))))}}var VI=Object.defineProperty,FI=(e,t,a)=>(((e,t,a)=>{t in e?VI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class UI{constructor(){FI(this,"formEditor","IBizSearchCondEdit"),FI(this,"gridEditor","IBizSearchCondEdit")}async createController(e,t){const a=new LI(e,t);return await a.init(),a}}const qI=a({name:"IBizSearchCondEdit",props:Te(),emits:xe(),setup(e,{emit:t}){const a=A("searchcond-edit"),s=e.controller,r=n(null),d=n(!1),u=n(),p=n([]),h=n();let m;const v=l((()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly)));c((()=>e.value),((e,t)=>{if(e!==t)if(null==e)r.value="",p.value=Un();else if("string"==typeof e&&(r.value=e,e))try{const t=JSON.parse(e);p.value=t.map((e=>qn(e)))}catch(t){ibiz.log.error("".concat(e,"值格式不正确,必须为json字符串"))}}),{immediate:!0});const b=()=>{p.value=Un()};b();const g=e=>{e?d.value=e:setTimeout((()=>{d.value=e}),100)};c(u,(t=>{if(e.autoFocus&&t){t.$el.getElementsByTagName("input")[0].focus()}}));const w=()=>{const e=Gn(p.value);e&&(r.value=JSON.stringify(e,null,2))},f=async()=>{m=ibiz.overlay.createPopover((()=>o(i("iBizFilterTreeControl"),{filterControllers:s.filterControllers,filterNodes:p.value,parent:"searchcond-edit",onConfirm:()=>{w(),m&&m.dismiss(),t("change",r.value)},onCancel:()=>{b(),w(),t("change","")}},null)),void 0,{placement:"bottom-end",autoClose:!0}),m.present(h.value.$el),await m.onWillDismiss(),m=void 0};return{ns:a,c:s,currentVal:r,handleChange:e=>{t("change",e)},onFocus:e=>{t("focus",e),g(!0)},onBlur:e=>{t("blur",e),g(!1)},editorRef:u,handleKeyUp:e=>{e&&"Enter"===e.code&&t("enter",e)},isEditable:d,setEditable:g,showFormDefaultContent:v,filterNodes:p,triggerFilter:()=>{m?m.dismiss():f()},filterButtonRef:h,resetFilter:b}},render(){let e=null;return e=this.readonly?po(this.currentVal)?"":"".concat(this.currentVal):[o(i("el-input"),v({ref:"editorRef",class:[this.ns.b("input")],"model-value":this.currentVal,type:"textarea",rows:10,placeholder:this.c.placeHolder,disabled:this.disabled,controls:!1,onFocus:this.onFocus,onBlur:this.onBlur,onKeyup:this.handleKeyUp},this.$attrs),null),o(i("el-button"),{ref:"filterButtonRef",type:"primary",title:ht(ibiz.i18n.t("app.edit")),class:this.ns.b("filter"),onClick:()=>this.triggerFilter()},{default:()=>[o(i("iBizIcon"),{icon:{cssClass:"fa fa-edit"}},null)]})],o("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("editable",this.isEditable),this.ns.is("show-default",this.showFormDefaultContent)]},[e])}});var GI=a({name:"BIQuarterRangeSelect",props:{value:{type:Array,default:()=>[]}},emits:["change","visibleChange"],setup(e,{emit:t}){const a=A("bi-quarter-range-select"),i=n(),s=n(),l=n(),r=n(),d=n(),u=n(!1),p=["Q1","Q2","Q3","Q4"],h=(e,t,a)=>{let n=3*t;"START"===a&&(n-=2);const o=new Date("".concat(e,"-").concat(n));if("START"===a)o.setDate(1),o.setHours(0,0,0,0);else{[1,3,5,7,8,10,12].includes(n)?o.setDate(31):o.setDate(30),o.setHours(23,59,59,0)}return o};c((()=>e.value),(e=>{if(e&&Array.isArray(e)&&e.length>0){const t=new Date(e[0]),a=new Date(e[1]);i.value=t.getFullYear();const n=a.getFullYear();i.value===n?s.value=i.value+1:s.value=n;const o=Math.ceil((t.getMonth()+1)/3),c=Math.ceil((a.getMonth()+1)/3);l.value=h(i.value,o,"START"),r.value=h(n,c,"END")}else i.value=(new Date).getFullYear(),s.value=(new Date).getFullYear()+1,l.value=null,r.value=null}),{immediate:!0,deep:!0});const m=e=>"right"===e&&i.value===s.value?o("div",null,null):o("svg",{onClick:()=>(e=>{"left"===e?i.value-=1:s.value-=1})(e),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[o("g",{id:"aav1.icon图标/5.navigation/angle-double-left","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M7.984 7l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 7l.005.006L7.984 7zm0-4l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 3l.005.006L7.984 3z",id:"aav形状结合",transform:"rotate(-90 7.949 7.822)"},null)])]),v=e=>"left"===e&&i.value===s.value?o("div",null,null):o("svg",{onClick:()=>(e=>{"left"===e?i.value+=1:s.value+=1})(e),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[o("g",{id:"aaw1.icon图标/5.navigation/angle-double-right","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M7.984 7.3l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 7.3l.005.006.006-.006zm0-4l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 3.3l.005.006.006-.006z",id:"aaw形状结合",transform:"rotate(90 7.949 8.122)"},null)])]),b=(e,a)=>{if(l.value&&r.value&&(l.value=null,r.value=null),l.value){const n=l.value.getFullYear(),o=l.value.getMonth()+1,i=Math.ceil(o/3);e>n?r.value=h(e,a,"END"):e<n?(r.value=h(n,i,"END"),l.value=h(e,a,"START")):a>=i?r.value=h(e,a,"END"):(r.value=h(n,i,"END"),l.value=h(e,a,"START")),t("change",[l.value.toLocaleDateString(),r.value.toLocaleDateString()]),u.value=!1}else l.value=h(e,a,"START")},g=(e,t)=>{if(i.value&&s.value&&l.value&&r.value){const a=l.value.getFullYear(),n=r.value.getFullYear(),o=l.value.getMonth()+1,i=r.value.getMonth()+1,s=Math.ceil(o/3),c=Math.ceil(i/3);if(e>a&&e<n)return!0;if(e===a&&e<n&&t>=s)return!0;if(e===n&&e>a&&t<=c)return!0;if(e===a&&e===n&&t<=c&&t>=s)return!0}return!1},w=(e,t)=>{if(i.value&&s.value&&l.value&&!r.value&&d.value){const a=d.value.getFullYear(),n=d.value.getMonth()+1,o=Math.ceil(n/3);let i=l.value,s=d.value;const r=l.value.getFullYear(),c=l.value.getMonth()+1,u=Math.ceil(c/3);a<=r&&o<=u&&(s=l.value,i=d.value);const p=i.getFullYear(),h=s.getFullYear(),m=i.getMonth()+1,v=s.getMonth()+1,b=Math.ceil(m/3),g=Math.ceil(v/3);if(e>p&&e<h)return!0;if(e===p&&e<h&&t>=b)return!0;if(e===h&&e>p&&t<=g)return!0;if(a<=r&&o<u&&e===a&&t>=o&&t<=u)return!0;if(a>=r&&o>u&&e===a&&t<=o&&t>=u)return!0}return!1},f=(e,t)=>{if(l.value){const a=l.value.getFullYear(),n=l.value.getMonth()+1,o=Math.ceil(n/3);if(e===a&&o===t)return!0}if(r.value){const a=r.value.getFullYear(),n=r.value.getMonth()+1,o=Math.ceil(n/3);if(e===a&&o===t)return!0}return!1},y=(e,t)=>!!d.value&&d.value.getTime()===h(e,t,"START").getTime(),C=(e,t)=>{const a=h(e,t,"START"),n=new Date,o=a.getMonth()+1,i=Math.ceil(o/3),s=n.getFullYear(),l=n.getMonth()+1,r=Math.ceil(l/3);return e===s&&i===r},I=(e,t)=>{d.value=h(e,t,"START")},D=()=>{d.value=null};return{ns:a,renderSelect:()=>o("div",{class:a.e("date-panel")},[o("div",{class:a.em("date-panel","left")},[o("div",{class:a.em("date-panel","left-header")},[m("left"),o("span",null,[i.value,ibiz.i18n.t("editor.dateRangeSelect.year")]),v("left")]),o("div",{class:a.em("date-panel","left-content")},[p.map(((e,t)=>o("div",{class:[a.em("date-panel","left-item"),a.is("include",g(i.value,t+1)),a.is("selected",f(i.value,t+1)),a.is("hoverinclude",w(i.value,t+1)),a.is("curquarter",C(i.value,t+1)),a.is("hover",y(i.value,t+1))],onClick:()=>b(i.value,t+1),onMouseenter:()=>I(i.value,t+1),onMouseleave:()=>D()},[e])))])]),o("div",{class:a.em("date-panel","right")},[o("div",{class:a.em("date-panel","right-header")},[m("right"),o("span",null,[s.value,ibiz.i18n.t("editor.dateRangeSelect.year")]),v("right")]),o("div",{class:a.em("date-panel","right-content")},[p.map(((e,t)=>o("div",{class:[a.em("date-panel","right-item"),a.is("selected",f(s.value,t+1)),a.is("include",g(s.value,t+1)),a.is("hoverinclude",w(s.value,t+1)),a.is("curquarter",C(s.value,t+1)),a.is("hover",y(s.value,t+1))],onClick:()=>b(s.value,t+1),onMouseenter:()=>I(s.value,t+1),onMouseleave:()=>D()},[e])))])])]),visible:u,handleClose:()=>{u.value=!1},handleOpen:()=>{u.value=!0},visibleChange:e=>{t("visibleChange",e)}}},render(){return o("div",{class:this.ns.b()},[o(i("el-popover"),{visible:this.visible,"onUpdate:visible":e=>this.visible=e,trigger:"click",width:600,"popper-class":this.ns.b("quarter-pop"),placement:"right",onAfterEnter:()=>this.visibleChange(!0),onAfterLeave:()=>this.visibleChange(!1)},{default:()=>this.renderSelect(),reference:()=>o("div",null,null)})])}}),HI=a({name:"BIYearRangeSelect",props:{value:{type:Array,default:()=>[]}},emits:["change","visibleChange"],setup(e,{emit:t}){const a=A("bi-year-range-select"),i=n(),s=n(!1),l=n([(new Date).getFullYear()-(new Date).getFullYear()%10,(new Date).getFullYear()+(9-(new Date).getFullYear()%10)]),r=n([(new Date).getFullYear()+(10-(new Date).getFullYear()%10),(new Date).getFullYear()+(19-(new Date).getFullYear()%10)]),d=n({start:void 0,end:void 0}),u=n([]),p=n([]),h=(e,t)=>{let a=e-1;const n=[];for(;a<=t+1;)n.push(a),a+=1;return n};u.value=h(l.value[0],l.value[1]),p.value=h(r.value[0],r.value[1]),c((()=>e.value),(e=>{if(e&&Array.isArray(e)&&e.length>0){const t=Number(e[0]),a=Number(e[1]);Number.isNaN(t)||Number.isNaN(a)||(l.value=[t-t%10,t+(9-t%10)],d.value.start=t,r.value=[a-a%10,a+(9-a%10)],d.value.end=a)}else l.value=[(new Date).getFullYear()-(new Date).getFullYear()%10,(new Date).getFullYear()+(9-(new Date).getFullYear()%10)],r.value=[(new Date).getFullYear()+(10-(new Date).getFullYear()%10),(new Date).getFullYear()+(19-(new Date).getFullYear()%10)]}),{immediate:!0,deep:!0});const m=e=>"right"===e&&l.value&&r.value&&l.value.at(-1)===r.value[0]-1?o("div",null,null):o("svg",{onClick:()=>(e=>{"left"===e?(l.value[0]-=10,l.value[1]-=10,u.value=h(l.value[0],l.value[1])):(r.value[0]-=10,r.value[1]-=10,p.value=h(r.value[0],r.value[1]))})(e),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[o("g",{id:"aav1.icon图标/5.navigation/angle-double-left","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M7.984 7l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 7l.005.006L7.984 7zm0-4l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 3l.005.006L7.984 3z",id:"aav形状结合",transform:"rotate(-90 7.949 7.822)"},null)])]),v=e=>"left"===e&&l.value&&r.value&&l.value.at(-1)===r.value[0]-1?o("div",null,null):o("svg",{onClick:()=>(e=>{"left"===e?(l.value[0]+=10,l.value[1]+=10,u.value=h(l.value[0],l.value[1])):(r.value[0]+=10,r.value[1]+=10,p.value=h(r.value[0],r.value[1]))})(e),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[o("g",{id:"aaw1.icon图标/5.navigation/angle-double-right","stroke-width":"1","fill-rule":"evenodd"},[o("path",{d:"M7.984 7.3l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 7.3l.005.006.006-.006zm0-4l4.75 4.762-.832.817-3.924-3.924-3.99 3.99-.825-.836L7.973 3.3l.005.006.006-.006z",id:"aaw形状结合",transform:"rotate(90 7.949 8.122)"},null)])]),b=e=>{if(d.value.start&&d.value.end&&(d.value.start=void 0,d.value.end=void 0),d.value.start){if(e>=d.value.start)d.value.end=e;else{const t=d.value.start;d.value.start=e,d.value.end=t}t("change",[null==(a=d.value.start)?void 0:a.toString(),null==(n=d.value.end)?void 0:n.toString()]),s.value=!1}else d.value.start=e;var a,n},g=e=>!!(d.value.start&&d.value.end&&e>=d.value.start&&e<=d.value.end),w=e=>{if(d.value.start&&!d.value.end&&i.value){let t=d.value.start,a=i.value;if(i.value<d.value.start&&(a=d.value.start,t=i.value),e>=t&&e<=a)return!0}return!1},f=e=>d.value.start===e||d.value.end===e,y=e=>e===(new Date).getFullYear(),C=e=>{i.value=e},I=()=>{i.value=null};return{ns:a,visible:s,renderSelect:()=>{var e,t;return o("div",{class:a.e("date-panel")},[o("div",{class:a.em("date-panel","left")},[o("div",{class:a.em("date-panel","left-header")},[m("left"),o("span",null,[null==(e=l.value)?void 0:e.join("-")]),v("left")]),o("div",{class:a.em("date-panel","left-content")},[u.value.map((e=>o("div",{class:[a.em("date-panel","left-item"),a.is("selected",f(e)),a.is("include",g(e)),a.is("hover",i.value===e),a.is("curyear",y(e)),a.is("hoverinclude",w(e))],onClick:()=>b(e),onMouseenter:()=>C(e),onMouseleave:()=>I()},[e])))])]),o("div",{class:a.em("date-panel","right")},[o("div",{class:a.em("date-panel","right-header")},[m("right"),o("span",null,[null==(t=r.value)?void 0:t.join("-")]),v("right")]),o("div",{class:a.em("date-panel","right-content")},[p.value.map((e=>o("div",{class:[a.em("date-panel","right-item"),a.is("selected",f(e)),a.is("include",g(e)),a.is("hover",i.value===e),a.is("curyear",y(e)),a.is("hoverinclude",w(e))],onClick:()=>b(e),onMouseenter:()=>C(e),onMouseleave:()=>I()},[e])))])])])},handleClose:()=>{s.value=!0},handleOpen:()=>{s.value=!0},visibleChange:e=>{s.value=e,t("visibleChange",e)}}},render(){return o("div",{class:this.ns.b()},[o(i("el-popover"),{visible:this.visible,"onUpdate:visible":e=>this.visible=e,trigger:"click",width:600,placement:"top",onAfterEnter:()=>this.visibleChange(!0),onAfterLeave:()=>this.visibleChange(!1)},{default:()=>this.renderSelect(),reference:()=>o("div",null,null)})])}});e("c","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function WI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}!function(e){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1100?"上午":a<1300?"中午":a<1800?"下午":"晚上"}};return a.default.locale(n,null,!0),n}(ho)}({exports:{}});const KI=a({name:"IBizDateRangeSelect",components:{"bi-quarter-range-select":GI,"bi-year-range-select":HI,"bi-week-range-select":a({props:{value:{type:Array,default:()=>[]}},emits:["change","visibleChange"],setup(e,{emit:t}){const a=A("bi-week-range"),o=n(),i=n(),s=n(!1),l=ho(new Date).format("YYYY/MM/DD"),r=n(),d=n();let u=!1;const p=n(),h=()=>{r.value=null,d.value=null};c((()=>e.value),(e=>{e&&Array.isArray(e)?(r.value=new Date(e[0]),d.value=new Date(e[1])):h()}),{immediate:!0,deep:!0});const m=e=>{const t=e.getDay();let a=t;0===t&&(a=7);const n=e.getTime()+24*(7-a)*60*60*1e3,o=new Date(n);return o.setHours(23,59,59,0),o},v=e=>{const t=e.getDay();let a=t;0===t&&(a=7);const n=e.getTime()-24*(a-1)*60*60*1e3,o=new Date(n);return o.setHours(0,0,0,0),o},b=e=>{const{date:t}=e;if(p.value){const e=v(p.value),a=m(p.value),n=t.getTime();if(e.getTime()<=n&&a.getTime()>=n)return!0}return!1};return{ns:a,curValue:o,weekRangeRef:i,isInRange:e=>{const{date:t}=e,a=t.getTime();if(r.value&&d.value){const e=r.value.getTime(),t=d.value.getTime();if(a>=e&&a<=t)return!0}return!1},isInHoverRange:e=>{var t;const{date:a}=e,n=a.getTime();if(r.value&&!d.value&&p.value){const a=null==(t=p.value)?void 0:t.getTime();let o=r.value,i=p.value;a<r.value.getTime()&&(i=r.value,o=p.value);const s=o.getTime(),l=i.getTime();return n>=s&&n<=l||b(e)}return!1},isEnded:e=>{const{date:t}=e;if(d.value){const e=m(d.value),a=v(d.value);return t.getTime()>=a.getTime()&&t.getTime()<=e.getTime()}},isStarted:e=>{const{date:t}=e;if(r.value){const e=m(r.value),a=v(r.value);return t.getTime()>=a.getTime()&&t.getTime()<=e.getTime()}},isToday:e=>e.dayjs.format("YYYY/MM/DD")===l,weekRangeClick:()=>{s.value?i.value.handleClose():i.value.handleOpen()},cellClick:e=>{const{date:t}=e;if(u){const e=m(t),a=v(t);a.getTime()>r.value.getTime()?d.value=e:(d.value=m(r.value),r.value=a),u=!1}else h(),r.value=v(t),u=!0},visibleChange:e=>{s.value=e,t("visibleChange",e)},handleChange:()=>{if(r.value&&d.value){const e=r.value.toLocaleDateString(),a=d.value.toLocaleDateString();t("change",[e,a])}},handleClose:()=>{i.value.handleClose()},handleOpen:()=>{i.value.handleOpen()},isHover:b,isMonday:e=>{const{date:t}=e;return 1===t.getDay()},isSunday:e=>{const{date:t}=e;return 0===t.getDay()},onMouseHover:e=>{const{date:t}=e;p.value=t},onMouseleave:()=>{p.value=null}}},render(){return o("div",{class:this.ns.b(),onClick:this.weekRangeClick},[o(i("el-date-picker"),{ref:"weekRangeRef",modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,"popper-class":this.ns.b("picker-pop"),type:"daterange",onChange:this.handleChange,onVisibleChange:this.visibleChange},{default:e=>o("div",{class:[this.ns.e("cell-item"),this.ns.is("inrange",this.isInRange(e)&&!this.isEnded(e)&&!this.isStarted(e)),this.ns.is("inhoverrange",this.isInHoverRange(e)&&!this.isEnded(e)&&!this.isStarted(e)),this.ns.is("hover",this.isHover(e)&&!this.isEnded(e)&&!this.isStarted(e)),this.ns.is("left",0===e.column),this.ns.is("right",6===e.column),this.ns.is("ended",this.isEnded(e)),this.ns.is("started",this.isStarted(e)),this.ns.is("monday",this.isMonday(e)),this.ns.is("sunday",this.isSunday(e))],onMouseenter:()=>this.onMouseHover(e),onMouseleave:()=>this.onMouseleave(),onClick:()=>this.cellClick(e)},[o("span",{class:[this.ns.em("cell-item","text"),this.ns.is("today",this.isToday(e))]},[e.text])])})])}})},props:{...Re(),value:{type:Object}},emits:["change"],setup(e,{emit:t}){const a=A("date-range-select"),l=e.controller,r=n(l.defaultUnit),u=n(),h=n("DYNAMIC"),m=n({DYNAMIC:null,STATIC:null}),v=n({ALL:!1,STATIC:!1,DYNAMIC:!1}),b=n(),g=n(!1),w=[{value:"DAY",label:ibiz.i18n.t("editor.dateRangeSelect.day")},{value:"WEEK",label:ibiz.i18n.t("editor.dateRangeSelect.week")},{value:"MONTH",label:ibiz.i18n.t("editor.dateRangeSelect.month")},{value:"QUARTER",label:ibiz.i18n.t("editor.dateRangeSelect.quarter")},{value:"YEAR",label:ibiz.i18n.t("editor.dateRangeSelect.year")}],f=[{caption:ibiz.i18n.t("editor.dateRangeSelect.static"),type:"STATIC"},{caption:ibiz.i18n.t("editor.dateRangeSelect.dynamic"),type:"DYNAMIC"}],y=(e,t,a,n)=>{b.value=l.handleTimeToText(e,r.value,t,a,n)},C=()=>{u.value=l.initDefaultDate(r.value);const{start:a,end:n}=e.controller.computedDateTypesTime(r.value,"DYNAMIC",u.value[0],u.value[1]);y("DYNAMIC",u.value,a,n),t("change",{unit:r.value,type:"DYNAMIC",start:a,end:n})},I=()=>{C()},D=(a,n)=>{v.value[a]=!1,v.value.ALL=!1,u.value=n;const{start:o,end:i}=e.controller.computedDateTypesTime(r.value,a,n[0],n[1]);y(a,n,o,i),t("change",{start:o,end:i,unit:r.value,type:h.value})},E=(e,t)=>{t||(v.value[e]=!1,v.value.STATIC||v.value.DYNAMIC||g.value?g.value=!1:v.value.ALL=!1)},P=e=>{e.stopPropagation(),e.preventDefault(),v.value.ALL=!v.value.ALL},k=(e,t)=>{m.value[e]=t},S=e=>{if("QUARTER"===r.value)return o(i("bi-quarter-range-select"),{ref:t=>k(e,t),class:[a.em("date-type","editor"),a.em("date-type","quarter")],value:u.value,onVisibleChange:t=>E(e,t),onChange:t=>D(e,t)},null);if("YEAR"===r.value)return o(i("bi-year-range-select"),{ref:t=>k(e,t),class:[a.em("date-type","editor"),a.em("date-type","year")],value:u.value,onVisibleChange:t=>E(e,t),onChange:t=>D(e,t)},null);if("WEEK"===r.value)return o(i("bi-week-range-select"),{ref:t=>k(e,t),class:[a.em("date-type","editor"),a.em("date-type","week")],value:u.value,onChange:t=>D(e,t),onVisibleChange:t=>E(e,t)},null);const t="DAY"===r.value?"daterange":"monthrange",n="DAY"===r.value?"YYYY-MM-DD":"YYYY-MM";return o(i("el-date-picker"),{ref:t=>k(e,t),modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,class:a.em("date-type","editor"),type:t,format:"YYYY-MM-DD","value-format":n,onVisibleChange:t=>E(e,t),onChange:t=>D(e,t)},null)},x=()=>{v.value.DYNAMIC||v.value.STATIC||(v.value.ALL=!1)};return c((()=>e.value),(e=>{if(e&&Object.keys(e).length>0){const{start:t,end:a,unit:n,type:o}=e;r.value=n,h.value=o,u.value=l.computedDynamicTimeToDate(r.value,h.value,t,a),y(h.value,u.value,t,a)}else C()}),{immediate:!0}),d((()=>{window.addEventListener("click",x)})),p((()=>{window.removeEventListener("click",x)})),{ns:a,c:l,renderDateUnit:()=>{let e;return o("div",{class:a.e("date-unit")},[o("span",{class:a.em("date-unit","label")},[ibiz.i18n.t("editor.dateRangeSelect.dateUnit")]),o("div",{class:a.em("date-unit","editor")},[o(i("el-select"),{modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:a.em("date-unit","editor-select"),onChange:I},(t=e=w.map((e=>o(i("el-option"),{key:e.value,value:e.value,label:e.label},{default:()=>e.label}))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!s(t)?e:{default:()=>[e]}))])]);var t},renderDateRange:()=>o("div",{class:a.e("date-range")},[o("div",{class:a.em("date-range","label")},[ibiz.i18n.t("editor.dateRangeSelect.daterange")]),o(i("el-popover"),{visible:v.value.ALL||v.value.DYNAMIC||v.value.STATIC,trigger:"click",width:"240px","popper-class":a.b("date-range-select")},{reference:()=>o("div",{class:a.em("date-range","editor"),onClick:P},[o("span",{class:a.em("select","time-caption")},[o("div",{class:a.e("select-value")},[b.value])]),o("i",{class:"fa fa-angle-down","aria-hidden":"true"},null)]),default:()=>o("div",{class:a.e("date-type")},[f.map((t=>o("div",{class:a.em("date-type","item"),onClick:a=>((t,a)=>{if(a.stopPropagation(),a.preventDefault(),v.value.STATIC||v.value.DYNAMIC?(v.value[h.value]=!1,g.value=!0,m.value[t].handleClose()):(g.value=!0,h.value=t,v.value[t]=!0,m.value[t].handleOpen()),u.value&&Array.isArray(u.value)&&u.value.length>0){const{start:t,end:a}=e.controller.computedDateTypesTime(r.value,h.value,u.value[0],u.value[1]);y(h.value,u.value,t,a)}})(t.type,a)},[o("span",{class:a.em("date-type","item-caption")},[t.caption]),o("span",{class:a.em("date-type","item-icon")},[t.type===h.value&&o("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false"},[o("g",{id:"agctips/check","stroke-width":"1","fill-rule":"evenodd"},[o("path",{id:"agc路径-12",d:"M6.012 11.201L1.313 6.832l-.817.879 5.54 5.15 9.304-9.163-.842-.855z"},null)])]),o("i",{class:"fa fa-angle-right","aria-hidden":"true"},null)]),S(t.type)])))])})]),onOpen:P}},render(){return o("div",{class:this.ns.b(),onClick:this.onOpen},[this.c.switchUnit&&this.renderDateUnit(),this.renderDateRange()])}});var YI=Object.defineProperty,XI=(e,t,a)=>(((e,t,a)=>{t in e?YI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class $I extends Mn{constructor(){super(...arguments),XI(this,"switchUnit",!0),XI(this,"defaultUnit","DAY"),XI(this,"initDefaultDate",(e=>{const t=new Date((new Date).toLocaleDateString());if("DAY"===e){const e=new Date(t.getTime()-6048e5),a=t.toLocaleDateString().replaceAll("/","-");return[ho(e).format("YYYY-MM-DD"),ho(a).format("YYYY-MM-DD")]}if("WEEK"===e){const e=t.getDay();let a=e;0===e&&(a=7);const n=t.getTime()+24*(7-a)*60*60*1e3,o=new Date(n).toLocaleDateString().replaceAll("/","-"),i=t.getTime()-36288e5;return[new Date(i).toLocaleDateString().replaceAll("/","-"),o]}if("MONTH"===e){const e=t.getFullYear(),a=t.getMonth()+1;let n=e,o=a-6;o<1&&(o+=12,n-=1);let i="".concat(o),s="".concat(a);return o<10&&(i="0".concat(i)),a<10&&(s="0".concat(a)),["".concat(n,"-").concat(i),"".concat(e,"-").concat(s)]}if("QUARTER"===e){const e=t.getFullYear();return["".concat(e,"-1"),"".concat(e,"-4")]}if("YEAR"===e)return[t.getFullYear(),t.getFullYear()]})),XI(this,"handleTimeToText",((e,t,a,n,o)=>{if(!a||Array.isArray(a)&&!a.length)return"";const i=new Date(a[0]),s=new Date(a[1]),l=i.getFullYear(),r=s.getFullYear(),c=i.getMonth()+1,d=s.getMonth()+1,u=this.getYearWeek(i),p=this.getYearWeek(s);let h=a.join("~"),m="";if("DAY"===t&&(h=a.join("~")),"WEEK"===t){const e="".concat(l,"-").concat(u).concat(ibiz.i18n.t("editor.dateRangeSelect.week")),t="".concat(r,"-").concat(p).concat(ibiz.i18n.t("editor.dateRangeSelect.week"));h="".concat(e,"~").concat(t)}if("MONTH"===t){let e=c,t=d;c<10&&(e="0".concat(c)),d<10&&(t="0".concat(d)),h="".concat(l,"-").concat(e," ~ ").concat(r,"-").concat(t)}if("QUARTER"===t){const e=Math.ceil(c/3),t=Math.ceil(d/3);h="".concat(l,"-Q").concat(e," ~ ").concat(r,"-Q").concat(t)}return"YEAR"===t&&(h="".concat(a[0]," ~ ").concat(a[1])),m="STATIC"===e?ibiz.i18n.t("editor.dateRangeSelect.static"):"DAY"===t?this.computedTextOfDay(n,o):"WEEK"===t?this.computedTextOfWeek(n,o):"MONTH"===t?this.computedTextOfMonth(n,o):"QUARTER"===t?this.computedTextOfQuarter(n,o,l,r,c,d):"YEAR"===t?this.computedTextOfYear(n,o):this.computedTextOfDay(n,o),"".concat(m," | ").concat(h)}))}async init(){await super.onInit(),this.editorParams&&(this.editorParams.switchUnit&&(this.switchUnit="true"===this.editorParams.switchUnit),this.editorParams.defaultUnit&&(this.defaultUnit=this.editorParams.defaultUnit))}computedDynamicTimeToDate(e,t,a,n){if("STATIC"===t){const t=new Date(1e3*a),o=new Date(1e3*n);return"YEAR"===e?[t.getFullYear(),o.getFullYear()]:[ho(t).format("YYYY-MM-DD"),ho(o).format("YYYY-MM-DD")]}const o=new Date;if(o.setHours(0,0,0,0),"WEEK"===e){return[this.timeSpanConvertToWeek(o,a),this.timeSpanConvertToWeek(o,n)]}if("MONTH"===e){return[this.timeSpanConvertToMonth(o,a),this.timeSpanConvertToMonth(o,n)]}if("QUARTER"===e){return[this.timeSpanConvertToQuarter(o,a),this.timeSpanConvertToQuarter(o,n)]}if("YEAR"===e){return[o.getFullYear()+a,o.getFullYear()+n]}const i=24*a*60*60*1e3,s=24*n*60*60*1e3,l=new Date(o.getTime()+i),r=new Date(o.getTime()+s);return[ho(l).format("YYYY-MM-DD"),ho(r).format("YYYY-MM-DD")]}timeSpanConvertToQuarter(e,t){const a=t%4;let n=Math.floor(Math.abs(t)/4);t<0&&(n=-n);let o=e.getFullYear()+n;const i=e.getMonth()+1;let s=Math.ceil(i/3)+a;return s<0&&(o-=1,s+=4),s>4&&(o+=1,s-=4),"".concat(o,"-").concat(3*s)}timeSpanConvertToWeek(e,t){const a=e.getTime();return new Date(a+7*t*24*60*60*1e3).toLocaleDateString()}timeSpanConvertToMonth(e,t){const a=t%12;let n=Math.floor(Math.abs(t)/12);t<0&&(n=-n);let o=e.getFullYear()+n,i=e.getMonth()+1+a;return i<0&&(o-=1,i+=12),i>12&&(o+=1,i-=12),i<10?"".concat(o,"-0").concat(i):"".concat(o,"-").concat(i)}computedDateTypesTime(e,t,a,n){return"STATIC"===t?this.computedStaticTime(e,a,n):this.computedDynamicTime(e,a,n)}computedDynamicTime(e,t,a){switch(e){case"DAY":default:return this.computedDaysSpace(t,a);case"WEEK":return this.computedWeeksSpace(t,a);case"MONTH":return this.computedMonthsSpace(t,a);case"QUARTER":return this.computedQuartersSpace(t,a);case"YEAR":return this.computedYearsSpace(t,a)}}computedDaysSpace(e,t){const a=new Date,n=new Date(e),o=new Date(t);a.setHours(0,0,0,0),n.setHours(0,0,0,0),o.setHours(0,0,0,0);return{start:(n.getTime()-a.getTime())/864e5,end:(o.getTime()-a.getTime())/864e5}}computedWeeksSpace(e,t){const a=new Date,n=new Date(e),o=new Date(t);a.setHours(0,0,0,0),n.setHours(0,0,0,0),o.setHours(0,0,0,0);const i=(e,t)=>{const a=this.getDateWeekMonday(e);return(this.getDateWeekMonday(t).getTime()-a.getTime())/6048e5};return{start:i(a,n),end:i(a,o)}}getDateWeekMonday(e){const t=e.getDay();let a=t;0===t&&(a=7);const n=e.getTime()-24*(a-1)*60*60*1e3;return new Date(n)}getYearWeek(e){const t=new Date(e.getFullYear(),0,1);let a=e.getDay();0===a&&(a=7);let n=t.getDay();0===n&&(n=7);const o=e.getTime()-t.getTime(),i=Math.floor((o+864e5*(n-a))/864e5);return Math.ceil(i/7)+1}computedMonthsSpace(e,t){const a=new Date,n=new Date(e),o=new Date(t),i=(e,t)=>{const a=e.getFullYear(),n=e.getMonth()+1;return 12*(t.getFullYear()-a)-n+(t.getMonth()+1)};return{start:i(a,n),end:i(a,o)}}computedQuartersSpace(e,t){const a=new Date,n=new Date(e),o=new Date(t),i=(e,t)=>{const a=e.getFullYear(),n=e.getMonth()+1,o=Math.ceil(n/3),i=t.getFullYear(),s=t.getMonth()+1;return 4*(i-a)-o+Math.ceil(s/3)};return{start:i(a,n),end:i(a,o)}}computedYearsSpace(e,t){const a=(new Date).getFullYear();return{start:Number(e)-a,end:Number(t)-a}}computedStaticTime(e,t,a){switch(e){case"DAY":default:return this.computedDaysTime(t,a);case"WEEK":return this.computedWeeksTime(t,a);case"MONTH":return this.computedMonthsTime(t,a);case"QUARTER":return this.computedQuartersTime(t,a);case"YEAR":return this.computedYearsTime(t,a)}}computedDaysTime(e,t){const a=new Date(e),n=new Date(t);a.setHours(0,0,0,0),n.setHours(23,59,59,0);return{start:a.getTime()/1e3,end:n.getTime()/1e3}}computedWeeksTime(e,t){const a=new Date(e),n=new Date(t);a.setHours(0,0,0,0),n.setHours(23,59,59,0);return{start:a.getTime()/1e3,end:n.getTime()/1e3}}computedMonthsTime(e,t){const a=new Date(e),n=new Date(t);a.setHours(0,0,0,0),[1,3,5,7,8,10,12].includes(n.getMonth()+1)?n.setDate(31):1===n.getMonth()?n.setDate(29):n.setDate(30),n.setHours(23,59,59,0);return{start:a.getTime()/1e3,end:n.getTime()/1e3}}computedQuartersTime(e,t){const a=new Date(e),n=new Date(t);a.setHours(0,0,0,0),n.setHours(23,59,59,0);return{start:a.getTime()/1e3,end:n.getTime()/1e3}}computedYearsTime(e,t){const a=new Date(e),n=new Date(t);a.setHours(0,0,0,0),n.setMonth(11),n.setDate(31),n.setHours(23,59,59,0);return{start:a.getTime()/1e3,end:n.getTime()/1e3}}computedTextOfDay(e,t){let a="";if(e===t&&0===e)a=ibiz.i18n.t("editor.dateRangeSelect.today");else if(0===t&&e<0)a="".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.day"));else{const n="".concat(e>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.day")),o="".concat(t>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(t)).concat(ibiz.i18n.t("editor.dateRangeSelect.day"));a="".concat(n," ~ ").concat(o)}return a}computedTextOfWeek(e,t){let a="";if(e===t&&0===e)a=ibiz.i18n.t("editor.dateRangeSelect.currentWeek");else if(0===t&&e<0)a="".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.week"));else{const n="".concat(e>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.week")),o="".concat(t>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(t)).concat(ibiz.i18n.t("editor.dateRangeSelect.week"));a="".concat(n," ~ ").concat(o)}return a}computedTextOfMonth(e,t){let a="";if(e===t&&0===e)a=ibiz.i18n.t("editor.dateRangeSelect.pastTime");else if(0===t&&e<0)a="".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.month"));else{const n="".concat(e>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.month")),o="".concat(t>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(t)).concat(ibiz.i18n.t("editor.dateRangeSelect.month"));a="".concat(n," ~ ").concat(o)}return a}computedTextOfQuarter(e,t,a,n,o,i){let s="";const l=(new Date).getFullYear(),r=Math.ceil(o/3),c=Math.ceil(i/3);if(a===n&&1===r&&4===c)s=ibiz.i18n.t("editor.dateRangeSelect.currentYear");else if(e===t&&0===e)s=ibiz.i18n.t("editor.dateRangeSelect.currentYear");else if(0===t&&e<0&&l===a)s="".concat(ibiz.i18n.t("editor.dateRangeSelect.currentYear")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.quarter"));else{const a="".concat(e>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.quarter")),n="".concat(t>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(t)).concat(ibiz.i18n.t("editor.dateRangeSelect.quarter"));s="".concat(a," ~ ").concat(n)}return s}computedTextOfYear(e,t){let a="";if(e===t&&0===e)a=ibiz.i18n.t("editor.dateRangeSelect.currentYear");else if(0===t&&e<0)a="".concat(ibiz.i18n.t("editor.dateRangeSelect.recently")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.year"));else{const n="".concat(e>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(e)).concat(ibiz.i18n.t("editor.dateRangeSelect.year")),o="".concat(t>0?ibiz.i18n.t("editor.dateRangeSelect.future"):ibiz.i18n.t("editor.dateRangeSelect.pastTime")).concat(Math.abs(t)).concat(ibiz.i18n.t("editor.dateRangeSelect.year"));a="".concat(n," ~ ").concat(o)}return a}}var JI=Object.defineProperty,QI=(e,t,a)=>(((e,t,a)=>{t in e?JI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class ZI{constructor(){QI(this,"formEditor","IBizDateRangeSelect"),QI(this,"gridEditor","IBizDateRangeSelect")}async createController(e,t){const a=new $I(e,t);return await a.init(),a}}const eD=e("aM",{install:e=>{e.component(Lw.name,Lw),e.component(Vw.name,Vw),e.component(Fw.name,Fw),e.component(Yw.name,Yw),e.component(Xw.name,Xw),e.component($w.name,$w),e.component(nf.name,nf),e.component(of.name,of),e.component(pf.name,pf),e.component(gf.name,gf),e.component(Ef.name,Ef),e.component(Of.name,Of),e.component(Mf.name,Mf),e.component(Ff.name,Ff),e.component(Wf.name,Wf),e.component(Jf.name,Jf),e.component(ay.name,ay),e.component(ry.name,ry),e.component(wy.name,wy),e.component(ky.name,ky),e.component(xy.name,xy),e.component(Sy.name,Sy),e.component(jy.name,jy),e.component(My.name,My),e.component(Ry.name,Ry),e.component(Ny.name,Ny),e.component(Ly.name,Ly),e.component(Vy.name,Vy),e.component(Ky.name,Ky),e.component(Qy.name,Qy),e.component(FC.name,FC),e.component(bI.name,bI),e.component(CI.name,CI),e.component(kI.name,kI),e.component(OI.name,OI),e.component(qI.name,qI),e.component(_I.name,_I),e.component("IBizHtml",D((()=>t.import("./wang-editor-BUIAd4uJ.js")))),e.component("IBizMarkDown",D((()=>t.import("./ibiz-markdown-editor-B4c6yGAW.js")))),e.component(KI.name,KI),Hn("SPAN",(()=>new Kw)),Hn("SPAN_ADDRESSPICKUP",(()=>new Kw)),Hn("SPAN_LINK",(()=>new Kw("SPAN_LINK")));const a=new af;Hn("TEXTBOX",(()=>a)),Hn("TEXTAREA",(()=>a)),Hn("TEXTAREA_10",(()=>a)),Hn("PASSWORD",(()=>a)),Hn("NUMBER",(()=>new af("NUMBER"))),Hn("IPADDRESSTEXTBOX",(()=>new af("IPADDRESSTEXTBOX"))),Hn("DROPDOWNLIST",(()=>new uf)),Hn("DROPDOWNLIST_100",(()=>new uf)),Hn("MDROPDOWNLIST",(()=>new uf)),Hn("DROPDOWNLIST_EMOJI_PICKER",(()=>new uf("EMOJI_PICKER"))),Hn("CHECKBOX",(()=>new bf)),Hn("CHECKBOXLIST",(()=>new Df)),Hn("RADIOBUTTONLIST",(()=>new zf));const n=new jf;Hn("DATEPICKER",(()=>n)),Hn("DATEPICKEREX",(()=>n)),Hn("DATEPICKEREX_NOTIME",(()=>n)),Hn("DATEPICKEREX_HOUR",(()=>n)),Hn("DATEPICKEREX_MINUTE",(()=>n)),Hn("DATEPICKEREX_SECOND",(()=>n)),Hn("DATEPICKEREX_NODAY",(()=>n)),Hn("DATEPICKEREX_NODAY_NOSECOND",(()=>n)),Hn("DATEPICKERRANGE",(()=>new ZI)),Hn("FILEUPLOADER",(()=>new By("FILEUPLOADER"))),Hn("FILEUPLOADER_ONE",(()=>new By("FILEUPLOADER_ONE"))),Hn("PICTURE",(()=>new By("PICTURE"))),Hn("PICTURE_ONE",(()=>new By("PICTURE_ONE"))),Hn("PICTURE_ONE_RAW",(()=>new By("PICTURE_ONE_RAW"))),Hn("RAW",(()=>new Vf)),Hn("STEPPER",(()=>new Hf)),Hn("RATING",(()=>new $f)),Hn("SLIDER",(()=>new sy)),Hn("SWITCH",(()=>new ty)),Hn("LISTBOX",(()=>new gy)),Hn("LISTBOXPICKUP",(()=>new gy));const o=new Ey;Hn("AC",(()=>o)),Hn("AC_FS",(()=>o)),Hn("AC_NOBUTTON",(()=>o)),Hn("AC_FS_NOBUTTON",(()=>o)),Hn("PICKER",(()=>new Wy("PICKER"))),Hn("PICKEREX_NOAC",(()=>new Wy("PICKEREX_NOAC"))),Hn("PICKEREX_NOAC_LINK",(()=>new Wy("PICKEREX_NOAC_LINK"))),Hn("PICKEREX_TRIGGER_LINK",(()=>new Wy("PICKEREX_TRIGGER_LINK"))),Hn("PICKEREX_TRIGGER",(()=>new Wy("PICKEREX_TRIGGER"))),Hn("PICKEREX_LINK",(()=>new Wy("PICKEREX_LINK"))),Hn("ADDRESSPICKUP",(()=>new Wy("ADDRESSPICKUP"))),Hn("ADDRESSPICKUP_AC",(()=>new Wy("ADDRESSPICKUP_AC"))),Hn("PICKEREX_LINKONLY",(()=>new Wy("PICKEREX_LINKONLY"))),Hn("PICKEREX_NOBUTTON",(()=>new Wy("PICKEREX_NOBUTTON"))),Hn("PICKEREX_DROPDOWNVIEW",(()=>new Wy("PICKEREX_DROPDOWNVIEW"))),Hn("PICKEREX_DROPDOWNVIEW_LINK",(()=>new Wy("PICKEREX_DROPDOWNVIEW_LINK"))),Hn("PICKUPVIEW",(()=>new Wy("PICKUPVIEW"))),Hn("NUMBERRANGE",(()=>new Jy)),Hn("DATERANGE",(()=>new oC)),Hn("DATERANGE_NOTIME",(()=>new oC)),Hn("CODE",(()=>new HC)),Hn("HTMLEDITOR",(()=>new cI)),Hn("MARKDOWN",(()=>new vI)),Hn("ARRAY",(()=>new yI)),Hn("CASCADER",(()=>new PI)),Hn("COLORPICKER",(()=>new zI)),Hn("PICKER_searchCondEdit",(()=>new UI)),Hn("FIELD_IMAGE_PICTURE_ONE",(()=>new By("PICTURE_ONE"))),Hn("FIELD_IMAGE_PICTURE",(()=>new By("PICTURE"))),Hn("FIELD_TEXT_DYNAMIC_SPAN",(()=>new Kw)),Hn("VIEW_PAGECAPTION_SPAN",(()=>new Kw)),Hn("STATIC_LABEL_RAW",(()=>new Vf)),Hn("FIELD_TEXTBOX_TEXTBOX",(()=>a)),Hn("FIELD_TEXTAREA_TEXTAREA",(()=>a)),Hn("FIELD_RADIOBUTTONLIST_RADIOBUTTONLIST",(()=>new zf)),Hn("FIELD_CHECKBOXLIST_CHECKBOXLIST",(()=>new Df)),Hn("FIELD_DROPDOWNLIST_DROPDOWNLIST",(()=>new uf)),Hn("FIELD_RATING_RATING",(()=>new $f)),Hn("FIELD_SWITCH_SWITCH",(()=>new ty)),Hn("FIELD_SLIDER_SLIDER",(()=>new sy)),Hn("FIELD_DATEPICKER_DATEPICKER",(()=>new jf)),Hn("FIELD_DATERANGE_DATERANGE",(()=>new oC)),Hn("FIELD_PICKER_PICKER",(()=>new Wy("PICKER"))),Hn("FIELD_ARRAY_ARRAY",(()=>new yI)),Hn("AUTH_USERID_TEXTBOX",(()=>a)),Hn("AUTH_PASSWORD_PASSWORD",(()=>a)),Hn("FIELD_CAROUSEL_PICTURE",(()=>new MI))}}),tD=e("aN",a({name:"IBizView404",setup(){const e=A("404-view"),t=zo(),a=To();d((()=>ibiz.util.hiddenAppLoading()));return{ns:e,isTop:l((()=>a&&!a.params.view1)),gotoIndexView:async()=>{await t.push("/"),window.location.reload()}}},render(){return o("div",{class:[this.ns.b(),this.ns.is("top",this.isTop)]},[o("img",{class:this.ns.b("img"),src:"./assets/images/404.png"},null),o("div",{class:this.ns.b("text")},[o("div",{class:this.ns.be("text","text1")},[ibiz.i18n.t("view.noResourcesView.noResourcePrompt")]),this.isTop?o("div",{class:this.ns.be("text","text2")},[ibiz.i18n.t("view.noResourcesView.resourceNoExist"),o("a",{onClick:this.gotoIndexView},[ibiz.i18n.t("view.common.backHomepage")]),ibiz.i18n.t("view.common.continueBrowsing")]):null])])}})),aD=e("aO",a({name:"IBizView403",setup(){const e=A("403-view"),t=zo(),a=To();d((()=>ibiz.util.hiddenAppLoading()));return{ns:e,isTop:l((()=>a&&!a.params.view1)),gotoIndexView:async()=>{await t.push("/"),window.location.reload()}}},render(){return o("div",{class:[this.ns.b(),this.ns.is("top",this.isTop)]},[o("img",{class:this.ns.b("img"),src:"./assets/images/404.png"},null),o("div",{class:this.ns.b("text")},[o("div",{class:this.ns.be("text","text1")},[ibiz.i18n.t("view.noPermissionView.noPermissionPrompt")]),this.isTop?o("div",{class:this.ns.be("text","text2")},[ibiz.i18n.t("view.noPermissionView.noPermission"),o("a",{onClick:this.gotoIndexView},[ibiz.i18n.t("view.common.backHomepage")]),ibiz.i18n.t("view.common.continueBrowsing")]):null])])}}));const nD=e("aP",a({setup(){const e=A("login-view"),t={username:[{required:!0,message:ibiz.i18n.t("app.pleaseEnterAccount"),trigger:"blur"}],password:[{required:!0,message:ibiz.i18n.t("app.pleaseEnterPassword"),trigger:"blur"},{type:"string",min:6,message:ibiz.i18n.t("view.loginView.passwordLength"),trigger:"blur"}]},a=w({username:"",password:""}),l=n(null),c=To().query.ru||"/",u=n(!1),p=n(null),h=i("IBizViewShell"),m=kt.create({}),v={},b=n(!1),g=n(!1),f=n(!1),y=n(!0);let C=ibiz.env.AppTitle;(async()=>{const e=(await ibiz.hub.getAppAsync(ibiz.env.appId)).model;e.caption&&(C=e.caption)})(),ibiz.appData=void 0,ibiz.orgData=void 0;const I=async()=>{l.value.validate((async e=>{if(e){b.value=!0;!0===await ibiz.auth.login(a.username,a.password,f.value)&&(window.location.hash=c,window.history.pushState({},""),window.location.reload()),b.value=!1}}))},D=e=>{"Enter"===e.key&&I()};return d((async()=>{if("true"===Io.parse(window.location.search.replace("?","")).isAnonymous){!0===await ibiz.auth.anonymousLogin()&&(window.location.hash=c,window.location.reload())}else{try{const e=await ibiz.hub.config.view.get("AppLoginView");e&&(p.value=e,u.value=!0)}catch(e){ibiz.log.warn(e)}y.value=!1}ibiz.util.hiddenAppLoading(),g.value=!0})),()=>{if(g.value&&!1===y.value){let n;return u.value?r(h,{context:m,params:v,viewId:p.value.id}):o("div",{class:e.b()},[o("div",{class:e.b("box")},[o("header",{class:e.b("box-header")},[o("img",{src:"./assets/images/login-header.png"},null),o("span",{class:e.b("box-header-title")},[C])]),o("main",{class:e.b("box-main")},[o("img",{class:e.be("box-main","avatar"),src:"./assets/images/login-avatar.png"},null),o("div",{class:e.b("box-main-content")},[o(i("el-form"),{model:a,rules:t,ref:l},{default:()=>[o(i("el-form-item"),{size:"large",prop:"username"},{default:()=>[o(i("el-input"),{modelValue:a.username,"onUpdate:modelValue":e=>a.username=e,clearable:!0,placeholder:ibiz.i18n.t("app.pleaseEnterAccount"),onKeyup:e=>D(e)},{prefix:()=>o("ion-icon",{name:"person"},null)})]}),o(i("el-form-item"),{size:"large",prop:"password"},{default:()=>[o(i("el-input"),{type:"password",modelValue:a.password,"onUpdate:modelValue":e=>a.password=e,"show-password":!0,placeholder:ibiz.i18n.t("app.pleaseEnterPassword"),onKeyup:e=>D(e)},{prefix:()=>o("ion-icon",{name:"unlock-alt"},null)})]}),o(i("el-checkbox"),{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e,label:ibiz.i18n.t("app.rememberMe")},null),o(i("el-form-item"),{size:"large"},{default:()=>{return[o(i("el-button"),{type:"primary",onClick:I,size:"large",round:!0,loading:b.value},(e=n=ibiz.i18n.t("view.loginView.login"),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)?n:{default:()=>[n]}))];var e}})]})])])])])}return null}}}));var oD=Object.defineProperty,iD=(e,t,a)=>(((e,t,a)=>{t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class sD{constructor(){iD(this,"component","IBizWFStepTraceView")}}const lD=a({name:"IBizWFStepTraceView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){const e=A("view"),t=et(((...e)=>new Wn(...e))),{viewType:a,sysCss:n,codeName:o}=t.model,i=a.toLowerCase(),s=null==n?void 0:n.cssName,l=[e.b(),e.b(i),e.m(o),s];return{c:t,ns:e,viewClassNames:l}},render(){return o("div",{class:this.viewClassNames},[o(i("iBizExtendActionTimeLine"),{data:this.c.state.historyData},null)])}}),rD=e("aQ",U(lD,(function(e){e.component(lD.name,lD),Kn(Yn.APP_WF_STEP_TRACE_VIEW,(()=>new sD))})));var cD=Object.defineProperty,dD=(e,t,a)=>(((e,t,a)=>{t in e?cD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class uD{constructor(){dD(this,"component","IBizSubAppRefView")}}const pD=a({name:"IBizSubAppRefView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){const e=A("sub-app-ref-view"),t=et(((...e)=>new Xn(...e))),{viewType:a,sysCss:n,codeName:o}=t.model,i=a.toLowerCase(),s=null==n?void 0:n.cssName,r=[e.b(),e.b(i),e.m(o),s],c=l((()=>ibiz.env.marketAddress||window.Environment.marketAddress));return{c:t,ns:e,viewClassNames:r,htmlUrl:c,handleClick:()=>{c.value&&window.open(c.value,"_blank")}}},render(){return o("div",{class:this.viewClassNames},[o(i("el-result"),{class:this.ns.b("result"),icon:"info"},null),this.c.model.caption&&o("div",{class:this.ns.b("caption")},[this.c.model.caption]),this.c.model.subCaption&&o("div",{class:this.ns.b("sub-caption")},[this.c.model.subCaption]),this.htmlUrl&&o(i("el-button"),{class:this.ns.b("btn"),onClick:this.handleClick,size:"large"},{default:()=>[this.c.model.title||ibiz.i18n.t("view.subAppRefView.jump")]})])}}),hD=e("aR",U(pD,(function(e){e.component(pD.name,pD),Kn(Yn.DE_SUB_APP_REF_VIEW,(()=>new uD))}))),mD=e("aS",a({name:"ErrorView",setup(){const e=A("error-view"),t=To(),a=l((()=>"".concat(t.params.code)));d((()=>ibiz.util.hiddenAppLoading()));return{ns:e,isTop:l((()=>t&&!t.params.view1)),code:a}},render(){if(this.code){const e=$n(this.code);if(e)return"string"==typeof e.component?r(i(e.component)):r(e.component)}return o("div",{class:[this.ns.b()]},[ibiz.i18n.t("view.errorView.noExistPrompt",{code:this.code})])}}));var vD=Object.defineProperty,bD=(e,t,a)=>(((e,t,a)=>{t in e?vD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class gD extends Jn{constructor(){super(...arguments),bD(this,"deName")}get form(){return this.view.getController("form")}get coopPos(){var e;return null==(e=this.view.layoutPanel)?void 0:e.panelItems.coop_pos}init(){if(super.init(),1===this.view.model.multiFormMode&&this.view.params.srfdatatype){const e=Qn(this.view.model,"_form_".concat(this.view.params.srfdatatype));if(e){const t=Zn(this.view.model).filter((e=>"FORM"!==e.controlType));e.name="form",t.push(e),this.view.model.viewLayoutPanel?this.view.model.viewLayoutPanel.controls=t:this.view.model.controls=t}}}async onCreated(){await super.onCreated();const{childNames:e,modal:t}=this.view;e.push("form"),this.deName=Nn(this.view.model.appDataEntityId),this.view.slotProps.form||(this.view.slotProps.form={}),this.view.slotProps.form.loadDefault=!1,this.view.slotProps.toolbar||(this.view.slotProps.toolbar={}),this.view.slotProps.toolbar.manualCalcButtonState=!0,t.hooks.shouldDismiss.tapPromise((async e=>{var t,a;const n=ibiz.uiDomainManager.get(this.view.context.srfsessionid),o=((null==(t=this.form)?void 0:t.state.modified)||n.dataModification)&&!0===this.view.model.enableDirtyChecking;if(o&&(null==(a=this.form)?void 0:a.model.enableAutoSave)&&!n.dataModification)await this.form.immediateAutoSave();else if(o&&null==e.allowClose){const t=await ibiz.confirm.error({title:ibiz.i18n.t("viewEngine.closeRemind"),desc:ibiz.i18n.t("viewEngine.confirmClosePrompt")});e.allowClose=!!t}}))}async onMounted(){await super.onMounted(),this.initMarkOpenData();const{model:e,evt:t}=this.view,a=this.form.model.appDataEntityId,n=n=>{var o;const i=n.data[0];null==(o=this.toolbar)||o.calcButtonState(i,a),e.showDataInfoBar&&(i.srfkey?t.emit("onViewInfoChange",{dataInfo:i.srfmajortext||""}):t.emit("onViewInfoChange",{dataInfo:ibiz.i18n.t("app.newlyBuild")}))};this.form.evt.on("onLoadSuccess",(e=>{n(e);const a=e.data[0];this.view.state.srfactiveviewdata=a,Object.prototype.hasOwnProperty.call(a,"srfreadonly")&&(this.view.context.srfreadonly=a.srfreadonly),t.emit("onDataChange",{...e,actionType:"LOAD"})})),this.form.evt.on("onLoadDraftSuccess",(e=>{n(e),t.emit("onDataChange",{...e,actionType:"LOADDRAFT"})})),this.form.evt.on("onSaveSuccess",(e=>{this.view.state.closeOK=!0;const a=Nn(this.view.model.appDataEntityId),o=e.data[0];this.view.context[a]!==o.srfkey&&(this.view.context[a]=o.srfkey),n(e),t.emit("onDataChange",{...e,actionType:"SAVE"})})),this.form.evt.on("onRemoveSuccess",(e=>{n(e),t.emit("onDataChange",{...e,actionType:"REMOVE"})})),!this.view.state.noLoadDefault&&e.loadDefault&&this.load()}getData(){return this.form.getData()}async load(){return this.form.load()}async save(){return this.form.save()}async refresh(){this.form.doNextActive((()=>this.load()),{key:"load"})}async call(e,t){if(e===eo.SAVE)return await this.form.save(),null;if(e===eo.SAVE_AND_EXIT)return await this.form.save(),{closeView:!0};if(e===eo.REMOVE_AND_EXIT){return{closeView:await this.form.remove()}}return e===eo.SAVE_AND_NEW?(this.saveAndNew(),null):e===eo.REFRESH?(await this.refresh(),null):e===eo.SAVE_AND_START?(await this.wfStart(),null):e===eo.FIRST_RECORD||e===eo.LAST_RECORD||e===eo.PREV_RECORD||e===eo.NEXT_RECORD?(await this.changeRecord(e),null):e===eo.VIEW_WF_STEP?(await this.wfSubmit(),null):e===Yt.LOAD?(this.load(),null):e===Yt.VALIDATE?this.form.validate():(e===Yt.WF_WITHDRAW&&await this.wfWithdraw(),super.call(e,t))}async saveAndNew(){await this.form.save(),this.form.state.data=new sa,this.view.context[Nn(this.view.model.appDataEntityId)]=void 0,await this.form.load()}async wfStart(){var e,t;await this.save();const a=await ibiz.hub.getAppDEService(this.view.model.appId,this.view.model.appDataEntityId,this.view.context),n=this.form.state.data,o=await a.wf.getWFVersion(null!=(t=null!=(e=n.srfwftag)?e:this.view.params.srfwftag)?t:this.view.context.srfwftag);if(0===o.data.length)throw new vt(ibiz.i18n.t("viewEngine.noExistVersionErr"));const i=o.data[0],s="WFSTART@".concat(i.wfversion),l=Object.assign(this.view.context.clone(),{activeForm:i["process-form"]}),r={processDefinitionKey:i.definitionkey},c=to(this.view.model,s);if(!c)return await this.form.wfStart({viewParam:r}),void await this.view.closeView();(await ibiz.commands.execute(Tn.TAG,c.refAppViewId,l,r)).ok&&await this.view.closeView()}wfSubmit(){return this.form.wfSubmit()}async wfWithdraw(){const e=ibiz.hub.getApp(this.view.context.srfappid),t=this.form.state.data,a=await e.deService.getService(this.view.context,this.view.model.appDataEntityId);await a.wf.exec("withdraw",this.view.context,{...this.view.params,taskId:this.view.params.taskId||this.view.params.srftaskid},t instanceof sa?t.getOrigin():t),ibiz.mc.command.send({srfdecodename:"SysTodo"},"OBJECTUPDATED","WITHDRAW")}initMarkOpenData(){if(![ra.ROUTE,ra.ROUTE_MODAL].includes(this.view.modal.mode)||!this.view.model.markOpenDataMode)return;const e=this.view.model.markOpenDataMode.split(";");let t=!1;const a=async a=>{if(!this.view.state.activated)return;const n=this.form.getData()[0].srfmajortext;let o="";switch(a.action){case"VIEW":o=ibiz.i18n.t("viewEngine.browseMsg");break;case"EDIT":o=ibiz.i18n.t("viewEngine.editMsg");break;case"UPDATE":o=ibiz.i18n.t("viewEngine.updateMsg")}const i="".concat(e.includes("DISPLAYOPPERSON")?a.username:ibiz.i18n.t("viewEngine.someone")," ").concat(o," ").concat(this.view.state.caption,"-").concat(n);if(this.coopPos?this.coopPos.updateMessage({title:i,data:a}):ibiz.message.notice({message:i,showClose:!0,duration:3,styleType:"alert"}),!1===t&&"UPDATE"===a.action&&e.includes("NOTICERELOAD")){t=!0;await this.reloadConfirm()&&this.refresh(),t=!1}},n=[];if(e.includes("EDITDATA")||e.includes("DISPLAYOPPERSON")||e.includes("NOTICERELOAD")?n.push("EDIT","VIEW","UPDATE","CLOSE"):e.includes("OPENDATA")&&n.push("VIEW","CLOSE"),0===n.length)return;let o,i=!1;if(n.includes("VIEW")&&this.form.evt.on("onLoadSuccess",(e=>{const t=e.data[0];o=t.srfkey,ibiz.markOpenData.action(this.deName,o,"VIEW"),i||(ibiz.markOpenData.subscribe(this.deName,o,a),this.view.evt.on("onDestroyed",(()=>{ibiz.markOpenData.unsubscribe(this.deName,o,a)})),i=!0)})),n.includes("EDIT")){let e=!1;const t=()=>{o&&!e&&(e=!0,ibiz.markOpenData.action(this.deName,o,"EDIT"),setTimeout((()=>{e=!1}),3e5))};this.form.evt.on("onFormDataChange",t)}n.includes("UPDATE")&&this.form.evt.on("onSaveSuccess",(()=>{o&&ibiz.markOpenData.action(this.deName,o,"UPDATE")})),n.includes("CLOSE")&&this.view.evt.on("onCloseView",(()=>{o&&ibiz.markOpenData.action(this.deName,o,"CLOSE")}))}async reloadConfirm(){const e=await ibiz.confirm.info({title:ibiz.i18n.t("viewEngine.refreshPrompt"),desc:ibiz.i18n.t("viewEngine.refreshPagePrompt")});return e&&this.form.state.modified?ibiz.confirm.warning({title:ibiz.i18n.t("viewEngine.refreshRemind"),desc:ibiz.i18n.t("viewEngine.confirmRefreshPrompt")}):e}async changeRecord(e){var t;const a="".concat(this.view.context.srfnavctrlid);if(!a)throw new vt(ibiz.i18n.t("viewEngine.missingErr"));const n=this.form.state.data.srfkey;let o;switch(e){case eo.FIRST_RECORD:o=await ibiz.util.record.getFirstRecord(a,n);break;case eo.LAST_RECORD:o=await ibiz.util.record.getLastRecord(a,n);break;case eo.PREV_RECORD:o=await ibiz.util.record.getPreviousRecord(a,n);break;case eo.NEXT_RECORD:o=await ibiz.util.record.getNextRecord(a,n)}if(o){const e=await ibiz.hub.getAppDataEntity(this.form.model.appDataEntityId,this.form.context.srfappid);e&&e.minorAppDERSs&&e.minorAppDERSs.length>0&&(null==(t=e.minorAppDERSs)||t.forEach((e=>{if(e.majorAppDataEntityId&&e.parentAppDEFieldId){const t=Nn(e.majorAppDataEntityId);t&&o[e.parentAppDEFieldId]&&(this.view.context[t]=o[e.parentAppDEFieldId],this.form.context[t]=o[e.parentAppDEFieldId])}}))),this.view.context[this.deName]=o.srfkey,this.form.context[this.deName]=o.srfkey,this.load()}}}class wD extends gD{async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("drbar"),this.view.slotProps.drbar||(this.view.slotProps.drbar={}),this.view.slotProps.drbar.srfnav=this.view.state.srfnav}get drbar(){return this.view.getController("drbar")}}class fD extends gD{async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("drtab")}get drtab(){return this.view.getController("drtab")}}class yD extends gD{async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("drtab")}get drtab(){return this.view.getController("drtab")}}class CD extends ao{async call(e,t){return e===eo.NEW_ROW?(this.grid.newRow(),null):e===eo.TOGGLE_ROW_EDIT?(this.grid.toggleRowEdit(),null):e===eo.SAVE_ROW?(this.grid.save(t.data[0]),null):e===eo.SAVE?(this.grid.saveAll(),null):super.call(e,t)}get grid(){return this.view.getController("grid")}async onCreated(){super.onCreated();const{model:e}=this.view;this.view.slotProps.grid||(this.view.slotProps.grid={}),this.view.slotProps.grid.mdctrlActiveMode=e.gridRowActiveMode,this.view.slotProps.grid.rowEditOpen=e.rowEditDefault}}e("aU",CD);class ID extends Jn{get appmenu(){return this.view.getController("appmenu")}get enableCollapse(){return"LEFT"===this.view.model.mainMenuAlign||void 0===this.view.model.mainMenuAlign}initViewState(){super.initViewState(),this.view.state.isCollapse=!1}async onCreated(){await super.onCreated(),this.view.childNames.push("appmenu"),this.view.slotProps.appmenu||(this.view.slotProps.appmenu={}),this.view.slotProps.appmenu.collapse=this.view.state.isCollapse,ibiz.util.hiddenAppLoading()}async onMounted(){if(await super.onMounted(),!this.isExistAndInLayout("appmenu")){const{model:e,context:t,params:a}=this.view,{defAppViewId:n}=e;n&&ibiz.commands.execute(Tn.TAG,n,t,a)}window.innerWidth<=1200&&this.toggleCollapse()}async call(e,t){if(e===Yt.TOGGLE_COLLAPSE)return this.toggleCollapse(),null}toggleCollapse(){var e;if(!this.enableCollapse)return void ibiz.log.error("非左侧菜单模式折叠功能不启用");this.view.state.isCollapse=!this.view.state.isCollapse,this.view.slotProps.appmenu.collapse=this.view.state.isCollapse;const t=null==(e=this.view.layoutPanel)?void 0:e.panelItems.container_scroll_left;t&&(this.view.state.isCollapse?t.state.layout.width="56px":t.state.layout.width="".concat(t.model.width,"px"))}calcViewHeaderVisible(){return!0}}e("aV",ID);class DD extends ao{get list(){return this.view.getController("list")}async onMounted(){await super.onMounted();const{model:e}=this.view;this.list.state.mdctrlActiveMode=e.mdctrlActiveMode}}class ED extends ao{get dataview(){return this.view.getController("dataview")}async onCreated(){super.onCreated();const{model:e}=this.view;this.view.slotProps.dataview||(this.view.slotProps.dataview={}),this.view.slotProps.dataview.mdctrlActiveMode=e.mdctrlActiveMode}}e("aW",ED);class PD extends Jn{get form(){return this.view.getController("form")}async onCreated(){await super.onCreated();const{childNames:e,modal:t}=this.view;e.push("form"),this.view.slotProps.form||(this.view.slotProps.form={}),this.view.slotProps.form.loadDefault=!1,this.view.slotProps.toolbar||(this.view.slotProps.toolbar={}),this.view.slotProps.toolbar.manualCalcButtonState=!0,t.hooks.shouldDismiss.tapPromise((async e=>{var t;const a=ibiz.uiDomainManager.get(this.view.context.srfsessionid);if(((null==(t=this.form)?void 0:t.state.modified)||a.dataModification)&&!0===this.view.model.enableDirtyChecking&&null==e.allowClose){const t=await ibiz.confirm.error({title:ibiz.i18n.t("viewEngine.closeRemind"),desc:ibiz.i18n.t("viewEngine.confirmClosePrompt")});e.allowClose=!!t}}))}async onMounted(){await super.onMounted();const{model:e,evt:t}=this.view,a=this.form.model.appDataEntityId,n=e=>{var n;const o=e.data[0];null==(n=this.toolbar)||n.calcButtonState(o,a),o.srfkey&&t.emit("onViewInfoChange",{dataInfo:o.srfmajortext})};this.form.evt.on("onLoadSuccess",(e=>{const t=e.data[0];this.view.state.srfactiveviewdata=t,Object.prototype.hasOwnProperty.call(t,"srfreadonly")&&(this.view.context.srfreadonly=t.srfreadonly),n(e)})),this.form.evt.on("onLoadDraftSuccess",(e=>{n(e)})),this.form.evt.on("onSaveSuccess",(e=>{n(e)})),!this.view.state.noLoadDefault&&e.loadDefault&&this.load()}getData(){return this.form.getData()}load(){return this.form.load()}async call(e,t){return e===eo.CANCEL?(this.cancel(),null):e===eo.OK?(await this.confirm(),null):e===Yt.LOAD?(this.load(),null):e===Yt.VALIDATE?this.form.validate():super.call(e,t)}async confirm(){this.view.state.isClosing=!0;try{await this.form.save(),await this.view.closeView({ok:!0,data:this.getData()})}catch(e){throw this.view.state.isClosing=!1,e}}cancel(){this.view.closeView({ok:!1,data:[]})}}e("aX",PD);class kD extends CD{get grid(){return this.view.getController("grid")}async onCreated(){super.onCreated();const{model:e}=this.view;this.view.slotProps.grid||(this.view.slotProps.grid={}),this.view.slotProps.grid.singleSelect=this.view.state.singleSelect,this.view.slotProps.grid.mdctrlActiveMode=e.gridRowActiveMode}async onMounted(){await super.onMounted(),this.xdataControl.evt.on("onSelectionChange",(async e=>{this.view.evt.emit("onSelectionChange",{...e})})),this.xdataControl.evt.on("onActive",(async e=>{this.view.evt.emit("onDataActive",{...e})}))}async call(e,t){return e===Yt.GET_ALL_DATA?this.grid.state.items:super.call(e,t)}}var SD=Object.defineProperty,xD=(e,t,a)=>(((e,t,a)=>{t in e?SD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class TD extends Jn{constructor(){super(...arguments),xD(this,"selectData",[])}get pickupViewPanel(){return this.view.getController("pickupviewpanel")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("pickupviewpanel")}async onMounted(){await super.onMounted(),this.pickupViewPanel.state.singleSelect=!0,this.pickupViewPanel.evt.on("onSelectionChange",(e=>{this.selectData=e.data})),this.pickupViewPanel.evt.on("onDataActive",(e=>{this.pickupViewPanelDataActive(e.data)}))}pickupViewPanelDataActive(e){this.selectData=e,this.view.closeView({ok:!0,data:this.selectData})}async call(e,t){return e===eo.CANCEL?(this.cancel(),null):e===eo.OK?(this.confirm(),null):super.call(e,t)}confirm(){this.view.closeView({ok:!0,data:this.selectData})}cancel(){this.view.closeView({ok:!1,data:[]})}}class zD extends TD{get simpleList(){return this.view.getController("simplelist")}async onCreated(){if(await super.onCreated(),!this.view.providers.simplelist)throw new zt(this.view.model,ibiz.i18n.t("viewEngine.missingConfigErr"));const{childNames:e}=this.view;e.push("simplelist"),this.view.params.selecteddata&&(this.selectData=JSON.parse(this.view.params.selecteddata),delete this.view.params.selecteddata),this.view.slotProps.simplelist||(this.view.slotProps.simplelist={}),this.view.slotProps.pickupviewpanel||(this.view.slotProps.pickupviewpanel={}),this.view.slotProps.simplelist.mdctrlActiveMode=2,this.view.slotProps.simplelist.isSimple=!0,this.view.slotProps.simplelist.singleSelect=!1,this.view.slotProps.pickupviewpanel.singleSelect=!1}async onMounted(){await super.onMounted(),this.simpleList.evt.on("onActive",(e=>{this.simpleListActive(e.data)})),this.simpleList.setData(this.selectData)}async call(e,t){return e===eo.CANCEL?(this.cancel(),null):e===eo.OK?(this.confirm(),null):e===eo.ADD_SELECTION?(this.addSelection(),null):e===eo.ADD_ALL?(this.addAll(),null):e===eo.REMOVE_ALL?(this.removeAll(),null):e===eo.REMOVE_SELECTION?(this.removeSelection(),null):super.call(e,t)}pickupViewPanelDataActive(e){this.handlePushSimpleListItems(e)}simpleListActive(e){const t=this.simpleList.getAllData();e.forEach((e=>{const a=t.findIndex((t=>t.srfkey===e.srfkey));-1!==a&&t.splice(a,1)})),this.simpleList.setData(t)}async addSelection(){const e=await this.pickupViewPanel.getSelectedData();this.handlePushSimpleListItems(e)}handlePushSimpleListItems(e){const t=[...this.simpleList.getAllData(),...e],a=this.handleUniqueItems(t);this.simpleList.setData(a)}handleUniqueItems(e){const t=new Map;return e.filter((e=>!t.has(e.srfkey)&&t.set(e.srfkey,1)))}async addAll(){const e=await this.pickupViewPanel.getAllData();this.handlePushSimpleListItems(e)}removeAll(){this.simpleList.setData([])}removeSelection(){const e=this.simpleList.getData(),t=this.simpleList.getAllData();e.forEach((e=>{const a=t.findIndex((t=>e.srfkey===t.srfkey));-1!==a&&t.splice(a,1)})),this.simpleList.setData(t)}confirm(){const e=this.simpleList.getAllData();this.view.closeView({ok:!0,data:e})}}class OD extends ao{get tree(){return this.view.getController("tree")}async onCreated(){await super.onCreated(),this.view.slotProps.tree||(this.view.slotProps.tree={})}async call(e,t){var a;return e===eo.REFRESH_ALL?(await this.tree.refresh(),null):e===eo.REFRESH?((null==(a=null==t?void 0:t.data)?void 0:a[0])?await this.tree.refreshNodeChildren(t.data[0],!1):await this.tree.refresh(),null):e===eo.REFRESH_PARENT?(await this.tree.refreshNodeChildren(t.data[0],!0),null):super.call(e,t)}}class _D extends Jn{get tabExpPanel(){return this.view.getController("tabexppanel")}async onCreated(){var e;this.preprocessTabExpModelLayout(),await super.onCreated();const{childNames:t,model:a}=this.view;t.push("tabexppanel"),this.view.slotProps.tabexppanel||(this.view.slotProps.tabexppanel={});const{appViewParams:n}=a,o=null==(e=null==n?void 0:n.find((e=>"srfdefaultnav"===e.id)))?void 0:e.value;this.view.slotProps.tabexppanel.defaultTabName=this.view.state.srfnav||o}async onMounted(){await super.onMounted(),await this.loadEntityData()}async loadEntityData(){const e=Nn(this.view.model.appDataEntityId);if(this.view.context[e])return super.loadEntityData()}preprocessTabExpModelLayout(){const e=(t,a=this.view.model.viewLayoutPanel.rootPanelItems)=>{if(null==a?void 0:a.length)for(let n=0;n<a.length;n++){const o=a[n];if(o.id===t)return o;const i=o;if(i.panelItems&&i.panelItems.length>0){const a=e(t,i.panelItems);if(a)return a}}},t=(e,a=this.view.model.viewLayoutPanel.rootPanelItems)=>{for(let n=0;n<a.length;n++){const o=a[n];e.includes(o.id)&&a.splice(n,1);const i=o;i.panelItems&&i.panelItems.length>0&&t(e,i.panelItems)}},{tabLayout:a}=this.view.model,n=["view_tabexppanel","view_tabexppanel_left","view_tabexppanel_bottom","view_tabexppanel_right"];let o="view_tabexppanel";switch(a){case"LEFT":o="view_tabexppanel_left",n.splice(1,1);break;case"BOTTOM":o="view_tabexppanel_bottom",n.splice(2,1);break;case"RIGHT":o="view_tabexppanel_right",n.splice(3,1);break;default:n.splice(0,1)}(t=>{const a=e("tabexppanel");if(!a)throw new It(this.view.model.viewLayoutPanel,ibiz.i18n.t("viewEngine.noFoundLayoutOccupied"));const n=e(t);if(!n)throw new It(this.view.model.viewLayoutPanel,ibiz.i18n.t("viewEngine.noFoundLayoutContainer",{name:t}));n.panelItems=[a]})(o),t(n)}calcViewHeaderVisible(){let e=super.calcViewHeaderVisible();const{tabLayout:t}=this.view.model;return(void 0===t||"TOP"===t&&Qn(this.view.model,"tabexppanel"))&&(e=!0),e}}e("aY",_D);class AD extends ao{get expBarName(){throw Error(ibiz.i18n.t("viewEngine.subclassAchieve"))}get expBar(){return this.view.getController(this.expBarName)}get xdataControl(){return this.expBar.xDataController}constructor(e){var t,a;const n=null==(a=null==(t=e.model.viewLayoutPanel)?void 0:t.controls)?void 0:a.find((e=>"searchbar"===e.id));n&&!n.name&&(n.name="searchbar"),super(e)}async onCreated(){super.onCreated(),this.modifySplitContainer();const{childNames:e}=this.view;e.push(this.expBarName),this.view.slotProps[this.expBarName]||(this.view.slotProps[this.expBarName]={}),this.view.slotProps[this.expBarName].loadDefault=!1,this.view.slotProps[this.expBarName].srfnav=this.view.state.srfnav}modifySplitContainer(){const e=Qn(this.view.model,this.expBarName),{width:t,height:a}=e;(t||a)&&Ct(this.view.model.viewLayoutPanel,(e=>{"view_exp_split"===e.id&&(t&&(e.panelItems[0].layoutPos.width=t),a&&(e.panelItems[0].layoutPos.height=a))}),{childrenFields:["rootPanelItems","panelItems","panelTabPages"]})}async onXDataActive(e){}getSearchParams(){const e=super.getSearchParams();return this.expBar.state.query&&(e.query=this.expBar.state.query),e}async load(e){await this.expBar.load()}}class BD extends AD{get expBarName(){return"gridexpbar"}}class jD extends AD{get expBarName(){return"listexpbar"}}class MD extends AD{get expBarName(){return"dataviewexpbar"}}class RD extends AD{get expBarName(){return"treeexpbar"}get tree(){return this.expBar.xDataController}async call(e,t){var a;return e===eo.REFRESH_ALL?(await this.tree.refresh(),null):e===eo.REFRESH?((null==(a=null==t?void 0:t.data)?void 0:a[0])?await this.tree.refreshNodeChildren(t.data[0],!1):await this.tree.refresh(),null):e===eo.REFRESH_PARENT?(await this.tree.refreshNodeChildren(t.data[0],!0),null):super.call(e,t)}}e("aZ",RD);class ND extends Jn{get wizardPanel(){return this.view.getController("wizardpanel")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("wizardpanel")}async onMounted(){await super.onMounted(),this.view.slotProps.wizardpanel||(this.view.slotProps.wizardpanel={}),this.wizardPanel.initialize(),this.wizardPanel.evt.on("onFinishSuccess",(e=>{this.view.closeView({ok:!0,data:e.data})}))}}class LD extends ao{get xdataControlName(){return"chart"}get chart(){return this.view.getController("chart")}async onCreated(){await super.onCreated(),this.view.slotProps.chart||(this.view.slotProps.chart={})}}var VD=Object.defineProperty,FD=(e,t,a)=>(((e,t,a)=>{t in e?VD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class UD extends gD{constructor(){super(...arguments),FD(this,"isEditable",!1),FD(this,"isCalcWFToolbar",!0),FD(this,"entityService"),FD(this,"processForm"),FD(this,"wfLinks",[])}get form(){return this.view.getController(this.processForm.name)}async onCreated(){await super.onCreated();const e=ibiz.hub.getApp(this.view.context.srfappid);this.entityService=await e.deService.getService(this.view.context,this.view.model.appDataEntityId),await this.calcProcessForm();const{childNames:t}=this.view;t.push(this.processForm.name)}async onMounted(){var e;await super.onMounted(),null==(e=this.toolbar)||e.evt.on("onClick",(async e=>{"extra"===e.buttonType&&e.eventArg&&this.onLinkClick(e.eventArg)}))}async load(){const e=await super.load();return this.isCalcWFToolbar&&this.calcWfToolbar(),e}async refresh(){const e=this.processForm;await this.calcProcessForm(),e===this.processForm&&await super.refresh()}async calcProcessFormName(){const e=await this.entityService.wf.getWFStep(Object.assign(this.view.context.clone(),{...this.view.params}));this.isEditable="true"===e.data.isEditable;const t="process-".concat(ibiz.env.isMob?"mob":"","form");return e.data[t]?"wfform_".concat(e.data[t]):"form"}async calcProcessForm(){const e=await this.calcProcessFormName(),t=Qn(this.view.model,e.toLowerCase());if(!t)throw new zt(this.view.model,ibiz.i18n.t("viewEngine.noFoundFormModel",{name:e}));this.processForm=t,this.view.slotProps.form||(this.view.slotProps.form={}),this.view.slotProps.form.modelData=this.processForm}async calcWfToolbar(){if(!this.toolbar)throw new zt(this.view.model,ibiz.i18n.t("viewEngine.missingToolbarModel"));this.toolbar.clearExtraButtons();const e=ibiz.hub.getApp(this.view.context.srfappid),t=await e.deService.getService(this.view.context,this.view.model.appDataEntityId),a=await t.wf.getWFLink(Object.assign(this.view.context.clone(),{taskDefinitionKey:this.view.params.taskDefinitionKey}),this.getData()[0].getOrigin());this.wfLinks=a.data,this.wfLinks.forEach((e=>{e.id=lo()}));const n=this.wfLinks.map((e=>({id:e.id,appId:this.view.model.appId,caption:e.sequenceFlowName,buttonType:"extra",tooltip:e.sequenceFlowName,showCaption:!0})));this.toolbar.setExtraButtons("before",n)}async onLinkClick(e){const t=this.wfLinks.find((t=>t.id===e));if(t)return this.wfSubmitByLink(t)}async wfSubmitByLink(e){this.isEditable&&await this.save();const t=Object.assign(this.view.context.clone(),{isEditable:this.isEditable,processForm:e.sequenceflowform}),a={...e},n=no(this.view.model,e);if(!n)return await this.form.wfSubmit({viewParam:a}),void await this.view.closeView();(await ibiz.commands.execute(Tn.TAG,n,t,a)).ok&&await this.view.closeView()}}class qD extends UD{async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("drtab")}get drtab(){return this.view.getController("drtab")}}var GD=Object.defineProperty,HD=(e,t,a)=>(((e,t,a)=>{t in e?GD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class WD extends UD{constructor(){super(...arguments),HD(this,"isCalcWFToolbar",!1)}async calcProcessFormName(){this.isEditable="true"===this.view.context.isEditable;return this.view.context.processForm?"wfform_".concat(this.view.context.processForm):"form"}async call(e,t){return e===eo.OK?(this.onOkButtonClick(),null):e===eo.CANCEL?(await this.onCancelButtonClick(),null):super.call(e,t)}async onOkButtonClick(){this.view.context.isEditable?await this.save():this.form.state.modified=!1,await this.form.wfSubmit({}),await this.view.closeView({ok:!0,data:this.getData()})}async onCancelButtonClick(){await this.view.closeView({ok:!1,data:[]})}}var KD=Object.defineProperty,YD=(e,t,a)=>(((e,t,a)=>{t in e?KD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,t+"",a),a);class XD extends UD{constructor(){super(...arguments),YD(this,"isCalcWFToolbar",!1)}async calcProcessFormName(){this.isEditable="true"===this.view.context.isEditable;return this.view.context.processForm?"wfform_".concat(this.view.context.processForm):"form"}async call(e,t){return e===eo.OK?(this.onOkButtonClick(),null):e===eo.CANCEL?(await this.onCancelButtonClick(),null):super.call(e,t)}async onOkButtonClick(){await this.save(),await this.form.wfStart({}),await this.view.closeView({ok:!0,data:this.getData()})}async onCancelButtonClick(){await this.view.closeView({ok:!1,data:[]})}}class $D extends Jn{async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("dashboard")}get dashboard(){return this.view.getController("dashboard")}async onMounted(){await super.onMounted(),this.view.model.appDataEntityId&&await this.loadEntityData()}}class JD extends Jn{async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("panel")}get panel(){return this.view.getController("panel")}async onMounted(){await super.onMounted(),this.view.model.appDataEntityId&&await this.loadEntityData()}}class QD extends Jn{}var ZD=Object.defineProperty,eE=(e,t,a)=>(((e,t,a)=>{t in e?ZD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class tE extends OD{constructor(){super(...arguments),eE(this,"selectData",[]),eE(this,"selectBySrfkey",!1)}async onCreated(){if(super.onCreated(),this.view.slotProps.tree||(this.view.slotProps.tree={}),this.view.slotProps.tree.singleSelect=this.view.state.singleSelect,this.view.slotProps.tree.checkStrictly=this.view.state.checkStrictly,this.view.state.selectedData){this.selectData=this.view.state.selectedData.map((e=>({...e,_id:e.srfnodeid})));const e=new Set;this.selectData.forEach((t=>{if(t.srfnodeid){this.calcExpandKeys(t.srfnodeid).forEach((t=>e.add(t)))}else this.selectBySrfkey=!0})),this.view.slotProps.tree.defaultExpandedKeys=Array.from(e)}}calcExpandKeys(e){const t=[];return e.split(":").forEach(((e,a)=>{0===a?t.push(e):t.push("".concat(t[a-1],":").concat(e))})),t.pop(),t}async onMounted(){const{model:e}=this.view;let t=!1;this.xdataControl.evt.on("onSelectionChange",(async e=>{t||this.view.evt.emit("onSelectionChange",{...e})})),this.xdataControl.evt.on("onActive",(async e=>{this.view.evt.emit("onDataActive",{...e})})),this.xdataControl.evt.on("onLoadSuccess",(()=>{t=!0;let e=this.selectData;if(this.selectBySrfkey){const t=this.selectData.map((e=>e.srfkey));e=this.tree.state.items.filter((e=>t.includes(e.srfkey)))}this.xdataControl.setSelection(e),t=!1})),!this.view.state.noLoadDefault&&e.loadDefault&&this.load()}async call(e,t){return e===Yt.GET_ALL_DATA?this.tree.state.items:super.call(e,t)}}class aE extends ED{get dataview(){return this.view.getController("dataview")}async onCreated(){super.onCreated(),this.view.slotProps.dataview.singleSelect=this.view.state.singleSelect}async onMounted(){await super.onMounted(),this.xdataControl.evt.on("onSelectionChange",(async e=>{this.view.evt.emit("onSelectionChange",{...e})})),this.xdataControl.evt.on("onActive",(async e=>{this.view.evt.emit("onDataActive",{...e})}))}async call(e,t){return e===Yt.GET_ALL_DATA?this.dataview.state.items:super.call(e,t)}}class nE extends TD{get treeExpBar(){return this.view.getController("treeexpbar")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("treeexpbar"),this.view.slotProps.treeexpbar||(this.view.slotProps.treeexpbar={}),this.view.slotProps.treeexpbar.noNeedNavView=!0,this.view.slotProps.pickupviewpanel||(this.view.slotProps.pickupviewpanel={}),this.view.slotProps.pickupviewpanel.noLoadDefault=!0,this.view.slotProps.pickupviewpanel.singleSelect=!0}async onMounted(){await super.onMounted(),this.treeExpBar.load(),this.treeExpBar.evt.on("onNavViewChange",(e=>{this.view.slotProps.pickupviewpanel.context=e.navViewMsg.context,this.view.slotProps.pickupviewpanel.params={...this.view.params,...e.navViewMsg.params}}))}}class oE extends ao{async onXDataActive(e){}async onCreated(){super.onCreated();const{model:e}=this.view;this.view.slotProps.calendar||(this.view.slotProps.calendar={}),this.view.slotProps.calendar.mdctrlActiveMode=e.mdctrlActiveMode}}class iE extends Jn{get calendarExpBar(){return this.view.getController("calendarexpbar")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("calendarexpbar"),this.view.slotProps.calendarexpbar||(this.view.slotProps.calendarexpbar={}),this.view.slotProps.calendarexpbar.srfnav=this.view.state.srfnav}async onMounted(){await super.onMounted();const{model:e}=this.view;!this.view.state.noLoadDefault&&e.loadDefault&&this.calendarExpBar.load()}}class sE extends zD{get treeExpBar(){return this.view.getController("treeexpbar")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("treeexpbar"),this.view.slotProps.treeexpbar||(this.view.slotProps.treeexpbar={}),this.view.slotProps.treeexpbar.noNeedNavView=!0,this.view.slotProps.pickupviewpanel.noLoadDefault=!0}async onMounted(){await super.onMounted(),this.treeExpBar.load(),this.treeExpBar.evt.on("onNavViewChange",(e=>{this.view.slotProps.pickupviewpanel.context=e.navViewMsg.context,this.view.slotProps.pickupviewpanel.params=e.navViewMsg.params}))}}class lE extends ao{get kanbanview(){return this.view.getController("kanban")}async onCreated(){super.onCreated();const{model:e}=this.view;this.view.slotProps.kanban||(this.view.slotProps.kanban={}),this.view.slotProps.kanban.mdctrlActiveMode=e.mdctrlActiveMode}}class rE extends aE{}var cE=Object.defineProperty,dE=(e,t,a)=>(((e,t,a)=>{t in e?cE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class uE extends Jn{constructor(){super(...arguments),dE(this,"route",To()),dE(this,"enterKeyListener",(async e=>{if("Enter"===e.key&&this.view.layoutPanel){const e={data:[{username:this.view.layoutPanel.data.username,password:this.view.layoutPanel.data.password,captcha:this.view.layoutPanel.data.captcha}]};await this.login(e)}}))}async onMounted(){super.onMounted(),document.addEventListener("keydown",this.enterKeyListener)}async onDestroyed(){super.onDestroyed(),document.removeEventListener("keydown",this.enterKeyListener)}async call(e,t={}){return e===eo.LOGIN&&await this.login(t),e===eo.CANCEL_CHANGES&&await this.cancelChanges(),super.call(e,t)}async login(e){let t;const a={},n=e.data[0]||{},o=e.params.panelDataParent;if(this.view.layoutPanel){if(!await this.view.layoutPanel.validate(o))return;const e=this.view.layoutPanel.data;"boolean"==typeof e.isRemember&&(t=e.isRemember),n.captcha&&Object.assign(a,n.captcha),e.srfheaders&&Object.assign(a,e.srfheaders)}let i=n.username;uo(n.orgid)&&(i="".concat(n.username,"@").concat(n.orgid));const s=await ibiz.auth.login(i,n.password,t,a);this.view.evt.emit("onAfterLogin",{ok:s,panelDataParent:o}),!0===s&&(window.location.hash=this.route.query.ru||"/",window.location.reload())}async cancelChanges(){this.view.layoutPanel&&Object.keys(this.view.layoutPanel.panelItems).forEach((e=>{const t=this.view.layoutPanel.panelItems[e],{viewFieldName:a}=t.model;a&&t.setDataValue("",a)}))}}class pE extends OD{get treeGridEx(){return this.view.getController("treegridex")}async call(e,t){return e===eo.TOGGLE_ROW_EDIT?(this.treeGridEx.toggleRowEdit(),null):e===eo.SAVE_ROW?(this.treeGridEx.save(t.data[0]),null):e===eo.SAVE?(this.treeGridEx.saveAll(),null):e===eo.REFRESH?(this.treeGridEx.load(),null):super.call(e,t)}}class hE extends CD{get xdataControlName(){return"treegrid"}async onCreated(){await super.onCreated(),this.view.slotProps.treegrid?Object.assign(this.view.slotProps.treegrid,this.view.slotProps.grid):this.view.slotProps.treegrid=this.view.slotProps.grid}}class mE extends ao{get xdataControlName(){return"meditviewpanel"}get meditviewpanel(){return this.view.getController("meditviewpanel")}async onCreated(){await super.onCreated(),this.view.slotProps.meditviewpanel||(this.view.slotProps.meditviewpanel={})}async call(e,t){return e===eo.NEW?(await this.meditviewpanel.handleAdd(),null):e===eo.REFRESH?null:super.call(e,t)}}class vE extends Jn{get chartExpBar(){return this.view.getController("chartexpbar")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("chartexpbar"),this.view.slotProps.chartexpbar||(this.view.slotProps.chartexpbar={}),this.view.slotProps.chartexpbar.srfnav=this.view.state.srfnav}}class bE extends ao{get map(){return this.view.getController("map")}async onCreated(){super.onCreated(),this.view.slotProps.map||(this.view.slotProps.map={})}}class gE extends Jn{get searchForm(){return this.view.getController("searchform")}get searchBar(){return this.view.getController("searchbar")}get reportpanel(){return this.view.getController("reportpanel")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("searchform","searchbar","reportpanel"),this.view.slotProps.reportpanel||(this.view.slotProps.reportpanel={})}async onMounted(){await super.onMounted();const{model:e}=this.view;this.reportpanel.evt.on("onBeforeLoad",(()=>{this.reportpanel.state.searchParams=this.getSearchParams()})),this.reportpanel.evt.on("onLoadSuccess",(e=>{this.view.evt.emit("onDataChange",{...e,actionType:"LOAD"})}));const t=this.viewLayoutPanel.panelItems.view_searchform;if(t){const a=!!this.searchForm;t.state.keepAlive=a,t.state.visible=a&&!!e.expandSearchForm}this.searchForm&&this.searchForm.evt.on("onSearch",(()=>{this.reLoad()})),this.searchBar&&this.searchBar.evt.on("onSearch",(()=>{this.reLoad()})),!this.view.state.noLoadDefault&&e.loadDefault&&this.load()}async call(e,t){return e===eo.REFRESH?(await this.refresh(),null):e===eo.SEARCH?(await this.searchForm.search(),null):e===eo.RESET?(await this.searchForm.reset(),null):super.call(e,t)}getData(){return this.reportpanel.getData()}async load(){return this.reportpanel.load()}async reLoad(){await this.reportpanel.load({isInitialLoad:!0})}async refresh(){this.reportpanel.doNextActive((()=>this.load()),{key:"load"})}getSearchParams(){const e={};return this.searchForm&&Object.assign(e,this.searchForm.getFilterParams()),this.searchBar&&Object.assign(e,this.searchBar.getFilterParams()),e}calcViewHeaderVisible(){const e=super.calcViewHeaderVisible();return this.calcViewSearchBarVisible()||e}calcViewSearchBarVisible(){const{model:e}=this.view,t=this.isExistAndInLayout("searchbar");if(!t)return t;const a=Qn(e,"searchbar");return!(!a.enableQuickSearch&&!a.enableGroup&&!0!==a.enableFilter)}calcRemoveLayoutModel(){const e=super.calcRemoveLayoutModel();return this.calcViewSearchBarVisible()||e.push("view_searchbar"),e}toggleFilter(){if(this.searchForm){const e=this.viewLayoutPanel.panelItems.view_searchform;e&&(e.state.visible=!e.state.visible)}}}class wE extends ao{get gantt(){return this.view.getController("gantt")}async call(e,t){return e===eo.NEW_ROW?(this.gantt.newRow(t),null):e===eo.TOGGLE_ROW_EDIT?(this.gantt.toggleRowEdit(),null):e===eo.SAVE_ROW?(this.gantt.save(t.data[0]),null):e===eo.SAVE?(this.gantt.saveAll(),null):super.call(e,t)}async onXDataActive(e){}async onCreated(){super.onCreated();const{model:e}=this.view;this.view.slotProps.gantt||(this.view.slotProps.gantt={}),this.view.slotProps.gantt.mdctrlActiveMode=e.mdctrlActiveMode}}class fE extends gD{get drbar(){return this.view.getController("drbar")}get routeDepth(){return this.view.modal.routeDepth}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("drbar"),this.view.slotProps.drbar||(this.view.slotProps.drbar={}),this.view.slotProps.drbar.showMode="horizontal",this.view.slotProps.drbar.srfnav=this.view.state.srfnav,this.view.slotProps.drbar.hideEditItem=!0}}class yE extends Jn{}class CE extends _D{get searchForm(){return this.view.getController("searchform")}get searchBar(){return this.view.getController("searchbar")}get tabExpPanel(){return this.view.getController("tabexppanel")}preprocessTabExpModelLayout(){}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("searchform","searchbar")}async onMounted(){await super.onMounted();const e=this.viewLayoutPanel.panelItems.view_searchform;if(e){const t=!!this.searchForm;e.state.keepAlive=t,e.state.visible=t}const t=this.viewLayoutPanel.panelItems.view_searchbar;if(t){const e=this.searchBar&&!(!this.searchBar.model.enableQuickSearch&&!this.searchBar.model.enableGroup&&!0!==this.searchBar.model.enableFilter);t.state.visible=e}this.searchForm&&this.searchForm.evt.on("onSearch",(()=>{this.calcViewParams()})),this.searchBar&&this.searchBar.evt.on("onSearch",(()=>{this.calcViewParams()})),this.tabExpPanel&&this.tabExpPanel.evt.on("onTabChange",(()=>{this.calcViewParams()}))}async call(e,t){return e===eo.SEARCH?(await this.searchForm.search(),null):e===eo.RESET?(await this.searchForm.reset(),null):e===eo.REFRESH?(await this.calcViewParams(),null):super.call(e,t)}getSearchParams(){const e={};return this.searchForm&&Object.assign(e,this.searchForm.getFilterParams()),this.searchBar&&Object.assign(e,this.searchBar.getFilterParams()),e}calcViewHeaderVisible(){let e=!1;const{model:t}=this.view;return t.showCaptionBar&&(e=!0),ibiz.env.isMob?(this.isExistAndInLayout("lefttoolbar")&&(e=!0),this.isExistAndInLayout("righttoolbar")&&(e=!0)):this.isExistAndInLayout("toolbar")&&(e=!0),e}calcViewParams(){this.tabExpPanel.state.expViewParams=this.getSearchParams(),this.tabExpPanel.refresh()}}class IE extends Jn{}const DE=e("aT",{install:e=>{ibiz.engine.register("VIEW_AppIndexView",(e=>new ID(e))),ibiz.engine.register("VIEW_APPINDEXVIEW",(e=>new ID(e))),ibiz.engine.register("VIEW_GridView",(e=>new CD(e))),ibiz.engine.register("VIEW_ListView",(e=>new DD(e))),ibiz.engine.register("VIEW_TreeView",(e=>new OD(e))),ibiz.engine.register("VIEW_EditView",(e=>new gD(e))),ibiz.engine.register("VIEW_EditView2",(e=>new wD(e))),ibiz.engine.register("VIEW_EditView3",(e=>new fD(e))),ibiz.engine.register("VIEW_EditView4",(e=>new yD(e))),ibiz.engine.register("VIEW_DataView",(e=>new ED(e))),ibiz.engine.register("VIEW_OptionView",(e=>new PD(e))),ibiz.engine.register("VIEW_PickupGridView",(e=>new kD(e))),ibiz.engine.register("VIEW_PickupTreeView",(e=>new tE(e))),ibiz.engine.register("VIEW_DEPICKUPVIEW2",(e=>new nE(e))),ibiz.engine.register("VIEW_PickupView",(e=>new TD(e))),ibiz.engine.register("VIEW_MPickupView",(e=>new zD(e))),ibiz.engine.register("VIEW_DEMPICKUPVIEW2",(e=>new sE(e))),ibiz.engine.register("VIEW_TabExpView",(e=>new _D(e))),ibiz.engine.register("VIEW_GridExpView",(e=>new BD(e))),ibiz.engine.register("VIEW_ListExpView",(e=>new jD(e))),ibiz.engine.register("VIEW_DataViewExpView",(e=>new MD(e))),ibiz.engine.register("VIEW_ChartView",(e=>new LD(e))),ibiz.engine.register("VIEW_TreeExpView",(e=>new RD(e))),ibiz.engine.register("VIEW_WizardView",(e=>new ND(e))),ibiz.engine.register("VIEW_WFDynaEditView",(e=>new UD(e))),ibiz.engine.register("VIEW_DEWFDYNAEDITVIEW3",(e=>new qD(e))),ibiz.engine.register("VIEW_DEWFDYNAACTIONVIEW",(e=>new WD(e))),ibiz.engine.register("VIEW_DEWFDYNASTARTVIEW",(e=>new XD(e))),ibiz.engine.register("VIEW_APPPORTALVIEW",(e=>new $D(e))),ibiz.engine.register("VIEW_DEPORTALVIEW",(e=>new $D(e))),ibiz.engine.register("VIEW_PortalView9",(e=>new $D(e))),ibiz.engine.register("VIEW_PortalView",(e=>new $D(e))),ibiz.engine.register("VIEW_DEPANELVIEW",(e=>new JD(e))),ibiz.engine.register("VIEW_APPPANELVIEW",(e=>new JD(e))),ibiz.engine.register("VIEW_DECUSTOMVIEW",(e=>new QD(e))),ibiz.engine.register("VIEW_DEPICKUPDATAVIEW",(e=>new aE(e))),ibiz.engine.register("VIEW_DEINDEXPICKUPDATAVIEW",(e=>new aE(e))),ibiz.engine.register("VIEW_DECALENDARVIEW",(e=>new oE(e))),ibiz.engine.register("VIEW_CalendarExpView",(e=>new iE(e))),ibiz.engine.register("VIEW_FormPickupDataView",(e=>new rE(e))),ibiz.engine.register("VIEW_KanBanView",(e=>new lE(e))),ibiz.engine.register("VIEW_APPLOGINVIEW",(e=>new uE(e))),ibiz.engine.register("VIEW_TreeGridExView",(e=>new pE(e))),ibiz.engine.register("VIEW_DETREEGRIDVIEW",(e=>new hE(e))),ibiz.engine.register("VIEW_DECHARTEXPVIEW",(e=>new vE(e))),ibiz.engine.register("VIEW_DEGANTTVIEW",(e=>new wE(e))),ibiz.engine.register("VIEW_DESUBAPPREFVIEW",(e=>new yE(e))),ibiz.engine.register("VIEW_APPDATAUPLOADVIEW",(e=>new IE(e))),ibiz.engine.register("VIEW_GridView9",(e=>new CD(e))),ibiz.engine.register("VIEW_ListView9",(e=>new DD(e))),ibiz.engine.register("VIEW_EditView9",(e=>new gD(e))),ibiz.engine.register("VIEW_DataView9",(e=>new ED(e))),ibiz.engine.register("VIEW_TreeView9",(e=>new OD(e))),ibiz.engine.register("VIEW_DETABEXPVIEW9",(e=>new _D(e))),ibiz.engine.register("VIEW_PortalView9",(e=>new $D(e))),ibiz.engine.register("VIEW_DEPORTALVIEW9",(e=>new $D(e))),ibiz.engine.register("VIEW_DEMEDITVIEW9",(e=>new mE(e))),ibiz.engine.register("VIEW_DEMAPVIEW",(e=>new bE(e))),ibiz.engine.register("VIEW_DEREPORTVIEW",(e=>new gE(e))),ibiz.engine.register("VIEW_DEINDEXVIEW",(e=>new fE(e))),ibiz.engine.register("VIEW_DETABSEARCHVIEW",(e=>new CE(e)))}});var EE=Object.defineProperty,PE=(e,t,a)=>(((e,t,a)=>{t in e?EE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);const kE=e("i",ri({legacy:!1,locale:"zh-CN"}));const SE=new class{constructor(){PE(this,"html"),PE(this,"defaultLang"),PE(this,"langMap",new Map),this.defaultLang="zh-CN",this.html=document.querySelector("html");const e=localStorage.getItem("language")||navigator.language||this.defaultLang;kE.global.locale.value=e,this.html.setAttribute("lang",e),this.langMap.set("en",(()=>t.import("./index-WQEDVftL.js"))),this.langMap.set("zh-CN",(()=>t.import("./index-Cn4rG514.js")))}async init(){const e=kE.global.locale.value;let t;t=this.langMap.has(e)?this.langMap.get(e):this.langMap.get(this.defaultLang);const a=await t();kE.global.setLocaleMessage(kE.global.locale.value,a.default)}setLangConfigs(e){Object.keys(e).forEach((t=>{this.langMap.set(t,e[t])}))}setLang(e){ibiz.confirm.warning({title:"提示",desc:"切换语言需要刷新页面,确认切换?"}).then((t=>{t&&(localStorage.setItem("language",e),window.location.reload())}))}getLang(){return this.html.getAttribute("lang")||this.defaultLang}t(e,t,a){return kE.global.t(e,t,a)}mergeLocaleMessage(e,t){if("string"==typeof e){const a=e;kE.global.mergeLocaleMessage(a,t)}else{const t=e;t&&Object.keys(t).length>0&&Object.keys(t).forEach((e=>{kE.global.mergeLocaleMessage(e,t[e])}))}}};var xE=Object.defineProperty,TE=(e,t,a)=>(((e,t,a)=>{t in e?xE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class zE{constructor(e){TE(this,"isFullCode",!1),TE(this,"customModelLoader"),this.isFullCode=(null==e?void 0:e.isFullCode)||!1,this.customModelLoader=(null==e?void 0:e.customModelLoader)||void 0,this.customModelLoader&&ibiz.hub.registerModelLoaderProvider(this.customModelLoader)}async verify(e=!0){if(e){let e=!0;try{ibiz.env.enableAnonymous&&await this.anonymousValidate(),await this.appInit()}catch(t){e=!1,ibiz.util.error.handle(t)}return e}return await this.initModel(!1),!0}async anonymousValidate(){const e=ibiz.auth.getAuthInfo();if(e&&!e.isAnonymous)return;await this.initModel(!1);const t=window.location.hash.split("/"),a=t[t.length-2];let n;try{n="#"===a&&ibiz.hub.defaultPage?await ibiz.hub.getAppView(ibiz.hub.defaultPage.id):await ibiz.hub.getAppView(a)}catch(e){ibiz.log.error(e)}if(!n)return ibiz.log.error("找不到视图模型".concat(a,",请确保该视图配置了匿名访问和用户引用")),void this.throw401();if(3!==n.accUserMode&&this.throw401(),!e){if(!await ibiz.auth.anonymousLogin())throw new vt(ibiz.i18n.t("webApp.authGuard.loginFailed"))}}async appInit(){try{!0===ibiz.env.isSaaSMode&&await this.loadOrgData(),await this.loadAppData()}catch(e){const t=e.status,a=ro(mt.TOKEN_REMEMBER),n=ro(mt.REFRESH_TOKEN);if(401!==t||!a||null==n||""===n)throw e;try{await ibiz.auth.refreshToken(),!0===ibiz.env.isSaaSMode&&await this.loadOrgData(),await this.loadAppData()}catch(t){throw e}}await this.initModel(),await ibiz.auth.extendLogin(),await ibiz.hub.notice.init(),await ibiz.util.theme.initCustomTheme()}async initModel(e=!0){}async loadAppData(){const e=await ibiz.net.get("/appdata");e.ok&&(ibiz.appData=e.data)}async loadOrgData(){const e=await ibiz.net.get("/uaa/getbydcsystem/".concat(ibiz.env.dcSystem));if(e.ok){const t=e.data;if(t){const[e]=t;ibiz.orgData=e}}}async initTheme(e){if(e.appUIThemes)await this.loadTheme();else{const e=await t.import("@ibiz-template/web-theme"),a=e.default||e;tt.useComponent.callSync(null,a)}}async loadTheme(){const e=ibiz.hub.getApp().model.appUIThemes||[];if(e.length>0){const t=e[0];await ibiz.util.theme.loadTheme(t)}}async initEnvironment(e){const t=e.userParam;t&&(Object.keys(t).forEach((e=>{const a=ibiz.util.rawValue.format(t[e]),n=e.split(".");let o=ibiz.env;for(let e=0;e<n.length;e++){const t=n[e];e===n.length-1?o[t]=a:(o[t]=o[t]||{},o=o[t])}})),ibiz.env.globalConfig&&(ibiz.config=Co(ibiz.config,ibiz.env.globalConfig)),ibiz.log.setLevel(ibiz.env.logLevel))}throw401(){throw new _t({response:{status:401,statusText:ibiz.i18n.t("webApp.authGuard.noPermission")}})}}e("bb",zE);var OE=Object.defineProperty,_E=(e,t,a)=>(((e,t,a)=>{t in e?OE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class AE extends zE{constructor(){super(...arguments),_E(this,"hasModelInit",!1),_E(this,"noPermissionModel",!1)}async initModel(e=!0){if(!this.hasModelInit||this.hasModelInit&&this.noPermissionModel!==e){ibiz.hub.reset();const a=new ci((async(t,a)=>(await ibiz.net.get("".concat(ibiz.env.remoteModelUrl).concat(t),a,e?{}:{srfdcsystem:ibiz.env.dcSystem})).data),ibiz.env.appId,e),n=await a.getAppModel();await this.initEnvironment(n);const o=await ibiz.hub.getAppAsync(ibiz.env.appId),i=o.model;if(ibiz.env.isMob=!0===i.mobileApp,ibiz.env.isEnableMultiLan){const e=ibiz.i18n.getLang(),t=(await a.getPSAppLang(e.replace("-","_").toUpperCase())).languageItems||[],n={};t.forEach((e=>{n[e.lanResTag]=e.content})),kE.global.mergeLocaleMessage(e,n)}if(i.appUIThemes)await this.loadTheme();else{const e=await t.import("@ibiz-template/web-theme"),a=e.default||e;tt.useComponent.callSync(null,a)}o.model.title&&ibiz.util.setBrowserTitle("")}this.noPermissionModel=e,this.hasModelInit=!0}}
|
|
2
|
-
/*! Element Plus v2.4.4 */var BE={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}},jE={install:e=>{ibiz.i18n=SE,ibiz.util.getExcelUtil=()=>t.import("./xlsx-util-TeHbTGD_.js"),oo("404",(()=>({component:tD}))),oo("403",(()=>({component:aD}))),e.use(As),e.use(Nw),e.use(DE),e.use(at),e.use(nt),e.use(rD),e.use(ot),e.use(hD),e.use(id),e.use(pd),e.use(Ks),e.use(Zs),e.use(ur),e.use(um),e.use(gr),e.use(wu),e.use(gd),e.use(Yc),e.use(it),e.use(st),e.use(Rc),e.use(Bd),e.use(Gd),e.use(Ld),e.use(Ir),e.use(jc),e.use(Zc),e.use(Id),e.use(Td),e.use(mu),e.use(Du),e.use(Ou),e.use(Fu),e.use(Kp),e.use(Rh),e.use(Xd),e.use(qh),e.use(sm),e.use(bm),e.use(eu),e.use(Cm),e.use(_m),e.use(Rm),e.use(Um),e.use(eD)}};function ME(e,a){const n=I(e,a);n.component("KeepAlive",z),n.config.errorHandler=function(e){ibiz.util.error.handle(e)};const o=(e,t)=>{n.use(t)};tt.useComponent.tap(o);if(t.import("@ibiz-template-plugin/bi-report").then((e=>{const t=e.default;tt.useComponent.callSync(null,t),tt.createApp.tap(((e,a)=>{a.use(t)}))})),a){const e=a.unmounted;a.unmounted=()=>{e(),tt.useComponent.removeTap(o)}}return n.use(kE),n.use(ni,{locale:BE}),n.use(lt),n.use(jE),tt.createApp.callSync(null,n),ibiz.plugin.register(n),n}const RE=new Map([["baseUrl","BaseUrl"],["remoteModelUrl","remoteDynaPath"],["dcSystem","mockDcSystemId"],["enablePermission","enablePermissionValid"],["enableTitle","enableTitle"]]);async function NE(){const e=window.Environment,t=Io.parse(window.location.search,{ignoreQueryPrefix:!0});if(Object.keys(ibiz.env).forEach((t=>{const a=RE.has(t)?RE.get(t):t;null!=e[a]&&(ibiz.env[t]=e[a])})),t&&t.srfdcsystem&&(ibiz.env.dcSystem=t.srfdcsystem),e.AppTitle&&(document.title=e.AppTitle),e.favicon){const t=document.getElementById("favicon");if(t){const a=e.favicon;a.endsWith(".png")?t.type="image/png":a.endsWith(".ico")?t.type="image/x-icon":a.endsWith(".gif")?t.type="image/gif":a.endsWith(".svg")&&(t.type="image/svg+xml"),t.href=a}}e.globalConfig&&(ibiz.env.globalConfig=e.globalConfig,ibiz.config=Co(ibiz.config,e.globalConfig)),ibiz.log.setLevel(ibiz.env.logLevel)}var LE=a({setup(){const e=new la({mode:ra.ROUTE,viewUsage:1,routeDepth:1}),a=async e=>{if((e.ctrlKey||e.metaKey)&&"F12"===e.code){document.removeEventListener("keydown",a);const e=await t.import("@ibiz-template/devtool"),n=e.default||e;tt.useComponent.callSync(null,n)}};document.addEventListener("keydown",a);const n=()=>{window.removeEventListener("unload",n),ibiz.hub.destroy()};return window.addEventListener("unload",n),C((()=>{n()})),{modal:e}},render(){return o(i("router-view"),{modal:this.modal},null)}});class VE{match(e){return e instanceof _t&&(401===e.status||403===e.status)}async casLogin(){if(!ibiz.env.casLoginUrl)throw new vt(ibiz.i18n.t("webApp.unauthorizedHandler.noFoundEnvParams"));const{origin:e}=window.location,t="".concat(e).concat(ibiz.env.baseUrl),a="".concat(t,"/cas/v7/login").concat(Io.stringify({RU:wt.fullPath,base:t},{addQueryPrefix:!0})),n=-1!==ibiz.env.casLoginUrl.indexOf("?"),o=ibiz.env.casLoginUrl+(n?"&":"?")+Io.stringify({service:a},{addQueryPrefix:!1});window.location.href=o}async normalLogin(){const e=window.location.hash.replace("#",""),t="".concat(wt.routeBase,"/login?ru=").concat(encodeURIComponent(e));document.body.style.display="none",window.location.href=t,window.location.reload()}async handle403(e){ibiz.mc.error.send(e)}handle(e){if(e instanceof _t){if(401===e.status){return Io.parse(window.location.search.replace("?","")).isAnonymous?ibiz.auth.anonymousLogin().then((e=>{e&&window.location.reload()})):ibiz.env.loginMode===At.CAS?this.casLogin():this.normalLogin(),!0}if(403===e.status)return this.handle403(e),!0}}}var FE={exports:{}};
|
|
3
|
-
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
4
|
-
* @license MIT */!function(e){e.exports=function(){var e,t,a={version:"0.2.0"},n=a.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,a){return e<t?t:e>a?a:e}function i(e){return 100*(-1+e)}function s(e,t,a){var o;return(o="translate3d"===n.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===n.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+t+"ms "+a,o}a.configure=function(e){var t,a;for(t in e)void 0!==(a=e[t])&&e.hasOwnProperty(t)&&(n[t]=a);return this},a.status=null,a.set=function(e){var t=a.isStarted();e=o(e,n.minimum,1),a.status=1===e?null:e;var i=a.render(!t),c=i.querySelector(n.barSelector),d=n.speed,u=n.easing;return i.offsetWidth,l((function(t){""===n.positionUsing&&(n.positionUsing=a.getPositioningCSS()),r(c,s(e,d,u)),1===e?(r(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout((function(){r(i,{transition:"all "+d+"ms linear",opacity:0}),setTimeout((function(){a.remove(),t()}),d)}),d)):setTimeout(t,d)})),this},a.isStarted=function(){return"number"==typeof a.status},a.start=function(){a.status||a.set(0);var e=function(){setTimeout((function(){a.status&&(a.trickle(),e())}),n.trickleSpeed)};return n.trickle&&e(),this},a.done=function(e){return e||a.status?a.inc(.3+.5*Math.random()).set(1):this},a.inc=function(e){var t=a.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),a.set(t)):a.start()},a.trickle=function(){return a.inc(Math.random()*n.trickleRate)},e=0,t=0,a.promise=function(n){return n&&"resolved"!==n.state()?(0===t&&a.start(),e++,t++,n.always((function(){0==--t?(e=0,a.done()):a.set((e-t)/e)})),this):this},a.render=function(e){if(a.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=n.template;var o,s=t.querySelector(n.barSelector),l=e?"-100":i(a.status||0),c=document.querySelector(n.parent);return r(s,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),n.showSpinner||(o=t.querySelector(n.spinnerSelector))&&h(o),c!=document.body&&d(c,"nprogress-custom-parent"),c.appendChild(t),t},a.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(n.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},a.isRendered=function(){return!!document.getElementById("nprogress")},a.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function t(){var a=e.shift();a&&a(t)}return function(a){e.push(a),1==e.length&&t()}}(),r=function(){var e=["Webkit","O","Moz","ms"],t={};function a(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function n(t){var a=document.body.style;if(t in a)return t;for(var n,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+i)in a)return n;return t}function o(e){return e=a(e),t[e]||(t[e]=n(e))}function i(e,t,a){t=o(t),e.style[t]=a}return function(e,t){var a,n,o=arguments;if(2==o.length)for(a in t)void 0!==(n=t[a])&&t.hasOwnProperty(a)&&i(e,a,n);else i(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function d(e,t){var a=p(e),n=a+t;c(a,t)||(e.className=n.substring(1))}function u(e,t){var a,n=p(e);c(e,t)&&(a=n.replace(" "+t+" "," "),e.className=a.substring(1,a.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return a}()}(FE);var UE=WI(FE.exports);const qE=a({name:"ModalRouterShell",props:{modal:{type:Object,required:!0}},setup(e){const t=To(),a=zo(),o=n(!1),i=n({}),s=[],l=e.modal.routeDepth;let r=null;C((()=>{o.value=!0,r&&(r.dismiss(),r=null),(()=>{if(i.value.context){const{context:e}=k(i.value);e&&e.destroy()}})()}));const c=async e=>{var t;if(i.value=await rt(e,l,!0),o.value)return;i.value.context instanceof kt||(i.value.context=kt.create(i.value.context));const n=e.params.modalView,c=e.params.modalParams;if(c){const e=Io.parse(c,{strictNullHandling:!0,delimiter:";"});if(e.srfnavctx){const t=JSON.parse(decodeURIComponent(e.srfnavctx));Object.assign(i.value.context,t),delete e.srfnavctx}e.srfnav&&(i.value.srfnav=e.srfnav,delete e.srfnav),yo(e)||(i.value.params?Object.assign(i.value.params,e):i.value.params=e)}if(!i.value.context){const e=kt.create({});i.value.context=e}let d,u=i.value.viewConfig;try{u||(u=await ibiz.hub.config.view.get(n)),d=ct({context:i.value.context,params:i.value.params,viewId:u.id})}catch(e){d=tD}const p={width:(null==u?void 0:u.width)||"80%",height:(null==u?void 0:u.height)||"80%",footerHide:!0,isRouteModal:!0};r=ibiz.overlay.createModal(d,void 0,p),r.present(),s.push(e.fullPath);const h=await r.onWillDismiss();if(r=null,!1===o.value){if(null==(t=window.history.state)?void 0:t.back)a.back();else{const t=e.path,n=t.indexOf("/".concat(io.ROUTE_MODAL_TAG,"/"));a.replace(t.substring(0,n))}W.close(a.currentRoute.value.fullPath,h||{ok:!1})}};return Oo(((e,t)=>{if(!o.value&&s.length>0&&-1!==s.indexOf(t.fullPath)&&-1===s.indexOf(e.fullPath)){const t=ie(e).pathNodes,a=t[t.length-1];a&&a.viewName===io.ROUTE_MODAL_TAG&&c(e)}})),c(t),{}},render:()=>o("div",{style:"position: absolute;width: 0;height: 0;"},null)}),GE=a({name:"RouterShell",props:{modal:{type:Object,required:!0}},setup(e){const t=To(),a=zo(),o=n({}),i=n(!1),s=n(!0),l=()=>{if(o.value.context){const{context:e}=k(o.value);e&&e.destroy()}},r=e.modal.routeDepth;C((()=>{l()}));const d=async()=>{try{const e=await rt(t,r),a=kt.create(e.context);o.value={...e,context:a},i.value=!0}catch(e){a.push({name:"errorView".concat(r),params:{code:"404"}})}};d(),c((()=>t.params.view1),(()=>{1===r&&(l(),d())}));const u=new la({mode:ra.ROUTE,routeDepth:r+1});return S((()=>{s.value=!0})),O((()=>{s.value=!1})),{routeModal:u,route:t,viewData:o,isLoaded:i,isActivated:s}},render(){if(!this.isLoaded)return null;const{context:e,params:t,srfnav:a,viewConfig:n}=this.viewData,s=fo({...this.$props,...this.$attrs,context:e,params:t,viewId:n.id,key:n.codeName},{state:{srfnav:a}});return o(_,null,[r(i("IBizViewShell"),s,this.$slots),this.isActivated&&o(i("router-view"),{key:n.codeName,name:io.ROUTE_MODAL_TAG,modal:this.routeModal},null)])}});function HE(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)}const WE=a({setup(){const e=A("share-view"),t=zo(),a=To(),o=n(!1),i=n(!1),s=n({});let l={},r="";d((async()=>{const e=a.query;r=window.atob(e.shareThemeId),s.value={userId:e.shareUserId,userName:e.shareUserName},ibiz.util.hiddenAppLoading(),await ibiz.util.theme.initCustomTheme(!1),await(async()=>{const{userId:e}=s.value;l=await ibiz.util.theme.getShareTheme(e,r),l&&ibiz.util.theme.previewCustomTheme(l.themeTag,l.themeVars)})(),i.value=!0}));return{ns:e,loading:o,isMounted:i,shareUser:s,handleApply:async()=>{await ibiz.util.theme.saveCustomTheme(l.themeTag,l.themeVars),t.push("/")},handleCancel:()=>{ibiz.util.theme.resetCustomTheme(),t.push("/")}}},render(){let e,t;if(this.isMounted)return o("div",{class:this.ns.b()},[o("div",{class:this.ns.b("box")},[o("header",{class:this.ns.b("box-header")},[o("img",{src:"./assets/images/login-header.png"},null),o("div",{class:this.ns.b("box-header-title")},[o("div",null,[this.shareUser.userName]),ibiz.i18n.t("view.shareView.inviting")])]),o("main",{class:this.ns.b("box-main")},[o("div",{class:this.ns.b("box-main-content")},[o(i("el-button"),{onClick:this.handleApply,size:"large",round:!0,loading:this.loading},HE(e=ibiz.i18n.t("view.shareView.use"))?e:{default:()=>[e]}),o(i("el-button"),{onClick:this.handleCancel,size:"large",round:!0},HE(t=ibiz.i18n.t("view.shareView.cancel"))?t:{default:()=>[t]})])])])])}});var KE=Object.defineProperty,YE=(e,t,a)=>(((e,t,a)=>{t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a);class XE{static setAuthGuard(e){this.authGuard=e}static getRouter(){const e=ibiz.env.routePlaceholder,t="[^/]+=[^/]+|".concat(e),a="[^=/]+";return this.router||(this.router=_o({history:Ao(),routes:[{path:"/",redirect:"/".concat(e,"/index/").concat(e)},{path:"/login",name:"loginView",beforeEnter:async(e,t,a)=>{await this.authGuard(!1),a()},component:nD},{path:"/share",name:"shareView",beforeEnter:async(e,t,a)=>{await this.authGuard()?a():a(!1)},component:WE},{path:"/error/:code",name:"errorView1",component:mD},{path:"/appredirectview",name:"appRedirectView",beforeEnter:async(e,t,a)=>{await this.authGuard()?a():a(!1)},component:dt},{path:"/:appContext(".concat(t,")/:view1(").concat(a,")/:params1(").concat(t,")"),beforeEnter:async(e,t,a)=>{await this.authGuard()?a():a(!1)},component:GE,children:[{path:"error/:code",name:"errorView2",component:mD},{path:"".concat(io.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(t,")"),components:{[io.ROUTE_MODAL_TAG]:qE}},{path:":view2(".concat(a,")/:params2(").concat(t,")"),component:GE,children:[{path:"error/:code",name:"errorView3",component:mD},{path:"".concat(io.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(t,")"),components:{[io.ROUTE_MODAL_TAG]:qE}},{path:":view3(".concat(a,")/:params3(").concat(t,")"),component:GE,children:[{path:"error/:code",name:"errorView4",component:mD},{path:"".concat(io.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(t,")"),components:{[io.ROUTE_MODAL_TAG]:qE}},{path:":view4(".concat(a,")/:params4(").concat(t,")"),component:GE,children:[{path:"error/:code",name:"errorView5",component:mD},{path:"".concat(io.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(t,")"),components:{[io.ROUTE_MODAL_TAG]:qE}},{path:":view5(".concat(a,")/:params5(").concat(t,")"),component:GE,children:[{path:"error/:code",name:"errorView6",component:mD},{path:"".concat(io.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(t,")"),components:{[io.ROUTE_MODAL_TAG]:qE}},{path:":view6(".concat(a,")/:params6(").concat(t,")"),component:GE,children:[{path:"error/:code",name:"errorView7",component:mD},{path:"".concat(io.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(t,")"),components:{[io.ROUTE_MODAL_TAG]:qE}},{path:":view7(".concat(a,")/:params7(").concat(t,")"),component:GE,children:[{path:"error/:code",name:"errorView8",component:mD},{path:"".concat(io.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(t,")"),components:{[io.ROUTE_MODAL_TAG]:qE}},{path:":view8(".concat(a,")/:params8(").concat(t,")"),component:GE},{path:":pathMatch(.*)*",redirect:{name:"errorView8"}}]},{path:":pathMatch(.*)*",redirect:{name:"errorView7"}}]},{path:":pathMatch(.*)*",redirect:{name:"errorView6"}}]},{path:":pathMatch(.*)*",redirect:{name:"errorView5"}}]},{path:":pathMatch(.*)*",redirect:{name:"errorView4"}}]},{path:":pathMatch(.*)*",redirect:{name:"errorView3"}}]},{path:":pathMatch(.*)*",redirect:{name:"errorView2"}}]},{path:"/:pathMatch(.*)*",redirect:{name:"errorView1"}}]}),this.router.beforeEach(((e,t,a)=>{UE.configure({showSpinner:!1}),UE.start(),a()})),this.router.afterEach((()=>{UE.done()}))),this.router}}e("bd",XE),YE(XE,"router"),YE(XE,"authGuard")}}}));
|