@cldemo/ui-kit 1.0.17 → 1.1.1
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/COMPONENT_CATALOG.md +5 -5
- package/README.md +15 -69
- package/buildLibs/{mobile/BallColor4-DpnfFrBL.js → all/BallColor4-CYDMNYIL.js} +1 -1
- package/buildLibs/all/{BallColor4-DkQt6rSf.cjs → BallColor4-CaqTfMcX.cjs} +1 -1
- package/buildLibs/all/{ToastRing-B-erJp2o.js → ToastRing-BW0hddZN.js} +1 -1
- package/buildLibs/{web/ToastRing-DKVLp5rZ.cjs → all/ToastRing-DqiGLTLN.cjs} +1 -1
- package/buildLibs/all/{Video-BwDG93FI.cjs → Video-BV-GRW4X.cjs} +1 -1
- package/buildLibs/all/{Video-CMkViuqG.js → Video-Bbk0_YWw.js} +1 -1
- package/buildLibs/all/index-Cap0WJgK.cjs +14 -0
- package/buildLibs/all/{index-DA_I2NVO.js → index-sPYdePtz.js} +17012 -16694
- package/buildLibs/all/index.cjs +1 -1
- package/buildLibs/all/index.css +1 -1
- package/buildLibs/all/index.js +75 -75
- package/buildLibs/common/Common/Element/Event/drag.d.ts +7 -1
- package/buildLibs/common/Common/Tools/device.d.ts +2 -2
- package/buildLibs/common/Common/base.d.ts +2 -2
- package/buildLibs/common/Common/browserProgress.d.ts +3 -1
- package/buildLibs/common/Common/globalConfig.d.ts +18 -3
- package/buildLibs/common/Element/Event/drag.cjs +1 -1
- package/buildLibs/common/Element/Event/drag.js +26 -14
- package/buildLibs/common/Tools/device.cjs +1 -1
- package/buildLibs/common/Tools/device.js +27 -27
- package/buildLibs/common/axios.cjs +1 -1
- package/buildLibs/common/axios.js +20 -14
- package/buildLibs/common/base.cjs +1 -1
- package/buildLibs/common/base.js +10 -10
- package/buildLibs/common/browserProgress.cjs +1 -1
- package/buildLibs/common/browserProgress.js +24 -15
- package/buildLibs/common/day.js +14 -5
- package/buildLibs/{web/BallColor4-BahMtWFj.cjs → mobile/BallColor4-C7lQaABY.cjs} +1 -1
- package/buildLibs/{all/BallColor4-UHANgP7D.js → mobile/BallColor4-DogqtiHo.js} +1 -1
- package/buildLibs/mobile/{ToastRing-hBf9THbv.cjs → ToastRing-BQAASeWu.cjs} +1 -1
- package/buildLibs/mobile/{ToastRing-Dj7ooJtL.js → ToastRing-ZSOlED5s.js} +1 -1
- package/buildLibs/mobile/{index-BugOQA6Z.js → index-Bh4jt080.js} +7986 -7774
- package/buildLibs/mobile/index-DmdxP8hd.cjs +10 -0
- package/buildLibs/mobile/index.cjs +1 -1
- package/buildLibs/mobile/index.css +1 -1
- package/buildLibs/mobile/index.js +67 -67
- package/buildLibs/modules/actionSheet.js +5 -5
- package/buildLibs/modules/anchorNav.js +4 -4
- package/buildLibs/modules/backTop.js +3 -3
- package/buildLibs/modules/badge.js +1 -1
- package/buildLibs/modules/banner.js +4 -4
- package/buildLibs/modules/breadcrumb.js +3 -3
- package/buildLibs/modules/button.js +1 -1
- package/buildLibs/modules/calendar.js +32 -32
- package/buildLibs/modules/calendarM.js +61 -65
- package/buildLibs/modules/callout.js +2 -2
- package/buildLibs/modules/card.js +1 -1
- package/buildLibs/modules/cardColor.js +2 -2
- package/buildLibs/modules/cell.js +3 -3
- package/buildLibs/modules/cellSwipe.js +2 -2
- package/buildLibs/modules/checkbox.js +1 -1
- package/buildLibs/modules/checkboxOne.js +1 -1
- package/buildLibs/modules/clipboard.js +1 -1
- package/buildLibs/modules/codeLegend.js +3 -3
- package/buildLibs/modules/codeLegendM.js +4 -4
- package/buildLibs/modules/collapse.js +3 -3
- package/buildLibs/modules/colorPicker.js +8 -8
- package/buildLibs/modules/countDown.js +2 -2
- package/buildLibs/modules/cropper.js +1 -1
- package/buildLibs/modules/cropperM.js +6 -6
- package/buildLibs/modules/cropperPreview.js +6 -6
- package/buildLibs/modules/darg.js +2 -2
- package/buildLibs/modules/dateTime.js +1 -1
- package/buildLibs/modules/divider.js +2 -80
- package/buildLibs/modules/dropdownMenu.js +110 -48
- package/buildLibs/modules/dropdownMenuItem.js +44 -27
- package/buildLibs/modules/dropdownMenuM.js +2 -2
- package/buildLibs/modules/dropdownMenuMItem.js +4 -4
- package/buildLibs/modules/dropdownPopup.js +3 -3
- package/buildLibs/modules/echarts.js +1 -1
- package/buildLibs/modules/echartsLineAxisTag.js +4 -4
- package/buildLibs/modules/ellipsis.js +1 -1
- package/buildLibs/modules/empty.js +2 -2
- package/buildLibs/modules/fileUpload.js +1 -1
- package/buildLibs/modules/floatBubble.cjs +5 -0
- package/buildLibs/modules/floatBubble.d.ts +1 -0
- package/buildLibs/modules/{floatingBubble.js → floatBubble.js} +39 -39
- package/buildLibs/modules/floatPanel.cjs +5 -0
- package/buildLibs/modules/floatPanel.d.ts +1 -0
- package/buildLibs/modules/{floatingPanel.js → floatPanel.js} +96 -96
- package/buildLibs/modules/form.js +1 -1
- package/buildLibs/modules/formGroupBtns.js +3 -3
- package/buildLibs/modules/formGroupHorizontal.js +1 -1
- package/buildLibs/modules/formGroupVertical.js +2 -2
- package/buildLibs/modules/formValidate.js +1 -1
- package/buildLibs/modules/framePhone.js +1 -1
- package/buildLibs/modules/grid.js +3 -3
- package/buildLibs/modules/iconFont.js +1 -1
- package/buildLibs/modules/image.js +1 -1
- package/buildLibs/modules/indexBar.js +2 -2
- package/buildLibs/modules/input.js +1 -1
- package/buildLibs/modules/inputCaptcha.js +3 -3
- package/buildLibs/modules/inputNumber.js +1 -1
- package/buildLibs/modules/inputNumberStepper.js +1 -1
- package/buildLibs/modules/inputPassword.js +4 -4
- package/buildLibs/modules/inputPin.cjs +5 -0
- package/buildLibs/modules/inputPin.d.ts +1 -0
- package/buildLibs/modules/inputPin.js +182 -0
- package/buildLibs/modules/inputSearch.js +1 -1
- package/buildLibs/modules/inputTag.js +1 -1
- package/buildLibs/modules/inputTextarea.js +1 -1
- package/buildLibs/modules/link.js +1 -1
- package/buildLibs/modules/load.js +1 -1
- package/buildLibs/modules/loadFullCenter.js +2 -2
- package/buildLibs/modules/loadIng.js +1 -1
- package/buildLibs/modules/loadScreen.js +4 -4
- package/buildLibs/modules/loadWarp.js +3 -3
- package/buildLibs/modules/modal.js +1 -1
- package/buildLibs/modules/navBar.js +3 -3
- package/buildLibs/modules/noticeBar.js +19 -19
- package/buildLibs/modules/notifyM.js +199 -97
- package/buildLibs/modules/numberKeyboard.js +36 -36
- package/buildLibs/modules/numberRoll.js +2 -2
- package/buildLibs/modules/overlay.js +1 -1
- package/buildLibs/modules/paginate.js +1 -1
- package/buildLibs/modules/picker.js +1 -1
- package/buildLibs/modules/pickerArea.cjs +5 -0
- package/buildLibs/modules/pickerArea.d.ts +1 -0
- package/buildLibs/modules/pickerArea.js +255 -0
- package/buildLibs/modules/pickerCascader.js +4 -4
- package/buildLibs/modules/pickerDate.js +71 -71
- package/buildLibs/modules/pickerTime.js +56 -56
- package/buildLibs/modules/popup.js +1 -1
- package/buildLibs/modules/portlet.js +2 -2
- package/buildLibs/modules/previewExample.js +1 -1
- package/buildLibs/modules/progress.js +3 -3
- package/buildLibs/modules/pullToRefresh.js +1 -1
- package/buildLibs/modules/radio.js +1 -1
- package/buildLibs/modules/radioOne.js +1 -1
- package/buildLibs/modules/rate.js +3 -3
- package/buildLibs/modules/scrollCard.js +220 -200
- package/buildLibs/modules/scrollXFence.js +1 -1
- package/buildLibs/modules/select.js +1 -1
- package/buildLibs/modules/selectCascade.js +1 -1
- package/buildLibs/modules/selectMove.js +8 -8
- package/buildLibs/modules/selectTag.js +1 -1
- package/buildLibs/modules/selectTree.js +6 -6
- package/buildLibs/modules/sharePanel.cjs +5 -0
- package/buildLibs/modules/sharePanel.d.ts +1 -0
- package/buildLibs/modules/{shareSheet.js → sharePanel.js} +52 -52
- package/buildLibs/modules/shared/{BallColor4-DLGMFp7g.js → BallColor4-Dw8bQzLW.js} +1 -1
- package/buildLibs/{utils/Shared/Base.vue_vue_type_script_setup_true_lang-Z6sD7O6T.js → modules/shared/Base.vue_vue_type_script_setup_true_lang-DaZg8_tt.js} +81 -70
- package/buildLibs/modules/shared/Column.vue_vue_type_script_setup_true_lang-rT_ICHhO.js +174 -0
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-B8nfrdHt.js → Index.vue_vue_type_script_setup_true_lang-5TIkYSxG.js} +2 -2
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-Axa69KHA.js +939 -0
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZRko_Hq.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-B9M3m9HE.js} +6 -6
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CG4BhqfV.js → Index.vue_vue_type_script_setup_true_lang-BkR-sQJt.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-EjdgvHF5.js → Index.vue_vue_type_script_setup_true_lang-C1bquiI9.js} +2 -2
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvcWTBEv.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-C2EI2VnJ.js} +4 -4
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BH8ejOuv.js → Index.vue_vue_type_script_setup_true_lang-C5i17oB9.js} +5 -5
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-1gL-yfzx.js → Index.vue_vue_type_script_setup_true_lang-CQ-_RRa-.js} +3 -3
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CkUfNTb6.js → Index.vue_vue_type_script_setup_true_lang-CSV3c0_h.js} +3 -3
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-x28PWOid.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-CVSATrNA.js} +3 -3
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-XWxNmuC2.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-CYRh_OzP.js} +5 -5
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-BESTuFHY.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-CoQ8bldZ.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DTtbdgoO.js → Index.vue_vue_type_script_setup_true_lang-Cp5rYwnC.js} +28 -25
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CqIT3zxY.js +82 -0
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-D0LqAmBY.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-D0_5BgAN.js} +9 -9
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-e41SaSkr.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-D0oA7-eQ.js} +2 -2
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-CMK-TwEo.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-D0s2DEcR.js} +13 -13
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-D5akRc9d.js +380 -0
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BgFzdwmp.js → Index.vue_vue_type_script_setup_true_lang-D6gcg5sW.js} +46 -46
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-Cukt_Rkd.js → Index.vue_vue_type_script_setup_true_lang-D8H72Fc9.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DEi_COkc.js → Index.vue_vue_type_script_setup_true_lang-DB10zsLZ.js} +5 -5
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-BZSJp1GF.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-DBo8NT25.js} +3 -3
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-bmKRziC6.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-DG98f73r.js} +3 -3
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-DKe5rvrv.js +213 -0
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-Dt9cW3rp.js → Index.vue_vue_type_script_setup_true_lang-DWJ1bJbw.js} +8 -8
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-iMbGY-sX.js → Index.vue_vue_type_script_setup_true_lang-DX5H6qmm.js} +108 -108
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVBKgYfQ.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-DapaVMSO.js} +2 -2
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-B0I5VIPk.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-DkCTGpCo.js} +3 -3
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-Cy8lSIYw.js → Index.vue_vue_type_script_setup_true_lang-DpEMLNQd.js} +23 -18
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-Bn3j7iE7.js → Index.vue_vue_type_script_setup_true_lang-DtsjjKBG.js} +6 -6
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-BBVM_RnZ.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-Dy6W7sIl.js} +5 -5
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-B9byrXKx.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-GSyMXu17.js} +22 -22
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BZHTSznV.js → Index.vue_vue_type_script_setup_true_lang-N3rQdrH6.js} +47 -50
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-B0wTFrxX.js → Index.vue_vue_type_script_setup_true_lang-Ohuu4j9n.js} +54 -49
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-3KP-rPyM.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-UCm0Csto.js} +4 -4
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-DcAEnje5.js → Index.vue_vue_type_script_setup_true_lang-X9pUZWHF.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BBiQbTaJ.js → Index.vue_vue_type_script_setup_true_lang-dwaD7E4N.js} +101 -98
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-B7H-n7gl.js → Index.vue_vue_type_script_setup_true_lang-o-s4A6rG.js} +5 -5
- package/buildLibs/{utils/Shared/Ing.vue_vue_type_script_setup_true_lang-DprFXKbk.js → modules/shared/Ing.vue_vue_type_script_setup_true_lang-Bnc9BIaT.js} +3 -3
- package/buildLibs/modules/shared/{List.vue_vue_type_script_setup_true_lang-8UJTbHh3.js → List.vue_vue_type_script_setup_true_lang-1SlAzQsU.js} +4 -4
- package/buildLibs/modules/shared/{One.vue_vue_type_script_setup_true_lang-BiqtUBqP.js → One.vue_vue_type_script_setup_true_lang-BkfhsInn.js} +4 -4
- package/buildLibs/modules/shared/{One.vue_vue_type_script_setup_true_lang-C4lt4POB.js → One.vue_vue_type_script_setup_true_lang-rkbdx8Aq.js} +4 -4
- package/buildLibs/modules/shared/{Popup.vue_vue_type_script_setup_true_lang-CeZQDd0z.js → Popup.vue_vue_type_script_setup_true_lang-YVBgERG9.js} +3 -3
- package/buildLibs/{utils/Shared/ToastRing-CqDvSDSQ.js → modules/shared/ToastRing-DZoETg0y.js} +1 -1
- package/buildLibs/modules/shared/{Validate.vue_vue_type_script_setup_true_lang-Clw81Klm.js → Validate.vue_vue_type_script_setup_true_lang-FZ6qiA6w.js} +6 -6
- package/buildLibs/modules/shared/{base-C5l51ld_.js → base-fr2I80sU.js} +10 -10
- package/buildLibs/modules/shared/{day-Bfolruvp.js → day-B3hhmAm_.js} +15 -6
- package/buildLibs/modules/shared/drag-BBk0X740.js +53 -0
- package/buildLibs/modules/shared/focusTrap-BYhFRjSm.js +82 -0
- package/buildLibs/modules/shared/{index-wdK75uN2.js → index-B477PjJ3.js} +1 -1
- package/buildLibs/modules/shared/{index-Clwouce_.js → index-C91QEnIE.js} +2 -2
- package/buildLibs/modules/shared/{language-TSK4pJka.js → language-pMmux6Js.js} +2 -2
- package/buildLibs/modules/shared/{resize-5FVpVwWr.js → resize-CyrJxi6F.js} +2 -2
- package/buildLibs/modules/shared/{use-Cn_GITQ7.js → use-CRdlCpEV.js} +1 -1
- package/buildLibs/modules/sideMenu.js +4 -4
- package/buildLibs/modules/sidebar.js +2 -2
- package/buildLibs/modules/sidebarSelect.js +3 -3
- package/buildLibs/modules/signature.js +34 -34
- package/buildLibs/modules/slider.js +1 -1
- package/buildLibs/modules/steps.js +45 -41
- package/buildLibs/modules/swipe.js +2 -2
- package/buildLibs/modules/switchery.js +3 -3
- package/buildLibs/modules/tabM.js +2 -2
- package/buildLibs/modules/tabbar.js +4 -4
- package/buildLibs/modules/table.js +12 -12
- package/buildLibs/modules/tableEdit.js +2 -2
- package/buildLibs/modules/tableSimple.js +2 -2
- package/buildLibs/modules/tabs.js +5 -5
- package/buildLibs/modules/tags.js +1 -1
- package/buildLibs/modules/textHighlight.js +2 -2
- package/buildLibs/modules/toast.js +4 -4
- package/buildLibs/modules/tree.js +1 -1
- package/buildLibs/modules/ui-kit.css +1 -1
- package/buildLibs/modules/waterfall.js +3 -3
- package/buildLibs/modules/waterfallImage.js +1 -1
- package/buildLibs/modules/watermark.js +2 -2
- package/buildLibs/modules/weekHour.js +5 -5
- package/buildLibs/modules/xEditable.js +21 -21
- package/buildLibs/resolver/index.cjs +1 -1
- package/buildLibs/resolver/index.js +5 -5
- package/buildLibs/styles/Common/Overlay-base.css +59 -0
- package/buildLibs/styles/Common/Token.css +135 -122
- package/buildLibs/styles/Common/meta.json +19 -2
- package/buildLibs/styles/Element/ClButton.css +0 -31
- package/buildLibs/styles/Element/ClDivider.css +53 -7
- package/buildLibs/styles/Element/ClFormGroupBtns.css +5 -5
- package/buildLibs/styles/Element/ClFormGroupHorizontal.css +5 -5
- package/buildLibs/styles/Element/ClLoadFullCenter.css +0 -31
- package/buildLibs/styles/Element/ClLoadScreen.css +0 -31
- package/buildLibs/styles/Element/ClModal.css +0 -40
- package/buildLibs/styles/Element/ClTags.css +123 -28
- package/buildLibs/styles/Mobile/ClCodeLegendM.css +5 -5
- package/buildLibs/styles/Mobile/ClCropperM.css +2 -0
- package/buildLibs/styles/Mobile/ClFloatBubble.css +18 -0
- package/buildLibs/styles/Mobile/ClFloatPanel.css +86 -0
- package/buildLibs/styles/Mobile/ClInputPin.css +104 -0
- package/buildLibs/styles/Mobile/ClNoticeBar.css +5 -5
- package/buildLibs/styles/Mobile/ClNotifyM.css +50 -2
- package/buildLibs/styles/Mobile/ClNumberKeyboard.css +3 -31
- package/buildLibs/styles/Mobile/ClPickerArea.css +286 -0
- package/buildLibs/styles/Mobile/ClPickerCascader.css +17 -5
- package/buildLibs/styles/Mobile/ClPullToRefresh.css +1 -1
- package/buildLibs/styles/Mobile/ClScrollCard.css +159 -11
- package/buildLibs/styles/Mobile/ClSharePanel.css +202 -0
- package/buildLibs/styles/Mobile/ClSidebarSelect.css +5 -0
- package/buildLibs/styles/Mobile/ClSteps.css +24 -14
- package/buildLibs/styles/Mobile/ClTextHighlight.css +2 -2
- package/buildLibs/styles/Mobile/__provide__/NotifyM.css +50 -2
- package/buildLibs/styles/Web/ClColorpicker.css +8 -7
- package/buildLibs/styles/Web/ClCropper.css +0 -40
- package/buildLibs/styles/Web/ClCropperPreview.css +0 -40
- package/buildLibs/styles/Web/ClDatetime.css +8 -38
- package/buildLibs/styles/Web/ClDropdownMenu.css +90 -7
- package/buildLibs/styles/Web/ClDropdownPopup.css +8 -7
- package/buildLibs/styles/Web/ClEchartsLineAxisTag.css +0 -31
- package/buildLibs/styles/Web/ClFileUpload.css +0 -31
- package/buildLibs/styles/Web/ClInputTag.css +131 -35
- package/buildLibs/styles/Web/ClPaginate.css +131 -35
- package/buildLibs/styles/Web/ClSelect.css +131 -35
- package/buildLibs/styles/Web/ClSelectCascade.css +131 -35
- package/buildLibs/styles/Web/ClSelectTree.css +8 -7
- package/buildLibs/styles/Web/ClSelectmove.css +8 -7
- package/buildLibs/styles/Web/ClTable.css +131 -35
- package/buildLibs/styles/Web/ClXeditable.css +131 -66
- package/buildLibs/styles/Web/__provide__/Alert.css +0 -40
- package/buildLibs/styles/Web/__provide__/Preview.css +0 -31
- package/buildLibs/types/Common/Element/Event/drag.d.ts +7 -1
- package/buildLibs/types/Common/Tools/device.d.ts +2 -2
- package/buildLibs/types/Common/base.d.ts +2 -2
- package/buildLibs/types/Common/browserProgress.d.ts +3 -1
- package/buildLibs/types/Common/day.d.ts +2 -2
- package/buildLibs/types/Common/globalConfig.d.ts +18 -3
- package/buildLibs/types/Element/Overlay/Index.vue.d.ts +1 -1
- package/buildLibs/types/Element/Slider/Button.vue.d.ts +31 -0
- package/buildLibs/types/Element/Slider/Index.vue.d.ts +2 -0
- package/buildLibs/types/Element/Tags/Index.vue.d.ts +33 -3
- package/buildLibs/types/Element/core.d.ts +4 -2
- package/buildLibs/types/Element/installCommon.d.ts +10 -3
- package/buildLibs/types/Mobile/CalendarM/Panel.vue.d.ts +2 -2
- package/buildLibs/types/Mobile/DropdownMenuM/Item.vue.d.ts +1 -1
- package/buildLibs/types/Mobile/{FloatingBubble → FloatBubble}/Index.vue.d.ts +3 -3
- package/buildLibs/types/Mobile/{InputOtp → InputPin}/Index.vue.d.ts +11 -0
- package/buildLibs/types/Mobile/NoticeBar/Index.vue.d.ts +3 -3
- package/buildLibs/types/Mobile/NotifyM/Index.vue.d.ts +20 -0
- package/buildLibs/types/Mobile/NumberKeyboard/Index.vue.d.ts +4 -4
- package/buildLibs/types/Mobile/Picker/Column.vue.d.ts +9 -9
- package/buildLibs/types/Mobile/Picker/Index.vue.d.ts +18 -18
- package/buildLibs/types/Mobile/{AreaM → PickerArea}/Index.vue.d.ts +4 -4
- package/buildLibs/types/Mobile/PickerCascader/Index.vue.d.ts +1 -1
- package/buildLibs/types/Mobile/PickerDate/Index.vue.d.ts +16 -16
- package/buildLibs/types/Mobile/PickerTime/Index.vue.d.ts +16 -16
- package/buildLibs/types/Mobile/Popup/Index.vue.d.ts +1 -1
- package/buildLibs/types/Mobile/ScrollCard/Index.vue.d.ts +33 -20
- package/buildLibs/types/Mobile/{ShareSheet → SharePanel}/Index.vue.d.ts +5 -5
- package/buildLibs/types/Mobile/Signature/Index.vue.d.ts +3 -3
- package/buildLibs/types/Mobile/components.d.ts +5 -5
- package/buildLibs/types/Use/focusTrap.d.ts +13 -0
- package/buildLibs/types/Web/DropdownLayer/Base.vue.d.ts +9 -0
- package/buildLibs/types/Web/DropdownMenu/Index.vue.d.ts +12 -0
- package/buildLibs/utils/Element/ClBadge.cjs +1 -1
- package/buildLibs/utils/Element/ClBadge.js +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.cjs +1 -1
- package/buildLibs/utils/Element/ClBreadcrumb.js +3 -3
- package/buildLibs/utils/Element/ClButton.cjs +1 -1
- package/buildLibs/utils/Element/ClButton.js +2 -1
- package/buildLibs/utils/Element/ClCallout.cjs +1 -1
- package/buildLibs/utils/Element/ClCallout.js +2 -2
- package/buildLibs/utils/Element/ClCard.cjs +1 -1
- package/buildLibs/utils/Element/ClCard.js +1 -1
- package/buildLibs/utils/Element/ClCardColor.cjs +1 -1
- package/buildLibs/utils/Element/ClCardColor.js +2 -2
- package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckbox.js +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.js +1 -1
- package/buildLibs/utils/Element/ClClipboard.cjs +1 -1
- package/buildLibs/utils/Element/ClClipboard.js +1 -1
- package/buildLibs/utils/Element/ClCollapse.cjs +1 -1
- package/buildLibs/utils/Element/ClCollapse.js +3 -3
- package/buildLibs/utils/Element/ClCountDown.cjs +1 -1
- package/buildLibs/utils/Element/ClCountDown.js +2 -2
- package/buildLibs/utils/Element/ClDarg.cjs +1 -1
- package/buildLibs/utils/Element/ClDarg.js +2 -2
- package/buildLibs/utils/Element/ClDivider.cjs +1 -1
- package/buildLibs/utils/Element/ClDivider.js +2 -80
- package/buildLibs/utils/Element/ClEllipsis.cjs +1 -1
- package/buildLibs/utils/Element/ClEllipsis.js +1 -1
- package/buildLibs/utils/Element/ClEmpty.cjs +1 -1
- package/buildLibs/utils/Element/ClEmpty.js +2 -2
- package/buildLibs/utils/Element/ClForm.cjs +1 -1
- package/buildLibs/utils/Element/ClForm.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.cjs +1 -1
- package/buildLibs/utils/Element/ClFormGroupBtns.js +3 -3
- package/buildLibs/utils/Element/ClFormGroupHorizontal.cjs +1 -1
- package/buildLibs/utils/Element/ClFormGroupHorizontal.js +1 -1
- package/buildLibs/utils/Element/ClFormGroupVertical.cjs +1 -1
- package/buildLibs/utils/Element/ClFormGroupVertical.js +2 -2
- package/buildLibs/utils/Element/ClFormValidate.cjs +1 -1
- package/buildLibs/utils/Element/ClFormValidate.js +1 -1
- package/buildLibs/utils/Element/ClIconFont.cjs +1 -1
- package/buildLibs/utils/Element/ClIconFont.js +1 -1
- package/buildLibs/utils/Element/ClImage.cjs +1 -1
- package/buildLibs/utils/Element/ClImage.js +1 -1
- package/buildLibs/utils/Element/ClInput.cjs +1 -1
- package/buildLibs/utils/Element/ClInput.js +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.js +3 -3
- package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumber.js +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
- package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
- package/buildLibs/utils/Element/ClInputPassword.js +4 -4
- package/buildLibs/utils/Element/ClInputPin.css +1 -0
- package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
- package/buildLibs/utils/Element/ClInputSearch.js +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
- package/buildLibs/utils/Element/ClLink.cjs +1 -1
- package/buildLibs/utils/Element/ClLink.js +1 -1
- package/buildLibs/utils/Element/ClLoad.cjs +1 -1
- package/buildLibs/utils/Element/ClLoad.js +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.js +3 -2
- package/buildLibs/utils/Element/ClLoadIng.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadIng.js +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadScreen.css +1 -0
- package/buildLibs/utils/Element/ClLoadScreen.js +73 -2
- package/buildLibs/utils/Element/ClLoadWarp.cjs +1 -1
- package/buildLibs/utils/Element/ClLoadWarp.js +3 -3
- package/buildLibs/utils/Element/ClModal.cjs +1 -1
- package/buildLibs/utils/Element/ClModal.js +2 -1
- package/buildLibs/utils/Element/ClNumberRoll.cjs +1 -1
- package/buildLibs/utils/Element/ClNumberRoll.js +2 -2
- package/buildLibs/utils/Element/ClOverlay.cjs +1 -1
- package/buildLibs/utils/Element/ClOverlay.js +2 -2
- package/buildLibs/utils/Element/ClProgress.cjs +1 -1
- package/buildLibs/utils/Element/ClProgress.js +3 -3
- package/buildLibs/utils/Element/ClRadio.cjs +1 -1
- package/buildLibs/utils/Element/ClRadio.js +1 -1
- package/buildLibs/utils/Element/ClRadioOne.cjs +1 -1
- package/buildLibs/utils/Element/ClRadioOne.js +1 -1
- package/buildLibs/utils/Element/ClSlider.cjs +1 -1
- package/buildLibs/utils/Element/ClSlider.js +1 -1
- package/buildLibs/utils/Element/ClSwitchery.cjs +1 -1
- package/buildLibs/utils/Element/ClSwitchery.js +3 -3
- package/buildLibs/utils/Element/ClTags.cjs +1 -1
- package/buildLibs/utils/Element/ClTags.js +1 -1
- package/buildLibs/utils/Element/ClWaterfall.cjs +1 -1
- package/buildLibs/utils/Element/ClWaterfall.js +3 -3
- package/buildLibs/utils/Element/ClWaterfallImage.cjs +1 -1
- package/buildLibs/utils/Element/ClWaterfallImage.js +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.cjs +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.js +5 -5
- package/buildLibs/utils/Mobile/ClBackTop.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBackTop.js +3 -3
- package/buildLibs/utils/Mobile/ClBanner.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBanner.js +4 -4
- package/buildLibs/utils/Mobile/ClCalendarM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCalendarM.js +61 -65
- package/buildLibs/utils/Mobile/ClCell.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCell.js +3 -3
- package/buildLibs/utils/Mobile/ClCellSwipe.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCellSwipe.js +2 -2
- package/buildLibs/utils/Mobile/ClCodeLegendM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.js +4 -4
- package/buildLibs/utils/Mobile/ClCropperM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCropperM.js +6 -6
- package/buildLibs/utils/Mobile/ClDropdownMenuM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuM.js +2 -2
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.cjs +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.js +4 -4
- package/buildLibs/utils/Mobile/ClFloatBubble.cjs +1 -0
- package/buildLibs/utils/Mobile/ClFloatBubble.css +1 -0
- package/buildLibs/utils/Mobile/ClFloatBubble.d.ts +1 -0
- package/buildLibs/utils/Mobile/{ClFloatingBubble.js → ClFloatBubble.js} +40 -40
- package/buildLibs/utils/Mobile/ClFloatPanel.cjs +1 -0
- package/buildLibs/utils/Mobile/ClFloatPanel.css +1 -0
- package/buildLibs/utils/Mobile/ClFloatPanel.d.ts +1 -0
- package/buildLibs/utils/Mobile/{ClFloatingPanel.js → ClFloatPanel.js} +97 -97
- package/buildLibs/utils/Mobile/ClGrid.cjs +1 -1
- package/buildLibs/utils/Mobile/ClGrid.js +3 -3
- package/buildLibs/utils/Mobile/ClIndexBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClIndexBar.js +2 -2
- package/buildLibs/utils/Mobile/ClInputPin.cjs +1 -0
- package/buildLibs/utils/Mobile/ClInputPin.d.ts +1 -0
- package/buildLibs/utils/Mobile/ClInputPin.js +184 -0
- package/buildLibs/utils/Mobile/ClNavBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.js +3 -3
- package/buildLibs/utils/Mobile/ClNoticeBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.css +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.js +19 -19
- package/buildLibs/utils/Mobile/ClNotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.js +2 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.js +37 -36
- package/buildLibs/utils/Mobile/ClPicker.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPicker.js +1 -1
- package/buildLibs/utils/Mobile/ClPickerArea.cjs +1 -0
- package/buildLibs/utils/Mobile/ClPickerArea.css +1 -0
- package/buildLibs/utils/Mobile/ClPickerArea.d.ts +1 -0
- package/buildLibs/utils/Mobile/ClPickerArea.js +257 -0
- package/buildLibs/utils/Mobile/ClPickerCascader.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.css +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.js +4 -4
- package/buildLibs/utils/Mobile/ClPickerDate.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerDate.js +71 -71
- package/buildLibs/utils/Mobile/ClPickerTime.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerTime.js +56 -56
- package/buildLibs/utils/Mobile/ClPopup.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPopup.js +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.js +1 -1
- package/buildLibs/utils/Mobile/ClRate.cjs +1 -1
- package/buildLibs/utils/Mobile/ClRate.js +3 -3
- package/buildLibs/utils/Mobile/ClScrollCard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.css +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.js +220 -200
- package/buildLibs/utils/Mobile/ClSharePanel.cjs +1 -0
- package/buildLibs/utils/Mobile/ClSharePanel.css +1 -0
- package/buildLibs/utils/Mobile/ClSharePanel.d.ts +1 -0
- package/buildLibs/utils/Mobile/{ClShareSheet.js → ClSharePanel.js} +53 -53
- package/buildLibs/utils/Mobile/ClSidebar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSidebar.js +2 -2
- package/buildLibs/utils/Mobile/ClSidebarSelect.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.css +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.js +3 -3
- package/buildLibs/utils/Mobile/ClSignature.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSignature.js +34 -34
- package/buildLibs/utils/Mobile/ClSteps.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSteps.css +1 -1
- package/buildLibs/utils/Mobile/ClSteps.js +45 -41
- package/buildLibs/utils/Mobile/ClSwipe.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSwipe.js +2 -2
- package/buildLibs/utils/Mobile/ClTabM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClTabM.js +2 -2
- package/buildLibs/utils/Mobile/ClTabbar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.js +4 -4
- package/buildLibs/utils/Mobile/ClTextHighlight.cjs +1 -1
- package/buildLibs/utils/Mobile/ClTextHighlight.css +1 -1
- package/buildLibs/utils/Mobile/ClTextHighlight.js +2 -2
- package/buildLibs/utils/Mobile/ClToast.cjs +1 -1
- package/buildLibs/utils/Mobile/ClToast.js +1 -1
- package/buildLibs/utils/Mobile/ClWatermark.cjs +1 -1
- package/buildLibs/utils/Mobile/ClWatermark.js +2 -2
- package/buildLibs/utils/Mobile/__provide__/NotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.js +2 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.js +1 -1
- package/buildLibs/utils/Shared/{BallColor4-C2XdKmEn.js → BallColor4-BgsHLeZA.js} +1 -1
- package/buildLibs/utils/Shared/{BallColor4-Ds3O9chf.js → BallColor4-qLMVzbAS.js} +1 -1
- package/buildLibs/utils/Shared/Base.css +1 -1
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-5_vbZ_4R.js +1 -0
- package/buildLibs/{modules/shared/Base.vue_vue_type_script_setup_true_lang-4j7ikB3n.js → utils/Shared/Base.vue_vue_type_script_setup_true_lang-BReU8HHD.js} +81 -70
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-CmETUA__.js +1 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-D4VcdHQo.js +193 -0
- package/buildLibs/utils/Shared/Column.css +1 -0
- package/buildLibs/utils/Shared/Column.vue_vue_type_script_setup_true_lang-ByGDRcgX.js +1 -0
- package/buildLibs/utils/Shared/Column.vue_vue_type_script_setup_true_lang-dm0Ii8XP.js +174 -0
- package/buildLibs/utils/Shared/Index.css +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BHO4QsuM.js → Index.vue_vue_type_script_setup_true_lang-08Gdtb7o.js} +101 -98
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bexqe3oM.js → Index.vue_vue_type_script_setup_true_lang-0GHFohjQ.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DGMzmwmG.js → Index.vue_vue_type_script_setup_true_lang-0xVPFBUW.js} +7 -8
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BY5YgoqV.js → Index.vue_vue_type_script_setup_true_lang-8-8svPDH.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-DqUgH7kW.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-B-K0phQ2.js} +4 -4
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DsWuFFm8.js → Index.vue_vue_type_script_setup_true_lang-B-LBJS_U.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dn2mAxQN.js → Index.vue_vue_type_script_setup_true_lang-B0NaQAuE.js} +5 -5
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bh9eiZXZ.js → Index.vue_vue_type_script_setup_true_lang-B2cccX6M.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DImXx9OJ.js → Index.vue_vue_type_script_setup_true_lang-B2kyuq50.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DXQ2H_E6.js → Index.vue_vue_type_script_setup_true_lang-B4dpfPSy.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-B-QoYEZX.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-B5MSug5Q.js} +5 -5
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BmA34nLj.js → Index.vue_vue_type_script_setup_true_lang-B9xISM7N.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-BDCMqHLL.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-BAUA1fQJ.js} +2 -2
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-Dn7loQye.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-BFq7G64T.js} +22 -22
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BwvnxiF-.js → Index.vue_vue_type_script_setup_true_lang-BJuly3Dc.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BLoX4k7J.js +213 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-1634m2dj.js → Index.vue_vue_type_script_setup_true_lang-BLr46kTp.js} +8 -8
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-W7-2HMLt.js → Index.vue_vue_type_script_setup_true_lang-BO2XU-fq.js} +4 -4
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BRJ2Ll2r.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BRyvdWb7.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-n7xMYytH.js → Index.vue_vue_type_script_setup_true_lang-BTikeo7T.js} +5 -5
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DeQDuJWX.js → Index.vue_vue_type_script_setup_true_lang-BXQl9ZJr.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B5STWqf2.js → Index.vue_vue_type_script_setup_true_lang-BahSP_of.js} +22 -17
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BbxnIsLt.js +1 -0
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-Co1P4Ez3.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bd56L0m6.js} +5 -5
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-Ix_0hpqL.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-BhGGH7ms.js} +13 -13
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bn3f-2m-.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C8n67_vn.js → Index.vue_vue_type_script_setup_true_lang-BppPP2_o.js} +5 -5
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DkvbBq5f.js → Index.vue_vue_type_script_setup_true_lang-BsE_zUs_.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BWhUEMe2.js → Index.vue_vue_type_script_setup_true_lang-BxWYROZH.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bp1npEqw.js → Index.vue_vue_type_script_setup_true_lang-C1Z3g7mN.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DARNgU78.js → Index.vue_vue_type_script_setup_true_lang-C242QFDV.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-ZN6OLOcr.js → Index.vue_vue_type_script_setup_true_lang-CAEbDVL3.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DG2gOqUV.js → Index.vue_vue_type_script_setup_true_lang-CDslbo4h.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CFNQBTiQ.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-eYOa2n8R.js → Index.vue_vue_type_script_setup_true_lang-CIky1_fS.js} +28 -25
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DkO0Tw8l.js → Index.vue_vue_type_script_setup_true_lang-COprcd8r.js} +46 -46
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPwtuGiA.js +1 -0
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-BdU06Zy_.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-CQVg87mD.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DnB4CiG6.js → Index.vue_vue_type_script_setup_true_lang-CSt6K9AQ.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CyRAlV4P.js → Index.vue_vue_type_script_setup_true_lang-Cb49VSDS.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DD7Wsxy0.js → Index.vue_vue_type_script_setup_true_lang-CgNMWZqs.js} +53 -48
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-4r0yj-AP.js → Index.vue_vue_type_script_setup_true_lang-Cm8_ZNJ7.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CnLyIXBs.js +939 -0
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-BI_FbhEm.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-CtBOIjdU.js} +6 -6
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Cw8P2xE-.js → Index.vue_vue_type_script_setup_true_lang-Cx56SGXr.js} +47 -50
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dzw8LxdI.js → Index.vue_vue_type_script_setup_true_lang-CyYCIkzr.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-v03zJOqX.js → Index.vue_vue_type_script_setup_true_lang-D15_sdie.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CUGhrsCV.js → Index.vue_vue_type_script_setup_true_lang-D3h6Q_pB.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DnLaqNB3.js → Index.vue_vue_type_script_setup_true_lang-D4BokTL9.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-afm0gWnG.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-D53FO2PF.js} +4 -4
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D8TDafMl.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DAuZLHen.js +277 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DBEuF9lY.js +1 -0
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-t2B1qQvc.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-DQBXyVuV.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DeqkYoiB.js → Index.vue_vue_type_script_setup_true_lang-DTnllTwD.js} +2 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DYj0GzN0.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DZSulESm.js +1 -0
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-Dq5DVoF_.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-DiFMOo2n.js} +9 -9
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BJw-_EOe.js → Index.vue_vue_type_script_setup_true_lang-DjwVdgdl.js} +6 -6
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlFdXr6k.js +82 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlaLkFjd.js +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dnw-Opme.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dk4V2JmM.js → Index.vue_vue_type_script_setup_true_lang-Dq-sCBRz.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CBIhuvnz.js → Index.vue_vue_type_script_setup_true_lang-DsTDQ4p-.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DtTJLC6m.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D3hrURiG.js → Index.vue_vue_type_script_setup_true_lang-Dyo4Sh1B.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Gp7OJJx5.js +1 -0
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-COItePPk.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-K7pBVuwe.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-24C15gSt.js → Index.vue_vue_type_script_setup_true_lang-M72THnHz.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-PQ1DyzI3.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-PraAnYLk.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CcJjZsqO.js → Index.vue_vue_type_script_setup_true_lang-SE1_-Y3D.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C0GnaTPr.js → Index.vue_vue_type_script_setup_true_lang-WePMnXeI.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-CyKHq3tv.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-afRTRRcb.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DaQXxBad.js → Index.vue_vue_type_script_setup_true_lang-b4R4PHf0.js} +108 -108
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CfIJDVo7.js → Index.vue_vue_type_script_setup_true_lang-bKzsLLvg.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Bat5bJ6h.js → Index.vue_vue_type_script_setup_true_lang-d8FRnWoo.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-oFF20mhc.js +152 -0
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-CDFEcM1i.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-qOys54ns.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-bG1Y_BJw.js → Index.vue_vue_type_script_setup_true_lang-yQG3rOxU.js} +2 -2
- package/buildLibs/utils/Shared/Index10.css +1 -1
- package/buildLibs/utils/Shared/Index11.css +1 -1
- package/buildLibs/utils/Shared/Index12.css +1 -1
- package/buildLibs/utils/Shared/Index13.css +1 -1
- package/buildLibs/utils/Shared/Index14.css +1 -1
- package/buildLibs/utils/Shared/Index15.css +1 -1
- package/buildLibs/utils/Shared/Index16.css +1 -1
- package/buildLibs/utils/Shared/Index17.css +1 -1
- package/buildLibs/utils/Shared/Index18.css +1 -1
- package/buildLibs/utils/Shared/Index21.css +1 -1
- package/buildLibs/utils/Shared/Index23.css +1 -1
- package/buildLibs/utils/Shared/Index24.css +1 -1
- package/buildLibs/utils/Shared/Index25.css +1 -1
- package/buildLibs/utils/Shared/Index26.css +1 -1
- package/buildLibs/utils/Shared/Index27.css +1 -1
- package/buildLibs/utils/Shared/Index28.css +1 -1
- package/buildLibs/utils/Shared/Index29.css +1 -1
- package/buildLibs/utils/Shared/Index30.css +1 -1
- package/buildLibs/utils/Shared/Index31.css +1 -1
- package/buildLibs/utils/Shared/Index32.css +1 -1
- package/buildLibs/utils/Shared/Index33.css +1 -1
- package/buildLibs/utils/Shared/Index34.css +1 -1
- package/buildLibs/utils/Shared/Index35.css +1 -1
- package/buildLibs/utils/Shared/Index36.css +1 -1
- package/buildLibs/utils/Shared/Index37.css +1 -1
- package/buildLibs/utils/Shared/Index38.css +1 -1
- package/buildLibs/utils/Shared/Index5.css +1 -1
- package/buildLibs/utils/Shared/{Ing.vue_vue_type_script_setup_true_lang-D2lxtF5j.js → Ing.vue_vue_type_script_setup_true_lang-DPFunPx2.js} +1 -1
- package/buildLibs/{modules/shared/Ing.vue_vue_type_script_setup_true_lang-CbxKiYq1.js → utils/Shared/Ing.vue_vue_type_script_setup_true_lang-Zb0-4POE.js} +3 -3
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-B5YIPqGh.js → List.vue_vue_type_script_setup_true_lang-BLgui2Zv.js} +4 -4
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-bFNMd-te.js → List.vue_vue_type_script_setup_true_lang-DJAqJJnH.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-DQ_7aqC8.js → One.vue_vue_type_script_setup_true_lang-BC8yzPg5.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-DcjKaZQ_.js → One.vue_vue_type_script_setup_true_lang-BKTdt1M7.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-CmnkkHBx.js → One.vue_vue_type_script_setup_true_lang-BRIVGray.js} +3 -3
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-Bz2OX9PQ.js → One.vue_vue_type_script_setup_true_lang-Du9X7x9H.js} +3 -3
- package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-gwQgBwlR.js → Popup.vue_vue_type_script_setup_true_lang-d2TT0lCU.js} +1 -1
- package/buildLibs/utils/Shared/{Popup.vue_vue_type_script_setup_true_lang-ltEkWlAH.js → Popup.vue_vue_type_script_setup_true_lang-hfNlyh_i.js} +3 -3
- package/buildLibs/{modules/shared/ToastRing-CLhmoOCN.js → utils/Shared/ToastRing-2rl8qS1H.js} +1 -1
- package/buildLibs/utils/Shared/{ToastRing-CUCc2KYf.js → ToastRing-B1qc5Ig_.js} +1 -1
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DidPD12P.js +411 -0
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-DyOZ5QGN.js +1 -0
- package/buildLibs/utils/Shared/{Video-DlqsnyxL.js → Video-BBXD_6D-.js} +1 -1
- package/buildLibs/utils/Shared/{Video-yVSuj26v.js → Video-BillcMo0.js} +1 -1
- package/buildLibs/utils/Shared/{base-DmcbRUB5.js → base-DbuX_Y3x.js} +1 -1
- package/buildLibs/utils/Shared/{base-C5l51ld_.js → base-fr2I80sU.js} +10 -10
- package/buildLibs/utils/Shared/{day-Bfolruvp.js → day-B3hhmAm_.js} +15 -6
- package/buildLibs/utils/Shared/{day-C3XuCUKG.js → day-C_LrDb1h.js} +1 -1
- package/buildLibs/utils/Shared/drag-BB4KOliP.js +1 -0
- package/buildLibs/utils/Shared/drag-BBk0X740.js +53 -0
- package/buildLibs/utils/Shared/focusTrap-95OmT9bf.js +1 -0
- package/buildLibs/utils/Shared/focusTrap-BYhFRjSm.js +82 -0
- package/buildLibs/utils/Shared/{index-wdK75uN2.js → index-B477PjJ3.js} +1 -1
- package/buildLibs/utils/Shared/{index-CXRfOfiT.js → index-rFJmbgyH.js} +1 -1
- package/buildLibs/utils/Shared/language-Q4AGYtUe.js +1 -0
- package/buildLibs/utils/Shared/{index-DX8TWPlf.js → language-pMmux6Js.js} +151 -44
- package/buildLibs/utils/Shared/{resize-5FVpVwWr.js → resize-CyrJxi6F.js} +2 -2
- package/buildLibs/utils/Shared/{resize-BqfiqIio.js → resize-Ds0ycOGI.js} +1 -1
- package/buildLibs/utils/Shared/use-BBpYjALT.js +1 -0
- package/buildLibs/utils/Shared/{lazy--M9Mmsjn.js → use-CRdlCpEV.js} +48 -35
- package/buildLibs/utils/Web/ClAnchorNav.cjs +1 -1
- package/buildLibs/utils/Web/ClAnchorNav.js +3 -3
- package/buildLibs/utils/Web/ClCalendar.cjs +1 -1
- package/buildLibs/utils/Web/ClCalendar.js +32 -32
- package/buildLibs/utils/Web/ClCodeLegend.cjs +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.js +3 -3
- package/buildLibs/utils/Web/ClCodeLegendM.css +1 -1
- package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
- package/buildLibs/utils/Web/ClColorPicker.js +8 -8
- package/buildLibs/utils/Web/ClCropper.cjs +1 -1
- package/buildLibs/utils/Web/ClCropper.js +2 -1
- package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.js +7 -6
- package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
- package/buildLibs/utils/Web/ClDateTime.js +2 -1
- package/buildLibs/utils/Web/ClDropdownMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.css +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.js +110 -48
- package/buildLibs/utils/Web/ClDropdownMenuItem.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownMenuItem.js +44 -27
- package/buildLibs/utils/Web/ClDropdownPopup.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownPopup.js +3 -3
- package/buildLibs/utils/Web/ClEcharts.cjs +1 -1
- package/buildLibs/utils/Web/ClEcharts.js +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.cjs +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.js +5 -4
- package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
- package/buildLibs/utils/Web/ClFileUpload.js +2 -1
- package/buildLibs/utils/Web/ClFramePhone.cjs +1 -1
- package/buildLibs/utils/Web/ClFramePhone.js +1 -1
- package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
- package/buildLibs/utils/Web/ClInputTag.js +1 -1
- package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
- package/buildLibs/utils/Web/ClPaginate.js +1 -1
- package/buildLibs/utils/Web/ClPortlet.cjs +1 -1
- package/buildLibs/utils/Web/ClPortlet.js +2 -2
- package/buildLibs/utils/Web/ClPreviewExample.cjs +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.js +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.cjs +1 -1
- package/buildLibs/utils/Web/ClScrollXFence.js +1 -1
- package/buildLibs/utils/Web/ClSelect.cjs +1 -1
- package/buildLibs/utils/Web/ClSelect.js +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
- package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectMove.js +8 -8
- package/buildLibs/utils/Web/ClSelectTag.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTag.js +1 -1
- package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTree.js +6 -6
- package/buildLibs/utils/Web/ClSideMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClSideMenu.js +4 -4
- package/buildLibs/utils/Web/ClTable.cjs +1 -1
- package/buildLibs/utils/Web/ClTable.js +11 -11
- package/buildLibs/utils/Web/ClTableEdit.cjs +1 -1
- package/buildLibs/utils/Web/ClTableEdit.js +2 -2
- package/buildLibs/utils/Web/ClTableSimple.cjs +1 -1
- package/buildLibs/utils/Web/ClTableSimple.js +2 -2
- package/buildLibs/utils/Web/ClTabs.cjs +1 -1
- package/buildLibs/utils/Web/ClTabs.js +5 -5
- package/buildLibs/utils/Web/ClTree.cjs +1 -1
- package/buildLibs/utils/Web/ClTree.js +1 -1
- package/buildLibs/utils/Web/ClWeekHour.cjs +1 -1
- package/buildLibs/utils/Web/ClWeekHour.js +5 -5
- package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
- package/buildLibs/utils/Web/ClXEditable.js +22 -21
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/Tooltip.js +2 -2
- package/buildLibs/utils/Web/__directive__/Waves.cjs +1 -1
- package/buildLibs/utils/Web/__directive__/Waves.js +1 -1
- package/buildLibs/utils/Web/__provide__/Alert.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Alert.js +5 -4
- package/buildLibs/utils/Web/__provide__/Notify.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Notify.js +3 -3
- package/buildLibs/utils/Web/__provide__/Preview.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Preview.js +7 -6
- package/buildLibs/web/BallColor4-Bk0PbmjR.js +36 -0
- package/buildLibs/{mobile/BallColor4-9BeLWzwc.cjs → web/BallColor4-CvdyEpUB.cjs} +1 -1
- package/buildLibs/web/ToastRing-DxVDUCSx.js +26 -0
- package/buildLibs/{all/ToastRing-C0GKGyt2.cjs → web/ToastRing-KEtXZej2.cjs} +1 -1
- package/buildLibs/web/{Video-DuP0_H4b.cjs → Video-7bB5a3gv.cjs} +1 -1
- package/buildLibs/web/{Video-BDwetEWQ.js → Video-D36W46Pk.js} +1 -1
- package/buildLibs/web/{index-DPNEslm1.js → index-ai_LrIsJ.js} +10664 -10473
- package/buildLibs/web/index-jOBQ0InH.cjs +12 -0
- package/buildLibs/web/index.cjs +1 -1
- package/buildLibs/web/index.css +1 -1
- package/buildLibs/web/index.js +1 -1
- package/docs/components/Element/Divider.md +5 -3
- package/docs/components/Element/Slider.md +1 -0
- package/docs/components/Element/Tags.md +34 -8
- package/docs/components/Mobile/{FloatingBubble.md → FloatBubble.md} +17 -17
- package/docs/components/Mobile/{FloatingPanel.md → FloatPanel.md} +30 -30
- package/docs/components/Mobile/{InputOtp.md → InputPin.md} +25 -12
- package/docs/components/Mobile/NoticeBar.md +4 -4
- package/docs/components/Mobile/NotifyM.md +11 -0
- package/docs/components/Mobile/NumberKeyboard.md +8 -8
- package/docs/components/Mobile/Picker.md +8 -8
- package/docs/components/Mobile/{AreaM.md → PickerArea.md} +12 -12
- package/docs/components/Mobile/PickerDate.md +5 -5
- package/docs/components/Mobile/PickerTime.md +5 -5
- package/docs/components/Mobile/ScrollCard.md +43 -10
- package/docs/components/Mobile/{ShareSheet.md → SharePanel.md} +11 -11
- package/docs/components/Mobile/Signature.md +3 -3
- package/docs/tokens/design-token.md +17 -2
- package/docs/tools/CommonDay.md +3 -3
- package/package.json +2 -1
- package/buildLibs/all/index-CS39FBSI.cjs +0 -14
- package/buildLibs/common/browserProgress.css +0 -1
- package/buildLibs/mobile/index-0Bk83khG.cjs +0 -10
- package/buildLibs/modules/areaM.cjs +0 -5
- package/buildLibs/modules/areaM.d.ts +0 -1
- package/buildLibs/modules/areaM.js +0 -255
- package/buildLibs/modules/floatingBubble.cjs +0 -5
- package/buildLibs/modules/floatingBubble.d.ts +0 -1
- package/buildLibs/modules/floatingPanel.cjs +0 -5
- package/buildLibs/modules/floatingPanel.d.ts +0 -1
- package/buildLibs/modules/inputOtp.cjs +0 -5
- package/buildLibs/modules/inputOtp.d.ts +0 -1
- package/buildLibs/modules/inputOtp.js +0 -175
- package/buildLibs/modules/shareSheet.cjs +0 -5
- package/buildLibs/modules/shareSheet.d.ts +0 -1
- package/buildLibs/modules/shared/Index-aam7IdIy.js +0 -174
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-BBz5WLtl.js +0 -898
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-CM64ExS-.js +0 -201
- package/buildLibs/modules/shared/Index.vue_vue_type_script_setup_true_lang-Dt1s66Uw.js +0 -442
- package/buildLibs/modules/shared/drag-CBokh_eH.js +0 -41
- package/buildLibs/styles/Element/ClOverlay.css +0 -32
- package/buildLibs/utils/Element/ClDivider.css +0 -1
- package/buildLibs/utils/Element/ClInputOtp.css +0 -1
- package/buildLibs/utils/Element/__directive__/LazyImage.cjs +0 -1
- package/buildLibs/utils/Element/__directive__/LazyImage.d.ts +0 -1
- package/buildLibs/utils/Element/__directive__/LazyImage.js +0 -14
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs +0 -1
- package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +0 -1
- package/buildLibs/utils/Element/__provide__/Clipboard.js +0 -37
- package/buildLibs/utils/Element/__provide__/LanguagePack.cjs +0 -1
- package/buildLibs/utils/Element/__provide__/LanguagePack.d.ts +0 -1
- package/buildLibs/utils/Element/__provide__/LanguagePack.js +0 -28
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +0 -1
- package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +0 -1
- package/buildLibs/utils/Element/__provide__/LoadScreen.js +0 -22
- package/buildLibs/utils/Element/__provide__/Validate.cjs +0 -1
- package/buildLibs/utils/Element/__provide__/Validate.d.ts +0 -1
- package/buildLibs/utils/Element/__provide__/Validate.js +0 -104
- package/buildLibs/utils/Mobile/ClAreaM.cjs +0 -1
- package/buildLibs/utils/Mobile/ClAreaM.css +0 -1
- package/buildLibs/utils/Mobile/ClAreaM.d.ts +0 -1
- package/buildLibs/utils/Mobile/ClAreaM.js +0 -257
- package/buildLibs/utils/Mobile/ClFloatingBubble.cjs +0 -1
- package/buildLibs/utils/Mobile/ClFloatingBubble.css +0 -1
- package/buildLibs/utils/Mobile/ClFloatingBubble.d.ts +0 -1
- package/buildLibs/utils/Mobile/ClFloatingPanel.cjs +0 -1
- package/buildLibs/utils/Mobile/ClFloatingPanel.css +0 -1
- package/buildLibs/utils/Mobile/ClFloatingPanel.d.ts +0 -1
- package/buildLibs/utils/Mobile/ClInputOtp.cjs +0 -1
- package/buildLibs/utils/Mobile/ClInputOtp.d.ts +0 -1
- package/buildLibs/utils/Mobile/ClInputOtp.js +0 -177
- package/buildLibs/utils/Mobile/ClShareSheet.cjs +0 -1
- package/buildLibs/utils/Mobile/ClShareSheet.css +0 -1
- package/buildLibs/utils/Mobile/ClShareSheet.d.ts +0 -1
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-CiIYjt-L.js +0 -1
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-BD35JTIP.js +0 -1
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DHyNMo5z.js +0 -255
- package/buildLibs/utils/Shared/Index-BBs91jFy.js +0 -174
- package/buildLibs/utils/Shared/Index-qL-h43DD.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B9PGQ2ms.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BVFmiu-5.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BlFq1X5t.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bo91q9Ij.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIBERZly.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CKNVMM02.js +0 -74
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CrNoVcn8.js +0 -120
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CvgyjDiU.js +0 -898
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DGT_No-k.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DGXwL6RV.js +0 -201
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DIbQI2wQ.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DIdU8GIV.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKbCcnPs.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Db4Zb3Yy.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DcOTqPR-.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DgWoxi-r.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlvzgFMo.js +0 -175
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Drp93I0i.js +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-s0crAk8w.js +0 -1
- package/buildLibs/utils/Shared/Index39.css +0 -1
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-3Ig7bOGx.js +0 -1
- package/buildLibs/utils/Shared/Validate.vue_vue_type_script_setup_true_lang-57tbyvPI.js +0 -313
- package/buildLibs/utils/Shared/drag-CBokh_eH.js +0 -41
- package/buildLibs/utils/Shared/drag-CnnSwz5k.js +0 -1
- package/buildLibs/utils/Shared/index-C6VS0w0n.js +0 -1
- package/buildLibs/utils/Shared/language-BAyxuenq.js +0 -1
- package/buildLibs/utils/Shared/language-Br_W-GD8.js +0 -111
- package/buildLibs/utils/Shared/lazy-CHlfoPOo.js +0 -1
- package/buildLibs/utils/Shared/use-CaPct63w.js +0 -17
- package/buildLibs/utils/Shared/use-DpwlHmqI.js +0 -1
- package/buildLibs/web/BallColor4-B90sCDaX.js +0 -36
- package/buildLibs/web/ToastRing-DGR6ZoRQ.js +0 -26
- package/buildLibs/web/index-Bfw6k91_.cjs +0 -12
- /package/buildLibs/types/Mobile/{FloatingPanel → FloatPanel}/Index.vue.d.ts +0 -0
- /package/buildLibs/types/Mobile/{AreaM → PickerArea}/area-data.d.ts +0 -0
- /package/buildLibs/utils/Shared/{index40.css → index39.css} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";var Al=Object.create;var eo=Object.defineProperty;var Ml=Object.getOwnPropertyDescriptor;var Ol=Object.getOwnPropertyNames;var $l=Object.getPrototypeOf,Ll=Object.prototype.hasOwnProperty;var Fl=(a,o,n,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of Ol(o))!Ll.call(a,l)&&l!==n&&eo(a,l,{get:()=>o[l],enumerable:!(t=Ml(o,l))||t.enumerable});return a};var ut=(a,o,n)=>(n=a!=null?Al($l(a)):{},Fl(o||!a||!a.__esModule?eo(n,"default",{value:a,enumerable:!0}):n,a));const e=require("vue"),Oe=require("dayjs");require("dayjs/locale/zh-cn.js");require("dayjs/locale/en.js");const Vl=require("dayjs/plugin/localeData"),Rl=require("dayjs/plugin/objectSupport"),Pl=require("dayjs/plugin/isSameOrAfter"),zl=require("dayjs/plugin/isSameOrBefore"),Hl=require("dayjs/plugin/isoWeek"),Jl=require("dayjs/plugin/utc"),Ul=require("dayjs/plugin/timezone"),jl=require("@popperjs/core"),Kl=require("vue-router"),zo={};function Rn(a,o){zo[a]=o}class s{static getTypeof(o){return typeof o}static _toStringCall(o){return Object.prototype.toString.call(o)}static isUndefined(o){return this.getTypeof(o)==="undefined"||o===null}static isNaN(o){return Number.isNaN(Number(o))}static isFinite(o){return Number.isFinite(Number(o))}static isBoolean(o){return this.getTypeof(o)==="boolean"}static isString(o){return this.getTypeof(o)==="string"}static isNonEmptyString(o){return!!(this.isString(o)&&!this.isEmpty(o))}static isFunction(o){return this.getTypeof(o)==="function"}static isObject(o){return!this.isUndefined(o)&&this.getTypeof(o)==="object"}static isBlob(o){return this._toStringCall(o)==="[object Blob]"}static isFile(o){return this._toStringCall(o)==="[object File]"}static isNumber(o){let n=!1;return this.isString(o)?/^(-)?(([1-9]\d*)|0)(\.\d+)?$/.test(o):(this.getTypeof(o)==="number"&&(n=!0),n)}static isInt(o){return this.isUndefined(o)||typeof o!="string"&&typeof o!="number"?!1:/^[1-9]\d*$|^0$/.test(o.toString())}static isHtml(o){return/<[a-z][a-z0-9]*(?:\s[^>]*)?>|<\/[a-z][a-z0-9]*>/i.test(o)}static isHtmlPair(o){return this.isString(o)?/<([a-z][a-z0-9-]*)[^>]*>[\s\S]*?<\/\1>/i.test(o):!1}static isJson(o){let n=!1;if(this.isString(o))try{const t=JSON.parse(o);this.isObject(t)&&(n=!0)}catch{}else this.isObject(o)&&(n=!0);return n}static isWindow(o){return!this.isUndefined(o)&&o===o.window}static _isEmptyObject(o){return this.isUndefined(o)?!0:Object.keys(o).length===0}static isArray(o){return Array.isArray(o)&&this._toStringCall(o)==="[object Array]"}static isLocationLngLat(o){let n=!1;if(!this.isEmpty(o)){let t;if(this.isString(o)?t=this.split(o):this.isArray(o)?t=o:t=[],t.length===2){const l=t[0],i=t[1],r=/^-?(180(\.0+)?|1[0-7]?\d?(\.\d+)?|[1-9]?\d?(\.\d+)?)$/,c=/^-?(90(\.0+)?|[1-8]?\d?(\.\d+)?)$/;n=r.test(l)&&c.test(i)}}return n}static isEmpty(o,n){let t=this.isUndefined(o);if(!t){const l=this.getTypeof(o);if(this.isString(o)?t=this.trim(o).length===0:this.isArray(o)?t=o.length===0:l==="object"&&(this.isFile(o)?t=!1:t=this._isEmptyObject(o)),!t&&!this.isUndefined(n)){let i=o;this.isNumber(o)&&(i=i.toString());let r=n;this.isNumber(n)&&(r=r.toString()),t=this.isEqual(i,r)}}return t}static isEqual(o,n){return Object.is(o,n)}static isEqualArr(o,n,t=!1){let l=!1;const i=this.isEmpty(o),r=this.isEmpty(n);if(i&&r)l=!0;else if(o.length===n.length)if(l=!0,t){for(let c=0;c<o.length;c++)if(o[c].toString()!==n[c].toString()){l=!1;break}}else{const c=this.getArrConvertJson(n);for(let u=0;u<o.length;u++)if(!this.isExistJsonKey(c,o[u].toString())){l=!1;break}}else l=!1;return l}static isEqualList(o,n,t=["id"]){let l=!1;const i=this.isEmpty(o),r=this.isEmpty(n);if(i&&r)l=!0;else if(o.length===n.length){const c=o.map(u=>t.map(d=>u[d].toString()).join(","));l=!0,n.some(u=>{const d=t.map(m=>u[m].toString()).join(",");if(!this.isExistValue(c,d))return l=!1,!0})}else l=!1;return l}static isContainArr(o,n){let t=!1;const l=this.isEmpty(o),i=this.isEmpty(n);return l&&i?t=!0:o.length>=n.length?(t=!0,n.some(r=>{if(!this.isExistValue(o,r))return t=!1,!0})):t=!1,t}static isExistValue(o,n){return this.isUndefined(o)?!1:o.includes?o.includes(n):o.indexOf(n)>-1}static isExistJsonKey(o,n){return this.isUndefined(o)?!1:Object.prototype.hasOwnProperty.call(o,n)}static osType(){if(typeof navigator>"u")return{isTablet:!1,isIOS:!1,isAndroid:!1,isMobile:!1,isPc:!0};const o=navigator.userAgent,n=/(?:Android)/.test(o),t=/(?:Firefox)/.test(o),l=/(?:iPad|PlayBook)/.test(o)||n&&!/(?:Mobile)/.test(o)||t&&/(?:Tablet)/.test(o),i=/(?:iPhone)/.test(o)&&!l;return{isTablet:l,isIOS:i,isAndroid:n,isMobile:i||n,isPc:!i&&!n}}static trim(o){if(this.isUndefined(o))return o;const n=o.toString();return n.trim?n.trim():n.replace(/^\s+|\s+$/gm,"")}static split(o,n=",",t=!0){n===" "&&(t=!1);let l;if(this.isEmpty(o))l=[];else{let i=o;n===","&&(i=i.replace(/,/g,",")),l=i.toString().split(n)}return t&&(l=l.filter(i=>!this.isEmpty(i))),l}static kebabCase(o){const n=o.replace(/([A-Z])/g," $1").trim();return this.split(n," ",!1).join("-").toLowerCase()}static getByteLen(o){let n=0;for(let t=0;t<o.length;t+=1)o.charAt(t).match(/[^\x00-\xff]/gi)!==null?n+=3:n+=1;return n}static getJsonClone(o,n=!1,t={}){if(n)return this._getJsonCloneDeep(o,t);{const l=this.isUndefined(t.exclude)?[]:t.exclude;if(l.length===0)return this.getJsonMerge(o);{const i={};return Object.keys(o).forEach(r=>{this.isExistValue(l,r)||(i[r]=o[r])}),i}}}static _getJsonCloneDeep(o,n={}){const t=this.isArray(o)?[]:{},l=this.isUndefined(n.exclude)?[]:n.exclude;return Object.keys(o).forEach(i=>{if(l.length===0||!this.isExistValue(l,i)){const c=o[i];this.isUndefined(c)||!this.isObject(c)?this.isArray(c)?t[i]=this.getListClone(c,!0):t[i]=c:t[i]=this._getJsonCloneDeep(c)}}),t}static getJsonCloneByKeyArr(o,n){const t={};return n.forEach(l=>{const i=o[l];t[l]=this.isUndefined(i)?"":this.isObject(i)?this.getJsonClone(i):i}),t}static getJsonCloneByKeyJson(o,n){const t=Object.keys(n);return this.getJsonCloneByKeyArr(o,t)}static getJsonCloneByRemoveArr(o,n){const t={};return n.length===0?o:(Object.keys(o).forEach(l=>{this.isExistValue(n,l)||(t[l]=o[l])}),t)}static getStringByJson(o,n){return this.isObject(o)?Object.keys(o).filter(t=>o[t]).join(n):""}static getJsonMerge(...o){return Object.assign({},...o)}static getJsonReversal(o){const n={};return Object.keys(o).forEach(t=>{n[o[t]]=t}),n}static getJsonMergeDeep(...o){const n={},t=o.length;for(let l=0;l<t;l++)this._mergeJsonDeep(n,o[l]||{});return n}static _mergeJsonDeep(o,n){Object.keys(n).forEach(t=>{const l=n[t];this.isUndefined(l)?o[t]=l:this.isArray(l)?o[t]=this.getListClone(l,!0):this.isObject(l)&&this.isExistJsonKey(o,t)?this._mergeJsonDeep(o[t],l):o[t]=l})}static getJsonMap(o,n,t=!1){const l={};if(!this.isEmpty(o)&&!this._isEmptyObject(n))for(const[i,r]of Object.entries(n)){let c=r.toString(),u="";if(c.indexOf("|")>-1){const d=this.split(c,"|");c=d[0],u=d[1]}if(c.indexOf(".")>-1){const d=this.split(c,".");let m=this.getJsonClone(o,!0);d.forEach((p,h)=>{const f=m[p],y=this.isEmpty(f);h===d.length-1?this.isUndefined(f)?m=t?"":f:y?m="":u&&u.length>0?m=this.isEmpty(f)?"":this.getValueByFormat(f,u):m=f:m=y?{}:f}),l[i]=this.isString(m)?this.trim(m):m}else if(this.isExistJsonKey(o,c)){const d=o[c];let m;this.isUndefined(d)?m=t?"":d:u&&u.length>0?m=this.isEmpty(d)?"":this.getValueByFormat(d,u):m=d,l[i]=this.isString(m)?this.trim(m):m}else t&&(l[i]="")}return l}static getJsonByList(o,n,t=!1){const l={};if(!this.isEmpty(o)){const i=n&&!this.isEmpty(n)?n:"id";o.forEach(r=>{let c="";t?n&&(c=this.convertStringFormat(n,r)):c=this.isExistJsonKey(r,i)?r[i].toString():"",c.length>0&&(l[c]=this.getJsonClone(r))})}return l}static getJsonByArr(o){const n={};return this.isEmpty(o)||o.forEach(t=>{n[t]=t}),n}static getGroupByList(o,n){const t={};return this.isEmpty(o)||o.forEach(l=>{const i=this.isExistJsonKey(l,n)?l[n].toString():"";i.length>0&&(this.isExistJsonKey(t,i)||(t[i]=[]),t[i].push(this.getJsonClone(l)))}),t}static getJsonByBlob(o){return new Promise((n,t)=>{const l=new FileReader;l.onload=()=>{try{const i=JSON.parse(l.result);n(i)}catch(i){t(i)}},l.onerror=t,l.readAsText(o)})}static getBase64ByFile(o){return new Promise(n=>{let t=null;if(o instanceof Blob?t=o:o&&o.length>0&&(t=o[0]),!(t instanceof Blob)){n("");return}const l=new FileReader;l.onload=i=>{n(i.target.result)},l.onerror=()=>{n("")},l.readAsDataURL(t)})}static getTreeList(o){let n=[];const t=[],l={},i={};return this.isEmpty(o)||(o.forEach(r=>{const c=r.id.toString(),u=r.parentId.toString();u==="0"&&t.push(c),l[c]=r,this.isExistJsonKey(i,u)||(i[u]=[]),i[u].push(r)}),t.forEach(r=>{n=n.concat(this._recursionChild(r,i,l))})),{tree:n,group:i,json:l,list:o}}static getTreeLastParent(o,n,t=!0){let l=[];return this.isExistJsonKey(n,o)&&(l=this._recursionParent(o,n),t||l.splice(0,1),l.reverse()),l}static _recursionChild(o,n,t){const l=[],i=this.getJsonClone(t[o]);return this.isExistJsonKey(n,o)&&(i.list=[],n[o].forEach(c=>{const u=c.id.toString();i.list=i.list.concat(this._recursionChild(u,n,t))})),l.push(i),l}static _recursionParent(o,n){let t=[];if(this.isExistJsonKey(n,o)){const l=n[o],i=l.parentId.toString();t.push(l),t=t.concat(this._recursionParent(i,n))}return t}static getListByTree(o,n={}){const t=this.isEmpty(n.idKey)?"id":n.idKey,l=this.isEmpty(n.cKey)?"list":n.cKey,i=this.isEmpty(n.pKey)?"parentId":n.pKey,r=this.isEmpty(n.topPV)?"0":n.topPV;return this._recursionListByTree(o,r,{idKey:t,cKey:l,pKey:i})}static _recursionListByTree(o,n,t){const l=[];return o.forEach(i=>{const r=this.getJsonClone(i,!1,{exclude:[t.cKey]});r[t.pKey]=n;const c=this.isUndefined(i[t.cKey]);if(r.isLastLevel=c,l.push(r),!c){const u=this._recursionListByTree(i[t.cKey],r[t.idKey],t);l.push(...u)}}),l}static getListClone(o,n=!1){return this.isEmpty(o)?[]:o.map(t=>this.isObject(t)?this.getJsonClone(t,n):t)}static getListMergeDeep(o,n,t="id"){const l=[];if(o.length>0){const i=this.getJsonByList(n,t);o.forEach(r=>{let c={},u=r[t];this.isEmpty(u)||(u=u.toString(),c=this.isExistJsonKey(i,u)?i[u]:{});const d=this.getJsonMergeDeep(c,r);l.push(d)})}return l}static getRecursionParentList(o,n,t="parentId"){let l=[];const i=n.toString();if(i!=="0"&&this.isExistJsonKey(o,i)){const r=o[i];l.push(r);const c=r[t].toString(),u=this.getRecursionParentList(o,c);this.isEmpty(u)||(l=l.concat(u))}return l}static getListExistValue(o,n,t="id"){let l,i=-1;return this.isEmpty(o)||o.forEach((r,c)=>{this.isExistJsonKey(r,t)&&r[t].toString()===n.toString()&&(l=this.getJsonClone(r),i=c)}),i===-1?null:{info:l,inx:i}}static getArrClone(o){return this.isEmpty(o)?[]:o.map(n=>n)}static getArrByList(o,n="id"){const t=[];return this.isEmpty(o)||o.forEach(l=>{this.isExistJsonKey(l,n)&&t.push(l[n])}),t}static getArrRemoveById(o,n){if(this.isEmpty(n))return o;const t=[],l=this.isArray(n)?n:this.split(n.toString()),i=this.getArrConvertJson(l);return o.forEach(r=>{this.isExistJsonKey(i,r.toString())||t.push(r)}),t}static getArrByMinMax(o=1,n){const t=[];for(let l=o;l<=n;l+=1)t.push(l);return t}static getArrUnique(o){const n=[];if(o.length>0){const t={};let l=null;for(let i=0;i<o.length;i+=1)l=o[i],l!==null&&!t[l]&&(n.push(l),t[l]=!0)}return n}static getArrConvertJson(o){const n={};return o.forEach(t=>{n[t.toString()]=!0}),n}static getArrAsc(o,n){let t;switch(n){case"date":t=(l,i)=>Date.parse(l)-Date.parse(i);break;case"number":t=(l,i)=>l-i;break;default:t=(l,i)=>this._arrSortString(l.toString(),i.toString())}return o.sort(t)}static getArrDesc(o,n){let t;switch(n){case"date":t=(l,i)=>Date.parse(i)-Date.parse(l);break;case"number":t=(l,i)=>i-l;break;default:t=(l,i)=>this._arrSortString(i.toString(),l.toString())}return o.sort(t)}static _arrSortString(o,n){let t=0;for(let l=0;;l++){if(!o[l]||!n[l]){t=o.length-n.length;break}const i=o[l],r=this._getChartType(i),c=n[l],u=this._getChartType(c);if(r[0]===u[0]){if(i===c)continue;r[0]==="zh"?t=i.localeCompare(c):r[0]==="en"?t=i.charCodeAt(0)-c.charCodeAt(0):t=i-c;break}else{t=r[1]-u[1];break}}return t}static _getChartType(o){return/^[0-9]$/.test(o)?["number",100]:/^[a-zA-Z]$/.test(o)?["en",200]:/^[\u4e00-\u9fa5]$/.test(o)?["zh",300]:["others",999]}static getZeroCount(o){if(o<=0)return"";const n=[];for(let t=0;t<o;t+=1)n.push("0");return n.join("")}static getFillZero(o,n=2,t="l"){const l=this.getZeroCount(n),i=this.isEmpty(o)?"":o.toString();let r="",c="";return t==="l"?(r=l+i,c=r.substring(r.length-n)):(r=i.toString()+l,c=r.substring(0,n)),c}static getRandom(o=3){const n=o>0?o:1;let t=Math.random();return t=Math.ceil(t*10**(n-1)),this.getFillZero(t,o,"r")}static getRandomRange(o,n,t=!0){const l=n-o,i=Math.random();return o+(t?Math.round(l*i):l*i)}static getCaptcha(o=6){const n="0123456789";let t="";for(let l=0;l<o;l++)t+=n.charAt(Math.floor(Math.random()*n.length));return t}static getValueByFormat(o,n,t={}){let l;switch(n){case"num":case"int":case"float":case"float2":case"float3":case"number":{if(this.isNumber(o))if(this.isEmpty(o))l=(this.isBoolean(t.isEmptyDefault)?t.isEmptyDefault:!0)?"0":o;else{let i=o.toString();if(i=this.isExistValue(i,",")?this.removeReplace(i):i,n==="number")l=Number(i);else{let r=0;if(n==="num"?r=this.isExistValue(i,".")?2:0:n==="int"?r=0:n==="float"?this.isNumber(t.decimalNum)&&(r=parseInt(t.decimalNum)):n==="float2"?r=2:n==="float3"&&(r=3),this.isBoolean(t.isRounding)?t.isRounding:!0)l=parseFloat(i).toFixed(r);else if(r>0){const d=this.split(i,"."),m=d[1].length;l=d[0]+"."+d[1].substring(0,m>r?r:m)}else l=parseInt(i).toString();l=Number(l).toFixed(r),(this.isBoolean(t.isThousands)?t.isThousands:!0)&&(l=this.getFormatThousands(l))}}else l=o;break}case"date":case"dateTime":case"time":{if(this.isEmpty(o))l=o;else{let i="";this.isEmpty(t.dateFormat)?n==="dateTime"?i="YYYY-MM-DD HH:mm:ss":n==="time"?i="HH:mm:ss":i="YYYY-MM-DD":i=t.dateFormat;const r=zo[n];r?l=r(o,i):l=o}break}case"string":l=o.toString();break;case"intArray":l=this.split(o).map(i=>parseInt(i));break;default:l=o}return l}static getHourInterval(o,n=""){const t=this.isEmpty(n)?o:n;return`${this.getFillZero(o)}:00-${this.getFillZero(t)}:59`}static getFormatThousands(o){if(!this.isNumber(o))return"";const n=this.split(o.toString(),".");return n[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(n.length>1?`.${n[1]}`:"")}static getNumCeil(o,n={}){if(!this.isNumber(o))return 0;const t=Number(o),l=t<0,i=Math.abs(t);if(i===0)return 0;const r=i<1;let c=0,u=i.toString(),d=-1;if(r){if(d=-1,i>0){const B=this.split(u,".")[1];u=Number(B).toString(),c=B.length-u.length}}else c=0,d=u.indexOf("."),d>-1&&(u=u.replace(".",""));const m=this.isBoolean(n.isCeil)?n.isCeil:!0,p=this.isUndefined(n.inxPos)?2:parseInt(n.inxPos),h=this.isBoolean(n.isEndFive)?n.isEndFive:!1,f=this.isBoolean(n.isRounding)?n.isRounding:!1;let y,x="";p<u.length?(y=u.substring(0,p),x=u.substring(p)):y=u;let N="";const M=m||f&&x.length>0&&parseInt(x.substring(0,1))>=5?(parseInt(y)+1).toString():parseInt(y).toString(),S=parseInt(M.substring(M.length-1));if(h)if(S===5||S===0)N=M;else{const B=parseInt(M.substring(0,p-1));S>5?N=`${B+1}0`:S<5&&(N=`${B}5`),M.length>p&&N.length===p&&(N=`${N}0`)}else N=M;let C="",O=0;d===-1?O=x.length:d<p?(O=0,N=(Number(N)/((p-d)*10)).toString()):d>p&&(O=d-p),C=this.getZeroCount(O),r&&(N=`0.${this.getZeroCount(c)}${N}`);const P=N+C;return Number(P)*(l?-1:1)}static removeReplace(o,n=","){if(this.isUndefined(o))return"";const t=new RegExp(`[${n}]`,"g");return o.toString().replace(t,"")}static conversionEmptyZero(o,n,t){const l=o;if(!this.isEmpty(n)){let i=0,r=0;if(t){let c={};this.isString(t)?c.emptyDef=t:this.isObject(t)&&(c=t);const u=this.isEmpty(c.undefinedDef);u||(r=c.undefinedDef),this.isEmpty(c.emptyDef)||(i=c.emptyDef,u&&(r=c.emptyDef))}n.forEach(c=>{this.isEmpty(o[c])&&(this.isUndefined(o[c])?l[c]=r:l[c]=i)})}return l}static conversionPercentage(o,n,t=!0){const l=o;return this.isEmpty(n)||n.forEach(i=>{const r=o[i];this.isEmpty(r)?l[i]=0:this.isNumber(r)?l[i]=t?r*100:r/100:l[i]=r}),l}static convertStringFormat(o,n){let t=o;return this.isEmpty(n)||(t=o.replace(/[$]{[^}]+}/g,l=>{const i=l.replace("${","").replace("}","");return this.isExistJsonKey(n,i)?n[i]:l})),t}static convertStringFormatEncodeHTML(o,n){let t=o;return this.isEmpty(n)||(t=o.replace(/[$]{[^}]+}/g,l=>{const i=l.replace("${","").replace("}","");if(this.isExistJsonKey(n,i)){const r=n[i];return this.isString(r)?this.encodeHTML(r):r}return l})),t}static getQueryString(o,n){const t=new RegExp(`(^|&)${n}=([^&]*)(&|$)`,"i"),l=o.substring(o.indexOf("?")+1).match(t);return l!==null?decodeURI(l[2]):""}static getQueryStringByHash(o){return this.getQueryString(window.location.hash,o)}static encodeHTML(o){return String(o).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}static removeHTMLTags(o){return o.replace(/<[^>]*>/g,"")}static requestAnimationFrame(o){const n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;return n?n.call(window,o):window.setTimeout(o,1e3/60)}static cancelAnimationFrame(o){const n=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;n?n.call(window,o):window.clearTimeout(o)}}class Wl{promise(o){return new Promise(n=>{n(o)})}promiseFun(o){return new Promise(n=>{o&&o(n)})}resolve(o){return Promise.resolve(o)}all(o){return Promise.all(o)}allByJson(o){return new Promise(n=>{if(s.isEmpty(o))return n({result:{},errors:{}});let t=0;const l=Object.keys(o),i=l.length,r={},c={},u=d=>{Promise.resolve(o[d]).then(m=>{t+=1,r[d]=m,t===i&&n({result:r,errors:c})},m=>{t+=1,c[d]=m,t===i&&n({result:r,errors:c})})};l.forEach(d=>{u(d)})})}}const Ho=new Wl;let ql=class{_elCanvasTextWidth;constructor(){this._elCanvasTextWidth=null}_getArrClassBySplit(o){return o.split(" ").filter(n=>!s.isEmpty(n))}_getClasssByReal(o,n){return o.filter(t=>!s.isExistValue(n,t)&&!s.isEmpty(t))}onListener(o,n,t,l=!1){o&&n&&t&&o.addEventListener(n,t,l)}offListener(o,n,t,l=!1){o&&n&&t&&o.removeEventListener(n,t,l)}getTextWidth(o,n="normal 12px Microsoft YaHei"){this._elCanvasTextWidth||(this._elCanvasTextWidth=document.createElement("canvas"));const t=this._elCanvasTextWidth.getContext("2d");return t.font=n,t.measureText(o).width}getClassNameJson(o){const n={};return s.isNonEmptyString(o)&&this._getArrClassBySplit(o).forEach(t=>{n[t]=!0}),n}conversionClassToString(...o){return this.getAddClass(o)}getAddClass(...o){let n=[];return o.forEach(t=>{if(s.isString(t)){const l=this._getArrClassBySplit(t);n=n.concat(this._getClasssByReal(l,n))}else if(s.isArray(t))n=n.concat(this._getClasssByReal(t,n));else if(s.isObject(t))for(const[l,i]of Object.entries(t))s.isExistJsonKey(t,l)&&i?n.push(l):n=n.filter(r=>r!==l||r===l&&i)}),n.join(" ")}getRemoveClass(o,n){const t=this._getArrClassBySplit(n);return this._getArrClassBySplit(o).filter(i=>!s.isExistValue(t,i)).join(" ")}checkHasClass(o,n){const t=this._getArrClassBySplit(o),l=this._getArrClassBySplit(n);return s.isContainArr(t,l)}_getBoundingClientRect(o){const n=s.isUndefined(o.getBoundingClientRect)?{}:o.getBoundingClientRect(),t={width:n.width||0,height:n.height||0,top:n.top||0,right:0,bottom:0,left:n.left||0,x:n.left||0,y:n.top||0},l=this.getWinHeight(),i=this.getWinWidth();return t.right=i-n.right||0,t.bottom=l-n.bottom||0,t}_getWindow(o){if(o&&o.toString()!=="[object Window]"){const n=o.ownerDocument;return n&&n.defaultView||window}return o}isElementHtml(o){const n=this._getWindow(o).HTMLElement;return o instanceof n||o instanceof HTMLElement}isElementBody(o){return s.isUndefined(o)?!1:this.isElementHtml(o)&&o.tagName.toLocaleLowerCase()==="body"}getWinScrollTop(){return document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset}getWinWidth(){return document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth}getWinHeight(){return document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight}getStyle(o){return window.getComputedStyle?window.getComputedStyle(o,null):o.currentStyle}_isElementScroll(o){const n=this.getStyle(o),t=n.overflow,l=n.overflowX,i=n.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+l)}isHidden(o){return this.getStyle(o).display==="none"}isHiddenParent(o){let n=!1,t=o,l=!1;for(;t&&t.nodeType!==9&&!l;)t.nodeType===1&&(l=this.isHidden(t),l&&(n=!0)),t=t.parentNode;return n}getParentCheckBody(o,n,t=!0){let l=null;return n?s.isString(n)?n.toLocaleLowerCase()!=="body"&&(l=this.getParent(o,n)):this.isElementBody(n)||(t?n.contains(o)&&(l=n):l=n):this.isElementBody(o.parentNode)||(l=o.parentNode),l}getParent(o,n,t,l=!0){if(s.isEmpty(n))return o.parentNode;let r=null;const c=!s.isUndefined(t);if(this._checkElementByAttr(o,n))r=o;else{let d=o.parentNode,m=!1;for(;d&&d.nodeType!==9&&!m;)d.nodeType===1&&(m=this._checkElementByAttr(d,n),m?r=d:c&&(m=d===t,m&&l&&(r=d))),d=d.parentNode}return r}getParentList(o,n){const t=s.isEmpty(n)?"body":n;return this._recursionParents(o,t)}_recursionParents(o,n){const t=[];if(this._checkElementByAttr(o,n))t.push(o);else if(o.parentNode&&o.parentElement&&!this.isElementBody(o.parentElement)){t.push(o.parentNode);const l=this._recursionParents(o.parentNode,n);t.push(...l)}return t}getParentScrollList(o,n,t=!0){const l=[];return this.getParentList(o,n).forEach(r=>{this._isElementScroll(r)&&(t?l.push(r):this._checkElementByAttr(r,n)||l.push(r))}),l}_checkElementByAttr(o,n){let t=!1;if(!s.isEmpty(n))if(s.isString(n)){const l=n.substr(0,1),i=n.substring(1);switch(l){case"#":t=o.id===i;break;case".":t=s.isString(o.className)?s.isExistValue(o.className.split(" "),i):!1;break;default:t=o.tagName.toLocaleLowerCase()===n}}else this.isElementHtml(n)&&(t=o===n);return t}getOffset(o,n=null){const t=this.getPositionView(o,n);if(t.viewEl)return{top:t.top+t.viewEl.scrollTop-t.viewEl.clientTop,left:t.left+t.viewEl.scrollLeft-t.viewEl.clientLeft};{const i=(o&&o.ownerDocument).documentElement,r=this._getWindow(i);return{top:t.top+(r.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(r.pageXOffset||i.scrollLeft)-(i.clientLeft||0)}}}getPositionView(o,n=null){const t={top:0,left:0,viewEl:null};if(!this.isElementHtml(o))return t;const l=this._getBoundingClientRect(o);t.top=l.top,t.right=l.right,t.bottom=l.bottom,t.left=l.left,t.width=l.width,t.height=l.height;const i={top:0,right:0,bottom:0,left:0},r=s.isUndefined(n)?null:this.getParentCheckBody(o,n,!0);if(r){const c=this._getBoundingClientRect(r);i.top=c.top,i.right=c.right,i.bottom=c.bottom,i.left=c.left,t.viewWidth=c.width,t.viewHeight=c.height,t.top=l.top-(i.top<0?0:i.top),t.right=l.right-(i.right<0?0:i.right),t.bottom=l.bottom-(i.bottom<0?0:i.bottom),t.left=l.left-(i.left<0?0:i.left),t.elViewBox={top:l.top-i.top,right:l.right-i.right,bottom:l.bottom-i.bottom,left:l.left-i.left}}return t.viewEl=r,t}getPosition(o,n=null){const t=s.isUndefined(n)?o.parentNode:n;return this.getPositionView(o,t)}getElementIndex(o){return this.getPrevAll(o).length}getPrev(o){if(s.isUndefined(o.previousElementSibling)){let n=o.previousSibling;for(;n&&n.nodeType!==1;)n=n.previousSibling;return n}else return o.previousElementSibling}getPrevAll(o){const n=[];let t=this.getPrev(o);for(;t;)n.push(t),t=this.getPrev(t);return n.reverse()}getNext(o){if(s.isUndefined(o.nextElementSibling)){let n=o.nextSibling;for(;n&&n.nodeType!==1;)n=n.nextSibling;return n}else return o.nextElementSibling}insertAfter(o,n){const t=o.parentNode;t.lastChild==o?t.appendChild(n):t.insertBefore(n,o.nextSibling)}getFocusSelection(o){const n={};if(s.isUndefined(o.selectionStart)){o.focus();const t=document.selection.createRange();n.length=t.text.length,t.moveStart("character",-o.value.length),n.end=t.text.length,n.start=n.end-n.length}else n.start=o.selectionStart,n.end=o.selectionEnd,n.length=n.end-n.start;return n}setFocusSelection(o,n,t){if(s.isUndefined(o.selectionStart)){o.focus();const l=o.createTextRange();l.collapse(!0),l.moveEnd("character",t),l.moveStart("character",n),l.select()}else o.selectionStart=n,o.selectionEnd=t}calculationDropdownPosition(o,n,t,l,i){const r=i?this.getParentCheckBody(o,i):null,c=s.isUndefined(r),u=n.offsetWidth,d=n.offsetHeight,m=t.offsetWidth,p=t.offsetHeight;let h=0,f=0;s.isUndefined(l)||(h=l.offsetWidth,f=l.offsetHeight);const y=h/2,x=this.getWinHeight(),N=this.getWinWidth();let M=0,S=0,C={top:0,left:0},O={top:0,left:0};c?(M=N,S=x,C=this.getOffset(o),O=this.getPositionView(o)):(M=r.clientWidth,S=r.clientHeight,C=this.getOffset(o,r),O=this.getPositionView(o,r));const P=O.top,B=m+h,F=p+f,L=d+F,I={winWidth:N,winHeight:x,containerWidth:M,containerHeight:S,controlOffset:C,controlPosView:O,textWidth:u,textHeight:d,dropDownWidth:m,dropDownHeight:p,arrowWidth:h,arrowHeight:f};let z="down";P+L>S&&(P>F||C.top>F)&&(z="up"),I.dropDownPosDown=z;let W="up";P<F&&C.top<F&&(W="down"),I.dropDownPosUp=W;let U="left";O.left<B&&C.right>=F&&(U="right"),I.dropDownPosLeft=U;const D="right";O.right<B&&C.left>=F&&(U="left"),I.dropDownPosRight=D;let g="left";M-C.left<m&&(g=C.left+u>=m?"right":"left"),I.arrowPosLeft=g;let w="right";C.left+u<m&&(w=M-C.left>=m?"left":"right"),I.arrowPosRight=w;const b="center";I.arrowPosCenterLR=b;const v={dropDownLeft:0,arrowLeft:0},E=this.getOffset(n,o),k=u/2,T=t.clientWidth,R=E.left+k;let q=R-T/2;const H=!s.isEmpty(i),V=H&&C.left||0,_=H?V+q:O.left+q,A=0,Y=N-T;let X=_;X<A?X=A:X>Y&&(X=Y),q=H?X-V:X-O.left,Y<A&&(q=H?A-V:A-O.left);const j=R-q;return v.dropDownLeft=q,v.arrowLeft=j-y,I.arrowPosCenterLRInfo=v,I.arrowPosTop="top",I.arrowPosBottom="bottom",I.arrowPosCenterTB="center",I}getElementData(o){const n={};if(!s.isEmpty(o))for(const[t,l]of Object.entries(o)){const i=t.split("-"),r=[];i.forEach((c,u)=>{if(u>0){const d=c.toLowerCase();u===1?r.push(d):r.push(d.replace(d[0],d[0].toUpperCase()))}}),r.length>0&&(n[r.join("")]=l)}return n}async getTextDataByFile(o){const n=[];if(!s.isEmpty(o))for(let t=0;t<o.length;t++){const l=await this._getTextDataFileOne(o[t]);n.push(...l)}return n}_getTextDataFileOne(o){return Ho.promiseFun(n=>{const t=new FileReader;t.readAsText(o,"utf-8"),t.onload=l=>{const i=[];l.target.result.split(`
|
|
2
|
-
`).forEach(r=>{const c=s.trim(r);s.isEmpty(c)||i.push(c)}),n(i)}})}getClientXY(o){let n,t;return o.type==="touchend"?(t=o.changedTouches[0].clientY,n=o.changedTouches[0].clientX):o.type.startsWith("touch")?(t=o.touches[0].clientY,n=o.touches[0].clientX):(t=o.clientY,n=o.clientX),{clientX:n,clientY:t}}};const ee=new ql,Yl=["id"],Pn=e.defineComponent({name:"ClBadge",__name:"Index",props:{id:String,className:String,num:[String,Number],color:{type:String,default:"default"},colorSty:String,maxNum:{type:Number,default:-1},isHideZero:{type:Boolean,default:!0},isDot:{type:Boolean,default:!1}},setup(a){const o=a,n=o.id,t=()=>{let c="";if(!s.isEmpty(o.num)){const u=Number(o.num);s.isFinite(u)?u===0&&o.isHideZero?c="":u>o.maxNum&&o.maxNum>0?c=`${o.maxNum}+`:c=u.toString():c=""}return c},l=e.computed(()=>t()),i=e.computed(()=>{let c={badge:!0};return!s.isEmpty(o.color)&&s.isEmpty(o.colorSty)&&(c[`bg-${o.color}`]=!0),c=s.getJsonMerge(c,ee.getClassNameJson(o.className)),o.isDot&&s.isEmpty(t())&&(c["badge-dot"]=!0),c}),r=e.computed(()=>{const c={};return o.colorSty&&!s.isEmpty(o.colorSty)&&(c["background-color"]=o.colorSty),c});return(c,u)=>(e.openBlock(),e.createElementBlock("span",{id:e.unref(n),class:e.normalizeClass(i.value),style:e.normalizeStyle(r.value),role:"status"},e.toDisplayString(l.value),15,Yl))}}),Xl={common:{submit:"确定",save:"保存",cancel:"取消",update:"修改",close:"关闭",delete:"删除",deleteAll:"全部删除",upload:"上传",download:"下载",preview:"预览",restore:"还原",clear:"清除",clearEmpty:"清空",clearAll:"全部清除",copy:"复制",custom:"自定义",loading:"加载中",noDataText:"暂无数据",noResultsText:"未找到结果",checkboxAll:"全选",selected:"已选",count:"个",add:"添加",checkAddMax:"最多添加",checkAddMin:"最少保留",pleaseSelect:"请选择"},validate:{required:"此项不能为空",number:"请输入数字",integer:"请输入整数",integerPositive:"请输入正整数",alphanum:"请输入数字或字母",email:"邮箱格式不正确",minLen:"输入值的长度不能小于 %s 个字",maxLen:"输入值的长度不能大于 %s 个字",minByte:"输入值的长度不能小于 %s 个字节",maxByte:"输入值的长度不能大于 %s 个字节",minGreater:"输入值请大于 %s",maxGreater:"输入值请小于 %s",minGreaterEqual:"输入值请大于或等于 %s",maxGreaterEqual:"输入值请小于或等于 %s",phone:"手机号不正确",equalto:"两次输入值不同"},dataTime:{am:"上午",pm:"下午",year:"年",prevYear:"上一年",prevMonth:"上一月",nextYear:"下一年",nextMonth:"下一月",prevYear10:"前十年",nextYear10:"后十年",today:"今天",yesterDay:"昨天",pastDays7:"过去7天",pastDays30:"过去30天",montCurrent:"本月",montLast:"上月",montLately6:"最近半年",yearCurrent:"今年",yearLast:"去年",rangeStartLabel:"开始",checkEndMinLabel:"结束时间不能小于设置的最小时间",checkStartMaxLabel:"时间不能大于设置的最大时间",checkStartMinLabel:"时间不能小于设置的最小时间",checkStartEndLabel:" ",checkRangeEmptyLabel:"请选择完整的开始时间,结束时间"},fileUpload:{checkImageWHLabel:"图片宽高不匹配",checkSuffixMimeLabel:"类型不匹配",checkSizeLabel:"大小不匹配",uploadFile:"上传文件"},weekHour:{daily:"每日",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日",weekday:"工作日",weekend:"周末",restDay:"休息日",dawn:"凌晨",morning:"上午",noon:"中午",afternoon:"下午",evening:"傍晚",night:"晚上",selected:"已定向",selectedNot:"未定向"},paginate:{page:"页",pageStrip:"页/条",jumpTo:"跳转至",statistic:"显示第 ${s} 至 ${e} 项结果,共 ${_total} 项"},xEditable:{required:"此项不能为空",submitCallback:"submitCallback的返回格式不正确"}},Gl={common:{submit:"Submit",save:"Save",cancel:"Cancel",update:"Modify",close:"Close",delete:"Delete",deleteAll:"Delete All",upload:"Upload",download:"Download",preview:"Preview",restore:"Restore",clear:"Clear",clearEmpty:"Clear All",clearAll:"Clear All",copy:"Copy",custom:"Custom",loading:"Loading",noDataText:"No Data",noResultsText:"No Result",checkboxAll:"Select All",selected:"Selected",count:"Count",add:"Add",checkAddMax:"Add Maximum",checkAddMin:"Add Minimum",pleaseSelect:"Select"},validate:{required:"Required",number:"Please enter number",integer:"Please enter integer",integerPositive:"Please enter positive integer",alphanum:"Please enter number or letter",email:"Error Email",minLen:"Cannot less than %s characters",maxLen:"Cannot more than %s characters",minByte:"Cannot less than %s Bytes",maxByte:"Cannot more than %s Bytes",minGreater:"Must more than %s",maxGreater:"Must less than %s",minGreaterEqual:"Cannot less than %s",maxGreaterEqual:"Cannot more than %s",phone:"Error phone number",equalto:"Different Value"},dataTime:{am:"am",pm:"pm",year:"year",prevYear:"Last Year",prevMonth:"Last Month",nextYear:"Next Year",nextMonth:"Next Month",prevYear10:"Last Decade",nextYear10:"Next Decade",today:"Today",yesterDay:"Yesterday",pastDays7:"Last 7 Days",pastDays30:"Last 30 Days",montCurrent:"This Month",montLast:"Last Month",montLately6:"Last Half Year",yearCurrent:"This Year",yearLast:"Last Year",rangeStartLabel:"Start",checkEndMinLabel:"Error end time",checkStartMaxLabel:"Error end time",checkStartMinLabel:"Error start time",checkStartEndLabel:"End time cannot before start time",checkRangeEmptyLabel:"Select start and end time"},fileUpload:{checkImageWHLabel:"Error image dimension",checkSuffixMimeLabel:"Error type",checkSizeLabel:"Error file size",uploadFile:"Upload File"},weekHour:{daily:"Daily",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",weekday:"Weekday",weekend:"Weekend",restDay:"Rest day",dawn:"Midnight",morning:"AM",noon:"Noon",afternoon:"PM",evening:"Evenfall",night:"Evening",selected:"Include",selectedNot:"Exclude"},paginate:{page:"Page",pageStrip:"Lines/Page",jumpTo:"Page to",statistic:"Records ${s} to ${e} , ${_total} Records in Total"},xEditable:{required:"Required",submitCallback:"Error SubmitCallback"}};Oe.locale("zh-cn");Oe.extend(Vl);Oe.extend(Rl);Oe.extend(Pl);Oe.extend(zl);Oe.extend(Hl);Oe.extend(Jl);Oe.extend(Ul);let to=!1;class ye{static objDay=Oe;static timezone="PRC";static async ensureLunar(){if(to)return;const o=await import("dayjs-lunar");Oe.extend(o.default),to=!0}static initDay(o){return(s.isUndefined(o)?Oe():o).tz(this.timezone)}static getDayjsObject(o){if(s.isEmpty(o)&&!(o instanceof Date))return this.initDay(Oe());if(Oe.isDayjs(o))return this.initDay(o.clone());let n;return o instanceof Date?n=o:s.isString(o)?n=o.replace(/[/]/g,"-").replace(/:/g,":"):s.isInt(o)?n=new Date(parseInt(o,10)):s.isObject(o)&&(n=o),this.initDay(Oe(n,"YYYY-MM-DD HH:mm:ss"))}static initFormat(o){let n={value:"",format:"YYYY-MM-DD"},t;return s.isObject(o)?Oe.isDayjs(o)?t=o:(o.format&&(n=s.getJsonMerge(n,o)),o.value||o.format?t=this.getDayjsObject(o.value||""):t=this.getDayjsObject(o)):t=this.getDayjsObject(o),t.format(n.format)}static addTime(o,n,t="days"){return this.getDayjsObject(o).add(n,t)}static subtractTime(o,n,t="days"){return this.getDayjsObject(o).subtract(n,t)}static diffTime(o,n,t="millisecond"){return this.getDayjsObject(o).diff(this.getDayjsObject(n),t)}}Rn("date",(a,o)=>ye.initFormat({value:a,format:o}));Rn("dateTime",(a,o)=>ye.initFormat({value:a,format:o}));Rn("time",(a,o)=>ye.initFormat({value:a,format:o}));class Ql{_type;_typeDef;_packageData;constructor(){this._type="zh_cn",this._typeDef="zh_cn",this._packageData={zh_cn:Xl,en:Gl}}initMerge(o){const n=s.isEmpty(o.type);return n||(this._type=o.type),s.isEmpty(o.packageData)||(n?this._packageData[this._typeDef]=s.getJsonMergeDeep(this._packageData[this._typeDef],o.packageData):this._packageData=s.getJsonMergeDeep(this._packageData,o.packageData)),{type:this._type,packageData:this._packageData}}_getType(){let o=this._type;return s.isEmpty(o)&&(o=this._typeDef),{type:o,def:this._typeDef}}_getData(o){let n={};const t=this._packageData;if(o)n=t[o];else{const l=this._getType();s.isExistJsonKey(t,l.type)&&(n=t[l.type]),s.isEmpty(n)&&(n=t[l.def])}return n}_getKeyValue(o,n){let t;if(s.isExistValue(o,".")){const l=s.split(o,".");let i=s.getJsonClone(n,!0);l.forEach((r,c)=>{const u=i[r];c===l.length-1?i=u:i=s.isEmpty(u)?{}:u}),t=i}else t=n[o];return t}_getKey(o,n){let t;const l=n?this._getData(n):this._getData();return s.isEmpty(l)||(t=this._getKeyValue(o,l),s.isObject(t)&&(t=s.getJsonClone(t,!0))),t}getType(){return this._getType()}getAll(){return this._getData()}getCommon(){const o=this._getKey("common"),n=this._getKey("common",this._typeDef);return s.getJsonMergeDeep(n||{},o||{})}getValue(o){let n=this._getKey(o);return s.isEmpty(n)&&(n=this._getKey(o,this._typeDef)),n}getPage(o){let n={};const t=this.getCommon();if(o==="common")n=t;else{const l=this._getKey(o,this._typeDef),i=this._getKey(o),r=s.getJsonMergeDeep(l,i);let c={};if(s.isExistValue(o,".")){const u=s.split(o,".");u[u.length-1]="common";const d=u.join("."),m=this._getKey(d,this._typeDef),p=this._getKey(d);c=s.getJsonMergeDeep(m,p)}n=s.getJsonMerge(r,{common:t,pageCommon:c})}return n}setType(o){switch(this._type=o,o){case"zh_cn":ye.objDay.locale("zh-cn");break;case"en":ye.objDay.locale("en");break}}}const Le=new Ql,Zl={zh_cn:{common:{confirm:"确认",submit:"提交",search:"搜索",remove:"移除",clearInput:"清除输入内容",clearAll:"清除全部",loading:"加载中",overlay:"遮罩层",breadcrumb:"面包屑导航",copy:"复制",showPassword:"显示密码",hidePassword:"隐藏密码",increase:"增加",decrease:"减少",close:"关闭",dialog:"对话框",textarea:"文本输入区域",expand:"展开",collapse:"折叠",areaTitle:"地区选择"}},en:{common:{confirm:"Confirm",submit:"Submit",search:"Search",remove:"Remove",clearInput:"Clear input",clearAll:"Clear all",loading:"Loading",overlay:"Overlay backdrop",breadcrumb:"Breadcrumb",copy:"Copy",showPassword:"Show password",hidePassword:"Hide password",increase:"Increase",decrease:"Decrease",close:"Close",dialog:"Dialog",textarea:"Text input area",expand:"Expand",collapse:"Collapse",areaTitle:"Select region"}}},Bt=e.reactive({}),Jo=a=>{s.isObject(a)&&Object.keys(a).forEach(o=>{const n=a[o],t=Bt[o];if(s.isUndefined(n)){delete Bt[o];return}if(s.isObject(n)){Bt[o]=s.getJsonMergeDeep(t||{},n);return}s.isObject(t)||(Bt[o]=n)})},ot=a=>Bt[a];Le.initMerge({packageData:Zl});const es="locale",ts="zh_cn";function no(){const a=ot(es);if(typeof a=="string"&&a.length>0)return a;const o=Le.getType();if(typeof o=="string"&&o.length>0)return o;if(o&&typeof o=="object"&&"type"in o){const n=o.type;if(typeof n=="string"&&n.length>0)return n}return ts}function Uo(){const a=e.ref(no());return e.watch(no,o=>{a.value=o}),{optLocale:a}}function sn(){const{optLocale:a}=Uo(),o=e.ref({}),n=()=>{const t=Le.getCommon()||{},l={};Object.keys(t).forEach(i=>{const r=t[i];typeof r=="string"&&(l[i]=r)}),o.value=l};return n(),e.watch(a,n),{optA11yText:o}}const jo=()=>{const a=e.ref({}),{optLocale:o}=Uo(),n=u=>{a.value=Le.getPage(u)};let t="";const l=u=>{t=u,n(u)};return e.watch(o,()=>{t&&n(t)}),{optPageLanguage:a,optLocale:o,getPageLanguage:l,getLanguageValue:u=>Le.getValue(u),getLanguageType:()=>Le.getType(),getCommonText:(u,d)=>{const m=Le.getValue(`common.${u}`);return typeof m=="string"&&m.length>0?m:d}}},ns=["id","aria-label"],os=["onClick"],as={key:1},ls={class:"breadcrumb-item"},Ko=e.defineComponent({name:"ClBreadcrumb",__name:"Index",props:{id:String,className:String,list:{type:Array,default:()=>[]},title:{type:String,default:""}},emits:{onClickUrl:(a,o)=>!0},setup(a,{emit:o}){const{optA11yText:n}=sn(),t=a,l=o,i=`breadcrumb-${s.getRandom(5)}`,r=t.id,c=e.computed(()=>{const h={"panel-breadcrumb":!0};return s.getJsonMerge(h,ee.getClassNameJson(t.className))}),u=e.computed(()=>!Array.isArray(t.list)||s.isEmpty(t.list)?[]:t.list.slice(0,-1).filter(Boolean)),d=e.computed(()=>{if(!Array.isArray(t.list)||s.isEmpty(t.list))return"";const h=t.list[t.list.length-1];return s.isEmpty(t.title)?h?.name??"":t.title}),m=h=>!s.isEmpty(h),p=(h,f)=>{l("onClickUrl",h,f)};return(h,f)=>{const y=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ol",{id:e.unref(r),class:e.normalizeClass(c.value),"aria-label":e.unref(n).breadcrumb||"面包屑导航"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(x,N)=>(e.openBlock(),e.createElementBlock("li",{class:"breadcrumb-item",key:`${i}-${N}`},[m(x.href)?(e.openBlock(),e.createBlock(y,{key:0,to:x.href},{default:e.withCtx(()=>[e.createElementVNode("span",{onClick:M=>p(x,M)},e.toDisplayString(x.name??""),9,os)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",as,e.toDisplayString(x.name??""),1))]))),128)),e.createElementVNode("li",ls,[e.createElementVNode("span",null,e.toDisplayString(d.value),1)])],10,ns)}}}),oo="[ui-kit]";function ao(){const a=ot("debug"),o=!1;return a===!0?{warn:!0,error:!0}:a===!1?{warn:!1,error:!1}:a&&typeof a=="object"?{warn:a.warn??o,error:a.error??!0}:{warn:o,error:!0}}function lo(a,o){return[a?`${oo}[${a}]`:oo,...o]}const re={warn(a,...o){ao().warn&&console.warn(...lo(a,o))},error(a,...o){ao().error&&console.error(...lo(a,o))}},ss=["id","aria-label"],Te=e.defineComponent({name:"ClLoad",__name:"Index",props:{id:String,className:String,theme:{type:String,default:"rotaryLine",validator:a=>["rotaryLine","circleNotch","circleBubble","ballColor4","dotTyping","dotWave","dotBounce","dotPulse","dotOrbit","dotFlow","dotSlide","dotSlider","dotFold","dotSquare","barEqualizer","barWave","barPulse","barStretch","barMeter","barBounce","barRamp","ringRotate","ringDot","ringPulse","ringClip","ringFan","circleSpinner","dotRipple","dotRipple3","ringCross","squareTrace","squareTrace2","crossMove","snakePath","squareMirror","dotPulse5","diamondShuttle","barStream","newtonCradle","dotSpin","orbitSwap","typingBounce","ringGlow","toastRing"].indexOf(a)!==-1},size:{type:String,default:"small",validator:a=>["xxl","xl","large","small","xs"].indexOf(a)!==-1},color:{type:String,default:""}},setup(a){const{optA11yText:o}=sn(),n=a,t=n.id,l={rotaryLine:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RotaryLine-Cwu3YLpU.cjs"))),circleNotch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleNotch-D9prya89.cjs"))),circleBubble:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleBubble-BszXrNmg.cjs"))),ballColor4:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BallColor4-9BeLWzwc.cjs"))),dotTyping:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotTyping-QDey1yRa.cjs"))),dotWave:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotWave-DRXlC1W2.cjs"))),dotBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotBounce-7MaAbigp.cjs"))),dotPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotPulse-D98JVErY.cjs"))),dotOrbit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotOrbit-BuOQPsSW.cjs"))),dotFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotFlow-DvBJQulU.cjs"))),dotSlide:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSlide-CS-Q4uKe.cjs"))),dotSlider:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSlider-BNNqD9Dl.cjs"))),dotFold:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotFold-CieHpsj-.cjs"))),dotSquare:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSquare-DEuA5KzQ.cjs"))),barEqualizer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarEqualizer-DWlqf8FS.cjs"))),barWave:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarWave-Rt8wvaB7.cjs"))),barPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarPulse-BHFsltR9.cjs"))),barStretch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarStretch-BbNcMDZV.cjs"))),barMeter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarMeter-BN9p-esq.cjs"))),barBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarBounce-BGuvEO50.cjs"))),barRamp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarRamp-DtnspfKx.cjs"))),ringRotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingRotate-0ZwepWdq.cjs"))),ringDot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingDot-B1efcLcT.cjs"))),ringPulse:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingPulse-C0b5UoQz.cjs"))),ringClip:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingClip-CxuSQ6UC.cjs"))),ringFan:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingFan-AXfUH1gy.cjs"))),dotRipple:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotRipple-D82MFEU4.cjs"))),circleSpinner:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CircleSpinner-Dds2ZKpY.cjs"))),dotRipple3:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotRipple3-Fb61jLTU.cjs"))),ringCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingCross-CZun0bQg.cjs"))),squareTrace:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareTrace-Cixaklmc.cjs"))),squareTrace2:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareTrace2-LEwK57wv.cjs"))),crossMove:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CrossMove-CF_BJxYr.cjs"))),snakePath:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SnakePath-BYu2xCmy.cjs"))),squareMirror:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./SquareMirror-DRlm59jF.cjs"))),dotPulse5:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotPulse5-C1FaRhsY.cjs"))),diamondShuttle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DiamondShuttle-Bmc425vI.cjs"))),barStream:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BarStream-BPpZOi65.cjs"))),newtonCradle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./NewtonCradle-BrcU-Kg4.cjs"))),dotSpin:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./DotSpin-DJ4Gesdz.cjs"))),orbitSwap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./OrbitSwap-4AETRFM-.cjs"))),typingBounce:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./TypingBounce-DZojpNTJ.cjs"))),ringGlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./RingGlow-DPoHUjcB.cjs"))),toastRing:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./ToastRing-hBf9THbv.cjs")))},i=new Set(["ballColor4","diamondShuttle","orbitSwap","ringGlow"]),r=e.computed(()=>n.theme||"rotaryLine"),c=e.computed(()=>l[r.value]||null),u=e.computed(()=>n.size==="large"),d=e.computed(()=>n.size==="xl"),m=e.computed(()=>n.size==="xxl"),p=e.computed(()=>n.size==="xs"),h=e.computed(()=>{const y=n.color||"";return y?i.has(r.value)?y:s.isString(y)?y.split("|")[0].trim():"":""}),f=e.computed(()=>s.getJsonMerge({"panel-load":!0,"size-large":u.value,"size-xl":d.value,"size-xxl":m.value,"size-xs":p.value},ee.getClassNameJson(n.className)));return(y,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.value),id:e.unref(t),role:"status","aria-label":e.unref(o).loading||"加载中"},[c.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),{key:0,color:h.value,size:a.size},null,8,["color","size"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,ss))}}),Zt=new Map;function rn(a){if(!a)return;const o=Zt.get(a);if(o){o.count+=1;return}Zt.set(a,{count:1,overflow:a.style.overflow,className:a.className}),a.style.overflow="hidden",/\bmodal-open\b/.test(a.className)||(a.className=`${a.className} modal-open`.trim())}function cn(a){if(!a)return;const o=Zt.get(a);if(o){if(o.count>1){o.count-=1;return}Zt.delete(a),a.isConnected&&(a.style.overflow=o.overflow,a.className=o.className)}}const is=["id","aria-label"],St=e.defineComponent({name:"ClOverlay",__name:"Index",props:{id:String,className:String,show:Boolean,zIndex:{type:Number,default:2e3},duration:{type:Number,default:300},isLockScroll:{type:Boolean,default:!0},background:{type:String,default:"var(--cl-overlay, rgba(0, 0, 0, 0.7))"},teleportTarget:{type:String,default:""}},emits:["update:show","onClick"],setup(a,{emit:o}){const{optA11yText:n}=sn(),t=a,l=o,i=t.id,r=e.ref(t.show);let c=null;const u=e.useTemplateRef("refElOverlay"),d=e.computed(()=>s.isNonEmptyString(t.teleportTarget)?O(t.teleportTarget):"body"),m=e.computed(()=>t.teleportTarget==="self"),p=e.computed(()=>m.value),h=e.computed(()=>{const F=t.duration;return s.isNumber(F)&&s.isFinite(F)&&F>=0&&F<=1e4?F:300}),f=e.computed(()=>{const F=t.zIndex;return s.isNumber(F)&&s.isFinite(F)&&F>=0?F:2e3}),y=e.computed(()=>{const F={"panel-overlay":!0};return m.value&&(F["panel-overlay-self"]=!0),s.getJsonMerge(F,ee.getClassNameJson(t.className))}),x=e.computed(()=>({zIndex:f.value,background:s.isNonEmptyString(t.background)?t.background:"var(--cl-overlay, rgba(0, 0, 0, 0.7))","--overlay-duration":`${h.value}ms`})),N=F=>{rn(F)},M=F=>{cn(F)},S=()=>{if(m.value){const I=u.value?u.value.parentElement:null;if(!I)return null;let z=I;for(;z&&z!==document.body;){if(window.getComputedStyle(z).position!=="static")return z;z=z.parentElement}return document.body}const F=d.value;if(F==="body")return document.body;const L=document.querySelector(F);return L===document.body?document.body:L??document.body},C=()=>{if(t.isLockScroll&&t.show){const F=S();F&&c!==F&&(c&&M(c),c=F,N(F))}else c&&(M(c),c=null)},O=F=>{if(F==="self")return F;try{return document.querySelector(F)?F:(re.warn("Overlay",`teleportTarget「${F}」未匹配到元素,已回退到 body`),"body")}catch{return re.warn("Overlay",`teleportTarget「${F}」不是合法的 CSS 选择器,已回退到 body`),"body"}};e.onBeforeUnmount(()=>{c&&(M(c),c=null)}),e.watch(()=>[t.show,t.isLockScroll],()=>{t.show&&(r.value=!0),e.nextTick(()=>{C()})},{immediate:!0}),e.onMounted(()=>{C()});const P=()=>{l("onClick"),l("update:show",!1)},B=()=>{t.show||(r.value=!1)};return(F,L)=>r.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:d.value,disabled:p.value},[e.createVNode(e.Transition,{name:"panel-overlay-fade",duration:h.value,appear:"",onAfterLeave:B},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"refElOverlay",ref:u,id:e.unref(i),class:e.normalizeClass(y.value),style:e.normalizeStyle(x.value),onClick:e.withModifiers(P,["self"]),role:"button","aria-label":e.unref(n).overlay||"遮罩层"},[e.renderSlot(F.$slots,"default")],14,is),[[e.vShow,a.show]])]),_:3},8,["duration"])],8,["to","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}),rs=["PPT","activity","address-book","aixin","aixin1","album","album-baby","all-circle","all-circle-fill","all-square","android","android1","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angle-down","angle-left","angle-line-down","angle-line-left","angle-line-right","angle-line-up","angle-linelong-down","angle-linelong-down-left","angle-linelong-down-right","angle-linelong-left","angle-linelong-right","angle-linelong-up","angle-linelong-up-left","angle-linelong-up-right","angle-right","angle-up","arrow-circle-down","arrow-circle-down-line","arrow-circle-down-line-fill","arrow-circle-left","arrow-circle-right","arrow-circle-up","back-bottom","back-top","back-up1","banshixinxingxing","baseInfo","basicdata","bell","bitian","book","calendar","calendar1","camera","camera1","caret-down","caret-left","caret-right","caret-up","check","check-circle","check-circle-fill","check-square","check-square-fill","check1","check2","chemicals","chose-image","clear","clock","close","close-circle","close-circle-fill","close1","clothes","column-show","config","contract","cooperation","copy","cropper","customer","dashboard","dashboard1","dazhongdianping","delete","diqiu","dollar","douyin","douyin1","download","download-cloud","download-cloud-1","download-cloud-2","earth","edit","edit1","edit2","email","empty","equipment","excel","exclamation","exclamation-circle","exclamation-circle-fill","eye","eye-no","file","file-excel","file-gif","file-image","file-pdf","file-ppt","file-search","file-text","file-word","file-zip","film","filter","finance","gesture-enlarge","gesture-narrow","gif","goumai","guanliyuan","guidance","home","home1","image","image-multiple","image-rmb","image1","info","info-circle","info-circle-fill","ios","ios1","jiaoxue","jin","jingxiupian","kebiao","kefu","kefunan","kefunv","language","language1","layout-left","layout-top","layout-top-left","liebiao","liebiao-1","liebiao-image","liebiao-pubuliu","like","list-empty5","lock","lock-un","look","looklove","luxian","marker","marker-qidian","marker-qidian1","meiyuan","minus","minus-circle","minus-circle-fill","minus-square","minus-square-fill","mobanpeizhi","more","more1","move","music","new","new-triangle-left-2","new-triangle-left-4","new-triangle-right","new-triangle-right-2","new2","order","orderPre","paixu","pdf","phone","phone-code","photoFrame1","pile","pile-fill","pintu","pintu1","pintu2","play","plus","plus-circle","plus-circle-fill","plus-square","plus-square-fill","purchase","qrcode","question","question-circle","question-circle-fill","refresh","remove","renminbi","reply","report","restore","rmb","rmb-circle","rmb-circle-fill","rotate-left","rotate-left1","rotate-right","rotate-right1","save","scenery","schedule","screen-full","screen-narrow","search","search-minus","search-plus","security","security-accidents","security-check","security-education","share","sheji","shezhi","shiyanshiyuyue1","shopcart","shouji1","shouru","sign-out","sign-out-2","sign-out1","sort-down","sort-up","sorting","square","systemSet","taiyang","taocan","tel","test","text","time","tool","total-circle-fill","touxiang","tuijian","tupianyulan","tupianyulan1","upload","upload-cloud","upload-cloud-1","upload-cloud-2","use-registration","user","user-account","user-info1","video","wangzhan","warn","warn-fill","weixin","weixin1","weixin2","word","xiangji","xin","xin1","xing","xing-fill","xingxing-banshixin","xinshenger","yanzhengma","yanzhengma1","yanzhengma2","yinger-nan","yinger-nv","yinger-unknown","yuexing","yulan","yulan1","yunfu","yunfu1","yuyue","yuyuedan","zhichu","zhongyao","zhuti","zhutice","zip","zuhu","zuhu1","zuopin"],cs=["id"],le=e.defineComponent({name:"ClIconFont",__name:"Index",props:{id:{},name:{},className:{},size:{},color:{}},setup(a){const o=new Set(rs),n=a,t=n.id,l=e.computed(()=>{let r={"panel-icon-font":!0};const c=n.name;return s.isNonEmptyString(c)&&(o.has(c)?(r.clIconFont=!0,r[`clIcon-${c}`]=!0):r=s.getJsonMerge(r,ee.getClassNameJson(c))),r=s.getJsonMerge(r,ee.getClassNameJson(n.className)),r}),i=e.computed(()=>{const r={};return n.size!==void 0&&n.size!==null&&(r["font-size"]=s.isFinite(n.size)?`${n.size}px`:String(n.size)),n.color&&(r.color=n.color),r});return(r,c)=>(e.openBlock(),e.createElementBlock("i",{id:e.unref(t),class:e.normalizeClass(l.value),style:e.normalizeStyle(i.value)},null,14,cs))}});let us=500;const ds=new WeakMap;function ms(a,o,n){const t=a.getElementsByClassName("cl-waves-ripple");if(t.length>1)for(let p=0;p<t.length-1;p++){const h=t[p];parseFloat(h.style.opacity||"1")<.3&&h.remove()}const l=document.createElement("span");l.className="cl-waves-ripple";const i=a.getBoundingClientRect(),r=o.clientX-i.left,c=o.clientY-i.top,u=s.isObject(n.value)?n.value:{},d=u.color==="white";l.style.top=`${c}px`,l.style.left=`${r}px`,d&&l.classList.add("waves-light");const m=s.isNumber(u.duration)?u.duration:us;l.style.transitionDuration=`${m}ms`,a.appendChild(l),requestAnimationFrame(()=>{const p=(i.width/100*3).toFixed(2);l.style.transform=`scale(${p}) translate(0, 0)`,l.style.opacity="1";const h=()=>{l.removeEventListener("transitionend",h),l.parentNode&&l.parentNode.removeChild(l)};l.addEventListener("transitionend",h)})}const ps={mounted(a,o){o.value&&fs(a,o)}};function fs(a,o){a.style.position=a.style.position||"relative",a.style.overflow="hidden";const n=t=>ms(a,t,o);ds.set(a,n),a.addEventListener("click",n)}const gs={mounted:ps.mounted},hs=["id"],vs=["disabled","aria-label"],ys={key:2,class:"btn-label"},ks={key:0,class:"btn-loading"},bs={class:"btn-body-backdrop-container"},Cs={class:"btn-body-backdrop-text"},ct=e.defineComponent({name:"ClButton",directives:{clwaves:gs},__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},classBtn:String,label:String,icon:String,iconName:String,color:{type:String,default:"default"},size:{type:String,validator:a=>a===void 0||["large","small","xl"].indexOf(a)!==-1},isShowLoad:{type:Boolean,default:!1},loadPos:{type:String,default:"right",validator:a=>["right","zoom-out","fixedCenter"].indexOf(a)!==-1},loadTheme:{type:String,default:"rotaryLine"},loadColor:String,loadDrift:{type:Boolean,default:!0},loadText:{type:String,default:"加载中"},isShowBackDrop:{type:Boolean,default:!1},teleportTarget:{type:String,default:""},backdropOpacity:{type:Number,default:.02,validator:a=>a>=0&&a<=1},isShowWaves:{type:Boolean,default:!0},wavesColor:{type:String,default:"white"},loadStatusIsIng:{type:[Boolean,null],default:null}},emits:{onClick:()=>!0},setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useSlots(),c=e.ref(!1),u=e.ref(!1),d=e.ref(!1),m=e.useTemplateRef("refElBtn"),p=e.useTemplateRef("refElContent"),h=e.ref(!1),f=e.ref("");let y=null,x=!1,N=null;typeof window<"u"&&s.isEmpty(t.label)&&s.isEmpty(t.icon)&&s.isEmpty(t.iconName)&&!r.default&&re.warn("ClButton","警告:label、icon、iconName 或默认插槽必须传一个值");const M=e.computed(()=>!s.isEmpty(t.label)||!!r.default),S=e.computed(()=>{const X=t.icon||t.iconName;return s.isNonEmptyString(X)?X:""}),C=e.computed(()=>M.value&&t.label||"按钮"),O=e.computed(()=>t.disabled?!0:c.value),P=e.computed(()=>t.loadPos==="fixedCenter"),B=e.computed(()=>t.loadColor||"var(--cl-bg, #ffffff)"),F=e.computed(()=>t.loadColor||f.value),L=e.computed(()=>`rgba(0, 0, 0, ${t.backdropOpacity})`),I=e.computed(()=>{let X=t.wavesColor||"white";return(s.isExistValue(t.color,"white")||s.isExistValue(t.color,"grayLight")||s.isExistValue(t.color,"text"))&&(X="black"),X}),z=e.computed(()=>t.isShowWaves?{color:I.value}:!1),W=e.computed(()=>{let X=t.loadPos||"right";return s.isExistValue(t.classBtn,"btn-circle")&&s.isExistValue(X,"right")&&(X="zoom-out"),X}),U=e.computed(()=>{let X="";switch(t.loadTheme){case"rotaryLine":X=s.isExistValue(t.classBtn,"btn-circle")?"":"large";break;case"circleNotch":default:X="large";break;case"circleBubble":X="";break}return X}),D=e.computed(()=>{const X={"panel-button":!0};return s.getJsonMerge(X,ee.getClassNameJson(t.className))}),g=e.computed(()=>{let X={"btn-parent":!0,btn:!0};return s.isEmpty(t.color)||(X[`btn-${t.color}`]=!0),X=s.getJsonMerge(X,ee.getClassNameJson(t.classBtn)),s.isEmpty(t.size)||(X[`btn-${t.size}`]=!0),X["btn-load-ing"]=c.value,c.value&&(X[`btn-load-${W.value}`]=!0,X[`btn-load-${t.loadTheme}`]=!0,X["btn-load-nodrift"]=!t.loadDrift||W.value==="right"&&h.value),X}),w=e.computed(()=>{const X=c.value&&P.value;return{"btn-body-backdrop-main":!0,animated:!0,zoomIn:X,zoomOut:!X}}),b=e.computed(()=>{const X={};return(M.value||S.value)&&W.value==="zoom-out"&&c.value&&!P.value&&(X.opacity=0),X}),v=()=>{l("onClick")},E=()=>{if(s.isExistValue(t.classBtn,"btn-circle"))return 20;switch(t.loadTheme){case"circleNotch":return 24;case"circleBubble":return 30;case"rotaryLine":default:return t.size==="small"?20:30}},k=()=>{if(typeof window>"u"||!m.value)return;const X=m.value.querySelector(".btn-label")||m.value.querySelector(".btn-icon")||m.value,j=window.getComputedStyle(X).color;s.isEmpty(j)||(f.value=j)},T=()=>{if(typeof window>"u"||!m.value||!p.value||c.value)return;const X=m.value,$=p.value.children;if(!$.length){h.value=!0;return}const Z=X.getBoundingClientRect(),G=$[$.length-1].getBoundingClientRect(),oe=G.right-$[0].getBoundingClientRect().left,he=Z.right-G.right,J=E()+6+5;h.value=he>=J&&oe>0},R=()=>{q(),!(typeof window>"u"||!m.value||!window.ResizeObserver)&&(N=new window.ResizeObserver(()=>{T()}),N.observe(m.value))},q=()=>{N&&(N.disconnect(),N=null)},H=()=>{c.value||(y&&(clearTimeout(y),y=null),t.isShowBackDrop&&(u.value=!0,d.value=!0),c.value=!0)},V=()=>{t.isShowBackDrop&&(P.value?e.nextTick(()=>{x||(y=setTimeout(()=>{x||(u.value=!1,d.value=!1,y=null)},200))}):u.value=!1),c.value=!1};e.onMounted(()=>{e.nextTick(()=>{k(),T(),R()})}),e.onBeforeUnmount(()=>{x=!0,q(),y&&(clearTimeout(y),y=null)}),e.watch(()=>[t.label,t.icon,t.iconName,t.size,t.loadTheme,t.classBtn,t.loadDrift,t.color],()=>{e.nextTick(()=>{k(),T()})}),e.watch(()=>t.loadStatusIsIng,X=>{s.isBoolean(X)&&(X?H():V())},{immediate:!0});const _=()=>{t.disabled||(t.isShowLoad&&H(),v())};return o({loadStart:()=>{H()},loadStop:()=>{V()}}),(X,j)=>{const $=e.resolveDirective("clwaves");return e.openBlock(),e.createElementBlock("span",{id:e.unref(i),class:e.normalizeClass(D.value)},[e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(g.value),disabled:O.value,"aria-label":C.value,ref_key:"refElBtn",ref:m,onClick:_},[e.createElementVNode("span",{style:e.normalizeStyle(b.value),ref_key:"refElContent",ref:p},[S.value?(e.openBlock(),e.createBlock(le,{key:0,name:S.value,className:"btn-icon"},null,8,["name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),M.value?(e.openBlock(),e.createElementBlock("span",ys,[e.renderSlot(X.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(a.label),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],4),c.value&&!P.value?(e.openBlock(),e.createElementBlock("span",ks,[e.createVNode(Te,{theme:a.loadTheme,size:U.value,color:F.value},null,8,["theme","size","color"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,vs)),[[$,z.value]]),u.value?(e.openBlock(),e.createBlock(St,{key:0,show:u.value,zIndex:1000001,duration:0,isLockScroll:!1,background:L.value,teleportTarget:a.teleportTarget},{default:e.withCtx(()=>[P.value&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(w.value)},[e.createElementVNode("div",bs,[e.createVNode(Te,{theme:a.loadTheme,size:U.value,color:B.value},null,8,["theme","size","color"]),e.createElementVNode("div",Cs,e.toDisplayString(a.loadText||"加载中"),1)])],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),_:1},8,["show","background","teleportTarget"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,hs)}}}),Ss=["id"],Es={key:0,class:"callout-title"},_s={class:"callout-content"},Wo=e.defineComponent({name:"ClCallout",__name:"Index",props:{id:String,className:String,type:{type:String,default:"info"},title:String},setup(a){const o=a,n=o.id,t=e.computed(()=>s.getJsonMerge({"panel-callout":!0,[`callout-${o.type||"info"}`]:!0},ee.getClassNameJson(o.className)));return(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.value),id:e.unref(n),role:"note"},[a.title?(e.openBlock(),e.createElementBlock("div",Es,e.toDisplayString(a.title),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",_s,[e.renderSlot(l.$slots,"default")])],10,Ss))}}),Bs=["id"],ws={key:0,class:"card-head"},xs={key:0,class:"card-head-flex"},Ns={class:"card-title"},Ts={key:1,class:"card-title"},Ds={key:2,class:"card-explain"},Is={key:2,class:"card-footer"},qo=e.defineComponent({name:"ClCard",__name:"Index",props:{id:String,className:String,classBody:String,theme:{type:String,default:"default"},isInnerPadZero:{type:Boolean,default:!1}},setup(a){const o=a,n=o.id,t=e.computed(()=>({"panel-card":!0,"card-box":!0,...ee.getClassNameJson(o.className),[`card-${o.theme||"default"}`]:!0})),l=e.computed(()=>({"card-body":!0,"card-body-padding-0":o.isInnerPadZero,...ee.getClassNameJson(o.classBody)}));return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.value),id:e.unref(n)},[i.$slots.headTitle||i.$slots.headExplain||i.$slots.headFlex?(e.openBlock(),e.createElementBlock("div",ws,[i.$slots.headFlex?(e.openBlock(),e.createElementBlock("div",xs,[e.createElementVNode("div",Ns,[e.renderSlot(i.$slots,"headTitle")]),e.renderSlot(i.$slots,"headFlex")])):(e.openBlock(),e.createElementBlock("div",Ts,[e.renderSlot(i.$slots,"headTitle")])),i.$slots.headExplain?(e.openBlock(),e.createElementBlock("div",Ds,[e.renderSlot(i.$slots,"headExplain")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",{class:e.normalizeClass(l.value)},[e.renderSlot(i.$slots,"default")],2),i.$slots.foot?(e.openBlock(),e.createElementBlock("div",Is,[e.renderSlot(i.$slots,"foot")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,Bs))}}),As=["id"],Yo=e.defineComponent({name:"ClCardColor",__name:"Index",props:{id:String,className:String,classBody:String,color:{type:String,default:"var(--cl-shadow-sm, rgba(0, 0, 0, 0.04))"},isInnerPadZero:{type:Boolean,default:!1}},setup(a){const o=a,n=o.id,t=e.computed(()=>{const r={"card-color":!0};return s.getJsonMerge(r,ee.getClassNameJson(o.className))}),l=e.computed(()=>({"card-color-body":!0,"card-color-body--pad-zero":o.isInnerPadZero,...ee.getClassNameJson(o.classBody)})),i=e.computed(()=>({backgroundColor:s.isNonEmptyString(o.color)?o.color:"var(--cl-shadow-sm, rgba(0, 0, 0, 0.04))"}));return(r,c)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(n),class:e.normalizeClass(t.value),style:e.normalizeStyle(i.value)},[e.createElementVNode("div",{class:e.normalizeClass(l.value)},[e.renderSlot(r.$slots,"default")],2)],14,As))}}),Ms=["click","hover","focus"],mn={fade:"fade",show:"show"},Os={type:"tooltip",placement:"top",trigger:"click",theme:"white",wrap:"body",template:"",contentBody:"",contentHeader:"",selectorBody:"",selectorHead:"",selectorArrow:".arrow",isLoad:!1,loadOnCallback:null,loadOffCallback:null,isRunTrigger:!0,isStopPropagation:!0,isInitShow:!0,isHtml:!0,className:""};class $s{elementModal;optionModal;pageData;pageObject;constructor(o,n){this.elementModal={},this.elementModal.rely=o,this.optionModal=s.getJsonMerge(Os,n),this.pageData={isOpen:!1,events:[],scrollParents:[]},this.pageObject=null,["listenerOn","listenerOff","listenerHide","listenerRelatedMouseLeave","onScrollParentScroll"].forEach(t=>{this[t]=this[t].bind(this)}),this.init()}init(){if(!s.isEmpty(this.optionModal.template)){const o=this.getEventType();this.setEventListener(o)}}getEventType(){const o=[],n=[];let t=[];return s.isArray(this.optionModal.trigger)?t=this.optionModal.trigger:s.isString(this.optionModal.trigger)&&(t=this.optionModal.trigger.split(",")),t.forEach(l=>{switch(s.isExistValue(Ms,l)?l:""){case"hover":o.push("mouseenter"),n.push("mouseleave");break;case"focus":o.push("focus"),n.push("blur");break;case"click":o.push("click"),n.push("click");break}}),{on:o,off:n}}setEventListener(o){s.isEmpty(o.on)||o.on.forEach(n=>{this.pageData.events.push({on:n,func:this.listenerOn,eventName:n}),this.elementModal.rely.addEventListener(n,this.listenerOn)}),s.isEmpty(o.off)||o.off.forEach(n=>{this.pageData.events.push({off:n,func:this.listenerOff,eventName:n}),this.elementModal.rely.addEventListener(n,this.listenerOff)})}listenerOn(o){if(this.optionModal.isInitShow){if(this.optionModal.isStopPropagation&&(o.preventDefault(),o.stopPropagation()),this.pageData.isOpen||!this.optionModal.isRunTrigger)return;o.useOpenToTip=!0,this.show(),this.optionModal.isLoad&&s.isFunction(this.optionModal.loadOnCallback)&&this.optionModal.loadOnCallback()}}listenerOff(o){!this.optionModal.isRunTrigger||s.isBoolean(o.useOpenToTip)&&o.useOpenToTip||(this.hide(o),this.optionModal.isLoad&&s.isFunction(this.optionModal.loadOffCallback)&&this.optionModal.loadOffCallback())}show(){if(s.isString(this.optionModal.wrap)){const o=window.document.querySelector(this.optionModal.wrap);if(s.isUndefined(o))return}this.pageData.isOpen||this.operateShow()}operateShow(){if(!this.pageData.isOpen){if(this.pageData.isOpen=!0,s.isUndefined(this.elementModal.tip)){this.elementModal.tip=this.createElement();const n=this.getWrapElement();s.isUndefined(n)||n.appendChild(this.elementModal.tip);const t={placement:this.optionModal.placement};t.modifiers=[{name:"offset",options:{offset:[0,8]}}],this.pageObject=jl.createPopper(this.elementModal.rely,this.elementModal.tip,t)}else this.elementModal.tip.style.opacity="",this.elementModal.tip.style.pointerEvents="",this.pageObject.setOptions({modifiers:[{name:"eventListeners",enabled:!0}]});this.setContentBody(this.optionModal.contentBody),this.setContentHeader(this.optionModal.contentHeader);const o=[mn.fade,mn.show,`bs-${this.optionModal.type}-${this.optionModal.placement}`,`tooltip-${this.optionModal.theme}`];s.isEmpty(this.optionModal.className)||this.optionModal.className.split(" ").forEach(n=>{s.isEmpty(n)||o.push(n)}),this.elementModal.tip.className=ee.getAddClass(this.elementModal.tip.className,o),setTimeout(()=>{this.pageObject.update()},50),this.pageData.scrollParents=this.getScrollParents(),s.isEmpty(this.pageData.scrollParents)||this.pageData.scrollParents.forEach(n=>{n.addEventListener("scroll",this.onScrollParentScroll,{passive:!0})})}}createElement(){const o=window.document.createElement("div");return o.innerHTML=this.optionModal.template,o.childNodes[0]}setContentBody(o){if(!s.isEmpty(this.optionModal.selectorBody)&&!s.isEmpty(o))if(s.isUndefined(this.elementModal.tip))this.optionModal.contentBody=o;else{const n=this.elementModal.tip.querySelector(this.optionModal.selectorBody);if(!s.isUndefined(n)){if(this.optionModal.isHtml){const t=o.replace(/\\n/g,"<br>").replace(/\n/g,"<br>");n.innerHTML=t}else n.innerText=o;this.optionModal.contentBody=o,this.pageObject.update()}}}setInitShow(o){this.optionModal.isInitShow=o}setContentHeader(o){if(!s.isEmpty(this.optionModal.selectorHead)){const n=this.elementModal.tip.querySelector(this.optionModal.selectorHead);if(!s.isUndefined(n)){const t=s.isEmpty(o)?"":o;this.optionModal.isHtml?n.innerHTML=t:n.innerText=t,this.optionModal.contentHeader=t,this.pageObject.update()}}}getWrapElement(){let o;return s.isString(this.optionModal.wrap)?o=window.document.querySelector(this.optionModal.wrap):this.optionModal.wrap===!1&&(o=this.elementModal.rely.parentNode),o}getScrollParents(){const o=[];let n=this.elementModal.rely.parentElement;for(;n;){const t=window.getComputedStyle(n),l=t.overflow+t.overflowX+t.overflowY;/auto|scroll|overlay/.test(l)&&o.push(n),n=n.parentElement}return o}isVisibleInScrollParents(){const o=this.elementModal.rely.getBoundingClientRect();for(const n of this.pageData.scrollParents){const t=n.getBoundingClientRect();if(!!(o.right<=t.left||o.left>=t.right||o.bottom<=t.top||o.top>=t.bottom))return!1}return!0}onScrollParentScroll(){if(!this.pageData.isOpen||!this.elementModal.tip)return;const o=this.isVisibleInScrollParents();this.elementModal.tip.style.opacity=o?"":"0",this.elementModal.tip.style.pointerEvents=o?"":"none"}hide(o){if(!this.pageData.isOpen||!document.body.contains(this.elementModal.tip))return;let n=!0;if(o.type==="mouseleave"){const t=o.relatedreference||o.toElement||o.relatedTarget;this.elementModal.tip.contains(t)&&(n=!1,this.elementModal.tip.addEventListener(o.type,this.listenerRelatedMouseLeave))}n&&this.operateHide()}listenerRelatedMouseLeave(o){const n=o.relatedreference||o.toElement||o.relatedTarget;this.elementModal.tip.removeEventListener(o.type,this.listenerRelatedMouseLeave),this.elementModal.rely.contains(n)||this.hide(o)}operateHide(){this.pageData.isOpen&&(this.pageData.isOpen=!1,s.isEmpty(this.pageData.scrollParents)||(this.pageData.scrollParents.forEach(o=>{o.removeEventListener("scroll",this.onScrollParentScroll)}),this.pageData.scrollParents=[]),this.pageObject.setOptions({modifiers:[{name:"eventListeners",enabled:!1}]}),this.elementModal.tip.className=ee.getRemoveClass(this.elementModal.tip.className,mn.show),this.elementModal.tip.removeEventListener("mouseenter",this.listenerHide),this.elementModal.tip.removeEventListener("click",this.listenerHide),this.elementModal.tip.parentNode.removeChild(this.elementModal.tip),this.elementModal.tip=null)}listenerHide(){this.operateHide()}setRunTrigger(o){this.optionModal.isRunTrigger=o}dispose(){this.pageData.events.forEach(({eventName:o,func:n})=>{this.elementModal.rely.removeEventListener(o,n)}),this.pageData.events=[],this.pageObject&&(this.operateHide(),this.pageObject.destroy())}clShow(){this.operateShow()}clHide(){this.operateHide()}clToggle(){this.pageData.isOpen?this.operateHide():this.operateShow()}clSetContentBody(o){this.setContentBody(o)}clSetContentHeader(o){this.setContentHeader(o)}clSetRunTrigger(o){this.setRunTrigger(o)}clSetInitShow(o){this.setInitShow(o)}clDispose(){this.dispose()}}const me={positions:{top:"top",topLeft:"top-start",topRight:"top-end",right:"right",rightTop:"right-start",rightBottom:"right-end",bottom:"bottom",bottomLeft:"bottom-start",bottomRight:"bottom-end",left:"left",leftTop:"left-start",leftBottom:"left-end"},triggers:["hover","click","focus"],themes:["white","black"],options:{position:"top",trigger:"hover",theme:"white",template:"<div class='tooltip'><div class='tooltip-inner'></div><div class='arrow' data-popper-arrow></div></div>",selectorBody:".tooltip-inner",selectorArrow:".arrow",isHtml:!0,isRunTrigger:!0,isFixedVisible:!1,isStopPropagation:!0,className:""},bind:(a,o)=>{me.create(a,o)},create:(a,o)=>{if(s.isObject(o)&&!s.isUndefined(o.value)&&me.getIsInit(o)){const t=me._getValueHtml(o.value);if(!s.isEmpty(t)){const l=me.getOptions();l.contentBody=t,l.placement=me.getPosition(o),l.trigger=me.getTrigger(o),l.theme=me.getTheme(o),l.isHtml=me.getIsHtml(o),l.isFixedVisible=me.getFixedVisible(o),l.isStopPropagation=me.getStopPropagation(o),l.className=me.getClassName(o);try{const i=new $s(a,l);i._vueEl=a,a._tooltip=i}catch{}}}},getIsInit:a=>s.isObject(a.value)&&s.isBoolean(a.value.init)?a.value.init:!0,getOptions:()=>s.getJsonClone(me.options),_getValueHtml:a=>{let o="";switch(s.getTypeof(a)){case"string":case"number":o=a.toString();break;case"object":s.isEmpty(a.html)||(o=a.html);break;default:o=""}return o},getPosition:a=>{let o=s.isObject(a.value)?a.value.position:"";if(s.isEmpty(o))for(const[n,t]of Object.entries(me.positions))a.modifiers[n]&&(o=t);else s.isExistJsonKey(me.positions,o)&&(o=me.positions[o]);return s.isEmpty(o)?me.options.position:o},getTrigger:a=>{let o=s.isObject(a.value)?a.value.trigger:"";return s.isEmpty(o)&&me.triggers.forEach(n=>{a.modifiers[n]&&(o=n)}),s.isEmpty(o)?me.options.trigger:o},getTheme:a=>{let o=s.isObject(a.value)?a.value.theme:"";return s.isEmpty(o)&&me.themes.forEach(n=>{a.modifiers[n]&&(o=n)}),s.isEmpty(o)?me.options.theme:o},getIsHtml:a=>{const o=s.isObject(a.value)?a.value.isHtml:!0;return s.isBoolean(o)?o:me.options.isHtml},getIsRunTrigger:a=>s.isObject(a)&&s.isBoolean(a.isRunTrigger)?a.isRunTrigger:!0,getFixedVisible:a=>{const o=s.isObject(a.value)?a.value.isFixedVisible:!1;return s.isBoolean(o)?o:me.options.isFixedVisible},getStopPropagation:a=>{const o=s.isObject(a.value)?a.value.isStopPropagation:!1;return s.isBoolean(o)?o:me.options.isStopPropagation},getClassName:a=>{const o=s.isObject(a.value)?a.value.className:"";return s.isEmpty(o)?me.options.className:o},update:(a,o)=>{const n=me.getIsInit(o);if(n){!a._tooltip&&n&&me.create(a,o);const t=me._getValueHtml(o.value),l=me._getValueHtml(o.oldValue),i=s.isObject(o.value);let r=!1;if(t!==l)r=!0;else if(i&&!s.isUndefined(o.value.updRefreshInx)){const c=o.value.updRefreshInx,u=o.oldValue.updRefreshInx;c!==u&&(r=!0)}if(a._tooltip){r&&a._tooltip.clSetContentBody(t),a._tooltip.clSetInitShow(n);const c=me.getIsRunTrigger(o.value),u=me.getIsRunTrigger(o.oldValue);(!c||!n)&&a._tooltip.clHide(),c!==u&&a._tooltip.clSetRunTrigger(c)}}else me.destroy(a)},destroy:a=>{a._tooltip&&(a._tooltip.clDispose(),delete a._tooltip)},show:a=>{a._tooltip&&a._tooltip.clShow()},hide:a=>{a._tooltip&&a._tooltip.clHide()}},lt={mounted:me.bind,updated:me.update},so={show:me.show,hide:me.hide},Ls=["id"],Fs={key:0,class:"cl-plaintext-value"},Vs=["id","name","value","disabled","checked","onClick"],Rs=["for"],Ps={key:0},Xo=e.defineComponent({name:"ClCheckbox",directives:{cltooltip:lt},__name:"Index",props:{id:String,name:{type:String,required:!0},value:{type:String,required:!0},className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},circle:{type:Boolean,default:!1},width:String,isInline:{type:Boolean,default:!0},tipMode:{type:String,default:"tooltip",validator:a=>["tooltip","clickCallback"].includes(a)},checkChangeBefore:{type:Function,default:void 0},isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:","}},emits:["update:value","update:modelValue","onChange","onInit","onError","onTipClick"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`checkbox-${s.getRandom(5)}`,r=s.isEmpty(t.name)?i+"_name":t.name,c=t.id,u=e.ref(s.split(t.value)),d=e.ref(!1);let m={};const p=e.ref(0),h={isProcessing:!1,_initEmitted:!1},f=e.computed(()=>t.isPlaintext?[]:t.list),y=e.computed(()=>{const b=s.isString(t.plaintextSeparator)?t.plaintextSeparator:",";t.list,p.value;const v=[];return u.value.forEach(E=>{const k=s.isExistJsonKey(m,E)?m[E]:void 0;k&&s.isNonEmptyString(k.name)&&v.push(k.name)}),v.join(b)}),x=e.computed(()=>s.getJsonMerge({"panel-checkbox":!0},ee.getClassNameJson(t.className))),N=e.computed(()=>{const b={checkbox:!0,"checkbox-default":!0};return b["checkbox-inline"]=t.isInline,b["checkbox-circle"]=t.circle,b}),M=b=>{const v={},{width:E}=t;return b&&!s.isEmpty(b.width)?v.width=b.width:s.isEmpty(E)||(v.width=t.width),v},S=b=>{l("update:value",b),l("update:modelValue",b)},C=b=>{const v=[];s.isEmpty(b)||s.split(b).forEach(k=>{s.isExistJsonKey(m,k)&&v.push(s.getJsonClone(m[k]))});const E=v.length>0&&v.length===(t.list?.length??0);S(b),l("onChange",b,v,E)},O=()=>{h._initEmitted||(h._initEmitted=!0,e.nextTick(()=>{l("onInit")}))},P=()=>{const b=[];return u.value.forEach(v=>{s.isExistJsonKey(m,v)&&b.push(v)}),b},B=b=>{m=s.isEmpty(b)?{}:s.getJsonByList(b),p.value+=1},F=()=>{if(d.value&&!s.isEmpty(u.value)){const b=P();s.isEqualArr(u.value,b)||(u.value=b,S(b.join(",")))}},L=b=>{const v=s.split(b);let E=s.isEqualArr(u.value,v);E&&(E=b===u.value.join(",")),E||(u.value=v)},I=()=>{d.value=(t.list?.length??0)!==0,B(t.list),F()};e.onMounted(()=>{e.nextTick(()=>{I()})}),e.watch(d,b=>{b&&O()}),e.watch(()=>t.list,b=>{d.value||(d.value=!0,b.length===0&&F(),O())}),e.watch([()=>t.value,()=>t.list],([b,v])=>{const E=v;!d.value&&E.length>0&&(d.value=!0,O()),B(E),L(b),F()});const z=b=>{l("onTipClick",b)},W=async b=>{if(!(!b||b.isDisabled||t.disabled||h.isProcessing)&&!s.isEmpty(b.id)){h.isProcessing=!0;try{const v=String(b.id??"");let E=s.getArrClone(u.value);s.isExistValue(u.value,v)?E=s.getArrRemoveById(E,v):E.push(v);const k=E.join(",");let T=!0;if(t.checkChangeBefore)try{T=await t.checkChangeBefore(k),T=s.isBoolean(T)?T:!0}catch{T=!1}if(t.disabled||b.isDisabled)return;T&&(u.value=E,C(k))}catch(v){l("onError",v)}finally{h.isProcessing=!1}}};return o({getValue:()=>P().join(","),getValueData:()=>{const b=[];return u.value.forEach(v=>{s.isExistJsonKey(m,v)&&b.push(s.getJsonClone(m[v]))}),b},setValue:b=>{h.isProcessing||(L(b),F())},runInitComplete:()=>{d.value||(d.value=!0,B(t.list),L(t.value),F(),O())}}),(b,v)=>{const E=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(x.value),id:e.unref(c)},[a.isPlaintext?(e.openBlock(),e.createElementBlock("div",Fs,e.toDisplayString(y.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(k,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${i}-${k.id??""}-${T}`},[k.isShow||k.isShow===void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(N.value),style:e.normalizeStyle(M(k))},[e.createElementVNode("span",null,[e.createElementVNode("span",null,[e.createElementVNode("input",{type:"checkbox",id:`${i}_${e.unref(r)}_${k.id??""}`,name:e.unref(r),value:k.id??"",disabled:k.isDisabled||a.disabled,checked:u.value.includes(String(k.id??"")),onClick:R=>W(k)},null,8,Vs),e.createElementVNode("label",{for:`${i}_${e.unref(r)}_${k.id??""}`},[e.renderSlot(b.$slots,"default",{data:k},()=>[k.icon&&k.icon.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("span",Ps,[e.createVNode(le,{name:k.icon},null,8,["name"])])),[[E,{html:k.name,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(k.name),1)],64))])],8,Rs)]),k.tipMsg&&k.tipMsg.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.tipMode==="tooltip"?e.withDirectives((e.openBlock(),e.createBlock(le,{key:0,name:e.unref(s).isNonEmptyString(k.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(k.tipIcon)?k.tipIcon:void 0,class:"checkbox-icon-tip"},null,8,["name","className"])),[[E,{html:k.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createBlock(le,{key:1,name:e.unref(s).isNonEmptyString(k.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(k.tipIcon)?k.tipIcon:void 0,class:"checkbox-icon-tip",onClick:e.withModifiers(R=>z(k),["stop"])},null,8,["name","className","onClick"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))),128))],10,Ls)}}}),zs=["id"],Hs=["id","name","checked","disabled"],Js=["for"],Us={key:0},Go=e.defineComponent({name:"ClCheckboxOne",directives:{cltooltip:lt},__name:"One",props:{id:{},name:{},value:{type:Boolean},className:{},forId:{},label:{},disabled:{type:Boolean},circle:{type:Boolean},indeterminate:{type:Boolean},icon:{},tipMsg:{},tipIcon:{},tipMode:{}},emits:{"update:value":a=>!0,"update:modelValue":a=>!0,onChange:a=>!0,onTipClick:()=>!0},setup(a,{emit:o}){const n=a,t=o,l=n.id,i=s.isEmpty(n.forId)?`cb_${n.name||""}_${s.getRandom(8)}`:n.forId,r=e.computed(()=>{const p={checkbox:!0,"checkbox-default":!0,"checkbox-inline":!0};return n.circle&&(p["checkbox-circle"]=!0),s.getJsonMerge(p,ee.getClassNameJson(n.className))}),c=e.computed(()=>({indeterminate:n.indeterminate})),u=(p,h)=>{t("update:value",h),t("update:modelValue",h),t("onChange",{event:p,value:h})},d=()=>{t("onTipClick")},m=p=>{u(p,p.currentTarget.checked)};return(p,h)=>{const f=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),id:e.unref(l)},[e.createElementVNode("span",null,[e.createElementVNode("span",null,[e.createElementVNode("input",{type:"checkbox",id:e.unref(i),name:a.name,class:e.normalizeClass(c.value),checked:a.value,disabled:a.disabled,onClick:m},null,10,Hs),e.createElementVNode("label",{for:e.unref(i)},[a.icon?e.withDirectives((e.openBlock(),e.createElementBlock("span",Us,[e.createVNode(le,{name:a.icon},null,8,["name"])])),[[f,{html:a.label,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.label),1)],64))],8,Js)]),a.tipMsg?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.tipMode==="tooltip"?e.withDirectives((e.openBlock(),e.createBlock(le,{key:0,name:e.unref(s).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"checkbox-icon-tip"},null,8,["name","className"])),[[f,{html:a.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createBlock(le,{key:1,name:e.unref(s).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"checkbox-icon-tip",onClick:e.withModifiers(d,["stop"])},null,8,["name","className"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],10,zs)}}}),js=()=>typeof window<"u";let qe=null;const Ks=()=>(qe||(qe=document.createElement("textarea"),qe.setAttribute("readonly",""),qe.style.position="fixed",qe.style.left="-9999px",qe.style.top="-9999px",qe.style.opacity="0",document.body.appendChild(qe)),qe),Ws=a=>typeof a=="function"?a():a,io=(a,o)=>{try{const n=Ks();n.value=a,n.select(),n.setSelectionRange(0,99999),document.execCommand("copy")?o.successCallback?.():o.errorCallback?.(a)}catch{o.errorCallback?.(a)}finally{window.getSelection()?.removeAllRanges()}},qs=a=>{const o=typeof a=="string"?{text:a}:a;if(!js()){o.errorCallback?.();return}let n;try{n=Ws(o.text)}catch{o.errorCallback?.();return}if(!n){o.errorCallback?.();return}if(navigator.clipboard?.writeText){navigator.clipboard.writeText(n).then(()=>o.successCallback?.()).catch(()=>io(n,o));return}io(n,o)},zn=()=>({copy:qs}),Ys=["id","onKeydown"],Xs={class:"clipboard-btn"},Gs={key:0,class:"clipboard-operate-result"},Hn=e.defineComponent({name:"ClClipboard",__name:"Index",props:{id:String,className:String,iconColorClass:String,isUseSuccess:{type:Boolean,default:!0},textLabel:{type:[String,Function],required:!0}},emits:{onCopySuccess:()=>!0,onCopyError:a=>!0},setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.reactive({isHover:!1,isShowSuccess:!1});let r=null,c=!1;const u=e.computed(()=>{let f={"panel-clipboard":!0};return f=s.getJsonMerge(f,ee.getClassNameJson(n.className)),f}),d=()=>{r=zn()};e.onMounted(()=>{e.nextTick(()=>{d()})});const m=()=>{if(c)return;let f="";const{textLabel:y}=n;if(y)switch(typeof y){case"function":try{f=y()}catch{f="",t("onCopyError","复制失败 textLabel()")}break;case"string":f=y;break;default:f="";break}s.isEmpty(f)||!r||(c=!0,r.copy({text:f,successCallback:()=>{i.isShowSuccess=!0,t("onCopySuccess"),c=!1},errorCallback:()=>{i.isShowSuccess=!1,t("onCopyError",f),c=!1}}))},p=()=>{i.isHover=!0},h=()=>{i.isShowSuccess=!1,i.isHover=!1};return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value),id:e.unref(l),tabindex:"0",role:"button","aria-label":"复制",onMouseenter:p,onMouseleave:h,onClick:e.withModifiers(m,["stop"]),onKeydown:[e.withKeys(e.withModifiers(m,["prevent"]),["enter"]),e.withKeys(e.withModifiers(m,["prevent"]),["space"])]},[e.createElementVNode("div",Xs,[e.renderSlot(f.$slots,"default",{},()=>[e.createVNode(le,{name:"copy",className:n.iconColorClass},null,8,["className"])])]),a.isUseSuccess&&i.isHover&&i.isShowSuccess?(e.openBlock(),e.createElementBlock("div",Gs,[e.createVNode(le,{name:"check1"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],42,Ys))}}),Jn=e.defineComponent({name:"ClTransitionSlideUpDown",__name:"SlideUpDown",setup(a){const o=e.reactive({oldPaddingTop:"",oldPaddingBottom:"",oldOverflow:""}),n=(d,m)=>{const p=function(){m(),d.removeEventListener("transitionend",p,!1),d.removeEventListener("transitioncancel",p,!1)};d.addEventListener("transitionend",p,!1),d.addEventListener("transitioncancel",p,!1)},t=d=>{const m=d;o.oldPaddingBottom=m.style.paddingBottom,o.oldPaddingTop=m.style.paddingTop,o.oldOverflow=m.style.overflow,m.style.paddingTop="0",m.style.paddingBottom="0",m.style.maxHeight="0"},l=(d,m)=>{const p=d,h=p.scrollHeight;if(h>0?p.style.maxHeight=h+"px":p.style.maxHeight="0",p.style.paddingTop=o.oldPaddingTop,p.style.paddingBottom=o.oldPaddingBottom,h===0&&!o.oldPaddingTop&&!o.oldPaddingBottom){m();return}p.style.overflow="hidden",n(d,m)},i=d=>{const m=d;m.style.maxHeight="",m.style.overflow=o.oldOverflow},r=d=>{const m=d;o.oldPaddingBottom=m.style.paddingBottom,o.oldPaddingTop=m.style.paddingTop,o.oldOverflow=m.style.overflow,m.style.maxHeight=m.scrollHeight+"px",m.style.overflow="hidden"},c=(d,m)=>{const p=d;if(p.scrollHeight!==0)p.style.maxHeight="0",p.style.paddingBottom="0",p.style.paddingTop="0";else{m();return}n(d,m)},u=d=>{const m=d;m.style.maxHeight="",m.style.overflow=o.oldOverflow,m.style.paddingBottom=o.oldPaddingBottom,m.style.paddingTop=o.oldPaddingTop,o.oldOverflow=o.oldPaddingBottom=o.oldPaddingTop=""};return(d,m)=>(e.openBlock(),e.createBlock(e.Transition,{name:"clSlideUpDown",onBeforeEnter:t,onEnter:l,onAfterEnter:i,onBeforeLeave:r,onLeave:c,onAfterLeave:u},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3}))}}),Qs=["id"],Zs=["tabindex","role","aria-expanded"],ei={class:"collapse-title"},ti=["tabindex","role","aria-expanded","aria-label","onKeydown"],ni={key:0,class:"collapse-body"},oi=300,ai=50,Qo=e.defineComponent({name:"ClCollapse",__name:"Index",props:{id:String,className:String,isOperate:{type:Boolean,default:!0},isExpanded:{type:Boolean,default:!0},isCollapseOnTitle:{type:Boolean,default:!1},isDestroyOnCollapse:{type:Boolean,default:!1}},emits:{onCollapse:a=>!0},setup(a,{emit:o}){const n=a,t=o,l=`collapse-${s.getRandom(8)}`,i=e.reactive({isExpanded:s.isBoolean(n.isExpanded)?n.isExpanded:!0,isAnimating:!1});let r=null;const c=oi+ai,u=e.computed(()=>s.isBoolean(n.isCollapseOnTitle)?n.isCollapseOnTitle:!1),d=e.computed(()=>s.isNonEmptyString(n.id)?n.id:l),m=e.computed(()=>s.getJsonMerge({"panel-collapse":!0},ee.getClassNameJson(n.className))),p=e.computed(()=>({"collapse-operate":!0,"icon-rotate":!0,"rotate-180":!i.isExpanded})),h=e.computed(()=>({"collapse-head":!0,"collapse-head-clickable":u.value})),f=()=>{r!==null&&(clearTimeout(r),r=null)};e.onUnmounted(()=>{f()}),e.watch(()=>n.isExpanded,M=>{const S=s.isBoolean(M)?M:!0;i.isExpanded!==S&&(f(),i.isAnimating=!1,i.isExpanded=S)});const y=()=>{i.isAnimating||(i.isAnimating=!0,i.isExpanded=!i.isExpanded,f(),r=setTimeout(()=>{r=null,i.isAnimating=!1},c),t("onCollapse",i.isExpanded))},x=M=>{if(!u.value)return;const S=M.target;S instanceof Element&&(S.closest(".collapse-operate")||(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),y()))},N=M=>{if(!u.value)return;const S=M.target;S instanceof Element&&(S.closest(".collapse-operate")||y())};return(M,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(m.value),id:d.value},[e.createElementVNode("div",{class:e.normalizeClass(h.value),tabindex:u.value?0:void 0,role:u.value?"button":void 0,"aria-expanded":u.value?i.isExpanded:void 0,onClick:N,onKeydown:x},[e.createElementVNode("div",ei,[e.renderSlot(M.$slots,"title")]),e.withDirectives(e.createElementVNode("i",{class:e.normalizeClass(p.value),tabindex:u.value?-1:0,role:u.value?void 0:"button","aria-expanded":u.value?void 0:i.isExpanded,"aria-label":u.value?void 0:i.isExpanded?"折叠":"展开",onClick:y,onKeydown:[e.withKeys(e.withModifiers(y,["prevent"]),["enter"]),e.withKeys(e.withModifiers(y,["prevent"]),["space"])]},[e.createVNode(le,{name:"angle-down"})],42,ti),[[e.vShow,e.unref(s).isBoolean(a.isOperate)?a.isOperate:!0]])],42,Zs),e.createVNode(Jn,null,{default:e.withCtx(()=>[!a.isDestroyOnCollapse||i.isExpanded?e.withDirectives((e.openBlock(),e.createElementBlock("div",ni,[e.renderSlot(M.$slots,"default")],512)),[[e.vShow,i.isExpanded]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),_:3})],10,Qs))}}),li=["id"],si={key:1,class:"countdown-num"},ro=864e5,co=36e5,uo=6e4,ii=100,ri=1e3,Zo=e.defineComponent({name:"ClCountDown",__name:"Index",props:{id:String,className:String,time:{type:Number,default:0},format:{type:String,default:"HH:mm:ss"},isAutoStart:{type:Boolean,default:!0},isMillisecond:{type:Boolean,default:!1}},emits:["onChange","onFinish"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`countdown-${s.getRandom(5)}`,r=t.id,c=e.ref(0);let u=null,d=0,m=!1;const p=e.computed(()=>t.isMillisecond?ii:ri),h=e.computed(()=>{const L=Math.max(0,c.value),I=Math.floor(L/ro),z=Math.floor(L%ro/co),W=Math.floor(L%co/uo),U=Math.floor(L%uo/1e3),D=L%1e3,g={DD:String(I).padStart(2,"0"),HH:String(z).padStart(2,"0"),mm:String(W).padStart(2,"0"),ss:String(U).padStart(2,"0"),SSS:String(D).padStart(3,"0")},w=[],b=t.isMillisecond?/(DD|HH|mm|ss|SSS)/g:/(DD|HH|mm|ss)/g;let v=0,E;for(;(E=b.exec(t.format))!==null;){if(E.index>v){const k=t.format.slice(v,E.index);w.push({type:y(k)?"sep":"text",value:k})}w.push({type:"num",value:g[E[0]]||E[0]}),v=E.index+E[0].length}if(v<t.format.length){const k=t.format.slice(v);w.push({type:y(k)?"sep":"text",value:k})}return w}),f=e.computed(()=>{const L={"panel-count-down":!0};return s.getJsonMerge(L,ee.getClassNameJson(t.className))}),y=L=>{const I=L.trim();return I?/^[\p{P}\p{S}]+$/u.test(I):!1},x=()=>{const L=Number(t.time);return s.isFinite(L)&&L>0?L:0},N=L=>{c.value=Math.max(0,L),d=Date.now()+Math.max(0,L),m=!0,C(),u=setInterval(C,p.value)},M=()=>{if(m)return;const L=x();if(L<=0){c.value=0,l("onFinish");return}N(L)},S=()=>{if(!m){if(c.value<=0){M();return}N(c.value)}},C=()=>{const L=Math.max(0,d-Date.now());c.value=L,l("onChange",L),L<=0&&(O(),l("onFinish"))},O=()=>{u&&(clearInterval(u),u=null),m=!1};return e.onMounted(()=>{t.isAutoStart?M():c.value=x()}),e.onBeforeUnmount(()=>{O()}),e.watch(()=>t.time,()=>{O(),c.value=x(),t.isAutoStart&&c.value>0&&N(c.value)}),e.watch(()=>t.isAutoStart,L=>{L&&!m&&c.value>0&&N(c.value)}),e.watch(p,()=>{m&&(u&&clearInterval(u),u=setInterval(C,p.value))}),o({start:()=>{S()},pause:()=>{O()},reset:()=>{O(),c.value=x()}}),(L,I)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(r),class:e.normalizeClass(f.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(z,W)=>(e.openBlock(),e.createElementBlock("span",{key:`${i}-${W}`,class:e.normalizeClass(["countdown-part",{"countdown-sep":z.type==="sep"}])},[z.type!=="num"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(z.value),1)],64)):(e.openBlock(),e.createElementBlock("span",si,e.toDisplayString(z.value),1))],2))),128))],10,li))}});/**!
|
|
3
|
-
* Sortable 1.15.0
|
|
4
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
5
|
-
* @author owenm <owen23355@gmail.com>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/function mo(a,o){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);o&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),n.push.apply(n,t)}return n}function Ke(a){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?mo(Object(n),!0).forEach(function(t){ci(a,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(n,t))})}return a}function Kt(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kt=function(o){return typeof o}:Kt=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Kt(a)}function ci(a,o,n){return o in a?Object.defineProperty(a,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[o]=n,a}function Ge(){return Ge=Object.assign||function(a){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(a[t]=n[t])}return a},Ge.apply(this,arguments)}function ui(a,o){if(a==null)return{};var n={},t=Object.keys(a),l,i;for(i=0;i<t.length;i++)l=t[i],!(o.indexOf(l)>=0)&&(n[l]=a[l]);return n}function di(a,o){if(a==null)return{};var n=ui(a,o),t,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);for(l=0;l<i.length;l++)t=i[l],!(o.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(a,t)&&(n[t]=a[t])}return n}var mi="1.15.0";function Xe(a){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(a)}var Qe=Xe(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),$t=Xe(/Edge/i),po=Xe(/firefox/i),Dt=Xe(/safari/i)&&!Xe(/chrome/i)&&!Xe(/android/i),ea=Xe(/iP(ad|od|hone)/i),ta=Xe(/chrome/i)&&Xe(/android/i),na={capture:!1,passive:!1};function ke(a,o,n){a.addEventListener(o,n,!Qe&&na)}function ge(a,o,n){a.removeEventListener(o,n,!Qe&&na)}function en(a,o){if(o){if(o[0]===">"&&(o=o.substring(1)),a)try{if(a.matches)return a.matches(o);if(a.msMatchesSelector)return a.msMatchesSelector(o);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(o)}catch{return!1}return!1}}function pi(a){return a.host&&a!==document&&a.host.nodeType?a.host:a.parentNode}function je(a,o,n,t){if(a){n=n||document;do{if(o!=null&&(o[0]===">"?a.parentNode===n&&en(a,o):en(a,o))||t&&a===n)return a;if(a===n)break}while(a=pi(a))}return null}var fo=/\s+/g;function Fe(a,o,n){if(a&&o)if(a.classList)a.classList[n?"add":"remove"](o);else{var t=(" "+a.className+" ").replace(fo," ").replace(" "+o+" "," ");a.className=(t+(n?" "+o:"")).replace(fo," ")}}function ue(a,o,n){var t=a&&a.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(a,""):a.currentStyle&&(n=a.currentStyle),o===void 0?n:n[o];!(o in t)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),t[o]=n+(typeof n=="string"?"":"px")}}function yt(a,o){var n="";if(typeof a=="string")n=a;else do{var t=ue(a,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!o&&(a=a.parentNode));var l=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return l&&new l(n)}function oa(a,o,n){if(a){var t=a.getElementsByTagName(o),l=0,i=t.length;if(n)for(;l<i;l++)n(t[l],l);return t}return[]}function Pe(){var a=document.scrollingElement;return a||document.documentElement}function Ne(a,o,n,t,l){if(!(!a.getBoundingClientRect&&a!==window)){var i,r,c,u,d,m,p;if(a!==window&&a.parentNode&&a!==Pe())i=a.getBoundingClientRect(),r=i.top,c=i.left,u=i.bottom,d=i.right,m=i.height,p=i.width;else{var h=document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth,f=document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight;r=0,c=0,u=f,d=h,m=f,p=h}if((o||n)&&a!==window&&(l=l||a.parentNode,!Qe))do if(l&&l.getBoundingClientRect&&(ue(l,"transform")!=="none"||n&&ue(l,"position")!=="static")){var y=l.getBoundingClientRect();r-=y.top+parseInt(ue(l,"border-top-width")),c-=y.left+parseInt(ue(l,"border-left-width")),u=r+i.height,d=c+i.width;break}while(l=l.parentNode);if(t&&a!==window){var x=yt(l||a),N=x&&x.a,M=x&&x.d;x&&(r/=M,c/=N,p/=N,m/=M,u=r+m,d=c+p)}return{top:r,left:c,bottom:u,right:d,width:p,height:m}}}function go(a,o,n){for(var t=nt(a,!0),l=Ne(a)[o];t;){var i=Ne(t)[n],r=void 0;if(r=l>=i,!r)return t;if(t===Pe())break;t=nt(t,!1)}return!1}function kt(a,o,n,t){for(var l=0,i=0,r=a.children;i<r.length;){if(r[i].style.display!=="none"&&r[i]!==ie.ghostClone&&(t||r[i]!==ie.dragged)&&je(r[i],n.draggable,a,!1)){if(l===o)return r[i];l++}i++}return null}function Un(a,o){for(var n=a.lastElementChild;n&&(n===ie.ghostClone||ue(n,"display")==="none"||o&&!en(n,o));)n=n.previousElementSibling;return n||null}function Re(a,o){var n=0;if(!a||!a.parentNode)return-1;for(;a=a.previousElementSibling;)a.nodeName.toUpperCase()!=="TEMPLATE"&&a!==ie.clone&&(!o||en(a,o))&&n++;return n}function ho(a){var o=0,n=0,t=Pe();if(a)do{var l=yt(a),i=l.a,r=l.d;o+=a.scrollLeft*i,n+=a.scrollTop*r}while(a!==t&&(a=a.parentNode));return[o,n]}function fi(a,o){for(var n in a)if(a.hasOwnProperty(n)){for(var t in o)if(o.hasOwnProperty(t)&&o[t]===a[n][t])return Number(n)}return-1}function nt(a,o){if(!a||!a.getBoundingClientRect)return Pe();var n=a,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var l=ue(n);if(n.clientWidth<n.scrollWidth&&(l.overflowX=="auto"||l.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(l.overflowY=="auto"||l.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Pe();if(t||o)return n;t=!0}}while(n=n.parentNode);return Pe()}function gi(a,o){if(a&&o)for(var n in o)o.hasOwnProperty(n)&&(a[n]=o[n]);return a}function pn(a,o){return Math.round(a.top)===Math.round(o.top)&&Math.round(a.left)===Math.round(o.left)&&Math.round(a.height)===Math.round(o.height)&&Math.round(a.width)===Math.round(o.width)}var It;function aa(a,o){return function(){if(!It){var n=arguments,t=this;n.length===1?a.call(t,n[0]):a.apply(t,n),It=setTimeout(function(){It=void 0},o)}}}function hi(){clearTimeout(It),It=void 0}function la(a,o,n){a.scrollLeft+=o,a.scrollTop+=n}function sa(a){var o=window.Polymer,n=window.jQuery||window.Zepto;return o&&o.dom?o.dom(a).cloneNode(!0):n?n(a).clone(!0)[0]:a.cloneNode(!0)}var Ie="Sortable"+new Date().getTime();function vi(){var a=[],o;return{captureAnimationState:function(){if(a=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(l){if(!(ue(l,"display")==="none"||l===ie.ghostClone)){a.push({target:l,rect:Ne(l)});var i=Ke({},a[a.length-1].rect);if(l.thisAnimationDuration){var r=yt(l,!0);r&&(i.top-=r.f,i.left-=r.e)}l.fromRect=i}})}},addAnimationState:function(t){a.push(t)},removeAnimationState:function(t){a.splice(fi(a,{target:t}),1)},animateAll:function(t){var l=this;if(!this.options.animation){clearTimeout(o),typeof t=="function"&&t();return}var i=!1,r=0;a.forEach(function(c){var u=0,d=c.target,m=d.fromRect,p=Ne(d),h=d.prevFromRect,f=d.prevToRect,y=c.rect,x=yt(d,!0);x&&(p.top-=x.f,p.left-=x.e),d.toRect=p,d.thisAnimationDuration&&pn(h,p)&&!pn(m,p)&&(y.top-p.top)/(y.left-p.left)===(m.top-p.top)/(m.left-p.left)&&(u=ki(y,h,f,l.options)),pn(p,m)||(d.prevFromRect=m,d.prevToRect=p,u||(u=l.options.animation),l.animate(d,y,p,u)),u&&(i=!0,r=Math.max(r,u),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},u),d.thisAnimationDuration=u)}),clearTimeout(o),i?o=setTimeout(function(){typeof t=="function"&&t()},r):typeof t=="function"&&t(),a=[]},animate:function(t,l,i,r){if(r){ue(t,"transition",""),ue(t,"transform","");var c=yt(this.el),u=c&&c.a,d=c&&c.d,m=(l.left-i.left)/(u||1),p=(l.top-i.top)/(d||1);t.animatingX=!!m,t.animatingY=!!p,ue(t,"transform","translate3d("+m+"px,"+p+"px,0)"),this.forRepaintDummy=yi(t),ue(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),ue(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){ue(t,"transition",""),ue(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},r)}}}}function yi(a){return a.offsetWidth}function ki(a,o,n,t){return Math.sqrt(Math.pow(o.top-a.top,2)+Math.pow(o.left-a.left,2))/Math.sqrt(Math.pow(o.top-n.top,2)+Math.pow(o.left-n.left,2))*t.animation}var dt=[],fn={initializeByDefault:!0},Lt={mount:function(o){for(var n in fn)fn.hasOwnProperty(n)&&!(n in o)&&(o[n]=fn[n]);dt.forEach(function(t){if(t.pluginName===o.pluginName)throw"Sortable: Cannot mount plugin ".concat(o.pluginName," more than once")}),dt.push(o)},pluginEvent:function(o,n,t){var l=this;this.eventCanceled=!1,t.cancel=function(){l.eventCanceled=!0};var i=o+"Global";dt.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][i]&&n[r.pluginName][i](Ke({sortable:n},t)),n.options[r.pluginName]&&n[r.pluginName][o]&&n[r.pluginName][o](Ke({sortable:n},t)))})},initializePlugins:function(o,n,t,l){dt.forEach(function(c){var u=c.pluginName;if(!(!o.options[u]&&!c.initializeByDefault)){var d=new c(o,n,o.options);d.sortable=o,d.options=o.options,o[u]=d,Ge(t,d.defaults)}});for(var i in o.options)if(o.options.hasOwnProperty(i)){var r=this.modifyOption(o,i,o.options[i]);typeof r<"u"&&(o.options[i]=r)}},getEventProperties:function(o,n){var t={};return dt.forEach(function(l){typeof l.eventProperties=="function"&&Ge(t,l.eventProperties.call(n[l.pluginName],o))}),t},modifyOption:function(o,n,t){var l;return dt.forEach(function(i){o[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(l=i.optionListeners[n].call(o[i.pluginName],t))}),l}};function bi(a){var o=a.sortable,n=a.rootEl,t=a.name,l=a.targetEl,i=a.cloneEl,r=a.toEl,c=a.fromEl,u=a.oldIndex,d=a.newIndex,m=a.oldDraggableIndex,p=a.newDraggableIndex,h=a.originalEvent,f=a.putSortable,y=a.extraEventProperties;if(o=o||n&&n[Ie],!!o){var x,N=o.options,M="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Qe&&!$t?x=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(x=document.createEvent("Event"),x.initEvent(t,!0,!0)),x.to=r||n,x.from=c||n,x.item=l||n,x.clone=i,x.oldIndex=u,x.newIndex=d,x.oldDraggableIndex=m,x.newDraggableIndex=p,x.originalEvent=h,x.pullMode=f?f.lastPutMode:void 0;var S=Ke(Ke({},y),Lt.getEventProperties(t,o));for(var C in S)x[C]=S[C];n&&n.dispatchEvent(x),N[M]&&N[M].call(o,x)}}var Ci=["evt"],$e=function(o,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=t.evt,i=di(t,Ci);Lt.pluginEvent.bind(ie)(o,n,Ke({dragEl:te,parentEl:_e,ghostEl:ce,rootEl:Ce,nextEl:it,lastDownEl:Wt,cloneEl:Ee,cloneHidden:tt,dragStarted:xt,putSortable:De,activeSortable:ie.active,originalEvent:l,oldIndex:vt,oldDraggableIndex:At,newIndex:Ve,newDraggableIndex:et,hideGhostForTarget:ua,unhideGhostForTarget:da,cloneNowHidden:function(){tt=!0},cloneNowShown:function(){tt=!1},dispatchSortableEvent:function(c){Me({sortable:n,name:c,originalEvent:l})}},i))};function Me(a){bi(Ke({putSortable:De,cloneEl:Ee,targetEl:te,rootEl:Ce,oldIndex:vt,oldDraggableIndex:At,newIndex:Ve,newDraggableIndex:et},a))}var te,gt,_e,ce,wt,Et,Ce,it,Wt,Ee,tt,vt,Ve,At,et,mt,De,ht=!1,tn=!1,nn=[],He,Je,gn,hn,vo,yo,xt,pt,Mt,Ot=!1,Vt=!1,qt,Se,vn=[],On=!1,on=[],_t=null,Ue=null,yn=null,Ye=null,un=typeof document<"u",ft=ea,ko=$t||Qe?"cssFloat":"float",Si=un&&!ta&&!ea&&"draggable"in document.createElement("div"),ia=(function(){if(un){if(Qe)return!1;var a=document.createElement("x");return a.style.cssText="pointer-events:auto",a.style.pointerEvents==="auto"}})(),ra=function(o,n){var t=ue(o),l=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=kt(o,0,n),r=kt(o,1,n),c=i&&ue(i),u=r&&ue(r),d=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Ne(i).width,m=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Ne(r).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&c.float&&c.float!=="none"){var p=c.float==="left"?"left":"right";return r&&(u.clear==="both"||u.clear===p)?"vertical":"horizontal"}return i&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||d>=l&&t[ko]==="none"||r&&t[ko]==="none"&&d+m>l)?"vertical":"horizontal"},Ei=function(o,n,t){var l=t?o.left:o.top,i=t?o.right:o.bottom,r=t?o.width:o.height,c=t?n.left:n.top,u=t?n.right:n.bottom,d=t?n.width:n.height;return l===c||i===u||l+r/2===c+d/2},_i=function(o,n){var t;return nn.some(function(l){var i=l[Ie].options.emptyInsertThreshold;if(!(!i||Un(l))){var r=Ne(l),c=o>=r.left-i&&o<=r.right+i,u=n>=r.top-i&&n<=r.bottom+i;if(c&&u)return t=l}}),t},ca=function(o){function n(i,r){return function(c,u,d,m){var p=c.options.group.name&&u.options.group.name&&c.options.group.name===u.options.group.name;if(i==null&&(r||p))return!0;if(i==null||i===!1)return!1;if(r&&i==="clone")return i;if(typeof i=="function")return n(i(c,u,d,m),r)(c,u,d,m);var h=(r?c:u).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var t={},l=o.group;(!l||Kt(l)!="object")&&(l={name:l}),t.name=l.name,t.checkPull=n(l.pull,!0),t.checkPut=n(l.put),t.revertClone=l.revertClone,o.group=t},ua=function(){!ia&&ce&&ue(ce,"display","none")},da=function(){!ia&&ce&&ue(ce,"display","")};un&&!ta&&document.addEventListener("click",function(a){if(tn)return a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.stopImmediatePropagation&&a.stopImmediatePropagation(),tn=!1,!1},!0);var st=function(o){if(te){o=o.touches?o.touches[0]:o;var n=_i(o.clientX,o.clientY);if(n){var t={};for(var l in o)o.hasOwnProperty(l)&&(t[l]=o[l]);t.clientX=o.clientX,t.clientY=o.clientY,t.pageX=o.pageX!==void 0?o.pageX:o.clientX,t.pageY=o.pageY!==void 0?o.pageY:o.clientY,t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[Ie]._onDragOver(t)}}},Bi=function(o){if(te){var n=ne._findOwnerSortable(te.parentNode);n&&n._isOutsideThisEl(o.target)}};function ie(a,o){if(!(a&&a.nodeType&&a.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(a));this.el=a,this.options=o=Ge({},o),a[Ie]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(a.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ra(a,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,c){r.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ie.supportPointer!==!1&&"PointerEvent"in window&&!Dt,emptyInsertThreshold:5,extOption:{boundary:{isOut:!1,element:"",x:0,y:0},wrapBody:{isWrap:!1,element:""},cross:{isCross:!1,isSameStruct:!0,dropEndBeforeCallback:null},tree:{isTree:!1,maxDepth:3,indentThreshold:20,isOnlyInnerMove:!1,isDragToChild:!0,isDragToParent:!0,rootId:"",regionCls:".darg-region"}}};Lt.initializePlugins(this,a,n);for(var t in n)!(t in o)&&(o[t]=n[t]);ca(o);for(var l in this)l.charAt(0)==="_"&&typeof this[l]=="function"&&(this[l]=this[l].bind(this));this.nativeDraggable=o.forceFallback?!1:Si,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?ke(a,"pointerdown",this._onTapStart):(ke(a,"mousedown",this._onTapStart),ke(a,"touchstart",this._onTapStart)),this.nativeDraggable&&(ke(a,"dragover",this),ke(a,"dragenter",this)),nn.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),Ge(this,vi())}ie.prototype={constructor:ie,_isOutsideThisEl:function(o){!this.el.contains(o)&&o!==this.el&&(pt=null)},_getDirection:function(o,n){return typeof this.options.direction=="function"?this.options.direction.call(this,o,n,te):this.options.direction},_onTapStart:function(o){if(o.cancelable){var n=this,t=this.el,l=this.options,i=l.preventOnFilter,r=o.type,c=o.touches&&o.touches[0]||o.pointerType&&o.pointerType==="touch"&&o,u=(c||o).target,d=o.target.shadowRoot&&(o.path&&o.path[0]||o.composedPath&&o.composedPath()[0])||u,m=l.filter;if(Mi(t),!te&&!(/mousedown|pointerdown/.test(r)&&o.button!==0||l.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Dt&&u&&u.tagName.toUpperCase()==="SELECT")){var p=t;if(ne.isTreeMode(l)){var h=ne._treeRegionCls(l),f=ne.getOwnerRegion(u,h);f&&(p=f)}if(u=je(u,l.draggable,p,!1),!(u&&u.animated)&&Wt!==u){if(vt=Re(u),At=Re(u,l.draggable),typeof m=="function"){if(m.call(this,o,u,this)){Me({sortable:n,rootEl:d,name:"filter",targetEl:u,toEl:t,fromEl:t}),$e("filter",n,{evt:o}),i&&o.cancelable&&o.preventDefault();return}}else if(m&&(m=m.split(",").some(function(y){if(y=je(d,y.trim(),t,!1),y)return Me({sortable:n,rootEl:y,name:"filter",targetEl:u,fromEl:t,toEl:t}),$e("filter",n,{evt:o}),!0}),m)){i&&o.cancelable&&o.preventDefault();return}l.handle&&!je(d,l.handle,t,!1)||this._prepareDragStart(o,c,u)}}}},_prepareDragStart:function(o,n,t){var l=this,i=l.el,r=l.options,c=i.ownerDocument,u,d=!!(r.extOption&&r.extOption.tree&&r.extOption.tree.isTree),m=!1;if(t&&!te){if(t.parentNode===i)m=!0;else if(d&&i.contains(t)){var p=ne.findNearestTreeRoot(t,i);m=p===i}}if(m){var h=Ne(t);if(Ce=i,te=t,_e=te.parentNode,it=te.nextSibling,Wt=t,mt=r.group,ie.dragged=te,He={target:te,clientX:(n||o).clientX,clientY:(n||o).clientY},vo=He.clientX-h.left,yo=He.clientY-h.top,this._lastX=(n||o).clientX,this._lastY=(n||o).clientY,ne.isTreeMode(r)){var f=n||o;ne._tree.startPageX=f.pageX!==void 0?f.pageX:f.clientX,ne._tree.dropInfo=null,ne._tree.startDragDepth=ne.getNodeDepth(te,ne._treeRegionCls(r));var y=window.pageXOffset||document.documentElement.scrollLeft||0;ne._tree.startLeftPage=te.getBoundingClientRect().left+y}if(te.style["will-change"]="transform",u=function(){if($e("delayEnded",l,{evt:o}),ie.eventCanceled){l._onDrop();return}l._disableDelayedDragEvents(),!po&&l.nativeDraggable&&(te.draggable=!0),l._triggerDragStart(o,n),Me({sortable:l,name:"choose",originalEvent:o}),Fe(te,r.chosenClass,!0)},r.ignore.split(",").forEach(function(x){oa(te,x.trim(),kn)}),ke(c,"dragover",st),ke(c,"mousemove",st),ke(c,"touchmove",st),ke(c,"mouseup",l._onDrop),ke(c,"touchend",l._onDrop),ke(c,"touchcancel",l._onDrop),po&&this.nativeDraggable&&(this.options.touchStartThreshold=4,te.draggable=!0),$e("delayStart",this,{evt:o}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!($t||Qe))){if(ie.eventCanceled){this._onDrop();return}ke(c,"mouseup",l._disableDelayedDrag),ke(c,"touchend",l._disableDelayedDrag),ke(c,"touchcancel",l._disableDelayedDrag),ke(c,"mousemove",l._delayedDragTouchMoveHandler),ke(c,"touchmove",l._delayedDragTouchMoveHandler),r.supportPointer&&ke(c,"pointermove",l._delayedDragTouchMoveHandler),l._dragStartTimer=setTimeout(u,r.delay)}else u()}},_delayedDragTouchMoveHandler:function(o){var n=o.touches?o.touches[0]:o;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){te&&kn(te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var o=this.el.ownerDocument;ge(o,"mouseup",this._disableDelayedDrag),ge(o,"touchend",this._disableDelayedDrag),ge(o,"touchcancel",this._disableDelayedDrag),ge(o,"mousemove",this._delayedDragTouchMoveHandler),ge(o,"touchmove",this._delayedDragTouchMoveHandler),ge(o,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(o,n){n=n||o.pointerType=="touch"&&o,!this.nativeDraggable||n?this.options.supportPointer?ke(document,"pointermove",this._onTouchMove):n?ke(document,"touchmove",this._onTouchMove):ke(document,"mousemove",this._onTouchMove):(ke(te,"dragend",this),ke(Ce,"dragstart",this._onDragStart));try{document.selection?Yt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(o,n){if(ht=!1,Ce&&te){$e("dragStarted",this,{evt:n}),this.nativeDraggable&&ke(document,"dragover",Bi);var t=this.options;!o&&Fe(te,t.dragClass,!1),Fe(te,t.ghostClass,!0),ie.active=this,o&&this._appendGhost(),Me({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Je){this._lastX=Je.clientX,this._lastY=Je.clientY,ua();for(var o=document.elementFromPoint(Je.clientX,Je.clientY),n=o;o&&o.shadowRoot&&(o=o.shadowRoot.elementFromPoint(Je.clientX,Je.clientY),o!==n);)n=o;var t=ne._findOwnerSortable(te.parentNode);if(t&&t._isOutsideThisEl(o),n)do{if(n[Ie]){var l=void 0;if(l=n[Ie]._onDragOver({clientX:Je.clientX,clientY:Je.clientY,target:o,rootEl:n}),l&&!this.options.dragoverBubble)break}o=n}while(n=n.parentNode);da()}},_onTouchMove:function(o){if(He){var n=this.options,t=n.fallbackTolerance,l=n.fallbackOffset,i=o.touches?o.touches[0]:o,r=ce&&(yn||(yn=yt(ce,!0))),c=ce&&r&&r.a,u=ce&&r&&r.d,d,m=ft&&Se?Pe():null,p,h;if(ft&&Se&&(Ye&&Ye.el===Se&&Ye.scrollLeft===Se.scrollLeft&&Ye.scrollTop===Se.scrollTop&&Ye.winTop===m.scrollTop&&Ye.winLeft===m.scrollLeft?d=Ye.offset:(d=ho(Se),Ye={el:Se,scrollLeft:Se.scrollLeft,scrollTop:Se.scrollTop,winTop:m.scrollTop,winLeft:m.scrollLeft,offset:d})),p=(i.clientX-He.clientX+l.x)/(c||1)+(d?d[0]-vn[0]:0)/(c||1),h=(i.clientY-He.clientY+l.y)/(u||1)+(d?d[1]-vn[1]:0)/(u||1),!ie.active&&!ht){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(o,!0)}if(ce){r?(r.e+=p-(gn||0),r.f+=h-(hn||0)):r={a:1,b:0,c:0,d:1,e:p,f:h};var f="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");ue(ce,"transform",f),gn=p,hn=h,Je=i;const N=ne.checkMoveOutBoundary(ce,this.el,this.options);if(N.isOut){var y=0;ft||(_t==null&&(_t=Pe().scrollTop),y=Pe().scrollTop-_t),Et?(r.e=Et.e,r.f=Et.f-y):(N.top&&(r.f=N.x*-1-y),N.right&&(r.e=N.y),N.bottom&&(r.f=N.x-y),N.left&&(r.e=N.y*-1));var x="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");ue(ce,"transform",x)}else _t=null,Et={a:r.a,b:r.b,c:r.c,d:r.d,e:r.e,f:r.f}}o.cancelable&&o.preventDefault()}},_appendGhost:function(){if(!ce){var o=this.options.fallbackOnBody?document.body:Ce,n=Ne(te,!0,ft,!0,o),t=this.options;if(ft){for(Se=o;ue(Se,"position")==="static"&&ue(Se,"transform")==="none"&&Se!==document;)Se=Se.parentNode;Se!==document.body&&Se!==document.documentElement?(Se===document&&(Se=Pe()),n.top+=Se.scrollTop,n.left+=Se.scrollLeft):Se=Pe(),vn=ho(Se)}wt=te.cloneNode(!0),ce=te.cloneNode(!0),ce=ne.setWrapBody(ce,this.el,this.options),Fe(ce,t.ghostClass,!1),Fe(ce,t.fallbackClass,!0),Fe(ce,t.dragClass,!0),ue(ce,"transition",""),ue(ce,"transform",""),ue(ce,"box-sizing","border-box"),ue(ce,"margin",0),ue(ce,"top",n.top),ue(ce,"left",n.left),ue(ce,"width",n.width),ue(ce,"height",n.height),ue(ce,"opacity","0.8"),ue(ce,"position",ft?"absolute":"fixed"),ue(ce,"zIndex","100000"),ue(ce,"pointerEvents","none"),ie.ghost=ce,ie.ghostClone=wt,o.appendChild(ce),ue(ce,"transform-origin",vo/parseInt(ce.style.width)*100+"% "+yo/parseInt(ce.style.height)*100+"%")}},_onDragStart:function(o,n){var t=this,l=o.dataTransfer,i=t.options;if($e("dragStart",this,{evt:o}),ie.eventCanceled){this._onDrop();return}$e("setupClone",this),ie.eventCanceled||(Ee=sa(te),Ee.removeAttribute("id"),Ee.draggable=!1,Ee.style["will-change"]="",this._hideClone(),Fe(Ee,this.options.chosenClass,!1),ie.clone=Ee),t.cloneId=Yt(function(){$e("clone",t),!ie.eventCanceled&&(t.options.removeCloneOnHide||Ce.insertBefore(Ee,te),t._hideClone(),Me({sortable:t,name:"clone"}))}),!n&&Fe(te,i.dragClass,!0),n?(tn=!0,t._loopId=setInterval(t._emulateDragOver,50)):(ge(document,"mouseup",t._onDrop),ge(document,"touchend",t._onDrop),ge(document,"touchcancel",t._onDrop),l&&(l.effectAllowed="move",i.setData&&i.setData.call(t,l,te)),ke(document,"drop",t),ue(te,"transform","translateZ(0)")),ht=!0,t._dragStartId=Yt(t._dragStarted.bind(t,n,o)),ke(document,"selectstart",t),xt=!0,Dt&&ue(document.body,"user-select","none")},_onDragOver:function(o){var n=this.el,t=o.target,l,i,r,c=this.options,u=c.group,d=ie.active,m=mt===u,p=c.sort,h=De||d,f,y=this,x=!1;if(On)return;if(ne.isTreeMode(c)){var N=m;if(!N&&u&&mt){var M=!!u.name&&u.name===mt.name;M&&(N=typeof u.checkPut=="function"?!!u.checkPut(this,d,te,o):!0)}if(!N){ne._tree.dropInfo={isReject:!0,reason:"out-of-group"},ne.renderTreeIndicator(this,o),o.cancelable&&o.preventDefault();return}ne.treeDragOver(this,o,t),ne.renderTreeIndicator(this,o),o.cancelable&&o.preventDefault();return}function S(T,R){$e(T,y,Ke({evt:o,isOwner:m,axis:f?"vertical":"horizontal",revert:r,dragRect:l,targetRect:i,canSort:p,fromSortable:h,target:t,completed:O,onMove:function(H,V){return Rt(Ce,n,te,l,H,Ne(H),o,V)},changed:P},R))}function C(){S("dragOverAnimationCapture"),y.captureAnimationState(),y!==h&&h.captureAnimationState()}function O(T){if(S("dragOverCompleted",{insertion:T}),T&&(m?d._hideClone():d._showClone(y),y!==h&&(Fe(te,De?De.options.ghostClass:d.options.ghostClass,!1),Fe(te,c.ghostClass,!0)),De!==y&&y!==ie.active?De=y:y===ie.active&&De&&(De=null),h===y&&(y._ignoreWhileAnimating=t),y.animateAll(function(){S("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(t===te&&!te.animated||t===n&&!t.animated)&&(pt=null),!c.dragoverBubble&&!o.rootEl&&t!==document){var R=ne._findOwnerSortable(te.parentNode);R&&R._isOutsideThisEl(o.target),!T&&st(o)}return!c.dragoverBubble&&o.stopPropagation&&o.stopPropagation(),x=!0}function P(){Ve=Re(te),et=Re(te,c.draggable),Me({sortable:y,name:"change",toEl:n,newIndex:Ve,newDraggableIndex:et,originalEvent:o})}if(o.preventDefault!==void 0&&o.cancelable&&o.preventDefault(),t=je(t,c.draggable,n,!0),S("dragOver"),ie.eventCanceled)return x;if(te.contains(o.target)||t.animated&&t.animatingX&&t.animatingY||y._ignoreWhileAnimating===t)return O(!1);if(tn=!1,d&&!c.disabled&&(m?p||(r=_e!==Ce):De===this||(this.lastPutMode=mt.checkPull(this,d,te,o))&&u.checkPut(this,d,te,o))){if(f=this._getDirection(o,t)==="vertical",l=Ne(te),S("dragOverValid"),ie.eventCanceled)return x;if(r)return _e=Ce,C(),this._hideClone(),S("revert"),ie.eventCanceled||(ne.setCrossEl(t,this.options),it?Ce.insertBefore(te,it):Ce.appendChild(te)),O(!0);var B=Un(n,c.draggable);if(!B||Ti(o,f,this)&&!B.animated){if(B===te)return O(!1);if(B&&n===o.target&&(t=B),t&&(i=Ne(t)),Rt(Ce,n,te,l,t,i,o,!!t)!==!1)return C(),ne.setCrossEl(t,this.options),B&&B.nextSibling?n.insertBefore(te,B.nextSibling):n.appendChild(te),_e=n,P(),O(!0)}else if(B&&Ni(o,f,this)){var F=kt(n,0,c,!0);if(F===te)return O(!1);if(t=F,i=Ne(t),Rt(Ce,n,te,l,t,i,o,!1)!==!1)return C(),ne.setCrossEl(t,this.options),n.insertBefore(te,F),_e=n,P(),O(!0)}else if(t.parentNode===n){i=Ne(t);var L=0,I,z=te.parentNode!==n,W=!Ei(te.animated&&te.toRect||l,t.animated&&t.toRect||i,f),U=f?"top":"left",D=go(t,"top","top")||go(te,"top","top"),g=D?D.scrollTop:void 0;pt!==t&&(I=i[U],Ot=!1,Vt=!W&&c.invertSwap||z),L=Di(o,t,i,f,W?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,Vt,pt===t);var w;if(L!==0){var b=Re(te);do b-=L,w=_e.children[b];while(w&&(ue(w,"display")==="none"||w===wt))}if(L===0||w===t)return O(!1);pt=t,Mt=L;var v=t.nextElementSibling,E=!1;E=L===1;var k=Rt(Ce,n,te,l,t,i,o,E);if(k!==!1)return(k===1||k===-1)&&(E=k===1),On=!0,setTimeout(xi,30),C(),ne.setCrossEl(t,this.options),E&&!v?n.appendChild(te):t.parentNode.insertBefore(te,E?v:t),D&&la(D,0,g-D.scrollTop),_e=te.parentNode,I!==void 0&&!Vt&&(qt=Math.abs(I-Ne(t)[U])),P(),O(!0)}if(n.contains(te))return O(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ge(document,"mousemove",this._onTouchMove),ge(document,"touchmove",this._onTouchMove),ge(document,"pointermove",this._onTouchMove),ge(document,"dragover",st),ge(document,"mousemove",st),ge(document,"touchmove",st)},_offUpEvents:function(){var o=this.el.ownerDocument;ge(o,"mouseup",this._onDrop),ge(o,"touchend",this._onDrop),ge(o,"pointerup",this._onDrop),ge(o,"touchcancel",this._onDrop),ge(document,"selectstart",this)},_onDrop:function(o){ne.crossDropEnd(this.options,this.el).then(n=>{if(!this.el){this._nulling();return}if(n){var t=this.el,l=this.options;if(Ve=Re(te),et=Re(te,l.draggable),$e("drop",this,{evt:o}),_e=te&&te.parentNode,Ve=Re(te),et=Re(te,l.draggable),ne.isTreeMode(l)&&typeof l.onUpdate=="function"&&l.onUpdate(),ie.eventCanceled){this._nulling();return}ht=!1,Vt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),$n(this.cloneId),$n(this._dragStartId),this.nativeDraggable&&(ge(document,"drop",this),ge(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Dt&&ue(document.body,"user-select",""),ue(te,"transform",""),o&&(xt&&(o.cancelable&&o.preventDefault(),!l.dropBubble&&o.stopPropagation()),ce&&ce.parentNode&&ce.parentNode.removeChild(ce),(Ce===_e||De&&De.lastPutMode!=="clone")&&Ee&&Ee.parentNode&&Ee.parentNode.removeChild(Ee),te&&(this.nativeDraggable&&ge(te,"dragend",this),kn(te),te.style["will-change"]="",xt&&!ht&&Fe(te,De?De.options.ghostClass:this.options.ghostClass,!1),Fe(te,this.options.chosenClass,!1),Me({sortable:this,name:"unchoose",toEl:_e,newIndex:null,newDraggableIndex:null,originalEvent:o}),Ce!==_e?(Ve>=0&&(Me({rootEl:_e,name:"add",toEl:_e,fromEl:Ce,originalEvent:o}),Me({sortable:this,name:"remove",toEl:_e,originalEvent:o}),Me({rootEl:_e,name:"sort",toEl:_e,fromEl:Ce,originalEvent:o}),Me({sortable:this,name:"sort",toEl:_e,originalEvent:o})),De&&De.save()):Ve!==vt&&Ve>=0&&(Me({sortable:this,name:"update",toEl:_e,originalEvent:o}),Me({sortable:this,name:"sort",toEl:_e,originalEvent:o})),ie.active&&((Ve==null||Ve===-1)&&(Ve=vt,et=At),Me({sortable:this,name:"end",toEl:_e,originalEvent:o}),this.save()))),this._nulling()}})},_nulling:function(){$e("nulling",this),Ce=te=gt=_e=ce=wt=it=Ee=Wt=tt=He=Je=xt=Ve=et=vt=At=pt=Mt=De=mt=ie.dragged=ie.ghost=ie.ghostClone=ie.clone=ie.active=Et=_t=yn=Ye=null,ne._clearHiddenBox(),ne.resetTreeState(),on.forEach(function(o){o.checked=!0}),on.length=gn=hn=0},handleEvent:function(o){switch(o.type){case"drop":case"dragend":this._onDrop(o);break;case"dragenter":case"dragover":te&&(this._onDragOver(o),wi(o));break;case"selectstart":o.preventDefault();break}},toArray:function(o){for(var n=[],t,l=this.el.children,i=0,r=l.length,c=this.options;i<r;i++)t=l[i],je(t,c.draggable,this.el,!1)&&n.push(t.getAttribute(c.dataIdAttr)||Ai(t));return n},sort:function(o,n){var t={},l=this.el;this.toArray().forEach(function(i,r){var c=l.children[r];je(c,this.options.draggable,l,!1)&&(t[i]=c)},this),n&&this.captureAnimationState(),o.forEach(function(i){t[i]&&(l.removeChild(t[i]),l.appendChild(t[i]))}),n&&this.animateAll()},save:function(){var o=this.options.store;o&&o.set&&o.set(this)},closest:function(o,n){return je(o,n||this.options.draggable,this.el,!1)},option:function(o,n){var t=this.options;if(n===void 0)return t[o];var l=Lt.modifyOption(this,o,n);typeof l<"u"?t[o]=l:t[o]=n,o==="group"&&ca(t)},destroy:function(){$e("destroy",this);var o=this.el;o[Ie]=null,ge(o,"mousedown",this._onTapStart),ge(o,"touchstart",this._onTapStart),ge(o,"pointerdown",this._onTapStart),this.nativeDraggable&&(ge(o,"dragover",this),ge(o,"dragenter",this)),Array.prototype.forEach.call(o.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._offMoveEvents(),this._offUpEvents(),this._onDrop(),ce&&ce.parentNode&&(ce.parentNode.removeChild(ce),ce=null),this._disableDelayedDragEvents(),nn.splice(nn.indexOf(this.el),1),this.el=o=null},_hideClone:function(){if(!tt){if($e("hideClone",this),ie.eventCanceled)return;ue(Ee,"display","none"),this.options.removeCloneOnHide&&Ee.parentNode&&Ee.parentNode.removeChild(Ee),tt=!0}},_showClone:function(o){if(o.lastPutMode!=="clone"){this._hideClone();return}if(tt){if($e("showClone",this),ie.eventCanceled)return;te.parentNode==Ce&&!this.options.group.revertClone?Ce.insertBefore(Ee,te):it?Ce.insertBefore(Ee,it):Ce.appendChild(Ee),this.options.group.revertClone&&this.animate(te,Ee),ue(Ee,"display",""),tt=!1}}};function wi(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.cancelable&&a.preventDefault()}function Rt(a,o,n,t,l,i,r,c){var u,d=a[Ie],m=d.options.onMove,p;return window.CustomEvent&&!Qe&&!$t?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=o,u.from=a,u.dragged=n,u.draggedRect=t,u.related=l||o,u.relatedRect=i||Ne(o),u.willInsertAfter=c,u.originalEvent=r,a.dispatchEvent(u),m&&(p=m.call(d,u,r)),p}function kn(a){a.draggable=!1}function xi(){On=!1}function Ni(a,o,n){var t=Ne(kt(n.el,0,n.options,!0)),l=10;return o?a.clientX<t.left-l||a.clientY<t.top&&a.clientX<t.right:a.clientY<t.top-l||a.clientY<t.bottom&&a.clientX<t.left}function Ti(a,o,n){var t=Ne(Un(n.el,n.options.draggable)),l=10;return o?a.clientX>t.right+l||a.clientX<=t.right&&a.clientY>t.bottom&&a.clientX>=t.left:a.clientX>t.right&&a.clientY>t.top||a.clientX<=t.right&&a.clientY>t.bottom+l}function Di(a,o,n,t,l,i,r,c){var u=t?a.clientY:a.clientX,d=t?n.height:n.width,m=t?n.top:n.left,p=t?n.bottom:n.right,h=!1;if(!r){if(c&&qt<d*l){if(!Ot&&(Mt===1?u>m+d*i/2:u<p-d*i/2)&&(Ot=!0),Ot)h=!0;else if(Mt===1?u<m+qt:u>p-qt)return-Mt}else if(u>m+d*(1-l)/2&&u<p-d*(1-l)/2)return Ii(o)}return h=h||r,h&&(u<m+d*i/2||u>p-d*i/2)?u>m+d/2?1:-1:0}function Ii(a){return Re(te)<Re(a)?1:-1}function Ai(a){for(var o=a.tagName+a.className+a.src+a.href+a.textContent,n=o.length,t=0;n--;)t+=o.charCodeAt(n);return t.toString(36)}function Mi(a){on.length=0;for(var o=a.getElementsByTagName("input"),n=o.length;n--;){var t=o[n];t.checked&&on.push(t)}}function Yt(a){return setTimeout(a,0)}function $n(a){return clearTimeout(a)}un&&ke(document,"touchmove",function(a){(ie.active||ht)&&a.cancelable&&a.preventDefault()});ie.utils={on:ke,off:ge,css:ue,find:oa,is:function(o,n){return!!je(o,n,o,!1)},extend:gi,throttle:aa,closest:je,toggleClass:Fe,clone:sa,index:Re,nextTick:Yt,cancelNextTick:$n,detectDirection:ra,getChild:kt};ie.get=function(a){return a[Ie]};ie.mount=function(){for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];o[0].constructor===Array&&(o=o[0]),o.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(ie.utils=Ke(Ke({},ie.utils),t.utils)),Lt.mount(t)})};ie.create=function(a,o){return new ie(a,o)};ie.version=mi;var xe=[],Nt,Ln,Fn=!1,bn,Cn,an,Tt;function Oi(){function a(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return a.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?ke(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ke(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ke(document,"touchmove",this._handleFallbackAutoScroll):ke(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ge(document,"dragover",this._handleAutoScroll):(ge(document,"pointermove",this._handleFallbackAutoScroll),ge(document,"touchmove",this._handleFallbackAutoScroll),ge(document,"mousemove",this._handleFallbackAutoScroll)),bo(),Xt(),hi()},nulling:function(){an=Ln=Nt=Fn=Tt=bn=Cn=null,xe.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var l=this,i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,c=document.elementFromPoint(i,r);if(an=n,t||this.options.forceAutoScrollFallback||$t||Qe||Dt){Sn(n,this.options,c,t);var u=nt(c,!0);Fn&&(!Tt||i!==bn||r!==Cn)&&(Tt&&bo(),Tt=setInterval(function(){var d=nt(document.elementFromPoint(i,r),!0);d!==u&&(u=d,Xt()),Sn(n,l.options,d,t)},10),bn=i,Cn=r)}else{if(!this.options.bubbleScroll||nt(c,!0)===Pe()){Xt();return}Sn(n,this.options,nt(c,!1),!1)}}},Ge(a,{pluginName:"scroll",initializeByDefault:!0})}function Xt(){xe.forEach(function(a){clearInterval(a.pid)}),xe=[]}function bo(){clearInterval(Tt)}var Sn=aa(function(a,o,n,t){if(o.scroll){var l=(a.touches?a.touches[0]:a).clientX,i=(a.touches?a.touches[0]:a).clientY,r=o.scrollSensitivity,c=o.scrollSpeed,u=Pe(),d=!1,m;Ln!==n&&(Ln=n,Xt(),Nt=o.scroll,m=o.scrollFn,Nt===!0&&(Nt=nt(n,!0)));var p=0,h=Nt;do{var f=h,y=Ne(f),x=y.top,N=y.bottom,M=y.left,S=y.right,C=y.width,O=y.height,P=void 0,B=void 0,F=f.scrollWidth,L=f.scrollHeight,I=ue(f),z=f.scrollLeft,W=f.scrollTop;f===u?(P=C<F&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),B=O<L&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(P=C<F&&(I.overflowX==="auto"||I.overflowX==="scroll"),B=O<L&&(I.overflowY==="auto"||I.overflowY==="scroll"));var U=P&&(Math.abs(S-l)<=r&&z+C<F)-(Math.abs(M-l)<=r&&!!z),D=B&&(Math.abs(N-i)<=r&&W+O<L)-(Math.abs(x-i)<=r&&!!W);if(!xe[p])for(var g=0;g<=p;g++)xe[g]||(xe[g]={});(xe[p].vx!=U||xe[p].vy!=D||xe[p].el!==f)&&(xe[p].el=f,xe[p].vx=U,xe[p].vy=D,clearInterval(xe[p].pid),(U!=0||D!=0)&&(d=!0,xe[p].pid=setInterval(function(){t&&this.layer===0&&ie.active._onTouchMove(an);var w=xe[this.layer].vy?xe[this.layer].vy*c:0,b=xe[this.layer].vx?xe[this.layer].vx*c:0;typeof m=="function"&&m.call(ie.dragged.parentNode[Ie],b,w,a,an,xe[this.layer].el)!=="continue"||la(xe[this.layer].el,b,w)}.bind({layer:p}),24))),p++}while(o.bubbleScroll&&h!==u&&(h=nt(h,!1)));Fn=d}},30),ma=function(o){var n=o.originalEvent,t=o.putSortable,l=o.dragEl,i=o.activeSortable,r=o.dispatchSortableEvent,c=o.hideGhostForTarget,u=o.unhideGhostForTarget;if(n){var d=t||i;c();var m=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,p=document.elementFromPoint(m.clientX,m.clientY);u(),d&&!d.el.contains(p)&&(r("spill"),this.onSpill({dragEl:l,putSortable:t}))}};function jn(){}jn.prototype={startIndex:null,dragStart:function(o){var n=o.oldDraggableIndex;this.startIndex=n},onSpill:function(o){var n=o.dragEl,t=o.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var l=kt(this.sortable.el,this.startIndex,this.options);l?this.sortable.el.insertBefore(n,l):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:ma};Ge(jn,{pluginName:"revertOnSpill"});function Kn(){}Kn.prototype={onSpill:function(o){var n=o.dragEl,t=o.putSortable,l=t||this.sortable;l.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),l.animateAll()},drop:ma};Ge(Kn,{pluginName:"removeOnSpill"});const ne={isBoolean:a=>typeof a=="boolean",isFunction:a=>typeof a=="function",isUndefined:a=>typeof a>"u"||a===null,isFiniteNumber:a=>typeof a=="number"&&isFinite(a),getOffset:a=>{const o=a.getBoundingClientRect(),t=(a&&a.ownerDocument).documentElement;let l;if(t.toString()!=="[object Window]"){const i=a.ownerDocument;l=i&&i.defaultView||window}else l=t;return{top:o.top+(l.pageYOffset||t.scrollTop)-(t.clientTop||0),left:o.left+(l.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:o.width,height:o.height}},createElement:a=>{if(a.substring(0,1)==="<"){const n=document.createElement("div");return n.innerHTML=a,n.children[0]}else return document.createElement(a)},getElementData:(a,o)=>{const n=[],t=a.children,l=t.length;let i;for(let r=0;r<l;r++){i=t[r];const c=i.getAttribute(o.dataIdAttr);c&&c.length>0&&n.push(c)}return n},_getHiddenBox:()=>(Ue||(Ue=document.createElement("div"),Ue.style.cssText="position:fixed;left:-99999px;top:0;width:1px;height:1px;overflow:hidden;pointer-events:none;",document.body.appendChild(Ue)),Ue),_moveToHiddenBox:a=>{a&&a.parentNode&&ne._getHiddenBox().appendChild(a)},_clearHiddenBox:()=>{Ue&&Ue.parentNode&&(Ue.parentNode.removeChild(Ue),Ue=null)},checkMoveOutBoundary:(a,o,n)=>{let t=!0,l={};const i=n.extOption.boundary;if(i){let r=i.isOut;if(r=ne.isBoolean(r)?r:!0,!r){let c;if(i.element&&i.element.length>0){const u=window.document.querySelector(i.element);u&&(c=ne.getOffset(u))}else c=ne.getOffset(o);if(c){const u=ne.getOffset(a);let d=Number(i.x);isNaN(d)&&(d=0);let m=Number(i.y);isNaN(m)&&(m=0);const p=c.top-d>u.top,h=c.left+c.width+m<u.left+u.width,f=c.top+c.height+d<u.top+u.height,y=c.left-m>u.left;t=!(p||h||f||y),t||(l={top:p,right:h,bottom:f,left:y,x:d,y:m})}}}return l.isOut=!t,l},setWrapBody:(a,o,n)=>{let t=a,l=n.extOption.wrapBody;if(n.fallbackOnBody&&(l?n.extOption.wrapBody.isWrap=!0:n.extOption.wrapBody={isWrap:!0},l=n.extOption.wrapBody),l){let i=l.isWrap;if(i=ne.isBoolean(i)?i:!1,i)if(l.element&&l.element.length>0)t=ne.createElement(l.element),t.appendChild(a);else switch(t=o.cloneNode(),t.appendChild(a),t.tagName.toLocaleLowerCase()){case"tbody":const r=o.parentNode.cloneNode();r.appendChild(t),t=r;break}}return t},checkCross:(a,o,n)=>{const t=n.extOption.cross;let l={newEl:null,isSameStruct:!0};if(t){let i=t.isCross;if(i=ne.isBoolean(i)?i:!1,a.parentNode===o.parentNode&&(i=!1),i){let r=t.isSameStruct;if(r=ne.isBoolean(r)?r:!0,!r){const c=o.tagName.toLocaleLowerCase(),u=ne.createElement(c),d=[],m=["darg-select","darg-placeholder"];switch(o.className.split(" ").forEach(p=>{m.indexOf(p)===-1&&d.push(p)}),d.push(...m),u.className=d.join(" "),ue(u,"height",o.clientHeight),c){case"tr":let p=0;for(let f=0;f<o.children.length;f++){const y=o.children[f].getAttribute("colspan");p+=ne.isUndefined(y)?1:Number(y)}const h=ne.createElement("td");h.setAttribute("colspan",p),u.appendChild(h);break}l.isSameStruct=!1,l.newEl=u}}}return l},setCrossEl:(a,o)=>{var n=ne.checkCross(te,a,o);if(!n.isSameStruct){const t=te.cloneNode(!0);ne._moveToHiddenBox(te),gt?(te=gt,gt=null):te=n.newEl,gt||(gt=t)}},crossDropEnd:(a,o)=>new Promise((n,t)=>{const l=a.extOption.cross;let i=!1;const r=te&&te.parentNode;if(l){let u=l.isCross;if(u=ne.isBoolean(u)?u:!1,u){let d=!1;if(r)if(ne.isTreeMode(a)){var c=o||ie.active&&ie.active.el||a.el;d=!!c&&!c.contains(te)}else d=Ce!==r;d&&l.dropEndBeforeCallback&&(i=!0)}}if(i){const u=wt||te,d=u&&u.getAttribute?u.getAttribute(a.dataIdAttr):null,m=ne.getElementData(r,a),p=l.dropEndBeforeCallback({data:d,inx:Re(te),arrSortId:m});if(p&&p.then&&ne.isFunction(p.then))ne._crossDropLoad(!0),p.then(h=>{ne._crossDropLoad(!1);const f=ne._crossDropEndCb(h);n({success:f})});else{const h=ne._crossDropEndCb(p);n({success:h})}}else n({success:!0})}),_crossDropLoad:a=>{let o;const n=te.tagName.toLocaleLowerCase();if(te.children.length===0)o=te;else switch(n){case"tr":o=te.children[0];break}if(a){const t=ne.createElement("div");t.className="panel-darg-loading",t.innerHTML='<div class="darg-add-loading"></div>',o.appendChild(t)}else{const t=te.querySelector(".panel-darg-loading");t&&t.parentNode&&t.parentNode.removeChild(t)}},_crossDropEndCb:a=>{var o=ne.isBoolean(a)?a:!0;return o&&te&&te.parentNode&&te.parentNode.removeChild(te),o},_tree:{startPageX:0,startDragDepth:null,startLeftPage:null,depthCache:null,dropInfo:null},_findOwnerSortable:a=>{for(var o=a;o;){var n=o[Ie];if(n&&ne.isFunction(n._isOutsideThisEl))return n;o=o.parentNode}return null},_treeRegionCls:a=>a&&a.extOption&&a.extOption.tree&&a.extOption.tree.regionCls||".darg-region",isTreeMode:a=>!!(a&&a.extOption&&a.extOption.tree&&a.extOption.tree.isTree),findNearestTreeRoot:(a,o)=>{for(var n=a;n;){if(n[Ie]&&n[Ie].options&&ne.isTreeMode(n[Ie].options))return n;n=n.parentNode}return o},getNodeDepth:(a,o)=>{for(var n=0,t=a;t&&(t.matches&&t.matches(o)&&n++,!(t.matches&&t[Ie]&&t[Ie].options));)t=t.parentNode;return n},getOwnerRegion:(a,o)=>{for(var n=a.parentNode;n;){if(n.matches&&n.matches(o))return n;n=n.parentNode}return null},getChildRegion:(a,o)=>{for(var n=a.children||[],t=0;t<n.length;t++)if(n[t].matches&&n[t].matches(o))return n[t];return null},findSiblingFallback:(a,o)=>{var n="data-id",t=f=>!!f&&f.getAttribute&&f.getAttribute(n)!==null,l=a&&a.parentNode;if(l){var i=Array.from(l.children).filter(f=>t(f)&&f!==a&&!a.contains(f));if(i.length){var r=o&&o.getBoundingClientRect?o.getBoundingClientRect():null;if(r)for(var c=r.top+r.height/2,u=0;u<i.length;u++){var d=i[u].getBoundingClientRect();if(c>=d.top&&c<=d.bottom)return i[u]}return i[0]}}for(var m=l,p=0;m&&p++<20;){var h=m.parentNode;if(t(h)&&h!==a&&!a.contains(h))return h;m=h?h.parentNode:null}return null},resolveTreeDrop:(a,o,n,t,l)=>{for(var i=t.extOption.tree||{},r=ne._treeRegionCls(t),c={isReject:!1,reason:"",targetDepth:0,hoverNode:null,intent:"same"},u=t.dataIdAttr||"data-id",d=o;d&&d!==t.el&&!(d.getAttribute&&d.getAttribute(u)!==null);)d=d.parentNode;if(!d||d===t.el)return c.isReject=!0,c.reason="no-node",c;if(d===a||a.contains(d)){var m=ne.findSiblingFallback(a,o);m&&(d=m)}if(c.hoverNode=d,a.contains(d))return c.isReject=!0,c.reason="cycle",c;if(i.isOnlyInnerMove){var p=ne.findNearestTreeRoot(a,null),h=ne.findNearestTreeRoot(d,null);if(p!==h)return c.isReject=!0,c.reason="out-of-group",c}var f=ne.getOwnerRegion(d,r),y=f?ne.getNodeDepth(d,r):1;y<1&&(y=1);var x=Number(i.indentThreshold);(isNaN(x)||x<=0)&&(x=20);var N=window.pageXOffset||document.documentElement.scrollLeft||0,M=d.getBoundingClientRect().left+N,S=M-(y-1)*x,C=1+Math.round((l-S)/x);C<1&&(C=1);var O=Number(i.maxDepth);isNaN(O)&&(O=3);var P=ne._tree.startDragDepth!==null&&ne._tree.startDragDepth!==void 0?ne._tree.startDragDepth:ne.getNodeDepth(a,r),B=C,F=!1;return B>P&&!i.isDragToChild&&(B=P,F=!0),B<P&&!i.isDragToParent&&(B=P,F=!0),O>0&&B>O&&(B=O,B<P&&(B=P)),c.targetDepth=B,c.isDepthForced=F,B>P?c.intent="child":B<P?c.intent="parent":c.intent="same",c.dragDepth=P,c.hoverDepth=y,c},resolveTreeInsert:(a,o,n,t)=>{var l=ne._treeRegionCls(n),i={container:null,refNode:null};if(!o)return i;if(a.intent==="child"){var r=ne.getChildRegion(o,l);return r||(r=ne.createChildRegion(o,n)),i.container=r,i.refNode=ne.findInsertRef(r,t,n),i}for(var c=a.targetDepth!==void 0?a.targetDepth:a.hoverDepth,u=o,d=a.hoverDepth;u&&d>c;){var m=ne.getOwnerRegion(u,l);if(!m||!m.parentNode)break;var p=m.parentNode;if(!p.getAttribute||p.getAttribute(n.dataIdAttr||"data-id")===null)break;u=p,d--}for(;u&&d<c;){var h=ne.getChildRegion(u,l);if(!h)break;if(u=h,d++,d<c){for(var f=null,y=h.children||[],x=0;x<y.length;x++)y[x].getAttribute&&y[x].getAttribute(n.dataIdAttr||"data-id")!==null&&y[x]!==te&&(f=y[x]);if(!f){d--;break}u=f}}var N;u&&u.matches&&u.matches(l)?N=u:N=ne.getOwnerRegion(u,l);var M=a.isDepthForced===!0;if(M&&d!==c){var S=ne.getOwnerRegion(te,l);if(S)return i.container=S,i.refNode=ne.findInsertRef(S,t,n),i}return N&&(i.container=N,i.refNode=ne.findInsertRef(N,t,n)),i},findInsertRef:(a,o,n)=>{for(var t=n.dataIdAttr||"data-id",l=[],i=a.children||[],r=0;r<i.length;r++){var c=i[r];c.getAttribute&&c.getAttribute(t)!==null&&c!==te&&l.push(c)}for(var u=0;u<l.length;u++){var d=l[u].getBoundingClientRect(),m=d.top+d.height/2;if(o<m)return l[u]}return null},createChildRegion:(a,o)=>{var n=ne._treeRegionCls(o),t=ne.getOwnerRegion(a,n),l=t?t.tagName.toLocaleLowerCase():"ul",i=ne.createElement(l),r=n.charAt(0)==="."?n.slice(1):n;return i.className=r+" "+ne.TREE_AUTO_REGION_CLS,a.appendChild(i),i},TREE_AUTO_REGION_CLS:"darg-region-auto",cleanupEmptyAutoRegions:a=>{var o=a||document;if(!(!o||!o.querySelectorAll))for(var n=o.querySelectorAll("."+ne.TREE_AUTO_REGION_CLS),t=n.length-1;t>=0;t--){for(var l=n[t],i=!1,r=l.children||[],c=0;c<r.length;c++)if(r[c].getAttribute&&r[c].getAttribute("data-id")!==null){i=!0;break}i||te&&(l===te.parentNode||l.contains(te))||l.parentNode&&l.parentNode.removeChild(l)}},treeDragOver:(a,o,n)=>{var t=a.options,l=o.clientX,i=o.clientY;if(!ne.isFiniteNumber(l)||!ne.isFiniteNumber(i))if(He&&ne.isFiniteNumber(He.clientX)&&ne.isFiniteNumber(He.clientY))l=He.clientX,i=He.clientY;else return!1;var r=o.pageX!==void 0&&ne.isFiniteNumber(o.pageX)?o.pageX:l,c=document.elementFromPoint(l,i),u=c||n;u&&(u===te||u.closest(".sortable-fallback"))&&(u=n);var d=ne.resolveTreeDrop(te,u,o,t,r);if(ne._tree.dropInfo=d,d.isReject)return!1;var m=ne.resolveTreeInsert(d,d.hoverNode,t,i);if(!m.container)return!1;if(te.contains(m.container))return ne._tree.dropInfo={isReject:!0,reason:"cycle-container"},!1;if(m.container===te.parentNode&&(m.refNode===te||m.refNode===te.nextSibling))return!1;var p=m.refNode;return p?m.container.insertBefore(te,p):m.container.appendChild(te),ne.cleanupEmptyAutoRegions(a.el||document),!0},renderTreeIndicator:(a,o)=>{var n=a.options,t=ne._tree.dropInfo,l=document.body,i=l.querySelector(".darg-tree-indicator");if(!t||t.isReject||!t.hoverNode){i&&i.parentNode&&i.parentNode.removeChild(i);return}i||(i=ne.createElement("div"),i.className="darg-tree-indicator",l.appendChild(i)),ne._treeRegionCls(n);var r=t.hoverNode.getBoundingClientRect(),c=Number(n.extOption.tree.indentThreshold)||20,u=(t.targetDepth-t.hoverDepth)*c,d=r.left+u,m=r.width-u;m<20&&(m=20);var p=t.intent==="child"?r.bottom-1:r.top;i.style.cssText="position:fixed;pointer-events:none;z-index:100001;height:2px;background:#409eff;left:"+d+"px;top:"+p+"px;width:"+m+"px;border-radius:1px;"},clearTreeIndicator:()=>{var a=document.querySelector(".darg-tree-indicator");a&&a.parentNode&&a.parentNode.removeChild(a),ne._tree.dropInfo=null},resetTreeState:()=>{ne._tree.startPageX=0,ne._tree.startDragDepth=null,ne._tree.startLeftPage=null,ne._tree.depthCache=null,ne._tree.dropInfo=null,ne.clearTreeIndicator(),ne.cleanupEmptyAutoRegions(document)}};ie.mount(new Oi);ie.mount(Kn,jn);const $i=["id"],pa=e.defineComponent({name:"ClDarg",__name:"Index",props:{id:String,className:String,group:[String,Object],dargRegionCls:{type:String,default:".darg-region"},handleCls:{type:String,default:".darg-handle"},selectCls:{type:String,default:"darg-select"},placeholderCls:{type:String,default:"darg-placeholder"},isBoundaryOut:{type:Boolean,default:!0},boundaryElement:String,isWrapBody:{type:Boolean,default:!0},wrapBodyElement:String,isDisabledInner:{type:Boolean,default:!1},isDisabledOutsideInto:{type:Boolean,default:!1},isGroupSameStruct:{type:Boolean,default:!0},keyAttrId:{type:String,default:"data-id"},animation:{type:Number,default:150},groupDropEndBeforeCallback:Function,isTree:{type:Boolean,default:!1},maxDepth:{type:Number,default:3},indentThreshold:{type:Number,default:20},isOnlyInnerMove:{type:Boolean,default:!1},isDragToChild:{type:Boolean,default:!0},isDragToParent:{type:Boolean,default:!0}},emits:{onChangeSort:a=>!0,onError:a=>!0},setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElTop"),c={sortableObj:null},u=e.computed(()=>{let f={"panel-darg":!0};return f=s.getJsonMerge(f,ee.getClassNameJson(t.className)),f}),d=()=>{const f=r.value;if(!f)return[];const y=t.keyAttrId||"data-id",x=t.dargRegionCls||".darg-region",N=C=>{const O={id:C.getAttribute(y)||"",children:[]};return Array.from(C.children).filter(B=>B.matches&&B.matches(x)).forEach(B=>{Array.from(B.children).forEach(F=>{F.matches&&F.matches("li,[data-id]")&&O.children.push(N(F))})}),O},M=[];return Array.from(f.querySelectorAll(x)).filter(C=>{let O=C.parentElement;for(;O&&O!==f;){if(O.matches&&O.matches(x))return!1;O=O.parentElement}return!0}).forEach(C=>{Array.from(C.children).forEach(O=>{O.matches&&O.matches("li,[data-id]")&&M.push(N(O))})}),M},m=()=>{if(t.isTree){l("onChangeSort",d());return}const f=c.sortableObj?.toArray?.()||[];l("onChangeSort",f)},p=()=>{e.nextTick(()=>{let f=null;try{if(f=r.value?.querySelector(t.dargRegionCls||".darg-region"),!f){re.warn("ClDarg","未找到拖拽区域元素:",t.dargRegionCls||".darg-region"),l("onError","未找到拖拽区域元素");return}const{group:y,placeholderCls:x,handleCls:N,selectCls:M,isBoundaryOut:S,boundaryElement:C,isWrapBody:O,wrapBodyElement:P,isDisabledInner:B,isDisabledOutsideInto:F,isGroupSameStruct:L,groupDropEndBeforeCallback:I,keyAttrId:z,isTree:W,maxDepth:U,indentThreshold:D,isOnlyInnerMove:g,isDragToChild:w,isDragToParent:b}=t;let v=L;W&&!L&&(v=!0,re.warn("ClDarg","树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true(原值 false 被忽略)"),l("onError","树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true"));const E={sort:!B,forceFallback:!0,fallbackOnBody:O,fallbackTolerance:0,handle:N,ghostClass:x,chosenClass:M,dragClass:"darg-moveing",animation:t.animation,dataIdAttr:z,extOption:{boundary:{isOut:S,element:C,x:5,y:20},wrapBody:{isWrap:O,element:P},cross:{isCross:!1,isSameStruct:v,dropEndBeforeCallback:I||null},tree:{isTree:W,maxDepth:U,indentThreshold:D,isOnlyInnerMove:g,isDragToChild:w,isDragToParent:b,rootId:i||""}},onUpdate:()=>{m()}};if(y&&!s.isEmpty(y))if(E.extOption.cross.isCross=!0,F){const k=s.isObject(y)?y.name:y;E.group={name:k,pull:"clone",put:!1},E.animation=0}else E.group=y;c.sortableObj=new ie(f,E)}catch(y){re.warn("ClDarg","Sortable 初始化失败:",y),l("onError","拖拽组件初始化失败")}})};return e.onMounted(()=>{p()}),e.onUpdated(()=>{if(!c.sortableObj)return;const f=r.value?.querySelector(t.dargRegionCls||".darg-region");if(f&&c.sortableObj.el!==f){try{c.sortableObj.destroy()}catch(y){re.warn("ClDarg","重建前销毁旧实例失败:",y)}c.sortableObj=null,p()}}),e.onBeforeUnmount(()=>{if(c.sortableObj){try{c.sortableObj.destroy()}catch(f){re.warn("ClDarg","销毁拖拽实例失败:",f)}c.sortableObj=null}}),o({getArrSort:()=>t.isTree?d():c.sortableObj?.toArray?c.sortableObj.toArray():[]}),(f,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTop",ref:r,id:e.unref(i),class:e.normalizeClass(u.value)},[e.renderSlot(f.$slots,"default")],10,$i))}}),Li=["id"],Fi={key:0,class:"divider-text"},fa=e.defineComponent({name:"ClDivider",__name:"Index",props:{id:String,className:String,dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center",validator:a=>["center","left","right"].indexOf(a)!==-1},margin:{type:[Number,String],default:16},theme:{type:String,default:"default"},lineColor:String,textColor:String},emits:["onClick"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.useSlots(),r=e.computed(()=>{const m=i.default?.();return Array.isArray(m)&&m.length>0}),c=e.computed(()=>{const m={"panel-divider":!0,"panel-divider--dashed":n.dashed,"panel-divider--hairline":n.hairline,"panel-divider--left":n.contentPosition==="left","panel-divider--right":n.contentPosition==="right","panel-divider--text":r.value,"panel-divider--gold":n.theme==="gold"};return s.getJsonMerge(m,ee.getClassNameJson(n.className))}),u=e.computed(()=>{const m=n.margin,p=s.isFinite(m)?`${m}px`:String(m??""),h={marginLeft:p,marginRight:p};return s.isNonEmptyString(n.lineColor)&&(h["--divider-line-color"]=n.lineColor),s.isNonEmptyString(n.textColor)&&(h["--divider-text-color"]=n.textColor),h}),d=()=>{t("onClick")};return(m,p)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(c.value),style:e.normalizeStyle(u.value),onClick:d},[r.value?(e.openBlock(),e.createElementBlock("span",Fi,[e.renderSlot(m.$slots,"default")])):e.createCommentVNode("",!0)],14,Li))}}),Vi=["id"],Ri=["title"],ga=e.defineComponent({name:"ClEllipsis",directives:{cltooltip:lt},__name:"Index",props:{id:String,className:String,text:String,lines:{type:Number,default:1},isUseTooltipAuto:{type:Boolean,default:!1},tooltipTheme:String,tooltipPosition:String,tooltipTrigger:String,tooltipIsHtml:{type:Boolean,default:!1},tooltipHtml:String,isShowNativeTitle:{type:Boolean,default:!1}},setup(a){const o=a,n=o.id,t=e.useTemplateRef("refElParent"),l=e.useTemplateRef("refElSpan"),i=e.reactive({isPosParent:!1,isPosSpan:!1,isUseTooltip:!1,isUseTooltipAuto:o.isUseTooltipAuto}),r=e.computed(()=>i.isUseTooltip?"":o.isShowNativeTitle&&o.text||""),c=e.computed(()=>{if(!s.isFinite(o.lines))return 1;const p=Number(o.lines);return p===1||p===2||p===3?p:1}),u=e.computed(()=>{let p={"panel-ellipsis":!0,"ellipsis-txt-title":!0};return p[`ellipsis-txt-lines-${c.value}`]=!0,o.tooltipTrigger==="click"&&(p["ellipsis-txt-click"]=!0),p=s.getJsonMerge(p,ee.getClassNameJson(o.className)),p}),d=()=>{const p=ot("ellipsis");p&&s.isExistJsonKey(p,"isUseTooltipAuto")&&(i.isUseTooltipAuto=p.isUseTooltipAuto)},m=()=>{if(i.isUseTooltipAuto&&o.text&&o.text.length>0&&t.value&&l.value)if(c.value>1){const p=l.value,h=p.clientHeight;p.style.webkitLineClamp="unset";const f=p.offsetHeight;p.style.webkitLineClamp="";const y=f>h;i.isUseTooltip=y,i.isPosSpan=!0,i.isPosParent=!1}else{const p=t.value.clientWidth,h=l.value.offsetWidth;if(p>0&&h>0){const f=p>=h,y=p<h;i.isUseTooltip=y,i.isPosSpan=f,i.isPosParent=y}}};return e.onMounted(()=>{e.nextTick(()=>{d(),m()})}),e.watch(()=>o.text,()=>{e.nextTick(()=>{m()})}),e.watch(()=>o.isUseTooltipAuto,p=>{i.isUseTooltipAuto=p,p||(i.isUseTooltip=!1),e.nextTick(()=>{m()})}),e.watch(()=>o.lines,()=>{e.nextTick(()=>{m()})}),(p,h)=>{const f=e.resolveDirective("cltooltip");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"refElParent",ref:t,id:e.unref(n),class:e.normalizeClass(u.value)},[e.withDirectives((e.openBlock(),e.createElementBlock("span",{ref_key:"refElSpan",ref:l,class:e.normalizeClass(`ellipsis-txt-lines-${c.value}`),title:r.value},[e.createTextVNode(e.toDisplayString(a.text),1)],10,Ri)),[[f,{init:i.isUseTooltip&&i.isPosSpan,html:a.tooltipHtml||a.text,theme:a.tooltipTheme,position:a.tooltipPosition,trigger:a.tooltipTrigger,isHtml:a.tooltipIsHtml}]])],10,Vi)),[[f,{init:i.isUseTooltip&&i.isPosParent,html:a.tooltipHtml||a.text,theme:a.tooltipTheme,position:a.tooltipPosition,trigger:a.tooltipTrigger,isHtml:a.tooltipIsHtml}]])}}}),Pi=["id"],zi={key:0,class:"empty-description"},Hi={key:1,class:"empty-footer"},Ji=80,ha=e.defineComponent({name:"ClEmpty",__name:"Index",props:{id:String,className:String,description:String,imageSize:{type:Number,default:80}},setup(a){const o=a,n=o.id,t=e.useSlots(),l=e.computed(()=>s.isNonEmptyString(o.description)?o.description:""),i=e.computed(()=>{const u=t.default?.();return Array.isArray(u)&&u.length>0}),r=e.computed(()=>{const u={"panel-empty":!0};return s.getJsonMerge(u,ee.getClassNameJson(o.className))}),c=e.computed(()=>{const u=s.isFinite(o.imageSize)&&o.imageSize>0?o.imageSize:Ji;return{width:`${u}px`,height:`${u}px`}});return(u,d)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(n),class:e.normalizeClass(r.value)},[e.createElementVNode("div",{class:"empty-image",style:e.normalizeStyle(c.value)},[e.renderSlot(u.$slots,"image",{},()=>[d[0]||(d[0]=e.createElementVNode("i",{class:"empty-image-default clIconFont clIcon-empty"},null,-1))])],4),l.value?(e.openBlock(),e.createElementBlock("div",zi,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",Hi,[e.renderSlot(u.$slots,"default")])):e.createCommentVNode("",!0)],10,Pi))}});class va{_fun;_time;_cb;constructor(o,n=200){this._cb=o,this._time=n}stopRun(){this._fun&&(clearTimeout(this._fun),this._fun=null)}run(o){const n=o||this._cb;n&&(this.stopRun(),this._fun=setTimeout(()=>{n()},this._time))}}class Ui{startTime;startPos;endPos;duration;runEasing;runIngFun;lastPos;lastInterval;timeAnimate;constructor(o){this.startTime=0,this.startPos=0,this.endPos=0,this.duration=0,this.runEasing=null,this.runIngFun=o.runIngCallback,this.lastPos=0,this.lastInterval=0}_easing={linear:(o,n,t,l)=>t*o/l+n,easeInCubic:(o,n,t,l)=>t*(o/=l)*o*o+n,easeOutCubic:(o,n,t,l)=>t*((o=o/l-1)*o*o+1)+n};start(o,n,t,l="linear"){const i=this;return new Promise(r=>{this.startTime=+new Date,this.startPos=o,this.endPos=n,this.duration=t,this.runEasing=i._easing[l],i.timeAnimate=s.requestAnimationFrame(function c(){i.step()===!1?(i.stop(),r(i.lastInterval)):i.timeAnimate=s.requestAnimationFrame(c)})})}step(){const o=+new Date;if(o>=this.startTime+this.duration)return this.runIngFun(this.endPos),!1;const n=this.runEasing(o-this.startTime,this.startPos,this.endPos-this.startPos,this.duration);return this.lastInterval=Math.abs(n-this.lastPos),this.lastPos=n,this.runIngFun(n),!0}stop(){this.timeAnimate&&s.cancelAnimationFrame(this.timeAnimate)}}const ji=["id"],ya=e.defineComponent({name:"ClForm",__name:"Index",props:{id:String,theme:String,className:String,isAwaitRun:{type:Boolean,default:!0},preScroll:Number,pElError:String,isScrollToErr:{type:Boolean,default:!0}},emits:["submit"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElTop"),c=e.reactive({isRun:!t.isAwaitRun}),u={_scrollUpAnimate:null,parentScroll:null,isScrollWindow:!0,tabindexEls:new Set},d=e.computed(()=>{const S={"data-cl-validate":""};return c.isRun&&(S["data-run"]=""),s.isNonEmptyString(t.theme)&&(S["data-theme"]=t.theme),S}),m=e.computed(()=>{let S={"panel-form":!0,"form-validate":!0};return S=s.getJsonMerge(S,ee.getClassNameJson(t.className)),S}),p=()=>{l("submit")},h=S=>{const C=S.querySelector('input:not([type="hidden"]), select, textarea');return C instanceof HTMLElement?C:S},f=S=>{let C=!0;c.isRun&&S instanceof HTMLElement&&r.value?.contains(S)&&S.runValidate&&(C=!!S.runValidate());const O=h(S);return C?O.removeAttribute("aria-invalid"):O.setAttribute("aria-invalid","true"),C},y=()=>{const S=r.value?.querySelectorAll("[data-validate-error]");if(!s.isUndefined(S)&&S.length>0){let C=S[0];const{preScroll:O,pElError:P}=t,B=!s.isEmpty(C.pElError),F=!s.isEmpty(P);if(B||F){const U=ee.getParent(C,B?C.pElError:P,r.value);s.isUndefined(U)||(C=U)}const I=ee.getOffset(C,u.isScrollWindow?null:u.parentScroll).top-10-(O??0),z=u._scrollUpAnimate,W=u.parentScroll;z&&W&&(z.stop(),z.start(W.scrollTop,I,200)),C.tabIndex<0&&(C.setAttribute("tabindex","-1"),u.tabindexEls.add(C)),C.focus({preventScroll:!0})}},x=()=>{const S=ee.getParentScrollList(r.value,null,!1);u.isScrollWindow=S.length===0;const C=u.isScrollWindow?document.documentElement:S[0];u.parentScroll=s.isUndefined(C)?document.documentElement:C,u._scrollUpAnimate=new Ui({runIngCallback:O=>{const P=u.parentScroll;P&&(P.scrollTop=O)}})};return e.onMounted(()=>{e.nextTick(()=>{x()})}),e.onBeforeUnmount(()=>{u._scrollUpAnimate?.stop()}),o({validate:S=>Ho.promiseFun(C=>{let O=!0;try{if(s.isUndefined(S))c.isRun=!0,e.nextTick(()=>{c.isRun=!0;try{const P=r.value?.querySelectorAll("[data-validate-el]");!s.isUndefined(P)&&P.length>0&&P.forEach(B=>{f(B)||(O=!1)}),O||t.isScrollToErr&&e.nextTick(()=>{try{y()}catch{}}),C(O)}catch{C(!1)}});else{c.isRun=!0;const P=S;e.nextTick(()=>{try{O=f(P),!O&&t.isScrollToErr&&e.nextTick(()=>{try{y()}catch{}}),C(O)}catch{C(!1)}})}}catch{C(!1)}}),reset:()=>{c.isRun=!1,u._scrollUpAnimate?.stop(),r.value?.removeAttribute("data-run");const S=r.value?.querySelectorAll("[data-validate-el]");!s.isUndefined(S)&&S.length>0&&S.forEach(C=>{if(h(C).removeAttribute("aria-invalid"),C.runReset)try{C.runReset()}catch{}}),u.tabindexEls.forEach(C=>{C.removeAttribute("tabindex")}),u.tabindexEls.clear()}}),(S,C)=>(e.openBlock(),e.createElementBlock("form",e.mergeProps({ref_key:"refElTop",ref:r,autocomplete:"off",novalidate:"",onSubmit:e.withModifiers(p,["prevent"]),id:e.unref(i),class:m.value},d.value),[e.renderSlot(S.$slots,"default")],16,ji))}}),Ki=["id","aria-labelledby"],Wi={key:0,class:"tip-must"},qi=["id"],ln=e.defineComponent({name:"ClFormGroupHorizontal",__name:"Index",props:{id:String,className:{type:String,default:""},colRatio:{type:String,default:"2:10"},label:String,isTipMust:{type:Boolean,default:!1},isPlaintext:{type:Boolean,default:!1}},setup(a){const o=a,n=o.id,t=e.computed(()=>{let u={"panel-form-group-horizontal":!0,"form-group":!0,"form-group-plaintext":o.isPlaintext,row:!0};return u=s.getJsonMerge(u,ee.getClassNameJson(o.className)),u}),l=e.computed(()=>o.colRatio.split(":")),i=e.computed(()=>{const u=l.value,d=c(u[0],2),m={"control-label":!0};return m[`col-sm-${d}`]=!0,m[`col-${d}`]=!0,m}),r=e.computed(()=>{const u=l.value,d=c(u[1],10),m={"form-group-content":!0};return m[`col-sm-${d}`]=!0,m[`col-${d}`]=!0,m}),c=(u,d)=>{if(!s.isNonEmptyString(u))return d;const m=parseInt(u,10);return isNaN(m)||m<1||m>12?d:m};return e.watch(l,([u,d])=>{if(!s.isNonEmptyString(u)||!s.isNonEmptyString(d))return;const m=parseInt(u,10),p=parseInt(d,10);if(isNaN(m)||isNaN(p)||m<1||m>12||p<1||p>12){re.warn("ClFormGroupHorizontal",`colRatio 值 "${u}:${d}" 不在 1-12 有效范围内,已使用默认值 2:10`);return}m+p!==12&&re.warn("ClFormGroupHorizontal",`colRatio 两值之和需为 12(当前 ${m}+${p}=${m+p}),布局可能出现异常`)},{immediate:!0}),(u,d)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(n),class:e.normalizeClass(t.value),role:"group","aria-labelledby":`${e.unref(n)}-label`},[e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.createElementVNode("span",null,[a.isTipMust?(e.openBlock(),e.createElementBlock("span",Wi,"*")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",{class:"control-label-text",id:`${e.unref(n)}-label`},e.toDisplayString(a.label),9,qi),e.renderSlot(u.$slots,"labelExtend")])],2),e.createElementVNode("div",{class:e.normalizeClass(r.value)},[e.renderSlot(u.$slots,"default")],2)],10,Ki))}}),Yi={key:0,class:"form-group-btns-fixed"},Xi=["id"],Gi=["id"],ka=e.defineComponent({name:"ClFormGroupBtns",__name:"Index",props:{id:String,className:{type:String,default:""},isFixed:{type:Boolean,default:!1},isHorizontal:{type:Boolean,default:!1},colRatioHorizontal:String},setup(a){const o=a,n=o.id,t=e.computed(()=>{const l={"form-group-btns":!0};return s.getStringByJson(s.getJsonMerge(l,ee.getClassNameJson(o.className))," ")});return(l,i)=>a.isHorizontal?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isFixed?(e.openBlock(),e.createElementBlock("div",Yi,[e.createElementVNode("div",null,[e.createVNode(ln,{id:e.unref(n),className:t.value,colRatio:a.colRatioHorizontal},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","className","colRatio"])])])):(e.openBlock(),e.createBlock(ln,{key:1,id:e.unref(n),className:t.value,colRatio:a.colRatioHorizontal},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","className","colRatio"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.isFixed?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(n),class:"form-group-btns-fixed"},[e.createElementVNode("div",{class:e.normalizeClass(t.value)},[e.renderSlot(l.$slots,"default")],2)],8,Xi)):(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(n),class:e.normalizeClass(t.value)},[e.renderSlot(l.$slots,"default")],10,Gi))],64))}}),Qi=["id","aria-labelledby"],Zi={class:"form-group-title"},er={key:0,class:"tip-must"},tr=["id"],nr={class:"form-group-content"},ba=e.defineComponent({name:"ClFormGroupVertical",__name:"Index",props:{id:String,className:{type:String,default:""},label:String,isTipMust:{type:Boolean,default:!1},isPlaintext:{type:Boolean,default:!1}},setup(a){const o=a,n=o.id,t=e.computed(()=>{const l={"form-group":!0,"form-group-vertical":!0,"form-group-plaintext":o.isPlaintext};return s.getJsonMerge(l,ee.getClassNameJson(o.className))});return(l,i)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(n),class:e.normalizeClass(t.value),role:"group","aria-labelledby":`${e.unref(n)}-label`},[e.createElementVNode("div",Zi,[a.isTipMust?(e.openBlock(),e.createElementBlock("span",er,"*")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",{class:"form-group-title-label",id:`${e.unref(n)}-label`},e.toDisplayString(a.label)+":",9,tr),e.renderSlot(l.$slots,"labelExtend")]),e.createElementVNode("div",nr,[e.renderSlot(l.$slots,"default")])],10,Qi))}}),or={required:a=>!s.isEmpty(a),number:a=>{let o=!0;if(!s.isEmpty(a)){const n=s.removeReplace(a);o=/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i.test(n)}return o},integer:a=>{let o=!0;if(!s.isEmpty(a)){const n=s.removeReplace(a);o=/^-?\d+$/.test(n)}return o},integerPositive:a=>{let o=!0;if(!s.isEmpty(a)){const n=s.removeReplace(a);o=/^[1-9]\d*$/.test(n)}return o},alphanum:a=>{let o=!0;return s.isEmpty(a)||(o=/^\w+$/i.test(a)),o},email:a=>{let o=!0;return s.isEmpty(a)||(o=/^((([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&"\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(a)),o},minLen:(a,o)=>{let n=!0;return s.isEmpty(a)||(n=a.length>=parseInt(o,10)),n},maxLen:(a,o)=>{let n=!0;return s.isEmpty(a)||(n=a.length<=parseInt(o,10)),n},minByte:(a,o)=>{let n=!0;return s.isEmpty(a)||(n=s.getByteLen(a)>=parseInt(o,10)),n},maxByte:(a,o)=>{let n=!0;return s.isEmpty(a)||(n=s.getByteLen(a)<=parseInt(o,10)),n},minGreater:(a,o)=>{let n=!0;if(!s.isEmpty(a)){const t=s.removeReplace(a);n=parseFloat(t)>parseFloat(o)}return n},maxGreater:(a,o)=>{let n=!0;if(!s.isEmpty(a)){const t=s.removeReplace(a);n=parseFloat(t)<parseFloat(o)}return n},minGreaterEqual:(a,o)=>{let n=!0;if(!s.isEmpty(a)){const t=s.removeReplace(a);n=parseFloat(t)>=parseFloat(o)}return n},maxGreaterEqual:(a,o)=>{let n=!0;if(!s.isEmpty(a)){const t=s.removeReplace(a);n=parseFloat(t)<=parseFloat(o)}return n},phone:a=>{let o=!0;return s.isEmpty(a)||(o=/^1\d{10}$/.test(a)),o},equalto:(a,o)=>!s.isEmpty(a)&&!s.isEmpty(o)?a===o:!0,regular:(a,o)=>{let n=!0;return!s.isEmpty(a)&&!s.isEmpty(o)&&(n=new RegExp(o,"g").test(a)),n},urlHttp:a=>{let o=!0;return s.isEmpty(a)||(o=/^(http|https):\/\/[^\s]+$/.test(a)),o}},Ca=(a={})=>({type:s.isEmpty(a.type)?"tip":a.type,rules:s.getJsonMerge(or,a.rules),messages:s.getJsonMergeDeep({},a.messages)}),ar={key:1,class:"error-text-el"},Sa=e.defineComponent({name:"ClFormValidate",directives:{cltooltip:lt},__name:"Validate",props:{className:String,checkValue:[String,Number],rules:{type:Array,default:()=>[]},isCheck:{type:Boolean,default:!0},msgElementId:String,msgType:{type:String,validator:a=>["tip","text"].includes(a)},pElError:String,isShowMsg:{type:Boolean,default:!0}},setup(a,{expose:o}){const n=a,{optPageLanguage:t,getPageLanguage:l,getLanguageType:i}=jo();l("validate");const r=e.inject("$ClGlobals",null),c=e.useTemplateRef("refElTop"),u=e.useTemplateRef("refElMsg"),d=e.reactive({type:"",msgHtml:"",check:0}),m={form:null},p={rules:{},messages:{}};let h=null;const f=()=>{if(s.isUndefined(h)){const E=Ca(),k=r?.validate;k?s.isEmpty(k.rules)&&s.isEmpty(k.messages)?(h=s.isNonEmptyString(k.type)?{...E,type:k.type}:E,re.warn("ClFormValidate","[cl-form-validate] 全局校验规则表($ClGlobals.validate)缺少 rules/messages,已回退内置默认规则")):h={...E,...k,type:k.type??E.type,rules:k.rules??E.rules,messages:k.messages??E.messages}:(h=E,re.warn("ClFormValidate","[cl-form-validate] 未检测到全局校验规则表($ClGlobals.validate),已回退内置默认规则"))}return h},y=e.computed(()=>{const E={"data-validate-el":""};if(n.isCheck){switch(d.check){case 1:E["data-validate-success"]="";break;case 2:E["data-validate-error"]="";break}E["aria-invalid"]=d.check===2?"true":"false"}return E}),x=e.computed(()=>{const E={};return n.isCheck&&(E["panel-form-validate"]=!0),s.getJsonMerge(E,ee.getClassNameJson(n.className))}),N=e.computed(()=>{const E={"panel-validate-errors":!0};return E[`validate-errors-${d.type}`]=!0,E}),M=e.computed(()=>d.msgHtml.replace(/<[^>]*>/g," ").trim()),S=E=>{if(!s.isArray(E)){re.warn("ClFormValidate","[cl-form-validate] rules 应为数组,已忽略");return}const k={},T={};E.forEach(R=>{if(typeof R=="string"){if(!s.isEmpty(R))if(s.isExistValue(R,"|")){const q=R.split("|");k[q[0]]=q[1],q.length>2&&re.warn("ClFormValidate",'[cl-form-validate] 字符串规则 "'+R+'" 含多个参数段,仅取前两段,建议改用对象形式')}else k[R]=""}else if(typeof R=="object"&&!s.isUndefined(R)){let q=!0;s.isBoolean(R.isCheck)?q=R.isCheck===!0:(R.isCheck==="false"||R.isCheck==="0")&&(q=!1),!s.isEmpty(R.r)&&q&&(k[R.r]=String(R.p??""),s.isEmpty(R.m)||(T[R.r]=R.m??""))}}),p.rules=k,p.messages=T},C=()=>{const E=[],k={},T={};if(c.value&&!s.isEmpty(c.value.dataset)&&Object.keys(c.value.dataset).forEach(R=>{if(R.indexOf("validate")===0){const H=R.replace(/[A-Z]/g,V=>`-${V.toLowerCase()}`).split("-");if(H.length===3){const V=H[2].toLowerCase(),_=c.value.dataset[R];switch(H[1]){case"check":!s.isEmpty(_)&&_.toLowerCase()==="false"&&E.push(V);break;case"param":k[V]=_;break;case"message":T[V]=_;break}}}}),!s.isEmpty(p.rules)&&(!s.isEmpty(E)||!s.isEmpty(k))){const R={};for(const[q,H]of Object.entries(p.rules)){const V=q.toLowerCase();s.isExistValue(E,V)||(R[q]=s.isExistJsonKey(k,V)?k[V]:H)}p.rules=R}if(!s.isEmpty(p.messages)&&!s.isEmpty(T)){const R={};for(const[q,H]of Object.entries(p.messages)){const V=q.toLowerCase();R[q]=s.isExistJsonKey(T,V)?T[V]:H}p.messages=R}},O=E=>{const k={},T=f().rules??{};if(!s.isEmpty(p.rules)){const R=s.isEmpty(E)||s.getTypeof(E)==="number"&&s.isNaN(E),q=R?"":s.trim(E);for(const[H,V]of Object.entries(p.rules))if(s.isExistJsonKey(T,H)&&s.isFunction(T[H])){let _=!0;H==="required"?_=T.required(q):R||(_=T[H](q,V)),_||(k[H]=V)}else re.warn("ClFormValidate",'[cl-form-validate] 校验规则 "'+H+'" 未注册或非函数,已跳过')}return k},P=()=>{l("validate");const E=e.toRaw(t.value),k=e.toRaw(f().messages??{}),T=i(),R=s.isExistJsonKey(k,T.type)||s.isExistJsonKey(k,T.def)?s.getJsonMerge({},k[T.def]||{},k[T.type]||{}):k;return s.getJsonMerge({},E,R)},B=E=>{const k=P(),T=[];return Object.keys(E).forEach(R=>{let q="";if(s.isNonEmptyString(p.messages[R])?q=p.messages[R]:s.isNonEmptyString(k[R])&&(q=k[R]),!s.isEmpty(q)){const H=E[R],V=s.isExistValue(q,"%s")?q.replace(/%s/g,s.isEmpty(H)?"":String(H)):q;T.push(V)}}),T},F=()=>(m.form&&!m.form.isConnected&&(m.form=null),s.isUndefined(m.form)&&c.value&&(m.form=ee.getParent(c.value,"form")),m.form),L=()=>{F();let E=f().type;m.form&&!s.isEmpty(m.form.dataset.theme)&&(E=m.form.dataset.theme),s.isNonEmptyString(n.msgType)&&(E=n.msgType),E!=="tip"&&E!=="text"&&(E="tip"),d.type=E},I=()=>{let E=!0;return F(),!s.isUndefined(m.form)&&m.form&&(s.isUndefined(m.form.dataset.clValidate)||(E=!s.isUndefined(m.form.dataset.run))),E},z=E=>{const k=s.isNonEmptyString(E)?E:"";if(s.isEmpty(k))d.msgHtml="",d.check=1;else if(d.msgHtml=k,d.check=2,s.isNonEmptyString(n.msgElementId))try{const T=window.document.querySelector(n.msgElementId);T?e.nextTick(()=>{u.value&&T.isConnected?T.appendChild(u.value):u.value&&re.warn("ClFormValidate","[cl-form-validate] msgElementId 目标已脱离文档:"+n.msgElementId+",消息展示在组件内部")}):re.warn("ClFormValidate","[cl-form-validate] 未找到 msgElementId 目标元素:"+n.msgElementId+",消息展示在组件内部")}catch{re.warn("ClFormValidate","[cl-form-validate] msgElementId 选择器无效:"+n.msgElementId)}},W=()=>{d.msgHtml="",d.check=0},U=(E,k)=>{let T="";if(!s.isEmpty(E))switch(k){case"tip":T=E.map(R=>`<div>${R}</div>`).join("");break;case"text":T=E.join(",");break}return T},D=()=>{let E=!0;try{if(n.isCheck&&I()){L(),C();const k=O(n.checkValue);if(E=s.isEmpty(k),E)z("");else{let T=U(B(k),d.type);if(s.isEmpty(T)){const R=Object.keys(k)[0];T=s.isNonEmptyString(R)?R:"校验未通过"}z(T)}}else W()}catch{re.warn("ClFormValidate","[cl-form-validate] 校验执行异常,已按未通过处理"),W(),E=!1}return E},g=()=>{if(S(n.rules||[]),F(),c.value){const E=c.value;E.pElError=n.pElError,E.runValidate=D,E.runErrMsg=b,E.runReset=v}};e.onMounted(()=>{e.nextTick(()=>{g()})}),e.onBeforeUnmount(()=>{u.value?.remove()}),e.watch(()=>n.checkValue,()=>{D()}),e.watch([()=>n.rules,()=>n.isCheck],([E])=>{S(E||[]),D()},{deep:!0});const w=()=>D(),b=E=>{L(),z(E)},v=()=>{L(),W()};return o({runValidate:w,runErrMsg:b,runReset:v}),(E,k)=>{const T=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"refElTop",ref:c,class:x.value},y.value),[e.renderSlot(E.$slots,"default"),d.msgHtml.length>0&&a.isShowMsg?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"refElMsg",ref:u,class:e.normalizeClass(N.value),role:"alert"},[d.type==="tip"?e.withDirectives((e.openBlock(),e.createBlock(le,{key:0,name:"exclamation-circle-fill",class:"error-tip-el",role:"img","aria-label":M.value},null,8,["aria-label"])),[[T,d.msgHtml]]):d.type==="text"?(e.openBlock(),e.createElementBlock("span",ar,e.toDisplayString(d.msgHtml),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],16)}}}),Ae={loading:"data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAkKAAAALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQJCgAAACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQJCgAAACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkECQoAAAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkECQoAAAAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAkKAAAALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkECQoAAAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAkKAAAALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQJCgAAACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQJCgAAACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==",error:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABbFJREFUaEPtWV1sFFUUPufOLmjpD7G0nXtm11igD0Q0CpqImsiDEcGoIVEReeBBNGgkEQSjwUR4MQZ/MBr/MeFFFIkxYAR9MGr84cFijBJ9UFPD7r3TqtWWLsVuO3PM3ew20+3uzizTxpDsTSa7e+ec75zvnPtz7l2E87zhee4/NAj83xlsZKCRgZgRaAyhmAGMrV4zA5lM5sJEItGcz+dbhBDN5gGAZkRsQcTCd/Mwc0vpu+k3v5l5yHGcDUEPtdY7AeAsIp4t/5yYmCj0myefz//LzGfNY/p7enrGqjGtSEAp9ZgQYgsz07mGiJk3OY7zVklfKbULEZ88FzxE1L7vv+Q4ztPl+tMIZLPZFUKIb87FUFBHCLHQtu2+Up/WmuNi+r5/bSqVOh7EmUZAa70VAJ6PYwwRJ6SUyRKG67odzPxHHMyi7jYi2luTgOu6O5h5T1xjiLhDSvlsIAOfAcDKOLiI+KiU8pmwDGwGgFfjGCrqDhLRgkAWHmTml2PiPkBEr4URuAcA3o5pqKR+PxG9aX7M0DDaQEQHahJQSt2KiEdmiMA7RGQCUmha61jDiJlvcxznw7A5cAMzfz4TBHzfvzGVSn1qsDKZzErLsgyBac0skwBwwvf9HCKuBoD5VeRWSim/CMvAMkQ8MQME+ohoYZToE9HkapjNZq9AxFcQcUW5D8y83HGc72oSyGQyiy3L+qUeAsx8yMgj4p0BvZ1E9FRY9Jl5t+M4u4L2tNaPA0BBN9g8z+tJp9O/1iTQ39/f6fv+QB0ExoQQS4aGhv5qa2s7zsyXGl0hRJdt24W1P2TsbyWiF4L2lFL3IuK+ch+CmKV30zYyU/9YljVaB4EDRFSoeUrj3CwCUsrbw6JftPE9EV1ZloFhAGitkIGmdDpt6qjJVrEWcl03z8yTO2kImTuI6P2STDabfUQIsYqIbjJ91aJZhjkCANuZeSkArEbExeU2EXFcSjlnWn8l55RSg4h4UVgWELHPtu1FiDilzlFKmaxsNEa11ksA4KcwrLD3zPy34zjtkQhorU0RdkkYqJloRGRK5ClNKXUxIposFDax8kIOEfczcxsArI1goyTyOxF1RyKglPoBES+LAH4VEVVccrXWa4nogyKBXgBYXnR8DxH9XOz/EgCuj2AHmPlHx3Euj0RAa/0VAFwXAvw1EdU03tfXN7+7u3tIa73X87zD6XR6ygaZzWavEUJMKY9r2Kxor9okPsrMZkes1TYT0etRoldLxnXdF5l5SxgOIh6TUq6JlAGl1EFEvKsWqO/7C1Kp1GCY4bD3zDzHdd2TANBTS5aZ33McZ10kAlprM/k2VQNExENSypoEwxwPvndddyMz7w/R2UdE90UlYE5k5mRWsVWqCutxuJKs1tqUyetr4Owlom2RCLiuu4uZqx3A/yGi0D2iXkKnTp1amkgkTKVZERsRd0spp9RMxkbFSVzcTSePg2XOFNbjwcFBs9W35vP5Vs/z2oQQrYjY6vt+4dOs86ZI01o/AQA5Zs5ZljUyMTGRE0KMmN/JZHJkdHQ019TUNNLZ2ZmrVTP5vr89lUo9FykDWmsz1t6oN4pBeSHE+vHx8cN11lW1TE6e7oJCFTPQ39+/zvf9d+MQYOZlxc2rsBvHbUKIu23bPhgpA67rrmHmj2IY/bNYihiMWDcRJR8Q8RYp5dFIBAYGBhZ5njfl4FAvGSnlBUqph4QQ1eZSXZCWZS3u6ur6LRIBI6S1/hgAVkW0wsx8GhFPA8AIIuYA4OTw8PDDLS0txxBxXukutXiPOi8ibknsEyK6uZJO1ctds8qMjY2Zc+nVAFBwzjjJzCOJRCKXz+fPJJNJ46h5zti2fSaqU729vcmOjo5my7LmBS6MDSlzcdzseV7w8vjbuXPnHm9vbzfBmdYa/w9EjfpsyTUyMFuRjYrbyEDUSM2WXCMDsxXZqLjnfQb+A8eWU0/QfZYsAAAAAElFTkSuQmCC",attr:{timeOutId:"data-lazy-timeout-id"}};class Ea{options={loading:Ae.loading,error:Ae.error,observerOptions:{rootMargin:"0px",threshold:0},log:!1,callback:{}};_images=new WeakMap;constructor(o){this.config(o)}config(o={}){this.options=s.getJsonMergeDeep(this.options,o)}_initValue(o,n){let t="",l=this.options.loading,i=this.options.error,r=this.options.callback,c=this.options.delay;return s.isObject(o)?(t=o.src,l=s.isUndefined(o.loading)?this.options.loading:o.loading,i=s.isUndefined(o.error)?this.options.error:o.error,r=s.isUndefined(o.callback)?this.options.callback:o.callback,c=s.isUndefined(o.delay)?this.options.delay:o.delay):s.isString(o)?t=o:s.isUndefined(o)&&(t=n&&n.src||""),{src:t,loading:l,error:i,callback:r,delay:c}}mount(o,n){if(s.isUndefined(o))return;const t=s.isString(n)?n:n.value,{src:l,loading:i,error:r,callback:c,delay:u}=this._initValue(t,o);if(this._setCallback(o,"loading",c),o.setAttribute("src",i||Ae.loading),!this._checkIntersectionObserver()){this._setImageSrc(o,l,r,c),this._log(()=>{throw new Error("Not support IntersectionObserver!")});return}this._initIntersectionObserver(o,l,r,c,u)}update(o,n){if(s.isUndefined(o))return;this._realObserver(o)?.unobserve(o),o.hasAttribute(Ae.attr.timeOutId)&&(clearTimeout(Number(o.getAttribute(Ae.attr.timeOutId))),o.removeAttribute(Ae.attr.timeOutId));const t=s.isString(n)?n:n.value,{src:l,error:i,callback:r,delay:c}=this._initValue(t,o);this._initIntersectionObserver(o,l,i,r,c)}unmount(o){if(!s.isUndefined(o)){if(this._realObserver(o)?.unobserve(o),o.hasAttribute(Ae.attr.timeOutId)&&(clearTimeout(Number(o.getAttribute(Ae.attr.timeOutId))),o.removeAttribute(Ae.attr.timeOutId)),o.tagName.toLowerCase()==="img"){const n=o;n.onload=null,n.onerror=null}this._images.delete(o)}}_setImageSrc(o,n,t,l){if(o.tagName.toLowerCase()==="img"){const i=o;s.isEmpty(n)?(i.onload=null,this._setCallback(i,"error",l),this._realObserver(i)?.disconnect(),t?i.setAttribute("src",t):i.removeAttribute("src")):(this.options.isCrossOrigin&&(i.crossOrigin="Anonymous"),n&&i.getAttribute("src")!==n&&i.setAttribute("src",n),i.onload=()=>{n&&this._setCallback(i,"loaded",l)},i.onerror=()=>{i.onload=null,this._setCallback(i,"error",l),this._realObserver(i)?.disconnect(),t&&i.getAttribute("src")!==t&&i.setAttribute("src",t),this._log(()=>{throw new Error(`Image failed to load!And failed src was: ${n} `)})})}else o.style.backgroundImage=`url('${n}')`}_setCallback(o,n,t){switch(o?.setAttribute("lazy",n),n){case"loading":t?.loading&&t.loading(o);break;case"loaded":t?.loaded&&t.loaded(o);break;case"error":t?.error&&t.error(o);break}}_realObserver(o){return this._images.get(o)}_checkIntersectionObserver(){if(typeof window<"u"&&window!==null&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){if(!("isIntersecting"in window.IntersectionObserverEntry.prototype))try{Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}})}catch{return!1}return!0}return!1}_initIntersectionObserver(o,n,t,l,i){const r=this.options.observerOptions;this._images.set(o,new IntersectionObserver(c=>{Array.prototype.forEach.call(c,u=>{i&&i>0?this._delayedIntersectionCallback(o,u,i,n,t,l):this._intersectionCallback(o,u,n,t,l)})},r)),this._realObserver(o)?.observe(o)}_intersectionCallback(o,n,t,l,i){n.isIntersecting&&(this._realObserver(o)?.unobserve(n.target),this._setImageSrc(o,t,l,i))}_delayedIntersectionCallback(o,n,t,l,i,r){if(n.isIntersecting){if(n.target.hasAttribute(Ae.attr.timeOutId))return;const c=setTimeout(()=>{this._intersectionCallback(o,n,l,i,r),n.target.removeAttribute(Ae.attr.timeOutId)},t);n.target.setAttribute(Ae.attr.timeOutId,String(c))}else n.target.hasAttribute(Ae.attr.timeOutId)&&(clearTimeout(Number(n.target.getAttribute(Ae.attr.timeOutId))),n.target.removeAttribute(Ae.attr.timeOutId))}_log(o){this.options.log&&o()}}const _a=(a,o,n)=>{const t=new Ea(n);e.onMounted(()=>{e.nextTick(()=>{a.value&&t.mount(a.value,o)})}),e.onUnmounted(()=>{a.value&&t.unmount(a.value)}),e.watch(o,l=>{a.value&&t.update(a.value,l)})},lr=["id"],sr=["alt"],rt=e.defineComponent({name:"ClImage",__name:"Index",props:{id:{},className:{},src:{},alt:{},height:{},width:{},isCircle:{type:Boolean},fit:{},isCrossOrigin:{type:Boolean}},emits:["onInit"],setup(a,{emit:o}){const n=a,t=o,l=e.ref(s.isNonEmptyString(n.src)?n.src:""),i=e.useTemplateRef("refElImage"),r=e.computed(()=>s.isNonEmptyString(n.alt)?n.alt:""),c=n.id;_a(i,l,{callback:{loaded:()=>{p()},error:()=>{p()}},isCrossOrigin:n.isCrossOrigin});const u=e.computed(()=>{let h={"panel-image":!0,"imageBox-circle":n.isCircle};return h=s.getJsonMerge(h,ee.getClassNameJson(n.className)),h}),d=e.computed(()=>{const{width:h,height:f}=n,y={};return s.isNonEmptyString(h)&&(y.width=h),s.isNonEmptyString(f)&&(y.height=f),y}),m=e.computed(()=>{const{width:h,height:f,fit:y}=n,x={};return s.isNonEmptyString(y)&&(x["object-fit"]=y,s.isNonEmptyString(h)&&(x.width=h),s.isNonEmptyString(f)&&(x.height=f)),x});function p(){t("onInit")}return e.watch(()=>n.src,h=>{l.value=s.isNonEmptyString(h)?h:""}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c),class:e.normalizeClass(u.value),style:e.normalizeStyle(d.value)},[e.createElementVNode("img",{ref_key:"refElImage",ref:i,alt:r.value,style:e.normalizeStyle(m.value)},null,12,sr)],14,lr))}}),ir=["id"],rr=["type","inputmode","name","value","placeholder","disabled","readonly"],cr={key:0,class:"input-floating-label"},ur={key:3,class:"input-suffix"},En=e.defineComponent({name:"ClInputContainer",components:{ClIconFont:le},__name:"Container",props:{id:String,name:String,value:[String,Number],inputType:{type:String,default:"text"},inputmode:{type:String,default:""},autocomplete:{type:String,default:"off"},placeholder:String,label:String,isFloating:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isClean:{type:Boolean,default:!0},isShowSuffix:{type:Boolean,default:!1}},emits:["onInputText","onKeydown","onKeyup","onFocus","onBlur","onClear"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElInput"),c=e.computed(()=>{let B=t.name;return s.isEmpty(B)&&(B=`input_${s.getRandom(8)}`),B}),u=e.computed(()=>s.isEmpty(t.inputmode)?void 0:t.inputmode),d=e.computed(()=>{const B={};return s.isNonEmptyString(t.autocomplete)&&(B.autocomplete=t.autocomplete),B}),m=e.computed(()=>t.isClean&&!t.disabled&&!t.isReadonly),p=e.computed(()=>m.value&&!s.isEmpty(t.value)),h=e.computed(()=>t.isFloating?t.label||t.placeholder:""),f=e.computed(()=>({"input-container":!0,"input-clean":t.isClean,"input-suffix":t.isShowSuffix,"input-floating":t.isFloating})),y=B=>{const F=B.target;F&&l("onInputText",F.value)},x=B=>{l("onKeydown",B)},N=B=>{l("onKeyup",B)},M=()=>{l("onFocus")},S=()=>{l("onBlur")},C=()=>{l("onClear")};return o({getInputElement:()=>r.value,focus:()=>{r.value?.focus()}}),(B,F)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(f.value)},[e.createElementVNode("input",e.mergeProps({ref_key:"refElInput",ref:r,type:a.inputType,inputmode:u.value,name:c.value},d.value,{class:"form-control",value:a.value,placeholder:a.placeholder,disabled:a.disabled,readonly:a.isReadonly,onInput:y,onKeydown:x,onKeyup:N,onFocus:M,onBlur:S}),null,16,rr),h.value?(e.openBlock(),e.createElementBlock("label",cr,e.toDisplayString(h.value),1)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createBlock(le,{key:1,name:"close-circle-fill",class:"input-clear-icon","aria-label":"清除输入内容",role:"button",tabindex:"-1",onClick:e.withModifiers(C,["stop"]),onKeydown:[e.withKeys(e.withModifiers(C,["stop"]),["enter"]),e.withKeys(e.withModifiers(C,["stop","prevent"]),["space"])]},null,8,["onKeydown"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64)),a.isShowSuffix?(e.openBlock(),e.createElementBlock("div",ur,[e.renderSlot(B.$slots,"suffix")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))],10,ir))}}),dr=["id"],mr={key:0,class:"cl-plaintext-value"},pr={key:0,class:"input-group-prepend"},fr={class:"input-group-text"},gr={key:2,class:"input-group-append"},hr={class:"input-group-text"},at=e.defineComponent({name:"ClInput",components:{ClInputContainer:En},__name:"Index",props:{id:String,name:String,value:[String,Number],className:String,disabled:{type:Boolean,default:!1},theme:{type:String,default:"default"},inputType:String,inputmode:{type:String,default:""},autocomplete:{type:String,default:"off"},width:String,placeholder:String,label:String,isFloating:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isClean:{type:Boolean,default:!0},isPlaintext:{type:Boolean,default:!1},changeDelayTime:{type:Number,default:200}},emits:["update:value","update:modelValue","onChange","onFocus","onBlur","onChangeBlur","onKeyupEnter","onClear","onInit","onKeydown","onKeyup","onChangeDelay"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElContainer"),c=e.ref(!1),u=s.isString(t.value)?t.value:t.value!==void 0&&s.isNumber(t.value)&&s.isFinite(t.value)?t.value.toString():"",d=e.ref(u),m=e.ref(u),p=e.ref(u),h={prevDelayValue:u,valueDelayRun:!1};let f=null;const y=e.computed(()=>{let V={"panel-input":!0,"input-disabled":t.disabled,"input-readonly":t.isReadonly};return V=s.getJsonMerge(V,ee.getClassNameJson(t.className)),s.isEmpty(t.theme,"default")||(V[`input-${t.theme}`]=!0),V}),x=e.computed(()=>{const V={};return s.isNonEmptyString(t.width)&&(V.width=t.width),V}),N=V=>{M(),h.valueDelayRun=!0,f=setTimeout(()=>{f=null,m.value===V&&(h.valueDelayRun=!1,h.prevDelayValue!==V&&(h.prevDelayValue=V,l("onChangeDelay",V)))},t.changeDelayTime)},M=()=>{f&&(clearTimeout(f),f=null),h.valueDelayRun=!1},S=V=>{if(V!==m.value){m.value=V;const _=z(V);l("update:value",_),l("update:modelValue",_),l("onChange",_),N(_)}},C=V=>{c.value=!0,p.value=V,l("onFocus",V)},O=V=>{c.value=!1,l("onBlur",V),V!==p.value&&(p.value=V,l("onChangeBlur",V))},P=V=>{l("onKeyupEnter",V)},B=V=>{l("onKeydown",V)},F=V=>{l("onKeyup",V)},L=()=>{l("onClear")},I=()=>{e.nextTick(()=>{l("onInit")})},z=V=>s.isString(V)||s.isNumber(V)&&s.isFinite(V)?V.toString():"",W=()=>{r.value?.focus()},U=()=>{const V=z(t.value);s.isEmpty(V)||(d.value=V,m.value=V),I()};e.onMounted(()=>{U()}),e.onBeforeUnmount(()=>{M()}),e.watch(()=>t.value,V=>{const _=z(V);_!==d.value&&(d.value=_,m.value=_,h.prevDelayValue=_,h.valueDelayRun&&M())});const D=V=>{d.value=V,S(V)},g=V=>{B(V)},w=V=>{const _=V.key,A=V.keyCode;if(_==="Enter"||A===13){const Y=V.target,X=z(Y.value);P(X)}else F(V)},b=()=>{const V=z(d.value);C(V)},v=()=>{const V=z(d.value);O(V)},E=()=>{d.value="",S(""),L(),W()},k=()=>{const V=r.value;return V?V.getInputElement():null},T=()=>z(d.value);return o({getValue:T,getValueData:()=>({value:T(),show:d.value}),setValue:(V,_)=>{const A=z(V);d.value=A,m.value=A,h.prevDelayValue=A,h.valueDelayRun&&M(),_&&(l("update:value",A),l("update:modelValue",A))},focus:()=>{W()},getInputElement:k}),(V,_)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(y.value),style:e.normalizeStyle(x.value)},[a.isPlaintext?(e.openBlock(),e.createElementBlock("div",mr,e.toDisplayString(d.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[V.$slots.prepend||V.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({"input-group":!0,"input-group-focus":c.value})},[V.$slots.prepend?(e.openBlock(),e.createElementBlock("div",pr,[e.createElementVNode("span",fr,[e.renderSlot(V.$slots,"prepend")])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(En,{ref_key:"refElContainer",ref:r,value:d.value,inputType:a.inputType,inputmode:a.inputmode,autocomplete:a.autocomplete,name:a.name,placeholder:a.placeholder,disabled:a.disabled,isReadonly:a.isReadonly,isClean:a.isClean,isShowSuffix:!!V.$slots.suffix,label:a.label,isFloating:a.isFloating,onOnInputText:D,onOnKeydown:g,onOnKeyup:w,onOnFocus:b,onOnBlur:v,onOnClear:E},e.createSlots({_:2},[V.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"suffix")]),key:"0"}:{name:"suffix",fn:e.withCtx(()=>[]),key:"1"}]),1032,["value","inputType","inputmode","autocomplete","name","placeholder","disabled","isReadonly","isClean","isShowSuffix","label","isFloating"]),V.$slots.append?(e.openBlock(),e.createElementBlock("div",gr,[e.createElementVNode("span",hr,[e.renderSlot(V.$slots,"append")])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],2)):(e.openBlock(),e.createBlock(En,{key:1,ref_key:"refElContainer",ref:r,value:d.value,inputType:a.inputType,inputmode:a.inputmode,autocomplete:a.autocomplete,name:a.name,placeholder:a.placeholder,disabled:a.disabled,isReadonly:a.isReadonly,isClean:a.isClean,isShowSuffix:!!V.$slots.suffix,label:a.label,isFloating:a.isFloating,onOnInputText:D,onOnKeydown:g,onOnKeyup:w,onOnFocus:b,onOnBlur:v,onOnClear:E},e.createSlots({_:2},[V.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(V.$slots,"suffix")]),key:"0"}:{name:"suffix",fn:e.withCtx(()=>[]),key:"1"}]),1032,["value","inputType","inputmode","autocomplete","name","placeholder","disabled","isReadonly","isClean","isShowSuffix","label","isFloating"]))],64))],14,dr))}}),bt=e.defineComponent({name:"ClInputNumber",components:{ClInput:at},__name:"Index",props:{id:String,name:{type:String,default:""},value:{type:[String,Number],default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1},theme:{type:String,default:"default"},inputType:{type:String,default:""},inputmode:{type:String,default:""},autocomplete:{type:String,default:"off"},width:{type:String,default:""},placeholder:{type:String,default:""},label:String,isFloating:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isClean:{type:Boolean,default:!0},isNumber:{type:Boolean,default:!0},decimal:{type:Number,default:0,validator:a=>a>=-1&&a<=100&&a%1===0},isThousand:{type:Boolean,default:!0},isImmediateThousand:{type:Boolean,default:!0},changeDelayTime:{type:Number,default:200,validator:a=>s.isFinite(a)&&a>=0},isPlaintext:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","onChange","onFocus","onBlur","onChangeBlur","onKeyupEnter","onClear","onInit","onKeydown","onKeyup","onChangeDelay"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElInput"),c=e.ref(t.value),u=e.ref(t.value),d=e.computed(()=>{let k={"panel-input-number":!0};return k=s.getJsonMerge(k,ee.getClassNameJson(t.className)),s.getStringByJson(k," ")}),m=e.computed(()=>s.isNonEmptyString(t.inputmode)?t.inputmode:t.decimal===0?"numeric":"decimal"),p=k=>{if(k!==u.value){u.value=k;const T=M(k);l("update:value",T),l("update:modelValue",T),l("onChange",T)}},h=k=>{let T=s.isNumber(k);if(!T)if(s.isNaN(+k))k==="-"&&(T=!0);else{const R=k.split(".");R.length===2&&(T=(s.isNumber(R[0])||s.isEmpty(R[0]))&&(s.isEmpty(R[1])||s.isNumber(R[1])))}return T},f=(k,T,R=!0,q=!0)=>{let H=k;if(t.isNumber){let V=s.removeReplace(k);if(V.length>0)if(h(V)){if(V!=="-"){const{decimal:A}=t;if(R&&A!==0&&(A===-1||A>=0&&A<=100)&&A!==-1){const Y=parseFloat(V);if(s.isFinite(Y)){const X=Y.toFixed(A);V=X.indexOf("e")>-1?V:X}}if(q){const Y=V.split("."),X=s.isEmpty(Y[0])?"0":Y[0];if(V=t.isThousand?s.getFormatThousands(X):X,Y.length===2&&A!==0){const j=A===-1?Y[1]:Y[1].slice(0,A);V+=`.${j}`}}}}else V=T;else V="";H=V}return H},y=(k,T)=>{const R=T.split(""),q=new RegExp("^"+R.map(_=>_.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*?")),H=k.match(q);let V;return H&&(V=H[0].length),V},x=(k,T,R)=>{const q=ee.getFocusSelection(k);let H=T.substring(0,q.start);H=s.removeReplace(H);const V=T.substring(q.start);let _=h(H);H.indexOf(".")>-1&&V.indexOf(".")>-1&&(_=!1);let A=q.start;_?A=y(R,H):A=R.lastIndexOf(V),(s.isUndefined(A)||A>R.length||A<0)&&(A=R.length),e.nextTick(()=>{ee.setFocusSelection(k,A,A)})},N=()=>{const k=c.value;if(s.isEmpty(k))return k;{let T=k.toString();if(t.isNumber){const{decimal:R}=t;if(T=s.removeReplace(T),T==="-")return T;if(R!==0&&R!==-1){const V=parseFloat(T);if(s.isFinite(V)&&R>=0&&R<=100){const _=V.toFixed(R);T=_.indexOf("e")>-1?T:_}}const q=T.split("."),H=s.isEmpty(q[0])?"0":q[0];q[0]=t.isThousand?s.getFormatThousands(H):H,R===0?T=q[0]:q.length===2?(q[1]=R===-1?q[1]:s.getFillZero(q[1],R,"r"),T=q.join(".")):T=q[0]}return T}},M=k=>{let T="";if(!s.isEmpty(k)&&(T=k.toString(),t.isNumber&&T!=="-")){const{decimal:R}=t,q=T.split(".");let H=s.removeReplace(q[0]);if(q.length===2&&R!==0){let V="";R===-1?V=q[1]:V=s.getFillZero(q[1],R,"r"),H+=`.${V}`}T=H}return T},S=()=>{r.value?.focus()},C=()=>{if(!s.isEmpty(t.value)){const k=f(t.value,"");c.value=k,u.value=k}};e.onMounted(()=>{C()}),e.watch(()=>t.value,(k,T)=>{if(k!==T&&k!==c.value){let R=!0;if(t.isNumber){const q=s.removeReplace(k),H=s.removeReplace(c.value),V=s.isEmpty(q),_=s.isEmpty(H);V&&_?R=!1:!V&&!_&&(R=Number(q)!==Number(H))}if(R){const q=f(k,T);c.value=q,u.value=q}}}),e.watch([()=>t.isNumber,()=>t.decimal,()=>t.isThousand],()=>{const k=f(c.value,"");c.value=k,p(k)});const O=k=>{const T=f(k,u.value,!1,t.isImmediateThousand);c.value=T,r.value?.setValue(T),t.isNumber&&e.nextTick(()=>{const R=r.value?.getInputElement();R&&c.value===T&&x(R,k,String(T))}),p(T)},P=()=>{const k=N();c.value=k,u.value=k;const T=M(k);l("onFocus",T)},B=()=>{const k=N();c.value=k,u.value=k;const T=M(k);l("onBlur",T)},F=k=>{l("onChangeBlur",M(k))},L=k=>{l("onKeyupEnter",M(k))},I=k=>{l("onKeydown",k)},z=k=>{l("onKeyup",k)},W=()=>{l("onClear")},U=()=>{l("onInit")},D=k=>{l("onChangeDelay",M(k))},g=()=>M(c.value);return o({getValue:g,getValueData:()=>({value:g(),show:s.isEmpty(c.value)?"":c.value.toString()}),setValue:(k,T)=>{const R=s.isEmpty(k)?"":f(k,"");if(c.value=R,u.value=R,r.value?.setValue(R),T){const q=M(R);l("update:value",q),l("update:modelValue",q),l("onChange",q)}},focus:()=>{S()},getInputElement:()=>r.value?.getInputElement()??null}),(k,T)=>(e.openBlock(),e.createBlock(at,{ref_key:"refElInput",ref:r,id:e.unref(i),value:c.value,name:a.name,className:d.value,inputType:a.inputType,inputmode:m.value,autocomplete:a.autocomplete,placeholder:a.placeholder,label:a.label,isFloating:a.isFloating,disabled:a.disabled,isReadonly:a.isReadonly,isClean:a.isClean,width:a.width,theme:a.theme,isPlaintext:a.isPlaintext,changeDelayTime:a.changeDelayTime,onOnChange:O,onOnFocus:P,onOnBlur:B,onOnChangeBlur:F,onOnKeyupEnter:L,onOnKeydown:I,onOnKeyup:z,onOnClear:W,onOnInit:U,onOnChangeDelay:D},e.createSlots({_:2},[k.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"prepend")]),key:"0"}:void 0,k.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"append")]),key:"1"}:void 0,k.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(k.$slots,"suffix")]),key:"2"}:void 0]),1032,["id","value","name","className","inputType","inputmode","autocomplete","placeholder","label","isFloating","disabled","isReadonly","isClean","width","theme","isPlaintext","changeDelayTime"]))}}),vr=["id"],yr={key:0,class:"inputCaptcha-count"},_n=120,Bn=1e3,Ba=e.defineComponent({name:"ClInputCaptcha",components:{ClInputNumber:bt},__name:"Index",props:{id:{},value:{default:""},className:{},theme:{default:"default"},placeholder:{},autocomplete:{default:"one-time-code"},countdownMax:{default:_n},onSendBefore:{}},emits:["update:value","update:modelValue","onChange","onKeyupEnter","onSend","onError"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.reactive({value:s.isString(t.value)?t.value:"",isSend:!1,isCountdown:!1,countdown:_n}),c={intervalCountdownId:null,isSending:!1,isUnmounted:!1},u=e.computed(()=>{let C={"panel-input-captcha":!0};return C=s.getJsonMerge(C,ee.getClassNameJson(t.className)),C[`inputCaptcha-theme-${t.theme}`]=!0,C}),d=e.computed(()=>({"inputCaptcha-send":!0,"inputCaptcha-send-ing":r.isCountdown})),m=C=>{l("update:value",C),l("update:modelValue",C),l("onChange",C)},p=()=>{l("onKeyupEnter",r.value)},h=()=>{l("onSend")},f=()=>{const{countdownMax:C}=t;return s.isNumber(C)&&s.isFinite(C)&&C>0?Math.floor(C):_n},y=C=>s.isNonEmptyString(C)?C:"";e.onBeforeUnmount(()=>{c.isUnmounted=!0,c.intervalCountdownId&&(clearInterval(c.intervalCountdownId),c.intervalCountdownId=null)}),e.watch(()=>t.value,C=>{const O=y(C);r.value!==O&&(r.value=O)});const x=C=>{m(C)},N=()=>{p()},M=async()=>{if(r.isCountdown||c.isSending)return;c.isSending=!0;let C=!1;if(t.onSendBefore)if(!s.isFunction(t.onSendBefore))re.warn("ClInputCaptcha","InputCaptcha: onSendBefore 需为函数"),l("onError","onSendBefore 需为函数");else try{const O=await t.onSendBefore(r.value);s.isBoolean(O)?C=O:(re.warn("ClInputCaptcha","InputCaptcha: onSendBefore 需返回 boolean,本次按校验失败处理"),l("onError","onSendBefore 返回值需为 boolean"))}catch{C=!1,l("onError","发送前校验异常")}else C=!0;if(c.isSending=!1,!(c.isUnmounted||r.isCountdown)&&(r.isSend=C,C)){h(),r.isCountdown=!0,r.countdown=f();const O=Date.now()+r.countdown*Bn,P=setInterval(()=>{const B=Math.ceil((O-Date.now())/Bn);B<=0?(clearInterval(P),c.intervalCountdownId=null,r.countdown=f(),r.isCountdown=!1):r.countdown=B},Bn);c.intervalCountdownId=P}};return o({getValue:()=>r.value}),(C,O)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(u.value)},[e.createVNode(bt,{theme:a.theme,isNumber:!0,decimal:0,isThousand:!1,value:r.value,"onUpdate:value":O[0]||(O[0]=P=>r.value=P),placeholder:a.placeholder,autocomplete:a.autocomplete,isClean:!0,onOnKeyupEnter:N,onOnChange:x},null,8,["theme","value","placeholder","autocomplete"]),e.createElementVNode("div",{class:e.normalizeClass(d.value)},[r.isSend?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.isCountdown?(e.openBlock(),e.createElementBlock("span",yr,e.toDisplayString(r.countdown)+"秒后重发",1)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"inputCaptcha-btn",onClick:e.withModifiers(M,["stop"])}," 重新发送 "))],64)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"inputCaptcha-btn",onClick:e.withModifiers(M,["stop"])}," 发送验证码 "))],2)],10,vr))}});class Wn{optionsDrag;_isDragging;_bindRunDragStart;_bindRunDragIng;_bindRunDragEnd;constructor(o,n){this.optionsDrag=n,this._isDragging=!1,this._init(o)}_init(o){this._bindRunDragStart=this._runDragStart.bind(this),this._bindRunDragIng=this._runDraggIng.bind(this),this._bindRunDragEnd=this._runDragEnd.bind(this),ee.onListener(o,"mousedown",this._bindRunDragStart),ee.onListener(o,"touchstart",this._bindRunDragStart)}_runDragStart(o){if(this._isDragging)return;const n=ee.getClientXY(o);let t=!0;this.optionsDrag.start&&(t=this.optionsDrag.start(o,n)),t=s.isBoolean(t)?t:!0,t?(o.preventDefault(),o.stopPropagation(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,this._isDragging=!0,ee.onListener(window,"mousemove",this._bindRunDragIng),ee.onListener(window,"touchmove",this._bindRunDragIng),ee.onListener(window,"mouseup",this._bindRunDragEnd),ee.onListener(window,"touchend",this._bindRunDragEnd),ee.onListener(window,"contextmenu",this._bindRunDragEnd)):this._isDragging=!1}_runDraggIng(o){if(!this._isDragging)return;const n=ee.getClientXY(o);this.optionsDrag.ing&&this.optionsDrag.ing(o,n)}_runDragEnd(o){if(!this._isDragging)return;this._isDragging=!1;const n=ee.getClientXY(o);this.optionsDrag.end&&this.optionsDrag.end(o,n),this._offListener()}_offListener(){ee.offListener(window,"mousemove",this._bindRunDragIng),ee.offListener(window,"touchmove",this._bindRunDragIng),ee.offListener(window,"mouseup",this._bindRunDragEnd),ee.offListener(window,"touchend",this._bindRunDragEnd),ee.offListener(window,"contextmenu",this._bindRunDragEnd)}end(){this._isDragging=!1,this._offListener()}}class dn{options;_isWinResize;_isRunDelay;_runDelayFun;_bindWinResize;_objResizeObserver;constructor(o){this._isWinResize=s.isUndefined(o.element),this._isRunDelay=!!(!s.isBoolean(o.isDelay)||o.isDelay),this.options=o,this._init()}_init(){this._isRunDelay&&(this._runDelayFun=new va(this.options.callback,this.options.delayTime)),this._isWinResize?(this._bindWinResize=this._onWinResize.bind(this),ee.onListener(window,"resize",this._bindWinResize)):this._initResizeObserver()}_onWinResize(){this._isRunDelay?this._runDelayFun.run():this.options.callback&&this.options.callback()}_initResizeObserver(){window&&"ResizeObserver"in window&&(this._objResizeObserver=new ResizeObserver(o=>{const n=o[0];this._isRunDelay?this._runDelayFun.run(()=>{this.options.callback(n)}):this.options.callback(n)}),this._objResizeObserver.observe(this.options.element))}destroy(){this._isWinResize?ee.offListener(window,"resize",this._bindWinResize):this._objResizeObserver&&(this._objResizeObserver.disconnect(),this._objResizeObserver=null)}}const kr=["aria-disabled"],wn=e.defineComponent({name:"ClInputnumberstepperButton",__name:"Button",props:{className:{},disabled:{type:Boolean},checkDownBeforeCallback:{type:Function}},emits:["onLongDownStart","onLongDownEnd"],setup(a,{emit:o}){const n=a,t=o,l=e.useTemplateRef("refElButton"),i={longDownInterval:null,isMoveBoundary:!1,isLongDownActive:!1,isKeyDown:!1,dragEvent:null,sessionSource:null},r=e.computed(()=>{const S=s.getJsonMerge({"inputNumberStepper-controls":!0},ee.getClassNameJson(n.className));return S["inputNumberStepper-controls-disabled"]=!!n.disabled,S}),c=()=>{t("onLongDownStart")},u=S=>{t("onLongDownEnd",S)},d=()=>{let S=!0;if(n.checkDownBeforeCallback){try{S=n.checkDownBeforeCallback()}catch(C){re.warn("ClInputnumberstepperButton","长按开始回调执行失败,按允许处理",C),S=!0}S=s.isBoolean(S)?S:!0}return S},m=()=>{i.longDownInterval&&(clearInterval(i.longDownInterval),i.longDownInterval=null)},p=S=>{i.isLongDownActive&&i.sessionSource!==S||(i.isLongDownActive=!0,i.sessionSource=S,c(),m(),i.longDownInterval=setInterval(()=>{n.disabled?f():c()},200))},h=S=>{if(i.sessionSource!=="mouse")return;const C=S.target;l.value===S.target||l.value?.contains(C)?i.isMoveBoundary&&(i.isMoveBoundary=!1,!n.disabled&&d()&&p("mouse")):(m(),i.isMoveBoundary=!0)},f=(S,C)=>{if(i.isLongDownActive){if(S&&i.sessionSource&&S!==i.sessionSource)return;m(),i.isLongDownActive=!1,i.sessionSource=null,i.isKeyDown=!1,u(C)}},y=()=>{const S={start(C){if(n.disabled)return!1;const O=C,P=C;let B=!1;return(O.buttons===1||C.type==="touchstart"||(P.touches?.length??0)>0)&&(B=d(),B&&(i.isMoveBoundary=!1,p("mouse"))),B},ing:C=>{h(C)},end:()=>{f("mouse")}};l.value&&(i.dragEvent=new Wn(l.value,S))};e.onMounted(()=>{e.nextTick(()=>{y()})}),e.onBeforeUnmount(()=>{f(),i.dragEvent&&(i.dragEvent.end(),i.dragEvent=null)});const x=S=>{const C=S.key;if(C==="Enter"||C===" "){if(n.disabled)return;S.preventDefault(),!i.isKeyDown&&!i.isLongDownActive&&d()&&(i.isKeyDown=!0,p("keyboard"))}},N=S=>{const C=S.key;(C==="Enter"||C===" ")&&i.isKeyDown&&f("keyboard")},M=()=>{(i.isKeyDown||i.isLongDownActive)&&f(void 0,!0)};return(S,C)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"refElButton",ref:l,class:e.normalizeClass(r.value),role:"button",tabindex:"0","aria-disabled":n.disabled,onKeydown:x,onKeyup:N,onBlur:M},[e.renderSlot(S.$slots,"icon")],42,kr))}}),br=["id"],wa=e.defineComponent({name:"ClInputNumberStepper",components:{ClInputNumber:bt,ClInputnumberstepperButton:wn,ClIconFont:le},__name:"Index",props:{id:String,value:{type:[String,Number],default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:"large"},btnShowType:{type:String,default:"fixed"},btnTheme:{type:String,default:"leftRight",validator:a=>["leftRight","upDown"].indexOf(a)!==-1},btnShape:{type:String,default:"square",validator:a=>["square","circle"].indexOf(a)!==-1},placeholder:{type:String,default:""},isClean:{type:Boolean,default:!0},isTextRead:{type:Boolean,default:!1},min:Number,max:Number,isLoop:{type:Boolean,default:!1},decimal:{type:Number,default:0},fillZeroCount:{type:Number,default:0},btnStep:{type:Number,default:1},btnClsIconSub:{type:String,default:""},btnClsIconAdd:{type:String,default:""},operateBtnDownBeforeCallback:{type:Function,default:void 0},calculationOperateValueCallback:{type:Function,default:void 0},isPlaintext:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","onChange","onError"],setup(a,{emit:o}){const n=a,t=o,l=e.useTemplateRef("refElInput"),i=e.reactive({isFocus:!1}),r=e.ref(""),c=e.reactive({subtractDisabled:!1,addDisabled:!1}),u=n.id,d={upDown:{subtract:"angle-up",add:"angle-down"},leftRight:{subtract:"minus",add:"plus"}};let m=null;const p=()=>{const D=n.btnStep;return s.isFinite(D)&&D>0?D:1},h=e.computed(()=>{const D=n.decimal,g=p().toString();let w=D;if(g.indexOf(".")>-1){const b=g.split(".")[1].length;D<b&&(w=b)}return w===-1?-1:Math.max(0,Math.min(100,Math.round(w)))}),f=e.computed(()=>n.fillZeroCount>0&&s.isFinite(n.fillZeroCount)),y=e.computed(()=>{if(s.isNonEmptyString(n.btnClsIconSub))return"";const D=n.btnTheme||"leftRight";return d[D]?d[D].subtract:""}),x=e.computed(()=>{if(s.isNonEmptyString(n.btnClsIconAdd))return"";const D=n.btnTheme||"leftRight";return d[D]?d[D].add:""}),N=e.computed(()=>{if(n.isPlaintext){let g={"cl-plaintext-stepper":!0};return g=s.getJsonMerge(g,ee.getClassNameJson(n.className)),g}let D={"panel-input-number-stepper":!0,"inputNumberStepper-disabled":n.disabled||!1};return D=s.getJsonMerge(D,ee.getClassNameJson(n.className)),D[`inputNumberStepper-btn-${n.btnTheme||"leftRight"}`]=!0,D[`inputNumberStepper-btn-${n.btnShowType||"fixed"}`]=!0,(n.btnTheme||"leftRight")==="leftRight"&&n.btnShape==="circle"&&(D["inputNumberStepper-btnShape-circle"]=!0),D["inputNumberStepper-focus"]=i.isFocus,D[`inputNumberStepper-${n.size||"large"}`]=!0,D}),M=()=>{const D=r.value;t("update:value",D),t("update:modelValue",D),t("onChange",D)},S=D=>{s.isEmpty(D)||l.value?.setValue(D),r.value=D},C=(D,g)=>{s.isUndefined(D)&&(D=""),s.isString(D)&&(D=s.removeReplace(D));const w=D.toString();let b=D,v=!1,E=!1,k=!1;if(n.calculationOperateValueCallback){let T=null;try{const R=n.calculationOperateValueCallback({value:D,type:g});R&&(T=R)}catch{t("onError","数值计算回调执行失败")}T&&(s.isString(T.value)||typeof T.value=="number"&&s.isFinite(T.value))&&(b=T.value,v=T.subtractDisabled||!1,E=T.addDisabled||!1)}else{const T=g&&!s.isEmpty(g);if(T||!s.isEmpty(D)){const R=s.isEmpty(D)?0:Number(D);if(s.isFinite(R)){const q=n.min,H=n.max,{isLoop:V=!1}=n,_=s.isUndefined(q),A=s.isUndefined(H),Y=p();let X=R;if(T){X+=Y*(g==="subtract"?-1:1);const j=X.toString();if(j.indexOf(".")>-1){const $=j.split(".")[1].length,Z=h.value;Z>=0&&$>Z&&(X=Number(X.toFixed(Z)))}}!_&&X<=q?(V||(v=!0),b=X<q&&V&&!A?H:q,k=X!==b):!A&&X>=H?(V||(E=!0),b=X>H&&V&&!_?q:H,k=X!==b):b=X}}}if(typeof b=="number"&&h.value>0&&(b.toString().indexOf(".")>-1||w.indexOf(".")>-1)&&(b=b.toFixed(h.value)),!s.isString(b)&&!(typeof b=="number"&&s.isFinite(b))&&(b=""),f.value&&!s.isEmpty(b)&&s.isFinite(b)){const T=n.fillZeroCount;T>10&&re.warn("ClInputNumberStepper","fillZeroCount 超过 10,按 10 处理",T);const R=b.toString(),q=R.charAt(0)==="-",H=q?R.slice(1):R,V=H.indexOf("."),_=V>-1?H.slice(0,V):H,A=V>-1?H.slice(V):"",X=!/[eE]/.test(H)&&_.length<T?s.getFillZero(_,Math.min(T,10)):_;b=(q?"-":"")+X+A}return S(b.toString()),c.subtractDisabled=v,c.addDisabled=E,k},O=D=>{i.isFocus=D,D&&l.value?.focus()},P=D=>["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].indexOf(D.key)!==-1;e.onBeforeUnmount(()=>{m&&(clearTimeout(m),m=null)}),e.watch(()=>n.value,(D,g)=>{D!==g&&D!==r.value&&C(D)&&M()},{immediate:!0});const B=D=>{n.disabled||(D=s.removeReplace(D),S(D),m&&(clearTimeout(m),m=null),m=setTimeout(()=>{s.isEmpty(r.value)?(c.subtractDisabled=!1,c.addDisabled=!1):C(r.value),M()},100))},F=D=>{if(!n.disabled&&!n.isTextRead&&P(D)){D.preventDefault(),m&&(clearTimeout(m),m=null);const g=D.key;g==="ArrowLeft"||g==="ArrowDown"?C(r.value,"subtract"):C(r.value,"add"),M(),O(!0)}},L=D=>{!n.disabled&&!n.isTextRead&&P(D)&&(m&&(clearTimeout(m),m=null),O(!0))},I=()=>{O(!0)},z=D=>{O(!1),n.disabled||S(D)},W=D=>{m&&(clearTimeout(m),m=null),C(r.value,D)},U=D=>{m&&(clearTimeout(m),m=null),M(),D||O(!0)};return(D,g)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(u),class:e.normalizeClass(N.value)},[e.createVNode(bt,{ref_key:"refElInput",ref:l,value:r.value,placeholder:a.placeholder,disabled:a.disabled,isReadonly:a.isTextRead,isClean:a.isClean,isNumber:!f.value,decimal:h.value,isPlaintext:a.isPlaintext,theme:"icon",onOnChange:B,onOnKeydown:F,onOnKeyup:L,onOnFocus:I,onOnBlur:z},e.createSlots({_:2},[D.$slots.textPrepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(D.$slots,"textPrepend")]),key:"0"}:void 0]),1032,["value","placeholder","disabled","isReadonly","isClean","isNumber","decimal","isPlaintext"]),a.isPlaintext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(wn,{className:"inputNumberStepper-subtract","aria-label":"减少",disabled:a.disabled||c.subtractDisabled,checkDownBeforeCallback:a.operateBtnDownBeforeCallback,onOnLongDownStart:g[0]||(g[0]=w=>W("subtract")),onOnLongDownEnd:U},{icon:e.withCtx(()=>[e.createVNode(le,{name:y.value,className:a.btnClsIconSub},null,8,["name","className"])]),_:1},8,["disabled","checkDownBeforeCallback"]),e.createVNode(wn,{className:"inputNumberStepper-add","aria-label":"增加",disabled:a.disabled||c.addDisabled,checkDownBeforeCallback:a.operateBtnDownBeforeCallback,onOnLongDownStart:g[1]||(g[1]=w=>W("add")),onOnLongDownEnd:U},{icon:e.withCtx(()=>[e.createVNode(le,{name:x.value,className:a.btnClsIconAdd},null,8,["name","className"])]),_:1},8,["disabled","checkDownBeforeCallback"])],64))],10,br))}}),xa=e.defineComponent({name:"ClInputPassword",components:{ClIconFont:le,ClInput:at},__name:"Index",props:{id:String,name:String,value:[String,Number],className:String,disabled:Boolean,theme:{type:String,default:"default"},width:String,placeholder:String,label:String,isFloating:{type:Boolean,default:!1},isReadonly:Boolean,isClean:{type:Boolean,default:!0}},emits:["update:value","update:modelValue","onChange","onFocus","onBlur","onChangeBlur","onKeyupEnter","onClear","onInit","onKeydown","onKeyup"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElInput"),c=e.ref(!1),u=e.computed(()=>c.value?"text":"password"),d=e.computed(()=>{let I={"panel-input-password":!0};return I=s.getJsonMerge(I,ee.getClassNameJson(t.className)),s.getStringByJson(I," ")}),m=I=>{l("update:value",I),l("update:modelValue",I),l("onChange",I)},p=I=>{m(I)},h=I=>{l("onFocus",I)},f=I=>{l("onBlur",I)},y=I=>{l("onChangeBlur",I)},x=I=>{l("onKeyupEnter",I)},N=I=>{l("onKeydown",I)},M=I=>{l("onKeyup",I)},S=()=>{l("onClear")},C=()=>{l("onInit")},O=()=>{t.disabled||(c.value=!c.value)};return o({getValue:()=>r.value?.getValue(),getValueData:()=>r.value?.getValueData(),setValue:(I,z)=>{r.value?.setValue(I,z)},focus:()=>{r.value?.focus()}}),(I,z)=>(e.openBlock(),e.createBlock(at,{ref_key:"refElInput",ref:r,id:e.unref(i),name:a.name,value:a.value,inputType:u.value,className:d.value,placeholder:a.placeholder,label:a.label,isFloating:a.isFloating,disabled:a.disabled,isReadonly:a.isReadonly,isClean:a.isClean,width:a.width,theme:a.theme,onOnChange:p,onOnFocus:h,onOnBlur:f,onOnChangeBlur:y,onOnKeyupEnter:x,onOnKeydown:N,onOnKeyup:M,onOnClear:S,onOnInit:C},e.createSlots({suffix:e.withCtx(()=>[e.createVNode(le,{class:"input-password-icon",name:c.value?"eye":"eye-no",role:"button","aria-label":c.value?"隐藏密码":"显示密码","aria-disabled":a.disabled,tabindex:a.disabled?-1:0,onClick:O,onKeydown:[e.withKeys(e.withModifiers(O,["prevent"]),["enter"]),e.withKeys(e.withModifiers(O,["prevent"]),["space"])]},null,8,["name","aria-label","aria-disabled","tabindex","onKeydown"])]),_:2},[I.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(I.$slots,"prepend")]),key:"0"}:void 0,I.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(I.$slots,"append")]),key:"1"}:void 0]),1032,["id","name","value","inputType","className","placeholder","label","isFloating","disabled","isReadonly","isClean","width","theme"]))}}),Cr=["id"],Sr=["aria-label","tabindex","onKeydown"],Na=e.defineComponent({name:"ClInputSearch",components:{ClInput:at,ClIconFont:le},__name:"Index",props:{id:String,value:{type:String,default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},textLabel:{type:String,default:""},changeDelayTime:{type:Number,default:200},theme:{type:String,default:"icon",validator:a=>["icon","text"].indexOf(a)!==-1},location:{type:String,default:"right",validator:a=>["left","right"].indexOf(a)!==-1}},emits:["update:value","update:modelValue","onChange","onSearch","onFocus","onBlur"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElInput");let c=s.isNonEmptyString(t.value)?t.value:"";const u=e.ref(s.isNonEmptyString(t.value)?t.value:"");let d=null,m=null;const p=e.computed(()=>s.isFinite(t.changeDelayTime)&&t.changeDelayTime>=0?t.changeDelayTime:200),h=e.computed(()=>{let g="append";return s.isEmpty(t.location)||(g=t.location==="left"?"prepend":"append"),g}),f=e.computed(()=>{let g={"panel-input-search":!0,"input-search-disabled":t.disabled};const w=s.isEmpty(t.theme)?"icon":t.theme;return g[`input-search-${w}`]=!0,s.getJsonMerge(g,ee.getClassNameJson(t.className))}),y=g=>{l("update:value",g),l("update:modelValue",g),l("onChange",g)},x=g=>{l("onSearch",g)},N=g=>{l("onFocus",g)},M=g=>{l("onBlur",g)},S=()=>{d&&(clearTimeout(d),d=null)},C=()=>{m&&(clearTimeout(m),m=null)},O=()=>{S(),C(),c!==u.value&&(c=u.value,y(u.value)),x(u.value)};e.onBeforeUnmount(()=>{S(),C()}),e.watch(()=>t.value,g=>{u.value=s.isNonEmptyString(g)?g:"",c=u.value});const P=g=>{t.disabled||(S(),d=setTimeout(()=>{!t.disabled&&u.value===g&&c!==g&&(c=g,y(g)),d=null},p.value))},B=()=>{t.disabled||(C(),m=setTimeout(()=>{t.disabled||O()},p.value))},F=g=>{t.disabled||N(g)},L=g=>{t.disabled||M(g)},I=()=>{t.disabled||O()},z=()=>{t.disabled||(S(),C(),c="",y(""),x(""))};return o({getValue:()=>u.value,setValue:(g,w)=>{const b=s.isNonEmptyString(g)?g:"";S(),C(),c=b,u.value=b,w&&(l("update:value",b),l("update:modelValue",b))},focus:()=>{r.value?.focus()}}),(g,w)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(f.value)},[e.createVNode(at,{ref_key:"refElInput",ref:r,value:u.value,"onUpdate:value":w[0]||(w[0]=b=>u.value=b),theme:"icon",placeholder:a.placeholder,isClean:!0,disabled:a.disabled,onOnChange:P,onOnKeyupEnter:B,onOnFocus:F,onOnBlur:L,onOnClear:z},{[h.value]:e.withCtx(()=>[a.theme==="text"&&!e.unref(s).isEmpty(a.textLabel)?(e.openBlock(),e.createElementBlock("span",{key:0,role:"button","aria-label":a.textLabel,tabindex:a.disabled?-1:0,onClick:I,onKeydown:[e.withKeys(e.withModifiers(I,["prevent"]),["enter"]),e.withKeys(e.withModifiers(I,["prevent"]),["space"])]},e.toDisplayString(a.textLabel),41,Sr)):(e.openBlock(),e.createBlock(le,{key:1,name:"search",role:"button","aria-label":"搜索",tabindex:a.disabled?-1:0,onClick:I,onKeydown:[e.withKeys(e.withModifiers(I,["prevent"]),["enter"]),e.withKeys(e.withModifiers(I,["prevent"]),["space"])]},null,8,["tabindex","onKeydown"]))]),_:2},1032,["value","placeholder","disabled"])],10,Cr))}}),Er=["id"],_r=["name","placeholder","disabled","aria-label"],Pt="100px",Ta=e.defineComponent({name:"ClInputTextarea",__name:"Index",props:{id:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:String,default:""},height:{type:String,default:"100px"},placeholder:{type:String,default:""},isClean:{type:Boolean,default:!1},isAutoHeight:{type:Boolean,default:!1},changeDelayTime:{type:Number,default:200},heightMax:{type:String,default:""},isPlaintext:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","onChange","onInit","onKeydownEnter","onKeyupEnter","onFocus","onBlur","onChangeDelay"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElTextarea"),c=e.reactive({height:t.height||Pt}),u=e.ref(s.isString(t.value)?t.value:""),d={lastValue:s.isString(t.value)?t.value:"",prevDelayValue:s.isString(t.value)?t.value:"",valueDelayRun:!1},m=e.computed(()=>{let v=t.name;return s.isEmpty(v)&&(v=`textarea_${s.getRandom(8)}`),v}),p=e.computed(()=>t.isClean&&!t.disabled&&!s.isEmpty(u.value)),h=e.computed(()=>{let v={"panel-input-textarea":!0,"textarea-clean":t.isClean&&!t.isPlaintext};return t.isPlaintext&&(v["cl-plaintext-value"]=!0,v["cl-plaintext-value-pre"]=!0),v=s.getJsonMerge(v,ee.getClassNameJson(t.className)),v}),f=e.computed(()=>{const v=u.value;return s.isString(v)?v.replace(/<\/?br\s*\/?>/gi,`
|
|
8
|
-
`):""}),y=e.computed(()=>{const{width:v,heightMax:E}=t,k={};return s.isNonEmptyString(v)&&(k.width=v),t.isPlaintext||(s.isEmpty(c.height)||(k.height=c.height),s.isNonEmptyString(E)&&(k["max-height"]=E)),k});let x;const N=v=>{x&&(clearTimeout(x),x=null),d.valueDelayRun=!0,x=setTimeout(()=>{d.valueDelayRun=!1,d.prevDelayValue!==v&&(d.prevDelayValue=v,l("onChangeDelay",v))},Math.max(t.changeDelayTime,0))},M=v=>{v!==d.lastValue&&(d.lastValue=v,l("update:value",v),l("update:modelValue",v),l("onChange",v),N(v))},S=()=>{if(t.isAutoHeight){const v=r.value;if(v){v.style.height=t.height||Pt;const E=v.scrollHeight+v.scrollTop+(v.offsetHeight-v.clientHeight);v.style.height="100%",c.height=E>0?`${E}px`:t.height||Pt}}},C=()=>{r.value?.focus()},O=()=>{e.nextTick(()=>{l("onInit")})};e.onMounted(()=>{O()}),e.onBeforeUnmount(()=>{x&&(clearTimeout(x),x=null)}),e.watch(()=>t.value,(v,E)=>{v!==E&&(u.value=s.isString(v)?v:"",d.lastValue=s.isString(v)?v:"",requestAnimationFrame(()=>S()),d.valueDelayRun||(d.prevDelayValue=v||""))});const P=v=>{const E=v.target;if(!E)return;const k=E.value;requestAnimationFrame(()=>S()),M(k)},B=v=>{v.key==="Enter"&&l("onKeydownEnter",v)},F=v=>{v.key==="Enter"&&l("onKeyupEnter",v)},L=()=>{u.value="",M(""),C()},I=()=>{l("onFocus")},z=()=>{l("onBlur")},W=()=>s.trim(u.value);return o({getValue:W,getValueData:()=>({value:W(),show:u.value}),setValue:v=>{x&&(clearTimeout(x),x=null,d.valueDelayRun=!1);const E=s.isEmpty(v)?"":v;d.lastValue=E,d.prevDelayValue=E,u.value=E,S()},initHeight:()=>{c.height=t.height||Pt,t.isAutoHeight&&S()},focus:()=>{C()},getParentElement:()=>r.value?.parentElement||null}),(v,E)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(h.value),style:e.normalizeStyle(y.value)},[a.isPlaintext?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(f.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.withDirectives(e.createElementVNode("textarea",{ref_key:"refElTextarea",ref:r,class:"form-control text-area","onUpdate:modelValue":E[0]||(E[0]=k=>u.value=k),name:m.value,placeholder:a.placeholder,disabled:a.disabled,"aria-label":a.placeholder||"文本输入区域",onInput:P,onKeydown:B,onKeyup:F,onFocus:I,onBlur:z},null,40,_r),[[e.vModelText,u.value]]),p.value?(e.openBlock(),e.createBlock(le,{key:0,name:"close-circle-fill",class:"textarea-clear-icon","aria-label":"清除输入内容",onClick:e.withModifiers(L,["stop"])})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))],14,Er))}}),Br=["id"],wr=["id","href","target","rel"],xr=["id","href"],Nr=["id"],Da=e.defineComponent({name:"ClLink",__name:"Index",props:{id:String,className:{type:String,default:""},disabled:{type:Boolean,default:!1},url:{type:[String,Object],default:""},isHideUnderline:{type:Boolean,default:!1},isLight:{type:Boolean,default:!1},isTargetBlank:{type:Boolean,default:!1},isOutside:{type:Boolean,default:!1},isStopPropagation:{type:Boolean,default:!1},theme:{type:String,default:"link",validator:a=>["link","button"].indexOf(a)!==-1}},emits:{onClick:a=>!0,onHoverIn:a=>!0,onHoverOut:a=>!0},setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.computed(()=>!s.isEmpty(n.url)),r=e.computed(()=>s.isString(n.url)?n.url:(s.isEmpty(n.url)||re.warn("ClLink","Link 组件:url 为 Router 对象时不应同时使用 isOutside 或 isTargetBlank,请传入 String 类型 url"),"")),c=e.computed(()=>{if(n.theme==="button"){let N={btn:!0,"btn-disabled":n.disabled};const M=["btn-green","btn-red","btn-yellow","btn-white","btn-grayLight","btn-transparent","btn-text"],S=ee.getClassNameJson(n.className);return M.some(O=>!!S[O])||(N["btn-default"]=!0),s.getJsonMerge(N,S)}let x={"panel-link":!0,"btn-link":!0,"btn-link-disabled":n.disabled,"always-light":n.isLight,"underline-none":n.isHideUnderline};return x=s.getJsonMerge(x,ee.getClassNameJson(n.className)),x}),u=y=>{t("onClick",y)},d=y=>{t("onHoverIn",y)},m=y=>{t("onHoverOut",y)},p=y=>{n.disabled||(u(y),n.isStopPropagation&&(y?.preventDefault(),y?.stopPropagation()))},h=y=>{n.disabled||d(y)},f=y=>{n.disabled||m(y)};return(y,x)=>{const N=e.resolveComponent("router-link");return a.url&&i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,id:e.unref(l),class:e.normalizeClass(c.value),role:"link","aria-disabled":"true"},[e.renderSlot(y.$slots,"default")],10,Br)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.isOutside?(e.openBlock(),e.createElementBlock("a",{key:0,id:e.unref(l),class:e.normalizeClass(c.value),href:r.value,target:a.isTargetBlank?"_blank":void 0,rel:a.isTargetBlank?"noopener noreferrer":void 0,onClick:p,onMouseenter:h,onMouseleave:f},[e.createElementVNode("span",null,[e.renderSlot(y.$slots,"default")])],42,wr)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.isTargetBlank?(e.openBlock(),e.createElementBlock("a",{key:0,id:e.unref(l),class:e.normalizeClass(c.value),href:r.value,target:"_blank",rel:"noopener noreferrer",onClick:e.withModifiers(p,["stop"]),onMouseenter:h,onMouseleave:f},[e.createElementVNode("span",null,[e.renderSlot(y.$slots,"default")])],42,xr)):(e.openBlock(),e.createBlock(N,{key:1,id:e.unref(l),class:e.normalizeClass(c.value),to:a.url,onClick:e.withModifiers(p,["stop"])},{default:e.withCtx(()=>[e.createElementVNode("span",{onMouseenter:h,onMouseleave:f},[e.renderSlot(y.$slots,"default")],32)]),_:3},8,["id","class","to"]))],64))],64))],64)):(e.openBlock(),e.createElementBlock("a",{key:1,id:e.unref(l),class:e.normalizeClass(c.value),href:"javascript:",onClick:p,onMouseenter:h,onMouseleave:f},[e.createElementVNode("span",null,[e.renderSlot(y.$slots,"default")])],42,Nr))}}}),Tr={class:"loading-content"},Ia=e.defineComponent({name:"ClLoadFullCenter",__name:"FullCenter",props:{id:{},className:{},show:{type:Boolean,default:!0},teleportTarget:{},zIndex:{},background:{},theme:{},size:{},color:{}},setup(a){return(o,n)=>(e.openBlock(),e.createBlock(St,{show:a.show,id:a.id,zIndex:a.zIndex,teleportTarget:a.teleportTarget||"self",background:a.background||"var(--cl-overlay, rgba(0, 0, 0, 0.5))",duration:0,className:a.className,isLockScroll:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Tr,[e.createVNode(Te,{theme:a.theme,size:a.size,color:a.color},null,8,["theme","size","color"])])]),_:1},8,["show","id","zIndex","teleportTarget","background","className"]))}}),Dr=["id"],Ir={key:0,class:"loading-content"},Ar={key:1,class:"loading-nothing"},qn=e.defineComponent({name:"ClLoadIng",__name:"Ing",props:{id:{},className:{},theme:{},size:{},isLoadIng:{type:Boolean},isEmpty:{type:Boolean},noDataText:{},color:{}},setup(a){const o=a,n=o.id,t=e.computed(()=>s.getJsonMerge({"panel-load-ing":!0},ee.getClassNameJson(o.className)));return(l,i)=>a.isLoadIng||a.isEmpty?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.value),id:e.unref(n)},[a.isLoadIng?(e.openBlock(),e.createElementBlock("div",Ir,[e.createVNode(Te,{theme:a.theme,size:a.size,color:a.color},null,8,["theme","size","color"])])):a.isEmpty?(e.openBlock(),e.createElementBlock("div",Ar,[e.createElementVNode("div",null,[e.renderSlot(l.$slots,"nothingData",{},()=>[e.createElementVNode("span",null,e.toDisplayString(a.noDataText||"暂无数据"),1)])])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))],10,Dr)):e.createCommentVNode("",!0)}}),Mr=["aria-label"],Or={class:"loadScreen-main"},$r={key:0,class:"loadScreen-text"},Yn=e.defineComponent({name:"ClLoadScreen",__name:"Index",props:{id:String,className:String,teleportTarget:{type:String,default:"body"}},setup(a,{expose:o}){const{optA11yText:n}=sn(),l=a.id||`loadscreen-${s.getRandom(5)}`,i=e.ref(!1),r=e.reactive({id:l,text:""});let c=null;const u=p=>{c&&(clearTimeout(c),c=null),c=setTimeout(()=>{i.value=!1,c=null},p)};return e.onBeforeUnmount(()=>{c&&(clearTimeout(c),c=null),i.value=!1}),o({show:(p,h)=>{c&&(clearTimeout(c),c=null),r.id=s.isNonEmptyString(h?.id)?h.id:l,r.text=s.isNonEmptyString(p)?p:"",i.value=!0},hide:(p=0)=>{p>0?u(p):(c&&(clearTimeout(c),c=null),i.value=!1)}}),(p,h)=>(e.openBlock(),e.createBlock(St,{id:r.id,show:i.value,teleportTarget:a.teleportTarget,zIndex:1000002,duration:0,isLockScroll:!1,background:"var(--cl-mask, rgba(0, 0, 0, 0.4))",className:a.className},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"loadScreen-container",role:"alert","aria-label":e.unref(n).loading||"加载中"},[e.createElementVNode("div",Or,[r.text.length>0?(e.openBlock(),e.createElementBlock("span",$r,e.toDisplayString(r.text),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(Te,{color:"white",size:"large"})])],8,Mr)]),_:1},8,["id","show","teleportTarget","className"]))}}),Lr=["id"],Aa=e.defineComponent({name:"ClLoadWarp",__name:"Warp",props:{id:{},className:{},theme:{},size:{},isLoadIng:{type:Boolean},isEmpty:{type:Boolean},height:{},minHeight:{},noDataText:{},color:{}},setup(a){const o=a,n=o.id,t=e.computed(()=>s.getJsonMerge({"panel-load-warp":!0},ee.getClassNameJson(o.className))),l=e.computed(()=>{const i={},{height:r,minHeight:c,isLoadIng:u}=o;return u&&(i["min-height"]="100px"),s.isNonEmptyString(r)?i.height=r:s.isNonEmptyString(c)&&(i["min-height"]=c),i});return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.value),style:e.normalizeStyle(l.value),id:e.unref(n)},[e.renderSlot(i.$slots,"default"),e.createVNode(qn,{isLoadIng:a.isLoadIng,isEmpty:a.isEmpty,theme:a.theme,size:a.size,color:a.color,noDataText:a.noDataText},{nothingData:e.withCtx(()=>[e.renderSlot(i.$slots,"nothingData")]),_:3},8,["isLoadIng","isEmpty","theme","size","color","noDataText"])],14,Lr))}}),Fr=["a[href]","area[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","iframe","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])','[tabindex]:not([tabindex="-1"])'].join(",");function Co(a){return Array.from(a.querySelectorAll(Fr)).filter(o=>!(o.hasAttribute("disabled")||o.getAttribute("aria-hidden")==="true"||o.offsetParent===null&&getComputedStyle(o).position!=="fixed"))}function Vr(a,o,n={}){let t=null;const l=()=>a.value??null,i=u=>{if(!o.value)return;const d=l();if(!d)return;if(u.key==="Escape"){if(n.isEscapeClose&&!n.isEscapeClose()||!n.onEscape)return;u.stopPropagation(),n.onEscape();return}if(u.key!=="Tab")return;const m=Co(d);if(m.length===0){u.preventDefault(),d.focus();return}const p=m[0],h=m[m.length-1],f=document.activeElement;if(!(f?d.contains(f):!1)){u.preventDefault(),(u.shiftKey?h:p).focus();return}u.shiftKey&&f===p?(u.preventDefault(),h.focus()):!u.shiftKey&&f===h&&(u.preventDefault(),p.focus())},r=()=>{t=document.activeElement,document.addEventListener("keydown",i,!0),n.isAutoFocus!==!1&&requestAnimationFrame(()=>{const u=l();if(!u)return;const d=Co(u);d.length>0?d[0].focus():u.focus()})},c=()=>{document.removeEventListener("keydown",i,!0);const u=t;t=null,u&&requestAnimationFrame(()=>{u.isConnected&&u.focus()})};e.watch(o,u=>{u?r():c()},{immediate:!0}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",i,!0)})}const Rr=["id"],Pr={class:"modal-content"},zr=e.defineComponent({name:"ClModalTransition",__name:"BaseTransition",props:{id:String,className:String,isBackClick:{type:Boolean,default:!0},width:{type:String,default:"600px"},classTransitionEnter:{type:String,default:"animated fadeInDown"},classTransitionLeave:{type:String,default:"animated fadeOutUp"},teleportTarget:{type:String,default:""},isEscapeClose:{type:Boolean,default:!0},isFocusTrap:{type:Boolean,default:!0}},emits:{onClickBack:()=>!0},setup(a,{expose:o,emit:n}){const t=a,l=n,i=new Map;let r=!1;const c=new Map,u=e.useTemplateRef("refElParent"),d=e.useTemplateRef("refElDialog"),m=e.reactive({isShow:!1}),p=e.computed(()=>s.getJsonMerge({"panel-modal":!0},ee.getClassNameJson(t.className))),h=e.computed(()=>({modal:!0,fade:!0,show:m.isShow})),f=e.computed(()=>{const I={};return s.isEmpty(t.width)||(I.width=t.width),I}),y=()=>{l("onClickBack")},x=I=>{const z=i.get(I)??0;i.set(I,z+1),!(z>0||/\bmodal-open\b/.test(I.className))&&(c.set(I,I===document.body?{x:window.scrollX,y:window.scrollY}:{x:I.scrollLeft,y:I.scrollTop}),I.className+=" modal-open",I===document.body&&(r=!0))},N=I=>{const z=i.get(I)??0;if(!(z<=0))if(z===1){i.delete(I),I===document.body?r&&(I.className=I.className.replace(/\bmodal-open\b/g,"").trim(),r=!1):I.className=I.className.replace(/\bmodal-open\b/g,"").trim();const W=c.get(I);W&&(c.delete(I),requestAnimationFrame(()=>{I===document.body?window.scrollTo(W.x,W.y):(I.scrollTop=W.y,I.scrollLeft=W.x)}))}else i.set(I,z-1)},M=()=>{const I=t.teleportTarget;if(s.isEmpty(I)||I==="body")return document.body;if(I==="self"){const W=u.value?u.value.parentElement:null;if(!W)return null;let U=W;for(;U&&U!==document.body;){if(window.getComputedStyle(U).position!=="static")return U;U=U.parentElement}return document.body}const z=document.querySelector(I);return z===document.body?document.body:z??document.body},S=()=>{if(m.isShow){const I=M();I&&x(I)}else{const I=M();I&&N(I)}},C=()=>{m.isShow=!1};Vr(d,e.computed(()=>t.isFocusTrap&&m.isShow),{onEscape:()=>{t.isEscapeClose&&C()},isEscapeClose:()=>t.isEscapeClose}),e.onBeforeUnmount(()=>{m.isShow&&S()}),e.watch(()=>m.isShow,()=>{S()});const O=I=>{t.isBackClick&&I.currentTarget===I.target&&(C(),y())},P=()=>{},B=()=>{};return o({show:()=>{m.isShow=!0},hide:()=>{C()}}),(I,z)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(p.value),id:a.id,ref_key:"refElParent",ref:u},[e.createVNode(e.Transition,{"enter-active-class":a.classTransitionEnter,"leave-active-class":a.classTransitionLeave,onEnter:P,onAfterLeave:B},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(h.value),role:"dialog","aria-modal":"true",tabindex:"-1",ref_key:"refElDialog",ref:d},[e.createElementVNode("div",{class:"modal-wrapper",onClick:O},[e.createElementVNode("div",{class:"modal-dialog",style:e.normalizeStyle(f.value)},[e.createElementVNode("div",Pr,[e.renderSlot(I.$slots,"default")])],4)])],2),[[e.vShow,m.isShow]])]),_:3},8,["enter-active-class","leave-active-class"]),e.createVNode(St,{show:m.isShow,zIndex:999999,isLockScroll:!1,background:"var(--cl-mask, rgba(0, 0, 0, 0.3))",duration:150,teleportTarget:a.teleportTarget},null,8,["show","teleportTarget"])],10,Rr))}}),Hr={key:0,class:"modal-header"},Jr={class:"modal-title"},Ur={class:"modal-body"},jr={key:2,class:"modal-footer"},Kr={key:3,class:"modal-footer-hide"},Ma=e.defineComponent({name:"ClModal",__name:"Index",props:{id:String,className:String,posSubmitClose:{type:String,default:"CloseSubmit",validator:a=>["CloseSubmit","SubmitClose"].indexOf(a)!==-1},width:{type:String,default:"600px"},titleName:String,isBackClick:{type:Boolean,default:!0},isShowHeader:{type:Boolean,default:!0},isShowFooter:{type:Boolean,default:!0},isShowSubmit:{type:Boolean,default:!0},isShowSubmitLoad:{type:Boolean,default:!0},closeLabel:String,submitLabel:String,classTransitionEnter:{type:String,default:"animated fadeInDown"},classTransitionLeave:{type:String,default:"animated fadeOutUp"},teleportTarget:{type:String,default:""}},emits:{onSubmit:()=>!0,onClose:()=>!0},setup(a,{expose:o,emit:n}){const t=a,{optLocale:l}=jo(),i=(B,F)=>{l.value;const L=Le.getValue(`common.${B}`);return typeof L=="string"&&L.length>0?L:F},r=e.computed(()=>t.closeLabel||i("cancel","取消")),c=e.computed(()=>t.submitLabel||i("submit","提交")),u=n,d=e.useTemplateRef("refElTransition"),m=e.useTemplateRef("refElBtnSubmit"),p=e.reactive({isLoadBackClick:!0,disabledSubmit:!1}),h=()=>{u("onSubmit")},f=()=>{u("onClose")},y=()=>{d.value&&d.value.hide()},x=()=>{t.isShowSubmitLoad&&(p.isLoadBackClick=!1),h()},N=()=>{y(),f()},M=()=>{f()},S=()=>{O(),p.disabledSubmit=!1,d.value&&d.value.show()},C=()=>{p.isLoadBackClick=!0,t.isShowSubmitLoad&&m.value&&m.value.loadStop(),y()},O=()=>{p.isLoadBackClick=!0,t.isShowSubmitLoad&&m.value&&m.value.loadStop()};return o({show:S,hide:C,loadStop:O,disabledSubmit:B=>{const F=s.isBoolean(B)?B:!0;p.disabledSubmit=F}}),(B,F)=>(e.openBlock(),e.createBlock(zr,{id:a.id,className:a.className,isBackClick:a.isBackClick&&p.isLoadBackClick,classTransitionEnter:a.classTransitionEnter,classTransitionLeave:a.classTransitionLeave,width:a.width,teleportTarget:a.teleportTarget,onOnClickBack:M,ref_key:"refElTransition",ref:d},{default:e.withCtx(()=>[a.isShowHeader?(e.openBlock(),e.createElementBlock("div",Hr,[e.createElementVNode("h4",Jr,e.toDisplayString(a.titleName),1),e.createElementVNode("button",{type:"button",class:"close","aria-label":"关闭",onClick:N},[e.createVNode(le,{name:"close"})])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",Ur,[e.renderSlot(B.$slots,"default")]),a.isShowFooter?(e.openBlock(),e.createElementBlock("div",jr,[a.posSubmitClose==="CloseSubmit"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(ct,{label:r.value,color:"grayLight",onOnClick:N},null,8,["label"]),a.isShowSubmit?(e.openBlock(),e.createBlock(ct,{key:0,ref_key:"refElBtnSubmit",ref:m,disabled:p.disabledSubmit,isShowLoad:a.isShowSubmitLoad,loadColor:"var(--cl-bg, #ffffff)",isShowBackDrop:!0,label:c.value,onOnClick:x},null,8,["disabled","isShowLoad","label"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64)):a.posSubmitClose==="SubmitClose"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.isShowSubmit?(e.openBlock(),e.createBlock(ct,{key:0,ref_key:"refElBtnSubmit",ref:m,disabled:p.disabledSubmit,isShowLoad:a.isShowSubmitLoad,loadColor:"var(--cl-bg, #ffffff)",isShowBackDrop:!0,label:c.value,onOnClick:x},null,8,["disabled","isShowLoad","label"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(ct,{label:r.value,color:"grayLight",onOnClick:N},null,8,["label"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))])):(e.openBlock(),e.createElementBlock("div",Kr))]),_:3},8,["id","className","isBackClick","classTransitionEnter","classTransitionLeave","width","teleportTarget"]))}}),Wr=["id"],Oa=e.defineComponent({name:"ClNumberRoll",__name:"Index",props:{id:String,value:[String,Number],className:String,decimal:{type:Number,default:0},isThousand:{type:Boolean,default:!0},separator:{type:String,default:","},animationTime:{type:Number,default:.5}},setup(a){const o=a,n=o.id,t=e.ref("");let l=null;const i=e.computed(()=>{const d={"panel-number-roll":!0};return s.getJsonMerge(d,ee.getClassNameJson(o.className))}),r=d=>{const m=Math.max(0,Math.min(100,o.decimal)),p=o.separator,h=o.isThousand,y=d.toFixed(m).split(".");return h&&(y[0]=y[0].replace(/\B(?=(\d{3})+(?!\d))/g,()=>p)),y.join(".")},c=(d,m,p)=>{if(l!==null&&(cancelAnimationFrame(l),l=null),d===m){t.value=r(m);return}const h=performance.now(),f=p*1e3,y=x=>{const N=Math.min((x-h)/f,1),M=N===1?1:1-Math.pow(2,-10*N);t.value=r(d+(m-d)*M),N<1?l=requestAnimationFrame(y):l=null};l=requestAnimationFrame(y)},u=(d,m)=>{const p=o.animationTime,h=y=>{if(y==null||y==="")return 0;const x=Number(y);return s.isFinite(x)?x:0},f=h(d);if(p>0){const y=h(m);c(y,f,p)}else t.value=r(f)};return e.onMounted(()=>{e.nextTick(()=>{u(o.value)})}),e.onActivated(()=>{}),e.onDeactivated(()=>{l!==null&&(cancelAnimationFrame(l),l=null);const d=m=>{if(m==null||m==="")return 0;const p=Number(m);return s.isFinite(p)?p:0};t.value=r(d(o.value))}),e.onBeforeUnmount(()=>{l!==null&&(cancelAnimationFrame(l),l=null)}),e.watch(()=>o.value,(d,m)=>{d!==m&&u(d,m)}),(d,m)=>(e.openBlock(),e.createElementBlock("span",{id:e.unref(n),class:e.normalizeClass(i.value)},e.toDisplayString(t.value),11,Wr))}}),qr=["id"],Yr={key:0,class:"progress"},Xr=["aria-valuenow"],Gr=["aria-valuenow"],Qr={class:"progress-circular-line circular-line-left"},$a=e.defineComponent({name:"ClProgress",__name:"Index",props:{id:String,className:String,ratio:{type:[Number,String],required:!0},theme:{type:String,default:"horizontal",validator:a=>["horizontal","circular"].includes(a)},color:String,isShowNum:{type:Boolean,default:!0},isAnimation:{type:Boolean,default:!0},diameter:{type:String,default:"50px"},showNumText:String,showNumPos:{type:String,default:"out-center"},showNumTrigger:{type:String,default:"hover"},showNumColor:String},setup(a){const o=a,n=o.id,t=e.useTemplateRef("refElTopParent"),l=e.useTemplateRef("refElBar"),i=e.reactive({isHorizontal:o.theme==="horizontal",isCircular:o.theme==="circular",ratioHundred:"0%",circularLeftRotate:-45,circularLeftTime:0,circularRightRotate:-45,circularRightTime:0,posText:{inOut:"out",lcr:"center",isOverflow:!1}}),r={lastRatio:"",lastRotateLeft:-45,lastRotateRight:-45,runTimeCircularRotate:null,_initVersion:0,_resizeTimer:null,resizeEvent:null},c=e.computed(()=>{let S="";const{showNumText:C}=o;if(s.isNonEmptyString(C))S=C;else{let O=i.ratioHundred;O=O.substring(0,O.length-1),S=s.getFormatThousands(O)+"%"}return S}),u=e.computed(()=>{const S={"panel-progress":!0};S[`progress-${o.theme}`]=!0;const{className:C,isShowNum:O,showNumTrigger:P}=o;return O&&P!=="none"&&(S[`progress-${P}-num`]=!0),Object.assign(S,ee.getClassNameJson(C)),S}),d=e.computed(()=>({"progress-bar":!0,"progress-bar-striped":o.isAnimation,"striped-animation":o.isAnimation})),m=e.computed(()=>{const S={};return i.isCircular&&(s.isEmpty(o.diameter)||(S.width=o.diameter,S.height=o.diameter)),S}),p=e.computed(()=>{const S={};if(S.width=i.ratioHundred,s.isEmpty(o.color)||(S["background-color"]=o.color),i.isHorizontal&&i.posText.inOut==="in"){let C="center";switch(i.posText.lcr){case"left":C="flex-start";break;case"center":C="center";break;case"right":C="flex-end";break;default:C="center";break}i.posText.isOverflow&&(C="flex-start"),S["justify-content"]=C}return S}),h=e.computed(()=>{const S={},{showNumColor:C}=o;if(s.isNonEmptyString(C)&&(S.color=C),i.isHorizontal&&i.posText.inOut==="out")switch(i.posText.lcr){case"left":S.left="0";break;case"center":break;case"right":S.right="0";break}return S}),f=e.computed(()=>{const S={};return S.transform=`rotate(${i.circularRightRotate}deg)`,i.circularRightTime>0&&(S["transition-duration"]=`${i.circularRightTime}ms`),s.isEmpty(o.color)||(S["border-bottom-color"]=o.color,S["border-right-color"]=o.color),S}),y=e.computed(()=>{const S={};return S.transform=`rotate(${i.circularLeftRotate}deg)`,i.circularLeftTime>0&&(S["transition-duration"]=`${i.circularLeftTime}ms`),s.isEmpty(o.color)||(S["border-bottom-color"]=o.color,S["border-right-color"]=o.color),S}),x=()=>{const{showNumPos:S}=o;if(s.isEmpty(S))return;const C=S.split("-");C.length===2?(i.posText.inOut=s.isExistValue(["in","out"],C[0])?C[0]:"out",i.posText.lcr=s.isExistValue(["left","center","right"],C[1])?C[1]:"center"):re.warn("ClProgress",'showNumPos 格式无效,期望 "in/out-left/center/right",实际传入',S)},N=S=>{let C=s.isEmpty(S)?0:Number(S);if(s.isNaN(C)&&(C=0),C<=0?C=0:C>=100&&(C=100),i.ratioHundred=`${C}%`,i.isCircular){r.runTimeCircularRotate&&clearTimeout(r.runTimeCircularRotate);const O=C/100*360;let P=0,B=0;O<180?(P=O+-45,B=-45):(P=135,B=O-180-45);let F=!0;s.isEmpty(r.lastRatio)||(F=C>=Number(r.lastRatio));let I=0,z=0;const W=Math.abs(P-r.lastRotateRight),U=Math.abs(B-r.lastRotateLeft);if(W>0||U>0){const w=400/(W+U);I=W*w,z=U*w}const D=++r._initVersion;F?(i.circularRightRotate=P,i.circularRightTime=I,e.nextTick(()=>{D===r._initVersion&&(r.runTimeCircularRotate=setTimeout(()=>{i.circularLeftRotate=B,i.circularLeftTime=z},I))})):(i.circularLeftRotate=B,i.circularLeftTime=z,e.nextTick(()=>{D===r._initVersion&&(r.runTimeCircularRotate=setTimeout(()=>{i.circularRightRotate=P,i.circularRightTime=I},z))})),r.lastRotateRight=P,r.lastRotateLeft=B}r.lastRatio=String(C)},M=()=>{x(),N(o.ratio),l.value&&(r.resizeEvent=new dn({element:l.value,callback:()=>{r._resizeTimer&&clearTimeout(r._resizeTimer),r._resizeTimer=setTimeout(()=>{if(o.isShowNum&&i.isHorizontal&&i.posText.inOut==="in"&&t.value){const S=t.value.querySelector(".progress-bar"),C=t.value.querySelector(".progress-num");if(S&&C){const O=S.clientWidth,P=C.clientWidth;let B=!1;O===0&&P===0?B=!1:O===0&&P>0?B=!0:B=O>0&&P>O,i.posText.isOverflow=B}}},150)}}))};return e.onMounted(()=>{e.nextTick(()=>{M()})}),e.onUnmounted(()=>{r._resizeTimer&&clearTimeout(r._resizeTimer),r.runTimeCircularRotate&&clearTimeout(r.runTimeCircularRotate),r.resizeEvent&&r.resizeEvent.destroy()}),e.watch(()=>o.ratio,(S,C)=>{S!==C&&N(S)}),(S,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:t,id:e.unref(n),class:e.normalizeClass(u.value),style:e.normalizeStyle(m.value)},[i.isHorizontal?(e.openBlock(),e.createElementBlock("div",Yr,[e.createElementVNode("div",{ref_key:"refElBar",ref:l,class:e.normalizeClass(d.value),style:e.normalizeStyle(p.value),role:"progressbar","aria-valuenow":Number(i.ratioHundred.replace("%","")),"aria-valuemin":"0","aria-valuemax":"100"},[a.isShowNum&&i.posText.inOut==="in"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"progress-num",style:e.normalizeStyle(h.value)},e.toDisplayString(c.value),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],14,Xr)])):i.isCircular?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"progress-circular-line circular-line-right",role:"progressbar","aria-valuenow":Number(i.ratioHundred.replace("%","")),"aria-valuemin":"0","aria-valuemax":"100"},[e.createElementVNode("div",{class:"progress-circular-bar",style:e.normalizeStyle(f.value)},null,4)],8,Gr),e.createElementVNode("div",Qr,[e.createElementVNode("div",{class:"progress-circular-bar",style:e.normalizeStyle(y.value)},null,4)])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64)),a.isShowNum&&i.posText.inOut==="out"?(e.openBlock(),e.createElementBlock("span",{key:3,class:"progress-num",style:e.normalizeStyle(h.value)},e.toDisplayString(c.value),5)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))],14,qr))}}),Zr=["id"],ec={key:0,class:"cl-plaintext-value"},tc=["id","name","value","disabled","checked","onClick"],nc=["for"],oc={key:0},La=e.defineComponent({name:"ClRadio",directives:{cltooltip:lt},__name:"Index",props:{id:String,name:{type:String,required:!0},value:{type:[String,Number],required:!0},className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},width:String,isInline:{type:Boolean,default:!0},tipMode:{type:String,default:"tooltip",validator:a=>["tooltip","clickCallback"].includes(a)},checkChangeBefore:{type:Function,default:void 0},isPlaintext:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","onChange","onInit","onError","onTipClick"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`rd-${s.getRandom(8)}`,r=s.isEmpty(t.name)?i+"_name":t.name,c=t.id,u=e.ref(t.value?.toString()||"");let d={};const m=e.ref(0),p=e.ref(!1),h={isProcessing:!1,_initEmitted:!1},f=e.computed(()=>t.isPlaintext?[]:t.list),y=e.computed(()=>{t.list,m.value;const b=u.value;if(s.isEmpty(b))return"";const v=s.isExistJsonKey(d,b)?d[b]:void 0;return v&&s.isNonEmptyString(v.name)?v.name:b}),x=e.computed(()=>s.getJsonMerge({"panel-radio":!0},ee.getClassNameJson(t.className))),N=e.computed(()=>{const b={radio:!0,"radio-default":!0};return b["radio-inline"]=t.isInline??!0,b}),M=b=>{l("update:value",b),l("update:modelValue",b)},S=b=>{const v=b.id?.toString()??"";M(v),l("onChange",v,s.getJsonClone(b))},C=()=>{h._initEmitted||(h._initEmitted=!0,e.nextTick(()=>{l("onInit")}))},O=b=>{const v={},{width:E}=t;return b&&!s.isEmpty(b.width)?v.width=b.width:s.isEmpty(E)||(v.width=t.width),v},P=()=>s.isExistJsonKey(d,u.value)?u.value:"",B=b=>{d=s.isEmpty(b)?{}:s.getJsonByList(b),m.value+=1},F=()=>{if(p.value){const b=s.isEmpty(u.value)?"":u.value;s.isExistJsonKey(d,b)||(u.value="",M(""))}},L=b=>{b!==u.value&&(u.value=b?.toString()||"")},I=()=>{p.value=t.list.length!==0,B(t.list),F()};e.onMounted(()=>{e.nextTick(()=>{I()})}),e.onBeforeUnmount(()=>{d={},p.value=!1,h._initEmitted=!1}),e.watch(p,b=>{b&&C()}),e.watch(()=>t.list,b=>{p.value||(p.value=!0,b.length===0&&F(),C())},{deep:!0}),e.watch([()=>t.value,()=>t.list],([b,v])=>{const E=v||[];!p.value&&E.length>0&&(p.value=!0,C()),B(E),L(b),F()},{deep:!0});const z=b=>{l("onTipClick",b)},W=async b=>{if(!(!b||b.isDisabled||t.disabled||h.isProcessing)&&!s.isEmpty(b.id)){h.isProcessing=!0;try{const v=String(b.id??"");if(v===u.value)return;let E=!0;if(t.checkChangeBefore)try{E=await t.checkChangeBefore(v),E=s.isBoolean(E)?E:!0}catch{E=!1}if(t.disabled||b.isDisabled)return;E&&(u.value=v,S(b))}catch(v){l("onError",v)}finally{h.isProcessing=!1}}},U=()=>P();return o({getValue:U,getValueData:()=>{const b=U();return s.isExistJsonKey(d,b)?s.getJsonClone(d[b]):{}},setValue:b=>{h.isProcessing||(L(b),F())},runInitComplete:()=>{p.value||(p.value=!0,B(t.list),L(t.value),F(),C())}}),(b,v)=>{const E=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(x.value),id:e.unref(c)},[a.isPlaintext?(e.openBlock(),e.createElementBlock("div",ec,e.toDisplayString(y.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(k,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${i}-${k.id??""}-${T}`},[k&&(k.isShow||k.isShow===void 0)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(N.value),style:e.normalizeStyle(O(k))},[e.createElementVNode("span",null,[e.createElementVNode("span",null,[e.createElementVNode("input",{type:"radio",id:`${i}_${e.unref(r)}_${k.id??""}`,name:e.unref(r),value:k.id??"",disabled:k.isDisabled||a.disabled,checked:(k.id?.toString()??"")===u.value,onClick:R=>W(k)},null,8,tc),e.createElementVNode("label",{for:`${i}_${e.unref(r)}_${k.id??""}`},[e.renderSlot(b.$slots,"default",{data:k},()=>[k.icon&&k.icon.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("span",oc,[e.createVNode(le,{name:k.icon},null,8,["name"])])),[[E,{html:k.name,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(k.name),1)],64))])],8,nc)]),k.tipMsg&&k.tipMsg.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.tipMode==="tooltip"?e.withDirectives((e.openBlock(),e.createBlock(le,{key:0,name:e.unref(s).isNonEmptyString(k.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(k.tipIcon)?k.tipIcon:void 0,class:"radio-icon-tip"},null,8,["name","className"])),[[E,{html:k.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createBlock(le,{key:1,name:e.unref(s).isNonEmptyString(k.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(k.tipIcon)?k.tipIcon:void 0,class:"radio-icon-tip",onClick:e.withModifiers(R=>z(k),["stop"])},null,8,["name","className","onClick"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))),128))],10,Zr)}}}),ac=["id"],lc=["id","name","checked","disabled"],sc=["for"],ic={key:0},Fa=e.defineComponent({name:"ClRadioOne",directives:{cltooltip:lt},__name:"One",props:{id:{type:String,default:""},name:{type:String,default:""},value:{type:Boolean,default:!1},className:{type:String,default:""},disabled:{type:Boolean,default:!1},forId:{type:String,default:""},label:{type:String,default:""},icon:{type:String,default:""},tipMsg:{type:String,default:""},tipIcon:{type:String,default:""},tipMode:{type:String,default:"tooltip",validator:a=>["tooltip","clickCallback"].includes(a)}},emits:{"update:value":a=>!0,"update:modelValue":a=>!0,onChange:a=>!0,onTipClick:()=>!0},setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.computed(()=>s.isEmpty(n.forId)?`rd_${n.name||""}_${s.getRandom(8)}`:n.forId),r=e.computed(()=>{const m={"panel-radio-one":!0,radio:!0,"radio-default":!0,"radio-inline":!0};return s.getJsonMerge(m,ee.getClassNameJson(n.className))}),c=m=>{t("update:value",m),t("update:modelValue",m),t("onChange",m)},u=()=>{t("onTipClick")},d=m=>{const p=m.currentTarget;p&&p.checked&&c(!0)};return(m,p)=>{const h=e.resolveDirective("cltooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),id:e.unref(l)},[e.createElementVNode("span",null,[e.createElementVNode("span",null,[e.createElementVNode("input",{type:"radio",id:i.value,name:a.name,checked:a.value,disabled:a.disabled,onClick:d},null,8,lc),e.createElementVNode("label",{for:i.value},[a.icon&&a.icon.length>0?e.withDirectives((e.openBlock(),e.createElementBlock("span",ic,[e.createVNode(le,{name:a.icon},null,8,["name"])])),[[h,{html:a.label,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.label),1)],64))],8,sc)]),a.tipMsg&&a.tipMsg.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.tipMode==="tooltip"?e.withDirectives((e.openBlock(),e.createBlock(le,{key:0,name:e.unref(s).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"radio-icon-tip"},null,8,["name","className"])),[[h,{html:a.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createBlock(le,{key:1,name:e.unref(s).isNonEmptyString(n.tipIcon)?void 0:"question-circle",className:e.unref(s).isNonEmptyString(n.tipIcon)?n.tipIcon:void 0,class:"radio-icon-tip",onClick:e.withModifiers(u,["stop"])},null,8,["name","className"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],10,ac)}}}),rc=["id"],cc=e.defineComponent({name:"ClSliderBar",__name:"Bar",props:{id:String,className:String,left:{type:Number,default:0},width:{type:Number,default:0},disabled:{type:Boolean,default:!1},isVertical:{type:Boolean,default:!1},isBarDrag:{type:Boolean,default:!1}},emits:{onMoveStart:()=>!0,onMoveIng:a=>!0,onMoveEnd:()=>!0,onMouseover:()=>!0,onMouseout:()=>!0,onClick:a=>!0},setup(a,{emit:o}){const n=a,t=o,l=e.inject("$SliderTop"),i=e.useTemplateRef("refElBar"),r=n.id,c=e.reactive({left:n.left}),u=e.reactive({isClick:!1,isDragging:!1,dragStart:0,dragStartRatio:0}),d=e.ref(null),m=e.computed(()=>{let C={"slider-bar":!0,"slider-bar-drag":n.isBarDrag};return C=s.getJsonMerge(C,ee.getClassNameJson(n.className)),C}),p=e.computed(()=>{const C={};return n.isVertical?(C.bottom=`${c.left}%`,C.height=`${n.width}%`):(C.left=`${c.left}%`,C.width=`${n.width}%`),C}),h=(C,O)=>{O&&(u.isClick=!0,u.isDragging=!1,u.dragStart=n.isVertical?O.clientY:O.clientX,u.dragStartRatio=n.left,t("onMoveStart"))},f=(C,O)=>{if(!l||!O)return;u.isClick=!1,u.isDragging=!0;let P=0;n.isVertical?P=u.dragStart-O.clientY:P=O.clientX-u.dragStart;const B=l.getDragValueInfo(P,u.dragStartRatio);c.left=B.ratio,t("onMoveIng",B.ratio)},y=C=>{u.isClick?t("onClick",C):t("onMoveEnd"),u.isClick=!1,u.isDragging=!1},x=()=>{if(!i.value)return;const C={start(O,P){let B=!1;return!n.disabled&&n.isBarDrag&&O.buttons===1&&(B=!0,h(O,P)),B},ing:(O,P)=>{f(O,P)},end:O=>{y(O)}};d.value=new Wn(i.value,C)};e.onMounted(()=>{e.nextTick(()=>{x()})}),e.onBeforeUnmount(()=>{d.value&&(d.value.end(),d.value=null)}),e.watch(()=>n.left,(C,O)=>{C!==O&&C!==c.left&&(c.left=C)});const N=C=>{!n.disabled&&!n.isBarDrag&&t("onClick",C)},M=()=>{t("onMouseover")},S=()=>{u.isDragging||t("onMouseout")};return(C,O)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElBar",ref:i,id:e.unref(r),class:e.normalizeClass(m.value),style:e.normalizeStyle(p.value),onMouseover:M,onMouseout:S,onClick:N},null,46,rc))}}),uc=["id"],xn=e.defineComponent({name:"ClSliderButton",__name:"Button",props:{id:String,value:[String,Number],className:String,ratio:{type:Number,default:0},disabled:{type:Boolean,default:!1},isVertical:{type:Boolean,default:!1},tooltipFormat:String},emits:{onMoveIng:a=>!0,onMoveEnd:a=>!0,onDblClick:()=>!0},setup(a,{expose:o,emit:n}){const t=a,l=n,i=e.inject("$SliderTop"),r=lt,c=e.useTemplateRef("refElButton"),u=t.id,d=e.reactive({isHover:!1,ratio:t.ratio,value:t.value}),m=e.reactive({dragStart:0,dragStartRatio:0,isMoveIng:!1}),p=e.ref(null),h=e.computed(()=>{let w=d.value;if(w!=null){const b=t.tooltipFormat;w=s.getFormatThousands(w.toString()),s.isNonEmptyString(b)&&(w=s.convertStringFormat(b,{_value:w}))}return w??""}),f=e.computed(()=>t.isVertical?"right":"top"),y=e.computed(()=>{let w={"slider-button":!0,hover:d.isHover};return w=s.getJsonMerge(w,ee.getClassNameJson(t.className)),w}),x=e.computed(()=>{const w={},b=d.ratio;return t.isVertical?w.bottom=`${s.isFinite(b)?b:0}%`:w.left=`${s.isFinite(b)?b:0}%`,w}),N=()=>{c.value&&so.show(c.value)},M=()=>{c.value&&so.hide(c.value)},S=(w,b)=>{if(!i||!b)return{ratio:d.ratio,value:d.value};let v=0;t.isVertical?v=m.dragStart-b.clientY:v=b.clientX-m.dragStart;const E=i.getDragValueInfo(v,m.dragStartRatio);return d.ratio=E.ratio,d.value=E.value,E},C=(w,b)=>{b&&(m.dragStart=t.isVertical?b.clientY:b.clientX,m.dragStartRatio=t.ratio)},O=(w,b)=>{const v=S(w,b);N(),l("onMoveIng",{value:v.ratio,runType:"drag"})},P=(w,b)=>{S(w,b),d.isHover||c.value===w.target||c.value?.contains(w.target)||M(),l("onMoveEnd",{runType:"drag"})},B=w=>{if(!i)return;m.isMoveIng=!0;const b=i.getButtonMoveValueInfo(w,t.ratio);d.ratio=b.ratio,d.value=b.value,l("onMoveIng",{value:b.ratio,runType:"keydown"})},F=()=>{if(!c.value)return;const w={start(b,v){let E=!1;return!t.disabled&&b.buttons===1&&(E=!0,C(b,v)),E},ing:(b,v)=>{O(b,v)},end:(b,v)=>{P(b,v)}};p.value=new Wn(c.value,w)};e.onMounted(()=>{e.nextTick(()=>{F()})}),e.onBeforeUnmount(()=>{p.value&&(p.value.end(),p.value=null),m.isMoveIng=!1}),e.watch(()=>t.value,(w,b)=>{w!==b&&w!==d.value&&(d.value=w)}),e.watch(()=>t.ratio,(w,b)=>{w!==b&&w!==d.ratio&&(d.ratio=w)});const L=w=>{t.disabled||(w.preventDefault(),w.stopPropagation(),B("left"))},I=w=>{t.disabled||(w.preventDefault(),w.stopPropagation(),B("right"))},z=()=>{t.disabled||(d.isHover=!0)},W=()=>{t.disabled||(d.isHover=!1,m.isMoveIng&&(m.isMoveIng=!1,l("onMoveEnd",{runType:"keydown"})))},U=()=>{t.disabled||l("onDblClick")};return o({showTooltip:()=>{N()},hideTooltip:()=>{M()}}),(w,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"refElButton",ref:c,id:e.unref(u),class:e.normalizeClass(y.value),style:e.normalizeStyle(x.value),tabindex:"0",onDblclick:U,onFocus:z,onBlur:W,onKeydown:[e.withKeys(L,["down"]),e.withKeys(I,["up"]),e.withKeys(L,["left"]),e.withKeys(I,["right"])]},[...b[0]||(b[0]=[e.createElementVNode("div",{class:"slider-button-icon"},null,-1)])],46,uc)),[[e.unref(r),{trigger:["hover","focus"],position:f.value,html:h.value,updRefreshInx:d.ratio},void 0,{black:!0}]])}}),dc=["id"],mc=e.defineComponent({name:"ClSliderDot",__name:"Dot",props:{id:String,className:String,itemInfo:{type:Object,default:()=>({})},isHover:{type:Boolean,default:!1},isVertical:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!0},tooltipFormat:String},emits:{onMouseover:()=>!0,onMouseout:()=>!0,onClick:a=>!0},setup(a,{emit:o}){const n=a,t=o,l=n.id,i=lt,r=e.computed(()=>n.isVertical?"right":"top"),c=e.computed(()=>{const f=n.itemInfo.value;if(f!=null){let y=s.getFormatThousands(f.toString());const x=n.tooltipFormat;return s.isNonEmptyString(x)&&(y=s.convertStringFormat(x,{_value:y})),y}return""}),u=e.computed(()=>{let f={"slider-dot":!0,"slider-dot-active":n.itemInfo.isActive??!1,"slider-dot-hide":n.itemInfo.isHide??!1,hover:n.isHover};return f=s.getJsonMerge(f,ee.getClassNameJson(n.className)),f}),d=e.computed(()=>{const f={},y=n.itemInfo.ratio;return y!=null&&(n.isVertical?f.bottom=`${y}%`:f.left=`${y}%`),f}),m=()=>{t("onMouseover")},p=()=>{t("onMouseout")},h=()=>{t("onClick")};return(f,y)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(u.value),style:e.normalizeStyle(d.value),onMouseover:m,onMouseout:p,onClick:h},[...y[0]||(y[0]=[e.createElementVNode("div",{class:"slider-dot-icon"},null,-1)])],46,dc)),[[e.unref(i),{init:a.isTooltip,position:r.value,html:c.value},void 0,{black:!0,hover:!0}]])}}),pc=["id"],fc=["id"],gc={class:"slider-container"},hc={key:2,class:"slider-dots"},vc={key:0,class:"slider-marks"},yc=["innerHTML","onMouseover"],Va=e.defineComponent({name:"ClSlider",__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},value:[String,Number],min:{type:Number,default:0},max:{type:Number,default:100},isRange:{type:Boolean,default:!1},isBarDrag:{type:Boolean,default:!1},splitNumber:{type:Number,default:0},isShowDot:{type:Boolean,default:!0},isShowDotActive:{type:Boolean,default:!0},marks:{type:Array,default:()=>[]},isVertical:{type:Boolean,default:!1},verticalHeight:String,size:{type:String,default:"large"},numType:{type:String,default:"int",validator:a=>["int","float2","float3"].indexOf(a)>-1},tooltipFormat:String,isPlaintext:{type:Boolean,default:!1},plaintextSeparator:{type:String,default:" - "}},emits:{"update:value":a=>!0,"update:modelValue":a=>!0,onChange:(a,o)=>!0},setup(a,{expose:o,emit:n}){const t=a,l=n,i=`slider-${s.getRandom(5)}`,r=e.useTemplateRef("refElTrack"),c=e.useTemplateRef("refBtnStart"),u=e.useTemplateRef("refBtnEnd"),d=t.id,m=e.reactive({track:void 0,bar:void 0,btnStart:void 0,btnEnd:void 0,dots:void 0,marks:void 0});s.isNonEmptyString(d)&&(m.track=`${d}-track`,m.bar=`${d}-bar`,m.btnStart=`${d}-btn-start`,m.btnEnd=`${d}-btn-end`,m.dots=`${d}-dots`,m.marks=`${d}-marks`);const p=e.reactive({markHoverIndex:-1}),h=e.reactive({left:0,width:0}),f=e.reactive({start:t.min,end:t.min,startRatio:0,endRatio:0}),y=J=>{const K=t.tooltipFormat;return s.isNonEmptyString(K)?s.convertStringFormat(K,{_value:J}):J.toString()},x=e.computed(()=>{if(!t.isRange)return y(f.end);const J=s.isString(t.plaintextSeparator)?t.plaintextSeparator:" - ";return`${y(f.start)}${J}${y(f.end)}`}),N=e.ref([]),M=e.ref([]),S=e.computed(()=>Math.abs(t.max-t.min)),C=e.computed(()=>t.marks.length>0),O=e.computed(()=>{const{isRange:J,isBarDrag:K}=t;let Q=!1;return J&&(Q=K),Q}),P=e.computed(()=>{let J={"panel-slider":!0,"slider-disabled":t.disabled,"slider-vertical":t.isVertical,"slider-level":!t.isVertical},K=t.size;return s.isEmpty(K)&&(K="large"),J[`slider-${K}`]=!0,J=s.getJsonMerge(J,ee.getClassNameJson(t.className)),J}),B=e.computed(()=>{const J={};return t.isVertical&&s.isNonEmptyString(t.verticalHeight)&&(J.height=t.verticalHeight),J}),F=(J,K=2)=>s.isFinite(J)?Number((J*100).toFixed(K)):0,L=J=>{const K=S.value;return K>0?F((J-t.min)/K):0},I=J=>{let K=0;if(J<=0)K=t.min;else if(J>=100)K=t.max;else{const{numType:Q}=t,se=S.value*J/100,de=s.getValueByFormat(se.toString(),Q,{isThousands:!1});if(K=t.min+Number(de),s.isExistValue(["float2","float3"],Q)){const fe=Number(Q.replace("float","")),we=K.toString();s.isExistValue(we,".")&&we.split(".")[1].length>fe&&(K=Number(K.toFixed(fe)))}}return K},z=J=>{let K=Number(J),Q=!0;return s.isFinite(K)?K<=t.min?(K=t.min,Q=!1):K>=t.max&&(K=t.max,Q=!1):(K=t.min,Q=!1),{value:K,check:Q}},W=()=>{if(C.value){const J=[];t.marks.forEach(K=>{if(!K)return;const Q=s.getJsonClone(K);Q.value=Number(Q.value),s.isFinite(Q.value)&&(Q.ratio=L(Q.value),s.isString(Q.mark)?Q.safeMark=s.isHtml(Q.mark)?s.encodeHTML(Q.mark):Q.mark:Q.safeMark="",J.push(Q))}),J.sort((K,Q)=>K.value-Q.value),M.value=J}},U=()=>{const J=[];if(C.value)M.value.forEach(K=>{J.push({ratio:K.ratio,value:K.value,isActive:!1,isHide:!1})});else if(t.splitNumber>1){const K=100/t.splitNumber,Q=K/2;for(let ae=1;ae<t.splitNumber;ae++){const se=K*ae,de=I(se);J.push({value:de,ratio:F(se/100),isActive:!1,isHide:!1,left:F((se-Q)/100),right:F((se+Q)/100)})}}N.value=J},D=()=>{if(N.value.length>0){const{isShowDot:J,isShowDotActive:K,min:Q,max:ae}=t,se=C.value,de=h.left,fe=de+h.width,we=[];N.value.forEach(Be=>{const ze=s.getJsonClone(Be),be=Be.ratio>=de&&Be.ratio<=fe;ze.isActive=be;let ve=!1;se?ve=!0:J?(ve=!0,be&&(K?ve=!0:ve=!1)):ve=!1,(Be.value===Q||Be.value===ae)&&(ve=!1),ze.isHide=!ve,we.push(ze)}),N.value=we}},g=J=>{const K=J.startRatio>J.endRatio?J.endRatio:J.startRatio,Q=Math.abs(J.endRatio-J.startRatio);h.left=K,h.width=Q},w=J=>{e.nextTick(()=>{t.isRange?J?(c.value?.showTooltip(),u.value?.showTooltip()):(c.value?.hideTooltip(),u.value?.hideTooltip()):J?u.value?.showTooltip():u.value?.hideTooltip()})},b=J=>{g(J),f.start=J.start,f.end=J.end,f.startRatio=J.startRatio,f.endRatio=J.endRatio,D()},v=J=>{let K,Q;if(J&&!s.isEmpty(J)){const de=J.toString();if(de==="")K=t.min,Q=t.min;else{const fe=de.split(","),we=z(fe[0]);if(t.isRange){if(K=we.value,Q=K,fe.length>1){const Be=z(fe[1]);Be.value>K&&(Q=Be.value)}}else K=t.min,Q=we.value}}else K=t.min,Q=t.min;const ae=L(K),se=L(Q);b({start:K,end:Q,startRatio:ae,endRatio:se})},E=J=>{if(!s.isFinite(J))return 0;let K=F(J);const Q=N.value;if(!C.value&&Q.length>0){if(K<Q[0].left)K=0;else if(K>Q[Q.length-1].right)K=100;else for(let ae=0;ae<Q.length;ae++)if(K>=Q[ae].left&&K<=Q[ae].right){K=Q[ae].ratio;break}}return K},k=J=>{const K=E(J),Q=I(K);let{start:ae,startRatio:se,end:de,endRatio:fe}=f,we="";if(t.isRange)if(K<=se)we="start";else if(K>=fe)we="end";else{const Be=(fe-se)/2;K>se&&K<=se+Be?we="start":K>=fe-Be&&K<fe&&(we="end")}else we="end";switch(we){case"start":ae=Q,se=K;break;case"end":de=Q,fe=K;break}return{start:ae,end:de,startRatio:se,endRatio:fe}},T=J=>{const K=J?.start??f.start,Q=J?.end??f.end;let ae=K,se=Q;ae>se&&(ae=Q,se=K);const de=t.isRange?`${ae},${se}`:se.toString();l("update:value",de),l("update:modelValue",de),l("onChange",de,{start:ae,end:se})},R=J=>{if(!J)return{};const K={};return t.isVertical?K.bottom=`${J.ratio}%`:K.left=`${J.ratio}%`,s.isEmpty(J.color)||(K.color=J.color),K},q=()=>{W(),U(),v(t.value)};e.onMounted(()=>{e.nextTick(()=>{q()})}),e.watch(()=>t.value,(J,K)=>{if(J!==K){let Q=!0;const ae=J!=null?J.toString():"";if(ae==="")Q=!0;else{const se=ae.split(","),de=Number(se[0]);if(t.isRange){const fe=se.length>1?Number(se[1]):de;(de===f.start&&fe===f.end||de===f.end&&fe===f.start)&&(Q=!1)}else Q=de!==f.end}Q&&v(J)}},{immediate:!0}),e.watch(()=>t.marks,()=>{W(),U()});const H=J=>{if(!t.disabled&&J){J.preventDefault(),J.stopPropagation();const K=r.value;if(!K)return;const Q=K.getBoundingClientRect(),ae=t.isVertical?(Q.bottom-J.clientY)/K.clientHeight:(J.clientX-Q.left)/K.clientWidth;if(!s.isFinite(ae))return;const se=k(ae);b(se),T(se)}},V=(J,K)=>{let{startRatio:Q,endRatio:ae}=f;const se=J.value;K==="start"?(Q=se,f.start=I(se),f.startRatio=se):(ae=se,f.end=I(se),f.endRatio=se),g({startRatio:Q,endRatio:ae}),D(),J.runType==="keydown"&&T()},_=J=>{const{left:K,width:Q}=h,ae={startRatio:K,endRatio:K+Q};ae.start=I(ae.startRatio),ae.end=I(ae.endRatio),b(ae),J.runType==="drag"&&T(ae)},A=J=>{if(t.isRange){let{start:K,startRatio:Q,end:ae,endRatio:se}=f;J==="start"?(se=Q,ae=K):(Q=se,K=ae);const de={start:K,startRatio:Q,end:ae,endRatio:se};b(de),T(de)}},Y=()=>{w(!0)},X=J=>{const K=J;f.start=I(J),f.startRatio=J;const Q=J+h.width;f.end=I(Q),f.endRatio=Q,g({startRatio:K,endRatio:Q}),D(),w(!0)},j=()=>{T(),w(!1)},$=()=>{w(!0)},Z=()=>{w(!1)},G=J=>{C.value&&(p.markHoverIndex=J)},oe=()=>{p.markHoverIndex=-1},he=()=>t.isRange?`${f.start},${f.end}`:f.end.toString();return o({getValue:he,getValueData:()=>({value:he(),show:he()})}),e.provide("$SliderTop",{getDragValueInfo:(J,K)=>{const Q=r.value;if(!Q)return{ratio:K/100,value:I(K/100)};const ae=t.isVertical?Q.clientHeight:Q.clientWidth;if(ae<=0)return{ratio:K/100,value:I(K/100)};const se=J/ae;let de=K/100+se;de>=1?de=1:de<=0&&(de=0),de=E(de);const fe=I(de);return{ratio:de,value:fe}},getButtonMoveValueInfo:(J,K)=>{const Q=J==="left"?-1:1,ae=Number(K);let se;const de=N.value,fe=de.length;if(!C.value&&fe>0){let Be=-1;if(ae<de[0].ratio)Be=-1;else if(ae>de[fe-1].ratio)Be=fe;else for(let be=0;be<fe;be++)if(ae>=de[be].ratio&&be+1<fe&&ae<de[be+1].ratio){Be=be;break}const ze=Be+Q;ze<0?se=0:ze>=fe?se=100:se=de[ze].ratio}else se=ae+Q;se>=100?se=100:se<=0&&(se=0);const we=I(se);return{ratio:se,value:we}}}),(J,K)=>a.isPlaintext?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(d),class:"cl-plaintext-value"},e.toDisplayString(x.value),9,pc)):(e.openBlock(),e.createElementBlock("div",{key:1,id:e.unref(d),class:e.normalizeClass(P.value),style:e.normalizeStyle(B.value)},[e.createElementVNode("div",gc,[e.createElementVNode("div",{ref_key:"refElTrack",ref:r,class:"slider-track",onClick:H},null,512),e.createVNode(cc,{id:m.bar,disabled:a.disabled,isVertical:a.isVertical,isBarDrag:O.value,left:h.left,width:h.width,onOnMoveStart:Y,onOnMoveIng:X,onOnMoveEnd:j,onOnClick:H,onOnMouseover:$,onOnMouseout:Z},null,8,["id","disabled","isVertical","isBarDrag","left","width"]),a.isRange?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(xn,{ref_key:"refBtnStart",ref:c,id:m.btnStart,disabled:a.disabled,isVertical:a.isVertical,value:f.start,ratio:f.startRatio,tooltipFormat:a.tooltipFormat,onOnMoveIng:K[0]||(K[0]=Q=>V(Q,"start")),onOnMoveEnd:_,onOnDblClick:K[1]||(K[1]=Q=>A("start"))},null,8,["id","disabled","isVertical","value","ratio","tooltipFormat"]),e.createVNode(xn,{ref_key:"refBtnEnd",ref:u,id:m.btnEnd,disabled:a.disabled,isVertical:a.isVertical,value:f.end,ratio:f.endRatio,tooltipFormat:a.tooltipFormat,onOnMoveIng:K[2]||(K[2]=Q=>V(Q,"end")),onOnMoveEnd:_,onOnDblClick:K[3]||(K[3]=Q=>A("end"))},null,8,["id","disabled","isVertical","value","ratio","tooltipFormat"])],64)):(e.openBlock(),e.createBlock(xn,{key:1,ref_key:"refBtnEnd",ref:u,id:m.btnEnd,disabled:a.disabled,isVertical:a.isVertical,value:f.end,ratio:f.endRatio,tooltipFormat:a.tooltipFormat,onOnMoveIng:K[4]||(K[4]=Q=>V(Q,"end")),onOnMoveEnd:_},null,8,["id","disabled","isVertical","value","ratio","tooltipFormat"])),N.value.length>0?(e.openBlock(),e.createElementBlock("div",hc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(Q,ae)=>(e.openBlock(),e.createBlock(mc,{key:`${i}-dot-${ae}`,id:m.dots?`${m.dots}-${ae}`:void 0,isVertical:a.isVertical,itemInfo:Q,isHover:p.markHoverIndex===ae,isTooltip:!C.value,tooltipFormat:a.tooltipFormat,onOnMouseover:se=>G(ae),onOnMouseout:oe,onOnClick:H},null,8,["id","isVertical","itemInfo","isHover","isTooltip","tooltipFormat","onOnMouseover"]))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),C.value?(e.openBlock(),e.createElementBlock("div",vc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(Q,ae)=>(e.openBlock(),e.createElementBlock("div",{key:`${i}-mark-${ae}`,class:e.normalizeClass({"slider-mark":!0,hover:p.markHoverIndex===ae}),style:e.normalizeStyle(R(Q)),innerHTML:Q.safeMark,onMouseover:se=>G(ae),onMouseout:oe},null,46,yc))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],14,fc))}}),kc=["id"],bc=["id"],Cc=["name","checked"],Sc=["aria-checked"],Ec={key:0,class:"switchery-txt"},_c=["innerHTML"],Bc=["innerHTML"],wc={key:0,class:"switchery-load-bg"},xc=22,Nc=40,Ra=e.defineComponent({name:"ClSwitchery",__name:"Index",props:{id:String,name:String,value:{type:Boolean,default:!1},className:{type:String,default:""},disabled:{type:Boolean,default:!1},color:{type:[String,Object],validator:a=>s.isObject(a)?!!(a.checked||a.unChecked):s.isString(a)},isUseOnChangeCheck:{type:Boolean,default:!1},isShowLoad:{type:Boolean,default:!0},activeHtml:String,inactiveHtml:String,changeCallback:Function,isPlaintext:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","onChange","onError"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=e.useAttrs(),r=t.id,c=e.useTemplateRef("refElContainer");let u=!1,d=null;const m=e.reactive({isFirstComplete:!1,isOpen:t.value,buttonLeft:0,isRunLoad:!1,colorChecked:"var(--cl-primary, #2196f3)",colorUnChecked:"var(--cl-bg, #ffffff)",txtWidth:0}),p=e.computed(()=>{let g=t.name;return s.isEmpty(g)&&(g=`switchery_${s.getRandom(8)}`),g}),h=e.computed(()=>{const g=m.isOpen?t.activeHtml:t.inactiveHtml;return s.isNonEmptyString(g)?s.removeHTMLTags(g):m.isOpen?"是":"否"}),f=e.computed(()=>{const{colorChecked:g}=m;let w="";const b=t.color;if(s.isUndefined(b))w=g;else if(s.isString(b))w=b;else if(s.isObject(b)){const v=b;w=s.isExistJsonKey(v,"checked")?v.checked:g}return w}),y=e.computed(()=>{const{colorUnChecked:g}=m;let w="";const b=t.color;return s.isObject(b)&&s.isExistJsonKey(b,"unChecked")?w=b.unChecked||g:w=g,w}),x=e.computed(()=>{const g=ee.getClassNameJson(t.className),w={"panel-switchery":!0,"switchery-transition-immediately":!m.isFirstComplete};return s.getJsonMerge(w,g)}),N=e.computed(()=>!s.isEmpty(t.activeHtml)||!s.isEmpty(t.inactiveHtml)),M=e.computed(()=>({"switchery-container":!0,"switchery-open":m.isOpen,"switchery-disabled":t.disabled,"switchery-has-txt":N.value})),S=e.computed(()=>{const g=m.isOpen,w=g?f.value:y.value,b={"background-color":w};return m.txtWidth>0&&(b.width=`${m.txtWidth}px`),b.transition=g?"border 0.4s, box-shadow 0.4s, background-color 1.2s":"border 0.4s, box-shadow 0.4s",b["box-shadow"]=g?`${w} 0px 0px 0px 11px inset`:`${w} 0px 0px 0px 0px inset`,(g||s.isObject(t.color)&&s.isExistJsonKey(t.color,"unChecked"))&&(b["border-color"]=w),b}),C=e.computed(()=>{const g={left:"0"};return m.isOpen&&(g.left=`${m.buttonLeft}px`),g}),O=g=>{const w=ee.getElementData(i);l("update:value",g),l("update:modelValue",g),l("onChange",g,w)},P=()=>{const g=ot("switchery");g&&(s.isExistJsonKey(g,"colorChecked")&&(m.colorChecked=g.colorChecked),s.isExistJsonKey(g,"colorUnChecked")&&(m.colorUnChecked=g.colorUnChecked))},B=()=>{if(!c.value)return;const g=c.value.clientWidth,w=c.value.querySelector(".switchery-button");if(!w)return;const b=w.clientWidth;m.buttonLeft=g===0?22:g-b},F=(g,w)=>{if(s.isEmpty(g))return 0;const b=w.querySelector(".switchery-txt > span"),v=document.createElement("span");if(v.style.position="absolute",v.style.visibility="hidden",v.style.left="-9999px",v.style.top="0",v.style.display="inline-block",v.style.whiteSpace="nowrap",b){const k=getComputedStyle(b);v.style.font=k.font,v.style.letterSpacing=k.letterSpacing}v.innerHTML=g,document.body.appendChild(v);const E=v.scrollWidth;return v.remove(),E},L=()=>{if(!N.value||!c.value){m.txtWidth=0;return}const g=c.value,w=F(t.activeHtml||"",g),b=F(t.inactiveHtml||"",g),v=Math.max(w,b);if(v===0){m.txtWidth=0;return}m.txtWidth=Math.max(v+xc+2,Nc)},I=()=>{P(),L(),e.nextTick(()=>{B()}),d=setTimeout(()=>{m.isFirstComplete=!0},250)};e.onMounted(()=>{e.nextTick(()=>{I()})}),e.onBeforeUnmount(()=>{d&&(clearTimeout(d),d=null)}),e.watch(()=>t.value,g=>{m.isOpen=g}),e.watch(()=>[t.activeHtml,t.inactiveHtml],()=>{e.nextTick(()=>{L(),B()})});const z=async()=>{if(t.disabled||u)return;B();const g=!m.isOpen;if(t.changeCallback&&s.isFunction(t.changeCallback)){u=!0,m.isRunLoad=!0;const w=ee.getElementData(i);try{const b=await t.changeCallback(g,w);let v=!1;s.isBoolean(b)?v=b:s.isObject(b)&&s.isBoolean(b.success)&&(v=b.success),v&&(m.isOpen=g)}catch{l("onError","回调changeCallback执行异常")}finally{m.isRunLoad=!1,u=!1}}else t.isUseOnChangeCheck?m.isRunLoad=!0:m.isOpen=g,O(g)};return o({getValue:()=>m.isOpen,setValue:(g,w=!1)=>{m.isOpen=g,w&&O(g)},setOnChangeResult:()=>{t.isUseOnChangeCheck&&s.isUndefined(t.changeCallback)&&(m.isOpen=!m.isOpen,m.isRunLoad=!1,u=!1)}}),(g,w)=>a.isPlaintext?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(r),class:"cl-plaintext-value"},e.toDisplayString(h.value),9,kc)):(e.openBlock(),e.createElementBlock("label",{key:1,id:e.unref(r),class:e.normalizeClass(x.value)},[e.createElementVNode("input",{type:"checkbox",class:"switchery-input",name:p.value,checked:m.isOpen},null,8,Cc),e.createElementVNode("span",{class:e.normalizeClass(M.value),style:e.normalizeStyle(S.value),onClick:z,ref_key:"refElContainer",ref:c,role:"switch","aria-checked":m.isOpen,tabindex:"0"},[a.activeHtml||a.inactiveHtml?(e.openBlock(),e.createElementBlock("span",Ec,[m.isOpen?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:a.activeHtml},null,8,_c)):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:a.inactiveHtml},null,8,Bc))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",{class:"switchery-button",style:e.normalizeStyle(C.value)},[a.isShowLoad&&m.isRunLoad?(e.openBlock(),e.createBlock(Te,{key:0,theme:"rotaryLine",size:"xs"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],4)],14,Sc),a.isShowLoad&&m.isRunLoad?(e.openBlock(),e.createElementBlock("div",wc)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,bc))}}),Tc=["id"],Dc=["onClick"],Ic=["innerHTML"],Ac={key:1},Pa=e.defineComponent({name:"ClTags",__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},isRemove:{type:Boolean,default:!0},showTextFormat:String,isRemoveAll:{type:Boolean,default:!1},theme:{type:String,default:"default",validator:a=>["default","code"].indexOf(a)!==-1},isFormatHtml:{type:Boolean,default:!1}},emits:["onRemove","onClickTag"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`tags-${s.getRandom(5)}`,r=t.id,c=e.ref(t.disabled),u=e.ref([]),d=e.reactive({status:0,startColor:"#FFFF80",endColor:"var(--cl-transparent, rgba(0, 0, 0, 0))",hID:""}),m=e.computed(()=>{const{theme:U}=t;let D={"panel-tags":!0};U!=="default"&&(D[`tags-${U}`]=!0),t.isRemoveAll&&u.value.length>0&&(D["tags-region"]=!0);const g=ee.getClassNameJson(t.className);return D=s.getJsonMerge(D,g),D}),p=U=>s.isEmpty(U)?"":s.isEmpty(t.showTextFormat)?s.isNonEmptyString(U.name)?U.name:"":s.convertStringFormatEncodeHTML(t.showTextFormat,U),h=U=>{if(s.isEmpty(U))return{};const{theme:D}=t;let g={};return D==="default"?(g={tag:!0,"tag-disabled":!!U.isShowDisabled,"tag-remove":t.isRemove&&!U.isShowDisabled},(s.isNonEmptyString(U.id)||typeof U.id=="number")&&(g["tag-hlight"]=U.id.toString()===d.hID&&d.status===2)):D==="code"&&(g["tag-code"]=!0),g},f=U=>{const D={};if(s.isEmpty(U)||s.isEmpty(U.id))return D;if(U.id.toString()===d.hID)switch(d.status){case 1:D["background-color"]=d.startColor;break;case 2:D["background-color"]=d.endColor;break}return D},y=U=>{if(s.isEmpty(U))return;const D=c.value;let g=!1;D?g=!0:g=s.isBoolean(U.isDisabled)?!!U.isDisabled:!1,U.isShowDisabled=g},x=U=>{const D=[];return!s.isArray(U)||s.isEmpty(U)||U.forEach(g=>{if(s.isEmpty(g))return;const w=s.getJsonClone(g);y(w),D.push(w)}),D},N=U=>{c.value=U;const D=x(u.value);u.value=D};let M=null,S=null;const C=()=>{M!==null&&(clearTimeout(M),M=null),S!==null&&(clearTimeout(S),S=null)},O=U=>{s.isEmpty(U)||(C(),d.hID=U.toString(),d.status=1,e.nextTick(()=>{M=setTimeout(()=>{d.status=2},10),S=setTimeout(()=>{d.status=0,d.hID=""},1500)}))},P=()=>{const U=x(t.list);u.value=U};e.onMounted(()=>{e.nextTick(()=>{P()})}),e.onBeforeUnmount(()=>{C()}),e.watch(()=>t.disabled,U=>{N(U)}),e.watch(()=>t.list,U=>{const D=x(U);u.value=D},{deep:!0});const B=(U,D)=>{l("onClickTag",D)},F=(U,D,g)=>{if(U.preventDefault(),U.stopPropagation(),t.isRemove&&!D.isShowDisabled&&g>=0&&g<u.value.length){u.value.splice(g,1);const w=s.isNonEmptyString(D.id)||typeof D.id=="number"?D.id.toString():"";l("onRemove",w)}},L=()=>{u.value=[],l("onRemove","")};return o({setDisabled:(U=!0)=>{N(U)},addInfo:U=>{if(s.isEmpty(U))return;const D=s.getListExistValue(u.value,U.name||"","name");if(s.isEmpty(D)){const g=s.getJsonClone(U);y(g),u.value.push(g)}else D.info&&!s.isEmpty(D.info.id)&&O(D.info.id)},getData:()=>s.getListClone(u.value)}),(U,D)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(r),class:e.normalizeClass(m.value)},[u.value.length>0?e.renderSlot(U.$slots,"head",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(g,w)=>(e.openBlock(),e.createElementBlock("span",{key:`${i}-list-${w}-${g.id}`,class:e.normalizeClass(h(g)),style:e.normalizeStyle(f(g)),onClick:e.withModifiers(b=>B(b,g),["stop"])},[g.isHtml||a.isFormatHtml?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:p(g)},null,8,Ic)):(e.openBlock(),e.createElementBlock("span",Ac,e.toDisplayString(p(g)),1)),a.isRemove&&!g.isShowDisabled?(e.openBlock(),e.createBlock(le,{key:2,class:"tag-close",name:"close","aria-label":"移除",onClick:b=>F(b,g,w)},null,8,["onClick"])):e.createCommentVNode("",!0)],14,Dc))),128)),a.isRemoveAll&&u.value.length>0&&!a.disabled?(e.openBlock(),e.createBlock(le,{key:2,class:"tag-closeAll",name:"close","aria-label":"清除全部",onClick:L})):e.createCommentVNode("",!0)],10,Tc))}}),Mc=["id"],za=e.defineComponent({name:"ClWaterfall",__name:"Index",props:{id:String,className:String,list:{type:Array,default:()=>[]},itemKey:{type:String,default:"id"},width:{type:Number,default:-1},colNum:{type:Number,default:-1},spacing:{type:Number,default:10},animationName:{type:String,default:"animated fadeIn"}},setup(a,{expose:o}){const n=a,t=`waterfall-${s.getRandom(5)}`,l=n.id,i=e.useTemplateRef("refElList"),r=e.reactive({pWidth:0,pHeight:0}),c=e.ref([]),u=e.ref(!0),d={colPosY:[],resizeEvent:null,resizeDelayFun:null,deletedList:[]},m=e.computed(()=>{const B=r.pWidth,{width:F,colNum:L,spacing:I}=n;let z=300;const W=F>0,U=L>0,D=U?Math.max(1,parseInt(((B+I)/L).toString())-I):0;if(W&&U){const g=(F+I)*L-I;z=B>=g?F:D}else!W&&U?z=D:W&&!U&&(z=B>F?F:B);return z}),p=e.computed(()=>{const B=r.pWidth,F=m.value,{colNum:L,spacing:I}=n,z=L>0;let W=-1;const U=Math.max(1,parseInt(((B+I)/(F+I)).toString()));if(z){const D=(F+I)*L-I;W=B>=D?L:U}else W=U;return W}),h=e.computed(()=>{const B=r.pWidth,F=m.value,L=p.value,{spacing:I}=n,z=(F+I)*L-I;return parseInt(((B-z)/2).toString())}),f=e.computed(()=>{const B={"panel-waterfall":!0};return s.getJsonMerge(B,ee.getClassNameJson(n.className))}),y=()=>{u.value=!0;const{list:B,itemKey:F}=n;B.forEach(L=>{u.value&&(u.value=s.isExistJsonKey(L,F))})},x=()=>{c.value=n.list.filter(B=>!d.deletedList.includes(B)),d.deletedList=d.deletedList.filter(B=>n.list.includes(B))},N=()=>{const{spacing:B}=n;d.colPosY=new Array(p.value).fill(B)},M=B=>{const{spacing:F}=n,L=m.value;return h.value+(L+F)*B},S=()=>{let B;if(i.value&&(B=i.value.querySelectorAll(".waterfall-item")),s.isUndefined(B)||!B){r.pHeight=0;return}if(B.length===0){r.pHeight=0;return}N();const F=m.value,{spacing:L,animationName:I}=n;for(let z=0;z<B.length;z++){const W=B[z],U=ee.getPositionView(W).height,D=Math.min.apply(null,d.colPosY),g=d.colPosY.indexOf(D),w=M(g);W.style.width=`${F}px`,W.style.transform=`translate3d(${w}px,${D}px, 0)`,d.colPosY[g]+=U+L;const b=W.firstChild;b.style.visibility="visible",b.className=ee.getRemoveClass(b.className,I),ee.checkHasClass(b.className,I)||(b.style.animationDuration="1000ms",b.style.animationDelay="200ms",b.style.animationFillMode="both",b.className=ee.getAddClass(b.className,I))}r.pHeight=Math.max.apply(null,d.colPosY)},C=()=>{const B=()=>{x(),e.nextTick(()=>{S()})};d.resizeDelayFun?d.resizeDelayFun.run(B):e.nextTick(B)},O=()=>{i.value&&(r.pWidth=i.value.offsetWidth,d.resizeDelayFun=new va(null,200),d.resizeEvent=new dn({element:i.value,callback:B=>{r.pWidth=B?.contentRect?.width??r.pWidth}}))};return e.onMounted(()=>{e.nextTick(()=>{O()})}),e.onUnmounted(()=>{d.resizeEvent&&d.resizeEvent.destroy(),d.resizeDelayFun&&d.resizeDelayFun.stopRun()}),e.watch(()=>[r.pWidth,m.value,n.list],()=>{y(),C()},{deep:!0}),e.provide("$WaterfallTop",{imgCallback:C}),o({deleteItem:B=>{const F=c.value[B];return F!==void 0&&(d.deletedList.push(F),c.value.splice(B,1),C()),F}}),(B,F)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(f.value)},[e.createElementVNode("div",{ref_key:"refElList",ref:i,class:"waterfall-list",style:e.normalizeStyle({height:`${r.pHeight}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(L,I)=>(e.openBlock(),e.createElementBlock("div",{key:u.value?`${t}-${L[a.itemKey]}`:`${t}-${I}`,class:"waterfall-item"},[e.createElementVNode("div",null,[e.renderSlot(B.$slots,"default",{data:L,index:I})])]))),128))],4)],10,Mc))}}),Oc={class:"waterfall-imageBox"},$c=["alt"],Ha=e.defineComponent({name:"ClWaterfallImage",__name:"Image",props:{url:{type:String,default:""},alt:{type:String,default:""}},setup(a){const o=a,n=e.inject("$WaterfallTop"),t=e.useTemplateRef("refElImage"),l=e.computed(()=>o.url),i=r=>{n?.imgCallback?n.imgCallback():re.warn("ClWaterfallImage",`未检测到 $WaterfallTop 容器注入,图片${r==="loaded"?"完成":"加载失败"}回调失效`)};return e.onBeforeUnmount(()=>{t.value&&(t.value.onload=null,t.value.onerror=null)}),_a(t,l,{callback:{loaded:()=>{i("loaded")},error:()=>{i("error")}}}),(r,c)=>(e.openBlock(),e.createElementBlock("div",Oc,[e.createElementVNode("img",{ref_key:"refElImage",ref:t,class:"waterfall-image",alt:a.alt},null,8,$c)]))}}),Ja=()=>({getPage:a=>Le.getPage(a),getValue:a=>Le.getValue(a),getType:()=>Le.getType(),setType:a=>Le.setType(a),getAll:()=>Le.getAll(),getCommon:()=>Le.getCommon()}),Lc=["id"],Gt=2e3,Nn=300,So=2147483647,Tn=1,Eo=["center","top","bottom","left","right"];let Dn=Gt,zt=0;const We=e.defineComponent({name:"ClPopup",__name:"Index",props:{id:String,className:String,show:Boolean,position:{type:String,default:"center",validator:a=>Eo.indexOf(a)!==-1},isOverlay:{type:Boolean,default:!0},isRound:Boolean,duration:{type:Number,default:Nn},isCloseOnClickOverlay:{type:Boolean,default:!0},isLockScroll:{type:Boolean,default:!0},isSafeAreaInsetBottom:Boolean,zIndex:{type:Number,default:Gt},teleportTarget:{type:String,default:""}},emits:["update:show","onOpen","onOpened","onClose","onClosed","onClick","onClickOverlay"],setup(a,{emit:o}){const n=a,t=o,l=n.id;let i=!1;const r=new Set;let c=!1,u=!1;const d=e.ref(0),m=e.ref(n.show),p=e.ref(n.show),h=e.computed(()=>n.isOverlay),f=e.computed(()=>{const b=n.teleportTarget;return s.isNonEmptyString(b)&&(b==="body"||b==="self"||/^[#.][A-Za-z_][\w-]*$/.test(b))?b:"body"}),y=e.computed(()=>n.teleportTarget==="self"),x=e.computed(()=>{const b=n.position;return Eo.indexOf(b)!==-1?b:"center"}),N=e.computed(()=>{if(!s.isNumber(n.duration)&&!s.isString(n.duration))return Nn;const b=Number(n.duration);return s.isFinite(b)&&b>0?b:Nn}),M=e.computed(()=>{if(!s.isNumber(n.zIndex)&&!s.isString(n.zIndex))return Gt;const b=Number(n.zIndex);return s.isFinite(b)&&Number.isInteger(b)&&b>0&&b<=So-Tn?b:Gt}),S=e.computed(()=>({center:"popup-fade",top:"popup-slide-top",bottom:"popup-slide-bottom",left:"popup-slide-left",right:"popup-slide-right"})[x.value]||"popup-fade"),C=e.computed(()=>{let b={"panel-popup":!0,"panel-popup--center":x.value==="center","panel-popup--top":x.value==="top","panel-popup--bottom":x.value==="bottom","panel-popup--left":x.value==="left","panel-popup--right":x.value==="right","panel-popup--round":n.isRound,"panel-popup--safe-bottom":n.isSafeAreaInsetBottom};return b=s.getJsonMerge(b,ee.getClassNameJson(n.className)),b}),O=e.computed(()=>({zIndex:d.value||M.value,"--popup-duration":`${N.value}ms`})),P=e.computed(()=>({zIndex:(d.value||M.value)+Tn,"--popup-duration":`${N.value}ms`})),B=()=>{const b=n.teleportTarget;if(s.isNonEmptyString(b)&&b!=="body"&&b!=="self"){const v=document.querySelector(b);return v instanceof HTMLElement?v:null}return document.body},F=()=>{if(i)return;const b=B();b&&(i=!0,r.add(b),rn(b))},L=()=>{i&&(i=!1,r.forEach(b=>{cn(b)}),r.clear())},I=b=>{const v=n.teleportTarget;if(!s.isNonEmptyString(v)||v.charAt(0)!=="#")return;const E=document.querySelector(v);if(!(E instanceof HTMLElement))return;const k=E.closest(".cl-framephone");if(!k)return;const T=k.querySelector(".framephone-home");if(T)if(b){if(!c)return;c=!1,zt=Math.max(0,zt-1),zt===0&&(T.style.display="")}else{if(c)return;c=!0,zt++,T.style.display="none"}};e.onMounted(()=>{n.show&&n.isLockScroll&&!i&&F(),e.nextTick(()=>{n.show&&n.isLockScroll&&!i&&F()})}),e.onActivated(()=>{u=!1,n.show&&n.isLockScroll&&!i&&F(),n.show&&I(!1)}),e.onDeactivated(()=>{u=!0,i&&L(),I(!0)}),e.onUnmounted(()=>{i&&L(),I(!0)}),e.watch(()=>n.show,b=>{b?(m.value=!0,e.nextTick(()=>{n.show?p.value=!0:m.value=!1}),Dn=Math.min(Math.max(Dn+2,M.value),So-Tn),d.value=Dn,!u&&n.isLockScroll&&F()):p.value=!1},{immediate:!0}),e.watch(()=>n.isLockScroll,b=>{n.show&&!u&&(b?F():L())});const z=()=>{p.value&&(t("onClickOverlay"),n.isCloseOnClickOverlay&&t("update:show",!1))},W=()=>{p.value&&t("onClick")},U=()=>{I(!1),t("onOpen")},D=()=>{t("onOpened")},g=()=>{t("onClose")},w=()=>{L(),I(!0),t("onClosed"),n.show||(m.value=!1)};return(b,v)=>m.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:f.value,disabled:y.value},[e.createVNode(e.Transition,{name:"popup-fade",duration:N.value},{default:e.withCtx(()=>[p.value&&h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"panel-popup-overlay","aria-hidden":"true",style:e.normalizeStyle(O.value),onClick:z},null,4)):e.createCommentVNode("",!0)]),_:1},8,["duration"]),e.createVNode(e.Transition,{name:S.value,duration:N.value,onEnter:U,onAfterEnter:D,onLeave:g,onAfterLeave:w},{default:e.withCtx(()=>[p.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(l),role:"dialog","aria-modal":"true",class:e.normalizeClass(C.value),style:e.normalizeStyle(P.value),onClick:W},[e.renderSlot(b.$slots,"default")],14,Lc)):e.createCommentVNode("",!0)]),_:3},8,["name","duration"])],8,["to","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}),Fc={key:0,class:"actionsheet-header"},Vc={class:"actionsheet-header-text"},Rc={key:0,class:"actionsheet-description"},Pc={key:2,class:"actionsheet-list"},zc=["onClick"],Hc={key:2,class:"actionsheet-item-subname"},Ua=e.defineComponent({name:"ClActionSheet",__name:"Index",props:{id:String,className:String,show:Boolean,actionsList:{type:Array,default:()=>[]},title:String,description:String,cancelText:String,isCloseable:{type:Boolean,default:!0},isRound:{type:Boolean,default:!0},isOverlay:{type:Boolean,default:!0},isLockScroll:{type:Boolean,default:!0},duration:{type:Number,default:300},isCloseOnClickAction:Boolean,isCloseOnClickOverlay:{type:Boolean,default:!0},isSafeAreaInsetBottom:{type:Boolean,default:!0},zIndex:{type:Number,default:2e3},teleportTarget:{type:String,default:""}},emits:["update:show","onSelect","onCancel","onOpen","onOpened","onClose","onClosed","onClickOverlay"],setup(a,{emit:o}){const n=a,t=o,l=`actionsheet-${s.getRandom(5)}`,i=n.id,r=e.ref(n.show),c=e.computed(()=>!s.isEmpty(n.title)||!!n.isCloseable),u=e.computed(()=>d.value.length>0),d=e.computed(()=>Array.isArray(n.actionsList)?n.actionsList.filter(B=>!!B&&s.isObject(B)):[]),m=e.computed(()=>s.isFinite(n.zIndex)?n.zIndex:2e3),p=e.computed(()=>{const B={"panel-action-sheet":!0};return s.getJsonMerge(B,ee.getClassNameJson(n.className))}),h=e.computed(()=>{const B={"actionsheet-popup":!0};return s.getStringByJson(B," ")}),f=B=>{if(!B)return{};const F={"actionsheet-item":!0,"actionsheet-item--disabled":!!B.disabled,"actionsheet-item--loading":!!B.isLoading};return s.getJsonMerge(F,ee.getClassNameJson(B.className))};e.watch(r,B=>{B!==n.show&&t("update:show",B)}),e.watch(()=>n.show,B=>{r.value=B});const y=(B,F)=>{!B||B.disabled||B.isLoading||(t("onSelect",B,F),n.isCloseOnClickAction&&(r.value=!1))},x=()=>{t("onCancel"),r.value=!1},N=()=>{r.value=!1},M=()=>{t("onOpen")},S=()=>{t("onOpened")},C=()=>{t("onClose")},O=()=>{t("onClosed")},P=()=>{t("onClickOverlay")};return(B,F)=>(e.openBlock(),e.createBlock(We,{id:e.unref(i),className:h.value,show:r.value,"onUpdate:show":F[0]||(F[0]=L=>r.value=L),position:"bottom",isOverlay:a.isOverlay,isRound:a.isRound,duration:a.duration,isCloseOnClickOverlay:a.isCloseOnClickOverlay,isLockScroll:a.isLockScroll,isSafeAreaInsetBottom:a.isSafeAreaInsetBottom,zIndex:m.value,teleportTarget:a.teleportTarget,onOnOpen:M,onOnOpened:S,onOnClose:C,onOnClosed:O,onOnClickOverlay:P},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(p.value)},[c.value?(e.openBlock(),e.createElementBlock("div",Fc,[e.createElementVNode("div",Vc,e.toDisplayString(a.title),1),a.isCloseable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"actionsheet-header-close","aria-label":"关闭",onClick:N},[e.createVNode(le,{name:"close"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.renderSlot(B.$slots,"description",{},()=>[a.description?(e.openBlock(),e.createElementBlock("div",Rc,e.toDisplayString(a.description),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),u.value?(e.openBlock(),e.createElementBlock("ul",Pc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(L,I)=>(e.openBlock(),e.createElementBlock("li",{key:`${l}-${I}`,class:e.normalizeClass(f(L)),onClick:z=>y(L,I)},[L.isLoading?(e.openBlock(),e.createBlock(Te,{key:0,theme:"circleSpinner",size:"small",color:"#999",className:"actionsheet-item-loading"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",{class:"actionsheet-item-name",style:e.normalizeStyle(L.color?{color:L.color}:void 0)},e.toDisplayString(L.name),5),L.subname?(e.openBlock(),e.createElementBlock("span",Hc,e.toDisplayString(L.subname),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,zc))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),e.renderSlot(B.$slots,"default"),a.cancelText?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",class:"actionsheet-cancel",onClick:x},e.toDisplayString(a.cancelText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))],2)]),_:3},8,["id","className","show","isOverlay","isRound","duration","isCloseOnClickOverlay","isLockScroll","isSafeAreaInsetBottom","zIndex","teleportTarget"]))}}),Jc=["aria-readonly"],Uc=["aria-selected"],jc={key:0},Kc=["innerHTML"],_o=300,Wc=15,qc=.003,Bo=.3,Qt=e.defineComponent({name:"ClPickerColumn",__name:"Column",props:{className:String,optionsList:{type:Array,default:()=>[]},valueIndex:{type:Number,default:0},optionHeight:{type:Number,default:44},visibleOptionNum:{type:Number,default:6},swipeDuration:{type:Number,default:1e3},isAllowHtml:Boolean,isReadonly:Boolean},emits:["onSelect"],setup(a,{emit:o}){const n=a,t=o,l=`pickerColumn-${s.getRandom(5)}`,i=e.ref((Math.max(1,n.visibleOptionNum)*n.optionHeight-n.optionHeight)/2-(s.isFinite(n.valueIndex)&&n.valueIndex>=0?n.valueIndex:0)*n.optionHeight),r=e.ref(0),c=e.ref(!1),u=e.ref(0),d=e.ref(0);let m=null,p=0,h=0,f=0;const y=e.computed(()=>Math.max(1,n.visibleOptionNum)*n.optionHeight),x=e.computed(()=>(y.value-n.optionHeight)/2),N=e.computed(()=>i.value+r.value),M=e.computed(()=>(x.value-N.value)/n.optionHeight),S=e.computed(()=>({height:`${y.value}px`})),C=e.computed(()=>({transform:`translateY(${N.value}px)`,transition:u.value>0?`transform ${u.value}ms cubic-bezier(0.23, 1, 0.32, 1)`:"none"})),O=v=>({"picker-column-item--active":Math.round(M.value)===v,"picker-column-item--disabled":!!n.optionsList[v]?.disabled}),P=v=>{const E=Math.abs(v-M.value);return{height:`${n.optionHeight}px`,lineHeight:`${n.optionHeight}px`,opacity:Math.max(1-E*.4,0),transform:`rotateX(${-E*12}deg) scale(${Math.max(1-E*.15,.5)})`}},B=v=>{if("touches"in v){const E=v.touches;return E.length>0?E[0].clientY:0}return v.clientY},F=v=>Math.round((x.value-v)/n.optionHeight),L=v=>{const E=n.optionsList.length;if(E===0)return v;const k=i.value+v,T=x.value,R=x.value-(E-1)*n.optionHeight;let q=k;return q>T?q=T+(q-T)*Bo:q<R&&(q=R+(q-R)*Bo),q-i.value},I=v=>{const E=n.optionsList.length;if(E===0){i.value=x.value,r.value=0;return}const k=F(N.value);let T=F(v);if(T=Math.min(Math.max(T,0),E-1),n.optionsList[T]?.disabled){let q=-1;for(let H=1;H<E;H++){if(T-H>=0&&!n.optionsList[T-H]?.disabled){q=T-H;break}if(T+H<E&&!n.optionsList[T+H]?.disabled){q=T+H;break}}q>=0?T=q:T=k}i.value=x.value-T*n.optionHeight;const R=Math.abs(T-k);u.value=Math.min(n.swipeDuration,Math.max(200,R*150)),r.value=0,T!==n.valueIndex&&t("onSelect",T)},z=(v=>w(v)),W=(v=>b(v)),U=()=>{document.addEventListener("mousemove",z),document.addEventListener("mouseup",W)},D=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",W)};e.onBeforeUnmount(()=>{D(),m!==null&&cancelAnimationFrame(m)}),e.watch(()=>n.valueIndex,v=>{c.value||!s.isFinite(v)||v<0||(i.value=x.value-v*n.optionHeight,u.value=200)}),e.watch(()=>n.optionsList,()=>{if(c.value)return;const v=n.optionsList.length;let E=s.isFinite(n.valueIndex)&&n.valueIndex>=0?n.valueIndex:0;v>0&&(E=Math.min(E,v-1)),i.value=x.value-E*n.optionHeight,u.value=0});const g=v=>{n.isReadonly||!("touches"in v)&&v.button!==0||(c.value&&D(),d.value=B(v),h=Date.now(),f=0,c.value=!0,u.value=0,"touches"in v||U())},w=v=>{if(!c.value)return;if(!("touches"in v)&&v.buttons===0){b();return}v.preventDefault();const k=B(v)-d.value,T=Date.now();T-h>_o&&(h=T,f=k),m===null&&(m=requestAnimationFrame(()=>{m=null,r.value=L(p)})),p=k},b=v=>{if(!c.value)return;if(c.value=!1,D(),v?.type==="touchcancel"){r.value=0;return}m!==null&&(cancelAnimationFrame(m),m=null,r.value=L(p));const E=p-f,k=Date.now()-h,R=k>0&&k<_o&&Math.abs(E)>Wc?Math.abs(E)/k/qc*(E<0?-1:1):0;I(N.value+R)};return(v,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["picker-column",a.className]),style:e.normalizeStyle(S.value),role:"listbox","aria-readonly":a.isReadonly||void 0,onTouchstart:g,onTouchmove:w,onTouchend:b,onTouchcancel:b,onMousedown:g},[e.createElementVNode("div",{class:"picker-column-list",style:e.normalizeStyle(C.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.optionsList,(k,T)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-${T}`,class:e.normalizeClass(["picker-column-item",O(T)]),style:e.normalizeStyle(P(T)),role:"option","aria-selected":O(T)["picker-column-item--active"]||void 0},[a.isAllowHtml?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:k.text},null,8,Kc)):(e.openBlock(),e.createElementBlock("span",jc,e.toDisplayString(k.text),1))],14,Uc))),128))],4)],46,Jc))}}),Yc=["id"],Xc={class:"aream-header"},Gc={class:"aream-header-title"},Qc={class:"aream-columns"},Zc={key:0,class:"aream-loading"},eu=44,tu=6,ja=e.defineComponent({name:"ClAreaM",__name:"Index",props:{id:String,className:String,value:{type:[Array,String],default:()=>[]},show:Boolean,title:String,confirmButtonText:String,cancelButtonText:String,areaList:{type:Array,default:()=>[]},columnsNum:{type:Number,default:3},isOverlay:{type:Boolean,default:!0},isCloseOnClickOverlay:{type:Boolean,default:!0},duration:{type:Number,default:300},zIndex:{type:Number,default:2e3},teleportTarget:{type:String,default:""}},emits:["update:show","update:value","update:modelValue","onConfirm","onCancel","onChange"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.ref(0),r=e.ref(0),c=e.ref(0),u=e.ref(null),d=e.ref(!1),m=e.ref(!1),p=async()=>{if(!(d.value||m.value)){d.value=!0;try{const $=await Promise.resolve().then(()=>require("./area-data-3xH_7ZRE.cjs"));u.value=$.areaData,H()}catch($){re.error("ClAreaM","AreaM 内置省市区数据加载失败:",$)}finally{d.value=!1,m.value=!0}}};e.watch(()=>n.areaList,async $=>{(!Array.isArray($)||$.length===0)&&!m.value&&await p()},{immediate:!0});const h=e.computed(()=>n.show),f=e.computed(()=>s.isNonEmptyString(n.title)?n.title:"地区选择"),y=e.computed(()=>s.isNonEmptyString(n.confirmButtonText)?n.confirmButtonText:"确认"),x=e.computed(()=>s.isNonEmptyString(n.cancelButtonText)?n.cancelButtonText:"取消"),N=e.computed(()=>n.columnsNum>=3),M=e.computed(()=>{const $=Array.isArray(n.areaList)?n.areaList.filter(Z=>Z&&s.isObject(Z)&&s.isNonEmptyString(Z.name)):[];return $.length>0?$:u.value||[]}),S=e.computed(()=>(n.areaList===void 0||n.areaList===null||Array.isArray(n.areaList)&&n.areaList.length===0)&&!u.value&&!m.value),C=e.computed(()=>M.value),O=$=>Array.isArray($)?$.filter(Z=>!!Z&&s.isObject(Z)&&s.isNonEmptyString(Z.name)):[],P=e.computed(()=>{const $=C.value[i.value];return O($?$.children:[])}),B=e.computed(()=>{const $=P.value[r.value];return O($?$.children:[])}),F=$=>$.map(Z=>({text:Z.name,value:Z.name})),L=e.computed(()=>F(C.value)),I=e.computed(()=>F(P.value)),z=e.computed(()=>F(B.value)),W=e.computed(()=>eu),U=e.computed(()=>tu),D=e.computed(()=>({height:`${W.value}px`})),g=e.computed(()=>s.isNonEmptyString(n.teleportTarget)?n.teleportTarget:"body"),w=e.computed(()=>n.teleportTarget==="self"),b=e.computed(()=>{const $=Number(n.duration);return s.isFinite($)&&$>0?$:300}),v=e.computed(()=>{const $=Number(n.zIndex);return s.isFinite($)?$:2e3}),E=e.computed(()=>{const $={"panel-area-m":!0};return s.getJsonMerge($,ee.getClassNameJson(n.className))}),k=e.computed(()=>({zIndex:v.value,"--aream-duration":`${b.value}ms`})),T=e.computed(()=>({zIndex:v.value+1,"--aream-duration":`${b.value}ms`})),R=()=>{const $=[],Z=C.value[i.value];Z&&$.push(Z.name);const G=P.value[r.value];G&&$.push(G.name);const oe=B.value[c.value];return N.value&&oe&&$.push(oe.name),$},q=()=>{const $=R();t("update:value",$),t("update:modelValue",$),t("onChange",$)},H=()=>{const $=n.value;if(!Array.isArray($)||$.length===0)return;const[Z,G,oe]=$,he=C.value.findIndex(pe=>pe&&pe.name===Z);if(he>-1&&(i.value=he,r.value=0,c.value=0),G){const pe=P.value.findIndex(J=>J&&J.name===G);pe>-1&&(r.value=pe)}if(oe){const pe=B.value.findIndex(J=>J&&J.name===oe);pe>-1&&(c.value=pe)}};e.watch([()=>n.value,()=>n.areaList],H,{immediate:!0});const V=$=>{i.value=$,r.value=0,c.value=0,q()},_=$=>{r.value=$,c.value=0,q()},A=$=>{c.value=$,q()},Y=()=>{t("onConfirm",R()),t("update:show",!1)},X=()=>{t("onCancel"),t("update:show",!1)},j=()=>{n.isCloseOnClickOverlay&&t("update:show",!1)};return($,Z)=>{const G=e.resolveComponent("cl-load");return e.openBlock(),e.createBlock(e.Teleport,{to:g.value,disabled:w.value},[e.createVNode(e.Transition,{name:"aream-fade",duration:b.value},{default:e.withCtx(()=>[h.value&&a.isOverlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:"panel-area-m-overlay",style:e.normalizeStyle(k.value),onClick:j},null,4)):e.createCommentVNode("",!0)]),_:1},8,["duration"]),e.createVNode(e.Transition,{name:"aream-slide",duration:b.value},{default:e.withCtx(()=>[h.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(l),class:e.normalizeClass(E.value),style:e.normalizeStyle(T.value)},[e.createElementVNode("div",Xc,[e.createElementVNode("span",{class:"aream-header-btn",onClick:X},e.toDisplayString(x.value),1),e.createElementVNode("span",Gc,e.toDisplayString(f.value),1),e.createElementVNode("span",{class:"aream-header-btn aream-header-btn--confirm",onClick:Y},e.toDisplayString(y.value),1)]),e.createElementVNode("div",Qc,[S.value?(e.openBlock(),e.createElementBlock("div",Zc,[e.createVNode(G,{theme:"rotaryLine",size:"large",color:"var(--cl-primary, #1088f0)"}),Z[0]||(Z[0]=e.createElementVNode("span",{class:"aream-loading-text"},"数据加载中…",-1))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"picker-frame",style:e.normalizeStyle(D.value)},null,4),e.createVNode(Qt,{className:"aream-column",optionsList:L.value,valueIndex:i.value,optionHeight:W.value,visibleOptionNum:U.value,onOnSelect:V},null,8,["optionsList","valueIndex","optionHeight","visibleOptionNum"]),e.createVNode(Qt,{className:"aream-column",optionsList:I.value,valueIndex:r.value,optionHeight:W.value,visibleOptionNum:U.value,onOnSelect:_},null,8,["optionsList","valueIndex","optionHeight","visibleOptionNum"]),N.value?(e.openBlock(),e.createBlock(Qt,{key:0,className:"aream-column",optionsList:z.value,valueIndex:c.value,optionHeight:W.value,visibleOptionNum:U.value,onOnSelect:A},null,8,["optionsList","valueIndex","optionHeight","visibleOptionNum"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))])],14,Yc)):e.createCommentVNode("",!0)]),_:1},8,["duration"])],8,["to","disabled"])}}}),nu=["id"],Ka=e.defineComponent({name:"ClBackTop",__name:"Index",props:{id:String,className:String,visibleHeight:{type:Number,default:300},bottom:{type:Number,default:80},right:{type:Number,default:16},zIndex:{type:Number,default:1e3},scrollTarget:String,icon:{type:String,default:"angle-up"}},emits:["onClick","onShow","onHide"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.ref(!1),r=e.ref(!0);let c=null;const u=e.computed(()=>i.value),d=e.computed(()=>s.isNonEmptyString(n.icon)?n.icon:"angle-up"),m=e.computed(()=>{const B={"panel-back-top":!0,"panel-back-top--visible":i.value};return s.getJsonMerge(B,ee.getClassNameJson(n.className))}),p=e.computed(()=>({bottom:s.isFinite(n.bottom)&&n.bottom>=0?`${n.bottom}px`:"80px",right:s.isFinite(n.right)&&n.right>=0?`${n.right}px`:"16px",zIndex:s.isFinite(n.zIndex)&&n.zIndex>0?n.zIndex:1e3})),h=()=>{const B=f.value;if(B===window)return window.scrollY||document.documentElement.scrollTop||0;if(B&&B instanceof HTMLElement)return B.scrollTop;if(s.isNonEmptyString(n.scrollTarget))try{const F=document.querySelector(n.scrollTarget);return F?F.scrollTop:0}catch{return re.warn("ClBackTop","scrollTarget 选择器非法",n.scrollTarget),0}return window.scrollY||document.documentElement.scrollTop||0},f=e.ref(null),y=()=>{let B=null;if(s.isNonEmptyString(n.scrollTarget))try{B=document.querySelector(n.scrollTarget)}catch{re.warn("ClBackTop","scrollTarget 选择器非法,回退 window",n.scrollTarget)}return B||window},x=()=>{const B=h(),F=s.isFinite(n.visibleHeight)&&n.visibleHeight>=0?n.visibleHeight:0,L=B>F;L!==i.value&&(i.value=L,t(L?"onShow":"onHide"))},N=()=>{const B=y();B===window?window.scrollTo({top:0,behavior:"smooth"}):B.scrollTo({top:0,behavior:"smooth"})},M=()=>{S();const B=y();f.value=B,B.addEventListener("scroll",x,{passive:!0}),x()},S=()=>{f.value&&(f.value.removeEventListener("scroll",x),f.value=null)},C=()=>{c!==null&&(clearTimeout(c),c=null)},O=B=>{C(),c=B};e.onMounted(()=>{r.value=!0,M()}),e.onBeforeUnmount(()=>{S(),C()}),e.onActivated(()=>{r.value=!0,M()}),e.onDeactivated(()=>{r.value=!1,S(),C()}),e.watch(()=>n.scrollTarget,()=>{r.value&&(M(),s.isNonEmptyString(n.scrollTarget)&&f.value===window&&(C(),O(window.setTimeout(()=>{c=null,r.value&&M()},500))))});const P=()=>{N(),t("onClick")};return(B,F)=>(e.openBlock(),e.createBlock(e.Transition,{name:"backtop-fade"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(l),class:e.normalizeClass(m.value),style:e.normalizeStyle(p.value),onClick:P},[e.renderSlot(B.$slots,"default",{},()=>[e.createVNode(le,{name:d.value,className:"backtop-default-icon"},null,8,["name"])])],14,nu)):e.createCommentVNode("",!0)]),_:3}))}}),ou=["id"],au={key:0,class:"banner-body banner-body--row"},lu={class:"banner-text"},su={class:"banner-title-inner"},iu={class:"banner-desc-inner"},ru={key:1,class:"banner-body banner-body--column"},cu={class:"banner-text banner-text--column"},uu={class:"banner-title-line"},du={class:"banner-title-inner"},mu={class:"banner-desc-inner"},pu=["onClick"],fu=["onClick"],gu={class:"banner-text banner-text--column"},hu={class:"banner-title-line"},vu={class:"banner-title-inner"},yu={class:"banner-desc-inner"},ku={key:2,class:"banner-body"},bu=["onClick"],wo=120,In=["leftImage","leftText","textTopImagesBottom","imagesTopTextBottom","textTopImageBottom","imageTopTextBottom","image","images"],Wa=e.defineComponent({name:"ClBanner",__name:"Index",props:{id:String,className:String,type:{type:String,default:"leftImage",validator:a=>In.indexOf(a)!==-1},imagesList:{type:Array,default:()=>[]},title:String,description:String,titleLines:{type:Number,default:1,validator:a=>a===1||a===2},descriptionLines:{type:Number,default:2,validator:a=>a===1||a===2||a===3},customText:String,isShowClose:{type:Boolean,default:!1},imageHeight:{type:Number,default:wo},isImageGap:{type:Boolean,default:!0}},emits:["onClickImage","onClickTitle","onClickDescription","onClickCustom","onClose"],setup(a,{emit:o}){const n=a,t=o,l=`banner-${s.getRandom(5)}`,i=n.id,r=e.ref(!1),c=e.computed(()=>!r.value),u=e.computed(()=>n.isShowClose),d=e.computed(()=>Array.isArray(n.imagesList)?n.imagesList.filter(D=>!!D&&s.isObject(D)&&s.isNonEmptyString(D.src)):[]),m=e.computed(()=>{const D=d.value;return D.length>0?D[0]:{src:"",alt:""}}),p=e.computed(()=>s.isNonEmptyString(n.title)?n.title:""),h=e.computed(()=>s.isNonEmptyString(n.description)?n.description:""),f=e.computed(()=>s.isNonEmptyString(n.customText)?n.customText:"");In.indexOf(n.type)===-1&&re.warn("ClBanner",`非法 type「${String(n.type)}」,已回退渲染为纯图模式。合法值:${In.join("、")}`);const y=e.computed(()=>n.type==="leftImage"||n.type==="leftText"),x=e.computed(()=>n.type==="textTopImagesBottom"||n.type==="imagesTopTextBottom"||n.type==="textTopImageBottom"||n.type==="imageTopTextBottom"),N=e.computed(()=>n.type==="leftImage"),M=e.computed(()=>n.type==="textTopImagesBottom"||n.type==="textTopImageBottom"),S=e.computed(()=>n.type==="textTopImagesBottom"||n.type==="imagesTopTextBottom"||n.type==="images"),C=e.computed(()=>{const D={"panel-banner":!0,"panel-banner--row":y.value,"panel-banner--column":x.value,"panel-banner--image-only":!y.value&&!x.value};return s.getJsonMerge(D,ee.getClassNameJson(n.className))}),O=e.computed(()=>({height:`${s.isFinite(n.imageHeight)&&n.imageHeight>0?n.imageHeight:wo}px`})),P=e.computed(()=>{const D=n.titleLines;return{"banner-title--1":D===1,"banner-title--2":D===2||!(D===1||D===2)}}),B=e.computed(()=>{const D=n.descriptionLines;return{"banner-desc--1":D===1,"banner-desc--2":D===2,"banner-desc--3":D===3||!(D===1||D===2||D===3)}}),F=e.computed(()=>{const D=!S.value&&d.value.length<=1;return{"banner-images--gap":n.isImageGap&&!D,"banner-images--single":D}}),L=D=>{const g=d.value[D];g&&t("onClickImage",g,D)},I=()=>{t("onClickTitle")},z=()=>{t("onClickDescription")},W=()=>{t("onClickCustom")},U=()=>{r.value=!0,t("onClose")};return(D,g)=>c.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(i),class:e.normalizeClass(C.value)},[y.value?(e.openBlock(),e.createElementBlock("div",au,[N.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"banner-image-wrap",style:e.normalizeStyle(O.value),onClick:g[0]||(g[0]=w=>L(0))},[m.value.src?(e.openBlock(),e.createBlock(rt,{key:0,src:m.value.src,alt:m.value.alt,fit:"cover",width:"100%",height:"100%",className:"banner-image"},null,8,["src","alt"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",lu,[u.value?(e.openBlock(),e.createBlock(le,{key:0,name:"close",className:"banner-close banner-close--text",onClick:U})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),p.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["banner-title",P.value]),onClick:I},[e.createElementVNode("div",su,e.toDisplayString(p.value),1)],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),h.value?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["banner-desc",B.value]),onClick:z},[e.createElementVNode("div",iu,e.toDisplayString(h.value),1)],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64)),f.value||D.$slots.customText?(e.openBlock(),e.createElementBlock("div",{key:6,class:"banner-custom",onClick:W},[e.renderSlot(D.$slots,"customText",{},()=>[e.createTextVNode(e.toDisplayString(f.value),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[],64))]),N.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)):(e.openBlock(),e.createElementBlock("div",{key:2,class:"banner-image-wrap",style:e.normalizeStyle(O.value),onClick:g[1]||(g[1]=w=>L(0))},[m.value.src?(e.openBlock(),e.createBlock(rt,{key:0,src:m.value.src,alt:m.value.alt,fit:"cover",width:"100%",height:"100%",className:"banner-image"},null,8,["src","alt"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],4))])):x.value?(e.openBlock(),e.createElementBlock("div",ru,[M.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",cu,[e.createElementVNode("div",uu,[p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["banner-title",P.value]),onClick:I},[e.createElementVNode("div",du,e.toDisplayString(p.value),1)],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),u.value?(e.openBlock(),e.createBlock(le,{key:2,name:"close",className:"banner-close banner-close--card",onClick:U})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["banner-desc",B.value]),onClick:z},[e.createElementVNode("div",mu,e.toDisplayString(h.value),1)],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),f.value||D.$slots.customText?(e.openBlock(),e.createElementBlock("div",{key:2,class:"banner-custom",onClick:W},[e.renderSlot(D.$slots,"customText",{},()=>[e.createTextVNode(e.toDisplayString(f.value),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),e.createElementVNode("div",{class:e.normalizeClass(["banner-images",F.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(w,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-coltop-${b}`,class:"banner-image-item",onClick:v=>L(b)},[e.createVNode(rt,{src:w.src,alt:w.alt,fit:"cover",width:"100%",height:"100%",className:"banner-image"},null,8,["src","alt"])],8,pu))),128))],2)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass(["banner-images",F.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(w,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-colbottom-${b}`,class:"banner-image-item",onClick:v=>L(b)},[e.createVNode(rt,{src:w.src,alt:w.alt,fit:"cover",width:"100%",height:"100%",className:"banner-image"},null,8,["src","alt"])],8,fu))),128))],2),e.createElementVNode("div",gu,[e.createElementVNode("div",hu,[p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["banner-title",P.value]),onClick:I},[e.createElementVNode("div",vu,e.toDisplayString(p.value),1)],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),u.value?(e.openBlock(),e.createBlock(le,{key:2,name:"close",className:"banner-close banner-close--card",onClick:U})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["banner-desc",B.value]),onClick:z},[e.createElementVNode("div",yu,e.toDisplayString(h.value),1)],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),f.value||D.$slots.customText?(e.openBlock(),e.createElementBlock("div",{key:2,class:"banner-custom",onClick:W},[e.renderSlot(D.$slots,"customText",{},()=>[e.createTextVNode(e.toDisplayString(f.value),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])],64))])):(e.openBlock(),e.createElementBlock("div",ku,[u.value?(e.openBlock(),e.createBlock(le,{key:0,name:"close",className:"banner-close banner-close--image",onClick:U})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",{class:e.normalizeClass(["banner-images",F.value])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(w,b)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-image-${b}`,class:"banner-image-item",onClick:v=>L(b)},[e.createVNode(rt,{src:w.src,alt:w.alt,fit:"cover",width:"100%",height:"100%",className:"banner-image"},null,8,["src","alt"])],8,bu))),128))],2)]))],10,ou)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}),Vn="#1989fa",Ht=["single","multiple","range"],Cu=["id"],Su={key:0,class:"panel-calendarm__header"},Eu={class:"panel-calendarm__title"},_u={class:"panel-calendarm__subtitle"},Bu={class:"panel-calendarm__month"},wu={class:"panel-calendarm__weekdays"},xu={class:"panel-calendarm__days"},Nu=["onClick"],Tu={class:"panel-calendarm__day-inner"},Du={class:"panel-calendarm__day-num"},Iu={key:1,class:"panel-calendarm__day-lunar"},Au={key:1,class:"panel-calendarm__footer"},xo=e.defineComponent({name:"ClCalendarMPanel",__name:"Panel",props:{id:String,className:String,title:String,subtitle:String,cellsList:{type:Array,default:()=>[]},color:String,isShowConfirm:Boolean,confirmText:String,isShowCancel:Boolean,cancelText:String},emits:["onClickDay","onPrevMonth","onNextMonth","onConfirm","onCancel"],setup(a,{emit:o}){const n=a,t=o,l=`calendarm-panel-${s.getRandom(5)}`,i=["日","一","二","三","四","五","六"],r=e.computed(()=>s.isNonEmptyString(n.title)),c=e.computed(()=>{const h={};return s.isNonEmptyString(n.className)&&n.className.split(" ").forEach(f=>{s.isEmpty(f)||(h[f]=!0)}),h}),u=(h,f)=>{const y=/^#([0-9a-fA-F]{6})$/.exec(h);if(y)return`rgba(${parseInt(y[1].slice(0,2),16)}, ${parseInt(y[1].slice(2,4),16)}, ${parseInt(y[1].slice(4,6),16)}, ${f})`;const x=/^#([0-9a-fA-F]{3})$/.exec(h);if(x){const M=parseInt(x[1][0]+x[1][0],16),S=parseInt(x[1][1]+x[1][1],16),C=parseInt(x[1][2]+x[1][2],16);return`rgba(${M}, ${S}, ${C}, ${f})`}const N=Vn.replace("#","");return`rgba(${parseInt(N.slice(0,2),16)}, ${parseInt(N.slice(2,4),16)}, ${parseInt(N.slice(4,6),16)}, ${f})`},d=h=>{const f={"panel-calendarm__day--prev":h.type==="prev","panel-calendarm__day--next":h.type==="next","panel-calendarm__day--disabled":h.disabled,"panel-calendarm__day--today":h.isToday,"panel-calendarm__day--selected":h.isSelected,"panel-calendarm__day--start":h.isStart,"panel-calendarm__day--end":h.isEnd,"panel-calendarm__day--in-range":h.inRange};return s.isNonEmptyString(h.className)&&h.className.split(" ").forEach(y=>{s.isEmpty(y)||(f[y]=!0)}),f},m=h=>{const f={},y=s.isNonEmptyString(n.color)?n.color:Vn;return(h.isSelected||h.isStart||h.isEnd)&&(f.backgroundColor=y,f.borderColor=y,f.color="var(--cl-bg, #ffffff)"),h.inRange&&(f.backgroundColor=u(y,.12)),h.isToday&&!h.disabled&&!h.isSelected&&!h.isStart&&!h.isEnd&&!s.isNonEmptyString(h.color)&&(f.color=y),!h.disabled&&s.isNonEmptyString(h.color)&&(f.color=h.color),f},p=h=>{t("onClickDay",h)};return(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:a.id,class:e.normalizeClass(["panel-calendar-m",c.value])},[r.value?(e.openBlock(),e.createElementBlock("div",Su,[e.createElementVNode("div",Eu,e.toDisplayString(a.title),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",_u,[e.createElementVNode("div",{class:"panel-calendarm__arrow",onClick:f[0]||(f[0]=y=>t("onPrevMonth"))},[e.createVNode(le,{name:"angle-left"})]),e.createElementVNode("div",Bu,e.toDisplayString(a.subtitle),1),e.createElementVNode("div",{class:"panel-calendarm__arrow",onClick:f[1]||(f[1]=y=>t("onNextMonth"))},[e.createVNode(le,{name:"angle-right"})])]),e.createElementVNode("div",wu,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,(y,x)=>e.createElementVNode("div",{key:`${l}-wd-${x}`,class:"panel-calendarm__weekday"},e.toDisplayString(y),1)),64))]),e.createElementVNode("div",xu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.cellsList,(y,x)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-day-${y.timestamp}-${x}`,class:e.normalizeClass(["panel-calendarm__day",d(y)]),style:e.normalizeStyle(m(y)),onClick:N=>p(y)},[e.createElementVNode("div",Tu,[e.createElementVNode("div",Du,e.toDisplayString(y.text),1),y.restMark?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-calendarm__day-rest",y.restMark==="班"?"panel-calendarm__day-rest--work":"panel-calendarm__day-rest--rest"])},e.toDisplayString(y.restMark),3)):e.createCommentVNode("",!0),y.lunar?(e.openBlock(),e.createElementBlock("div",Iu,e.toDisplayString(y.lunar),1)):e.createCommentVNode("",!0)])],14,Nu))),128))]),a.isShowConfirm?(e.openBlock(),e.createElementBlock("div",Au,[a.isShowCancel?(e.openBlock(),e.createElementBlock("div",{key:0,class:"panel-calendarm__cancel",onClick:f[2]||(f[2]=y=>t("onCancel"))},e.toDisplayString(a.cancelText),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"panel-calendarm__confirm",style:e.normalizeStyle({color:a.color}),onClick:f[3]||(f[3]=y=>t("onConfirm"))},e.toDisplayString(a.confirmText),5)])):e.createCommentVNode("",!0)],10,Cu))}}),qa=e.defineComponent({name:"ClCalendarM",__name:"Index",props:{id:String,className:String,show:Boolean,type:{type:String,default:"single",validator:a=>Ht.indexOf(a)!==-1},isPoppable:{type:Boolean,default:!0},title:{type:String,default:"日期选择"},isShowConfirm:{type:Boolean,default:!0},confirmText:{type:String,default:"确定"},isShowCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},minDate:{type:String,default:null},maxDate:{type:String,default:null},defaultDate:{type:[Date,Array],default:null},formatter:{type:Function,default:null},isShowLunar:Boolean,isWeekendRest:{type:Boolean,default:void 0},restDays:{type:Array,default:()=>[]},workDays:{type:Array,default:()=>[]},maxRange:{type:Number,default:0},color:{type:String,default:Vn},teleportTarget:{type:String,default:""}},emits:["update:show","onConfirm","onCancel","onSelect","onUnSelect","onOverRange","onMonthChange"],setup(a,{emit:o}){const l="var(--cl-danger, #ee0a24)",i=a,r=o,c=i.id,u=e.ref(i.show),d=e.ref(i.type);Ht.indexOf(d.value)===-1&&(re.warn("ClCalendarM",`非法 type「${String(d.value)}」,已回退为 single。合法值:${Ht.join("、")}`),d.value="single");const m=e.ref(i.isPoppable),p=e.ref(i.title),h=e.ref(i.isShowConfirm),f=e.ref(i.confirmText),y=e.ref(i.isShowCancel),x=e.ref(i.cancelText),N=e.ref(i.isShowLunar),M=e.computed(()=>{if(i.isWeekendRest!==void 0)return i.isWeekendRest;const J=ot("calendarM");return J?.isWeekendRest!==void 0?J.isWeekendRest:!0}),S=e.computed(()=>i.restDays.length>0?i.restDays:ot("calendarM")?.restDays||[]),C=e.computed(()=>i.workDays.length>0?i.workDays:ot("calendarM")?.workDays||[]),O=e.ref(i.color),P=e.ref(s.isFinite(i.maxRange)&&i.maxRange>0?i.maxRange:0),B=e.ref([]);let F=[];const L=e.ref(0),I=e.ref(0),z=e.computed(()=>{if(s.isNonEmptyString(i.minDate)){const J=ye.objDay(i.minDate);if(J.isValid())return J.startOf("day").valueOf()}return ye.objDay().startOf("day").valueOf()}),W=e.computed(()=>{if(s.isNonEmptyString(i.maxDate)){const J=ye.objDay(i.maxDate);if(J.isValid())return J.startOf("day").valueOf()}return ye.objDay(z.value).add(6,"month").valueOf()}),U=e.computed(()=>`${L.value}年${I.value}月`),D=e.computed(()=>{const J=[],K=ye.objDay({year:L.value,month:I.value-1,day:1}),Q=ye.objDay({year:L.value,month:I.value-1,day:1-K.day()}),ae=ye.objDay().startOf("day");let se=z.value,de=W.value;se>de&&(re.warn("ClCalendarM","minDate 晚于 maxDate,可选范围约束已降级为不限制"),se=Number.MIN_SAFE_INTEGER,de=Number.MAX_SAFE_INTEGER);const fe=B.value,we=d.value==="range",Be=we&&fe.length>0?fe[0]:null,ze=we&&fe.length>1?fe[1]:null;for(let be=0;be<42;be++){const ve=Q.add(be,"day"),Ze=ve.valueOf(),Tl=N.value&&E.value?T(ve.toDate()):"",Ft=R(ve),Dl={year:ve.year(),month:ve.month()+1,day:ve.date(),timestamp:Ze,type:ve.month()===I.value-1?"normal":Ze<K.valueOf()?"prev":"next",disabled:Ze<se||Ze>de,isToday:H(ve,ae),isSelected:fe.some(Il=>H(Il,ve)),isStart:!!Be&&H(ve,Be),isEnd:!!ze&&H(ve,ze),inRange:!!Be&&!!ze&&Ze>Be.getTime()&&Ze<ze.getTime(),text:H(ve,ae)?"今天":String(ve.date()),color:Ft&&Ft.text==="休"?l:void 0,restMark:Ft?Ft.text:void 0,lunar:Tl};J.push(Dl)}return s.isFunction(i.formatter)&&J.forEach(be=>{let ve;try{ve=i.formatter({date:V(be),text:be.text,type:be.type,isDisabled:be.disabled,isToday:be.isToday,isSelected:be.isSelected,isStart:be.isStart,isEnd:be.isEnd,inRange:be.inRange,restMark:be.restMark,lunar:be.lunar})}catch(Ze){re.warn("ClCalendarM","formatter 执行异常,该格按默认渲染",Ze),ve=void 0}ve&&s.isObject(ve)&&(s.isNonEmptyString(ve.text)&&(be.text=ve.text),s.isNonEmptyString(ve.color)&&(be.color=ve.color),s.isNonEmptyString(ve.className)&&(be.className=ve.className))}),J}),g=e.computed(()=>({title:p.value,subtitle:U.value,cellsList:D.value,color:O.value,isShowConfirm:h.value,confirmText:f.value,isShowCancel:y.value,cancelText:x.value})),w=e.computed(()=>s.isNonEmptyString(i.className)?i.className:""),b=e.computed(()=>s.isNonEmptyString(i.className)?i.className:"");let v=null;const E=e.ref(!1),k=async()=>{if(!E.value)try{v=(await import("lunar-typescript")).Lunar,E.value=!0}catch(J){re.warn("ClCalendarM","农历插件加载失败,本次不显示农历",J)}},T=J=>{if(!v)return"";try{const K=v.fromDate(J),Q=K.getFestivals();if(s.isNonEmptyString(Q[0]))return Q[0];const ae=K.getJieQi();if(s.isNonEmptyString(ae))return ae;const se=K.getDayInChinese();return s.isNonEmptyString(se)?se:""}catch(K){return re.warn("ClCalendarM","农历计算异常,该格不显示农历",K),""}},R=J=>{const K=Q=>Q.some(ae=>ye.objDay(ae).isSame(J,"day"));if(C.value.length>0&&K(C.value))return{text:"班"};if(S.value.length>0&&K(S.value))return{text:"休"};if(M.value){const Q=ye.objDay(J).day();if(Q===0||Q===6)return{text:"休"}}return null},q=J=>{const K=ye.objDay(J);return K.isValid()?K.startOf("day").toDate():ye.objDay().startOf("day").toDate()},H=(J,K)=>ye.objDay(J).isSame(ye.objDay(K),"day"),V=J=>ye.objDay({year:J.year,month:J.month-1,day:J.day}).toDate(),_=()=>{const J=i.defaultDate;return J===null?[]:Array.isArray(J)?J.map(K=>q(K)):[q(J)]},A=J=>{const K=ye.objDay();return J.length>0?{year:ye.objDay(J[0]).year(),month:ye.objDay(J[0]).month()+1}:{year:K.year(),month:K.month()+1}};(()=>{B.value=_(),d.value==="range"&&B.value.length>1&&(B.value=[...B.value].sort((K,Q)=>K.getTime()-Q.getTime())),F=[...B.value];const J=A(B.value);L.value=J.year,I.value=J.month})();const Y=()=>{d.value=Ht.indexOf(i.type)!==-1?i.type:"single",m.value=i.isPoppable,p.value=i.title,h.value=i.isShowConfirm,f.value=i.confirmText,y.value=i.isShowCancel,x.value=i.cancelText,N.value=i.isShowLunar,O.value=i.color,P.value=s.isFinite(i.maxRange)&&i.maxRange>0?i.maxRange:0},X=J=>{let K=L.value,Q=I.value+J;Q<1&&(Q=12,K-=1),Q>12&&(Q=1,K+=1),L.value=K,I.value=Q,r("onMonthChange",K,Q)},j=()=>{u.value=!1},$=()=>{const J=B.value;let K=null;J.length>0&&(d.value==="single"?K=J[0]:K=[...J]),r("onConfirm",K),j()};e.watch(()=>i.show,J=>{J?(Y(),F=[...B.value],u.value=!0):u.value=!1},{immediate:!0}),e.watch(u,J=>{r("update:show",J)}),e.watch(N,J=>{J&&k()},{immediate:!0});const Z=()=>{X(-1)},G=()=>{X(1)},oe=J=>{if(J.disabled)return;const K=V(J);if(d.value==="single")B.value=[K],r("onSelect",K),h.value||$();else if(d.value==="multiple"){const Q=B.value.findIndex(ae=>H(ae,K));if(Q!==-1)B.value.splice(Q,1),r("onUnSelect",K),h.value||$();else{if(P.value>0&&B.value.length>=P.value){r("onOverRange");return}B.value.push(K),r("onSelect",K),h.value||$()}}else if(B.value.length===0)B.value=[K],r("onSelect",K);else if(B.value.length===1){const Q=B.value[0];if(H(Q,K))B.value=[Q,K],r("onSelect",K),h.value||$();else{const ae=K.getTime()<Q.getTime()?K:Q,se=K.getTime()<Q.getTime()?Q:K,de=Math.round((se.getTime()-ae.getTime())/864e5)+1;if(P.value>0&&de>P.value){r("onOverRange");return}B.value=[ae,se],r("onSelect",K),h.value||$()}}else B.value=[K],r("onSelect",K)},he=()=>{$()},pe=()=>{B.value=[...F],r("onCancel"),j()};return(J,K)=>m.value?(e.openBlock(),e.createBlock(We,{key:0,show:u.value,"onUpdate:show":K[0]||(K[0]=Q=>u.value=Q),position:"bottom",isRound:!0,isCloseOnClickOverlay:!1,className:w.value,"teleport-target":a.teleportTarget},{default:e.withCtx(()=>[e.createVNode(xo,e.mergeProps({id:e.unref(c),className:b.value},g.value,{onOnClickDay:oe,onOnPrevMonth:Z,onOnNextMonth:G,onOnConfirm:he,onOnCancel:pe}),null,16,["id","className"])]),_:1},8,["show","className","teleport-target"])):(e.openBlock(),e.createBlock(xo,e.mergeProps({key:1,id:e.unref(c),className:b.value},g.value,{onOnClickDay:oe,onOnPrevMonth:Z,onOnNextMonth:G,onOnConfirm:he,onOnCancel:pe}),null,16,["id","className"]))}}),Mu=["id"],Ou={key:0,class:"panel-cell__left-icon"},$u={class:"panel-cell__body"},Lu={key:0,class:"panel-cell__title"},Fu={key:0,class:"panel-cell__right-icon"},Ya=e.defineComponent({name:"ClCell",__name:"Index",props:{id:String,className:String,label:String,leftIcon:String,rightIcon:String,size:{type:String,default:"default"},url:{type:[String,Object],default:void 0},isReplace:{type:Boolean,default:!1},isOutside:{type:Boolean,default:!1},isBorderBottom:{type:Boolean,default:!0},isShowClickEffect:{type:Boolean,default:!0}},emits:{onClick:a=>!0},setup(a,{emit:o}){const n=a,t=o,l=n.id,i=Kl.useRouter(),r=e.computed(()=>n.url?!u(n.url):!1),c=e.computed(()=>{let m={"panel-cell":!0};return m=s.getJsonMerge(m,ee.getClassNameJson(n.className)),n.isBorderBottom&&(m["panel-cell--border-bottom"]=!0),(n.isShowClickEffect||r.value)&&(m["panel-cell--clickable"]=!0),n.size==="large"&&(m["panel-cell--large"]=!0),m}),u=m=>s.isArray(m)?!0:s.isObject(m)?Object.keys(m).length===0:!1,d=m=>{t("onClick",m),n.url&&(u(n.url)||(n.isOutside?s.isNonEmptyString(n.url)?n.isReplace?window.location.replace(n.url):window.location.href=n.url:re.warn("ClCell","警告:isOutside 为 true 时 url 必须为字符串类型"):(n.isReplace?i.replace(n.url):i.push(n.url)).catch(h=>{re.warn("ClCell","路由跳转失败",h)})))};return(m,p)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(c.value),onClick:d},[a.leftIcon||m.$slots.left?(e.openBlock(),e.createElementBlock("div",Ou,[e.renderSlot(m.$slots,"left",{},()=>[a.leftIcon?(e.openBlock(),e.createBlock(le,{key:0,name:a.leftIcon,className:"panel-cell__left-icon-inner"},null,8,["name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",$u,[e.renderSlot(m.$slots,"default",{},()=>[a.label?(e.openBlock(),e.createElementBlock("div",Lu,e.toDisplayString(a.label),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),a.rightIcon||m.$slots.right?(e.openBlock(),e.createElementBlock("div",Fu,[e.renderSlot(m.$slots,"right",{},()=>[a.rightIcon?(e.openBlock(),e.createBlock(le,{key:0,name:a.rightIcon,className:"panel-cell__right-icon-inner"},null,8,["name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],10,Mu))}}),Vu=["id"],Ru="transform 0.3s cubic-bezier(0.32, 0.72, 0, 1)",No=2,Pu=5,Xa=e.defineComponent({name:"ClCellSwipe",__name:"Index",props:{id:String,className:String,leftWidth:{type:Number,default:0},rightWidth:{type:Number,default:0},isDisabled:{type:Boolean,default:!1},isConfirm:{type:Boolean,default:!1}},emits:["onClick","onClickLeft","onClickRight","onOpen","onClose"],setup(a,{emit:o}){const n=a,t=o,l=n.id;let i=0,r=0;const c=e.ref(!1),u=e.ref(0);let d=!1,m=!1;const p=e.ref(!1),h=_=>s.isFinite(_)&&_>0?_:0,f=e.computed(()=>h(n.leftWidth)),y=e.computed(()=>h(n.rightWidth)),x=e.computed(()=>f.value>0),N=e.computed(()=>y.value>0),M=e.computed(()=>{const _={"panel-cell-swipe":!0};return c.value&&(_["cellswipe-is-dragging"]=!0),s.getJsonMerge(_,ee.getClassNameJson(n.className))}),S=e.computed(()=>({width:`${f.value}px`})),C=e.computed(()=>({width:`${y.value}px`})),O=e.computed(()=>({transform:`translateX(${u.value}px)`,transition:c.value?"none":Ru})),P=_=>Math.min(Math.max(_,-y.value),f.value),B=_=>{let A=!1;_<0&&y.value>0?Math.abs(_)>=y.value/No?(u.value=-y.value,A=!0):u.value=0:_>0&&f.value>0&&_>=f.value/No?(u.value=f.value,A=!0):u.value=0,F(A)},F=_=>{_&&!d?(d=!0,t("onOpen")):!_&&d&&(d=!1,p.value=!1,t("onClose"))},L=_=>{i=_,r=u.value,m=!1,c.value=!0},I=_=>{if(!c.value||n.isDisabled)return;const A=_-i;Math.abs(A)>Pu&&(m=!0),u.value=P(r+A)},z=()=>{c.value&&(c.value=!1,B(u.value))},W=_=>{if(n.isDisabled)return;const A=_.touches[0];A&&L(A.clientX)},U=_=>{if(!c.value||n.isDisabled)return;const A=_.touches[0];A&&I(A.clientX)},D=()=>{z()},g=(_=>T(_)),w=(()=>R()),b=()=>{document.addEventListener("mousemove",g),document.addEventListener("mouseup",w)},v=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",w)},E=()=>{v(),c.value=!1},k=_=>{n.isDisabled||_.button===0&&(L(_.clientX),b())},T=_=>{if(!(!c.value||n.isDisabled)){if(_.buttons===0){R();return}I(_.clientX)}},R=()=>{c.value&&(v(),z())};e.onBeforeUnmount(E),e.onDeactivated(E),e.watch([f,y],()=>{if(c.value)return;const _=P(u.value);u.value=_,F(_!==0)}),e.watch(()=>n.isConfirm,_=>{_||(p.value=!1)});const q=()=>{if(m){m=!1;return}t("onClick"),u.value!==0&&(u.value=0,F(!1))},H=()=>{t("onClickLeft")},V=()=>{if(n.isConfirm){if(!p.value){p.value=!0;return}p.value=!1}t("onClickRight")};return(_,A)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(M.value),onTouchstart:W,onTouchmove:U,onTouchend:D,onTouchcancel:D,onMousedown:k},[x.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"cellswipe-left",style:e.normalizeStyle(S.value),onClick:H},[e.renderSlot(_.$slots,"left")],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),N.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["cellswipe-right",{"cellswipe-right--confirming":p.value}]),style:e.normalizeStyle(C.value),onClick:V},[e.renderSlot(_.$slots,"right",{confirming:p.value})],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),e.createElementVNode("div",{class:"cellswipe-content",style:e.normalizeStyle(O.value),onClick:q},[e.renderSlot(_.$slots,"default")],4)],42,Vu))}}),zu=["id"],Hu={key:0,class:"code-legend-m__head"},Ju={key:0,class:"code-legend-m__title"},Uu={key:2,class:"code-legend-m__remark"},ju={class:"code-legend-m__body"},Ku={class:"code-legend-m__drawer-head"},Wu={class:"code-legend-m__drawer-actions"},qu={class:"code-legend-m__drawer-body"},Yu={key:0,class:"code-legend-m__code"},Xu={class:"code-legend-m__code-inner"},Gu={key:1,class:"code-legend-m__code-slot"},To=300,Do=2e3,An=1,Ga=e.defineComponent({name:"ClCodeLegendM",__name:"Index",props:{id:String,className:String,title:String,source:String,isOverlay:{type:Boolean,default:!0},isCloseOnClickOverlay:{type:Boolean,default:!0},isSafeAreaInsetBottom:Boolean,duration:{type:Number,default:To},zIndex:{type:Number,default:Do},teleportTarget:{type:String,default:""}},emits:["onOpen","onOpened","onClose","onClosed","onClickOverlay"],setup(a,{emit:o}){const n=a,t=o,l=e.useSlots(),i=n.id,r=e.ref(!1),c=e.ref(r),u=e.computed(()=>s.isNonEmptyString(n.title)?n.title:""),d=e.computed(()=>s.isString(n.source)?n.source:""),m=e.computed(()=>s.isNonEmptyString(d.value)),p=e.computed(()=>s.isNonEmptyString(u.value)||!!l.remark),h=e.computed(()=>m.value||!!l.code),f=e.computed(()=>n.isOverlay),y=e.computed(()=>{const z=n.teleportTarget;return s.isNonEmptyString(z)&&/^[#.][A-Za-z_][\w-]*$/.test(z)?z:"body"}),x=e.computed(()=>n.teleportTarget==="self"),N=e.computed(()=>{const z=s.isNumber(n.duration)?n.duration:NaN;return s.isFinite(z)&&z>=0?z:To}),M=e.computed(()=>{const z=s.isNumber(n.zIndex)?Math.round(n.zIndex):NaN;return s.isFinite(z)&&z>=0?z:Do}),S=e.computed(()=>{const z={"code-legend-m":!0};return s.getJsonMerge(z,ee.getClassNameJson(n.className))}),C=e.computed(()=>({"code-legend-m__drawer":!0,"code-legend-m__drawer--safe-bottom":n.isSafeAreaInsetBottom})),O=e.computed(()=>({zIndex:Math.min(M.value,Number.MAX_SAFE_INTEGER-An),"--codelgm-duration":`${N.value}ms`})),P=e.computed(()=>({zIndex:Math.min(M.value,Number.MAX_SAFE_INTEGER-An)+An,"--codelgm-duration":`${N.value}ms`})),B=()=>{h.value&&(r.value?t("onClose"):t("onOpen"),r.value=!r.value)},F=()=>{r.value&&(t("onClose"),r.value=!1)},L=()=>{r.value&&(t("onClickOverlay"),n.isCloseOnClickOverlay&&F())},I=()=>{r.value||(c.value=!1)};return e.watch(r,z=>{z&&(c.value=!0)}),(z,W)=>(e.openBlock(),e.createElementBlock("section",{id:e.unref(i),class:e.normalizeClass(S.value)},[p.value?(e.openBlock(),e.createElementBlock("header",Hu,[u.value?(e.openBlock(),e.createElementBlock("div",Ju,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),z.$slots.remark?(e.openBlock(),e.createElementBlock("div",Uu,[e.renderSlot(z.$slots,"remark")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",ju,[e.renderSlot(z.$slots,"demo")]),h.value?(e.openBlock(),e.createElementBlock("footer",{key:2,class:"code-legend-m__foot",onClick:B},[W[0]||(W[0]=e.createElementVNode("span",{class:"code-legend-m__foot-text"},"查看源码",-1)),e.createVNode(le,{name:"angle-up",className:"code-legend-m__foot-arrow"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),c.value?(e.openBlock(),e.createBlock(e.Teleport,{key:4,to:y.value,disabled:x.value},[e.createVNode(e.Transition,{name:"codelgm-fade",duration:N.value},{default:e.withCtx(()=>[r.value&&f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"code-legend-m__mask",role:"button","aria-label":"关闭",style:e.normalizeStyle(O.value),onClick:L},null,4)):e.createCommentVNode("",!0)]),_:1},8,["duration"]),e.createVNode(e.Transition,{name:"codelgm-slide-up",duration:N.value,onAfterLeave:I},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(C.value),role:"dialog","aria-modal":"true",style:e.normalizeStyle(P.value)},[e.createElementVNode("div",Ku,[W[1]||(W[1]=e.createElementVNode("span",{class:"code-legend-m__drawer-title"},"示例代码",-1)),e.createElementVNode("span",Wu,[m.value?(e.openBlock(),e.createBlock(Hn,{key:0,"text-label":d.value,"is-use-success":!0,className:"code-legend-m__copy"},null,8,["text-label"])):e.createCommentVNode("",!0),e.createVNode(le,{name:"close",className:"code-legend-m__drawer-close",onClick:F})])]),e.createElementVNode("div",qu,[m.value?(e.openBlock(),e.createElementBlock("pre",Yu,[e.createElementVNode("code",Xu,e.toDisplayString(d.value),1)])):z.$slots.code?(e.openBlock(),e.createElementBlock("div",Gu,[e.renderSlot(z.$slots,"code")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))])],6)):e.createCommentVNode("",!0)]),_:3},8,["duration"])],8,["to","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))],10,zu))}}),Qu=["id"],Zu={class:"imgCropperM-container"},ed={key:0,class:"imgCropperM-upload"},td=["id","name"],nd=["for"],od={class:"frame-alignline"},ad={key:0,class:"imgCropperM-loading-mask"},ld={class:"imgCropperM-btns"},sd={class:"imgCropperM-btns-row"},id={key:0,class:"imgCropperM-btns-save"},rd={class:"panel-cropperM-preview"},cd={class:"cropperM-preview-body"},ud=["src"],dd={key:1,class:"cropperM-preview-empty"},Io=320,md=480,Qa=e.defineComponent({name:"ClCropperM",__name:"Index",props:{id:String,className:String,src:{type:String,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},isCenterBox:{type:Boolean,default:!1},isShowUpload:{type:Boolean,default:!0},isShowSave:{type:Boolean,default:!0},isShowPreview:{type:Boolean,default:!0},previewTeleportTarget:{type:String,default:""},previewShape:{type:String,default:"square"},fillColor:{type:String,default:"transparent"},alignLine:{type:String,default:"center"}},emits:{onSubmit:a=>!0,onImgLoad:a=>!0,onRealTime:a=>!0},setup(a,{expose:o,emit:n}){const t=e.defineAsyncComponent(()=>import("cropper-next-vue").then(_=>(Promise.resolve().then(()=>require("./index-Dyvby5gX.cjs")),_.VueCropper))),l=a,i=n,r=l.id||`cropperM-${s.getRandom(8)}`,c=e.useTemplateRef("refElCropper"),u=e.useTemplateRef("refElMain"),d=e.ref(!1),m=e.reactive({uploadAgainId:`btnImgCropperM_uploadAgain_${s.getRandom(8)}`,isInitImageLoading:!1}),p=e.ref(!1),h=e.reactive({url:"",w:0,h:0,imgStyle:{}}),f=e.reactive({img:"",wrapper:{width:300,height:300},cropLayout:{width:l.width,height:l.height},color:l.fillColor,outputSize:1,outputType:"png",full:!0,original:!1,maxSideLength:3e3,mode:"contain",centerBox:l.isCenterBox,centerWrapper:!1}),y=e.ref(!0),x=e.computed(()=>{const{alignLine:_}=l;return s.isNonEmptyString(_)?_.split(","):[]}),N=e.computed(()=>{const _={"panel-cropper-m":!0};return s.getJsonMerge(_,ee.getClassNameJson(l.className))}),M=e.computed(()=>l.previewShape==="round"),S=e.computed(()=>{const _=Math.max(1,h.w||l.width),A=Math.max(1,h.h||l.height),Y=Math.min(1,Io/Math.max(_,A));if(M.value){const X=Math.round(Math.max(_,A)*Y);return{width:`${X}px`,height:`${X}px`}}return{width:`${Math.round(_*Y)}px`,height:`${Math.round(A*Y)}px`}}),C=e.computed(()=>{const _=Math.max(1,h.w||l.width),A=Math.max(1,h.h||l.height),Y=Math.min(1,Io/Math.max(_,A));return{width:`${Math.round(_)}px`,height:`${Math.round(A)}px`,transform:`scale(${Y})`,transformOrigin:"0 0"}}),O=()=>{f.cropLayout={width:Math.max(1,l.width??1),height:Math.max(1,l.height??1)}},P=()=>{const _=u.value;if(!_)return;const A=_.clientWidth||300,Y=Math.max(1,l.width??1),X=Math.max(1,l.height??1),j=Math.min(Math.round(A*X/Y),md);f.wrapper={width:A,height:j}},B=()=>{const{src:_}=l;let A="";if(s.isNonEmptyString(_)){if(_.substring(0,5)!=="data:")if(/^(http|https):\/\/[^\s]+$/.test(_)){const Y=`_t=${new Date().getTime()}`,X=_.indexOf("?")===-1?"?":"&";A=_+X+Y}else A=_;else A=_;m.isInitImageLoading=!0}else m.isInitImageLoading=!1;f.img=A},F=()=>{O(),B()};let L=null;e.onMounted(()=>{e.nextTick(()=>{y.value&&(F(),P(),u.value&&(L=new dn({element:u.value,isDelay:!1,callback:()=>{P()}})))})}),e.onBeforeUnmount(()=>{y.value=!1,L?.destroy(),L=null}),e.watch(()=>l.src,(_,A)=>{_!==A&&B()}),e.watch(()=>[l.width,l.height,l.fillColor,l.isCenterBox],([_,A,Y,X],[j,$,Z,G])=>{(_!==j||A!==$)&&(O(),P()),Y!==Z&&(f.color=Y),X!==G&&(f.centerBox=X)});const I=_=>{if(!_){m.isInitImageLoading=!1,i("onImgLoad",!1);return}const A=_.type==="success";m.isInitImageLoading=!1,i("onImgLoad",A)},z=_=>{_&&(h.url=_.url||"",h.w=_.w||0,h.h=_.h||0,h.imgStyle=_.img?{width:_.img.width,height:_.img.height,transform:_.img.transform}:{},i("onRealTime",{url:h.url,w:h.w,h:h.h,imgStyle:h.imgStyle}))},W=()=>{p.value=!0},U=_=>{const A=_.currentTarget;!A||!A.files||A.files.length===0||(m.isInitImageLoading=!0,s.getBase64ByFile(A.files).then(Y=>{if(y.value){if(!Y){m.isInitImageLoading=!1;return}f.img=Y}}).catch(()=>{y.value&&(m.isInitImageLoading=!1)}))},D=()=>{},g=()=>{c.value?.zoomIn(.02)},w=()=>{c.value?.zoomOut(.02)},b=()=>{c.value?.rotateLeft()},v=()=>{c.value?.rotateRight()},E=()=>{c.value&&(m.isInitImageLoading=!0,c.value.reload())},k=(_,A)=>{i("onSubmit",{success:!A,data:_,msg:A})},T=()=>{if(!c.value){k("","vue-cropper 实例未就绪");return}c.value.getCropData("base64").then(_=>{k(_,"")}).catch(_=>{const A=s.isString(_)?_:_?.message||"保存失败";k("",A)})};return o({getImageBase64:()=>c.value?c.value.getCropData("base64"):Promise.reject(new Error("vue-cropper 实例未就绪")),refresh:()=>{if(!c.value){re.warn("ClCropperM","refresh 调用无效:vue-cropper 实例未就绪");return}c.value.reload()},loadingStart:()=>{d.value=!0},loadingStop:()=>{d.value=!1}}),(_,A)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(r),class:e.normalizeClass(N.value)},[e.createElementVNode("div",Zu,[a.isShowUpload?(e.openBlock(),e.createElementBlock("div",ed,[e.createElementVNode("input",{type:"file",id:m.uploadAgainId,name:m.uploadAgainId,accept:"image/jpg,image/jpeg,image/pjpeg,image/png,image/x-png",onChange:U},null,40,td),e.createElementVNode("label",{for:m.uploadAgainId},[e.createElementVNode("span",{class:"imgCropperM-upload-box","aria-label":"上传图片",role:"button",tabindex:"0",onClick:e.withModifiers(D,["stop"])},[e.createVNode(le,{name:"upload"}),A[1]||(A[1]=e.createElementVNode("span",{class:"imgCropperM-upload-text"},"上传图片",-1))])],8,nd)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",{ref_key:"refElMain",ref:u,class:"imgCropperM-main"},[e.createVNode(e.unref(t),e.mergeProps({ref_key:"refElCropper",ref:c},f,{onRealTime:z,onImgLoad:I}),{loading:e.withCtx(()=>[...A[2]||(A[2]=[])]),_:1},16),e.createElementVNode("div",od,[x.value.indexOf("center")>-1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[A[3]||(A[3]=e.createElementVNode("div",{class:"alignline-h alignline-center-h"},null,-1)),A[4]||(A[4]=e.createElementVNode("div",{class:"alignline-v alignline-center-v"},null,-1))],64)):x.value.indexOf("nineGrid")>-1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[A[5]||(A[5]=e.createElementVNode("div",{class:"alignline-h alignline-nineGrid-h1"},null,-1)),A[6]||(A[6]=e.createElementVNode("div",{class:"alignline-h alignline-nineGrid-h2"},null,-1)),A[7]||(A[7]=e.createElementVNode("div",{class:"alignline-v alignline-nineGrid-v1"},null,-1)),A[8]||(A[8]=e.createElementVNode("div",{class:"alignline-v alignline-nineGrid-v2"},null,-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))]),d.value||m.isInitImageLoading?(e.openBlock(),e.createElementBlock("div",ad,[e.createVNode(Te,{theme:"circleSpinner",size:"large"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],512),e.createElementVNode("div",ld,[e.createElementVNode("div",sd,[e.createElementVNode("span",{class:"imgCropperM-btn","aria-label":"放大",role:"button",tabindex:"0",onClick:e.withModifiers(g,["stop"])},[e.createVNode(le,{name:"search-plus"})]),e.createElementVNode("span",{class:"imgCropperM-btn","aria-label":"缩小",role:"button",tabindex:"0",onClick:e.withModifiers(w,["stop"])},[e.createVNode(le,{name:"search-minus"})]),e.createElementVNode("span",{class:"imgCropperM-btn","aria-label":"左转90度",role:"button",tabindex:"0",onClick:e.withModifiers(b,["stop"])},[e.createVNode(le,{name:"rotate-left"})]),e.createElementVNode("span",{class:"imgCropperM-btn","aria-label":"右转90度",role:"button",tabindex:"0",onClick:e.withModifiers(v,["stop"])},[e.createVNode(le,{name:"rotate-right"})]),e.createElementVNode("span",{class:"imgCropperM-btn","aria-label":"重置",role:"button",tabindex:"0",onClick:e.withModifiers(E,["stop"])},[e.createVNode(le,{name:"restore"})]),a.isShowPreview?(e.openBlock(),e.createElementBlock("span",{key:0,class:"imgCropperM-btn","aria-label":"预览",role:"button",tabindex:"0",onClick:e.withModifiers(W,["stop"])},[e.createVNode(le,{name:"tupianyulan"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))]),a.isShowSave?(e.openBlock(),e.createElementBlock("div",id,[e.createElementVNode("span",{class:"imgCropperM-btn-save","aria-label":"保存",role:"button",tabindex:"0",onClick:e.withModifiers(T,["stop"])},[e.createVNode(le,{name:"save"}),A[9]||(A[9]=e.createElementVNode("span",{class:"imgCropperM-btn-save-text"},"保存",-1))])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])]),e.createVNode(We,{show:p.value,"onUpdate:show":A[0]||(A[0]=Y=>p.value=Y),position:"bottom",isRound:"",isSafeAreaInsetBottom:"",isCloseOnClickOverlay:!0,"teleport-target":a.previewTeleportTarget||void 0},{default:e.withCtx(()=>[e.createElementVNode("div",rd,[A[10]||(A[10]=e.createElementVNode("div",{class:"cropperM-preview-head"},[e.createElementVNode("span",{class:"cropperM-preview-title"},"裁剪预览")],-1)),e.createElementVNode("div",cd,[h.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["cropperM-preview-box",{"is-round":M.value}]),style:e.normalizeStyle(S.value)},[e.createElementVNode("div",{class:"cropperM-preview-inner",style:e.normalizeStyle(C.value)},[e.createElementVNode("img",{src:h.url,style:e.normalizeStyle(h.imgStyle),alt:"裁剪预览"},null,12,ud)],4)],6)):(e.openBlock(),e.createElementBlock("div",dd,"暂无预览数据"))])])]),_:1},8,["show","teleport-target"])],10,Qu))}}),pd=["id"],fd={class:"dropdownmenum-bar"},Za=e.defineComponent({name:"ClDropdownMenuM",__name:"Index",props:{id:String,className:String,activeColor:{type:String,default:"var(--cl-primary, #1088f0)"},direction:{type:String,default:"down",validator:a=>["down","up"].includes(a)},zIndex:{type:Number,default:2e3},duration:{type:Number,default:200},isOverlay:{type:Boolean,default:!0},isCloseOnClickOverlay:{type:Boolean,default:!0},isCloseOnClickOutside:{type:Boolean,default:!0},teleportTarget:{type:String,default:""}},emits:["onOpen","onClose","onOpened","onClosed","onClickOverlay"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.ref(-1);let c=0;const u=e.useTemplateRef("rootEl"),d=e.ref(!1),m=e.ref(!1),p=e.ref({top:0,left:0,width:0,bottom:0,baseTop:0,baseLeft:0,baseBottom:0}),h=e.computed(()=>t.direction==="up"?"up":"down"),f=e.computed(()=>t.activeColor),y=e.computed(()=>s.isFinite(t.duration)&&t.duration>0?t.duration:200),x=e.computed(()=>{const k=Number(t.zIndex);return s.isFinite(k)&&k>0?Math.round(k):2e3}),N=e.computed(()=>{const k=t.teleportTarget;return s.isNonEmptyString(k)&&/^[#.][A-Za-z_][\w-]*$/.test(k)?k:"body"}),M=e.computed(()=>t.teleportTarget==="self"),S=e.computed(()=>{const k={"panel-dropdown-menu-m":!0,"dropdownmenum--up":h.value==="up"};return s.getJsonMerge(k,ee.getClassNameJson(t.className))}),C=e.computed(()=>{const k=p.value,T={zIndex:x.value-1,left:0,right:0,"--dropdownmenum-duration":`${y.value}ms`};return h.value==="up"?(T.top=0,T.bottom=`${k.baseBottom-k.top}px`):(T.top=`${k.bottom-k.baseTop}px`,T.bottom=0),T}),O=()=>{const k=t.teleportTarget;if(s.isNonEmptyString(k)&&k.charAt(0)==="#"){const T=document.querySelector(k);if(T instanceof HTMLElement){let R=T;for(;R&&R!==document.body;){if(window.getComputedStyle(R).transform!=="none"){const H=R.getBoundingClientRect();return{top:H.top,left:H.left,bottom:H.bottom}}R=R.parentElement}}}return{top:0,left:0,bottom:window.innerHeight}},P=()=>{if(!u.value)return;const k=u.value.getBoundingClientRect(),T=O();p.value={top:k.top,left:k.left,width:k.width,bottom:k.bottom,baseTop:T.top,baseLeft:T.left,baseBottom:T.bottom}},B=()=>{r.value!==-1&&P()},F=()=>{window.addEventListener("scroll",B,!0),window.addEventListener("resize",B)},L=()=>{window.removeEventListener("scroll",B,!0),window.removeEventListener("resize",B)},I=k=>{const T=r.value!==-1;r.value=k,k!==-1?T||l("onOpen"):T&&l("onClose")},z=()=>{l("onClickOverlay"),t.isCloseOnClickOverlay&&I(-1)},W=k=>{r.value===k?I(-1):I(k)},U=k=>{I(k)},D=()=>{const k=c;return c++,k};e.provide("$DropdownMenuMTop",{activeIndex:r,direction:h,activeColor:f,zIndex:x,duration:y,teleportTo:N,isTeleportDisabled:M,barPos:p,registerItem:D,toggleItem:W,setActiveIndex:U});const g=k=>{if(!t.isCloseOnClickOutside||r.value===-1)return;const T=k.target??null;T instanceof Element&&T.closest(".dropdownmenum-panel, .dropdownmenum-overlay")||u.value&&u.value.contains(T)||I(-1)};e.watch(r,k=>{k!==-1?(d.value=!0,P(),F(),e.nextTick(()=>{r.value!==-1&&t.isOverlay&&(m.value=!0)})):(m.value=!1,t.isOverlay||(d.value=!1),L())});const w=()=>{r.value===-1&&(d.value=!1),l("onClosed")};return e.onMounted(()=>{document.addEventListener("click",g)}),e.onActivated(()=>{document.addEventListener("click",g),r.value!==-1&&(P(),F())}),e.onDeactivated(()=>{document.removeEventListener("click",g),L()}),e.onBeforeUnmount(()=>{document.removeEventListener("click",g),L()}),o({toggle:k=>{W(k)},open:k=>{I(k)},close:()=>{I(-1)}}),(k,T)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"rootEl",ref:u,id:e.unref(i),class:e.normalizeClass(S.value)},[e.createElementVNode("div",fd,[e.renderSlot(k.$slots,"default")]),d.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:N.value,disabled:M.value},[e.createVNode(e.Transition,{name:"dropdownmenum-fade",duration:y.value,onAfterEnter:T[0]||(T[0]=R=>l("onOpened")),onAfterLeave:w},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dropdownmenum-overlay",style:e.normalizeStyle(C.value),onClick:z},null,4)):e.createCommentVNode("",!0)]),_:1},8,["duration"])],8,["to","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,pd))}}),gd=["id"],hd={class:"dropdownmenum-item-title-text"},vd={key:0,class:"dropdownmenum-panel-loading"},yd={key:0,class:"dropdownmenum-options"},kd=["onClick"],bd={class:"dropdownmenum-option-text"},el=e.defineComponent({name:"ClDropdownMenuMItem",__name:"Item",props:{id:String,className:String,title:String,modelValue:{type:[String,Number],default:void 0},optionsList:{type:Array,default:()=>[]},optionLabel:{type:String,default:"text"},optionValue:{type:String,default:"value"},disabled:Boolean,isLoading:Boolean},emits:["update:modelValue","onChange"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=`dropdownmenumItem-${s.getRandom(5)}`,r=e.inject("$DropdownMenuMTop"),c=e.useSlots(),u=e.ref(-1),d=e.ref(!1),m=e.ref(!1),p=e.computed(()=>u.value!==-1&&r?.activeIndex.value===u.value),h=e.computed(()=>r?.direction.value||"down"),f=e.computed(()=>{const g=h.value==="up";return p.value?g?"caret-down":"caret-up":g?"caret-up":"caret-down"}),y=e.computed(()=>r?.duration.value||200),x=e.computed(()=>!!c.default),N=e.computed(()=>Array.isArray(n.optionsList)&&n.optionsList.length>0),M=e.computed(()=>p.value&&!n.disabled),S=e.computed(()=>r?.teleportTo.value||"body"),C=e.computed(()=>!!r?.isTeleportDisabled.value),O=g=>g[n.optionValue]===n.modelValue,P=g=>{const w=g[n.optionLabel];return s.isString(w)?w:s.isNumber(w)?String(w):""},B=e.computed(()=>{if(s.isNonEmptyString(n.title))return n.title;if(s.isEmpty(n.modelValue))return"";const g=(n.optionsList||[]).find(w=>w[n.optionValue]===n.modelValue);return g?P(g):""}),F=e.computed(()=>{const g={"dropdownmenum-item":!0,"dropdownmenum-item--disabled":n.disabled};return s.getJsonMerge(g,ee.getClassNameJson(n.className))}),L=e.computed(()=>p.value&&r?{color:r.activeColor.value}:void 0),I=e.computed(()=>{const g=r?.barPos.value,w={zIndex:r?.zIndex.value||2e3,"--dropdownmenum-duration":`${y.value}ms`};return g&&(h.value==="up"?(w.bottom=`${g.baseBottom-g.top}px`,w.left=`${g.left-g.baseLeft}px`):(w.top=`${g.bottom-g.baseTop}px`,w.left=`${g.left-g.baseLeft}px`),w.width=`${g.width}px`),w}),z=g=>{const w={"dropdownmenum-option":!0,"dropdownmenum-option--disabled":!!g.disabled,"dropdownmenum-option--selected":O(g)};return s.getJsonMerge(w,ee.getClassNameJson(g.className))};e.watch(M,g=>{g?(d.value=!0,e.nextTick(()=>{M.value&&(m.value=!0)})):m.value=!1});const W=()=>{M.value||(d.value=!1)};e.onMounted(()=>{if(!r){re.warn("ClDropdownMenuMItem","警告:必须放置在 cl-dropdown-menu-m 容器内使用");return}u.value=r.registerItem()}),e.onBeforeUnmount(()=>{r&&u.value!==-1&&r.activeIndex.value===u.value&&r.setActiveIndex(-1)});const U=()=>{n.disabled||!r||r.toggleItem(u.value)},D=g=>{if(g.disabled)return;const w=g[n.optionValue];t("update:modelValue",w),t("onChange",w),r?.setActiveIndex(-1)};return(g,w)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(F.value)},[e.createElementVNode("div",{class:e.normalizeClass(["dropdownmenum-item-title",{"dropdownmenum-item-title--active":p.value}]),style:e.normalizeStyle(L.value),onClick:U},[e.createElementVNode("span",hd,[e.renderSlot(g.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(B.value),1)])]),e.createVNode(le,{class:"dropdownmenum-item-arrow",name:f.value},null,8,["name"])],6),d.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:S.value,disabled:C.value},[e.createVNode(e.Transition,{name:"dropdownmenum-panel",duration:y.value,onAfterLeave:W},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["dropdownmenum-panel",{"dropdownmenum-panel--up":h.value==="up"}]),style:e.normalizeStyle(I.value)},[x.value?e.renderSlot(g.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[a.isLoading?(e.openBlock(),e.createElementBlock("div",vd,[e.createVNode(Te,{size:"small"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[N.value?(e.openBlock(),e.createElementBlock("ul",yd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.optionsList,(b,v)=>(e.openBlock(),e.createElementBlock("li",{key:`${i}-${v}`,class:e.normalizeClass(z(b)),onClick:E=>D(b)},[e.createElementVNode("span",bd,e.toDisplayString(P(b)),1),O(b)?(e.openBlock(),e.createBlock(le,{key:0,class:"dropdownmenum-option-check",name:"check"})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,kd))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))],64))],6)):e.createCommentVNode("",!0)]),_:3},8,["duration"])],8,["to","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,gd))}}),Cd=["id"],Ao=6,Sd="left 0.3s cubic-bezier(0.32, 0.72, 0, 1), top 0.3s cubic-bezier(0.32, 0.72, 0, 1)",tl=e.defineComponent({name:"ClFloatingBubble",__name:"Index",props:{id:String,className:String,teleportTarget:{type:String,default:""},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},axis:{type:String,default:"xy",validator:a=>["x","y","xy"].indexOf(a)!==-1},magnetic:{type:String,default:"",validator:a=>["","x","y"].indexOf(a)!==-1},gap:{type:Number,default:8},isDisabled:{type:Boolean,default:!1}},emits:["update:offsetX","update:offsetY","onOffsetChange","onClick"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.useTemplateRef("elRef"),r=e.ref(0),c=e.ref(0),u=e.ref(0),d=e.ref(0);let m=0,p=0,h=0,f=0;const y=e.ref(!1);let x=!1,N=null;const M=()=>typeof n.gap=="number"&&s.isFinite(n.gap)&&n.gap>=0?n.gap:0,S=_=>typeof _=="number"&&s.isFinite(_)?_:0,C=e.computed(()=>{const _={"panel-floating-bubble":!0};return s.getJsonMerge(_,ee.getClassNameJson(n.className))}),O=e.ref(!1),P=()=>{if(!s.isNonEmptyString(n.teleportTarget))return null;try{return i.value?.closest(n.teleportTarget)||null}catch{return null}},B=()=>{O.value=!!P()},F=e.computed(()=>({left:`${S(n.offsetX)}px`,top:`${S(n.offsetY)}px`,position:O.value?"absolute":"fixed",transition:y.value?"none":Sd})),L=_=>{const A=M(),Y=Math.max(0,r.value-u.value-A);return Math.min(Math.max(_,A),Math.max(A,Y))},I=_=>{const A=M(),Y=Math.max(0,c.value-d.value-A);return Math.min(Math.max(_,A),Math.max(A,Y))},z=(_,A)=>{let Y=_,X=A;const j=M();if(n.magnetic==="x"&&n.axis!=="y"){const $=_-j,Z=r.value-u.value-j-_;Y=$<=Z?j:Math.max(j,r.value-u.value-j)}else if(n.magnetic==="y"&&n.axis!=="x"){const $=A-j,Z=c.value-d.value-j-A;X=$<=Z?j:Math.max(j,c.value-d.value-j)}return{x:Y,y:X}},W=()=>{const _=P();if(_){const A=_.getBoundingClientRect();r.value=A.width,c.value=A.height}else r.value=window.innerWidth,c.value=window.innerHeight;i.value&&(u.value=i.value.offsetWidth,d.value=i.value.offsetHeight)};let U=null,D=null;const g=()=>{W();const _=L(S(n.offsetX)),A=I(S(n.offsetY));(_!==n.offsetX||A!==n.offsetY)&&(t("update:offsetX",_),t("update:offsetY",A),t("onOffsetChange",_,A))},w=(_,A)=>{x=!1,!n.isDisabled&&(m=_,p=A,h=S(n.offsetX),f=S(n.offsetY),y.value=!0)},b=(_,A)=>{if(!y.value||n.isDisabled)return;const Y=_-m,X=A-p;(Math.abs(Y)>Ao||Math.abs(X)>Ao)&&(x=!0);let j=h+Y,$=f+X;n.axis==="x"&&($=f),n.axis==="y"&&(j=h),j=L(j),$=I($),t("update:offsetX",j),t("update:offsetY",$),t("onOffsetChange",j,$)},v=()=>{if(y.value&&(y.value=!1,n.magnetic)){const _=z(S(n.offsetX),S(n.offsetY));t("update:offsetX",_.x),t("update:offsetY",_.y),t("onOffsetChange",_.x,_.y)}},E=_=>{const A=_.touches[0];A&&w(A.clientX,A.clientY)},k=_=>{const A=_.touches[0];A&&b(A.clientX,A.clientY)},T=()=>{v()},R=_=>{if(N===null){N=_.pointerId,w(_.clientX,_.clientY);try{i.value?.setPointerCapture(_.pointerId)}catch{}}},q=_=>{N===_.pointerId&&b(_.clientX,_.clientY)},H=_=>{if(N===_.pointerId){N=null,v();try{i.value?.releasePointerCapture(_.pointerId)}catch{}}},V=()=>{x||t("onClick")};return e.onMounted(()=>{B(),W(),window.addEventListener("resize",g),e.watch(()=>n.teleportTarget,()=>{B(),W()});const _=L(S(n.offsetX)),A=I(S(n.offsetY));if((_!==n.offsetX||A!==n.offsetY)&&(t("update:offsetX",_),t("update:offsetY",A),t("onOffsetChange",_,A)),i.value&&typeof ResizeObserver<"u"){U=new ResizeObserver(()=>{W()}),U.observe(i.value);const Y=P();Y&&(D=new ResizeObserver(()=>{W()}),D.observe(Y))}}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",g),U?.disconnect(),U=null,D?.disconnect(),D=null}),(_,A)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),ref_key:"elRef",ref:i,class:e.normalizeClass(C.value),style:e.normalizeStyle(F.value),onTouchstart:E,onTouchmove:k,onTouchend:T,onTouchcancel:T,onPointerdown:R,onPointermove:q,onPointerup:H,onPointercancel:H,onClick:V},[e.renderSlot(_.$slots,"default")],46,Cd))}}),Ed=["id"],_d={key:1,class:"floatingpanel-content"},Mo=300,Oo=2e3,Bd=100,wd=500,nl=e.defineComponent({name:"ClFloatingPanel",__name:"Index",props:{id:String,className:String,show:Boolean,height:{type:Number,default:300},anchorsArr:{type:Array,default:()=>[100,300,500]},isOverlay:{type:Boolean,default:!0},isCloseOnClickOverlay:{type:Boolean,default:!0},isDraggable:{type:Boolean,default:!0},isContentDraggable:{type:Boolean,default:!1},isSnap:{type:Boolean,default:!0},isLockScroll:{type:Boolean,default:!0},isSafeAreaInsetBottom:Boolean,duration:{type:Number,default:Mo},zIndex:{type:Number,default:Oo},teleportTarget:{type:String,default:""}},emits:["update:show","update:height","onHeightChange","onOpen","onOpened","onClose","onClosed","onClickOverlay"],setup(a,{emit:o}){const n=a,t=o,l=n.id;let i=0,r=0;const c=e.ref(!1),u=e.ref(0);let d="";const m=e.computed(()=>n.show),p=e.computed(()=>n.isOverlay),h=e.computed(()=>n.isContentDraggable),f=e.computed(()=>c.value?"none":`height ${N.value}ms cubic-bezier(0.32, 0.72, 0, 1)`),y=e.computed(()=>s.isNonEmptyString(n.teleportTarget)?n.teleportTarget:"body"),x=e.computed(()=>n.teleportTarget==="self"),N=e.computed(()=>{const $=Number(n.duration);return s.isFinite($)&&$>0?$:Mo}),M=e.computed(()=>{const $=Number(n.zIndex);return s.isFinite($)?$:Oo}),S=()=>Array.isArray(n.anchorsArr)?n.anchorsArr.map(Number).filter($=>s.isFinite($)&&$>0):[],C=e.computed(()=>{const $=S();return $.length>0?Math.min(...$):Bd}),O=e.computed(()=>{const $=S();return $.length>0?Math.max(...$):wd}),P=e.computed(()=>Math.max(O.value,u.value)),B=e.computed(()=>{const $=Number(n.height),Z=s.isFinite($)?$:C.value;return Math.min(Math.max(Z,C.value),P.value)}),F=e.computed(()=>{let $={"panel-floating-panel":!0,"panel-floating-panel--safe-bottom":n.isSafeAreaInsetBottom};return $=s.getJsonMerge($,ee.getClassNameJson(n.className)),$}),L=e.computed(()=>({zIndex:M.value,"--floatingpanel-duration":`${N.value}ms`})),I=e.computed(()=>({zIndex:M.value+1,height:`${B.value}px`,transition:f.value,"--floatingpanel-duration":`${N.value}ms`})),z=()=>{const $=n.teleportTarget;if(s.isNonEmptyString($)&&$!=="body"&&$!=="self"){const Z=document.querySelector($);return Z instanceof HTMLElement?Z:null}return document.body},W=()=>{const $=n.teleportTarget;if(s.isNonEmptyString($)&&$!=="body"&&$!=="self"){const Z=document.querySelector($);if(Z instanceof HTMLElement&&Z.clientHeight>0)return Z.clientHeight}return $==="self"?O.value:window.innerHeight};let U=!1,D=null;const g=()=>{if(U)return;const $=z();$&&(U=!0,D=$,rn($))},w=()=>{U&&(U=!1,cn(D),D=null)},b=$=>{i=$,r=B.value,u.value=W(),c.value=!0},v=$=>{if(!c.value||!n.isDraggable)return;const Z=i-$,G=r+Z,oe=Math.min(Math.max(G,C.value),u.value);oe!==B.value&&(t("update:height",oe),t("onHeightChange",oe,!0))},E=()=>{if(c.value=!1,!n.isSnap)return;const $=S();if($.length===0)return;const Z=B.value,G=[...$,u.value];let oe=G[0],he=Math.abs(Z-oe);G.forEach(pe=>{const J=Math.abs(Z-pe);J<he&&(he=J,oe=pe)}),oe=Math.min(oe,u.value),oe!==Z&&(t("update:height",oe),t("onHeightChange",oe,!1))},k=$=>{if(!n.isDraggable||d!=="")return;d="pointer";const Z=$.currentTarget;if(Z instanceof HTMLElement&&typeof Z.setPointerCapture=="function")try{Z.setPointerCapture($.pointerId)}catch{}b($.clientY)},T=$=>{d==="pointer"&&v($.clientY)},R=()=>{d==="pointer"&&(d="",E())},q=$=>{if(!n.isDraggable||d!=="")return;const Z=$.touches[0];Z&&(d="touch",b(Z.clientY))},H=$=>{if(d!=="touch")return;const Z=$.touches[0];Z&&v(Z.clientY)},V=()=>{d==="touch"&&(d="",E())};e.onUnmounted(()=>{U&&w()}),e.watch([()=>n.show,()=>n.isLockScroll],([$,Z])=>{$&&Z?g():w()},{immediate:!0});const _=()=>{t("onClickOverlay"),n.isCloseOnClickOverlay&&t("update:show",!1)},A=()=>{t("onOpen")},Y=()=>{t("onOpened")},X=()=>{t("onClose")},j=()=>{t("onClosed")};return($,Z)=>(e.openBlock(),e.createBlock(e.Teleport,{to:y.value,disabled:x.value},[e.createVNode(e.Transition,{name:"floatingpanel-fade",duration:N.value},{default:e.withCtx(()=>[m.value&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"panel-floating-panel-overlay",style:e.normalizeStyle(L.value),onClick:_},null,4)):e.createCommentVNode("",!0)]),_:1},8,["duration"]),e.createVNode(e.Transition,{name:"floatingpanel-slide",duration:N.value,onEnter:A,onAfterEnter:Y,onLeave:X,onAfterLeave:j},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(l),role:"dialog","aria-modal":"true",class:e.normalizeClass(F.value),style:e.normalizeStyle(I.value),onTouchstart:q,onTouchmove:H,onTouchend:V,onTouchcancel:V,onPointerdown:k,onPointermove:T,onPointerup:R,onPointercancel:R},[e.createElementVNode("div",{class:"floatingpanel-header",onTouchstart:e.withModifiers(q,["stop"]),onTouchmove:e.withModifiers(H,["stop"]),onTouchend:e.withModifiers(V,["stop"]),onTouchcancel:e.withModifiers(V,["stop"]),onPointerdown:e.withModifiers(k,["stop"]),onPointermove:e.withModifiers(T,["stop"]),onPointerup:e.withModifiers(R,["stop"]),onPointercancel:e.withModifiers(R,["stop"])},[Z[0]||(Z[0]=e.createElementVNode("div",{class:"floatingpanel-header-bar"},null,-1)),e.renderSlot($.$slots,"header")],32),h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"floatingpanel-content",onTouchstart:e.withModifiers(q,["stop"]),onTouchmove:e.withModifiers(H,["stop"]),onTouchend:e.withModifiers(V,["stop"]),onTouchcancel:e.withModifiers(V,["stop"]),onPointerdown:e.withModifiers(k,["stop"]),onPointermove:e.withModifiers(T,["stop"]),onPointerup:e.withModifiers(R,["stop"]),onPointercancel:e.withModifiers(R,["stop"])},[e.renderSlot($.$slots,"default")],32)):(e.openBlock(),e.createElementBlock("div",_d,[e.renderSlot($.$slots,"default")]))],46,Ed)):e.createCommentVNode("",!0)]),_:3},8,["duration"])],8,["to","disabled"]))}}),xd=["id"],Nd=["onClick"],Td={key:0,class:"grid-item-icon"},Dd={class:"grid-item-text"},Id={key:2,class:"grid-item-badge"},Ad=4,ol=e.defineComponent({name:"ClGrid",__name:"Index",props:{id:String,className:String,itemsList:{type:Array,default:()=>[]},columnNum:{type:Number,default:4},isBorder:{type:Boolean,default:!0},isSquare:{type:Boolean,default:!0},isGutter:Boolean},emits:["onClickItem"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=`grid-${s.getRandom(5)}`,r=e.computed(()=>{const f=Number(n.columnNum);return!s.isFinite(f)||f<=0?Ad:Math.min(12,Math.round(f))}),c=e.computed(()=>s.isArray(n.itemsList)?n.itemsList.filter(f=>!!f&&s.isObject(f)):[]),u=e.computed(()=>{const f={"panel-grid":!0,"panel-grid--border":n.isBorder,"panel-grid--gutter":n.isGutter};return s.getJsonMerge(f,ee.getClassNameJson(n.className))}),d=e.computed(()=>({"--grid-columns":String(r.value)})),m=(f,y)=>{t("onClickItem",f,y)},p=(f,y)=>({"grid-item":!0,"grid-item--square":n.isSquare,"grid-item--first-row":y<r.value,"grid-item--has-icon":!!f.icon}),h=f=>{const y=Number(f.badge);return s.isFinite(y)&&y>0?Math.round(y):0};return(f,y)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(u.value),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(x,N)=>(e.openBlock(),e.createElementBlock("div",{key:`${i}-${N}`,class:e.normalizeClass(p(x,N)),onClick:M=>m(x,N)},[x.icon?(e.openBlock(),e.createElementBlock("span",Td,[e.createVNode(le,{name:x.icon},null,8,["name"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",Dd,e.toDisplayString(x.text),1),h(x)>0?(e.openBlock(),e.createElementBlock("span",Id,e.toDisplayString(h(x)),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,Nd))),128))],14,xd))}}),Md=["id"],Od={class:"indexbar-sidebar"},$d=["onClick","onTouchstart"],$o="[data-indexbar-anchor]",al=e.defineComponent({name:"ClIndexBar",__name:"Index",props:{id:String,className:String,indexList:{type:Array,default:()=>[]},activeColor:String,scrollBehavior:{type:String,default:"smooth"}},emits:["onSelect"],setup(a,{emit:o}){const n=a,t=o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),i=typeof document<"u"&&"scrollBehavior"in document.documentElement.style,r=`indexbar-${s.getRandom(5)}`,c=n.id,u=e.ref("");let d=!1;const m=e.useTemplateRef("refElContent");let p=null;const h=new Map,f=e.computed(()=>{if(s.isArray(n.indexList)&&n.indexList.length>0){const D=n.indexList.map(g=>s.isNonEmptyString(g)||s.isNumber(g)?String(g):"").filter(g=>g!=="");return Array.from(new Set(D))}return l}),y=e.computed(()=>{const D={"panel-index-bar":!0};return s.getJsonMerge(D,ee.getClassNameJson(n.className))}),x=e.computed(()=>({"--indexbar-active-color":n.activeColor||"var(--cl-primary, #1088f0)"})),N=()=>{const D=m.value;return D?Array.from(D.querySelectorAll($o)).map((w,b)=>{const v=w.dataset.indexbarAnchor,E=s.isNonEmptyString(v)?v:f.value[b]||"";return{el:w,letter:E}}):[]},M=D=>{let g=D.parentElement;for(;g;){const w=window.getComputedStyle(g).overflowY;if(/(auto|scroll|overlay)/.test(w))return g.scrollHeight>g.clientHeight?g===document.body||g===document.documentElement?document.scrollingElement:g:null;g=g.parentElement}return document.scrollingElement},S=D=>D===document.scrollingElement?0:D.getBoundingClientRect().top,C=()=>{const D=p;if(!D)return;P(D);const g=N();if(g.length===0)return;const w=S(D);let b="";for(const v of g){if(!v.letter)continue;if(v.el.getBoundingClientRect().top-w<=1)b=v.letter;else break}b&&b!==u.value&&(u.value=b)},O=D=>{const g=S(D),w=D.scrollTop;for(const b of N())h.set(b.el,b.el.getBoundingClientRect().top-g+w)},P=D=>{const g=S(D),w=D.scrollTop;for(const b of N()){const v=b.el,E=v.getBoundingClientRect().top;Math.abs(E-g)>1&&h.set(v,E-g+w)}},B=D=>{p!==D&&(p&&p.removeEventListener("scroll",C),p=D,D.addEventListener("scroll",C,{passive:!0}))},F=(D,g="auto")=>{if(!m.value)return;const b=N();if(b.length===0)return;const v=b.find(T=>T.letter===D)?.el||b[f.value.indexOf(D)]?.el;if(!v)return;const E=M(v);if(!E)return;B(E),P(E),h.has(v)||O(E);const k=h.get(v)||0;i&&g==="smooth"?E.scrollTo({top:k,behavior:"smooth"}):E.scrollTop=k},L=(D,g)=>{if(d){d=!1;return}u.value=D,t("onSelect",D,g),F(D,n.scrollBehavior==="smooth"?"smooth":"auto")},I=D=>{const g=f.value[D];g&&(d=!0,u.value=g,t("onSelect",g,D),F(g,"auto"))},z=D=>{const g=D.touches[0];if(!g)return;const w=D.currentTarget;if(!w)return;const b=w.parentElement;if(!b)return;const v=b.getBoundingClientRect(),E=Array.from(b.children);if(E.length===0)return;const k=g.clientY-v.top,T=Math.max(0,Math.min(E.length-1,Math.floor(k/(v.height/E.length)))),R=f.value[T];R&&R!==u.value&&(u.value=R,t("onSelect",R,T),F(R,"auto"))},W=D=>{const g=D.changedTouches[0];if(!g)return;const w=D.currentTarget;if(!w)return;const b=w.parentElement;if(!b)return;const v=b.getBoundingClientRect(),E=Array.from(b.children);if(E.length===0)return;const k=g.clientY-v.top;let T=Math.max(0,Math.min(E.length-1,Math.floor(k/(v.height/E.length))));const R=f.value[T];R&&(u.value=R,t("onSelect",R,T),F(R,"auto"))};e.onMounted(()=>{const D=m.value;if(!D)return;const g=D.querySelector($o);if(!g)return;const w=M(g);w&&(B(w),O(w))}),e.onBeforeUnmount(()=>{p&&(p.removeEventListener("scroll",C),p=null),h.clear()});const U=D=>({"indexbar-letter":!0,"indexbar-letter--active":D===u.value});return(D,g)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c),class:e.normalizeClass(y.value),style:e.normalizeStyle(x.value)},[e.createElementVNode("div",Od,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(w,b)=>(e.openBlock(),e.createElementBlock("span",{key:`${r}-${b}`,class:e.normalizeClass(U(w)),onClick:v=>L(w,b),onTouchstart:v=>I(b),onTouchmove:z,onTouchend:W},e.toDisplayString(w),43,$d))),128))]),e.createElementVNode("div",{ref_key:"refElContent",ref:m,class:"indexbar-content"},[e.renderSlot(D.$slots,"default")],512)],14,Md))}}),Ld=["id"],Fd=["disabled","maxlength","value"],Vd={class:"inputotp-cells"},Rd={key:0,class:"inputotp-separator"},Pd=["onClick"],zd={class:"inputotp-cell-value"},Hd={key:0,class:"inputotp-cursor"},Jd=6,Ud=10,ll=e.defineComponent({name:"ClInputOtp",__name:"Index",props:{id:String,className:String,modelValue:String,length:{type:Number,default:6},separator:String,separatorPosition:{type:Number,default:0},placeholder:String,autofocus:Boolean,isDisabled:{type:Boolean,default:!1},isClearable:{type:Boolean,default:!1},inputType:{type:String,default:"text",validator:a=>["text","number","password"].indexOf(a)!==-1}},emits:["update:modelValue","onChange","onFinish","onFocus","onBlur"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`inputotp-${s.getRandom(5)}`,r=t.id,c=e.useTemplateRef("inputRef"),u=e.ref(0),d=e.ref(!1),m=e.ref(t.modelValue||""),p=e.ref(!1),h=e.computed(()=>{const k=Number(t.length);return s.isFinite(k)&&k>0?Math.min(Math.max(Math.round(k),1),Ud):Jd}),f=e.computed(()=>t.separator||"-"),y=e.computed(()=>m.value),x=e.computed(()=>{const k=m.value;return t.inputType==="password"?k.split("").map(()=>"•").join(""):k}),N=e.computed(()=>t.isDisabled),M=e.computed(()=>t.isClearable),S=e.computed(()=>{const k={"panel-input-otp":!0,"panel-input-otp--disabled":N.value,"panel-input-otp--focused":d.value};return s.getJsonMerge(k,ee.getClassNameJson(t.className))}),C=e.computed(()=>{const k={};return k.autocomplete="one-time-code",k}),O=()=>{N.value||c.value?.focus()},P=k=>{c.value&&(c.value.value=k);const T=h.value;u.value=Math.min(k.length,T-1),k.length>=T?p.value||(p.value=!0,l("onFinish",k)):p.value=!1},B=()=>{O()},F=k=>{u.value=k,O()},L=k=>{const T=k.target;let R=T.value;t.inputType==="number"&&(R=R.replace(/\D/g,""));const q=h.value,H=R.slice(0,q);m.value=H,T.value!==H&&(T.value=H),l("update:modelValue",H),l("onChange",H),P(H)},I=k=>{if(k.key==="Backspace"){k.preventDefault();const T=m.value;if(T.length>0){const R=Math.max(0,Math.min(u.value,T.length-1)),q=T.slice(0,R)+T.slice(R+1);m.value=q,l("update:modelValue",q),l("onChange",q),P(q),u.value=Math.min(R,q.length)}else M.value&&(m.value="",l("update:modelValue",""),l("onChange",""),P(""))}else k.key==="ArrowLeft"?u.value=Math.max(0,u.value-1):k.key==="ArrowRight"?u.value=Math.min(h.value-1,u.value+1):k.key==="Enter"?c.value?.blur():k.key==="Escape"&&M.value&&(m.value="",l("update:modelValue",""),l("onChange",""),P(""))},z=()=>{d.value=!0,l("onFocus")},W=()=>{d.value=!1,l("onBlur")},U=k=>{k.preventDefault();const T=k.clipboardData?.getData("text")||"",R=t.inputType==="number"?T.replace(/\D/g,""):T,q=h.value,H=R.slice(0,q);m.value=H,c.value&&(c.value.value=H),l("update:modelValue",H),l("onChange",H),P(H)},D=()=>{O()},g=()=>{m.value="",c.value&&(c.value.value=""),l("update:modelValue",""),l("onChange",""),p.value=!1,u.value=0,O()};e.onMounted(()=>{t.autofocus&&O()}),e.watch(()=>t.modelValue,k=>{const T=k||"";m.value=T,c.value&&(c.value.value=T),p.value=T.length>=h.value}),o({focus:D,clear:g});const w=k=>{const T=m.value,R=u.value===k&&d.value&&!t.isDisabled;return{"inputotp-cell":!0,"inputotp-cell--filled":k<T.length,"inputotp-cell--active":R}},b=k=>{const T=x.value;return k<T.length?T[k]:k===T.length&&s.isNonEmptyString(t.placeholder)?t.placeholder:""},v=k=>u.value===k&&d.value&&!t.isDisabled,E=k=>{if(!s.isNonEmptyString(t.separator))return!1;const T=t.separatorPosition>0?t.separatorPosition:Math.floor(h.value/2);return k===T+1&&k>1&&k<=h.value};return(k,T)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(r),class:e.normalizeClass(S.value),onClick:B},[e.createElementVNode("input",e.mergeProps({ref_key:"inputRef",ref:c,class:"inputotp-hidden-input",disabled:N.value,type:"text"},C.value,{maxlength:h.value,value:y.value,onInput:L,onKeydown:I,onFocus:z,onBlur:W,onPaste:U}),null,16,Fd),e.createElementVNode("div",Vd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,R=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${i}-${R}`},[E(R)?(e.openBlock(),e.createElementBlock("div",Rd,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(w(R-1)),onClick:q=>F(R-1)},[e.createElementVNode("span",zd,e.toDisplayString(b(R-1)),1),v(R-1)?(e.openBlock(),e.createElementBlock("span",Hd)):e.createCommentVNode("",!0)],10,Pd)],64))),128))])],10,Ld))}}),jd={key:0,class:"navbar-placeholder"},Kd=["id"],Wd={key:1,class:"navbar-left-text"},qd={class:"navbar-title"},Yd={class:"navbar-title-text"},Xd={key:0,class:"navbar-right-text"},Lo=1e3,sl=e.defineComponent({name:"ClNavBar",__name:"Index",props:{id:String,className:String,title:String,leftText:String,rightText:String,isShow:{type:Boolean,default:!0},isShowLeftArrow:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},isSafeAreaInsetTop:Boolean,placeholder:Boolean,zIndex:{type:Number,default:Lo}},emits:["onClickLeft","onClickRight"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.useSlots(),r=e.computed(()=>!!n.placeholder&&!!n.isFixed),c=e.computed(()=>s.isNonEmptyString(n.leftText)?n.leftText:""),u=e.computed(()=>s.isNonEmptyString(n.rightText)?n.rightText:""),d=e.computed(()=>n.isShowLeftArrow||s.isNonEmptyString(n.leftText)||!!i.left),m=e.computed(()=>s.isNonEmptyString(n.rightText)||!!i.right),p=e.computed(()=>n.isShowLeftArrow),h=e.computed(()=>!!n.isShow),f=e.computed(()=>{const M={"panel-nav-bar":!0,"panel-nav-bar--fixed":n.isFixed,"panel-nav-bar--safe-top":n.isSafeAreaInsetTop};return s.getJsonMerge(M,ee.getClassNameJson(n.className))}),y=e.computed(()=>{const M=Number(n.zIndex);return{zIndex:s.isFinite(M)?M:Lo}}),x=()=>{t("onClickLeft")},N=()=>{t("onClickRight")};return(M,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",jd,null,512)),[[e.vShow,h.value]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{id:e.unref(l),class:e.normalizeClass(f.value),style:e.normalizeStyle(y.value)},[d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"navbar-left",onClick:x},[p.value?(e.openBlock(),e.createBlock(le,{key:0,name:"angle-left",className:"navbar-arrow"})):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("span",Wd,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0),e.renderSlot(M.$slots,"left")])):e.createCommentVNode("",!0),e.createElementVNode("div",qd,[e.renderSlot(M.$slots,"title",{},()=>[e.createElementVNode("span",Yd,e.toDisplayString(n.title),1)])]),m.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"navbar-right",onClick:N},[u.value?(e.openBlock(),e.createElementBlock("span",Xd,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0),e.renderSlot(M.$slots,"right")])):e.createCommentVNode("",!0)],14,Kd),[[e.vShow,h.value]])],64))}}),Gd=["id"],Qd={class:"noticebar-content"},Zd={class:"noticebar-text-default"},em=1e3,tm=1e3,il=e.defineComponent({name:"ClNoticeBar",__name:"Index",props:{id:String,className:String,text:String,mode:{type:String,validator:a=>a===""||a==="closeable"||a==="link"},color:String,background:String,leftIcon:String,isScrollable:{type:Boolean,default:!0},isWrapable:{type:Boolean,default:!1},speed:{type:Number,default:50},delay:{type:Number,default:1e3}},emits:["onClick","onClickLeftIcon","onClickRightIcon","onClose"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.useTemplateRef("refElWrap"),r=e.useTemplateRef("refElText"),c=e.ref(0);let u=0,d=0,m=null,p=null;const h=e.computed(()=>s.isNonEmptyString(n.leftIcon)),f=e.computed(()=>n.mode==="link"),y=e.computed(()=>{const B={"panel-notice-bar":!0,"panel-notice-bar--wrapable":n.isWrapable};return s.getJsonMerge(B,ee.getClassNameJson(n.className))}),x=e.computed(()=>({color:n.color,background:n.background})),N=e.computed(()=>({transform:`translateX(${-c.value}px)`})),M=()=>{if(d&&cancelAnimationFrame(d),d=0,m&&clearTimeout(m),m=null,c.value=0,!n.isScrollable||n.isWrapable)return;const B=i.value,F=r.value;if(!B||!F)return;const L=B.offsetWidth,I=F.scrollWidth;if(I<=L||!s.isFinite(n.speed)||n.speed<=0||!s.isFinite(n.delay)||n.delay<0)return;const z=I+L,W=z/n.speed*em;!s.isFinite(W)||W<=0||(u=0,m=setTimeout(()=>{let U=0;const D=g=>{if(U){const b=g-U;b<tm&&(u+=b)}U=g;const w=u%W/W;c.value=w*z,d=requestAnimationFrame(D)};d=requestAnimationFrame(D)},n.delay))};e.onMounted(()=>{M(),i.value&&typeof ResizeObserver<"u"&&(p=new ResizeObserver(M),p.observe(i.value))}),e.onBeforeUnmount(()=>{d&&cancelAnimationFrame(d),m&&clearTimeout(m),p&&p.disconnect()}),e.watch([()=>n.isScrollable,()=>n.isWrapable,()=>n.speed,()=>n.delay,()=>n.text],M);const S=()=>{t("onClick")},C=()=>{t("onClickLeftIcon")},O=()=>{t("onClickRightIcon")},P=()=>{t("onClose")};return(B,F)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(y.value),style:e.normalizeStyle(x.value),onClick:S},[h.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:"noticebar-left-icon",onClick:e.withModifiers(C,["stop"])},e.toDisplayString(n.leftIcon),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",{ref_key:"refElWrap",ref:i,class:"noticebar-wrap"},[e.createElementVNode("div",Qd,[e.createElementVNode("div",{ref_key:"refElText",ref:r,class:"noticebar-text",style:e.normalizeStyle(N.value)},[e.renderSlot(B.$slots,"default",{},()=>[e.createElementVNode("span",Zd,e.toDisplayString(n.text),1)])],4)])],512),a.mode==="closeable"?(e.openBlock(),e.createBlock(le,{key:2,name:"close",className:"noticebar-close-icon",onClick:e.withModifiers(P,["stop"])})):f.value?(e.openBlock(),e.createBlock(le,{key:3,name:"angle-right",className:"noticebar-right-icon",onClick:e.withModifiers(O,["stop"])})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[],64))],14,Gd))}}),nm=["id"],om={class:"notifym-text"},Fo=2e3,Vo=3e3,am=300,lm=300,Xn=e.defineComponent({name:"ClNotifyM",__name:"Index",props:{id:String,className:String,show:Boolean,message:String,type:{type:String,default:"primary"},color:String,background:String,duration:{type:Number,default:Vo},isLockScroll:Boolean,zIndex:{type:Number,default:Fo},teleportTarget:{type:String,default:""}},emits:["update:show","onClick","onClose"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=A=>s.isNumber(A)&&s.isFinite(A)?Math.max(0,Number(A)):Vo,r=A=>s.isNumber(A)&&s.isFinite(A)?Math.max(0,Number(A)):Fo,c=t.id,u=e.ref(!1),d=e.ref(t.message||""),m=e.ref(t.type),p=e.ref(t.color||""),h=e.ref(t.background||""),f=e.ref(i(t.duration)),y=e.ref(!!t.isLockScroll),x=e.ref(r(t.zIndex)),N=e.ref(t.teleportTarget||"");let M=null,S=!1;const C=new Set;let O=!1;const P=e.computed(()=>u.value),B=e.computed(()=>{const A=N.value;return s.isNonEmptyString(A)&&(A==="body"||A==="self"||/^[#.][A-Za-z_][\w-]*$/.test(A))?A:"body"}),F=e.computed(()=>N.value==="self"),L=e.computed(()=>am),I=e.computed(()=>{const A={"panel-notify-m":!0,[`panel-notify-m--${m.value}`]:s.isNonEmptyString(m.value)};return s.getJsonMerge(A,ee.getClassNameJson(t.className))}),z=e.computed(()=>({zIndex:x.value,color:p.value,background:h.value,"--notifym-duration":`${L.value}ms`})),W=()=>{U(),f.value>0&&(M=setTimeout(()=>{M=null,l("update:show",!1),!M&&u.value&&(M=setTimeout(()=>{M=null,k()},lm))},f.value))},U=()=>{M&&(clearTimeout(M),M=null)},D=()=>{const A=N.value;if(s.isNonEmptyString(A)&&A!=="body"&&A!=="self"){const Y=document.querySelector(A);return Y instanceof HTMLElement?Y:null}return document.body},g=()=>{if(S)return;const A=D();A&&(S=!0,C.add(A),rn(A))},w=()=>{S&&(S=!1,C.forEach(A=>{cn(A)}),C.clear())};e.onMounted(()=>{P.value&&y.value&&!S&&g()}),e.onUnmounted(()=>{U(),S&&w()});const b=()=>{d.value=t.message||"",m.value=t.type,p.value=t.color||"",h.value=t.background||"",f.value=i(t.duration),y.value=!!t.isLockScroll,x.value=r(t.zIndex),N.value=t.teleportTarget||""},v=()=>{y.value?g():w(),u.value=!0,O=!0,W()},E=(A,Y,X="primary")=>{d.value=s.isNonEmptyString(A)?A:t.message||"",m.value=Y&&Y.type||X,p.value=Y&&Y.color||t.color||"",h.value=Y&&Y.background||t.background||"",f.value=Y&&Y.duration!==void 0?i(Y.duration):i(t.duration);const j=Y&&Y.isLockScroll!==void 0?!!Y.isLockScroll:!!t.isLockScroll;y.value=j,x.value=Y&&Y.zIndex!==void 0?r(Y.zIndex):r(t.zIndex),N.value=Y&&Y.teleportTarget||t.teleportTarget||"",v()},k=()=>{U(),w(),u.value=!1,O&&(O=!1,l("onClose"))};e.watch(()=>t.show,A=>{A?(b(),v()):k()},{immediate:!0}),e.watch(()=>[t.message,t.type,t.color,t.background,t.duration,t.zIndex,t.teleportTarget],()=>{b()}),e.watch(()=>t.isLockScroll,A=>{y.value=!!A,P.value&&(A?g():w())});const T=()=>{l("onClick")};return o({notify:(A,Y)=>{E(A,Y,"primary")},success:(A,Y)=>{E(A,Y,"success")},danger:(A,Y)=>{E(A,Y,"danger")},warning:(A,Y)=>{E(A,Y,"warning")},close:()=>{k()}}),(A,Y)=>(e.openBlock(),e.createBlock(e.Teleport,{to:B.value,disabled:F.value},[e.createVNode(e.Transition,{name:"notifym-fade",duration:L.value},{default:e.withCtx(()=>[P.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(c),class:e.normalizeClass(I.value),style:e.normalizeStyle(z.value),role:"alert",onClick:T},[e.createElementVNode("span",om,e.toDisplayString(d.value),1)],14,nm)):e.createCommentVNode("",!0)]),_:1},8,["duration"])],8,["to","disabled"]))}}),sm={key:0,class:"numberkeyboard-title"},im={class:"numberkeyboard-title-left"},rm={class:"numberkeyboard-title-text"},cm={class:"numberkeyboard-body"},um=["onClick"],dm={class:"numberkeyboard-row"},mm=["onClick"],rl=e.defineComponent({name:"ClNumberKeyboard",__name:"Index",props:{id:String,value:{type:String,default:""},className:String,show:Boolean,theme:{type:String,default:"default",validator:a=>["default","custom"].indexOf(a)!==-1},title:String,maxlength:{type:Number,default:1/0},extraKey:{type:[String,Array],default:""},closeButtonText:String,deleteButtonText:{type:String,default:"删除"},isShowDeleteKey:{type:Boolean,default:!0},isBlurOnClose:{type:Boolean,default:!0},isHideOnClickOutside:{type:Boolean,default:!0},isTransition:{type:Boolean,default:!0},zIndex:{type:Number,default:2e3},teleportTarget:{type:String,default:""},isOverlay:{type:Boolean,default:!1},scrollTarget:{type:[String,Object],default:""},isLockScroll:{type:Boolean,default:!0}},emits:["update:show","update:value","update:modelValue","onInput","onDelete","onClose","onBlur","onOpened","onHide"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`n-${s.getRandom(5)}`,r=t.id||`_elId_numberkeyboard-${s.getRandom(8)}`,c=e.ref(t.show),u=e.computed(()=>!s.isEmpty(t.title)||!s.isEmpty(t.closeButtonText)),d=e.computed(()=>!s.isEmpty(t.closeButtonText)),m=e.computed(()=>t.theme==="custom"),p=e.computed(()=>!!t.isHideOnClickOutside),h=e.computed(()=>t.isTransition?300:1),f=e.computed(()=>[["1","2","3"],["4","5","6"],["7","8","9"]]),y=e.computed(()=>{const g=t.extraKey;return s.isString(g)?s.isEmpty(g)?[]:[g]:Array.isArray(g)?g.filter(w=>s.isNonEmptyString(w)):[]}),x=e.computed(()=>{const g={"panel-number-keyboard":!0,"panel-number-keyboard--custom":m.value};return s.getJsonMerge(g,ee.getClassNameJson(t.className))}),N=e.computed(()=>{const g={"numberkeyboard-popup":!0};return s.getStringByJson(g," ")}),M=()=>{const g=Number(t.maxlength);return s.isFinite(g)&&g>=1?Math.floor(g):1/0};e.watch(c,g=>{l("update:show",g)}),e.watch(()=>t.show,g=>{c.value=g});const S=g=>{if(s.isEmpty(g))return;const w=s.isString(t.value)?t.value:"";w.length>=M()||(l("update:value",w+g),l("update:modelValue",w+g),l("onInput",g))},C=()=>{const g=s.isString(t.value)?t.value:"";s.isEmpty(g)||(l("update:value",g.slice(0,-1)),l("update:modelValue",g.slice(0,-1))),l("onDelete")},O=()=>{l("onClose"),t.isBlurOnClose&&l("onBlur"),c.value=!1},P=()=>{t.isBlurOnClose&&l("onBlur")},B=new Map,F=()=>{const g=t.scrollTarget;if(s.isNonEmptyString(g))try{const w=document.querySelector(g);return w instanceof HTMLElement?w:null}catch{return null}return g instanceof HTMLElement?g:null},L=g=>{let w=g.parentElement;for(;w;){const b=window.getComputedStyle(w).overflowY;if(b==="auto"||b==="scroll"||b==="overlay")return w;w=w.parentElement}return document.scrollingElement instanceof HTMLElement?document.scrollingElement:null},I=()=>{B.forEach((g,w)=>{w.style.paddingBottom=g}),B.clear()},z=()=>{const g=document.getElementById(r),w=g instanceof HTMLElement?g.offsetHeight:0;if(l("onOpened",w),w<=0)return;const b=F();if(!b)return;const v=L(b);if(!v)return;const E=v.getBoundingClientRect();if(E.height<=0)return;const k=b.getBoundingClientRect(),T=E.height-w,H=k.bottom-E.top-T+8;if(H<=0)return;B.has(v)||B.set(v,v.style.paddingBottom);const V=parseFloat(B.get(v)||"")||0;v.style.paddingBottom=`${V+H}px`,v.scrollTop+=H},W=()=>{I(),l("onHide")};return e.onUnmounted(()=>{I()}),o({getValue:()=>t.value,setValue:g=>l("update:value",g)}),(g,w)=>(e.openBlock(),e.createBlock(We,{id:e.unref(r),className:N.value,show:c.value,"onUpdate:show":w[2]||(w[2]=b=>c.value=b),position:"bottom",isOverlay:a.isOverlay,duration:h.value,isCloseOnClickOverlay:p.value,isLockScroll:a.isLockScroll,zIndex:a.zIndex,teleportTarget:a.teleportTarget,onOnClosed:W,onOnClickOverlay:P,onOnOpened:z},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(x.value)},[u.value?(e.openBlock(),e.createElementBlock("div",sm,[e.createElementVNode("div",im,[e.renderSlot(g.$slots,"titleLeft")]),e.createElementVNode("div",rm,e.toDisplayString(a.title),1),d.value?(e.openBlock(),e.createBlock(ct,{key:0,className:"numberkeyboard-title-close",label:a.closeButtonText,color:"text",isShowWaves:!1,onOnClick:O},null,8,["label"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",cm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(b,v)=>(e.openBlock(),e.createElementBlock("div",{key:`${i}-row-${v}`,class:"numberkeyboard-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b,E=>(e.openBlock(),e.createElementBlock("button",{key:`${i}-key-${E}`,type:"button",class:"numberkeyboard-key",onClick:k=>S(String(E))},e.toDisplayString(E),9,um))),128))]))),128)),e.createElementVNode("div",dm,[m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:"numberkeyboard-key numberkeyboard-key--zero",onClick:w[0]||(w[0]=b=>S("0"))}," 0 "),a.isShowDeleteKey?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"numberkeyboard-key numberkeyboard-key--delete",onClick:C},[e.renderSlot(g.$slots,"delete",{},()=>[e.createTextVNode(e.toDisplayString(a.deleteButtonText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),d.value?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"numberkeyboard-key numberkeyboard-key--done",onClick:O},e.toDisplayString(a.closeButtonText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(b,v)=>(e.openBlock(),e.createElementBlock("button",{key:`${i}-extra-${v}`,type:"button",class:"numberkeyboard-key numberkeyboard-key--extra",onClick:E=>S(String(b))},[e.renderSlot(g.$slots,"extraKey",{},()=>[e.createTextVNode(e.toDisplayString(b),1)])],8,mm))),128)),e.createElementVNode("button",{type:"button",class:"numberkeyboard-key",onClick:w[1]||(w[1]=b=>S("0"))}," 0 "),a.isShowDeleteKey?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"numberkeyboard-key numberkeyboard-key--delete",onClick:C},[e.renderSlot(g.$slots,"delete",{},()=>[e.createTextVNode(e.toDisplayString(a.deleteButtonText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))])])],2)]),_:3},8,["id","className","show","isOverlay","duration","isCloseOnClickOverlay","isLockScroll","zIndex","teleportTarget"]))}}),pm=["id"],fm={key:0,class:"picker-toolbar"},gm={class:"picker-toolbar-title"},hm={key:0,class:"picker-loading-mask"},vm={key:2,class:"picker-toolbar picker-toolbar--bottom"},ym={class:"picker-toolbar-title"},Ct=e.defineComponent({name:"ClPicker",__name:"Index",props:{id:String,value:{type:Array,default:()=>[]},className:String,columnsList:{type:Array,default:()=>[]},columnsFieldNames:{type:Object,default:()=>({})},title:String,confirmButtonText:{type:String,default:"确认"},cancelButtonText:{type:String,default:"取消"},toolbarPosition:{type:String,default:"top",validator:a=>["top","bottom"].indexOf(a)!==-1},isShowToolbar:{type:Boolean,default:!0},isLoading:Boolean,isReadonly:Boolean,isAllowHtml:Boolean,optionHeight:{type:Number,default:44},visibleOptionNum:{type:Number,default:6},swipeDuration:{type:Number,default:1e3}},emits:["update:value","update:modelValue","onConfirm","onCancel","onChange"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`picker-${s.getRandom(5)}`,r=t.id,c=e.ref([]),u=e.ref([]),d=e.computed(()=>({text:t.columnsFieldNames?.text||"text",value:t.columnsFieldNames?.value||"value",children:t.columnsFieldNames?.children||"children"})),m=e.computed(()=>s.isFinite(t.optionHeight)&&t.optionHeight>0?t.optionHeight:44),p=e.computed(()=>s.isFinite(t.visibleOptionNum)?Math.max(1,t.visibleOptionNum):6),h=e.computed(()=>s.isFinite(t.swipeDuration)?Math.max(0,t.swipeDuration):1e3),f=e.computed(()=>({height:`${p.value*m.value}px`})),y=e.computed(()=>({height:`${m.value}px`})),x=e.computed(()=>{let v={"panel-picker":!0,"picker-readonly":t.isReadonly};return v=s.getJsonMerge(v,ee.getClassNameJson(t.className)),v}),N=v=>{if(s.isString(v)||s.isNumber(v))return{text:String(v),value:v};if(s.getTypeof(v)==="object"&&v!==null){const E=v,k=E[d.value.text],T=E[d.value.value],R=E[d.value.children],q=s.isString(k)?k:s.isNumber(k)?String(k):"",H=s.isString(T)||s.isNumber(T)?T:"",V=Array.isArray(R)?R:void 0;return{text:q,value:H,disabled:!!E.disabled,children:V?V.map(N).filter(_=>_!==null):void 0}}return null},M=()=>{const v=t.columnsList;if(!Array.isArray(v)||v.length===0)return!1;const E=v[0];return s.getTypeof(E)==="object"&&E!==null&&Array.isArray(E.values)},S=()=>{const v=t.columnsList;if(!Array.isArray(v)||v.length===0)return[];if(M())return v.map(R=>{const q=Array.isArray(R.values)?R.values.map(N).filter(V=>V!==null):[],H=s.isFinite(R.defaultIndex)?R.defaultIndex:0;return{options:q,defaultIndex:q.length>0?Math.min(Math.max(0,Math.floor(H)),q.length-1):0,className:s.isString(R.className)?R.className:void 0}});const E=[];let k=v.map(N).filter(R=>R!==null),T=0;for(;k.length>0&&T<20;){T++,E.push({options:k,defaultIndex:0});const q=k[u.value[E.length-1]||0]?.children;if(q&&q.length>0)k=q;else break}return E},C=()=>u.value.map((v,E)=>c.value[E]?.options[v]?.value).filter(v=>v!==void 0),O=()=>u.value.map((v,E)=>c.value[E]?.options[v]).filter(v=>!!v),P=()=>[...u.value],B=(v,E)=>v.length===E.length&&v.every((k,T)=>k===E[T]),F=()=>{const v=C(),E=Array.isArray(t.value)?t.value:[];B(v,E)||(l("update:value",v),l("update:modelValue",v))},L=v=>{const E=t.columnsList;if(!Array.isArray(E)||E.length===0){c.value=[],u.value=[];return}const k=[];if(M())E.forEach((T,R)=>{const q=Array.isArray(T.values)?T.values.map(N).filter(_=>_!==null):[],H=v?.[R];let V=q.findIndex(_=>_.value===H);if(V<0){const _=s.isFinite(T.defaultIndex)?T.defaultIndex:0;V=q.length>0?Math.min(Math.max(0,Math.floor(_)),q.length-1):0}k.push(V)});else{let T=E.map(N).filter(q=>q!==null),R=0;for(;T.length>0&&R<20;){R++;const q=v?.[k.length];let H=T.findIndex(_=>_.value===q);H<0&&(H=0),k.push(H);const V=T[H]?.children;if(V&&V.length>0)T=V;else break}}u.value=k,c.value=S()};e.watch(()=>t.columnsList,()=>{L(Array.isArray(t.value)?t.value:void 0)},{deep:!0,immediate:!0}),e.watch(()=>t.value,v=>{if(!Array.isArray(v))return;const E=C();B(E,v)||L(v)},{deep:!0});const I=(v,E)=>{if(u.value[v]===E)return;u.value[v]=E,u.value=u.value.slice(0,v+1),c.value=S();const k=u.value.slice(0,v+1);for(let T=k.length;T<c.value.length;T++)k.push(c.value[T].defaultIndex);u.value=k,l("onChange",{selectedValues:C(),selectedOptions:O(),selectedIndexes:P(),columnIndex:v}),F()},z=()=>{l("onConfirm",{selectedValues:C(),selectedOptions:O(),selectedIndexes:P()})},W=()=>{l("onCancel",{selectedValues:C(),selectedOptions:O(),selectedIndexes:P()})};return o({getValue:()=>C(),setValue:v=>{L(v),F()},getValueData:()=>O(),getSelectedOptions:()=>O(),confirm:()=>z()}),(v,E)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(r),class:e.normalizeClass(x.value)},[a.isShowToolbar&&a.toolbarPosition==="top"?(e.openBlock(),e.createElementBlock("div",fm,[e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--cancel",onClick:W},e.toDisplayString(a.cancelButtonText),1),e.createElementVNode("div",gm,[e.renderSlot(v.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--confirm",onClick:z},e.toDisplayString(a.confirmButtonText),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.renderSlot(v.$slots,"columnsTop"),e.createElementVNode("div",{class:"picker-columns",style:e.normalizeStyle(f.value)},[e.createElementVNode("div",{class:"picker-frame",style:e.normalizeStyle(y.value)},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(k,T)=>(e.openBlock(),e.createBlock(Qt,{key:`${i}-col-${T}`,className:k.className,optionsList:k.options,valueIndex:u.value[T]||0,optionHeight:m.value,visibleOptionNum:p.value,swipeDuration:h.value,isAllowHtml:a.isAllowHtml,isReadonly:a.isReadonly,onOnSelect:R=>I(T,R)},null,8,["className","optionsList","valueIndex","optionHeight","visibleOptionNum","swipeDuration","isAllowHtml","isReadonly","onOnSelect"]))),128)),a.isLoading?(e.openBlock(),e.createElementBlock("div",hm,[e.createVNode(Te,{size:"26"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],4),e.renderSlot(v.$slots,"columnsBottom"),a.isShowToolbar&&a.toolbarPosition==="bottom"?(e.openBlock(),e.createElementBlock("div",vm,[e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--cancel",onClick:W},e.toDisplayString(a.cancelButtonText),1),e.createElementVNode("div",ym,[e.renderSlot(v.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),e.createElementVNode("button",{type:"button",class:"picker-toolbar-btn picker-toolbar-btn--confirm",onClick:z},e.toDisplayString(a.confirmButtonText),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],10,pm))}}),km=["id"],bm={key:0,class:"panel-pickercascader__header"},Cm={class:"panel-pickercascader__title"},Sm={class:"panel-pickercascader__tabs"},Em=["onClick"],_m={key:2,class:"panel-pickercascader__options"},Bm=["onClick"],wm={class:"panel-pickercascader__option-text"},xm={key:0,class:"panel-pickercascader__option-arrow"},Nm={key:3,class:"panel-pickercascader__empty"},Tm={class:"panel-pickercascader__empty-text"},Ro=e.defineComponent({name:"ClPickerCascaderPanel",__name:"Panel",props:{id:String,className:String,title:String,isCloseable:Boolean,tabsArr:{type:Array,default:()=>[]},activeTab:Number,optionsList:{type:Array,default:()=>[]},selectedIndex:{type:Number,default:-1},activeColor:String,placeholder:String,fieldNames:{type:Object,default:null}},emits:["onClickTab","onClickClose","onClickOption"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=`pc-${s.getRandom(5)}`,r=e.computed(()=>s.isNonEmptyString(n.className)?n.className:""),c=e.computed(()=>s.isNonEmptyString(n.title)||!!n.isCloseable),u=e.computed(()=>n.title||""),d=e.computed(()=>!!n.isCloseable),m=e.computed(()=>n.tabsArr||[]),p=e.computed(()=>{const L=n.activeTab;return L===void 0||!s.isFinite(L)||L<0?0:L}),h=e.computed(()=>n.optionsList||[]),f=e.computed(()=>s.isNonEmptyString(n.activeColor)?n.activeColor:"var(--cl-primary, #1088f0)"),y=e.computed(()=>s.isNonEmptyString(n.placeholder)?n.placeholder:"请选择"),x=()=>n.fieldNames&&typeof n.fieldNames=="object"?{text:s.isNonEmptyString(n.fieldNames.text)?n.fieldNames.text:"text",value:s.isNonEmptyString(n.fieldNames.value)?n.fieldNames.value:"value",children:s.isNonEmptyString(n.fieldNames.children)?n.fieldNames.children:"children"}:{text:"text",value:"value",children:"children"},N=L=>{const I=x();return L[I.text]!=null?String(L[I.text]):""},M=L=>{const I=x(),z=L[I.children];return Array.isArray(z)?z:[]},S=L=>M(L).length>0,C=(L,I)=>{const z={"panel-pickercascader__option":!0,"panel-pickercascader__option--disabled":!!L.disabled,"panel-pickercascader__option--active":I===n.selectedIndex},W=s.getJsonMerge(z,ee.getClassNameJson(L.className));return s.getStringByJson(W," ")},O=(L,I)=>{const z={};return I===n.selectedIndex?(z.color=f.value,z.fontWeight="500"):s.isNonEmptyString(L.color)&&(z.color=L.color),z},P=L=>{t("onClickTab",L)},B=()=>{t("onClickClose")},F=L=>{t("onClickOption",L)};return(L,I)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(l),class:e.normalizeClass(["panel-picker-cascader",r.value])},[c.value?(e.openBlock(),e.createElementBlock("div",bm,[e.createElementVNode("div",Cm,e.toDisplayString(u.value),1),d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"panel-pickercascader__close",onClick:B},[e.createVNode(le,{name:"close"})])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",Sm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(z,W)=>(e.openBlock(),e.createElementBlock("div",{key:`${i}-tab-${W}`,class:e.normalizeClass(["panel-pickercascader__tab",[W===p.value?"panel-pickercascader__tab--active":"",W>p.value?"panel-pickercascader__tab--pending":""]]),style:e.normalizeStyle(W===p.value?{color:f.value}:void 0),onClick:U=>P(W)},e.toDisplayString(z),15,Em))),128))]),h.value.length>0?(e.openBlock(),e.createElementBlock("div",_m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(z,W)=>(e.openBlock(),e.createElementBlock("div",{key:`${i}-opt-${W}`,class:e.normalizeClass(C(z,W)),style:e.normalizeStyle(O(z,W)),onClick:U=>F(z)},[e.createElementVNode("div",wm,e.toDisplayString(N(z)),1),S(z)?(e.openBlock(),e.createElementBlock("div",xm,[e.createVNode(le,{name:"angle-right"})])):e.createCommentVNode("",!0)],14,Bm))),128))])):(e.openBlock(),e.createElementBlock("div",Nm,[e.createElementVNode("div",Tm,e.toDisplayString(y.value),1)]))],10,km))}}),cl=e.defineComponent({name:"ClPickerCascader",__name:"Index",props:{id:String,className:String,show:Boolean,isPoppable:{type:Boolean,default:!0},optionsList:{type:Array,default:()=>[]},fieldNames:{type:Object,default:null},value:{type:[String,Number],default:null},title:{type:String,default:""},placeholder:{type:String,default:"请选择"},activeColor:{type:String,default:"var(--cl-primary, #1088f0)"},isCloseable:{type:Boolean,default:!0},teleportTarget:{type:String,default:""}},emits:["update:value","update:modelValue","update:show","onChange","onFinish","onClose","onClickTab"],setup(a,{emit:o}){const n=a,t=o,l=n.id,i=e.ref(n.show),r=e.ref([]),c=e.ref(0),u=()=>n.fieldNames&&typeof n.fieldNames=="object"?{text:s.isNonEmptyString(n.fieldNames.text)?n.fieldNames.text:"text",value:s.isNonEmptyString(n.fieldNames.value)?n.fieldNames.value:"value",children:s.isNonEmptyString(n.fieldNames.children)?n.fieldNames.children:"children"}:{text:"text",value:"value",children:"children"},d=g=>{const w=u();return g[w.text]!=null?String(g[w.text]):""},m=g=>{const w=u();return g[w.value]!=null?g[w.value]:""},p=g=>{const w=u(),b=g[w.children];return Array.isArray(b)?b:[]},h=(g,w,b)=>{for(const v of g){if(String(m(v)??"")===String(w))return b.push(v),!0;const E=p(v);if(E.length>0){if(b.push(v),h(E,w,b))return!0;b.pop()}}return!1},f=()=>{const g=n.value;if(g==null||g===""){r.value=[],c.value=0;return}const w=[];h(n.optionsList,g,w)?(r.value=w,c.value=w.length-1):(r.value=[],c.value=0)},y=()=>{i.value=!1},x=e.computed(()=>n.isPoppable),N=e.computed(()=>n.title),M=e.computed(()=>n.isCloseable),S=e.computed(()=>n.activeColor),C=e.computed(()=>n.placeholder),O=e.computed(()=>u()),P=e.computed(()=>{const g=r.value.map(w=>d(w));return g.push(C.value),g}),B=e.computed(()=>{if(c.value<=0)return n.optionsList||[];const g=r.value[c.value-1];return g?p(g):[]}),F=e.computed(()=>{const g=r.value[c.value];return g?B.value.findIndex(b=>String(m(b)??"")===String(m(g)??"")):-1}),L=e.computed(()=>({title:N.value,isCloseable:M.value,tabsArr:P.value,activeTab:c.value,optionsList:B.value,selectedIndex:F.value,activeColor:S.value,placeholder:C.value,fieldNames:n.fieldNames})),I=e.computed(()=>s.isNonEmptyString(n.className)?n.className:""),z=e.computed(()=>s.isNonEmptyString(n.className)?n.className:"");e.watch(()=>n.show,g=>{g?(f(),i.value=!0):i.value=!1},{immediate:!0}),e.watch(i,g=>{t("update:show",g)}),e.watch(()=>n.value,()=>{f()},{immediate:!0});const W=g=>{c.value=g;const w=P.value[g]||"";t("onClickTab",g,w)},U=()=>{t("onClose"),y()},D=g=>{if(g.disabled)return;r.value=r.value.slice(0,c.value),r.value.push(g);const w=m(g),b=c.value;t("onChange",{value:w,selectedOptions:[...r.value],tabIndex:b});const v=O.value,E=g[v.children];Array.isArray(E)?c.value+=1:(t("onFinish",{value:w,selectedOptions:[...r.value]}),t("update:value",w),t("update:modelValue",w),y())};return(g,w)=>x.value?(e.openBlock(),e.createBlock(We,{key:0,show:i.value,"onUpdate:show":w[0]||(w[0]=b=>i.value=b),position:"bottom",isRound:!0,isCloseOnClickOverlay:!1,className:I.value,"teleport-target":a.teleportTarget},{default:e.withCtx(()=>[e.createVNode(Ro,e.mergeProps({id:e.unref(l),class:z.value},L.value,{onOnClickTab:W,onOnClickClose:U,onOnClickOption:D}),null,16,["id","class"])]),_:1},8,["show","className","teleport-target"])):(e.openBlock(),e.createBlock(Ro,e.mergeProps({key:1,id:e.unref(l),class:z.value},L.value,{onOnClickTab:W,onOnClickClose:U,onOnClickOption:D}),null,16,["id","class"]))}}),ul=e.defineComponent({name:"ClPickerDate",__name:"Index",props:{id:String,value:{type:Array,default:()=>[]},className:String,show:Boolean,isPoppable:{type:Boolean,default:!0},columnsTypeArr:{type:Array,default:()=>["year","month","day"],validator:a=>a.length>0&&a.every(o=>["year","month","day"].indexOf(o)!==-1)&&new Set(a).size===a.length},minDate:{type:Date,default:()=>ye.objDay().subtract(10,"year").startOf("day").toDate()},maxDate:{type:Date,default:()=>ye.objDay().add(10,"year").startOf("day").toDate()},title:String,confirmButtonText:{type:String,default:"确认"},cancelButtonText:{type:String,default:"取消"},isShowToolbar:{type:Boolean,default:!0},isLoading:Boolean,isReadonly:Boolean,isAllowHtml:Boolean,optionHeight:{type:Number,default:44},visibleOptionNum:{type:Number,default:6},swipeDuration:{type:Number,default:1e3},teleportTarget:{type:String,default:""}},emits:["update:value","update:modelValue","update:show","onConfirm","onCancel","onChange"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.ref([]),c=e.ref(t.show),u=e.useTemplateRef("refElPicker"),d=(()=>{if(!Array.isArray(t.columnsTypeArr)||t.columnsTypeArr.length===0)return["year","month","day"];const g=t.columnsTypeArr.filter(w=>w==="year"||w==="month"||w==="day");return g.length>0?[...new Set(g)]:["year","month","day"]})(),m=e.computed(()=>t.isPoppable),p=e.computed(()=>B()),h=e.computed(()=>({value:r.value,columnsList:p.value,title:t.title,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,isShowToolbar:t.isShowToolbar,isLoading:t.isLoading,isReadonly:t.isReadonly,isAllowHtml:t.isAllowHtml,optionHeight:t.optionHeight,visibleOptionNum:t.visibleOptionNum,swipeDuration:t.swipeDuration})),f=e.computed(()=>s.isNonEmptyString(t.className)?t.className:""),y=e.computed(()=>s.isNonEmptyString(t.className)?t.className:""),x=g=>Array.isArray(g)&&g.length===d.length&&g.every(w=>s.isString(w)||s.isNumber(w)&&s.isFinite(w)),N=g=>String(g).padStart(2,"0"),M=(g,w)=>ye.objDay({year:g,month:w-1,day:1}).daysInMonth(),S=()=>t.minDate instanceof Date&&!s.isNaN(t.minDate.getTime())?t.minDate:ye.objDay().subtract(10,"year").startOf("day").toDate(),C=()=>t.maxDate instanceof Date&&!s.isNaN(t.maxDate.getTime())?t.maxDate:ye.objDay().add(10,"year").startOf("day").toDate(),O=()=>{let g=S(),w=C();if(g.getTime()>w.getTime()){const T=g;g=w,w=T}const b=ye.objDay().valueOf(),v=Math.max(g.getTime(),Math.min(b,w.getTime())),E=ye.objDay(v),k={year:String(E.year()),month:N(E.month()+1),day:N(E.date())};return d.map(T=>k[T])},P=()=>{const g=t.value;x(g)?r.value=[...g]:r.value=O()},B=()=>{let g=S(),w=C();if(g.getTime()>w.getTime()){const $=g;g=w,w=$}const b=g.getFullYear(),v=w.getFullYear(),E=$=>{const Z=d.indexOf($);if(Z===-1){const oe=ye.objDay();return $==="year"?oe.year():$==="month"?oe.month()+1:oe.date()}const G=Number(r.value[Z]);return s.isFinite(G)?G:Number(O()[Z])},k=($,Z,G)=>Math.max(Z,Math.min($,G)),T=k(E("year"),b,v),R=T===b?g.getMonth()+1:1,q=T===v?w.getMonth()+1:12,H=k(E("month"),R,q),V=d.indexOf("month")!==-1?H:T===v?w.getMonth()+1:g.getMonth()+1,_=M(T,V),A=T===b&&V===g.getMonth()+1?g.getDate():1,Y=T===v&&V===w.getMonth()+1?Math.min(w.getDate(),_):_,X=k(E("day"),A,Y),j=[];return d.forEach($=>{if($==="year"){const Z=[];for(let G=b;G<=v;G++)Z.push(String(G));j.push({values:Z,defaultIndex:T-b})}else if($==="month"){const Z=[];for(let G=R;G<=q;G++)Z.push(N(G));j.push({values:Z,defaultIndex:H-R})}else if($==="day"){const Z=[];for(let G=A;G<=Y;G++)Z.push(N(G));j.push({values:Z,defaultIndex:X-A})}}),j};P(),e.watch(()=>t.show,g=>{if(g){const w=t.value;x(w)&&P(),c.value=!0}else c.value=!1},{immediate:!0}),e.watch(c,g=>{l("update:show",g)}),e.watch(()=>t.value,g=>{x(g)&&(r.value=[...g])},{deep:!0});const F=g=>{r.value=[...g.selectedValues],l("onChange",g)},L=g=>{l("update:value",[...g.selectedValues]),l("update:modelValue",[...g.selectedValues]),l("onConfirm",g),t.isPoppable&&(c.value=!1)},I=g=>{Array.isArray(t.value)&&(r.value=[...t.value]),l("onCancel",g),t.isPoppable&&(c.value=!1)};return o({getValue:()=>u.value?[...u.value.getValue()]:[...r.value],setValue:g=>{Array.isArray(g)&&(r.value=[...g],u.value?.setValue?.(g))},getValueData:()=>u.value?u.value.getValueData():[],confirm:()=>{u.value?.confirm()}}),(g,w)=>m.value?(e.openBlock(),e.createBlock(We,{key:0,show:c.value,"onUpdate:show":w[0]||(w[0]=b=>c.value=b),position:"bottom",isRound:!0,isCloseOnClickOverlay:!1,className:f.value,"teleport-target":a.teleportTarget},{default:e.withCtx(()=>[e.createVNode(Ct,e.mergeProps({id:e.unref(i),ref_key:"refElPicker",ref:u,class:y.value},h.value,{onOnChange:F,onOnConfirm:L,onOnCancel:I}),null,16,["id","class"])]),_:1},8,["show","className","teleport-target"])):(e.openBlock(),e.createBlock(Ct,e.mergeProps({key:1,id:e.unref(i),ref_key:"refElPicker",ref:u,class:y.value},h.value,{onOnChange:F,onOnConfirm:L,onOnCancel:I}),null,16,["id","class"]))}}),dl=e.defineComponent({name:"ClPickerTime",__name:"Index",props:{id:String,value:{type:Array,default:()=>[]},className:String,show:Boolean,isPoppable:{type:Boolean,default:!0},columnsTypeArr:{type:Array,default:()=>["hour","minute"],validator:a=>a.length>0&&a.every(o=>["hour","minute","second"].indexOf(o)!==-1)&&new Set(a).size===a.length},minHour:{type:Number,default:0},maxHour:{type:Number,default:23},minMinute:{type:Number,default:0},maxMinute:{type:Number,default:59},minSecond:{type:Number,default:0},maxSecond:{type:Number,default:59},title:String,confirmButtonText:{type:String,default:"确认"},cancelButtonText:{type:String,default:"取消"},isShowToolbar:{type:Boolean,default:!0},isLoading:Boolean,isReadonly:Boolean,isAllowHtml:Boolean,optionHeight:{type:Number,default:44},visibleOptionNum:{type:Number,default:6},swipeDuration:{type:Number,default:1e3},teleportTarget:{type:String,default:""}},emits:["update:value","update:modelValue","update:show","onConfirm","onCancel","onChange"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.ref([]),c=e.ref(t.show),u=e.useTemplateRef("refElPicker"),d=(()=>{if(!Array.isArray(t.columnsTypeArr)||t.columnsTypeArr.length===0)return["hour","minute"];const v=t.columnsTypeArr.filter(E=>E==="hour"||E==="minute"||E==="second");return v.length>0?[...new Set(v)]:["hour","minute"]})(),m=e.computed(()=>t.isPoppable),p=e.computed(()=>I()),h=e.computed(()=>({value:r.value,columnsList:p.value,title:t.title,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,isShowToolbar:t.isShowToolbar,isLoading:t.isLoading,isReadonly:t.isReadonly,isAllowHtml:t.isAllowHtml,optionHeight:t.optionHeight,visibleOptionNum:t.visibleOptionNum,swipeDuration:t.swipeDuration})),f=e.computed(()=>s.isNonEmptyString(t.className)?t.className:""),y=e.computed(()=>s.isNonEmptyString(t.className)?t.className:""),x=v=>Array.isArray(v)&&v.length===d.length&&[...v].every(E=>s.isString(E)?/^\d{1,2}$/.test(E):s.isNumber(E)&&s.isFinite(E)),N=v=>String(v).padStart(2,"0"),M=()=>s.isFinite(t.minHour)&&Number.isInteger(t.minHour)&&t.minHour>=0&&t.minHour<=23?t.minHour:0,S=()=>s.isFinite(t.maxHour)&&Number.isInteger(t.maxHour)&&t.maxHour>=0&&t.maxHour<=23?t.maxHour:23,C=()=>s.isFinite(t.minMinute)&&Number.isInteger(t.minMinute)&&t.minMinute>=0&&t.minMinute<=59?t.minMinute:0,O=()=>s.isFinite(t.maxMinute)&&Number.isInteger(t.maxMinute)&&t.maxMinute>=0&&t.maxMinute<=59?t.maxMinute:59,P=()=>s.isFinite(t.minSecond)&&Number.isInteger(t.minSecond)&&t.minSecond>=0&&t.minSecond<=59?t.minSecond:0,B=()=>s.isFinite(t.maxSecond)&&Number.isInteger(t.maxSecond)&&t.maxSecond>=0&&t.maxSecond<=59?t.maxSecond:59,F=()=>{const v=ye.objDay(),E={hour:N(v.hour()),minute:N(v.minute()),second:N(v.second())};return d.map(k=>E[k])},L=()=>{const v=t.value;x(v)?r.value=[...v]:r.value=F()},I=()=>{const v=Math.min(M(),S()),E=Math.max(M(),S()),k=Math.min(C(),O()),T=Math.max(C(),O()),R=Math.min(P(),B()),q=Math.max(P(),B()),H=he=>{const pe=d.indexOf(he);if(pe===-1){const K=ye.objDay();return he==="hour"?K.hour():he==="minute"?K.minute():K.second()}const J=Number(r.value[pe]);return s.isFinite(J)?J:Number(F()[pe])},V=(he,pe,J)=>Math.max(pe,Math.min(he,J)),_=V(H("hour"),v,E),A=_===v?k:0,Y=_===E?T:59,X=V(H("minute"),A,Y),j=d.indexOf("minute")!==-1?X:_===E?T:k,$=j===k?R:0,Z=j===T?q:59,G=V(H("second"),$,Z),oe=[];return d.forEach(he=>{if(he==="hour"){const pe=[];for(let J=v;J<=E;J++)pe.push(N(J));oe.push({values:pe,defaultIndex:_-v})}else if(he==="minute"){const pe=[];for(let J=A;J<=Y;J++)pe.push(N(J));oe.push({values:pe,defaultIndex:X-A})}else if(he==="second"){const pe=[];for(let J=$;J<=Z;J++)pe.push(N(J));oe.push({values:pe,defaultIndex:G-$})}}),oe};L(),e.watch(()=>t.show,v=>{if(v){const E=t.value;x(E)&&L(),c.value=!0}else c.value=!1},{immediate:!0}),e.watch(c,v=>{l("update:show",v)}),e.watch(()=>t.value,v=>{x(v)&&(r.value=[...v])},{immediate:!0,deep:!0});const z=v=>{r.value=[...v.selectedValues],l("onChange",v)},W=v=>{l("update:value",[...v.selectedValues]),l("update:modelValue",[...v.selectedValues]),l("onConfirm",v),t.isPoppable&&(c.value=!1)},U=v=>{l("onCancel",v),t.isPoppable&&(c.value=!1)};return o({getValue:()=>u.value?[...u.value.getValue()]:[...r.value],setValue:v=>{x(v)&&(r.value=[...v],u.value?.setValue?.(v))},getValueData:()=>u.value?u.value.getValueData():[],confirm:()=>{u.value?.confirm()}}),(v,E)=>m.value?(e.openBlock(),e.createBlock(We,{key:0,show:c.value,"onUpdate:show":E[0]||(E[0]=k=>c.value=k),position:"bottom",isRound:!0,isCloseOnClickOverlay:!1,className:f.value,"teleport-target":a.teleportTarget},{default:e.withCtx(()=>[e.createVNode(Ct,e.mergeProps({id:e.unref(i),ref_key:"refElPicker",ref:u,className:y.value},h.value,{onOnChange:z,onOnConfirm:W,onOnCancel:U}),null,16,["id","className"])]),_:1},8,["show","className","teleport-target"])):(e.openBlock(),e.createBlock(Ct,e.mergeProps({key:1,id:e.unref(i),ref_key:"refElPicker",ref:u,className:y.value},h.value,{onOnChange:z,onOnConfirm:W,onOnCancel:U}),null,16,["id","className"]))}}),Dm=["id"],Im={class:"ptr-track"},Am={class:"ptr-text"},Mm={key:0,class:"ptr-scroller-wrap"},Om={key:0,class:"ptr-loadmore"},$m={key:2,class:"ptr-finished"},Gn=e.defineComponent({name:"ClPullToRefresh",__name:"Index",props:{id:String,className:String,disabled:Boolean,threshold:{type:Number,default:60},list:Array,minItemSize:{type:Number,default:60},keyField:{type:String,default:"id"},isFinished:Boolean,isLoading:Boolean,pullIcon:{type:String,default:"angle-down"},pullingText:{type:String,default:"下拉即可刷新..."},readyText:{type:String,default:"释放即可刷新..."},refreshingText:{type:String,default:"加载中..."},loadingText:{type:String,default:"加载中..."},finishedText:{type:String,default:"没有更多了"},sizeDependencies:{type:Function}},emits:["onRefresh","onLoadMore"],setup(a,{expose:o,emit:n}){let t=!1;const l=()=>{t||(t=!0,Promise.resolve().then(()=>require("./vue-virtual-scroller-Dyvby5gX.cjs")))},i=e.defineAsyncComponent(()=>(l(),import("vue-virtual-scroller").then(G=>G.DynamicScroller))),r=e.defineAsyncComponent(()=>(l(),import("vue-virtual-scroller").then(G=>G.DynamicScrollerItem))),c=()=>{l(),import("vue-virtual-scroller")},u=a,d=n,m=u.id,p=e.useTemplateRef("refElContent"),h=e.ref("idle"),f=e.ref(0),y=e.ref(0),x=e.ref(!1),N=e.ref(!1),M=e.ref(0);let S=null,C=0,O=0,P=0,B=null;const F=e.computed(()=>{const G=u.threshold;return s.isFinite(G)&&typeof G=="number"?Math.max(1,G):60}),L=e.computed(()=>s.isArray(u.list)),I=e.computed(()=>L.value?u.list.filter(G=>G!=null):[]),z=e.computed(()=>{const G=u.minItemSize;return s.isFinite(G)&&typeof G=="number"?Math.max(1,G):60}),W=e.computed(()=>{switch(h.value){case"loading":return u.refreshingText;case"ready":return u.readyText;case"pulling":return u.pullingText;default:return""}}),U=e.computed(()=>{let G={"panel-pull-to-refresh":!0};return u.disabled&&(G["ptr-disabled"]=!0),N.value&&(G["ptr-is-pulling"]=!0),G=s.getJsonMerge(G,ee.getClassNameJson(u.className)),G}),D=e.computed(()=>({height:`${f.value}px`})),g=e.computed(()=>x.value&&N.value?{touchAction:"none"}:{}),w=G=>Math.min(G*.4,F.value*2),b=()=>{if(L.value)return M.value<=1;const G=p.value;return G?G.scrollTop<=1:!0},v=G=>{if("touches"in G){const oe=G.touches;return oe.length>0?oe[0].clientY:0}return G.clientY},E=(G=>X(G)),k=(G=>j(G)),T=()=>{document.addEventListener("mousemove",E),document.addEventListener("mouseup",k)},R=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k)},q=()=>{S!==null&&(cancelAnimationFrame(S),S=null),C=0,N.value=!1,f.value=0,h.value="idle"},H=G=>{if(u.sizeDependencies)try{return u.sizeDependencies(G)}catch{return}},V=()=>{const G=Date.now();G-O<500||!u.isFinished&&!u.isLoading&&(O=G,d("onLoadMore"))},_=()=>{if(!L.value||u.isFinished||u.isLoading)return;const G=Date.now();if(G-P<100){B===null&&(B=window.setTimeout(()=>{B=null,_()},100));return}const oe=p.value?.querySelector(".ptr-scroller");oe&&(M.value=oe.scrollTop||0,!(oe.clientHeight<=0)&&oe.scrollHeight<=oe.clientHeight&&(P=G,O=G,d("onLoadMore")))},A=()=>{R(),S!==null&&(cancelAnimationFrame(S),S=null),x.value=!1};e.onMounted(()=>{c()}),e.onBeforeUnmount(()=>{A(),B!==null&&(clearTimeout(B),B=null)}),e.onDeactivated(()=>{A(),h.value!=="loading"&&q()}),e.watch(()=>u.disabled,G=>{G&&(A(),h.value!=="loading"&&q())}),e.watch(()=>L.value,G=>{G&&(M.value=0)}),e.watch(()=>[u.list,u.list?.length],async()=>{L.value&&(await e.nextTick(),_())},{immediate:!0});const Y=G=>{u.disabled||h.value==="loading"||!("touches"in G)&&G.button!==0||(x.value&&(A(),q()),y.value=v(G),x.value=!0,"touches"in G||T())},X=G=>{if(!(!x.value||u.disabled)){if(!("touches"in G)&&G.buttons===0){j();return}C=v(G)-y.value,C>0&&b()?(N.value=!0,G.preventDefault(),S===null&&(S=requestAnimationFrame(()=>{S=null;const oe=w(C);f.value=oe,h.value=oe>=F.value?"ready":"pulling"}))):N.value&&q()}},j=G=>{if(x.value){if(x.value=!1,R(),G?.type==="touchcancel"){q();return}if(S!==null){cancelAnimationFrame(S),S=null;const oe=w(C);oe>=0&&(f.value=oe,h.value=oe>=F.value?"ready":"pulling")}u.disabled||!(N.value&&h.value==="ready")?q():(h.value="loading",f.value=F.value,N.value=!1,d("onRefresh"))}},$=G=>{const oe=G.target;M.value=oe?.scrollTop||0,oe&&oe.scrollTop+oe.clientHeight>=oe.scrollHeight&&V()};return o({finishRefresh:()=>{A(),q(),O=0,P=0}}),(G,oe)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(m),class:e.normalizeClass(U.value)},[e.createElementVNode("div",Im,[e.createElementVNode("div",{class:"ptr-indicator",style:e.normalizeStyle(D.value),role:"status","aria-live":"polite"},[e.createElementVNode("div",{class:e.normalizeClass(["ptr-indicator-inner",`ptr-state-${h.value}`])},[e.renderSlot(G.$slots,"indicator",{state:h.value,distance:f.value,threshold:F.value},()=>[h.value==="loading"?(e.openBlock(),e.createBlock(Te,{key:0,theme:"circleSpinner",size:"small",color:"#999",className:"ptr-indicator-load"})):(e.openBlock(),e.createBlock(le,{key:1,name:a.pullIcon,className:"ptr-icon-arrow","aria-hidden":"true"},null,8,["name"])),e.createElementVNode("span",Am,e.toDisplayString(W.value),1)])],2)],4),e.createElementVNode("div",{ref_key:"refElContent",ref:p,class:e.normalizeClass(["ptr-content",{"ptr-content-virtual":L.value}]),style:e.normalizeStyle(g.value),onScroll:$,onTouchstart:Y,onTouchmove:X,onTouchend:j,onTouchcancel:j,onMousedown:Y},[L.value?(e.openBlock(),e.createElementBlock("div",Mm,[e.createVNode(e.unref(i),{class:"ptr-scroller",items:I.value,"min-item-size":z.value,"key-field":a.keyField,onScroll:$},{default:e.withCtx(({item:he,index:pe,active:J})=>[e.createVNode(e.unref(r),{item:he,index:pe,active:J,"size-dependencies":H(he)},{default:e.withCtx(()=>[e.renderSlot(G.$slots,"item",{item:he,index:pe,active:J})]),_:2},1032,["item","index","active","size-dependencies"])]),after:e.withCtx(()=>[a.isLoading?(e.openBlock(),e.createElementBlock("div",Om,[e.renderSlot(G.$slots,"loadMore",{},()=>[e.createVNode(Te,{theme:"circleSpinner",size:"small",color:"#999",className:"ptr-loadmore-load"}),e.createElementVNode("span",null,e.toDisplayString(a.loadingText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),a.isFinished&&!a.isLoading?(e.openBlock(),e.createElementBlock("div",$m,[e.renderSlot(G.$slots,"finished",{},()=>[e.createElementVNode("span",null,e.toDisplayString(a.finishedText),1)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),_:3},8,["items","min-item-size","key-field"])])):e.renderSlot(G.$slots,"default",{key:1})],38)])],10,Dm))}}),Lm=["id"],Fm=["onClick"],Po=300,Vm=200,Mn=100,ml=e.defineComponent({name:"ClRate",__name:"Index",props:{id:String,value:{type:Number,default:0},className:String,disabled:{type:Boolean,default:!1},count:{type:Number,default:5},size:{type:[Number,String],default:20},gutter:{type:[Number,String],default:4},color:{type:String,default:""},voidColor:{type:String,default:""},disabledColor:{type:String,default:""},readonly:{type:Boolean,default:!1},isAllowHalf:{type:Boolean,default:!1},isDragSelect:{type:Boolean,default:!0},isClearable:{type:Boolean,default:!1},dynamicIconsList:{type:Array,default:()=>[]},dynamicIconColor:{type:String,default:""}},emits:["update:value","update:modelValue","onChange"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=`rate-${s.getRandom(5)}`,r=t.id,c=e.useTemplateRef("refElRate");let u=0,d=!1,m=!1,p=!1,h=0,f=!1,y=!1,x=null,N=0;const M=e.ref(-1),S=e.computed(()=>{const j=Math.max(Math.floor(s.isFinite(t.count)?t.count:1),1);return Math.min(j,Mn)}),C=e.computed(()=>Math.min(Math.max(s.isFinite(t.value)?t.value:0,0),S.value)),O=e.computed(()=>{const j=[];for(let $=0;$<S.value;$++)j.push(Math.min(Math.max(C.value-$,0),1));return j}),P=e.computed(()=>{let j={"panel-rate":!0};return t.disabled&&(j["panel-rate--disabled"]=!0),j=s.getJsonMerge(j,ee.getClassNameJson(t.className)),j}),B=e.computed(()=>{const j={};return t.color&&(j["--rate-color"]=t.color),t.voidColor&&(j["--rate-void-color"]=t.voidColor),t.disabledColor&&(j["--rate-disabled-color"]=t.disabledColor),j}),F=e.computed(()=>{const j={};return s.isNonEmptyString(t.size)?j["--rate-size"]=t.size:s.isFinite(t.size)&&t.size>0&&(j["--rate-size"]=`${t.size}px`),s.isNonEmptyString(t.gutter)?j["--rate-gutter"]=t.gutter:s.isFinite(t.gutter)&&t.gutter>0&&(j["--rate-gutter"]=`${t.gutter}px`),j}),L=j=>{const $=Date.now();j===x&&$-N<Vm||(x=j,N=$,l("update:value",j),l("update:modelValue",j),l("onChange",j))},I=j=>Math.min(Math.max(j,0),S.value),z=j=>{const $=t.dynamicIconsList?.[j];return s.isNonEmptyString($)?$:$&&s.isNonEmptyString($.icon)?$.icon:"xing-fill"},W=j=>{const $=t.dynamicIconsList?.[j];return $&&!s.isNonEmptyString($)&&s.isNonEmptyString($.color)?$.color:s.isNonEmptyString(t.dynamicIconColor)?t.dynamicIconColor:t.color||""},U=j=>{const $=W(j);return $?{color:$}:{}},D=(j,$=!0)=>{if(t.disabled||t.readonly)return;let Z=I(j);$&&t.isClearable&&Z===C.value&&(Z=0),Z!==C.value&&L(Z)},g=j=>{if(t.disabled||t.readonly||!c.value)return-1;const $=c.value.getBoundingClientRect(),Z=j-$.left,G=$.width/S.value;if(!s.isFinite(G)||G<=0)return-1;let oe=t.isAllowHalf?Math.round(Z/G*2)/2:Math.ceil(Z/G);return oe=I(oe),oe!==C.value&&L(oe),oe},w=j=>{if(t.disabled||t.readonly||!t.isDragSelect)return-1;const $=j.touches[0];return $?g($.clientX):-1};e.onBeforeUnmount(()=>{window.removeEventListener("mouseup",R)}),e.watch(()=>t.count,j=>{!s.isFinite(j)||j<1?re.warn("ClRate","警告:count 必须为不小于 1 的数字"):j>Mn&&re.warn("ClRate",`警告:count 超过上限 ${Mn},实际按上限渲染`)},{immediate:!0});const b=j=>{M.value===j?(M.value=-1,e.nextTick(()=>{M.value=j})):M.value=j},v=j=>{const $=j+1,Z=C.value;let G;t.isAllowHalf?t.isClearable&&Z===$?G=0:Z>=$?G=$-1:Z===$-.5?G=$:G=$-.5:G=$,D(G)},E=j=>{if(p&&Date.now()-u<Po){!f&&!t.disabled&&!t.readonly&&(b(j),y||v(j));return}m||t.disabled||t.readonly||(b(j),v(j))},k=()=>{p&&Date.now()-u<Po||t.disabled||t.readonly||!t.isDragSelect||(d=!0,m=!1,window.addEventListener("mouseup",R))},T=j=>{d&&(m=!0,g(j.clientX))},R=()=>{d&&(d=!1,window.removeEventListener("mouseup",R))},q=j=>{p=!1,f=!1,y=!1;const $=C.value,Z=j.touches[0];Z&&(h=Z.clientX);const G=w(j);G>=0&&(p=!0,y=G!==$)},H=()=>{u=Date.now()},V=()=>{M.value=-1},_=j=>{const $=j.touches[0];$&&Math.abs($.clientX-h)>2&&(f=!0),w(j)>=0&&j.preventDefault()};return o({getValue:()=>C.value,setValue:j=>{let $=s.isFinite(j)?j:0;t.isAllowHalf?$=Math.round($*2)/2:$=Math.floor($),$=I($),$!==C.value&&L($)},getValueData:()=>({value:C.value})}),(j,$)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElRate",ref:c,id:e.unref(r),class:e.normalizeClass(P.value),style:e.normalizeStyle(B.value),onMousedown:k,onMousemove:T,onTouchstart:q,onTouchmove:_,onTouchend:H,onTouchcancel:H},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,Z=>(e.openBlock(),e.createElementBlock("div",{key:`${i}-${Z}`,class:e.normalizeClass(["panel-rate__item",{"panel-rate__item--full":O.value[Z-1]===1,"panel-rate__item--partial":O.value[Z-1]>0&&O.value[Z-1]<1,"panel-rate__item--pop-active":M.value===Z-1}]),style:e.normalizeStyle(F.value),onClick:G=>E(Z-1),onAnimationend:V},[M.value===Z-1?(e.openBlock(),e.createBlock(le,{key:0,name:z(Z-1),style:e.normalizeStyle(U(Z-1)),class:"panel-rate__icon panel-rate__icon--pop"},null,8,["name","style"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(le,{name:"xing-fill",class:"panel-rate__icon"}),O.value[Z-1]>0&&O.value[Z-1]<1?(e.openBlock(),e.createElementBlock("div",{key:2,class:"panel-rate__partial",style:e.normalizeStyle({width:`${O.value[Z-1]*100}%`})},[e.createVNode(le,{name:"xing-fill",class:"panel-rate__icon"})],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],46,Fm))),128))],46,Lm))}}),Rm=["id"],Pm={class:"scrollcard-list"},zm={key:1,class:"scrollcard-empty",role:"status"},Hm=["aria-expanded","onClick","onKeydown"],Jm={key:2,class:"scrollcard-elastic-body"},Um={class:"scrollcard-list"},jm={key:1,class:"scrollcard-empty",role:"status"},Km=["aria-expanded","onClick","onKeydown"],Wm={key:2,class:"scrollcard-elastic-body"},qm={key:0,class:"scrollcard-pager"},Ym=["disabled"],Xm={class:"scrollcard-pager-info"},Gm=["disabled"],pl=e.defineComponent({name:"ClScrollCard",__name:"Index",props:{id:String,className:String,disabled:Boolean,list:{type:Array,default:()=>[]},isPaginate:{type:Boolean,default:!0},paginateType:{type:String,default:"scroll",validator:a=>["button","scroll"].indexOf(a)>-1},paginateLimit:{type:Number,default:20},isServer:{type:Boolean,default:!1},totalLength:{type:Number,default:0},orderSort:{type:Object,default:()=>({field:""})},isElastic:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isFinished:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"}},emits:{onGetData:a=>!0,onClickCard:(a,o)=>!0,onClickElastic:(a,o,n)=>!0},setup(a,{expose:o,emit:n}){const t=a,l=n,i=`s-${s.getRandom(5)}`,r=t.id,c=e.useTemplateRef("refElPullToRefresh"),u=e.ref(1),d=e.ref([]),m=e.ref([]),p=e.computed(()=>t.isPaginate&&t.paginateType==="scroll"),h=e.computed(()=>s.isFinite(t.paginateLimit)?Math.max(1,t.paginateLimit):20),f=e.computed(()=>t.isServer?[]:F(B())),y=e.computed(()=>t.isServer?0:f.value.length),x=e.computed(()=>{if(t.isServer)return B();if(!t.isPaginate)return f.value;if(t.paginateType==="button"){const H=h.value,V=(u.value-1)*H;return f.value.slice(V,V+H)}return f.value.slice(0,u.value*h.value)}),N=e.computed(()=>{if(t.isServer){const H=s.isFinite(t.totalLength)?t.totalLength:0;return H>0?Math.max(1,Math.ceil(H/h.value)):1}return t.isPaginate?Math.max(1,Math.ceil(y.value/h.value)):1}),M=e.computed(()=>t.isServer?t.isFinished:t.isPaginate?u.value>=N.value:!0),S=e.computed(()=>x.value.length===0),C=e.computed(()=>u.value<=1),O=e.computed(()=>u.value>=N.value),P=e.computed(()=>{const H={"panel-scroll-card":!0};return t.disabled&&(H["scrollcard-disabled"]=!0),s.getJsonMerge(H,ee.getClassNameJson(t.className))}),B=()=>(s.isArray(t.list)?t.list:[]).filter(V=>V!=null),F=H=>{const V=t.orderSort||{},_=V.field;if(t.isServer||!s.isNonEmptyString(_))return s.getListClone(H);const A=V.order==="desc"?"desc":"asc",Y=V.format||"string",X=s.getListClone(H);return X.sort((j,$)=>{const Z=j&&typeof j[_]<"u"?j[_]:"",G=$&&typeof $[_]<"u"?$[_]:"";let oe=0;return Y==="number"?oe=(Number(Z)||0)-(Number(G)||0):Y==="date"?oe=(Date.parse(Z)||0)-(Date.parse(G)||0):oe=String(Z===null?"":Z).localeCompare(String(G===null?"":G)),A==="desc"&&(oe=-oe),oe}),X},L=H=>{const V=H&&H.id;return V==null?"":s.isString(V)||s.isFinite(V)?V.toString():""},I=H=>{const V=h.value,_={pages:u.value,limit:V,offset:(u.value-1)*V,action:H},A=t.orderSort||{};return s.isNonEmptyString(A.field)&&(_.field=A.field,_.order=A.order==="desc"?"desc":"asc"),_},z=H=>d.value.indexOf(L(H))>-1,W=H=>m.value.indexOf(L(H))>-1,U=(H,V)=>{const _=L(H);return _!==""?`${i}-${_}-${V}`:`${i}-${V}`};e.watch([()=>t.list,()=>t.paginateLimit],()=>{!t.isServer&&u.value>N.value&&(u.value=Math.max(1,N.value))},{deep:!0});const D=(H,V)=>{l("onClickCard",H,V)},g=H=>{const V=L(H);if(!V)return;const _=d.value.indexOf(V)===-1,A=s.getArrClone(d.value),Y=s.getArrClone(m.value);if(_){if(Y.indexOf(V)>-1){A.indexOf(V)===-1&&A.push(V),d.value=A,l("onClickElastic",V,H,!0);return}A.indexOf(V)===-1&&A.push(V),Y.indexOf(V)===-1&&Y.push(V)}else{const X=A.indexOf(V);X>-1&&A.splice(X,1);const j=Y.indexOf(V);j>-1&&Y.splice(j,1)}d.value=A,m.value=Y,l("onClickElastic",V,H,_)},w=H=>{u.value=H,t.isServer&&l("onGetData",I("pagechange"))},b=()=>{t.disabled||t.isLoading||u.value<=1||w(u.value-1)},v=()=>{t.disabled||t.isLoading||u.value>=N.value||w(u.value+1)},E=()=>{t.disabled||(u.value=1,t.isServer?l("onGetData",I("refresh")):q())},k=()=>{if(t.disabled||t.isLoading)return;const H=u.value+1;if(t.isServer){if(t.totalLength>0&&H>N.value)return;u.value=H,l("onGetData",I("loadmore"))}else H<=N.value&&(u.value=H)},T=H=>{if(!s.isString(H)&&!s.isFinite(H))return;const V=H.toString();if(V==="")return;const _=s.getArrClone(m.value);_.indexOf(V)===-1&&(_.push(V),m.value=_)},R=H=>{if(!s.isString(H)&&!s.isFinite(H))return;const V=H.toString();if(V==="")return;const _=s.getArrClone(m.value),A=_.indexOf(V);A>-1&&(_.splice(A,1),m.value=_)},q=()=>{c.value&&typeof c.value.finishRefresh=="function"&&c.value.finishRefresh()};return o({loadElasticStart:T,loadElasticStop:R,finishRefresh:q}),(H,V)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(r),class:e.normalizeClass(P.value)},[p.value?(e.openBlock(),e.createBlock(Gn,{key:0,class:"scrollcard-ptr",isLoading:a.isLoading,isFinished:M.value,disabled:a.disabled,onOnRefresh:E,onOnLoadMore:k,ref_key:"refElPullToRefresh",ref:c},{default:e.withCtx(()=>[e.createElementVNode("div",Pm,[S.value&&a.isLoading?(e.openBlock(),e.createBlock(Te,{key:0,class:"scrollcard-status",theme:"circleBubble",size:"large"})):S.value&&!a.isLoading?(e.openBlock(),e.createElementBlock("div",zm,e.toDisplayString(t.emptyText),1)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(x.value,(_,A)=>(e.openBlock(),e.createElementBlock("div",{key:U(_,A),class:"scrollcard-item"},[e.renderSlot(H.$slots,"default",{info:_,index:A,isOpen:z(_),elasticLoading:W(_),onClickCard:D,onToggleElastic:g}),a.isElastic?(e.openBlock(),e.createElementBlock("div",{key:0,class:"scrollcard-elastic-head",role:"button",tabindex:"0","aria-expanded":z(_),onClick:e.withModifiers(Y=>g(_),["stop"]),onKeydown:[e.withKeys(e.withModifiers(Y=>g(_),["prevent"]),["enter"]),e.withKeys(e.withModifiers(Y=>g(_),["prevent"]),["space"])]},[e.renderSlot(H.$slots,"elasticIcon",{info:_,index:A,isOpen:z(_),elasticLoading:W(_)})],40,Hm)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),a.isElastic&&z(_)?(e.openBlock(),e.createElementBlock("div",Jm,[W(_)?(e.openBlock(),e.createBlock(Te,{key:0,class:"scrollcard-elastic-load",theme:"circleBubble",size:"small"})):e.renderSlot(H.$slots,"elastic",{key:1,info:_,index:A})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]))),128))])]),_:3},8,["isLoading","isFinished","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Um,[S.value&&a.isLoading?(e.openBlock(),e.createBlock(Te,{key:0,class:"scrollcard-status",theme:"circleBubble",size:"large"})):S.value&&!a.isLoading?(e.openBlock(),e.createElementBlock("div",jm,e.toDisplayString(t.emptyText),1)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(x.value,(_,A)=>(e.openBlock(),e.createElementBlock("div",{key:U(_,A),class:"scrollcard-item"},[e.renderSlot(H.$slots,"default",{info:_,index:A,isOpen:z(_),elasticLoading:W(_),onClickCard:D,onToggleElastic:g}),a.isElastic?(e.openBlock(),e.createElementBlock("div",{key:0,class:"scrollcard-elastic-head",role:"button",tabindex:"0","aria-expanded":z(_),onClick:e.withModifiers(Y=>g(_),["stop"]),onKeydown:[e.withKeys(e.withModifiers(Y=>g(_),["prevent"]),["enter"]),e.withKeys(e.withModifiers(Y=>g(_),["prevent"]),["space"])]},[e.renderSlot(H.$slots,"elasticIcon",{info:_,index:A,isOpen:z(_),elasticLoading:W(_)})],40,Km)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),a.isElastic&&z(_)?(e.openBlock(),e.createElementBlock("div",Wm,[W(_)?(e.openBlock(),e.createBlock(Te,{key:0,class:"scrollcard-elastic-load",theme:"circleBubble",size:"small"})):e.renderSlot(H.$slots,"elastic",{key:1,info:_,index:A})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]))),128))]),a.isPaginate&&a.paginateType==="button"?(e.openBlock(),e.createElementBlock("div",qm,[e.createElementVNode("button",{class:"scrollcard-pager-btn",disabled:C.value||a.disabled,onClick:b}," 上一页 ",8,Ym),e.createElementVNode("span",Xm,e.toDisplayString(u.value)+" / "+e.toDisplayString(N.value),1),e.createElementVNode("button",{class:"scrollcard-pager-btn",disabled:O.value||a.disabled,onClick:v}," 下一页 ",8,Gm)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))],10,Rm))}}),Qm={key:0,class:"sharesheet-title"},Zm={key:2,class:"sharesheet-description"},ep={class:"sharesheet-options"},tp=["onClick"],np={key:0,class:"sharesheet-option-icon"},op={class:"sharesheet-option-name"},ap={key:2,class:"sharesheet-option-desc"},fl=e.defineComponent({name:"ClShareSheet",__name:"Index",props:{id:String,className:String,show:Boolean,title:String,description:String,optionsList:Array,cancelText:String,isOverlay:{type:Boolean,default:!0},isCloseOnClickOverlay:{type:Boolean,default:!0},isLockScroll:{type:Boolean,default:!1},isSafeAreaInsetBottom:Boolean,duration:{type:Number,default:300},zIndex:{type:Number,default:2e3},teleportTarget:{type:String,default:""}},emits:["update:show","onSelect","onCancel","onClickOverlay"],setup(a,{emit:o}){const n=a,t=o,l=`sharesheet-${s.getRandom(5)}`,i=n.id,r=e.ref(n.show),c=e.computed(()=>s.isNonEmptyString(n.title)?n.title:""),u=e.computed(()=>s.isNonEmptyString(n.description)?n.description:""),d=e.computed(()=>s.isNonEmptyString(n.cancelText)?n.cancelText:""),m=e.computed(()=>Array.isArray(n.optionsList)?n.optionsList.filter(x=>s.isObject(x)&&s.isNonEmptyString(x.name)):[]),p=e.computed(()=>{const x={"panel-share-sheet":!0};return s.getJsonMerge(x,ee.getClassNameJson(n.className))});e.watch(r,x=>{x!==n.show&&t("update:show",x)}),e.watch(()=>n.show,x=>{r.value=x});const h=(x,N)=>{r.value&&t("onSelect",x,N)},f=()=>{r.value&&(t("onCancel"),r.value=!1)},y=()=>{t("onClickOverlay")};return(x,N)=>(e.openBlock(),e.createBlock(We,{id:e.unref(i),show:r.value,"onUpdate:show":N[0]||(N[0]=M=>r.value=M),position:"bottom",isOverlay:a.isOverlay,isRound:!0,duration:a.duration,isCloseOnClickOverlay:a.isCloseOnClickOverlay,isLockScroll:a.isLockScroll,isSafeAreaInsetBottom:a.isSafeAreaInsetBottom,zIndex:a.zIndex,teleportTarget:a.teleportTarget,onOnClickOverlay:y},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(p.value)},[c.value?(e.openBlock(),e.createElementBlock("div",Qm,e.toDisplayString(c.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),u.value?(e.openBlock(),e.createElementBlock("div",Zm,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),e.createElementVNode("div",ep,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(M,S)=>(e.openBlock(),e.createElementBlock("button",{key:`${l}-${M.id}-${S}`,type:"button",class:"sharesheet-option",onClick:C=>h(M,S)},[M.icon?(e.openBlock(),e.createElementBlock("span",np,[e.createVNode(le,{name:M.icon},null,8,["name"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",op,e.toDisplayString(M.name),1),M.description?(e.openBlock(),e.createElementBlock("span",ap,e.toDisplayString(M.description),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],8,tp))),128))]),d.value?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",class:"sharesheet-cancel",onClick:f},e.toDisplayString(d.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))],2)]),_:1},8,["id","show","isOverlay","duration","isCloseOnClickOverlay","isLockScroll","isSafeAreaInsetBottom","zIndex","teleportTarget"]))}}),lp=["id"],sp=["onClick"],ip={class:"sidebar-item-text"},rp={key:0,class:"sidebar-item-badge"},gl=e.defineComponent({name:"ClSidebar",__name:"Index",props:{id:String,className:String,itemsList:{type:Array,default:()=>[]},active:{type:Number,default:0}},emits:["onChange","onClickItem"],setup(a,{emit:o}){const n=a,t=o,l=`sidebar-${s.getRandom(5)}`,i=n.id,r=e.computed(()=>{const h=Number(n.active);return s.isFinite(h)?h:0}),c=e.computed(()=>Array.isArray(n.itemsList)?n.itemsList.map((h,f)=>({item:h,inx:f})).filter(h=>h.item&&s.isNonEmptyString(h.item.text)).map(({item:h,inx:f})=>({item:h,inx:f,badge:d(h)})):[]),u=e.computed(()=>{const h={"panel-sidebar":!0};return s.getJsonMerge(h,ee.getClassNameJson(n.className))}),d=h=>{if(s.isUndefined(h.badge)||typeof h.badge=="symbol")return 0;const f=Number(h.badge);return s.isFinite(f)&&f>0?f:0},m=(h,f)=>{t("onClickItem",f),f!==r.value&&t("onChange",f)},p=(h,f)=>({"sidebar-item":!0,"sidebar-item--active":f===r.value});return(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(u.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,y=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-${y.inx}`,class:e.normalizeClass(p(y.item,y.inx)),onClick:x=>m(y.item,y.inx)},[e.createElementVNode("span",ip,e.toDisplayString(y.item.text),1),y.badge>0?(e.openBlock(),e.createElementBlock("span",rp,e.toDisplayString(y.badge),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,sp))),128))],10,lp))}}),cp=["id"],up={class:"sidebarselect-left"},dp=["onClick"],mp={class:"sidebarselect-group-text"},pp={class:"sidebarselect-right"},fp=["onClick"],gp={class:"sidebarselect-option-text"},hp={key:0,class:"sidebarselect-option-check"},hl=e.defineComponent({name:"ClSidebarSelect",__name:"Index",props:{id:String,className:String,groupsList:{type:Array,default:()=>[]},activeId:{type:[Number,String],default:""},activeGroupIndex:{type:Number,default:0}},emits:["update:activeId","onClickGroup","onClickOption"],setup(a,{emit:o}){const n=a,t=o,l=`sidebarselect-${s.getRandom(5)}`,i=n.id,r=e.computed(()=>Array.isArray(n.groupsList)?n.groupsList.filter(y=>y!=null):[]),c=e.computed(()=>{const y=r.value[n.activeGroupIndex];return y&&Array.isArray(y.children)?y.children.filter(x=>x!=null):[]}),u=e.computed(()=>{const y={"panel-sidebar-select":!0};return s.getJsonMerge(y,ee.getClassNameJson(n.className))}),d=y=>({"sidebarselect-group":!0,"sidebarselect-group--active":y===n.activeGroupIndex}),m=y=>({"sidebarselect-option":!0,"sidebarselect-option--active":p(y)}),p=y=>(s.isString(y.id)||s.isNumber(y.id))&&(s.isString(n.activeId)||s.isNumber(n.activeId))&&String(y.id)===String(n.activeId),h=y=>{t("onClickGroup",y)},f=(y,x)=>{const N=y.id;(s.isString(N)||s.isNumber(N))&&N!==void 0&&t("update:activeId",N),t("onClickOption",y,x)};return(y,x)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(u.value)},[e.createElementVNode("div",up,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(N,M)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-g-${M}`,class:e.normalizeClass(d(M)),onClick:S=>h(M)},[e.createElementVNode("span",mp,e.toDisplayString(N.text),1)],10,dp))),128))]),e.createElementVNode("div",pp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(N,M)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-o-${M}`,class:e.normalizeClass(m(N)),onClick:S=>f(N,M)},[e.createElementVNode("span",gp,e.toDisplayString(N.text),1),p(N)?(e.openBlock(),e.createElementBlock("span",hp,[e.createVNode(le,{name:"check1"})])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,fp))),128))])],10,cp))}}),vp=["id"],yp={class:"panel-signature__footer"},kp=500,vl=e.defineComponent({name:"ClSignature",__name:"Index",props:{id:String,className:String,type:{type:String,default:"png"},penColor:{type:String,default:"#000"},lineWidth:{type:Number,default:3},backgroundColor:{type:String,default:""},clearButtonText:{type:String,default:"清空"},confirmButtonText:{type:String,default:"确认"}},emits:["onStart","onEnd","onSigning","onSubmit","onClear"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.useTemplateRef("refElCanvas");let c=null,u=!1,d=0,m=0,p=null,h=!1,f=null,y=0,x=0;const N=e.computed(()=>t.type==="png"||t.type==="jpeg"?t.type:"png"),M=e.computed(()=>{const _={"panel-signature":!0};return s.getJsonMerge(_,ee.getClassNameJson(t.className))}),S=e.computed(()=>{const _={};return t.backgroundColor&&(_["--signature-bg"]=t.backgroundColor),_}),C=()=>{const _=r.value;if(!_||!_.clientWidth||!_.clientHeight)return;const A=window.devicePixelRatio||1;_.width=Math.round(_.clientWidth*A),_.height=Math.round(_.clientHeight*A);const Y=_.getContext("2d");Y&&(Y.scale(A,A),Y.lineCap="round",Y.lineJoin="round",c=Y)},O=()=>{const _=r.value;if(!_||!_.clientWidth||!_.clientHeight)return;const A=++y;x++;let Y="";if(d>0)try{const X=_.getContext("2d");!!X&&X.getImageData(0,0,_.width,_.height).data.some($=>$!==0)?Y=_.toDataURL():d=0}catch(X){d=0,re.warn("ClSignature","警告:画布导出失败",X)}if(C(),Y){const X=new Image;X.onload=()=>{A===y&&(u||c?.drawImage(X,0,0,_.clientWidth,_.clientHeight))},X.onerror=()=>{A===y&&(u||(d=0),re.warn("ClSignature","警告:画布内容恢复失败"))},X.src=Y}},P=(_,A)=>{const Y=r.value?.getBoundingClientRect();return{x:_-(Y?.left??0),y:A-(Y?.top??0)}},B=_=>{const A=c;if(!A||!f)return;const Y=(f.x+_.x)/2,X=(f.y+_.y)/2;A.beginPath(),A.moveTo(f.x,f.y),A.quadraticCurveTo(f.x,f.y,Y,X),A.lineTo(_.x,_.y),A.stroke(),f=_},F=(_,A)=>{const Y=c;if(!Y)return;Y.strokeStyle=t.penColor;const X=s.isFinite(t.lineWidth)?t.lineWidth:3,j=Math.max(X,1);Y.lineWidth=j;const $=P(_,A);f=$,Y.beginPath(),Y.arc($.x,$.y,j/2,0,Math.PI*2),Y.fillStyle=t.penColor,Y.fill(),d+=1,l("onStart")},L=()=>{u&&(u=!1,f=null,l("onEnd"))},I=()=>{const _=r.value;if(!_)return"";try{const j=_.getContext("2d");if(!(!!j&&j.getImageData(0,0,_.width,_.height).data.some(Z=>Z!==0)))return""}catch(j){return re.warn("ClSignature","警告:检测画布内容失败,按空签名处理",j),""}let A=t.backgroundColor;N.value==="jpeg"&&!A&&(A="var(--cl-bg, #ffffff)");const Y=_,X=A?document.createElement("canvas"):Y;if(A){X.width=Y.width,X.height=Y.height;const j=X.getContext("2d");if(j)j.fillStyle=A,j.fillRect(0,0,X.width,X.height),j.drawImage(Y,0,0);else return re.warn("ClSignature","警告:导出画布上下文创建失败,无法导出"),""}try{return X.toDataURL(`image/${N.value}`)}catch(j){return re.warn("ClSignature","警告:导出签名图片失败",j),""}},z=()=>{const _=c,A=r.value;!_||!A||(y++,x++,_.clearRect(0,0,A.width,A.height),d=0,u=!1,f=null,l("onClear"))},W=()=>{l("onSubmit",{image:d>0?I():"",canvas:r.value??void 0})};e.onMounted(()=>{e.nextTick(()=>{h||!r.value||(C(),p=new dn({element:r.value,callback:()=>{O()}}))})}),e.onUnmounted(()=>{h=!0,p?.destroy(),p=null}),e.watch(()=>t.type,_=>{_!=="png"&&_!=="jpeg"&&re.warn("ClSignature","警告:type 仅支持 png 或 jpeg,已回退为 png")},{immediate:!0});const U=_=>{if(m=Date.now(),u)return;const A=_.touches[0];A&&(u=!0,F(A.clientX,A.clientY))},D=_=>{if(!u)return;const A=_.touches[0];A&&(m=Date.now(),B(P(A.clientX,A.clientY)),l("onSigning",_))},g=()=>{L()},w=_=>{Date.now()-m<kp||u||(u=!0,F(_.clientX,_.clientY))},b=_=>{u&&(B(P(_.clientX,_.clientY)),l("onSigning",_))},v=()=>{L()},E=()=>{z()},k=()=>{W()},T=()=>d>0?I():"";return o({getValue:T,getValueData:()=>({value:T(),canvas:r.value??void 0}),setValue:_=>{if(!s.isNonEmptyString(_)||!r.value)return;const A=++x;y++;const Y=r.value;if(!Y.clientWidth||!Y.clientHeight){d=0,re.warn("ClSignature","警告:签名回显失败,画布当前无尺寸");return}const X=new Image;X.onload=()=>{if(A!==x)return;const j=r.value,$=c;if(!j||!$||!j.clientWidth||!j.clientHeight){d=0;return}$.clearRect(0,0,j.width,j.height),$.drawImage(X,0,0,j.clientWidth,j.clientHeight),d=1},X.onerror=()=>{A===x&&(d=0,re.warn("ClSignature","警告:签名图片回显失败(图片加载出错)"))},X.src=_},clear:()=>{z()},submit:()=>{W()}}),(_,A)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(M.value)},[e.createElementVNode("div",{class:"panel-signature__content",style:e.normalizeStyle(S.value)},[e.createElementVNode("canvas",{ref_key:"refElCanvas",ref:r,class:"panel-signature__canvas",role:"img","aria-label":"手写签名区",onTouchstart:U,onTouchmove:e.withModifiers(D,["prevent"]),onTouchend:g,onMousedown:w,onMousemove:b,onMouseup:v,onMouseleave:v},null,544)],4),e.createElementVNode("div",yp,[e.createElementVNode("button",{type:"button",class:"panel-signature__btn",onClick:E},e.toDisplayString(a.clearButtonText),1),e.createElementVNode("button",{type:"button",class:"panel-signature__btn panel-signature__btn--confirm",onClick:k},e.toDisplayString(a.confirmButtonText),1)])],10,vp))}}),bp=["id"],Cp=["onClick"],Sp={class:"steps-circle-wrap"},Ep={key:0,class:"steps-icon"},_p={key:1,class:"steps-circle"},Bp={class:"steps-content"},wp={class:"steps-title"},xp={key:0,class:"steps-desc"},yl=e.defineComponent({name:"ClSteps",__name:"Index",props:{id:String,className:String,stepsList:{type:Array,default:()=>[]},active:{type:Number,default:0,validator:a=>Number.isInteger(a)&&a>=0},direction:{type:String,default:"horizontal",validator:a=>["horizontal","vertical"].indexOf(a)!==-1},activeColor:{type:String,default:"var(--cl-primary, #1088f0)"},inactiveColor:{type:String,default:"var(--cl-border, #cfcfcf)"}},emits:["onClickStep"],setup(a,{emit:o}){const n=a,t=o,l=`steps-${s.getRandom(5)}`,i=n.id,r=e.computed(()=>Array.isArray(n.stepsList)?n.stepsList:[]),c=e.computed(()=>{const f={"panel-steps":!0,"panel-steps--vertical":n.direction==="vertical","panel-steps--horizontal":n.direction==="horizontal"};return s.getJsonMerge(f,ee.getClassNameJson(n.className))}),u=e.computed(()=>({"--steps-active-color":n.activeColor,"--steps-inactive-color":n.inactiveColor})),d=f=>({"steps-item":!0,"steps-item--active":f<=n.active,"steps-item--last":f===r.value.length-1}),m=f=>{const y=r.value[f];return!!y&&s.isNonEmptyString(y.icon)},p=f=>{const y=r.value[f];return y&&s.isNonEmptyString(y.icon)?y.icon:""},h=f=>{t("onClickStep",f)};return(f,y)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(c.value),style:e.normalizeStyle(u.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(x,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${l}-${N}`},[x?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(d(N)),onClick:M=>h(N)},[e.createElementVNode("div",Sp,[m(N)?(e.openBlock(),e.createElementBlock("span",Ep,[e.createVNode(le,{name:p(N)},null,8,["name"])])):(e.openBlock(),e.createElementBlock("span",_p,e.toDisplayString(N+1),1))]),e.createElementVNode("div",Bp,[e.createElementVNode("div",wp,e.toDisplayString(x.text),1),x.description?(e.openBlock(),e.createElementBlock("div",xp,e.toDisplayString(x.description),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))])],10,Cp)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))),128))],14,bp))}}),Np=["id"],Tp={key:0,class:"swipe-indicators"},Dp=50,Ip=350,Ap=3e3,Mp="0.3s",kl=e.defineComponent({name:"ClSwipe",__name:"Index",props:{id:String,className:String,isAutoplay:{type:Boolean,default:!0},autoplayInterval:{type:Number,default:3e3},isLoop:{type:Boolean,default:!0},isShowIndicators:{type:Boolean,default:!0},height:{type:String,default:"200px"}},emits:["onChange","onClick"],setup(a,{emit:o}){const n=a,t=o,l=`swipe-${s.getRandom(5)}`,i=n.id,r=e.useSlots(),c=e.ref(0);let u=0,d=0,m=-1,p="";const h=e.ref(!1);let f=null;const y=e.ref(0);let x=!1,N=0,M=-1,S=!0;const C=e.computed(()=>{y.value;const v=r.default?r.default():[];return Math.max(1,v.length)}),O=e.computed(()=>{let v={"panel-swipe":!0};return v=s.getJsonMerge(v,ee.getClassNameJson(n.className)),v}),P=e.computed(()=>({height:s.isNonEmptyString(n.height)?n.height:"200px"})),B=e.computed(()=>({transform:`translateX(${-c.value*100}%)`,transition:h.value?"none":`transform ${Mp} ease`})),F=v=>{const E=C.value;if(E<=1)return!1;let k=v;return n.isLoop?k=(v%E+E)%E:k=Math.min(Math.max(v,0),E-1),k!==c.value?(c.value=k,t("onChange",k),!0):!1},L=()=>{if(!S||!n.isAutoplay||C.value<2||!n.isLoop&&c.value>=C.value-1||h.value)return;I();const v=s.isNumber(n.autoplayInterval)&&s.isFinite(n.autoplayInterval)&&n.autoplayInterval>0?n.autoplayInterval:Ap;f=setInterval(()=>{const E=F(c.value+1);!n.isLoop&&!E&&I()},v)},I=()=>{f&&(clearInterval(f),f=null)},z=v=>({"swipe-indicator":!0,"swipe-indicator--active":v===c.value});e.onMounted(()=>{L()}),e.onUpdated(()=>{const v=r.default?r.default().length:0;v!==M&&(M=v,y.value++)}),e.onActivated(()=>{S=!0,L()}),e.onDeactivated(()=>{S=!1,I()}),e.onBeforeUnmount(()=>{I()}),e.watch(()=>n.isAutoplay,v=>{v?L():I()}),e.watch(()=>n.autoplayInterval,()=>{I(),L()}),e.watch(()=>n.isLoop,()=>{L()}),e.watch(C,v=>{const E=c.value>=v;if(E){const k=Math.max(0,v-1);c.value=k,e.nextTick(()=>{t("onChange",k)})}if(v<2){I();return}n.isAutoplay&&(E||f===null)&&(I(),L())});const W=v=>{if(v.touches.length>1)return;const E=v.touches?.[0];E&&(x=!1,p="",m=E.identifier,u=E.clientX,d=E.clientY,h.value=!0,I())},U=v=>{if(!h.value||v.touches.length>1)return;const E=Array.from(v.touches).find(R=>R.identifier===m);if(!E)return;const k=E.clientX-u,T=E.clientY-d;if(p===""&&(p=Math.abs(k)>Math.abs(T)?"horizontal":"vertical"),p==="horizontal"&&(x=!0,Math.abs(k)>Dp)){let R=!1;k<0?R=F(c.value+1):R=F(c.value-1),R&&(h.value=!1)}},D=()=>{h.value=!1,x&&(N=Date.now()),L()},g=v=>{v.touches.length>0||D()},w=()=>{D()},b=()=>{const v=Date.now()-N;v>=0&&v<Ip||t("onClick")};return(v,E)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(O.value),style:e.normalizeStyle(P.value),role:"region","aria-roledescription":"轮播图","aria-label":"轮播图",onTouchstart:W,onTouchmove:U,onTouchend:g,onTouchcancel:w,onClick:b},[e.createElementVNode("div",{class:"swipe-track",style:e.normalizeStyle(B.value)},[e.renderSlot(v.$slots,"default")],4),a.isShowIndicators?(e.openBlock(),e.createElementBlock("div",Tp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(k,T)=>(e.openBlock(),e.createElementBlock("span",{key:`${l}-ind-${k}`,class:e.normalizeClass(z(T)),"aria-hidden":"true"},null,2))),128))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],46,Np))}}),Op=["id"],$p=["onClick"],Lp={class:"tabbar-item-text"},bl=e.defineComponent({name:"ClTabbar",__name:"Index",props:{id:String,className:String,itemsList:{type:Array,default:()=>[]},active:{type:Number,default:0},activeColor:{type:String,default:"var(--cl-primary, #1088f0)"},inactiveColor:{type:String,default:"var(--cl-text-secondary, #666666)"},isSafeAreaInsetBottom:Boolean,isFixed:Boolean,isPlaceholder:Boolean,zIndex:{type:Number,default:1e3}},emits:["onChange","onClickItem"],setup(a,{emit:o}){const n=a,t=o,l=`tabbar-${s.getRandom(5)}`,i=n.id,r=e.computed(()=>Array.isArray(n.itemsList)?n.itemsList.map(N=>N!=null&&s.getTypeof(N)==="object"?N:null):[]),c=e.computed(()=>{const N={};return r.value.forEach((M,S)=>{N[S]=M!=null?x(M):0}),N}),u=e.computed(()=>n.isFixed&&n.isPlaceholder),d=e.computed(()=>{const N=r.value.length,M=n.active;return s.getTypeof(M)==="symbol"||!s.isFinite(M)||N===0?0:Math.min(Math.max(M,0),N-1)}),m=e.computed(()=>s.getTypeof(n.zIndex)==="symbol"||!s.isFinite(n.zIndex)?1e3:n.zIndex),p=e.computed(()=>{const N={"panel-tabbar":!0,"panel-tabbar--fixed":n.isFixed,"panel-tabbar--safe-bottom":n.isSafeAreaInsetBottom};return s.getJsonMerge(N,ee.getClassNameJson(n.className))}),h=e.computed(()=>({"--tabbar-active-color":n.activeColor,"--tabbar-inactive-color":n.inactiveColor,zIndex:m.value})),f=(N,M)=>{t("onClickItem",M),M!==n.active&&t("onChange",M)},y=(N,M)=>({"tabbar-item":!0,"tabbar-item--active":M===d.value}),x=N=>{const M=s.getTypeof(N.badge)==="symbol"?NaN:Number(N.badge);return s.isFinite(M)&&M>0?M:0};return(N,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{id:e.unref(i),class:e.normalizeClass(p.value),style:e.normalizeStyle(h.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(S,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${l}-${C}`},[S!=null?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(y(S,C)),onClick:O=>f(S,C)},[S.iconName||S.icon?(e.openBlock(),e.createBlock(le,{key:0,name:S.iconName||S.icon,size:20,className:"tabbar-item-icon"},null,8,["name"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("span",Lp,e.toDisplayString(S.text),1),c.value[C]>0?(e.openBlock(),e.createBlock(Pn,{key:2,num:c.value[C],colorSty:"var(--cl-danger, #ee0a24)",className:"tabbar-item-badge"},null,8,["num"])):e.createCommentVNode("",!0)],10,$p)):e.createCommentVNode("",!0)],64))),128))],14,Op),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-tabbar-placeholder",{"panel-tabbar-placeholder--safe":n.isSafeAreaInsetBottom}])},null,2)):e.createCommentVNode("",!0)],64))}}),Fp=["id"],Vp=["onClick"],Rp={class:"tabm-nav-text"},Pp=["id"],Cl=e.defineComponent({name:"ClTabM",__name:"Index",props:{id:String,className:String,tabsList:{type:Array,default:()=>[]},active:{type:Number,default:0},activeColor:{type:String,default:"var(--cl-primary, #1088f0)"},inactiveColor:{type:String,default:"var(--cl-text-secondary, #666666)"},isLineAnimated:{type:Boolean,default:!0}},emits:["onChange","onClickTab"],setup(a,{emit:o}){const n=a,t=o,l=`tabm-${s.getRandom(5)}`,i=n.id,r=e.useTemplateRef("refElTabs"),c=e.ref(0),u=e.ref(0),d=e.computed(()=>Array.isArray(n.tabsList)?n.tabsList:[]),m=e.computed(()=>{const S=d.value.length;return S?s.isFinite(n.active)?Math.trunc(Math.min(Math.max(n.active,0),S-1)):0:-1}),p=e.computed(()=>{const S={"panel-tab-m":!0};return s.getJsonMerge(S,ee.getClassNameJson(n.className))}),h=e.computed(()=>({"tabm-nav-line":!0,"tabm-nav-line--no-animated":!n.isLineAnimated})),f=e.computed(()=>({left:`${c.value}px`,width:`${u.value}px`})),y=e.computed(()=>({"--tabm-active-color":n.activeColor||"var(--cl-primary, #1088f0)","--tabm-inactive-color":n.inactiveColor||"var(--cl-text-secondary, #666666)"})),x=()=>{r.value&&e.nextTick(()=>{const S=r.value;if(!S)return;const O=S.querySelectorAll(".tabm-nav-text")[m.value];O&&(c.value=O.offsetLeft,u.value=O.offsetWidth)})};e.onMounted(()=>{x()}),e.onActivated(()=>{x()}),e.watch([()=>n.active,()=>d.value,()=>d.value.length],()=>{x()});const N=S=>{const C=d.value[S];!C||C.disabled||(t("onClickTab",S),S!==m.value&&t("onChange",S))},M=S=>({"tabm-nav-item":!0,"tabm-nav-item--active":S===m.value,"tabm-nav-item--disabled":!!d.value[S]?.disabled});return(S,C)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i),class:e.normalizeClass(p.value),style:e.normalizeStyle(y.value)},[e.createElementVNode("div",{ref_key:"refElTabs",ref:r,class:"tabm-nav"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(O,P)=>(e.openBlock(),e.createElementBlock("div",{key:`${l}-${P}`,class:e.normalizeClass(M(P)),onClick:B=>N(P)},[e.createElementVNode("span",Rp,e.toDisplayString(O?.title),1)],10,Vp))),128)),e.createElementVNode("div",{class:e.normalizeClass(h.value),style:e.normalizeStyle(f.value)},null,6)],512),e.createElementVNode("div",{class:"tabm-content",id:`${l}-tabpanel`},[e.renderSlot(S.$slots,"default")],8,Pp)],14,Fp))}}),zp=["id"],Hp={key:1},Sl=e.defineComponent({name:"ClTextHighlight",__name:"Index",props:{id:String,className:String,sourceText:String,highlightText:String,tag:{type:String,default:"mark"},isAutoEscape:{type:Boolean,default:!0}},setup(a){const o=a,n=`text-highlight-${s.getRandom(5)}`,t=o.id,l=e.computed(()=>{const c=o.tag;return s.isNonEmptyString(c)?c:"mark"}),i=e.computed(()=>{const c=o.sourceText||"",u=(o.highlightText||"").trim();if(!c||!u)return c?[{text:c,highlight:!1}]:[];const d=[];let m=0,p=c.indexOf(u);for(;p!==-1;)p>m&&d.push({text:c.slice(m,p),highlight:!1}),d.push({text:c.slice(p,p+u.length),highlight:!0}),m=p+u.length,p=c.indexOf(u,m);return m<c.length&&d.push({text:c.slice(m),highlight:!1}),d}),r=e.computed(()=>{const c={"panel-text-highlight":!0};return s.getJsonMerge(c,ee.getClassNameJson(o.className))});return(c,u)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(t),class:e.normalizeClass(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(d,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${n}-${m}`},[d.highlight?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0,class:"highlight-mark"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.text),1)]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Hp,e.toDisplayString(d.text),1))],64))),128))],10,zp))}}),Jp=["id"],Up={key:2,class:"panel-toast__text"},Qn=e.defineComponent({name:"ClToast",__name:"Index",props:{id:String,className:String,show:Boolean,type:{type:String,default:"text",validator:a=>["text","success","fail","loading"].indexOf(a)!==-1},message:String,position:{type:String,default:"middle",validator:a=>["top","middle","bottom"].indexOf(a)!==-1},duration:{type:Number,default:2e3},isOverlay:Boolean,isForbidClick:Boolean,loadingType:{type:String,default:"spinner",validator:a=>["spinner","circular"].indexOf(a)!==-1},icon:String,iconSize:{type:[String,Number],default:36},zIndex:{type:Number,default:2e3},teleportTarget:{type:String,default:""}},emits:["update:show","onOpen","onOpened","onClose","onClosed","onClick"],setup(a,{expose:o,emit:n}){const t=a,l=n,i=t.id,r=e.ref(!1),c=e.ref(t.type),u=e.ref(t.message||""),d=e.ref(t.position),m=e.ref(s.isNumber(t.duration)&&s.isFinite(t.duration)?Math.max(0,Number(t.duration)):0),p=e.ref(t.isOverlay),h=e.ref(t.isForbidClick),f=e.ref(t.loadingType),y=e.ref(t.icon||""),x=e.ref(s.isNumber(t.zIndex)&&s.isFinite(t.zIndex)?Math.max(0,Number(t.zIndex)):2e3);let N=null;const M=e.computed(()=>r.value),S=e.computed(()=>{const j=t.teleportTarget;return j==="self"||!s.isString(j)||s.isEmpty(j.trim())?"body":j}),C=e.computed(()=>t.teleportTarget==="self"),O=e.computed(()=>p.value||h.value),P=e.computed(()=>c.value!=="text"||s.isNonEmptyString(y.value)),B=e.computed(()=>c.value==="loading"),F=e.computed(()=>s.isNonEmptyString(u.value)),L=e.computed(()=>s.isNonEmptyString(y.value)?y.value:c.value==="success"?"check":c.value==="fail"?"close":""),I=e.computed(()=>t.iconSize),z=e.computed(()=>{const j={"panel-toast":!0,"panel-toast--top":d.value==="top","panel-toast--middle":d.value==="middle","panel-toast--bottom":d.value==="bottom","panel-toast--icon-only":P.value&&!F.value};return s.getJsonMerge(j,ee.getClassNameJson(t.className))}),W=e.computed(()=>({"panel-toast__icon--success":c.value==="success","panel-toast__icon--fail":c.value==="fail"})),U=e.computed(()=>({zIndex:x.value})),D=e.computed(()=>({zIndex:x.value+1})),g=()=>{N&&(clearTimeout(N),N=null)},w=()=>{g(),m.value>0&&(N=setTimeout(()=>{N=null,l("update:show",!1),N||(N=setTimeout(()=>{N=null,b()},300))},m.value))},b=()=>{g(),r.value=!1},v=()=>{c.value=t.type,u.value=t.message||"",d.value=t.position,m.value=s.isNumber(t.duration)&&s.isFinite(t.duration)?Math.max(0,Number(t.duration)):0,p.value=t.isOverlay,h.value=t.isForbidClick,f.value=t.loadingType,y.value=t.icon||"",x.value=s.isNumber(t.zIndex)&&s.isFinite(t.zIndex)?Math.max(0,Number(t.zIndex)):2e3},E=(j,$,Z="text",G)=>{c.value=$&&$.type||Z,u.value=s.isNonEmptyString(j)?j:t.message||"",d.value=$&&$.position||t.position;const oe=$&&s.isNumber($.duration)&&s.isFinite($.duration)?Math.max(0,Number($.duration)):void 0,he=oe!==void 0?oe:G!==void 0?Math.max(0,Number(G)):t.duration;m.value=s.isNumber(he)&&s.isFinite(he)?Math.max(0,Number(he)):s.isNumber(t.duration)&&s.isFinite(t.duration)?t.duration:0,p.value=$&&$.overlay!==void 0?$.overlay:t.isOverlay,h.value=$&&$.forbidClick!==void 0?$.forbidClick:t.isForbidClick,f.value=$&&$.loadingType||t.loadingType,y.value=$&&$.icon||t.icon||"",x.value=$&&$.zIndex!==void 0&&s.isNumber($.zIndex)&&s.isFinite($.zIndex)?Math.max(0,Number($.zIndex)):s.isNumber(t.zIndex)&&s.isFinite(t.zIndex)?Math.max(0,Number(t.zIndex)):2e3,r.value=!0,w()};e.onBeforeUnmount(()=>{g()}),e.watch(()=>t.show,j=>{j?(v(),r.value=!0,w()):b()},{immediate:!0});const k=()=>{l("onClick")},T=()=>{l("onOpen")},R=()=>{l("onOpened")},q=()=>{l("onClose")},H=()=>{l("onClosed")};return o({toast:(j,$)=>{E(j,$,"text")},success:(j,$)=>{E(j,$,"success")},fail:(j,$)=>{E(j,$,"fail")},loading:(j,$)=>{E(j,$,"loading",0)},close:(j=0)=>{s.isFinite(j)&&j>0?(g(),N=setTimeout(()=>{N=null,b()},j)):b()}}),(j,$)=>(e.openBlock(),e.createBlock(e.Teleport,{to:S.value,disabled:C.value},[M.value&&O.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-toast-mask",{"panel-toast-mask--overlay":p.value}]),style:e.normalizeStyle(U.value)},null,6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createVNode(e.Transition,{name:"toast-fade",onEnter:T,onAfterEnter:R,onLeave:q,onAfterLeave:H},{default:e.withCtx(()=>[M.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(i),class:e.normalizeClass(z.value),style:e.normalizeStyle(D.value),onClick:k},[P.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["panel-toast__icon",W.value])},[B.value?(e.openBlock(),e.createBlock(Te,{key:0,theme:"toastRing","loading-type":f.value,color:"white"},null,8,["loading-type"])):(e.openBlock(),e.createBlock(le,{key:1,name:L.value,size:I.value,color:"var(--cl-bg, #ffffff)"},null,8,["name","size"]))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),F.value?(e.openBlock(),e.createElementBlock("div",Up,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],14,Jp)):e.createCommentVNode("",!0)]),_:1})],8,["to","disabled"]))}}),jp=["id"],El=e.defineComponent({name:"ClWatermark",__name:"Index",props:{id:String,className:String,content:String,fontColor:{type:String,default:"rgba(0, 0, 0, 0.15)"},fontSize:{type:Number,default:14},rotate:{type:Number,default:-22},zIndex:{type:Number,default:100},gapX:{type:Number,default:100},gapY:{type:Number,default:100},isFullScreen:{type:Boolean,default:!1}},setup(a){const o=a,n=o.id,t=e.computed(()=>{const r=s.isNonEmptyString(o.content)?o.content:"",c=s.isNonEmptyString(o.fontColor)?o.fontColor:"rgba(0, 0, 0, 0.15)",u=s.isFinite(o.fontSize)&&o.fontSize>0?o.fontSize:14,d=s.isFinite(o.rotate)?o.rotate:-22,m=s.isFinite(o.gapX)&&o.gapX>0?o.gapX:100,p=s.isFinite(o.gapY)&&o.gapY>0?o.gapY:100,h=M=>M.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),f=h(r),y=h(c),x=`<svg xmlns="http://www.w3.org/2000/svg" width="${m}" height="${p}">
|
|
9
|
-
<text x="${m/2}" y="${p/2}" fill="${y}" font-size="${u}" text-anchor="middle" dominant-baseline="middle" transform="rotate(${d} ${m/2} ${p/2})">${f}</text>
|
|
10
|
-
</svg>`;return`url("data:image/svg+xml,${encodeURIComponent(x)}")`}),l=e.computed(()=>{const r={"panel-watermark":!0};return s.getJsonMerge(r,ee.getClassNameJson(o.className))}),i=e.computed(()=>({backgroundImage:t.value,zIndex:s.isFinite(o.zIndex)?o.zIndex:100,position:o.isFullScreen?"fixed":"absolute"}));return(r,c)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(n),class:e.normalizeClass(l.value),style:e.normalizeStyle(i.value)},[e.renderSlot(r.$slots,"default")],14,jp))}});let Jt=null;const Zn=(a={})=>{if(Jt)return Jt;const o=e.createApp(Xn,a),n=document.createElement("div"),t=o.mount(n);return Jt={show:(l,i)=>{t.notify(l,i)},success:(l,i)=>{t.success(l,i)},danger:(l,i)=>{t.danger(l,i)},warning:(l,i)=>{t.warning(l,i)},close:()=>{t.close()}},Jt};function Kp(){const a=Zn();return{notify:a,show:a.show,success:a.success,danger:a.danger,warning:a.warning,close:a.close}}const Wp="cllazy",qp=a=>{const o=new Ea(a);return{deep:!0,mounted:o.mount.bind(o),updated:o.update.bind(o),unmounted:o.unmount.bind(o)}},Yp=Object.freeze(Object.defineProperty({__proto__:null,directive:qp,name:Wp},Symbol.toStringTag,{value:"Module"}));let Ut=null;const Xp=(a={})=>{if(Ut)return Ut;const o=e.createApp(Yn,a),n=document.createElement("div"),t=o.mount(n);return Ut={show:(l,i)=>{t.show(l,i)},hide:(l=1e3)=>{t.hide(l)}},Ut};function Gp(a){return o=>{a.forEach(n=>{o.component(n.name,n)})}}function _l(a,o){return(n,t={})=>{Object.keys(a).forEach(i=>{n.directive(a[i].name,a[i].directive(t[i]||{}))});const l={};Object.keys(o).forEach(i=>{l[i]=o[i](t[i]||{})}),s.isObject(t.globalsOption)&&Jo(t.globalsOption),n.provide("$ClGlobals",l)}}const Bl={lazyImage:Yp},wl={clipboard:zn,loadScreen:Xp,languagePack:Ja,validate:Ca},Qp=[St,at,le,Te,Ia,Aa,qn,Yn,$a,Va,ct,Ko,qo,Yo,Qo,Wo,Da,Ma,Jn,La,Fa,Xo,Go,Pn,Oa,Zo,pa,fa,ga,ha,ya,ln,ka,ba,Sa,rt,Ba,bt,wa,xa,Na,Ta,Ra,Pa,za,Ha,Hn];let jt=null;const Zp=(a={})=>{if(jt)return jt;const o=e.createApp(Qn,a),n=document.createElement("div"),t=o.mount(n);return jt={show:(l,i)=>{t.toast(l,i)},success:(l,i)=>{t.success(l,i)},fail:(l,i)=>{t.fail(l,i)},loading:(l,i)=>{t.loading(l,i)},close:l=>{t.close(l)}},jt},xl={...Bl},Nl={...wl,toast:Zp,notifyM:Zn},ef=_l(xl,Nl),tf=[Gn,Ya,Ct,We,Qn,qa,Ga,cl,ul,rl,ml,vl,dl,Ua,Za,el,nl,tl,Xn,fl,Xa,Sl,il,yl,kl,El,Ka,ol,al,sl,gl,Cl,bl,hl,ja,ll,Wa,pl,Qa],nf=[...Qp,...tf],of={...Bl,...xl},af={...wl,...Nl},lf=(a,o={})=>{Gp(nf)(a),_l(of,af)(a,o)};exports.Clipboard=zn;exports.CommonBase=s;exports.NotifyM=Zn;exports._sfc_main=Ua;exports._sfc_main$1=ja;exports._sfc_main$10=Yo;exports._sfc_main$11=Ya;exports._sfc_main$12=Xa;exports._sfc_main$13=Xo;exports._sfc_main$14=Go;exports._sfc_main$15=Hn;exports._sfc_main$16=Ga;exports._sfc_main$17=Qo;exports._sfc_main$18=Zo;exports._sfc_main$19=Qa;exports._sfc_main$2=Ka;exports._sfc_main$20=pa;exports._sfc_main$21=fa;exports._sfc_main$22=Za;exports._sfc_main$23=el;exports._sfc_main$24=ga;exports._sfc_main$25=ha;exports._sfc_main$26=tl;exports._sfc_main$27=nl;exports._sfc_main$28=ya;exports._sfc_main$29=ka;exports._sfc_main$3=Pn;exports._sfc_main$30=ln;exports._sfc_main$31=ba;exports._sfc_main$32=Sa;exports._sfc_main$33=ol;exports._sfc_main$34=le;exports._sfc_main$35=rt;exports._sfc_main$36=al;exports._sfc_main$37=at;exports._sfc_main$38=Ba;exports._sfc_main$39=bt;exports._sfc_main$4=Wa;exports._sfc_main$40=wa;exports._sfc_main$41=ll;exports._sfc_main$42=xa;exports._sfc_main$43=Na;exports._sfc_main$44=Ta;exports._sfc_main$45=Da;exports._sfc_main$46=Te;exports._sfc_main$47=Ia;exports._sfc_main$48=qn;exports._sfc_main$49=Yn;exports._sfc_main$5=Ko;exports._sfc_main$50=Aa;exports._sfc_main$51=Ma;exports._sfc_main$52=sl;exports._sfc_main$53=il;exports._sfc_main$54=Xn;exports._sfc_main$55=rl;exports._sfc_main$56=Oa;exports._sfc_main$57=St;exports._sfc_main$58=Ct;exports._sfc_main$59=cl;exports._sfc_main$6=ct;exports._sfc_main$60=ul;exports._sfc_main$61=dl;exports._sfc_main$62=We;exports._sfc_main$63=$a;exports._sfc_main$64=Gn;exports._sfc_main$65=La;exports._sfc_main$66=Fa;exports._sfc_main$67=ml;exports._sfc_main$68=pl;exports._sfc_main$69=fl;exports._sfc_main$7=qa;exports._sfc_main$70=gl;exports._sfc_main$71=hl;exports._sfc_main$72=vl;exports._sfc_main$73=Va;exports._sfc_main$74=yl;exports._sfc_main$75=kl;exports._sfc_main$76=Ra;exports._sfc_main$77=Cl;exports._sfc_main$78=bl;exports._sfc_main$79=Pa;exports._sfc_main$8=Wo;exports._sfc_main$80=Sl;exports._sfc_main$81=Qn;exports._sfc_main$82=Jn;exports._sfc_main$83=za;exports._sfc_main$84=Ha;exports._sfc_main$85=El;exports._sfc_main$9=qo;exports.getGlobalConfig=ot;exports.installCore=ef;exports.installs=lf;exports.languagePack=Ja;exports.setGlobalConfig=Jo;exports.useNotifyM=Kp;
|