@txgw/payout-components 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AMIS-DYmozKR5.js → AMIS--SZXSfKF.js} +6 -6
- package/dist/Action-D7O1nxY2.js +10 -0
- package/dist/{Action-CrKAZ8_I.js → Action-DpRShNiD.js} +21 -22
- package/dist/{Alert-DIMRz4Xr.js → Alert-sakO0sgo.js} +8 -10
- package/dist/{AnchorNav-BjZybEa5.js → AnchorNav-1OrNpCPU.js} +8 -10
- package/dist/App-mzRv6t1L.js +213 -0
- package/dist/{Audio-64UEsVR8.js → Audio-CmGRzA8C.js} +8 -10
- package/dist/{Avatar-CMUEC-R_.js → Avatar-C0g_Dcsr.js} +8 -10
- package/dist/{BarCode-DDTkorxt.js → BarCode-Bgr2-a69.js} +7 -7
- package/dist/{BarCode-DZj114yI.js → BarCode-f_fuunrs.js} +10 -10
- package/dist/{Breadcrumb-C5BIJjFC.js → Breadcrumb-3pb8787J.js} +8 -10
- package/dist/{ButtonGroup-BD8wGNkT.js → ButtonGroup-DBJgP_U6.js} +7 -7
- package/dist/{ButtonGroupSelect--dvESkJr.js → ButtonGroupSelect-BV8FHgm0.js} +9 -9
- package/dist/ButtonGroupSelect-Cl2irnYh.js +8 -0
- package/dist/{ButtonToolbar-DBJYr86R.js → ButtonToolbar-DMCBgh9w.js} +6 -6
- package/dist/{CRUD-DnHN8hUl.js → CRUD-DFP1DIcc.js} +44 -46
- package/dist/{CRUD2-DJBxUdjC.js → CRUD2-BGpsdJ3D.js} +21 -23
- package/dist/{Calendar-BE8QpoBz.js → Calendar-D_aFq70_.js} +9 -11
- package/dist/Card-C54K-VRd.js +14 -0
- package/dist/{Card-BIdx3eT8.js → Card-FmRg7dLO.js} +26 -26
- package/dist/{Card2-CcYYTp9c.js → Card2-Blr9gGoC.js} +8 -10
- package/dist/Cards-B7J3bYtx.js +485 -0
- package/dist/{Carousel-C5Qh-L5m.js → Carousel-Ba4JeK7n.js} +9 -11
- package/dist/{ChainedSelect-C6oYYrXI.js → ChainedSelect-CUU7qCFQ.js} +15 -17
- package/dist/{Chart-CxgX3Zwh.js → Chart-BmOD9NEG.js} +11 -11
- package/dist/{ChartRadios-DFgNc1q5.js → ChartRadios-Bm7pnICh.js} +7 -7
- package/dist/{Checkbox-CEcjhkM5.js → Checkbox-CcjG9Mv4.js} +5 -5
- package/dist/Checkbox-yvPZaH8N.js +10 -0
- package/dist/{Checkboxes-Co6s9klK.js → Checkboxes-Babxqar9.js} +13 -15
- package/dist/{Code-bzbcTvwL.js → Code-B7FhTic-.js} +10 -10
- package/dist/{Collapse-DYIoL02s.js → Collapse-BYdoEOZ2.js} +5 -5
- package/dist/Collapse-C9riUcKK.js +9 -0
- package/dist/{CollapseGroup-DxTpRyPO.js → CollapseGroup-B7DmpWY1.js} +8 -10
- package/dist/{Color-JOeUCTZN.js → Color-BM1Qa0C1.js} +6 -6
- package/dist/{ColorPicker-Dhvc2Zvv.js → ColorPicker-BXmi_OWm.js} +31 -539
- package/dist/{ColumnToggler-BmtD25vt.js → ColumnToggler-3QYyVjVf.js} +5 -5
- package/dist/ColumnToggler-D0NlxwMq.js +10 -0
- package/dist/{ColumnToggler-hLSeuf3L.js → ColumnToggler-DLFwzPef.js} +11 -12
- package/dist/{Combo-DHa4_Ez5.js → Combo-BsouWVHB.js} +37 -38
- package/dist/Combo-Cabifvbg.js +9 -0
- package/dist/{ConditionBuilder-B8igXo3q.js → ConditionBuilder-BacjsaTh.js} +8 -10
- package/dist/{Container-BIM9VYRe.js → Container-C5-66abH.js} +10 -12
- package/dist/{Control-DI_Tmnet.js → Control-krTArjIv.js} +6 -6
- package/dist/{Custom-CO5YTRFS.js → Custom-DawY4LgO.js} +6 -6
- package/dist/{Date-DAwlVzAq.js → Date-C9Kib09x.js} +8 -8
- package/dist/{DateRange-mOlWFnFT.js → DateRange-D2lKQT_J.js} +6 -6
- package/dist/Dialog-oNlQLXnk.js +508 -0
- package/dist/{DiffEditor-pcA725mp.js → DiffEditor-DY8XdtJS.js} +8 -10
- package/dist/{Divider-DWbV1pI1.js → Divider-BgpLhaqf.js} +6 -6
- package/dist/{Drawer-CJFyGwsm.js → Drawer-DslUxLot.js} +24 -26
- package/dist/{DropDownButton-DRqPRcTW.js → DropDownButton-BIuAagmC.js} +9 -11
- package/dist/{Each-C3Tpw3Ve.js → Each-CA8gaJkL.js} +6 -6
- package/dist/{FieldSet-BzJYnPVa.js → FieldSet-Cg1pE5gA.js} +4 -4
- package/dist/FieldSet-DVAa2H_Q.js +10 -0
- package/dist/{Flex-CwCnWtrH.js → Flex-Baz4bI9u.js} +6 -6
- package/dist/{Formula-DcI7sxGj.js → Formula-ABhgdx_Q.js} +6 -6
- package/dist/{Grid2D-D4V7Fwjq.js → Grid2D-DmdOVnhu.js} +8 -8
- package/dist/{GridNav-Dqmqc-dm.js → GridNav-lHAunT1M.js} +8 -10
- package/dist/{Group-DKpJF5bu.js → Group-7sGnjMli.js} +13 -13
- package/dist/HBox-DxchKWfv.js +7 -0
- package/dist/{HBox-BuU3dkir.js → HBox-s88aG83B.js} +4 -4
- package/dist/{Hidden-BAgQmpqx.js → Hidden-BrTWoL8d.js} +6 -6
- package/dist/{IFrame-Ck9HTyav.js → IFrame-DaZ1v2-9.js} +6 -6
- package/dist/{Icon-rz0Bkx0F.js → Icon-DNbdrsn8.js} +8 -10
- package/dist/{IconPicker-BlkS8BeK.js → IconPicker-DqNlu5Zd.js} +13 -15
- package/dist/{IconSelect-MQnqOKQL.js → IconSelect-CvBITEcy.js} +9 -11
- package/dist/{IconSelectStore-Ci4tfvJ1.js → IconSelectStore-CTqJPujB.js} +2 -2
- package/dist/{Image-FXxfPznI.js → Image-BBs8tnny.js} +11 -11
- package/dist/Image-DM9_Ii2b.js +9 -0
- package/dist/{Images-BgfGn12T.js → Images-cRmH380W.js} +9 -11
- package/dist/{InputArray-BI-sv9QR.js → InputArray-Dov-RBrP.js} +9 -11
- package/dist/{InputCity-B3NEPNBx.js → InputCity-owVpsIaD.js} +10 -12
- package/dist/{InputColor-CA8K3TKY.js → InputColor-DhVJhPp6.js} +8 -8
- package/dist/{InputDate-vJf1Yk1s.js → InputDate-DLOwHbwT.js} +9 -11
- package/dist/InputDate-DWaIvnAp.js +292 -0
- package/dist/InputDateRange-CnGNwIFe.js +10 -0
- package/dist/InputDateRange-Diqw3JLp.js +170 -0
- package/dist/InputExcel-BjWNYvnN.js +427 -0
- package/dist/{InputFile-COvM7Wga.js → InputFile-89BOwWJE.js} +31 -32
- package/dist/InputFile-DOym0HDc.js +10 -0
- package/dist/{InputFormula-DsH3AThJ.js → InputFormula-CV5j31Ow.js} +8 -10
- package/dist/{InputGroup-BjEkiPyF.js → InputGroup-C7O2ba0g.js} +6 -6
- package/dist/InputImage-BF7DAF8L.js +12 -0
- package/dist/{InputImage-CPzFzQcO.js → InputImage-DcsVQf7c.js} +16 -17
- package/dist/{InputMonthRange-f3qefwAi.js → InputMonthRange-BjD3hmwp.js} +10 -12
- package/dist/InputNumber-DKMOkba-.js +255 -0
- package/dist/{InputQuarterRange-BC25o84O.js → InputQuarterRange-DZKnkZ_s.js} +10 -12
- package/dist/{InputRange-DHuCYVxQ.js → InputRange-DiHKf3tP.js} +9 -11
- package/dist/{InputRating--OAvaGSl.js → InputRating-Bc8Od5b8.js} +9 -11
- package/dist/{InputRepeat-dbvG5ZwB.js → InputRepeat-BhF5KVB2.js} +8 -10
- package/dist/InputRichText-BBBdDFA2.js +7 -0
- package/dist/InputRichText-CieHn0fO.js +198 -0
- package/dist/{InputSignature-DM5lWnPx.js → InputSignature-CbfGjJlU.js} +8 -10
- package/dist/InputSubForm-BkM_3Rjg.js +236 -0
- package/dist/InputTable-CgOqC6Pc.js +900 -0
- package/dist/InputTag-35kCFM5X.js +464 -0
- package/dist/{InputText-DO10CW5J.js → InputText-BbEjGBtv.js} +59 -61
- package/dist/{InputTree-DnrDKOY9.js → InputTree-DchkyMbL.js} +42 -44
- package/dist/{InputVerificationCode-DZ_BHZPw.js → InputVerificationCode-kMxc8wW7.js} +8 -10
- package/dist/{InputYearRange-C1ldjdky.js → InputYearRange-WJKJeloR.js} +10 -12
- package/dist/{JSONSchema-DX_gEe5t.js → JSONSchema-Bs0EWcHb.js} +8 -10
- package/dist/{JSONSchemaEditor-aK-wLWlG.js → JSONSchemaEditor-BoAK9FOL.js} +8 -10
- package/dist/{Json-xLDTUaQP.js → Json-DFjy1HRw.js} +7 -7
- package/dist/Link-nYGLB6gy.js +57 -0
- package/dist/List-D3183f4Z.js +14 -0
- package/dist/{List-C52us0L0.js → List-W3IAZR_6.js} +20 -21
- package/dist/{ListSelect-B0ezEi4t.js → ListSelect-DWGbHVxd.js} +7 -7
- package/dist/{LocationPicker-BU3kayIO.js → LocationPicker-2G9yOxtm.js} +9 -11
- package/dist/{Log-CvRuXXPl.js → Log-D6VU702y.js} +11 -13
- package/dist/{Mapping-C0OE7PN8.js → Mapping-BATMD_xR.js} +12 -14
- package/dist/{Markdown-CCgCVphJ.js → Markdown-Baxbu8lV.js} +7 -7
- package/dist/{Markdown-B41x1dGI.js → Markdown-Cg-xahnQ.js} +2 -2
- package/dist/{MatrixCheckboxes-CGb7cpOw.js → MatrixCheckboxes-B9hmFakW.js} +12 -14
- package/dist/{MultilineText-CbWQB2Mm.js → MultilineText-0fMQhUCY.js} +8 -10
- package/dist/{Nav-DnW7dyl7.js → Nav-DHIehZOG.js} +35 -37
- package/dist/NestedSelect-tQztH4PI.js +517 -0
- package/dist/{Number-DWOTvv_N.js → Number-Cndoqeyx.js} +6 -6
- package/dist/{OfficeViewer-DlaVnLRX.js → OfficeViewer-BVD_e5eZ.js} +10 -12
- package/dist/{Operation-HTaf9by0.js → Operation-DIv6n9dT.js} +6 -6
- package/dist/{Page-Ck4L083j.js → Page-WoZtIIfk.js} +8 -10
- package/dist/{Pagination-5skyV8v4.js → Pagination-DHvYHd_3.js} +8 -10
- package/dist/{PaginationWrapper-DUifuI0M.js → PaginationWrapper-CtIJOXdw.js} +6 -6
- package/dist/{Panel-CkF8zAfa.js → Panel-Dt4KQrKa.js} +10 -12
- package/dist/{Password-rGKppSSA.js → Password-Wjfq7MSA.js} +8 -10
- package/dist/{Picker-BoqYYuQm.js → Picker-Cu52ukRg.js} +13 -15
- package/dist/{Plain-KahIJ6Qs.js → Plain-DIlG753a.js} +6 -6
- package/dist/{Spinner-CRN0l4lj.js → PopUp-Bgkvnd4X.js} +356 -44
- package/dist/{Portlet-CCvrg-JU.js → Portlet-3Nh2cWeq.js} +8 -10
- package/dist/{Progress-DEE8tZr-.js → Progress-Dh2FTsky.js} +8 -10
- package/dist/{Property-BHuVx9fL.js → Property-DRSklFlT.js} +6 -6
- package/dist/{QRCode-BJZwks8d.js → QRCode-BeUD-g8-.js} +10 -10
- package/dist/{Radio-Bvc-g9uo.js → Radio-DrJJfNFI.js} +9 -11
- package/dist/{Radios-2RgMkgPj.js → Radios-CL3mreXa.js} +31 -33
- package/dist/{Remark-DChbOlsj.js → Remark-Cmo-r6dp.js} +4 -5
- package/dist/Remark-DuAbEmCW.js +9 -0
- package/dist/{RichText-3py6VQgq.js → RichText-jkERm8rC.js} +3 -3
- package/dist/{SearchBox-Drspz4iQ.js → SearchBox-CTxSMcV2.js} +8 -10
- package/dist/{Select-Bg2XxDT_.js → Select-D3LTuHwe.js} +20 -22
- package/dist/Service-CN2v_Z9z.js +347 -0
- package/dist/{Shape-DxG0hVBx.js → Shape-Bi93tLCN.js} +8 -10
- package/dist/{Slider-Cy4wn29l.js → Slider-C0jqeBGt.js} +8 -10
- package/dist/{SparkLine-Pcnei0Jw.js → SparkLine-Ce6-mdqG.js} +8 -10
- package/dist/{Spinner-CTFIQQQv.js → Spinner-DZDEct1A.js} +8 -10
- package/dist/{StaticHoc-CTeUdZbZ.js → StaticHoc-BAdofX5w.js} +3 -3
- package/dist/Status-CDC2e2_o.js +93 -0
- package/dist/{Steps-Bqb5nshI.js → Steps-CGyTaaVI.js} +15 -17
- package/dist/{Switch-DN4iFYMH.js → Switch-QA0l7uEg.js} +9 -11
- package/dist/{SwitchContainer-DwZJ3rhC.js → SwitchContainer-zXvaPFlG.js} +6 -6
- package/dist/Table-B8tWpiPU.js +13 -0
- package/dist/{Table-gKX4LlXQ.js → Table-DzGbNFxu.js} +473 -474
- package/dist/Table2-CQZ3und9.js +1198 -0
- package/dist/{TableView-CqhOQ7qk.js → TableView-nlFBhvL1.js} +10 -10
- package/dist/{Tabs-BTNCr5wy.js → Tabs-XleB-2Mc.js} +41 -43
- package/dist/{TabsTransfer-BPcwo36i.js → TabsTransfer-CLLGXAkP.js} +24 -24
- package/dist/TabsTransfer-Cs_Rg0TU.js +11 -0
- package/dist/{TabsTransferPicker-BlE7X7rB.js → TabsTransferPicker-VA3Vlla-.js} +11 -13
- package/dist/{Tag-OOjypUV7.js → Tag-tr5RKBfl.js} +8 -10
- package/dist/{Tasks-CLoxpMeE.js → Tasks-C2-ayUd-.js} +17 -19
- package/dist/{Textarea-C5PsoOKh.js → Textarea-_KbIxQet.js} +9 -11
- package/dist/{Timeline-BQAHqrIa.js → Timeline-CctoJRQo.js} +8 -10
- package/dist/{TooltipWrapper-B30c6hNc.js → TooltipWrapper-BGNr8U2K.js} +8 -10
- package/dist/Tpl-C28lpITc.js +152 -0
- package/dist/Transfer-Hjc9zR8W.js +288 -0
- package/dist/Transfer-tYS9Rx8U.js +10 -0
- package/dist/{TransferPicker-DOssiBAl.js → TransferPicker-C7Wzyuct.js} +10 -12
- package/dist/{TreeSelect-wdKIhyKE.js → TreeSelect-DAlWCEqs.js} +21 -23
- package/dist/{UUID-DJ0W_r-8.js → UUID-B5UZnlxW.js} +6 -6
- package/dist/{UserSelect-BYkaqR0a.js → UserSelect-DqZZQB83.js} +20 -22
- package/dist/{VBox-BYiwi1ye.js → VBox-C1OZZT8-.js} +6 -6
- package/dist/{Video-pN3F0ocv.js → Video-C1FRwLLL.js} +136 -136
- package/dist/{WebComponent-D0O5jqWA.js → WebComponent-g8Zc9zXp.js} +6 -6
- package/dist/{Wizard-CmcYyHLa.js → Wizard-DkqCsGz-.js} +34 -36
- package/dist/{Words-JeAsdpai.js → Words-DUuKqyIf.js} +16 -18
- package/dist/{Wrapper-CgWIiCWM.js → Wrapper-DmZ78GYG.js} +6 -6
- package/dist/_getTag-CWmGzIun.js +509 -0
- package/dist/beneficiary-form-DCl2L16P.js +3773 -0
- package/dist/{client-EDjTjI3l.js → client-BEyTOBXT.js} +3 -3
- package/dist/crypto-js-DUFYRUag.js +3694 -0
- package/dist/{doc-CN4Z162V.js → doc-B-Im0Knb.js} +2 -2
- package/dist/{es-DFAidFNE.js → es-CsUppg1O.js} +3 -3
- package/dist/{esm-DAm67vL9.js → esm-Cj_BRpNI.js} +1246 -1190
- package/dist/{esm-D2d3zkde.js → esm-DEyK_c3W.js} +45 -35
- package/dist/{esm-D-dN_mFw.js → esm-SCCPj-cs.js} +3 -3
- package/dist/{function-Dbcnxw2H.js → function-CNJMA2ft.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -5
- package/dist/{isEqual-B1XgbWvm.js → isEqual-E2NjjS0_.js} +1 -1
- package/dist/{main-C92ocdJZ.js → main-Bf7MY24z.js} +2 -2
- package/dist/{mi18n-react.esm-DCefZ2Je.js → mi18n-react.esm-y-nzmW0A.js} +11 -3
- package/dist/{objectSpread2-CZI1MJk5.js → objectSpread2-smpSKONV.js} +2 -2
- package/dist/{omitBy-D95vUHNo.js → omitBy-CD5n2TA7.js} +3 -3
- package/dist/{papaparse.min-iA-vZzWO.js → papaparse.min-3xa9r8Qi.js} +1 -1
- package/dist/{react-D5VzucMe.js → react-RxxVsDMo.js} +1 -1
- package/dist/{react-cropper.es-BEX_PPM3.js → react-cropper.es-anJ2KE7h.js} +2 -2
- package/dist/{react-dom-BvyPBEWo.js → react-dom-D1mxcNoQ.js} +2 -2
- package/dist/react-g40aymqL.js +2 -0
- package/dist/xor-D-ggRBpm.js +20 -0
- package/package.json +15 -9
- package/dist/Action-CGqYi5GI.js +0 -12
- package/dist/App-B_Qb4ON4.js +0 -215
- package/dist/ButtonGroupSelect-CyZ_oUgl.js +0 -8
- package/dist/Card-y7WTSiZT.js +0 -16
- package/dist/Cards-Cq19cLq7.js +0 -487
- package/dist/Checkbox-D_prim2j.js +0 -12
- package/dist/CityDB-De7mzIWs.js +0 -3912
- package/dist/Collapse-CTuwHukl.js +0 -11
- package/dist/ColumnToggler-BOR-pCWp.js +0 -12
- package/dist/Combo-bPsBaKFK.js +0 -11
- package/dist/Dialog-BqS1G95L.js +0 -510
- package/dist/FieldSet-CVl7faI_.js +0 -12
- package/dist/HBox-DPttqQQZ.js +0 -7
- package/dist/Image-Bbfopooh.js +0 -11
- package/dist/Input-Bw7o6qMW.js +0 -52
- package/dist/InputDate-CY1_wYJU.js +0 -292
- package/dist/InputDateRange-ChTc0ax7.js +0 -12
- package/dist/InputDateRange-vNzkJ9Bd.js +0 -170
- package/dist/InputExcel-BYS8s8bp.js +0 -429
- package/dist/InputFile-BNQawQCZ.js +0 -12
- package/dist/InputImage-L9dQZ_7U.js +0 -14
- package/dist/InputNumber-ak-fc7y6.js +0 -257
- package/dist/InputRichText--4UGSYD1.js +0 -7
- package/dist/InputRichText-CFgwBE6E.js +0 -198
- package/dist/InputSubForm-DB004bDU.js +0 -238
- package/dist/InputTable-CkOgcH_R.js +0 -902
- package/dist/InputTag-CEN7_ErR.js +0 -466
- package/dist/Link-BUeGLktP.js +0 -59
- package/dist/List-l1ChaZK3.js +0 -16
- package/dist/NestedSelect-C-ekOlXv.js +0 -519
- package/dist/PdfViewer-BSKAHB-3.js +0 -12607
- package/dist/PdfViewer-D1e7l2HR.js +0 -175
- package/dist/PopUp-DiY3mHrF.js +0 -320
- package/dist/Remark-CU0rcNxv.js +0 -11
- package/dist/Service-WQBdLikc.js +0 -349
- package/dist/Status-CJe6XiVa.js +0 -95
- package/dist/Table-J5gl0p_m.js +0 -15
- package/dist/Table2-rQAEt-bu.js +0 -1200
- package/dist/TabsTransfer-BuEFk_uB.js +0 -13
- package/dist/Tinymce-CCtc_DGA.js +0 -63587
- package/dist/Tpl-BlWBhm_E.js +0 -154
- package/dist/Transfer-CKZg_yIM.js +0 -12
- package/dist/Transfer-CQHiisRw.js +0 -288
- package/dist/__vite-browser-external-gYOOXead.js +0 -5
- package/dist/abap-xAiJEr4f.js +0 -122
- package/dist/apex-DJkoKGwc.js +0 -170
- package/dist/azcli-lWmls20n.js +0 -53
- package/dist/bat-CfafEetg.js +0 -123
- package/dist/beneficiary-form-CwXw0_MQ.js +0 -2472
- package/dist/bicep-CSdK8osm.js +0 -221
- package/dist/bmap-DvtUW1DR.js +0 -163
- package/dist/cameligo-Bcx424cK.js +0 -189
- package/dist/clojure-CWQ3Tj4v.js +0 -146
- package/dist/codemirror-C4Zp7Ue8.js +0 -2
- package/dist/codemirror-CxDPKn9U.js +0 -5607
- package/dist/coffee-CwnrBDTl.js +0 -260
- package/dist/cpp-oSPG4NdP.js +0 -240
- package/dist/csharp-DLFXXb18.js +0 -260
- package/dist/csp-CVgQNTrT.js +0 -46
- package/dist/css-CIueyDK8.js +0 -284
- package/dist/cssMode-DsEar9Kr.js +0 -1388
- package/dist/dart-BUebbDjP.js +0 -236
- package/dist/dataTool-DrTAyVzx.js +0 -127
- package/dist/dockerfile-9po6dG-o.js +0 -191
- package/dist/echarts-BoOHozGo.js +0 -40645
- package/dist/echarts-UHRUTyW5.js +0 -2
- package/dist/echarts-stat-BpjkXSGP.js +0 -758
- package/dist/echarts-wordcloud-C4S7V63B.js +0 -41196
- package/dist/ecl-DN-08G6d.js +0 -226
- package/dist/editor.api-BLSqJfJw.js +0 -52799
- package/dist/editor.main-DxqD8h8J.js +0 -25006
- package/dist/elixir-Bg2tHOWB.js +0 -502
- package/dist/exceljs.min-rySyuern.js +0 -32053
- package/dist/flow9-BYOsrvw_.js +0 -176
- package/dist/fsharp-D9Jk9PLu.js +0 -147
- package/dist/go-bcCDHZbH.js +0 -165
- package/dist/graphql-KgUEKXmD.js +0 -174
- package/dist/handlebars-CxooQyUE.js +0 -411
- package/dist/hcl-D9qQyD3U.js +0 -219
- package/dist/hls-B3JojJIY.js +0 -11744
- package/dist/html-C8paOF_z.js +0 -324
- package/dist/htmlMode-DUY0WpaQ.js +0 -1315
- package/dist/htmlmixed-Bk3OXLUW.js +0 -752
- package/dist/ini-CbegPV4_.js +0 -94
- package/dist/java-CoYjXiV5.js +0 -173
- package/dist/javascript-B-nZu65x.js +0 -3
- package/dist/javascript-B5RUfpLH.js +0 -644
- package/dist/javascript-BvdTpH9T.js +0 -20
- package/dist/jsonMode-DqxQUT_D.js +0 -1732
- package/dist/jsx-runtime-dJt9Bcyk.js +0 -483
- package/dist/julia-BCeYG-2j.js +0 -414
- package/dist/kotlin-49dZ3L-s.js +0 -183
- package/dist/less-C9clSwPO.js +0 -242
- package/dist/lexon-Cl4wfGr8.js +0 -185
- package/dist/liquid-Cu4-0cTf.js +0 -198
- package/dist/lua-C3V1qqFY.js +0 -200
- package/dist/m3-CmTTf5vS.js +0 -193
- package/dist/markdown-CgpWVpim.js +0 -262
- package/dist/mips-B5PNcZQI.js +0 -128
- package/dist/monaco-editor-core-C-xWGlqO.js +0 -0
- package/dist/monaco-editor-core-CDGnFY-Z.js +0 -0
- package/dist/monaco-editor-core-CxtO33k4.js +0 -0
- package/dist/monaco-editor-core-D4M9OCQX.js +0 -0
- package/dist/monaco.contribution-CQAFVKc1.js +0 -143
- package/dist/mpegts-BTeZzpxt.js +0 -8265
- package/dist/msdax-r2XlPRD-.js +0 -156
- package/dist/multiplex-5e-K7CV8.js +0 -87
- package/dist/mysql-Dq2p_lON.js +0 -167
- package/dist/objective-c-CBsiYM21.js +0 -144
- package/dist/pascal-BItY5zcG.js +0 -176
- package/dist/pascaligo-BEd5W0lq.js +0 -201
- package/dist/perl-YEWwrGNS.js +0 -316
- package/dist/pgsql-STYROg6U.js +0 -158
- package/dist/php-BhjDhZhE.js +0 -471
- package/dist/pla-69YGUApl.js +0 -146
- package/dist/placeholder-TI6RfD7a.js +0 -51
- package/dist/postiats-BwnxJQ65.js +0 -504
- package/dist/powerquery-CJ5OzCtN.js +0 -190
- package/dist/powershell-5oAvsJme.js +0 -211
- package/dist/protobuf-BKmjRS2y.js +0 -655
- package/dist/pug-D47YI87f.js +0 -300
- package/dist/python-Ca_2hKUM.js +0 -193
- package/dist/qsharp-DOrqwgbJ.js +0 -126
- package/dist/r-Ck56_YSX.js +0 -189
- package/dist/razor-Dpnk-Jgk.js +0 -518
- package/dist/react-DkmrFaDK.js +0 -2
- package/dist/redis-B2RGbwSs.js +0 -123
- package/dist/redshift-BxXDe8JW.js +0 -158
- package/dist/restructuredtext-CQU17qB7.js +0 -287
- package/dist/ruby-6YAz4YLB.js +0 -527
- package/dist/rust-BPKfJCj4.js +0 -178
- package/dist/sb-Bko9Tf62.js +0 -143
- package/dist/scala-DbuznnfG.js +0 -551
- package/dist/scheme-DjjlYaIt.js +0 -170
- package/dist/scss-ftgS-EWv.js +0 -417
- package/dist/shell-BraQVhHz.js +0 -220
- package/dist/simple-BDjQu7h8.js +0 -159
- package/dist/solidity-BRiKyGMN.js +0 -147
- package/dist/sophia-C3j8BaDt.js +0 -147
- package/dist/sparql-BO51o50V.js +0 -124
- package/dist/sql-DjZmxCBT.js +0 -171
- package/dist/st-Diw_p9zN.js +0 -476
- package/dist/swift-BYb-V2At.js +0 -227
- package/dist/systemverilog-FC2a4obu.js +0 -298
- package/dist/tcl-BJ4C0lWN.js +0 -223
- package/dist/tsMode-DHU6w7dB.js +0 -988
- package/dist/twig-Cxoc9569.js +0 -388
- package/dist/typescript-BriYStQk.js +0 -4
- package/dist/typescript-DqVrT-wu.js +0 -255
- package/dist/vb-6JrnSfMV.js +0 -260
- package/dist/xlsx-CN8xddf7.js +0 -19361
- package/dist/xml-B6T0C-Yp.js +0 -129
- package/dist/xor-BVWGTNW4.js +0 -20
- package/dist/yaml-4nmc7DZo.js +0 -216
- /package/dist/{IconPickerIcons-DWxjoU6-.js → IconPickerIcons-dHFcDHrv.js} +0 -0
- /package/dist/{chunk-BztcrWZM.js → rolldown-runtime-DwW8Tac2.js} +0 -0
|
@@ -0,0 +1,3773 @@
|
|
|
1
|
+
import { s as __toESM, t as __commonJSMin } from "./rolldown-runtime-DwW8Tac2.js";
|
|
2
|
+
import { t as require_react } from "./react-RxxVsDMo.js";
|
|
3
|
+
import { n as useMi18n, r as useTranslate, t as Mi18nProvider } from "./mi18n-react.esm-y-nzmW0A.js";
|
|
4
|
+
import { a as __generator, c as __rest, i as __extends, n as __awaiter, o as __metadata, r as __decorate, s as __read, t as __assign, u as __spreadArray } from "./tslib.es6-DJiA3ePV.js";
|
|
5
|
+
import "./function-CNJMA2ft.js";
|
|
6
|
+
import { t as require_isEqual } from "./isEqual-E2NjjS0_.js";
|
|
7
|
+
import { A as registerCustomVendor, E as buildStyle, F as FormItem, J as CustomStyle, Ni as resolveVariableAndFilter, Nn as autobind, Q as themedLazyComponent, Qn as getLevelFromClassName, Xt as require_debounce, Z as setThemeClassName, Zr as isPureVariable, _ as register, at as addSchemaFilter, cr as guid$1, ct as registerRenderer, ht as resolveEventData, it as Renderer, jt as require_throttle, kt as require_pick, li as extendObject, ot as extendDefaultEnv, q as FormRenderer, r as addRootWrapper, t as render, tt as themeable, ui as isObject, vi as getVariable, yn as require_omit, yr as isObjectShallowModified, zr as ucFirst } from "./esm-DEyK_c3W.js";
|
|
8
|
+
import "./react-dom-D1mxcNoQ.js";
|
|
9
|
+
import { Lt as alert, Rt as confirm, at as toast, bt as MonacoEditor, d as ImageGallery$1, it as Toast, zt as setRenderSchemaFn } from "./esm-Cj_BRpNI.js";
|
|
10
|
+
import { i as Spinner$1 } from "./PopUp-Bgkvnd4X.js";
|
|
11
|
+
import { a as _baseMerge_default, c as isTypedArray_default, f as isArray_default, h as _isPrototype_default, l as isBuffer_default, n as _baseKeys_default, p as isArguments_default, r as _createAssigner_default, t as _getTag_default, u as isArrayLike_default } from "./_getTag-CWmGzIun.js";
|
|
12
|
+
import "./Action-DpRShNiD.js";
|
|
13
|
+
import "./Remark-Cmo-r6dp.js";
|
|
14
|
+
import "./StaticHoc-BAdofX5w.js";
|
|
15
|
+
import { n as ButtonGroupControlRenderer } from "./ButtonGroupSelect-BV8FHgm0.js";
|
|
16
|
+
import { a as HocCopyable, i as TableCell, o as HocPopOver, s as HocQuickEdit } from "./Table-DzGbNFxu.js";
|
|
17
|
+
import "./xor-D-ggRBpm.js";
|
|
18
|
+
import "./ColumnToggler-DLFwzPef.js";
|
|
19
|
+
import { n as CardRenderer } from "./Card-FmRg7dLO.js";
|
|
20
|
+
import "./Image-BBs8tnny.js";
|
|
21
|
+
import "./Collapse-BYdoEOZ2.js";
|
|
22
|
+
import { n as CheckboxControlRenderer } from "./Checkbox-CcjG9Mv4.js";
|
|
23
|
+
import { n as FieldSetRenderer } from "./FieldSet-Cg1pE5gA.js";
|
|
24
|
+
import "./IconSelectStore-CTqJPujB.js";
|
|
25
|
+
import "./es-CsUppg1O.js";
|
|
26
|
+
import { n as FileControlRenderer } from "./InputFile-89BOwWJE.js";
|
|
27
|
+
import { n as ImageControlRenderer } from "./InputImage-DcsVQf7c.js";
|
|
28
|
+
import { n as RichTextControlRenderer } from "./InputRichText-CieHn0fO.js";
|
|
29
|
+
import { n as HBoxRenderer } from "./HBox-s88aG83B.js";
|
|
30
|
+
import { i as ListItemRenderer } from "./List-W3IAZR_6.js";
|
|
31
|
+
import { t as require_crypto_js } from "./crypto-js-DUFYRUag.js";
|
|
32
|
+
var import_react = /* @__PURE__ */ __toESM(require_react()), createUpdateEffect = function(e) {
|
|
33
|
+
return function(t, n) {
|
|
34
|
+
var i = (0, import_react.useRef)(!1);
|
|
35
|
+
e(function() {
|
|
36
|
+
return function() {
|
|
37
|
+
i.current = !1;
|
|
38
|
+
};
|
|
39
|
+
}, []), e(function() {
|
|
40
|
+
if (!i.current) i.current = !0;
|
|
41
|
+
else return t();
|
|
42
|
+
}, n);
|
|
43
|
+
};
|
|
44
|
+
}, isFunction = function(e) {
|
|
45
|
+
return typeof e == "function";
|
|
46
|
+
}, isDev_default = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test", useMemoizedFn_default = function(e) {
|
|
47
|
+
isDev_default && (isFunction(e) || console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`));
|
|
48
|
+
var t = (0, import_react.useRef)(e);
|
|
49
|
+
t.current = (0, import_react.useMemo)(function() {
|
|
50
|
+
return e;
|
|
51
|
+
}, [e]);
|
|
52
|
+
var n = (0, import_react.useRef)(void 0);
|
|
53
|
+
return n.current ||= function() {
|
|
54
|
+
var e = [...arguments];
|
|
55
|
+
return t.current.apply(this, e);
|
|
56
|
+
}, n.current;
|
|
57
|
+
}, useUpdateEffect_default = createUpdateEffect(import_react.useEffect), useAutoRunPlugin = function(e, t) {
|
|
58
|
+
var n = t.manual, i = t.ready, a = i === void 0 ? !0 : i, o = t.defaultParams, s = o === void 0 ? [] : o, c = t.refreshDeps, l = c === void 0 ? [] : c, u = t.refreshDepsAction, d = (0, import_react.useRef)(!1);
|
|
59
|
+
return d.current = !1, useUpdateEffect_default(function() {
|
|
60
|
+
!n && a && (d.current = !0, e.run.apply(e, __spreadArray([], __read(s), !1)));
|
|
61
|
+
}, [a]), useUpdateEffect_default(function() {
|
|
62
|
+
d.current || n || (d.current = !0, u ? u() : e.refresh());
|
|
63
|
+
}, __spreadArray([], __read(l), !1)), { onBefore: function() {
|
|
64
|
+
if (!a) return { stopNow: !0 };
|
|
65
|
+
} };
|
|
66
|
+
};
|
|
67
|
+
useAutoRunPlugin.onInit = function(e) {
|
|
68
|
+
var t = e.ready, n = t === void 0 ? !0 : t;
|
|
69
|
+
return { loading: !e.manual && n };
|
|
70
|
+
};
|
|
71
|
+
var useAutoRunPlugin_default = useAutoRunPlugin;
|
|
72
|
+
function depsAreSame(e, t) {
|
|
73
|
+
if (e === t) return !0;
|
|
74
|
+
for (var n = 0; n < e.length; n++) if (!Object.is(e[n], t[n])) return !1;
|
|
75
|
+
return !0;
|
|
76
|
+
}
|
|
77
|
+
var depsAreSame_default = depsAreSame, useCreation_default = function(e, t) {
|
|
78
|
+
var n = (0, import_react.useRef)({
|
|
79
|
+
deps: t,
|
|
80
|
+
obj: void 0,
|
|
81
|
+
initialized: !1
|
|
82
|
+
}).current;
|
|
83
|
+
return (n.initialized === !1 || !depsAreSame_default(n.deps, t)) && (n.deps = t, n.obj = e(), n.initialized = !0), n.obj;
|
|
84
|
+
};
|
|
85
|
+
function useLatest(e) {
|
|
86
|
+
var t = (0, import_react.useRef)(e);
|
|
87
|
+
return t.current = e, t;
|
|
88
|
+
}
|
|
89
|
+
var useLatest_default = useLatest, useUnmount_default = function(e) {
|
|
90
|
+
isDev_default && (isFunction(e) || console.error(`useUnmount expected parameter is a function, got ${typeof e}`));
|
|
91
|
+
var t = useLatest_default(e);
|
|
92
|
+
(0, import_react.useEffect)(function() {
|
|
93
|
+
return function() {
|
|
94
|
+
t.current();
|
|
95
|
+
};
|
|
96
|
+
}, []);
|
|
97
|
+
}, cache = /* @__PURE__ */ new Map(), setCache = function(e, t, n) {
|
|
98
|
+
var i = cache.get(e);
|
|
99
|
+
i?.timer && clearTimeout(i.timer);
|
|
100
|
+
var a = void 0;
|
|
101
|
+
t > -1 && (a = setTimeout(function() {
|
|
102
|
+
cache.delete(e);
|
|
103
|
+
}, t)), cache.set(e, __assign(__assign({}, n), { timer: a }));
|
|
104
|
+
}, getCache = function(e) {
|
|
105
|
+
return cache.get(e);
|
|
106
|
+
}, cachePromise = /* @__PURE__ */ new Map(), getCachePromise = function(e) {
|
|
107
|
+
return cachePromise.get(e);
|
|
108
|
+
}, setCachePromise = function(e, t) {
|
|
109
|
+
cachePromise.set(e, t), t.then(function(t) {
|
|
110
|
+
return cachePromise.delete(e), t;
|
|
111
|
+
}).catch(function() {
|
|
112
|
+
cachePromise.delete(e);
|
|
113
|
+
});
|
|
114
|
+
}, listeners$2 = {}, trigger = function(e, t) {
|
|
115
|
+
listeners$2[e] && listeners$2[e].forEach(function(e) {
|
|
116
|
+
return e(t);
|
|
117
|
+
});
|
|
118
|
+
}, subscribe$2 = function(e, t) {
|
|
119
|
+
return listeners$2[e] || (listeners$2[e] = []), listeners$2[e].push(t), function() {
|
|
120
|
+
var n = listeners$2[e].indexOf(t);
|
|
121
|
+
listeners$2[e].splice(n, 1);
|
|
122
|
+
};
|
|
123
|
+
}, useCachePlugin_default = function(e, t) {
|
|
124
|
+
var n = t.cacheKey, i = t.cacheTime, a = i === void 0 ? 300 * 1e3 : i, o = t.staleTime, s = o === void 0 ? 0 : o, c = t.setCache, l = t.getCache, u = (0, import_react.useRef)(void 0), d = (0, import_react.useRef)(void 0), f = function(e, t) {
|
|
125
|
+
c ? c(t) : setCache(e, a, t), trigger(e, t.data);
|
|
126
|
+
}, m = function(e, t) {
|
|
127
|
+
return t === void 0 && (t = []), l ? l(t) : getCache(e);
|
|
128
|
+
};
|
|
129
|
+
return useCreation_default(function() {
|
|
130
|
+
if (n) {
|
|
131
|
+
var t = m(n);
|
|
132
|
+
t && Object.hasOwnProperty.call(t, "data") && (e.state.data = t.data, e.state.params = t.params, (s === -1 || Date.now() - t.time <= s) && (e.state.loading = !1)), u.current = subscribe$2(n, function(t) {
|
|
133
|
+
e.setState({ data: t });
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}, []), useUnmount_default(function() {
|
|
137
|
+
var e;
|
|
138
|
+
(e = u.current) == null || e.call(u);
|
|
139
|
+
}), n ? {
|
|
140
|
+
onBefore: function(e) {
|
|
141
|
+
var t = m(n, e);
|
|
142
|
+
return !t || !Object.hasOwnProperty.call(t, "data") ? {} : s === -1 || Date.now() - t.time <= s ? {
|
|
143
|
+
loading: !1,
|
|
144
|
+
data: t?.data,
|
|
145
|
+
error: void 0,
|
|
146
|
+
returnNow: !0
|
|
147
|
+
} : {
|
|
148
|
+
data: t?.data,
|
|
149
|
+
error: void 0
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
onRequest: function(e, t) {
|
|
153
|
+
var i = getCachePromise(n);
|
|
154
|
+
return i && i !== d.current ? { servicePromise: i } : (i = e.apply(void 0, __spreadArray([], __read(t), !1)), d.current = i, setCachePromise(n, i), { servicePromise: i });
|
|
155
|
+
},
|
|
156
|
+
onSuccess: function(t, i) {
|
|
157
|
+
var a;
|
|
158
|
+
n && ((a = u.current) == null || a.call(u), f(n, {
|
|
159
|
+
data: t,
|
|
160
|
+
params: i,
|
|
161
|
+
time: Date.now()
|
|
162
|
+
}), u.current = subscribe$2(n, function(t) {
|
|
163
|
+
e.setState({ data: t });
|
|
164
|
+
}));
|
|
165
|
+
},
|
|
166
|
+
onMutate: function(t) {
|
|
167
|
+
var i;
|
|
168
|
+
n && ((i = u.current) == null || i.call(u), f(n, {
|
|
169
|
+
data: t,
|
|
170
|
+
params: e.state.params,
|
|
171
|
+
time: Date.now()
|
|
172
|
+
}), u.current = subscribe$2(n, function(t) {
|
|
173
|
+
e.setState({ data: t });
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
} : {};
|
|
177
|
+
}, import_debounce = /* @__PURE__ */ __toESM(require_debounce()), useDebouncePlugin_default = function(e, t) {
|
|
178
|
+
var n = t.debounceWait, i = t.debounceLeading, a = t.debounceTrailing, o = t.debounceMaxWait, s = (0, import_react.useRef)(void 0), c = (0, import_react.useMemo)(function() {
|
|
179
|
+
var e = {};
|
|
180
|
+
return i !== void 0 && (e.leading = i), a !== void 0 && (e.trailing = a), o !== void 0 && (e.maxWait = o), e;
|
|
181
|
+
}, [
|
|
182
|
+
i,
|
|
183
|
+
a,
|
|
184
|
+
o
|
|
185
|
+
]);
|
|
186
|
+
return (0, import_react.useEffect)(function() {
|
|
187
|
+
if (n) {
|
|
188
|
+
var t = e.runAsync.bind(e);
|
|
189
|
+
return s.current = (0, import_debounce.default)(function(e) {
|
|
190
|
+
e();
|
|
191
|
+
}, n, c), e.runAsync = function() {
|
|
192
|
+
var e = [...arguments];
|
|
193
|
+
return new Promise(function(n, i) {
|
|
194
|
+
var a;
|
|
195
|
+
(a = s.current) == null || a.call(s, function() {
|
|
196
|
+
t.apply(void 0, __spreadArray([], __read(e), !1)).then(n).catch(i);
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
}, function() {
|
|
200
|
+
var n;
|
|
201
|
+
(n = s.current) == null || n.cancel(), e.runAsync = t;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}, [n, c]), n ? { onCancel: function() {
|
|
205
|
+
var e;
|
|
206
|
+
(e = s.current) == null || e.cancel();
|
|
207
|
+
} } : {};
|
|
208
|
+
}, useLoadingDelayPlugin_default = function(e, t) {
|
|
209
|
+
var n = t.loadingDelay, i = t.ready, a = (0, import_react.useRef)(void 0);
|
|
210
|
+
if (!n) return {};
|
|
211
|
+
var o = function() {
|
|
212
|
+
a.current && clearTimeout(a.current);
|
|
213
|
+
};
|
|
214
|
+
return {
|
|
215
|
+
onBefore: function() {
|
|
216
|
+
return o(), i !== !1 && (a.current = setTimeout(function() {
|
|
217
|
+
e.setState({ loading: !0 });
|
|
218
|
+
}, n)), { loading: !1 };
|
|
219
|
+
},
|
|
220
|
+
onFinally: function() {
|
|
221
|
+
o();
|
|
222
|
+
},
|
|
223
|
+
onCancel: function() {
|
|
224
|
+
o();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}, isBrowser_default = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
228
|
+
function isDocumentVisible() {
|
|
229
|
+
return isBrowser_default ? document.visibilityState !== "hidden" : !0;
|
|
230
|
+
}
|
|
231
|
+
var listeners$1 = /* @__PURE__ */ new Set();
|
|
232
|
+
function subscribe$1(e) {
|
|
233
|
+
return listeners$1.add(e), function() {
|
|
234
|
+
listeners$1.has(e) && listeners$1.delete(e);
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
isBrowser_default && window.addEventListener("visibilitychange", function() {
|
|
238
|
+
isDocumentVisible() && listeners$1.forEach(function(e) {
|
|
239
|
+
return e();
|
|
240
|
+
});
|
|
241
|
+
}, !1);
|
|
242
|
+
var subscribeReVisible_default = subscribe$1, usePollingPlugin_default = function(e, t) {
|
|
243
|
+
var n = t.pollingInterval, i = t.pollingWhenHidden, a = i === void 0 ? !0 : i, o = t.pollingErrorRetryCount, s = o === void 0 ? -1 : o, c = (0, import_react.useRef)(void 0), l = (0, import_react.useRef)(void 0), u = (0, import_react.useRef)(0), d = function() {
|
|
244
|
+
var e;
|
|
245
|
+
c.current && clearTimeout(c.current), (e = l.current) == null || e.call(l);
|
|
246
|
+
};
|
|
247
|
+
return useUpdateEffect_default(function() {
|
|
248
|
+
n || d();
|
|
249
|
+
}, [n]), n ? {
|
|
250
|
+
onBefore: function() {
|
|
251
|
+
d();
|
|
252
|
+
},
|
|
253
|
+
onError: function() {
|
|
254
|
+
u.current += 1;
|
|
255
|
+
},
|
|
256
|
+
onSuccess: function() {
|
|
257
|
+
u.current = 0;
|
|
258
|
+
},
|
|
259
|
+
onFinally: function() {
|
|
260
|
+
s === -1 || s !== -1 && u.current <= s ? c.current = setTimeout(function() {
|
|
261
|
+
!a && !isDocumentVisible() ? l.current = subscribeReVisible_default(function() {
|
|
262
|
+
e.refresh();
|
|
263
|
+
}) : e.refresh();
|
|
264
|
+
}, n) : u.current = 0;
|
|
265
|
+
},
|
|
266
|
+
onCancel: function() {
|
|
267
|
+
d();
|
|
268
|
+
}
|
|
269
|
+
} : {};
|
|
270
|
+
};
|
|
271
|
+
function limit(e, t) {
|
|
272
|
+
var n = !1;
|
|
273
|
+
return function() {
|
|
274
|
+
var i = [...arguments];
|
|
275
|
+
n || (n = !0, e.apply(void 0, __spreadArray([], __read(i), !1)), setTimeout(function() {
|
|
276
|
+
n = !1;
|
|
277
|
+
}, t));
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
var isOnline_default = function() {
|
|
281
|
+
return isBrowser_default && navigator.onLine !== void 0 ? navigator.onLine : !0;
|
|
282
|
+
}, listeners = /* @__PURE__ */ new Set();
|
|
283
|
+
function subscribe(e) {
|
|
284
|
+
return listeners.add(e), function() {
|
|
285
|
+
listeners.has(e) && listeners.delete(e);
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
if (isBrowser_default) {
|
|
289
|
+
var revalidate = function() {
|
|
290
|
+
!isDocumentVisible() || !isOnline_default() || listeners.forEach(function(e) {
|
|
291
|
+
return e();
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
window.addEventListener("visibilitychange", revalidate, !1), window.addEventListener("focus", revalidate, !1);
|
|
295
|
+
}
|
|
296
|
+
var subscribeFocus_default = subscribe, useRefreshOnWindowFocusPlugin_default = function(e, t) {
|
|
297
|
+
var n = t.refreshOnWindowFocus, i = t.focusTimespan, a = i === void 0 ? 5e3 : i, o = (0, import_react.useRef)(void 0), s = function() {
|
|
298
|
+
var e;
|
|
299
|
+
(e = o.current) == null || e.call(o);
|
|
300
|
+
};
|
|
301
|
+
return (0, import_react.useEffect)(function() {
|
|
302
|
+
if (n) {
|
|
303
|
+
var t = limit(e.refresh.bind(e), a);
|
|
304
|
+
o.current = subscribeFocus_default(function() {
|
|
305
|
+
t();
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
return function() {
|
|
309
|
+
s();
|
|
310
|
+
};
|
|
311
|
+
}, [n, a]), useUnmount_default(function() {
|
|
312
|
+
s();
|
|
313
|
+
}), {};
|
|
314
|
+
}, useRetryPlugin_default = function(e, t) {
|
|
315
|
+
var n = t.retryInterval, i = t.retryCount, a = (0, import_react.useRef)(void 0), o = (0, import_react.useRef)(0), s = (0, import_react.useRef)(!1);
|
|
316
|
+
return i ? {
|
|
317
|
+
onBefore: function() {
|
|
318
|
+
s.current || (o.current = 0), s.current = !1, a.current && clearTimeout(a.current);
|
|
319
|
+
},
|
|
320
|
+
onSuccess: function() {
|
|
321
|
+
o.current = 0;
|
|
322
|
+
},
|
|
323
|
+
onError: function() {
|
|
324
|
+
if (o.current += 1, i === -1 || o.current <= i) {
|
|
325
|
+
var t = n ?? Math.min(1e3 * 2 ** o.current, 3e4);
|
|
326
|
+
a.current = setTimeout(function() {
|
|
327
|
+
s.current = !0, e.refresh();
|
|
328
|
+
}, t);
|
|
329
|
+
} else o.current = 0;
|
|
330
|
+
},
|
|
331
|
+
onCancel: function() {
|
|
332
|
+
o.current = 0, a.current && clearTimeout(a.current);
|
|
333
|
+
}
|
|
334
|
+
} : {};
|
|
335
|
+
}, import_throttle = /* @__PURE__ */ __toESM(require_throttle()), useThrottlePlugin_default = function(e, t) {
|
|
336
|
+
var n = t.throttleWait, i = t.throttleLeading, a = t.throttleTrailing, o = (0, import_react.useRef)(void 0), s = {};
|
|
337
|
+
return i !== void 0 && (s.leading = i), a !== void 0 && (s.trailing = a), (0, import_react.useEffect)(function() {
|
|
338
|
+
if (n) {
|
|
339
|
+
var t = e.runAsync.bind(e);
|
|
340
|
+
return o.current = (0, import_throttle.default)(function(e) {
|
|
341
|
+
e();
|
|
342
|
+
}, n, s), e.runAsync = function() {
|
|
343
|
+
var e = [...arguments];
|
|
344
|
+
return new Promise(function(n, i) {
|
|
345
|
+
var a;
|
|
346
|
+
(a = o.current) == null || a.call(o, function() {
|
|
347
|
+
t.apply(void 0, __spreadArray([], __read(e), !1)).then(n).catch(i);
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
}, function() {
|
|
351
|
+
var n;
|
|
352
|
+
e.runAsync = t, (n = o.current) == null || n.cancel();
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
}, [
|
|
356
|
+
n,
|
|
357
|
+
i,
|
|
358
|
+
a
|
|
359
|
+
]), n ? { onCancel: function() {
|
|
360
|
+
var e;
|
|
361
|
+
(e = o.current) == null || e.cancel();
|
|
362
|
+
} } : {};
|
|
363
|
+
}, useMount_default = function(e) {
|
|
364
|
+
isDev_default && (isFunction(e) || console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof e}".`)), (0, import_react.useEffect)(function() {
|
|
365
|
+
var t = e?.();
|
|
366
|
+
if (!(t && typeof t == "object" && typeof t.then == "function")) return t;
|
|
367
|
+
}, []);
|
|
368
|
+
}, useUpdate_default = function() {
|
|
369
|
+
var e = __read((0, import_react.useState)({}), 2)[1];
|
|
370
|
+
return (0, import_react.useCallback)(function() {
|
|
371
|
+
return e({});
|
|
372
|
+
}, []);
|
|
373
|
+
}, Fetch_default = function() {
|
|
374
|
+
function e(e, t, n, i) {
|
|
375
|
+
i === void 0 && (i = {}), this.serviceRef = e, this.options = t, this.subscribe = n, this.initState = i, this.pluginImpls = [], this.count = 0, this.state = {
|
|
376
|
+
loading: !1,
|
|
377
|
+
params: void 0,
|
|
378
|
+
data: void 0,
|
|
379
|
+
error: void 0
|
|
380
|
+
}, this.state = __assign(__assign(__assign({}, this.state), { loading: !t.manual }), i);
|
|
381
|
+
}
|
|
382
|
+
return e.prototype.setState = function(e) {
|
|
383
|
+
e === void 0 && (e = {}), this.state = __assign(__assign({}, this.state), e), this.subscribe();
|
|
384
|
+
}, e.prototype.runPluginHandler = function(e) {
|
|
385
|
+
var t = [...arguments].slice(1), n = this.pluginImpls.map(function(n) {
|
|
386
|
+
var i;
|
|
387
|
+
return (i = n[e])?.call.apply(i, __spreadArray([n], __read(t), !1));
|
|
388
|
+
}).filter(Boolean);
|
|
389
|
+
return Object.assign.apply(Object, __spreadArray([{}], __read(n), !1));
|
|
390
|
+
}, e.prototype.runAsync = function() {
|
|
391
|
+
var e = [...arguments];
|
|
392
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
393
|
+
var t, n, i, a, o, l, u, d, f, g, _, v, y, b, x, S, C, w, T, E, D;
|
|
394
|
+
return __generator(this, function(s) {
|
|
395
|
+
switch (s.label) {
|
|
396
|
+
case 0:
|
|
397
|
+
if (this.count += 1, t = this.count, n = this.runPluginHandler("onBefore", e), i = n.stopNow, a = i === void 0 ? !1 : i, o = n.returnNow, l = o === void 0 ? !1 : o, u = __rest(n, ["stopNow", "returnNow"]), a) return [2, new Promise(function() {})];
|
|
398
|
+
if (this.setState(__assign({
|
|
399
|
+
loading: !0,
|
|
400
|
+
params: e
|
|
401
|
+
}, u)), l) return [2, Promise.resolve(u.data)];
|
|
402
|
+
(y = (v = this.options).onBefore) == null || y.call(v, e), s.label = 1;
|
|
403
|
+
case 1: return s.trys.push([
|
|
404
|
+
1,
|
|
405
|
+
3,
|
|
406
|
+
,
|
|
407
|
+
4
|
|
408
|
+
]), d = this.runPluginHandler("onRequest", this.serviceRef.current, e).servicePromise, d ||= (_ = this.serviceRef).current.apply(_, __spreadArray([], __read(e), !1)), [4, d];
|
|
409
|
+
case 2: return f = s.sent(), t === this.count ? (this.setState({
|
|
410
|
+
data: f,
|
|
411
|
+
error: void 0,
|
|
412
|
+
loading: !1
|
|
413
|
+
}), (x = (b = this.options).onSuccess) == null || x.call(b, f, e), this.runPluginHandler("onSuccess", f, e), (C = (S = this.options).onFinally) == null || C.call(S, e, f, void 0), t === this.count && this.runPluginHandler("onFinally", e, f, void 0), [2, f]) : [2, new Promise(function() {})];
|
|
414
|
+
case 3:
|
|
415
|
+
if (g = s.sent(), t !== this.count) return [2, new Promise(function() {})];
|
|
416
|
+
throw this.setState({
|
|
417
|
+
error: g,
|
|
418
|
+
loading: !1
|
|
419
|
+
}), (T = (w = this.options).onError) == null || T.call(w, g, e), this.runPluginHandler("onError", g, e), (D = (E = this.options).onFinally) == null || D.call(E, e, void 0, g), t === this.count && this.runPluginHandler("onFinally", e, void 0, g), g;
|
|
420
|
+
case 4: return [2];
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
}, e.prototype.run = function() {
|
|
425
|
+
for (var e = this, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
|
|
426
|
+
this.runAsync.apply(this, __spreadArray([], __read(t), !1)).catch(function(t) {
|
|
427
|
+
e.options.onError || console.error(t);
|
|
428
|
+
});
|
|
429
|
+
}, e.prototype.cancel = function() {
|
|
430
|
+
this.count += 1, this.setState({ loading: !1 }), this.runPluginHandler("onCancel");
|
|
431
|
+
}, e.prototype.refresh = function() {
|
|
432
|
+
this.run.apply(this, __spreadArray([], __read(this.state.params || []), !1));
|
|
433
|
+
}, e.prototype.refreshAsync = function() {
|
|
434
|
+
return this.runAsync.apply(this, __spreadArray([], __read(this.state.params || []), !1));
|
|
435
|
+
}, e.prototype.mutate = function(e) {
|
|
436
|
+
var t = isFunction(e) ? e(this.state.data) : e;
|
|
437
|
+
this.runPluginHandler("onMutate", t), this.setState({ data: t });
|
|
438
|
+
}, e;
|
|
439
|
+
}();
|
|
440
|
+
function useRequestImplement(e, t, n) {
|
|
441
|
+
t === void 0 && (t = {}), n === void 0 && (n = []);
|
|
442
|
+
var i = t.manual, a = i === void 0 ? !1 : i, o = t.ready, s = o === void 0 ? !0 : o, l = __rest(t, ["manual", "ready"]);
|
|
443
|
+
isDev_default && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn(`expected defaultParams is array, got ${typeof t.defaultParams}`);
|
|
444
|
+
var u = __assign({
|
|
445
|
+
manual: a,
|
|
446
|
+
ready: s
|
|
447
|
+
}, l), d = useLatest_default(e), f = useUpdate_default(), g = useCreation_default(function() {
|
|
448
|
+
var e = n.map(function(e) {
|
|
449
|
+
return (e?.onInit)?.call(e, u);
|
|
450
|
+
}).filter(Boolean);
|
|
451
|
+
return new Fetch_default(d, u, f, Object.assign.apply(Object, __spreadArray([{}], __read(e), !1)));
|
|
452
|
+
}, []);
|
|
453
|
+
return g.options = u, g.pluginImpls = n.map(function(e) {
|
|
454
|
+
return e(g, u);
|
|
455
|
+
}), useMount_default(function() {
|
|
456
|
+
if (!a && s) {
|
|
457
|
+
var e = g.state.params || t.defaultParams || [];
|
|
458
|
+
g.run.apply(g, __spreadArray([], __read(e), !1));
|
|
459
|
+
}
|
|
460
|
+
}), useUnmount_default(function() {
|
|
461
|
+
g.cancel();
|
|
462
|
+
}), {
|
|
463
|
+
loading: g.state.loading,
|
|
464
|
+
data: g.state.data,
|
|
465
|
+
error: g.state.error,
|
|
466
|
+
params: g.state.params || [],
|
|
467
|
+
cancel: useMemoizedFn_default(g.cancel.bind(g)),
|
|
468
|
+
refresh: useMemoizedFn_default(g.refresh.bind(g)),
|
|
469
|
+
refreshAsync: useMemoizedFn_default(g.refreshAsync.bind(g)),
|
|
470
|
+
run: useMemoizedFn_default(g.run.bind(g)),
|
|
471
|
+
runAsync: useMemoizedFn_default(g.runAsync.bind(g)),
|
|
472
|
+
mutate: useMemoizedFn_default(g.mutate.bind(g))
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
var useRequestImplement_default = useRequestImplement;
|
|
476
|
+
function useRequest(e, t, n) {
|
|
477
|
+
return useRequestImplement_default(e, t, __spreadArray(__spreadArray([], __read(n || []), !1), [
|
|
478
|
+
useDebouncePlugin_default,
|
|
479
|
+
useLoadingDelayPlugin_default,
|
|
480
|
+
usePollingPlugin_default,
|
|
481
|
+
useRefreshOnWindowFocusPlugin_default,
|
|
482
|
+
useThrottlePlugin_default,
|
|
483
|
+
useAutoRunPlugin_default,
|
|
484
|
+
useCachePlugin_default,
|
|
485
|
+
useRetryPlugin_default
|
|
486
|
+
], !1));
|
|
487
|
+
}
|
|
488
|
+
var useRequest_default = useRequest, import_react_fast_compare = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
489
|
+
var n = typeof Element < "u", i = typeof Map == "function", a = typeof Set == "function", o = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
490
|
+
function s(e, t) {
|
|
491
|
+
if (e === t) return !0;
|
|
492
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
493
|
+
if (e.constructor !== t.constructor) return !1;
|
|
494
|
+
var c, l, u;
|
|
495
|
+
if (Array.isArray(e)) {
|
|
496
|
+
if (c = e.length, c != t.length) return !1;
|
|
497
|
+
for (l = c; l-- !== 0;) if (!s(e[l], t[l])) return !1;
|
|
498
|
+
return !0;
|
|
499
|
+
}
|
|
500
|
+
var d;
|
|
501
|
+
if (i && e instanceof Map && t instanceof Map) {
|
|
502
|
+
if (e.size !== t.size) return !1;
|
|
503
|
+
for (d = e.entries(); !(l = d.next()).done;) if (!t.has(l.value[0])) return !1;
|
|
504
|
+
for (d = e.entries(); !(l = d.next()).done;) if (!s(l.value[1], t.get(l.value[0]))) return !1;
|
|
505
|
+
return !0;
|
|
506
|
+
}
|
|
507
|
+
if (a && e instanceof Set && t instanceof Set) {
|
|
508
|
+
if (e.size !== t.size) return !1;
|
|
509
|
+
for (d = e.entries(); !(l = d.next()).done;) if (!t.has(l.value[0])) return !1;
|
|
510
|
+
return !0;
|
|
511
|
+
}
|
|
512
|
+
if (o && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
513
|
+
if (c = e.length, c != t.length) return !1;
|
|
514
|
+
for (l = c; l-- !== 0;) if (e[l] !== t[l]) return !1;
|
|
515
|
+
return !0;
|
|
516
|
+
}
|
|
517
|
+
if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
|
|
518
|
+
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
|
|
519
|
+
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
|
|
520
|
+
if (u = Object.keys(e), c = u.length, c !== Object.keys(t).length) return !1;
|
|
521
|
+
for (l = c; l-- !== 0;) if (!Object.prototype.hasOwnProperty.call(t, u[l])) return !1;
|
|
522
|
+
if (n && e instanceof Element) return !1;
|
|
523
|
+
for (l = c; l-- !== 0;) if (!((u[l] === "_owner" || u[l] === "__v" || u[l] === "__o") && e.$$typeof) && !s(e[u[l]], t[u[l]])) return !1;
|
|
524
|
+
return !0;
|
|
525
|
+
}
|
|
526
|
+
return e !== e && t !== t;
|
|
527
|
+
}
|
|
528
|
+
t.exports = function(e, t) {
|
|
529
|
+
try {
|
|
530
|
+
return s(e, t);
|
|
531
|
+
} catch (e) {
|
|
532
|
+
if ((e.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
533
|
+
throw e;
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
})))()), depsEqual = function(e, t) {
|
|
537
|
+
return e === void 0 && (e = []), t === void 0 && (t = []), (0, import_react_fast_compare.default)(e, t);
|
|
538
|
+
}, useDeepCompareEffect_default = function(e) {
|
|
539
|
+
return function(t, n) {
|
|
540
|
+
var i = (0, import_react.useRef)(void 0), a = (0, import_react.useRef)(0);
|
|
541
|
+
(n === void 0 || !depsEqual(n, i.current)) && (a.current += 1), i.current = n, e(t, [a.current]);
|
|
542
|
+
};
|
|
543
|
+
}(import_react.useEffect);
|
|
544
|
+
extendDefaultEnv({
|
|
545
|
+
alert,
|
|
546
|
+
confirm,
|
|
547
|
+
notify: function(e, t, n) {
|
|
548
|
+
return toast[e] ? toast[e](t, n) : console.warn("[Notify]", e, t);
|
|
549
|
+
}
|
|
550
|
+
}), setRenderSchemaFn(function(e, t, n, i, a) {
|
|
551
|
+
return render({
|
|
552
|
+
name: "form",
|
|
553
|
+
type: "form",
|
|
554
|
+
wrapWithPanel: !1,
|
|
555
|
+
mode: "horizontal",
|
|
556
|
+
controls: e,
|
|
557
|
+
messages: { validateFailed: "" }
|
|
558
|
+
}, {
|
|
559
|
+
data: t,
|
|
560
|
+
onFinished: n,
|
|
561
|
+
scopeRef: i,
|
|
562
|
+
theme: a
|
|
563
|
+
}, { session: "prompt" });
|
|
564
|
+
}), addRootWrapper(function(e) {
|
|
565
|
+
var t = e.env, n = e.children;
|
|
566
|
+
return import_react.createElement(ImageGallery$1, { modalContainer: t.getModalContainer }, n);
|
|
567
|
+
});
|
|
568
|
+
var SimpleSpinner = themeable(function(e) {
|
|
569
|
+
var t = e.classnames;
|
|
570
|
+
return import_react.createElement("div", {
|
|
571
|
+
"data-testid": "spinner",
|
|
572
|
+
className: t("Spinner", "in", e.className)
|
|
573
|
+
}, import_react.createElement("div", { className: t("Spinner-icon", "Spinner-icon--default", "Spinner-icon--sm", e.spinnerClassName) }));
|
|
574
|
+
});
|
|
575
|
+
themedLazyComponent.defaultProps.placeholder = import_react.createElement(SimpleSpinner, null);
|
|
576
|
+
var import_omit = /* @__PURE__ */ __toESM(require_omit());
|
|
577
|
+
(function(e) {
|
|
578
|
+
__extends(t, e);
|
|
579
|
+
function t() {
|
|
580
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
581
|
+
}
|
|
582
|
+
return t = __decorate([FormItem({
|
|
583
|
+
test: /(^|\/)static(\-[^\/]+)?$/,
|
|
584
|
+
weight: -90,
|
|
585
|
+
strictMode: !1,
|
|
586
|
+
sizeMutable: !1,
|
|
587
|
+
name: "static"
|
|
588
|
+
})], t), t;
|
|
589
|
+
})(function(e) {
|
|
590
|
+
__extends(t, e);
|
|
591
|
+
function t(t) {
|
|
592
|
+
var n = e.call(this, t) || this;
|
|
593
|
+
return n.handleQuickChange = n.handleQuickChange.bind(n), n;
|
|
594
|
+
}
|
|
595
|
+
return t.prototype.handleQuickChange = function(e, t, n, i) {
|
|
596
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
597
|
+
var n, a, o, c;
|
|
598
|
+
return __generator(this, function(s) {
|
|
599
|
+
switch (s.label) {
|
|
600
|
+
case 0: return n = this.props, a = n.onBulkChange, o = n.onAction, c = n.data, t && t.api ? [4, o(null, {
|
|
601
|
+
actionType: "ajax",
|
|
602
|
+
api: t.api,
|
|
603
|
+
reload: i?.reload
|
|
604
|
+
}, extendObject(c, e), !0)] : [3, 2];
|
|
605
|
+
case 1: s.sent(), s.label = 2;
|
|
606
|
+
case 2: return a && a(e, t === !0), [2];
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
});
|
|
610
|
+
}, t.prototype.render = function() {
|
|
611
|
+
var e, t = this.props, n = t.className;
|
|
612
|
+
t.style;
|
|
613
|
+
var i = t.value, a = t.label, o = t.type, s = t.render;
|
|
614
|
+
t.children;
|
|
615
|
+
var l = t.data, u = t.classnames, d = t.name, f = t.disabled, p = t.$schema, h = t.defaultValue, g = t.borderMode, _ = __rest(t, [
|
|
616
|
+
"className",
|
|
617
|
+
"style",
|
|
618
|
+
"value",
|
|
619
|
+
"label",
|
|
620
|
+
"type",
|
|
621
|
+
"render",
|
|
622
|
+
"children",
|
|
623
|
+
"data",
|
|
624
|
+
"classnames",
|
|
625
|
+
"name",
|
|
626
|
+
"disabled",
|
|
627
|
+
"$schema",
|
|
628
|
+
"defaultValue",
|
|
629
|
+
"borderMode"
|
|
630
|
+
]), v = /^static/.test(o) ? o.substring(7) || (_.tpl ? "tpl" : "plain") : o, y = __assign(__assign({
|
|
631
|
+
label: a,
|
|
632
|
+
name: d
|
|
633
|
+
}, p), {
|
|
634
|
+
style: p.innerStyle,
|
|
635
|
+
type: v
|
|
636
|
+
});
|
|
637
|
+
return import_react.createElement("div", { className: u("Form-static", (e = {}, e[`Form-static--border${ucFirst(g)}`] = g, e)) }, import_react.createElement(StaticFieldRenderer, __assign({}, __assign(__assign({}, _), {
|
|
638
|
+
name: d,
|
|
639
|
+
render: s,
|
|
640
|
+
field: y,
|
|
641
|
+
value: i === h ? void 0 : i,
|
|
642
|
+
className: n,
|
|
643
|
+
onQuickChange: this.handleQuickChange,
|
|
644
|
+
data: l,
|
|
645
|
+
disabled: f,
|
|
646
|
+
classnames: u
|
|
647
|
+
}))));
|
|
648
|
+
}, t.defaultProps = { placeholder: "-" }, t;
|
|
649
|
+
}(import_react.Component));
|
|
650
|
+
var StaticFieldRenderer = function(e) {
|
|
651
|
+
__extends(t, e);
|
|
652
|
+
function t() {
|
|
653
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
654
|
+
}
|
|
655
|
+
return t.prototype.render = function() {
|
|
656
|
+
var e = this.props;
|
|
657
|
+
e.type;
|
|
658
|
+
var t = e.className, n = e.render, i = e.style, a = e.wrapperComponent, o = e.contentsOnly;
|
|
659
|
+
e.labelClassName;
|
|
660
|
+
var s = e.value, l = e.data, u = e.children, d = e.width, f = e.inputClassName;
|
|
661
|
+
e.label;
|
|
662
|
+
var p = e.tabIndex, h = e.onKeyUp, g = e.field, _ = __rest(e, [
|
|
663
|
+
"type",
|
|
664
|
+
"className",
|
|
665
|
+
"render",
|
|
666
|
+
"style",
|
|
667
|
+
"wrapperComponent",
|
|
668
|
+
"contentsOnly",
|
|
669
|
+
"labelClassName",
|
|
670
|
+
"value",
|
|
671
|
+
"data",
|
|
672
|
+
"children",
|
|
673
|
+
"width",
|
|
674
|
+
"inputClassName",
|
|
675
|
+
"label",
|
|
676
|
+
"tabIndex",
|
|
677
|
+
"onKeyUp",
|
|
678
|
+
"field"
|
|
679
|
+
]), v = __assign(__assign({}, g), {
|
|
680
|
+
className: f,
|
|
681
|
+
type: g && g.type || "plain"
|
|
682
|
+
}), y = u || n("field", v, __assign(__assign({}, (0, import_omit.default)(_, Object.keys(v))), {
|
|
683
|
+
value: s,
|
|
684
|
+
data: l
|
|
685
|
+
}));
|
|
686
|
+
return d && (i ||= {}, i.width = i.width || d), o ? y : (a ||= "div", import_react.createElement(a, {
|
|
687
|
+
className: t,
|
|
688
|
+
tabIndex: p,
|
|
689
|
+
onKeyUp: h
|
|
690
|
+
}, y));
|
|
691
|
+
}, t.defaultProps = __assign(__assign({}, TableCell.defaultProps), { wrapperComponent: "div" }), t = __decorate([
|
|
692
|
+
HocQuickEdit(),
|
|
693
|
+
HocPopOver({ position: "right" }),
|
|
694
|
+
HocCopyable()
|
|
695
|
+
], t), t;
|
|
696
|
+
}(TableCell), EditorControl = function(e) {
|
|
697
|
+
__extends(t, e);
|
|
698
|
+
function t(t) {
|
|
699
|
+
var n = e.call(this, t) || this;
|
|
700
|
+
return n.state = { focused: !1 }, n.toDispose = [], n.divRef = import_react.createRef(), n.prevHeight = 0, n.handleFocus = n.handleFocus.bind(n), n.handleBlur = n.handleBlur.bind(n), n.handleChange = n.handleChange.bind(n), n.handleEditorMounted = n.handleEditorMounted.bind(n), n;
|
|
701
|
+
}
|
|
702
|
+
return t.prototype.componentWillUnmount = function() {
|
|
703
|
+
this.toDispose.forEach(function(e) {
|
|
704
|
+
return e();
|
|
705
|
+
});
|
|
706
|
+
}, t.prototype.doAction = function(e, t, n, i) {
|
|
707
|
+
n === void 0 && (n = !1);
|
|
708
|
+
var a = e?.actionType, o = this.props, s = o.onChange, c = o.resetValue, l = o.formStore, u = o.store, d = o.name;
|
|
709
|
+
a === "clear" ? s("") : a === "reset" ? s(getVariable(l?.pristine ?? u?.pristine, d) ?? c ?? "") : a === "focus" && this.focus();
|
|
710
|
+
}, t.prototype.focus = function() {
|
|
711
|
+
var e;
|
|
712
|
+
this.editor.focus(), this.setState({ focused: !0 });
|
|
713
|
+
var t = this.editor?.getPosition();
|
|
714
|
+
(e = this.editor) == null || e.setPosition(t);
|
|
715
|
+
}, t.prototype.handleFocus = function(e) {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
717
|
+
var t, n, i, a, o;
|
|
718
|
+
return __generator(this, function(s) {
|
|
719
|
+
switch (s.label) {
|
|
720
|
+
case 0: return t = this.props, n = t.dispatchEvent, i = t.value, a = t.onFocus, this.setState({ focused: !0 }), [4, n("focus", resolveEventData(this.props, { value: i }))];
|
|
721
|
+
case 1: return o = s.sent(), o?.prevented || a?.(e), [2];
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
});
|
|
725
|
+
}, t.prototype.handleBlur = function(e) {
|
|
726
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
727
|
+
var t, n, i, a, o;
|
|
728
|
+
return __generator(this, function(s) {
|
|
729
|
+
switch (s.label) {
|
|
730
|
+
case 0: return t = this.props, n = t.dispatchEvent, i = t.value, a = t.onBlur, this.setState({ focused: !1 }), [4, n("blur", resolveEventData(this.props, { value: i }))];
|
|
731
|
+
case 1: return o = s.sent(), o?.prevented || a?.(e), [2];
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
});
|
|
735
|
+
}, t.prototype.handleChange = function(e) {
|
|
736
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
737
|
+
var t, n, i, a;
|
|
738
|
+
return __generator(this, function(o) {
|
|
739
|
+
switch (o.label) {
|
|
740
|
+
case 0: return t = this.props, n = t.dispatchEvent, i = t.onChange, [4, n("change", resolveEventData(this.props, { value: e }))];
|
|
741
|
+
case 1: return a = o.sent(), a?.prevented || i?.(e), [2];
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
});
|
|
745
|
+
}, t.prototype.handleEditorMounted = function(e, t) {
|
|
746
|
+
var n = this;
|
|
747
|
+
if (this.editor = e, this.toDispose.push(e.onDidChangeModelDecorations(function() {
|
|
748
|
+
n.updateContainerSize(e, t), requestAnimationFrame(n.updateContainerSize.bind(n, e, t));
|
|
749
|
+
}).dispose), this.props.editorDidMount) {
|
|
750
|
+
var i = this.props.editorDidMount;
|
|
751
|
+
typeof i == "string" && (i = Function("editor", "monaco", i));
|
|
752
|
+
var a = i(e, t);
|
|
753
|
+
typeof a == "function" && this.toDispose.push(a);
|
|
754
|
+
}
|
|
755
|
+
}, t.prototype.updateContainerSize = function(e, t) {
|
|
756
|
+
if (this.divRef.current) {
|
|
757
|
+
var n = e.getOption(t.editor.EditorOption.lineHeight), i = e.getModel()?.getLineCount() || 1, a = e.getTopForLineNumber(i + 1) + n;
|
|
758
|
+
this.prevHeight !== a && (this.prevHeight = a, this.divRef.current.style.height = `${a}px`, e.layout());
|
|
759
|
+
}
|
|
760
|
+
}, t.prototype.render = function() {
|
|
761
|
+
var e, t = this.props, n = t.className;
|
|
762
|
+
t.style;
|
|
763
|
+
var i = t.classPrefix, a = t.classnames, o = t.value;
|
|
764
|
+
t.onChange;
|
|
765
|
+
var s = t.disabled, c = t.options, l = t.editorTheme, u = t.theme, d = t.size, f = t.data, p = t.allowFullscreen, h = t.placeholder, g = this.props.language, _ = o;
|
|
766
|
+
return _ && typeof _ != "string" && (_ = JSON.stringify(_, null, 2)), isPureVariable(g) && (g = resolveVariableAndFilter(g, f)), import_react.createElement("div", {
|
|
767
|
+
ref: this.divRef,
|
|
768
|
+
className: a("EditorControl", (e = { "is-focused": this.state.focused }, e[`EditorControl--${d}`] = d, e), n)
|
|
769
|
+
}, import_react.createElement(themedLazyComponent, {
|
|
770
|
+
classPrefix: i,
|
|
771
|
+
component: MonacoEditor,
|
|
772
|
+
allowFullscreen: p,
|
|
773
|
+
value: _,
|
|
774
|
+
onChange: this.handleChange,
|
|
775
|
+
disabled: s,
|
|
776
|
+
onFocus: this.handleFocus,
|
|
777
|
+
onBlur: this.handleBlur,
|
|
778
|
+
language: g,
|
|
779
|
+
editorTheme: l || (u === "dark" ? "vs-dark" : "vs"),
|
|
780
|
+
editorDidMount: this.handleEditorMounted,
|
|
781
|
+
childProps: { placeholder: h },
|
|
782
|
+
options: __assign(__assign({}, c), { readOnly: s })
|
|
783
|
+
}));
|
|
784
|
+
}, t.defaultProps = {
|
|
785
|
+
language: "javascript",
|
|
786
|
+
editorTheme: "",
|
|
787
|
+
allowFullscreen: !0,
|
|
788
|
+
options: {
|
|
789
|
+
automaticLayout: !0,
|
|
790
|
+
selectOnLineNumbers: !0,
|
|
791
|
+
scrollBeyondLastLine: !1,
|
|
792
|
+
folding: !0,
|
|
793
|
+
minimap: { enabled: !1 }
|
|
794
|
+
}
|
|
795
|
+
}, __decorate([
|
|
796
|
+
autobind,
|
|
797
|
+
__metadata("design:type", Function),
|
|
798
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
799
|
+
__metadata("design:returntype", void 0)
|
|
800
|
+
], t.prototype, "updateContainerSize", null), t;
|
|
801
|
+
}(import_react.Component);
|
|
802
|
+
(/* @__PURE__ */ "bat.c.coffeescript.cpp.csharp.css.dockerfile.fsharp.go.handlebars.html.ini.java.javascript.json.less.lua.markdown.msdax.objective-c.php.plaintext.postiats.powershell.pug.python.r.razor.ruby.sb.scss.sol.shell.sql.swift.typescript.vb.xml.yaml".split(".")).map(function(e) {
|
|
803
|
+
return function(t) {
|
|
804
|
+
__extends(n, t);
|
|
805
|
+
function n() {
|
|
806
|
+
return t !== null && t.apply(this, arguments) || this;
|
|
807
|
+
}
|
|
808
|
+
return n.lang = e, n.displayName = `${e[0].toUpperCase()}${e.substring(1)}EditorControlRenderer`, n.defaultProps = __assign(__assign({}, EditorControl.defaultProps), { language: e }), n = __decorate([FormItem({
|
|
809
|
+
type: `${e}-editor`,
|
|
810
|
+
sizeMutable: !1
|
|
811
|
+
})], n), n;
|
|
812
|
+
}(EditorControl);
|
|
813
|
+
}), (function(e) {
|
|
814
|
+
__extends(t, e);
|
|
815
|
+
function t() {
|
|
816
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
817
|
+
}
|
|
818
|
+
return t.defaultProps = __assign(__assign({}, EditorControl.defaultProps), { language: "javascript" }), t = __decorate([FormItem({
|
|
819
|
+
type: "js-editor",
|
|
820
|
+
sizeMutable: !1
|
|
821
|
+
})], t), t;
|
|
822
|
+
})(EditorControl), (function(e) {
|
|
823
|
+
__extends(t, e);
|
|
824
|
+
function t() {
|
|
825
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
826
|
+
}
|
|
827
|
+
return t.defaultProps = __assign(__assign({}, EditorControl.defaultProps), { language: "typescript" }), t = __decorate([FormItem({
|
|
828
|
+
type: "ts-editor",
|
|
829
|
+
sizeMutable: !1
|
|
830
|
+
})], t), t;
|
|
831
|
+
})(EditorControl), function(e) {
|
|
832
|
+
__extends(t, e);
|
|
833
|
+
function t() {
|
|
834
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
835
|
+
}
|
|
836
|
+
return t.defaultProps = __assign(__assign({}, EditorControl.defaultProps), { language: "javascript" }), t = __decorate([FormItem({
|
|
837
|
+
type: "editor",
|
|
838
|
+
sizeMutable: !1
|
|
839
|
+
})], t), t;
|
|
840
|
+
}(EditorControl);
|
|
841
|
+
var import_pick = /* @__PURE__ */ __toESM(require_pick()), ColProps = [
|
|
842
|
+
"lg",
|
|
843
|
+
"md",
|
|
844
|
+
"sm",
|
|
845
|
+
"xs"
|
|
846
|
+
];
|
|
847
|
+
function fromBsClass(e) {
|
|
848
|
+
return typeof e == "string" && e ? e.replace(/\bcol-(xs|sm|md|lg)-(\d+)\b/g, function(e, t, n) {
|
|
849
|
+
return `Grid-col--${t}${n}`;
|
|
850
|
+
}) : e;
|
|
851
|
+
}
|
|
852
|
+
function copProps2Class(e) {
|
|
853
|
+
var t = [];
|
|
854
|
+
return ColProps.forEach(function(n) {
|
|
855
|
+
return e && e[n] && t.push(`Grid-col--${n}${ucFirst(e[n])}`);
|
|
856
|
+
}), t.length || t.push("Grid-col--md"), t.join(" ");
|
|
857
|
+
}
|
|
858
|
+
var GridRenderer = function(e) {
|
|
859
|
+
__extends(t, e);
|
|
860
|
+
function t() {
|
|
861
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
862
|
+
}
|
|
863
|
+
return t = __decorate([Renderer({ type: "grid" })], t), t;
|
|
864
|
+
}(function(e) {
|
|
865
|
+
__extends(t, e);
|
|
866
|
+
function t() {
|
|
867
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
868
|
+
}
|
|
869
|
+
return t.prototype.renderChild = function(e, t, n, i) {
|
|
870
|
+
i === void 0 && (i = {});
|
|
871
|
+
var a = this.props, o = a.render, s = a.itemRender;
|
|
872
|
+
return s ? s(t, n, this.props) : o(e, t, i);
|
|
873
|
+
}, t.prototype.renderColumn = function(e, t, n) {
|
|
874
|
+
var i, a = (0, import_pick.default)(e, ColProps);
|
|
875
|
+
a = __assign({}, a);
|
|
876
|
+
var o = this.props, s = o.classnames, c = o.formMode, l = o.subFormMode, u = o.subFormHorizontal, d = o.formHorizontal;
|
|
877
|
+
o.translate;
|
|
878
|
+
var f = o.disabled, p = o.data, h = o.env, g = buildStyle(e.style, p), _ = e.id, y = e.themeCss, x = e.wrapperCustomStyle;
|
|
879
|
+
return import_react.createElement("div", {
|
|
880
|
+
key: t,
|
|
881
|
+
className: s(copProps2Class(a), fromBsClass(e.columnClassName), (i = {}, i[`Grid-col--v${ucFirst(e.valign)}`] = e.valign, i), setThemeClassName(__assign(__assign({}, e), {
|
|
882
|
+
name: "baseControlClassName",
|
|
883
|
+
id: _,
|
|
884
|
+
themeCss: y
|
|
885
|
+
})), setThemeClassName(__assign(__assign({}, e), {
|
|
886
|
+
name: "wrapperCustomStyle",
|
|
887
|
+
id: _,
|
|
888
|
+
themeCss: y
|
|
889
|
+
}))),
|
|
890
|
+
style: g
|
|
891
|
+
}, this.renderChild(`column/${t}`, e.body || [], n, {
|
|
892
|
+
disabled: f,
|
|
893
|
+
formMode: e.mode || l || c,
|
|
894
|
+
formHorizontal: e.horizontal || u || d
|
|
895
|
+
}), import_react.createElement(CustomStyle, __assign({}, e, {
|
|
896
|
+
config: {
|
|
897
|
+
wrapperCustomStyle: x,
|
|
898
|
+
id: _,
|
|
899
|
+
themeCss: y,
|
|
900
|
+
classNames: [{ key: "baseControlClassName" }]
|
|
901
|
+
},
|
|
902
|
+
env: h
|
|
903
|
+
})));
|
|
904
|
+
}, t.prototype.renderColumns = function(e) {
|
|
905
|
+
var t = this;
|
|
906
|
+
return Array.isArray(e) ? e.map(function(n, i) {
|
|
907
|
+
return t.renderColumn(n, i, e.length);
|
|
908
|
+
}) : null;
|
|
909
|
+
}, t.prototype.render = function() {
|
|
910
|
+
var e, t = this.props, n = t.className, i = t.style, a = t.classnames, o = t.gap, s = t.valign, c = t.align, l = t.loading, u = l === void 0 ? !1 : l, d = t.loadingConfig, f = t.data, p = t.id, h = t.wrapperCustomStyle, g = t.env, _ = t.themeCss, y = buildStyle(i, f);
|
|
911
|
+
return import_react.createElement("div", {
|
|
912
|
+
className: a("Grid", (e = {}, e[`Grid--${o}`] = o, e[`Grid--v${ucFirst(s)}`] = s, e[`Grid--h${ucFirst(c)}`] = c, e), n, setThemeClassName(__assign(__assign({}, this.props), {
|
|
913
|
+
name: "baseControlClassName",
|
|
914
|
+
id: p,
|
|
915
|
+
themeCss: _
|
|
916
|
+
})), setThemeClassName(__assign(__assign({}, this.props), {
|
|
917
|
+
name: "wrapperCustomStyle",
|
|
918
|
+
id: p,
|
|
919
|
+
themeCss: h
|
|
920
|
+
}))),
|
|
921
|
+
style: y,
|
|
922
|
+
"data-id": p,
|
|
923
|
+
"data-role": "container"
|
|
924
|
+
}, this.renderColumns(this.props.columns), import_react.createElement(Spinner$1, {
|
|
925
|
+
loadingConfig: d,
|
|
926
|
+
overlay: !0,
|
|
927
|
+
show: u
|
|
928
|
+
}), import_react.createElement(CustomStyle, __assign({}, this.props, {
|
|
929
|
+
config: {
|
|
930
|
+
wrapperCustomStyle: h,
|
|
931
|
+
id: p,
|
|
932
|
+
themeCss: _,
|
|
933
|
+
classNames: [{ key: "baseControlClassName" }]
|
|
934
|
+
},
|
|
935
|
+
env: g
|
|
936
|
+
})));
|
|
937
|
+
}, t.propsList = ["columns"], t.defaultProps = {}, t;
|
|
938
|
+
}(import_react.Component));
|
|
939
|
+
addSchemaFilter(function(e, t) {
|
|
940
|
+
return t.component === CheckboxControlRenderer && e.label && e.option === void 0 && (e = __assign({}, e), e.option = e.label, delete e.label), e;
|
|
941
|
+
});
|
|
942
|
+
function convertFieldSetTabs2Controls(e) {
|
|
943
|
+
var t = {}, n = !1;
|
|
944
|
+
return t.controls = Array.isArray(e.controls) ? e.controls.concat() : [], t.controls = t.controls.map(function(e) {
|
|
945
|
+
if (Array.isArray(e)) {
|
|
946
|
+
var t = convertFieldSetTabs2Controls({
|
|
947
|
+
type: "group",
|
|
948
|
+
controls: e
|
|
949
|
+
});
|
|
950
|
+
return t !== e && (n = !0), t;
|
|
951
|
+
}
|
|
952
|
+
return e;
|
|
953
|
+
}), e.fieldSet && (Array.isArray(e.fieldSet) ? e.fieldSet : [e.fieldSet]).forEach(function(i) {
|
|
954
|
+
n = !0, t.controls.push(__assign(__assign({}, convertFieldSetTabs2Controls(i)), {
|
|
955
|
+
type: "fieldSet",
|
|
956
|
+
collapsable: e.collapsable
|
|
957
|
+
}));
|
|
958
|
+
}), e.tabs && (n = !0) && t.controls.push({
|
|
959
|
+
type: "tabs",
|
|
960
|
+
tabs: e.tabs.map(function(e) {
|
|
961
|
+
return convertFieldSetTabs2Controls(e);
|
|
962
|
+
})
|
|
963
|
+
}), n && (e = __assign(__assign({}, e), t), delete e.fieldSet, delete e.tabs), e;
|
|
964
|
+
}
|
|
965
|
+
addSchemaFilter(function(e, t) {
|
|
966
|
+
if (t.component !== FormRenderer) return e;
|
|
967
|
+
if (e.fieldSet || e.tabs) e = convertFieldSetTabs2Controls(e);
|
|
968
|
+
else if (Array.isArray(e.controls)) {
|
|
969
|
+
var n = !1, i = e.controls.map(function(e) {
|
|
970
|
+
if (Array.isArray(e)) {
|
|
971
|
+
var t = convertFieldSetTabs2Controls({
|
|
972
|
+
type: "group",
|
|
973
|
+
controls: e
|
|
974
|
+
});
|
|
975
|
+
return t !== e && (n = !0), t;
|
|
976
|
+
}
|
|
977
|
+
return e;
|
|
978
|
+
});
|
|
979
|
+
n && (e = __assign(__assign({}, e), { controls: i }));
|
|
980
|
+
}
|
|
981
|
+
return e;
|
|
982
|
+
}), addSchemaFilter(function(e, t) {
|
|
983
|
+
if (t.component !== FieldSetRenderer) return e;
|
|
984
|
+
if (Array.isArray(e.controls)) {
|
|
985
|
+
var n = !1, i = e.controls.map(function(e) {
|
|
986
|
+
if (Array.isArray(e)) {
|
|
987
|
+
var t = convertFieldSetTabs2Controls({
|
|
988
|
+
type: "group",
|
|
989
|
+
controls: e
|
|
990
|
+
});
|
|
991
|
+
return t !== e && (n = !0), t;
|
|
992
|
+
}
|
|
993
|
+
return e;
|
|
994
|
+
});
|
|
995
|
+
n && (e = __assign(__assign({}, e), { controls: i }));
|
|
996
|
+
}
|
|
997
|
+
return e;
|
|
998
|
+
});
|
|
999
|
+
function convertArray2Hbox(e) {
|
|
1000
|
+
var t = !1, n = e.map(function(e) {
|
|
1001
|
+
return Array.isArray(e) ? (t = !0, convertArray2Hbox(e)) : e;
|
|
1002
|
+
});
|
|
1003
|
+
return t || (n = e), {
|
|
1004
|
+
type: "hbox",
|
|
1005
|
+
columns: n
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
addSchemaFilter(function(e, t) {
|
|
1009
|
+
if (t.component !== CardRenderer && t.component !== ListItemRenderer) return e;
|
|
1010
|
+
if (Array.isArray(e.body)) {
|
|
1011
|
+
var n = !1, i = e.body.map(function(e) {
|
|
1012
|
+
return Array.isArray(e) ? (n = !0, convertArray2Hbox(e)) : e;
|
|
1013
|
+
});
|
|
1014
|
+
n && (e = __assign(__assign({}, e), { body: i }));
|
|
1015
|
+
}
|
|
1016
|
+
return e;
|
|
1017
|
+
}), addSchemaFilter(function(e, t) {
|
|
1018
|
+
return t.component === ButtonGroupControlRenderer && (e.btnClassName || e.btnActiveClassName) && (e = __assign(__assign({}, e), {
|
|
1019
|
+
btnLevel: getLevelFromClassName(e.btnClassName),
|
|
1020
|
+
btnActiveLevel: getLevelFromClassName(e.btnActiveClassName)
|
|
1021
|
+
})), e;
|
|
1022
|
+
}), addSchemaFilter(function(e, t) {
|
|
1023
|
+
return t.component !== FileControlRenderer && t.component !== ImageControlRenderer && t.component !== RichTextControlRenderer ? e : (e.reciever && (e = __assign(__assign({}, e), { receiver: e.reciever }), delete e.reciever), e.videoReciever && (e = __assign(__assign({}, e), { videoReceiver: e.reciever }), delete e.reciever), e);
|
|
1024
|
+
}), addSchemaFilter(function(e, t) {
|
|
1025
|
+
return t.component === GridRenderer && Array.isArray(e.columns) && e.columns.some(function(e) {
|
|
1026
|
+
return Array.isArray(e) || e.type;
|
|
1027
|
+
}) && (e = __assign(__assign({}, e), { columns: e.columns.map(function(e) {
|
|
1028
|
+
return Array.isArray(e) ? { body: [{
|
|
1029
|
+
type: "grid",
|
|
1030
|
+
columns: e
|
|
1031
|
+
}] } : (e.type && (e = {
|
|
1032
|
+
xs: e.xs,
|
|
1033
|
+
sm: e.sm,
|
|
1034
|
+
md: e.md,
|
|
1035
|
+
lg: e.lg,
|
|
1036
|
+
columnClassName: e.columnClassName,
|
|
1037
|
+
body: [__rest(e, [
|
|
1038
|
+
"xs",
|
|
1039
|
+
"sm",
|
|
1040
|
+
"md",
|
|
1041
|
+
"lg",
|
|
1042
|
+
"columnClassName"
|
|
1043
|
+
])]
|
|
1044
|
+
}), e);
|
|
1045
|
+
}) })), e;
|
|
1046
|
+
}), addSchemaFilter(function(e, t) {
|
|
1047
|
+
return t.component === HBoxRenderer && Array.isArray(e.columns) && e.columns.some(function(e) {
|
|
1048
|
+
return e.type;
|
|
1049
|
+
}) && (e = __assign(__assign({}, e), { columns: e.columns.map(function(e) {
|
|
1050
|
+
var t = e.width, n = e.height, i = e.style, a = e.columnClassName, o = e.visible, s = e.visibleOn, l = __rest(e, [
|
|
1051
|
+
"width",
|
|
1052
|
+
"height",
|
|
1053
|
+
"style",
|
|
1054
|
+
"columnClassName",
|
|
1055
|
+
"visible",
|
|
1056
|
+
"visibleOn"
|
|
1057
|
+
]);
|
|
1058
|
+
return e.type && (e = {
|
|
1059
|
+
width: t,
|
|
1060
|
+
height: n,
|
|
1061
|
+
style: i,
|
|
1062
|
+
columnClassName: a,
|
|
1063
|
+
visible: o,
|
|
1064
|
+
visibleOn: s,
|
|
1065
|
+
body: [l]
|
|
1066
|
+
}), e;
|
|
1067
|
+
}) })), e;
|
|
1068
|
+
});
|
|
1069
|
+
var controlMapping = {
|
|
1070
|
+
array: "input-array",
|
|
1071
|
+
"button-group": "button-group-select",
|
|
1072
|
+
city: "input-city",
|
|
1073
|
+
color: "input-color",
|
|
1074
|
+
date: "input-date",
|
|
1075
|
+
datetime: "input-datetime",
|
|
1076
|
+
time: "input-time",
|
|
1077
|
+
quarter: "input-quarter",
|
|
1078
|
+
month: "input-month",
|
|
1079
|
+
year: "input-year",
|
|
1080
|
+
"date-range": "input-date-range",
|
|
1081
|
+
"datetime-range": "input-datetime-range",
|
|
1082
|
+
diff: "diff-editor",
|
|
1083
|
+
file: "input-file",
|
|
1084
|
+
image: "input-image",
|
|
1085
|
+
list: "list-select",
|
|
1086
|
+
location: "location-picker",
|
|
1087
|
+
matrix: "matrix-checkboxes",
|
|
1088
|
+
"month-range": "input-month-range",
|
|
1089
|
+
"quarter-range": "input-quarter-range",
|
|
1090
|
+
number: "input-number",
|
|
1091
|
+
range: "input-range",
|
|
1092
|
+
rating: "input-rating",
|
|
1093
|
+
repeat: "input-repeat",
|
|
1094
|
+
"rich-text": "input-rich-text",
|
|
1095
|
+
form: "input-sub-form",
|
|
1096
|
+
table: "input-table",
|
|
1097
|
+
tag: "input-tag",
|
|
1098
|
+
text: "input-text",
|
|
1099
|
+
url: "input-url",
|
|
1100
|
+
password: "input-password",
|
|
1101
|
+
email: "input-email",
|
|
1102
|
+
tree: "input-tree",
|
|
1103
|
+
progress: "static-progress",
|
|
1104
|
+
mapping: "static-mapping"
|
|
1105
|
+
}, maybeFormItem = [
|
|
1106
|
+
"button",
|
|
1107
|
+
"submit",
|
|
1108
|
+
"reset",
|
|
1109
|
+
"button-group",
|
|
1110
|
+
"button-toolbar",
|
|
1111
|
+
"container",
|
|
1112
|
+
"grid",
|
|
1113
|
+
"hbox",
|
|
1114
|
+
"panel",
|
|
1115
|
+
"anchor-nav",
|
|
1116
|
+
"qr-code"
|
|
1117
|
+
];
|
|
1118
|
+
function wrapControl(e) {
|
|
1119
|
+
if (!e || !e.type) return e;
|
|
1120
|
+
var t = e.label, n = e.description, i = e.name, a = e.required, o = e.remark, s = e.inputOnly, l = e.labelClassName, u = e.caption, d = e.labelRemark, f = e.descriptionClassName, p = e.captionClassName, m = e.hint, h = e.showErrorMsg, g = e.mode, _ = e.horizontal, v = e.className, y = e.inputClassName, b = e.columnClassName, x = e.visibleOn, S = e.visible, C = __rest(e, [
|
|
1121
|
+
"label",
|
|
1122
|
+
"description",
|
|
1123
|
+
"name",
|
|
1124
|
+
"required",
|
|
1125
|
+
"remark",
|
|
1126
|
+
"inputOnly",
|
|
1127
|
+
"labelClassName",
|
|
1128
|
+
"caption",
|
|
1129
|
+
"labelRemark",
|
|
1130
|
+
"descriptionClassName",
|
|
1131
|
+
"captionClassName",
|
|
1132
|
+
"hint",
|
|
1133
|
+
"showErrorMsg",
|
|
1134
|
+
"mode",
|
|
1135
|
+
"horizontal",
|
|
1136
|
+
"className",
|
|
1137
|
+
"inputClassName",
|
|
1138
|
+
"columnClassName",
|
|
1139
|
+
"visibleOn",
|
|
1140
|
+
"visible"
|
|
1141
|
+
]);
|
|
1142
|
+
return C.name = i, C.className = y, ~[
|
|
1143
|
+
"button",
|
|
1144
|
+
"submit",
|
|
1145
|
+
"reset"
|
|
1146
|
+
].indexOf(C.type) && (C.label = t, t = ""), {
|
|
1147
|
+
type: "control",
|
|
1148
|
+
label: t,
|
|
1149
|
+
description: n,
|
|
1150
|
+
name: i,
|
|
1151
|
+
required: a,
|
|
1152
|
+
remark: o,
|
|
1153
|
+
inputOnly: s,
|
|
1154
|
+
labelClassName: l,
|
|
1155
|
+
caption: u,
|
|
1156
|
+
labelRemark: d,
|
|
1157
|
+
descriptionClassName: f,
|
|
1158
|
+
captionClassName: p,
|
|
1159
|
+
hint: m,
|
|
1160
|
+
showErrorMsg: h,
|
|
1161
|
+
mode: g,
|
|
1162
|
+
horizontal: _,
|
|
1163
|
+
className: v,
|
|
1164
|
+
columnClassName: b,
|
|
1165
|
+
visibleOn: x,
|
|
1166
|
+
visible: S,
|
|
1167
|
+
body: C
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
var maybeStatic = [
|
|
1171
|
+
"tpl",
|
|
1172
|
+
"mapping",
|
|
1173
|
+
"progress",
|
|
1174
|
+
"status",
|
|
1175
|
+
"json",
|
|
1176
|
+
"video",
|
|
1177
|
+
"qrcode",
|
|
1178
|
+
"plain",
|
|
1179
|
+
"each",
|
|
1180
|
+
"link"
|
|
1181
|
+
];
|
|
1182
|
+
function wrapStatic(e) {
|
|
1183
|
+
return !e || !e.type ? e : __assign(__assign({}, e), { type: `static-${e.type}` });
|
|
1184
|
+
}
|
|
1185
|
+
addSchemaFilter(function(e, t, n) {
|
|
1186
|
+
var i, a = typeof e?.type == "string" ? e.type.toLowerCase() : "", o = e;
|
|
1187
|
+
if (a === "combo" && Array.isArray(e.conditions) && (o = __assign(__assign({}, e), { conditions: e.conditions.map(function(e) {
|
|
1188
|
+
return Array.isArray(e.controls) && (e = __assign(__assign({}, e), { items: e.controls.map(s) }), delete e.controls), e;
|
|
1189
|
+
}) })), e?.controls && e.type !== "audio" && e.type !== "carousel" ? (o = __assign(__assign({}, e), (i = {}, i[e.type === "combo" ? "items" : "body"] = (Array.isArray(e.controls) ? e.controls : [e.controls]).map(s), i)), delete o.controls) : e?.quickEdit?.controls && (!e.quickEdit.type || !~[
|
|
1190
|
+
"combo",
|
|
1191
|
+
"group",
|
|
1192
|
+
"panel",
|
|
1193
|
+
"fieldSet",
|
|
1194
|
+
"fieldset"
|
|
1195
|
+
].indexOf(e.quickEdit.type)) ? (o = __assign(__assign({}, e), { quickEdit: __assign(__assign({}, e.quickEdit), { body: (Array.isArray(e.quickEdit.controls) ? e.quickEdit.controls : [e.quickEdit.controls]).map(s) }) }), delete o.quickEdit.controls) : e?.quickEdit?.type ? o = __assign(__assign({}, e), { quickEdit: s(e.quickEdit) }) : a === "tabs" && Array.isArray(e.tabs) ? o = __assign(__assign({}, e), { tabs: e.tabs.map(function(e) {
|
|
1196
|
+
return Array.isArray(e.controls) && !Array.isArray(e.body) && (e = __assign(__assign({}, e), { body: e.controls.map(s) }), delete e.controls), e;
|
|
1197
|
+
}) }) : a === "anchor-nav" && Array.isArray(e.links) ? o = __assign(__assign({}, e), { links: e.links.map(function(e) {
|
|
1198
|
+
return Array.isArray(e.controls) && (e = __assign(__assign({}, e), { body: e?.controls.map(s) }), delete e.controls), e;
|
|
1199
|
+
}) }) : a === "input-array" && e.items ? o = __assign(__assign({}, e), { items: Array.isArray(e.items) ? e.items.map(s) : s(e.items) }) : (a === "grid" || a === "hbox") && Array.isArray(e.columns) ? o = __assign(__assign({}, e), { columns: e.columns.map(function(e) {
|
|
1200
|
+
return Array.isArray(e.controls) && (e = __assign(__assign({}, e), { body: e?.controls.map(s) }), e.type !== "form" && delete e.type, delete e.controls), e;
|
|
1201
|
+
}) }) : a === "service" && e?.body?.controls && (o = __assign(__assign({}, e), { body: (Array.isArray(e.body.controls) ? e.body.controls : [e.body.controls]).map(s) })), o !== e && isObjectShallowModified(o, e, !1, !1, [], 10)) return o;
|
|
1202
|
+
return e;
|
|
1203
|
+
function s(e) {
|
|
1204
|
+
return e?.$ref && n.resolveDefinitions && (e = __assign(__assign({}, n.resolveDefinitions(e.$ref)), e), delete e.$ref), e && controlMapping[e.type] ? __assign(__assign({}, e), { type: controlMapping[e.type] }) : ~maybeFormItem.indexOf(e?.type) ? wrapControl(e) : ~maybeStatic.indexOf(e?.type) ? wrapStatic(e) : e;
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
var import_isEqual = /* @__PURE__ */ __toESM(require_isEqual());
|
|
1208
|
+
addSchemaFilter(function(e, t, n) {
|
|
1209
|
+
if (e && e.type === "input-kv") {
|
|
1210
|
+
var i = e.autoParseJSON ?? !0;
|
|
1211
|
+
return __assign(__assign({ draggable: !0 }, e), {
|
|
1212
|
+
multiple: !0,
|
|
1213
|
+
pipeIn: function(e) {
|
|
1214
|
+
if (!isObject(e)) return [];
|
|
1215
|
+
if ((0, import_isEqual.default)(e, this.cachedValue)) return this.cachedValueArray;
|
|
1216
|
+
var t = [];
|
|
1217
|
+
return Object.keys(e).forEach(function(n) {
|
|
1218
|
+
var i = typeof e[n];
|
|
1219
|
+
t.push({
|
|
1220
|
+
key: n || "",
|
|
1221
|
+
value: i === "string" || i === "number" || i === "boolean" ? e[n] : JSON.stringify(e[n])
|
|
1222
|
+
});
|
|
1223
|
+
}), t;
|
|
1224
|
+
},
|
|
1225
|
+
pipeOut: function(t) {
|
|
1226
|
+
if (!Array.isArray(t)) return t;
|
|
1227
|
+
var n = {};
|
|
1228
|
+
return t.forEach(function(t) {
|
|
1229
|
+
var a = t.key ?? "", o = t.value ?? e.defaultValue ?? "";
|
|
1230
|
+
if (i && typeof o == "string" && o.startsWith("{")) try {
|
|
1231
|
+
o = JSON.parse(o);
|
|
1232
|
+
} catch {}
|
|
1233
|
+
n[a] = o;
|
|
1234
|
+
}), this.cachedValue = n, this.cachedValueArray = t, n;
|
|
1235
|
+
},
|
|
1236
|
+
items: [e.keySchema ? __assign(__assign({ id: `u:${guid$1()}` }, e.keySchema), {
|
|
1237
|
+
unique: !0,
|
|
1238
|
+
name: "key",
|
|
1239
|
+
required: !0,
|
|
1240
|
+
validateOnChange: !0
|
|
1241
|
+
}) : {
|
|
1242
|
+
placeholder: e.keyPlaceholder ?? "Key",
|
|
1243
|
+
type: "input-text",
|
|
1244
|
+
unique: !0,
|
|
1245
|
+
name: "key",
|
|
1246
|
+
required: !0,
|
|
1247
|
+
validateOnChange: !0,
|
|
1248
|
+
id: `u:${guid$1()}`
|
|
1249
|
+
}, e.valueSchema ? __assign(__assign({ id: `u:${guid$1()}` }, e.valueSchema), { name: "value" }) : e.valueComponent ? {
|
|
1250
|
+
placeholder: e.valuePlaceholder ?? "Value",
|
|
1251
|
+
component: e.valueComponent,
|
|
1252
|
+
asFormItem: !0,
|
|
1253
|
+
name: "value",
|
|
1254
|
+
id: `u:${guid$1()}`
|
|
1255
|
+
} : {
|
|
1256
|
+
placeholder: e.valuePlaceholder ?? "Value",
|
|
1257
|
+
type: e.valueType || "input-text",
|
|
1258
|
+
name: "value",
|
|
1259
|
+
id: `u:${guid$1()}`
|
|
1260
|
+
}]
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
return e;
|
|
1264
|
+
}), addSchemaFilter(function(e, t, n) {
|
|
1265
|
+
if (e && e.type === "input-kvs") {
|
|
1266
|
+
var i = e.keyItem || {}, a = e.valueItems || [], o = !1;
|
|
1267
|
+
return a.length == 1 && a[0].name === "_value" && (o = !0), __assign(__assign({
|
|
1268
|
+
draggable: !0,
|
|
1269
|
+
multiple: !0,
|
|
1270
|
+
multiLine: !0
|
|
1271
|
+
}, e), {
|
|
1272
|
+
pipeIn: function(e) {
|
|
1273
|
+
if (!isObject(e)) return [];
|
|
1274
|
+
var t = [];
|
|
1275
|
+
return Object.keys(e).forEach(function(n) {
|
|
1276
|
+
var i = e[n];
|
|
1277
|
+
o ? t.push({
|
|
1278
|
+
_key: n || "",
|
|
1279
|
+
_value: i
|
|
1280
|
+
}) : typeof i == "object" && t.push(__assign(__assign({}, i), { _key: n || "" }));
|
|
1281
|
+
}), t;
|
|
1282
|
+
},
|
|
1283
|
+
pipeOut: function(t) {
|
|
1284
|
+
if (!Array.isArray(t)) return t;
|
|
1285
|
+
var n = {};
|
|
1286
|
+
return t.forEach(function(t) {
|
|
1287
|
+
var i = t._key, a = __rest(t, ["_key"]);
|
|
1288
|
+
i ??= "", o ? (e.valueIsArray ? n[i] = t._value || [] : n[i] = t._value || {}, (0, import_isEqual.default)(n[i], [{}]) && (n[i] = [])) : e.valueIsArray ? n[i] = a || [] : n[i] = a || {};
|
|
1289
|
+
}), n;
|
|
1290
|
+
},
|
|
1291
|
+
items: __spreadArray([__assign({
|
|
1292
|
+
type: "input-text",
|
|
1293
|
+
unique: !0,
|
|
1294
|
+
name: "_key",
|
|
1295
|
+
required: !0,
|
|
1296
|
+
validateOnChange: !0
|
|
1297
|
+
}, i)], __read(a), !1)
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
return e;
|
|
1301
|
+
}), registerRenderer({
|
|
1302
|
+
type: "action",
|
|
1303
|
+
alias: [
|
|
1304
|
+
"button",
|
|
1305
|
+
"submit",
|
|
1306
|
+
"reset"
|
|
1307
|
+
],
|
|
1308
|
+
getComponent: function() {
|
|
1309
|
+
return import("./Action-D7O1nxY2.js");
|
|
1310
|
+
}
|
|
1311
|
+
}), registerRenderer({
|
|
1312
|
+
type: "alert",
|
|
1313
|
+
getComponent: function() {
|
|
1314
|
+
return import("./Alert-sakO0sgo.js");
|
|
1315
|
+
}
|
|
1316
|
+
}), registerRenderer({
|
|
1317
|
+
type: "app",
|
|
1318
|
+
getComponent: function() {
|
|
1319
|
+
return import("./App-mzRv6t1L.js");
|
|
1320
|
+
}
|
|
1321
|
+
}), registerRenderer({
|
|
1322
|
+
type: "avatar",
|
|
1323
|
+
getComponent: function() {
|
|
1324
|
+
return import("./Avatar-C0g_Dcsr.js");
|
|
1325
|
+
}
|
|
1326
|
+
}), registerRenderer({
|
|
1327
|
+
type: "remark",
|
|
1328
|
+
getComponent: function() {
|
|
1329
|
+
return import("./Remark-DuAbEmCW.js");
|
|
1330
|
+
}
|
|
1331
|
+
}), registerRenderer({
|
|
1332
|
+
type: "button-group",
|
|
1333
|
+
getComponent: function() {
|
|
1334
|
+
return import("./ButtonGroup-DBJgP_U6.js");
|
|
1335
|
+
}
|
|
1336
|
+
}), registerRenderer({
|
|
1337
|
+
type: "button-toolbar",
|
|
1338
|
+
getComponent: function() {
|
|
1339
|
+
return import("./ButtonToolbar-DMCBgh9w.js");
|
|
1340
|
+
}
|
|
1341
|
+
}), registerRenderer({
|
|
1342
|
+
type: "breadcrumb",
|
|
1343
|
+
getComponent: function() {
|
|
1344
|
+
return import("./Breadcrumb-3pb8787J.js");
|
|
1345
|
+
}
|
|
1346
|
+
}), registerRenderer({
|
|
1347
|
+
type: "dropdown-button",
|
|
1348
|
+
getComponent: function() {
|
|
1349
|
+
return import("./DropDownButton-BIuAagmC.js");
|
|
1350
|
+
}
|
|
1351
|
+
}), registerRenderer({
|
|
1352
|
+
type: "calendar",
|
|
1353
|
+
getComponent: function() {
|
|
1354
|
+
return import("./Calendar-D_aFq70_.js");
|
|
1355
|
+
}
|
|
1356
|
+
}), registerRenderer({
|
|
1357
|
+
type: "collapse",
|
|
1358
|
+
getComponent: function() {
|
|
1359
|
+
return import("./Collapse-C9riUcKK.js");
|
|
1360
|
+
}
|
|
1361
|
+
}), registerRenderer({
|
|
1362
|
+
type: "collapse-group",
|
|
1363
|
+
getComponent: function() {
|
|
1364
|
+
return import("./CollapseGroup-B7DmpWY1.js");
|
|
1365
|
+
}
|
|
1366
|
+
}), registerRenderer({
|
|
1367
|
+
type: "color",
|
|
1368
|
+
getComponent: function() {
|
|
1369
|
+
return import("./Color-BM1Qa0C1.js");
|
|
1370
|
+
}
|
|
1371
|
+
}), registerRenderer({
|
|
1372
|
+
type: "crud",
|
|
1373
|
+
getComponent: function() {
|
|
1374
|
+
return import("./CRUD-DFP1DIcc.js");
|
|
1375
|
+
}
|
|
1376
|
+
}), registerRenderer({
|
|
1377
|
+
type: "crud2",
|
|
1378
|
+
getComponent: function() {
|
|
1379
|
+
return import("./CRUD2-BGpsdJ3D.js");
|
|
1380
|
+
}
|
|
1381
|
+
}), registerRenderer({
|
|
1382
|
+
type: "pagination",
|
|
1383
|
+
alias: ["pager"],
|
|
1384
|
+
getComponent: function() {
|
|
1385
|
+
return import("./Pagination-DHvYHd_3.js");
|
|
1386
|
+
}
|
|
1387
|
+
}), registerRenderer({
|
|
1388
|
+
type: "cards",
|
|
1389
|
+
getComponent: function() {
|
|
1390
|
+
return import("./Cards-B7J3bYtx.js");
|
|
1391
|
+
}
|
|
1392
|
+
}), registerRenderer({
|
|
1393
|
+
type: "card",
|
|
1394
|
+
getComponent: function() {
|
|
1395
|
+
return import("./Card-C54K-VRd.js");
|
|
1396
|
+
}
|
|
1397
|
+
}), registerRenderer({
|
|
1398
|
+
type: "card2",
|
|
1399
|
+
getComponent: function() {
|
|
1400
|
+
return import("./Card2-Blr9gGoC.js");
|
|
1401
|
+
}
|
|
1402
|
+
}), registerRenderer({
|
|
1403
|
+
type: "custom",
|
|
1404
|
+
getComponent: function() {
|
|
1405
|
+
return import("./Custom-DawY4LgO.js");
|
|
1406
|
+
}
|
|
1407
|
+
}), registerRenderer({
|
|
1408
|
+
type: "date",
|
|
1409
|
+
getComponent: function() {
|
|
1410
|
+
return import("./Date-C9Kib09x.js");
|
|
1411
|
+
}
|
|
1412
|
+
}), registerRenderer({
|
|
1413
|
+
type: "datetime",
|
|
1414
|
+
getComponent: function() {
|
|
1415
|
+
return import("./Date-C9Kib09x.js");
|
|
1416
|
+
}
|
|
1417
|
+
}), registerRenderer({
|
|
1418
|
+
type: "time",
|
|
1419
|
+
getComponent: function() {
|
|
1420
|
+
return import("./Date-C9Kib09x.js");
|
|
1421
|
+
}
|
|
1422
|
+
}), registerRenderer({
|
|
1423
|
+
type: "month",
|
|
1424
|
+
getComponent: function() {
|
|
1425
|
+
return import("./Date-C9Kib09x.js");
|
|
1426
|
+
}
|
|
1427
|
+
}), registerRenderer({
|
|
1428
|
+
type: "dialog",
|
|
1429
|
+
getComponent: function() {
|
|
1430
|
+
return import("./Dialog-oNlQLXnk.js");
|
|
1431
|
+
}
|
|
1432
|
+
}), registerRenderer({
|
|
1433
|
+
type: "divider",
|
|
1434
|
+
getComponent: function() {
|
|
1435
|
+
return import("./Divider-BgpLhaqf.js");
|
|
1436
|
+
}
|
|
1437
|
+
}), registerRenderer({
|
|
1438
|
+
type: "each",
|
|
1439
|
+
getComponent: function() {
|
|
1440
|
+
return import("./Each-CA8gaJkL.js");
|
|
1441
|
+
}
|
|
1442
|
+
}), registerRenderer({
|
|
1443
|
+
type: "flex",
|
|
1444
|
+
getComponent: function() {
|
|
1445
|
+
return import("./Flex-Baz4bI9u.js");
|
|
1446
|
+
}
|
|
1447
|
+
}), registerRenderer({
|
|
1448
|
+
type: "shape",
|
|
1449
|
+
getComponent: function() {
|
|
1450
|
+
return import("./Shape-Bi93tLCN.js");
|
|
1451
|
+
}
|
|
1452
|
+
}), registerRenderer({
|
|
1453
|
+
type: "button-group-select",
|
|
1454
|
+
isFormItem: !0,
|
|
1455
|
+
getComponent: function() {
|
|
1456
|
+
return import("./ButtonGroupSelect-Cl2irnYh.js");
|
|
1457
|
+
}
|
|
1458
|
+
}), registerRenderer({
|
|
1459
|
+
type: "control",
|
|
1460
|
+
getComponent: function() {
|
|
1461
|
+
return import("./Control-krTArjIv.js");
|
|
1462
|
+
}
|
|
1463
|
+
}), registerRenderer({
|
|
1464
|
+
type: "hidden",
|
|
1465
|
+
isFormItem: !0,
|
|
1466
|
+
getComponent: function() {
|
|
1467
|
+
return import("./Hidden-BrTWoL8d.js");
|
|
1468
|
+
}
|
|
1469
|
+
}), registerRenderer({
|
|
1470
|
+
type: "input-text",
|
|
1471
|
+
alias: [
|
|
1472
|
+
"input-password",
|
|
1473
|
+
"native-date",
|
|
1474
|
+
"native-time",
|
|
1475
|
+
"native-number",
|
|
1476
|
+
"input-email",
|
|
1477
|
+
"input-url"
|
|
1478
|
+
],
|
|
1479
|
+
isFormItem: !0,
|
|
1480
|
+
getComponent: function() {
|
|
1481
|
+
return import("./InputText-BbEjGBtv.js");
|
|
1482
|
+
}
|
|
1483
|
+
}), registerRenderer({
|
|
1484
|
+
type: "input-tag",
|
|
1485
|
+
isFormItem: !0,
|
|
1486
|
+
getComponent: function() {
|
|
1487
|
+
return import("./InputTag-35kCFM5X.js");
|
|
1488
|
+
}
|
|
1489
|
+
}), registerRenderer({
|
|
1490
|
+
type: "input-number",
|
|
1491
|
+
isFormItem: !0,
|
|
1492
|
+
getComponent: function() {
|
|
1493
|
+
return import("./InputNumber-DKMOkba-.js");
|
|
1494
|
+
}
|
|
1495
|
+
}), registerRenderer({
|
|
1496
|
+
type: "textarea",
|
|
1497
|
+
isFormItem: !0,
|
|
1498
|
+
getComponent: function() {
|
|
1499
|
+
return import("./Textarea-_KbIxQet.js");
|
|
1500
|
+
}
|
|
1501
|
+
}), registerRenderer({
|
|
1502
|
+
type: "checkboxes",
|
|
1503
|
+
isFormItem: !0,
|
|
1504
|
+
getComponent: function() {
|
|
1505
|
+
return import("./Checkboxes-Babxqar9.js");
|
|
1506
|
+
}
|
|
1507
|
+
}), registerRenderer({
|
|
1508
|
+
type: "checkbox",
|
|
1509
|
+
isFormItem: !0,
|
|
1510
|
+
getComponent: function() {
|
|
1511
|
+
return import("./Checkbox-yvPZaH8N.js");
|
|
1512
|
+
}
|
|
1513
|
+
}), registerRenderer({
|
|
1514
|
+
type: "input-city",
|
|
1515
|
+
isFormItem: !0,
|
|
1516
|
+
getComponent: function() {
|
|
1517
|
+
return import("./InputCity-owVpsIaD.js");
|
|
1518
|
+
}
|
|
1519
|
+
}), registerRenderer({
|
|
1520
|
+
type: "chart-radios",
|
|
1521
|
+
isFormItem: !0,
|
|
1522
|
+
getComponent: function() {
|
|
1523
|
+
return import("./ChartRadios-Bm7pnICh.js");
|
|
1524
|
+
}
|
|
1525
|
+
}), registerRenderer({
|
|
1526
|
+
type: "input-rating",
|
|
1527
|
+
isFormItem: !0,
|
|
1528
|
+
getComponent: function() {
|
|
1529
|
+
return import("./InputRating-Bc8Od5b8.js");
|
|
1530
|
+
}
|
|
1531
|
+
}), registerRenderer({
|
|
1532
|
+
type: "switch",
|
|
1533
|
+
isFormItem: !0,
|
|
1534
|
+
getComponent: function() {
|
|
1535
|
+
return import("./Switch-QA0l7uEg.js");
|
|
1536
|
+
}
|
|
1537
|
+
}), registerRenderer({
|
|
1538
|
+
type: "radios",
|
|
1539
|
+
isFormItem: !0,
|
|
1540
|
+
getComponent: function() {
|
|
1541
|
+
return import("./Radios-CL3mreXa.js");
|
|
1542
|
+
}
|
|
1543
|
+
}), registerRenderer({
|
|
1544
|
+
type: "radio",
|
|
1545
|
+
isFormItem: !0,
|
|
1546
|
+
getComponent: function() {
|
|
1547
|
+
return import("./Radio-DrJJfNFI.js");
|
|
1548
|
+
}
|
|
1549
|
+
}), registerRenderer({
|
|
1550
|
+
type: "json-schema",
|
|
1551
|
+
isFormItem: !0,
|
|
1552
|
+
getComponent: function() {
|
|
1553
|
+
return import("./JSONSchema-Bs0EWcHb.js");
|
|
1554
|
+
}
|
|
1555
|
+
}), registerRenderer({
|
|
1556
|
+
type: "json-schema-editor",
|
|
1557
|
+
isFormItem: !0,
|
|
1558
|
+
getComponent: function() {
|
|
1559
|
+
return import("./JSONSchemaEditor-BoAK9FOL.js");
|
|
1560
|
+
}
|
|
1561
|
+
}), registerRenderer({
|
|
1562
|
+
type: "list-select",
|
|
1563
|
+
isFormItem: !0,
|
|
1564
|
+
getComponent: function() {
|
|
1565
|
+
return import("./ListSelect-DWGbHVxd.js");
|
|
1566
|
+
}
|
|
1567
|
+
}), registerRenderer({
|
|
1568
|
+
type: "location-picker",
|
|
1569
|
+
isFormItem: !0,
|
|
1570
|
+
getComponent: function() {
|
|
1571
|
+
return import("./LocationPicker-2G9yOxtm.js");
|
|
1572
|
+
}
|
|
1573
|
+
}), registerRenderer({
|
|
1574
|
+
type: "select",
|
|
1575
|
+
isFormItem: !0,
|
|
1576
|
+
getComponent: function() {
|
|
1577
|
+
return import("./Select-D3LTuHwe.js");
|
|
1578
|
+
}
|
|
1579
|
+
}), registerRenderer({
|
|
1580
|
+
type: "multi-select",
|
|
1581
|
+
isFormItem: !0,
|
|
1582
|
+
getComponent: function() {
|
|
1583
|
+
return import("./Select-D3LTuHwe.js");
|
|
1584
|
+
}
|
|
1585
|
+
}), registerRenderer({
|
|
1586
|
+
type: "input-date",
|
|
1587
|
+
isFormItem: !0,
|
|
1588
|
+
getComponent: function() {
|
|
1589
|
+
return import("./InputDate-DLOwHbwT.js");
|
|
1590
|
+
}
|
|
1591
|
+
}), registerRenderer({
|
|
1592
|
+
type: "input-datetime",
|
|
1593
|
+
isFormItem: !0,
|
|
1594
|
+
getComponent: function() {
|
|
1595
|
+
return import("./InputDate-DLOwHbwT.js");
|
|
1596
|
+
}
|
|
1597
|
+
}), registerRenderer({
|
|
1598
|
+
type: "input-time",
|
|
1599
|
+
isFormItem: !0,
|
|
1600
|
+
getComponent: function() {
|
|
1601
|
+
return import("./InputDate-DLOwHbwT.js");
|
|
1602
|
+
}
|
|
1603
|
+
}), registerRenderer({
|
|
1604
|
+
type: "input-month",
|
|
1605
|
+
isFormItem: !0,
|
|
1606
|
+
getComponent: function() {
|
|
1607
|
+
return import("./InputDate-DLOwHbwT.js");
|
|
1608
|
+
}
|
|
1609
|
+
}), registerRenderer({
|
|
1610
|
+
type: "input-quarter",
|
|
1611
|
+
isFormItem: !0,
|
|
1612
|
+
getComponent: function() {
|
|
1613
|
+
return import("./InputDate-DLOwHbwT.js");
|
|
1614
|
+
}
|
|
1615
|
+
}), registerRenderer({
|
|
1616
|
+
type: "input-year",
|
|
1617
|
+
isFormItem: !0,
|
|
1618
|
+
getComponent: function() {
|
|
1619
|
+
return import("./InputDate-DLOwHbwT.js");
|
|
1620
|
+
}
|
|
1621
|
+
}), registerRenderer({
|
|
1622
|
+
type: "input-date-range",
|
|
1623
|
+
isFormItem: !0,
|
|
1624
|
+
getComponent: function() {
|
|
1625
|
+
return import("./InputDateRange-CnGNwIFe.js");
|
|
1626
|
+
}
|
|
1627
|
+
}), registerRenderer({
|
|
1628
|
+
type: "input-datetime-range",
|
|
1629
|
+
isFormItem: !0,
|
|
1630
|
+
getComponent: function() {
|
|
1631
|
+
return import("./InputDateRange-CnGNwIFe.js");
|
|
1632
|
+
}
|
|
1633
|
+
}), registerRenderer({
|
|
1634
|
+
type: "input-time-range",
|
|
1635
|
+
isFormItem: !0,
|
|
1636
|
+
getComponent: function() {
|
|
1637
|
+
return import("./InputDateRange-CnGNwIFe.js");
|
|
1638
|
+
}
|
|
1639
|
+
}), registerRenderer({
|
|
1640
|
+
type: "input-formula",
|
|
1641
|
+
isFormItem: !0,
|
|
1642
|
+
getComponent: function() {
|
|
1643
|
+
return import("./InputFormula-CV5j31Ow.js");
|
|
1644
|
+
}
|
|
1645
|
+
}), registerRenderer({
|
|
1646
|
+
type: "input-repeat",
|
|
1647
|
+
isFormItem: !0,
|
|
1648
|
+
getComponent: function() {
|
|
1649
|
+
return import("./InputRepeat-BhF5KVB2.js");
|
|
1650
|
+
}
|
|
1651
|
+
}), registerRenderer({
|
|
1652
|
+
type: "input-tree",
|
|
1653
|
+
isFormItem: !0,
|
|
1654
|
+
getComponent: function() {
|
|
1655
|
+
return import("./InputTree-DchkyMbL.js");
|
|
1656
|
+
}
|
|
1657
|
+
}), registerRenderer({
|
|
1658
|
+
type: "tree-select",
|
|
1659
|
+
isFormItem: !0,
|
|
1660
|
+
getComponent: function() {
|
|
1661
|
+
return import("./TreeSelect-DAlWCEqs.js");
|
|
1662
|
+
}
|
|
1663
|
+
}), registerRenderer({
|
|
1664
|
+
type: "input-image",
|
|
1665
|
+
isFormItem: !0,
|
|
1666
|
+
getComponent: function() {
|
|
1667
|
+
return import("./InputImage-BF7DAF8L.js");
|
|
1668
|
+
}
|
|
1669
|
+
}), registerRenderer({
|
|
1670
|
+
type: "input-file",
|
|
1671
|
+
isFormItem: !0,
|
|
1672
|
+
getComponent: function() {
|
|
1673
|
+
return import("./InputFile-DOym0HDc.js");
|
|
1674
|
+
}
|
|
1675
|
+
}), registerRenderer({
|
|
1676
|
+
type: "uuid",
|
|
1677
|
+
isFormItem: !0,
|
|
1678
|
+
getComponent: function() {
|
|
1679
|
+
return import("./UUID-B5UZnlxW.js");
|
|
1680
|
+
}
|
|
1681
|
+
}), registerRenderer({
|
|
1682
|
+
type: "matrix-checkboxes",
|
|
1683
|
+
isFormItem: !0,
|
|
1684
|
+
getComponent: function() {
|
|
1685
|
+
return import("./MatrixCheckboxes-B9hmFakW.js");
|
|
1686
|
+
}
|
|
1687
|
+
}), registerRenderer({
|
|
1688
|
+
type: "input-month-range",
|
|
1689
|
+
isFormItem: !0,
|
|
1690
|
+
getComponent: function() {
|
|
1691
|
+
return import("./InputMonthRange-BjD3hmwp.js");
|
|
1692
|
+
}
|
|
1693
|
+
}), registerRenderer({
|
|
1694
|
+
type: "input-quarter-range",
|
|
1695
|
+
isFormItem: !0,
|
|
1696
|
+
getComponent: function() {
|
|
1697
|
+
return import("./InputQuarterRange-DZKnkZ_s.js");
|
|
1698
|
+
}
|
|
1699
|
+
}), registerRenderer({
|
|
1700
|
+
type: "input-year-range",
|
|
1701
|
+
isFormItem: !0,
|
|
1702
|
+
getComponent: function() {
|
|
1703
|
+
return import("./InputYearRange-WJKJeloR.js");
|
|
1704
|
+
}
|
|
1705
|
+
}), registerRenderer({
|
|
1706
|
+
type: "input-range",
|
|
1707
|
+
isFormItem: !0,
|
|
1708
|
+
getComponent: function() {
|
|
1709
|
+
return import("./InputRange-DiHKf3tP.js");
|
|
1710
|
+
}
|
|
1711
|
+
}), registerRenderer({
|
|
1712
|
+
type: "input-array",
|
|
1713
|
+
isFormItem: !0,
|
|
1714
|
+
getComponent: function() {
|
|
1715
|
+
return import("./InputArray-Dov-RBrP.js");
|
|
1716
|
+
}
|
|
1717
|
+
}), registerRenderer({
|
|
1718
|
+
type: "combo",
|
|
1719
|
+
isFormItem: !0,
|
|
1720
|
+
getComponent: function() {
|
|
1721
|
+
return import("./Combo-Cabifvbg.js");
|
|
1722
|
+
}
|
|
1723
|
+
}), registerRenderer({
|
|
1724
|
+
type: "input-kv",
|
|
1725
|
+
isFormItem: !0,
|
|
1726
|
+
getComponent: function() {
|
|
1727
|
+
return import("./Combo-Cabifvbg.js");
|
|
1728
|
+
}
|
|
1729
|
+
}), registerRenderer({
|
|
1730
|
+
type: "input-kvs",
|
|
1731
|
+
isFormItem: !0,
|
|
1732
|
+
getComponent: function() {
|
|
1733
|
+
return import("./Combo-Cabifvbg.js");
|
|
1734
|
+
}
|
|
1735
|
+
}), registerRenderer({
|
|
1736
|
+
type: "condition-builder",
|
|
1737
|
+
isFormItem: !0,
|
|
1738
|
+
getComponent: function() {
|
|
1739
|
+
return import("./ConditionBuilder-BacjsaTh.js");
|
|
1740
|
+
}
|
|
1741
|
+
}), registerRenderer({
|
|
1742
|
+
type: "input-sub-form",
|
|
1743
|
+
isFormItem: !0,
|
|
1744
|
+
getComponent: function() {
|
|
1745
|
+
return import("./InputSubForm-BkM_3Rjg.js");
|
|
1746
|
+
}
|
|
1747
|
+
}), registerRenderer({
|
|
1748
|
+
type: "input-excel",
|
|
1749
|
+
isFormItem: !0,
|
|
1750
|
+
getComponent: function() {
|
|
1751
|
+
return import("./InputExcel-BjWNYvnN.js");
|
|
1752
|
+
}
|
|
1753
|
+
}), registerRenderer({
|
|
1754
|
+
type: "input-rich-text",
|
|
1755
|
+
isFormItem: !0,
|
|
1756
|
+
getComponent: function() {
|
|
1757
|
+
return import("./InputRichText-BBBdDFA2.js");
|
|
1758
|
+
}
|
|
1759
|
+
}), registerRenderer({
|
|
1760
|
+
type: "diff-editor",
|
|
1761
|
+
isFormItem: !0,
|
|
1762
|
+
getComponent: function() {
|
|
1763
|
+
return import("./DiffEditor-DY8XdtJS.js");
|
|
1764
|
+
}
|
|
1765
|
+
}), registerRenderer({
|
|
1766
|
+
type: "input-color",
|
|
1767
|
+
isFormItem: !0,
|
|
1768
|
+
getComponent: function() {
|
|
1769
|
+
return import("./InputColor-DhVJhPp6.js");
|
|
1770
|
+
}
|
|
1771
|
+
}), registerRenderer({
|
|
1772
|
+
type: "chained-select",
|
|
1773
|
+
isFormItem: !0,
|
|
1774
|
+
getComponent: function() {
|
|
1775
|
+
return import("./ChainedSelect-CUU7qCFQ.js");
|
|
1776
|
+
}
|
|
1777
|
+
}), registerRenderer({
|
|
1778
|
+
type: "nested-select",
|
|
1779
|
+
isFormItem: !0,
|
|
1780
|
+
getComponent: function() {
|
|
1781
|
+
return import("./NestedSelect-tQztH4PI.js");
|
|
1782
|
+
}
|
|
1783
|
+
}), registerRenderer({
|
|
1784
|
+
type: "transfer",
|
|
1785
|
+
isFormItem: !0,
|
|
1786
|
+
getComponent: function() {
|
|
1787
|
+
return import("./Transfer-tYS9Rx8U.js");
|
|
1788
|
+
}
|
|
1789
|
+
}), registerRenderer({
|
|
1790
|
+
type: "transfer-picker",
|
|
1791
|
+
isFormItem: !0,
|
|
1792
|
+
getComponent: function() {
|
|
1793
|
+
return import("./TransferPicker-C7Wzyuct.js");
|
|
1794
|
+
}
|
|
1795
|
+
}), registerRenderer({
|
|
1796
|
+
type: "input-table",
|
|
1797
|
+
isFormItem: !0,
|
|
1798
|
+
getComponent: function() {
|
|
1799
|
+
return import("./InputTable-CgOqC6Pc.js");
|
|
1800
|
+
}
|
|
1801
|
+
}), registerRenderer({
|
|
1802
|
+
type: "picker",
|
|
1803
|
+
isFormItem: !0,
|
|
1804
|
+
getComponent: function() {
|
|
1805
|
+
return import("./Picker-Cu52ukRg.js");
|
|
1806
|
+
}
|
|
1807
|
+
}), registerRenderer({
|
|
1808
|
+
type: "icon-picker",
|
|
1809
|
+
isFormItem: !0,
|
|
1810
|
+
getComponent: function() {
|
|
1811
|
+
return import("./IconPicker-DqNlu5Zd.js");
|
|
1812
|
+
}
|
|
1813
|
+
}), registerRenderer({
|
|
1814
|
+
type: "icon-select",
|
|
1815
|
+
isFormItem: !0,
|
|
1816
|
+
getComponent: function() {
|
|
1817
|
+
return import("./IconSelect-CvBITEcy.js");
|
|
1818
|
+
}
|
|
1819
|
+
}), registerRenderer({
|
|
1820
|
+
type: "formula",
|
|
1821
|
+
isFormItem: !0,
|
|
1822
|
+
getComponent: function() {
|
|
1823
|
+
return import("./Formula-ABhgdx_Q.js");
|
|
1824
|
+
}
|
|
1825
|
+
}), registerRenderer({
|
|
1826
|
+
type: "fieldset",
|
|
1827
|
+
isFormItem: !0,
|
|
1828
|
+
getComponent: function() {
|
|
1829
|
+
return import("./FieldSet-DVAa2H_Q.js");
|
|
1830
|
+
}
|
|
1831
|
+
}), registerRenderer({
|
|
1832
|
+
type: "tabs-transfer",
|
|
1833
|
+
isFormItem: !0,
|
|
1834
|
+
getComponent: function() {
|
|
1835
|
+
return import("./TabsTransfer-Cs_Rg0TU.js");
|
|
1836
|
+
}
|
|
1837
|
+
}), registerRenderer({
|
|
1838
|
+
type: "tabs-transfer-picker",
|
|
1839
|
+
isFormItem: !0,
|
|
1840
|
+
getComponent: function() {
|
|
1841
|
+
return import("./TabsTransferPicker-VA3Vlla-.js");
|
|
1842
|
+
}
|
|
1843
|
+
}), registerRenderer({
|
|
1844
|
+
type: "group",
|
|
1845
|
+
getComponent: function() {
|
|
1846
|
+
return import("./Group-7sGnjMli.js");
|
|
1847
|
+
}
|
|
1848
|
+
}), registerRenderer({
|
|
1849
|
+
type: "input-group",
|
|
1850
|
+
isFormItem: !0,
|
|
1851
|
+
getComponent: function() {
|
|
1852
|
+
return import("./InputGroup-C7O2ba0g.js");
|
|
1853
|
+
}
|
|
1854
|
+
}), registerRenderer({
|
|
1855
|
+
type: "users-select",
|
|
1856
|
+
isFormItem: !0,
|
|
1857
|
+
getComponent: function() {
|
|
1858
|
+
return import("./UserSelect-DqZZQB83.js");
|
|
1859
|
+
}
|
|
1860
|
+
}), registerRenderer({
|
|
1861
|
+
type: "input-signature",
|
|
1862
|
+
isFormItem: !0,
|
|
1863
|
+
getComponent: function() {
|
|
1864
|
+
return import("./InputSignature-CbfGjJlU.js");
|
|
1865
|
+
}
|
|
1866
|
+
}), registerRenderer({
|
|
1867
|
+
type: "input-verification-code",
|
|
1868
|
+
isFormItem: !0,
|
|
1869
|
+
getComponent: function() {
|
|
1870
|
+
return import("./InputVerificationCode-kMxc8wW7.js");
|
|
1871
|
+
}
|
|
1872
|
+
}), registerRenderer({
|
|
1873
|
+
type: "grid-2d",
|
|
1874
|
+
getComponent: function() {
|
|
1875
|
+
return import("./Grid2D-DmdOVnhu.js");
|
|
1876
|
+
}
|
|
1877
|
+
}), registerRenderer({
|
|
1878
|
+
type: "hbox",
|
|
1879
|
+
getComponent: function() {
|
|
1880
|
+
return import("./HBox-DxchKWfv.js");
|
|
1881
|
+
}
|
|
1882
|
+
}), registerRenderer({
|
|
1883
|
+
type: "vbox",
|
|
1884
|
+
getComponent: function() {
|
|
1885
|
+
return import("./VBox-C1OZZT8-.js");
|
|
1886
|
+
}
|
|
1887
|
+
}), registerRenderer({
|
|
1888
|
+
type: "image",
|
|
1889
|
+
getComponent: function() {
|
|
1890
|
+
return import("./Image-DM9_Ii2b.js");
|
|
1891
|
+
}
|
|
1892
|
+
}), registerRenderer({
|
|
1893
|
+
type: "images",
|
|
1894
|
+
getComponent: function() {
|
|
1895
|
+
return import("./Images-cRmH380W.js");
|
|
1896
|
+
}
|
|
1897
|
+
}), registerRenderer({
|
|
1898
|
+
type: "list",
|
|
1899
|
+
getComponent: function() {
|
|
1900
|
+
return import("./List-D3183f4Z.js");
|
|
1901
|
+
}
|
|
1902
|
+
}), registerRenderer({
|
|
1903
|
+
type: "log",
|
|
1904
|
+
getComponent: function() {
|
|
1905
|
+
return import("./Log-D6VU702y.js");
|
|
1906
|
+
}
|
|
1907
|
+
}), registerRenderer({
|
|
1908
|
+
type: "operation",
|
|
1909
|
+
getComponent: function() {
|
|
1910
|
+
return import("./Operation-DIv6n9dT.js");
|
|
1911
|
+
}
|
|
1912
|
+
}), registerRenderer({
|
|
1913
|
+
type: "page",
|
|
1914
|
+
getComponent: function() {
|
|
1915
|
+
return import("./Page-WoZtIIfk.js");
|
|
1916
|
+
}
|
|
1917
|
+
}), registerRenderer({
|
|
1918
|
+
type: "pagination-wrapper",
|
|
1919
|
+
getComponent: function() {
|
|
1920
|
+
return import("./PaginationWrapper-CtIJOXdw.js");
|
|
1921
|
+
}
|
|
1922
|
+
}), registerRenderer({
|
|
1923
|
+
type: "panel",
|
|
1924
|
+
getComponent: function() {
|
|
1925
|
+
return import("./Panel-Dt4KQrKa.js");
|
|
1926
|
+
}
|
|
1927
|
+
}), registerRenderer({
|
|
1928
|
+
type: "plain",
|
|
1929
|
+
alias: ["text"],
|
|
1930
|
+
getComponent: function() {
|
|
1931
|
+
return import("./Plain-DIlG753a.js");
|
|
1932
|
+
}
|
|
1933
|
+
}), registerRenderer({
|
|
1934
|
+
type: "property",
|
|
1935
|
+
getComponent: function() {
|
|
1936
|
+
return import("./Property-DRSklFlT.js");
|
|
1937
|
+
}
|
|
1938
|
+
}), registerRenderer({
|
|
1939
|
+
type: "portlet",
|
|
1940
|
+
getComponent: function() {
|
|
1941
|
+
return import("./Portlet-3Nh2cWeq.js");
|
|
1942
|
+
}
|
|
1943
|
+
}), registerRenderer({
|
|
1944
|
+
type: "spinner",
|
|
1945
|
+
getComponent: function() {
|
|
1946
|
+
return import("./Spinner-DZDEct1A.js");
|
|
1947
|
+
}
|
|
1948
|
+
}), registerRenderer({
|
|
1949
|
+
type: "table",
|
|
1950
|
+
getComponent: function() {
|
|
1951
|
+
return import("./Table-B8tWpiPU.js");
|
|
1952
|
+
}
|
|
1953
|
+
}), registerRenderer({
|
|
1954
|
+
type: "tabs",
|
|
1955
|
+
getComponent: function() {
|
|
1956
|
+
return import("./Tabs-XleB-2Mc.js");
|
|
1957
|
+
}
|
|
1958
|
+
}), registerRenderer({
|
|
1959
|
+
type: "tpl",
|
|
1960
|
+
alias: ["html"],
|
|
1961
|
+
getComponent: function() {
|
|
1962
|
+
return import("./Tpl-C28lpITc.js");
|
|
1963
|
+
}
|
|
1964
|
+
}), registerRenderer({
|
|
1965
|
+
type: "mapping",
|
|
1966
|
+
alias: ["map"],
|
|
1967
|
+
getComponent: function() {
|
|
1968
|
+
return import("./Mapping-BATMD_xR.js");
|
|
1969
|
+
}
|
|
1970
|
+
}), registerRenderer({
|
|
1971
|
+
type: "progress",
|
|
1972
|
+
getComponent: function() {
|
|
1973
|
+
return import("./Progress-Dh2FTsky.js");
|
|
1974
|
+
}
|
|
1975
|
+
}), registerRenderer({
|
|
1976
|
+
type: "status",
|
|
1977
|
+
getComponent: function() {
|
|
1978
|
+
return import("./Status-CDC2e2_o.js");
|
|
1979
|
+
}
|
|
1980
|
+
}), registerRenderer({
|
|
1981
|
+
type: "json",
|
|
1982
|
+
getComponent: function() {
|
|
1983
|
+
return import("./Json-DFjy1HRw.js");
|
|
1984
|
+
}
|
|
1985
|
+
}), registerRenderer({
|
|
1986
|
+
type: "link",
|
|
1987
|
+
getComponent: function() {
|
|
1988
|
+
return import("./Link-nYGLB6gy.js");
|
|
1989
|
+
}
|
|
1990
|
+
}), registerRenderer({
|
|
1991
|
+
type: "wizard",
|
|
1992
|
+
getComponent: function() {
|
|
1993
|
+
return import("./Wizard-DkqCsGz-.js");
|
|
1994
|
+
}
|
|
1995
|
+
}), registerRenderer({
|
|
1996
|
+
type: "chart",
|
|
1997
|
+
getComponent: function() {
|
|
1998
|
+
return import("./Chart-BmOD9NEG.js");
|
|
1999
|
+
}
|
|
2000
|
+
}), registerRenderer({
|
|
2001
|
+
type: "container",
|
|
2002
|
+
getComponent: function() {
|
|
2003
|
+
return import("./Container-C5-66abH.js");
|
|
2004
|
+
}
|
|
2005
|
+
}), registerRenderer({
|
|
2006
|
+
type: "switch-container",
|
|
2007
|
+
getComponent: function() {
|
|
2008
|
+
return import("./SwitchContainer-zXvaPFlG.js");
|
|
2009
|
+
}
|
|
2010
|
+
}), registerRenderer({
|
|
2011
|
+
type: "search-box",
|
|
2012
|
+
getComponent: function() {
|
|
2013
|
+
return import("./SearchBox-CTxSMcV2.js");
|
|
2014
|
+
}
|
|
2015
|
+
}), registerRenderer({
|
|
2016
|
+
type: "service",
|
|
2017
|
+
getComponent: function() {
|
|
2018
|
+
return import("./Service-CN2v_Z9z.js");
|
|
2019
|
+
}
|
|
2020
|
+
}), registerRenderer({
|
|
2021
|
+
type: "sparkline",
|
|
2022
|
+
getComponent: function() {
|
|
2023
|
+
return import("./SparkLine-Ce6-mdqG.js");
|
|
2024
|
+
}
|
|
2025
|
+
}), registerRenderer({
|
|
2026
|
+
type: "video",
|
|
2027
|
+
getComponent: function() {
|
|
2028
|
+
return import("./Video-C1FRwLLL.js");
|
|
2029
|
+
}
|
|
2030
|
+
}), registerRenderer({
|
|
2031
|
+
type: "audio",
|
|
2032
|
+
getComponent: function() {
|
|
2033
|
+
return import("./Audio-CmGRzA8C.js");
|
|
2034
|
+
}
|
|
2035
|
+
}), registerRenderer({
|
|
2036
|
+
type: "nav",
|
|
2037
|
+
alias: ["navigation"],
|
|
2038
|
+
getComponent: function() {
|
|
2039
|
+
return import("./Nav-DHIehZOG.js");
|
|
2040
|
+
}
|
|
2041
|
+
}), registerRenderer({
|
|
2042
|
+
type: "number",
|
|
2043
|
+
getComponent: function() {
|
|
2044
|
+
return import("./Number-Cndoqeyx.js");
|
|
2045
|
+
}
|
|
2046
|
+
}), registerRenderer({
|
|
2047
|
+
type: "tasks",
|
|
2048
|
+
getComponent: function() {
|
|
2049
|
+
return import("./Tasks-C2-ayUd-.js");
|
|
2050
|
+
}
|
|
2051
|
+
}), registerRenderer({
|
|
2052
|
+
type: "drawer",
|
|
2053
|
+
getComponent: function() {
|
|
2054
|
+
return import("./Drawer-DslUxLot.js");
|
|
2055
|
+
}
|
|
2056
|
+
}), registerRenderer({
|
|
2057
|
+
type: "wrapper",
|
|
2058
|
+
getComponent: function() {
|
|
2059
|
+
return import("./Wrapper-DmZ78GYG.js");
|
|
2060
|
+
}
|
|
2061
|
+
}), registerRenderer({
|
|
2062
|
+
type: "iframe",
|
|
2063
|
+
getComponent: function() {
|
|
2064
|
+
return import("./IFrame-DaZ1v2-9.js");
|
|
2065
|
+
}
|
|
2066
|
+
}), registerRenderer({
|
|
2067
|
+
type: "barcode",
|
|
2068
|
+
getComponent: function() {
|
|
2069
|
+
return import("./BarCode-Bgr2-a69.js");
|
|
2070
|
+
}
|
|
2071
|
+
}), registerRenderer({
|
|
2072
|
+
type: "qrcode",
|
|
2073
|
+
alias: ["qr-code"],
|
|
2074
|
+
getComponent: function() {
|
|
2075
|
+
return import("./QRCode-BeUD-g8-.js");
|
|
2076
|
+
}
|
|
2077
|
+
}), registerRenderer({
|
|
2078
|
+
type: "icon",
|
|
2079
|
+
getComponent: function() {
|
|
2080
|
+
return import("./Icon-DNbdrsn8.js");
|
|
2081
|
+
}
|
|
2082
|
+
}), registerRenderer({
|
|
2083
|
+
type: "carousel",
|
|
2084
|
+
getComponent: function() {
|
|
2085
|
+
return import("./Carousel-Ba4JeK7n.js");
|
|
2086
|
+
}
|
|
2087
|
+
}), registerRenderer({
|
|
2088
|
+
type: "anchor-nav",
|
|
2089
|
+
getComponent: function() {
|
|
2090
|
+
return import("./AnchorNav-1OrNpCPU.js");
|
|
2091
|
+
}
|
|
2092
|
+
}), registerRenderer({
|
|
2093
|
+
type: "steps",
|
|
2094
|
+
getComponent: function() {
|
|
2095
|
+
return import("./Steps-CGyTaaVI.js");
|
|
2096
|
+
}
|
|
2097
|
+
}), registerRenderer({
|
|
2098
|
+
type: "timeline",
|
|
2099
|
+
getComponent: function() {
|
|
2100
|
+
return import("./Timeline-CctoJRQo.js");
|
|
2101
|
+
}
|
|
2102
|
+
}), registerRenderer({
|
|
2103
|
+
type: "markdown",
|
|
2104
|
+
getComponent: function() {
|
|
2105
|
+
return import("./Markdown-Baxbu8lV.js");
|
|
2106
|
+
}
|
|
2107
|
+
}), registerRenderer({
|
|
2108
|
+
type: "table-view",
|
|
2109
|
+
getComponent: function() {
|
|
2110
|
+
return import("./TableView-nlFBhvL1.js");
|
|
2111
|
+
}
|
|
2112
|
+
}), registerRenderer({
|
|
2113
|
+
type: "code",
|
|
2114
|
+
getComponent: function() {
|
|
2115
|
+
return import("./Code-B7FhTic-.js");
|
|
2116
|
+
}
|
|
2117
|
+
}), registerRenderer({
|
|
2118
|
+
type: "web-component",
|
|
2119
|
+
getComponent: function() {
|
|
2120
|
+
return import("./WebComponent-g8Zc9zXp.js");
|
|
2121
|
+
}
|
|
2122
|
+
}), registerRenderer({
|
|
2123
|
+
type: "grid-nav",
|
|
2124
|
+
getComponent: function() {
|
|
2125
|
+
return import("./GridNav-lHAunT1M.js");
|
|
2126
|
+
}
|
|
2127
|
+
}), registerRenderer({
|
|
2128
|
+
type: "tooltip-wrapper",
|
|
2129
|
+
getComponent: function() {
|
|
2130
|
+
return import("./TooltipWrapper-BGNr8U2K.js");
|
|
2131
|
+
}
|
|
2132
|
+
}), registerRenderer({
|
|
2133
|
+
type: "tag",
|
|
2134
|
+
getComponent: function() {
|
|
2135
|
+
return import("./Tag-tr5RKBfl.js");
|
|
2136
|
+
}
|
|
2137
|
+
}), registerRenderer({
|
|
2138
|
+
type: "table2",
|
|
2139
|
+
getComponent: function() {
|
|
2140
|
+
return import("./Table2-CQZ3und9.js");
|
|
2141
|
+
}
|
|
2142
|
+
}), registerRenderer({
|
|
2143
|
+
type: "column-toggler",
|
|
2144
|
+
getComponent: function() {
|
|
2145
|
+
return import("./ColumnToggler-D0NlxwMq.js");
|
|
2146
|
+
}
|
|
2147
|
+
}), registerRenderer({
|
|
2148
|
+
type: "words",
|
|
2149
|
+
getComponent: function() {
|
|
2150
|
+
return import("./Words-DUuKqyIf.js");
|
|
2151
|
+
}
|
|
2152
|
+
}), registerRenderer({
|
|
2153
|
+
type: "tags",
|
|
2154
|
+
getComponent: function() {
|
|
2155
|
+
return import("./Words-DUuKqyIf.js");
|
|
2156
|
+
}
|
|
2157
|
+
}), registerRenderer({
|
|
2158
|
+
type: "password",
|
|
2159
|
+
getComponent: function() {
|
|
2160
|
+
return import("./Password-Wjfq7MSA.js");
|
|
2161
|
+
}
|
|
2162
|
+
}), registerRenderer({
|
|
2163
|
+
type: "date-range",
|
|
2164
|
+
getComponent: function() {
|
|
2165
|
+
return import("./DateRange-D2lKQT_J.js");
|
|
2166
|
+
}
|
|
2167
|
+
}), registerRenderer({
|
|
2168
|
+
type: "multiline-text",
|
|
2169
|
+
getComponent: function() {
|
|
2170
|
+
return import("./MultilineText-0fMQhUCY.js");
|
|
2171
|
+
}
|
|
2172
|
+
}), registerRenderer({
|
|
2173
|
+
type: "office-viewer",
|
|
2174
|
+
getComponent: function() {
|
|
2175
|
+
return import("./OfficeViewer-BVD_e5eZ.js");
|
|
2176
|
+
}
|
|
2177
|
+
}), registerRenderer({
|
|
2178
|
+
type: "pdf-viewer",
|
|
2179
|
+
getComponent: function() {
|
|
2180
|
+
return Promise.resolve({});
|
|
2181
|
+
}
|
|
2182
|
+
}), registerRenderer({
|
|
2183
|
+
type: "amis",
|
|
2184
|
+
getComponent: function() {
|
|
2185
|
+
return import("./AMIS--SZXSfKF.js");
|
|
2186
|
+
}
|
|
2187
|
+
}), registerRenderer({
|
|
2188
|
+
type: "slider",
|
|
2189
|
+
getComponent: function() {
|
|
2190
|
+
return import("./Slider-C0jqeBGt.js");
|
|
2191
|
+
}
|
|
2192
|
+
});
|
|
2193
|
+
function guid() {
|
|
2194
|
+
return "mk-" + "xxxxxxxx".replace(/x/g, function(e) {
|
|
2195
|
+
return ((Math.random() * 16 | 0) & 3 | 8).toString(16);
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
function setBorderStyle(e, t) {
|
|
2199
|
+
t.borderWidth !== void 0 && e.setAttribute("stroke-width", `${t.borderWidth}`), t.borderColor !== void 0 && e.setAttribute("stroke", t.borderColor), t.borderRadius !== void 0 && e.setAttribute("rx", `${t.borderRadius}`), t.borderRadius && e.setAttribute("stroke-linecap", "round");
|
|
2200
|
+
}
|
|
2201
|
+
function mk(e, t) {
|
|
2202
|
+
var n = t.colorScheme, i = t.borderRadius, a = t.borderWidth, o = t.borderColor, s = t.supportBorderRadius, c = t.width, l = t.height, u = t.shadow, d = new DOMParser().parseFromString(e, "image/svg+xml").documentElement, f = d.querySelectorAll("rect"), m = d.querySelectorAll("path"), g = d.querySelectorAll("polygon"), _ = __spreadArray(__spreadArray(__spreadArray([], __read(m), !1), __read(g), !1), __read(f), !1);
|
|
2203
|
+
if (s !== !1) {
|
|
2204
|
+
var v = __read((d.getAttribute("viewBox") || "0 0").split(" "), 2), y = v[0], b = v[1];
|
|
2205
|
+
d.setAttribute("viewBox", `${y} ${b} ${c} ${l}`), f.forEach(function(e) {
|
|
2206
|
+
e.setAttribute("width", `${c}`), e.setAttribute("height", `${l}`);
|
|
2207
|
+
});
|
|
2208
|
+
}
|
|
2209
|
+
_.forEach(function(e) {
|
|
2210
|
+
setBorderStyle(e, {
|
|
2211
|
+
borderWidth: a,
|
|
2212
|
+
borderColor: o,
|
|
2213
|
+
borderRadius: i
|
|
2214
|
+
});
|
|
2215
|
+
});
|
|
2216
|
+
var x = d.querySelectorAll("linearGradient"), S = d.querySelector("style"), C = /* @__PURE__ */ new Map();
|
|
2217
|
+
x.length && x.forEach(function(e) {
|
|
2218
|
+
var t = e.getAttribute("id");
|
|
2219
|
+
t && C.set(t, guid());
|
|
2220
|
+
}), S && ((S.textContent || "").match(/\.[a-zA-Z0-9_-]+/g)?.map(function(e) {
|
|
2221
|
+
return e.replace(".", "");
|
|
2222
|
+
}) || []).forEach(function(e) {
|
|
2223
|
+
C.set(e, guid());
|
|
2224
|
+
});
|
|
2225
|
+
var w = { overflow: "visible" };
|
|
2226
|
+
u?.enable && (w.filter = `drop-shadow(${u.direction}px ${u.direction}px ${u.blur}px ${u.color})`);
|
|
2227
|
+
var T = d.outerHTML;
|
|
2228
|
+
return n && Object.keys(n).forEach(function(e) {
|
|
2229
|
+
T = T.replace(new RegExp(e, "g"), n[e]);
|
|
2230
|
+
}), C.forEach(function(e, t) {
|
|
2231
|
+
T = T.replace(new RegExp(t, "g"), e);
|
|
2232
|
+
}), {
|
|
2233
|
+
icon: T,
|
|
2234
|
+
style: w
|
|
2235
|
+
};
|
|
2236
|
+
}
|
|
2237
|
+
registerCustomVendor("mk", mk);
|
|
2238
|
+
var import_crypto_js = /* @__PURE__ */ __toESM(require_crypto_js(), 1);
|
|
2239
|
+
const aesEncrypt = (e) => {
|
|
2240
|
+
let t = JSON.stringify(e);
|
|
2241
|
+
return {
|
|
2242
|
+
encrypt_msg: import_crypto_js.default.AES.encrypt(import_crypto_js.default.enc.Utf8.parse(t), import_crypto_js.default.enc.Utf8.parse(AES_KEY), {
|
|
2243
|
+
padding: import_crypto_js.default.pad.ZeroPadding,
|
|
2244
|
+
iv: import_crypto_js.default.enc.Utf8.parse(AES_KEY),
|
|
2245
|
+
mode: import_crypto_js.default.mode.ECB
|
|
2246
|
+
}).ciphertext.toString(import_crypto_js.default.enc.Hex),
|
|
2247
|
+
msg_len: t.length.toString()
|
|
2248
|
+
};
|
|
2249
|
+
}, AES_KEY = "2Wozy2aksie1puXU", DEFAULT_AMIS_ENV = {
|
|
2250
|
+
fetcher: async ({ url: e, method: t, data: n }) => {
|
|
2251
|
+
if (!e || !t) throw Error("URL and method are required");
|
|
2252
|
+
if (e.includes("business-map/place-search")) {
|
|
2253
|
+
let i = new URL(e);
|
|
2254
|
+
if (!n.searchText) return {
|
|
2255
|
+
status: 200,
|
|
2256
|
+
data: []
|
|
2257
|
+
};
|
|
2258
|
+
let a = aesEncrypt(n);
|
|
2259
|
+
i.search = `?${new URLSearchParams(a).toString()}`;
|
|
2260
|
+
let o = await fetch(i.toString(), { method: t }), s = await o.json();
|
|
2261
|
+
if (s.ret !== 0) throw Error(s.msg);
|
|
2262
|
+
let c = s.data.data.map((e) => ({
|
|
2263
|
+
label: e.address,
|
|
2264
|
+
value: e.address
|
|
2265
|
+
}));
|
|
2266
|
+
return {
|
|
2267
|
+
status: o.status,
|
|
2268
|
+
data: c
|
|
2269
|
+
};
|
|
2270
|
+
}
|
|
2271
|
+
let i = await fetch(e, {
|
|
2272
|
+
method: t,
|
|
2273
|
+
body: JSON.stringify(n)
|
|
2274
|
+
}), a = await i.json();
|
|
2275
|
+
return {
|
|
2276
|
+
status: i.status,
|
|
2277
|
+
data: a
|
|
2278
|
+
};
|
|
2279
|
+
},
|
|
2280
|
+
isCancel: (e) => (console.error(e), e instanceof Error),
|
|
2281
|
+
copy: (e) => navigator.clipboard.writeText(e)
|
|
2282
|
+
}, AMIS_DEFAULT_LOCALE = {
|
|
2283
|
+
"Action.countDown": "Wait for ${timeLeft}s",
|
|
2284
|
+
"Alert.info": "System Info",
|
|
2285
|
+
"App.home": "Home",
|
|
2286
|
+
"App.navigation": "Navigation",
|
|
2287
|
+
asc: "Asc",
|
|
2288
|
+
"Calendar.datepicker": "Date Picker",
|
|
2289
|
+
"Calendar.yearmonth": "YYYY MM",
|
|
2290
|
+
"Calendar.year": "YYYY",
|
|
2291
|
+
"Calendar.begin": "begin",
|
|
2292
|
+
"Calendar.end": "end",
|
|
2293
|
+
"Calendar.beginAndEnd": "b/e",
|
|
2294
|
+
"Calendar.toast": "Out of date range",
|
|
2295
|
+
"Calendar.startPick": "Select start time",
|
|
2296
|
+
"Calendar.endPick": "Select end time",
|
|
2297
|
+
cancel: "Cancel",
|
|
2298
|
+
"Card.dragTip": "Drag top button to sort",
|
|
2299
|
+
"Card.toggleDrag": "Toggle drag to sort",
|
|
2300
|
+
"City.street": "Enter street info",
|
|
2301
|
+
clear: "Clear",
|
|
2302
|
+
more: "More",
|
|
2303
|
+
"ColorPicker.placeholder": "Select color",
|
|
2304
|
+
"SubForm.add": "New",
|
|
2305
|
+
add: "New",
|
|
2306
|
+
"Combo.dragDropSort": "Drag to sort",
|
|
2307
|
+
"Combo.invalidData": "invalid data, please remove",
|
|
2308
|
+
"Combo.maxLength": "Maximum item ia {{MaxLength}}}. Please delete some",
|
|
2309
|
+
"Combo.minLength": "A least {{minLength}} item. Please add more",
|
|
2310
|
+
"Combo.type": "Type",
|
|
2311
|
+
confirm: "Confirm",
|
|
2312
|
+
"Copyable.tip": "Copy",
|
|
2313
|
+
"CRUD.exportCSV": "Export CSV",
|
|
2314
|
+
"CRUD.exportExcel": "Export Excel",
|
|
2315
|
+
"CRUD.exportExcelTemplate": "Export Excel Template",
|
|
2316
|
+
"CRUD.fetchFailed": "Fetch failed",
|
|
2317
|
+
"CRUD.filter": "Filter",
|
|
2318
|
+
"CRUD.selected": "selected {{total}} items: ",
|
|
2319
|
+
"CRUD.invalidArray": "data.items must be an array",
|
|
2320
|
+
"CRUD.invalidData": "data is empty",
|
|
2321
|
+
"CRUD.loadMore": "Load more",
|
|
2322
|
+
"CRUD.loadMoreDisableTip": "No data or last page",
|
|
2323
|
+
"CRUD.perPage": "Per page",
|
|
2324
|
+
"CRUD.stat": "{{page}} of {{lastPage}} total: {{total}}.",
|
|
2325
|
+
"CRUD.paginationGoText": "Go to",
|
|
2326
|
+
"CRUD.paginationPageText": "page",
|
|
2327
|
+
"CRUD.confirmLeaveUnSavedPage": "Change page will loss unsaved data, please confirm.",
|
|
2328
|
+
"PaginationWrapper.placeholder": "please config body",
|
|
2329
|
+
"Pagination.select": "{{count}} items/page",
|
|
2330
|
+
"Pagination.goto": "goto",
|
|
2331
|
+
"Pagination.go": "GO",
|
|
2332
|
+
"Pagination.totalPage": "total {{lastPage}} pages",
|
|
2333
|
+
"Pagination.totalCount": "total {{total}} items",
|
|
2334
|
+
"Date.titleYear": "select year",
|
|
2335
|
+
"Date.titleMonth": "select month and year",
|
|
2336
|
+
"Date.titleQuarter": "select quarter",
|
|
2337
|
+
"Date.titleDate": "select month, year and day",
|
|
2338
|
+
"Date.titleTime": "select time",
|
|
2339
|
+
"Date.daysago": "{{days}} day(s) ago",
|
|
2340
|
+
"Date.dayslater": "{{days}} day(s) later",
|
|
2341
|
+
"Date.endOfMonth": "last day of the month",
|
|
2342
|
+
"Date.endOfLastMonth": "last day of last month",
|
|
2343
|
+
"Date.endOfWeek": "Saturday",
|
|
2344
|
+
"Date.hoursago": "{{hours}} hour(s) ago",
|
|
2345
|
+
"Date.hourslater": "{{hours}} hour(s) later",
|
|
2346
|
+
"Date.invalid": "Invalid date",
|
|
2347
|
+
"Number.invalid": "Invalid number",
|
|
2348
|
+
"Date.monday": "Monday",
|
|
2349
|
+
"Date.monthsago": "{{months}} month(s) ago",
|
|
2350
|
+
"Date.monthslater": "{{months}} month(s) later",
|
|
2351
|
+
"Date.now": "Now",
|
|
2352
|
+
"Date.placeholder": "Select Date",
|
|
2353
|
+
"Date.quartersago": "{{quarters}} quarter(s) ago",
|
|
2354
|
+
"Date.quarterslater": "{{quarters}} quarter(s) later",
|
|
2355
|
+
"Date.startOfLastMonth": "First day of the last month",
|
|
2356
|
+
"Date.startOfLastQuarter": "First day of the last quarter",
|
|
2357
|
+
"Date.startOfMonth": "First day of the month",
|
|
2358
|
+
"Date.startOfQuarter": "First day of the quarter",
|
|
2359
|
+
"Date.today": "Today",
|
|
2360
|
+
"Date.tomorrow": "Tomorrow",
|
|
2361
|
+
"Date.weeksago": "{{weeks}} week(s) ago",
|
|
2362
|
+
"Date.weekslater": "{{weeks}} week(s) later",
|
|
2363
|
+
"Date.yesterday": "Yesterday",
|
|
2364
|
+
"dateformat.year": "YYYY",
|
|
2365
|
+
"DateRange.daysago": "Last {{days}} day(s)",
|
|
2366
|
+
"DateRange.dayslater": "Within {{days}} day(s)",
|
|
2367
|
+
"DateRange.weeksago": "Last {{weeks}} week(s)",
|
|
2368
|
+
"DateRange.weekslater": "Within {{weeks}} week(s)",
|
|
2369
|
+
"DateRange.monthsago": "Last {{months}} month(s)",
|
|
2370
|
+
"DateRange.monthslater": "Within {{months}} month(s)",
|
|
2371
|
+
"DateRange.quartersago": "Last {{quarters}} quarter(s)",
|
|
2372
|
+
"DateRange.quarterslater": "Within {{quarters}} quarter(s)",
|
|
2373
|
+
"DateRange.yearsago": "Last {{years}} year(s)",
|
|
2374
|
+
"DateRange.yearslater": "Within {{years}} year(s)",
|
|
2375
|
+
"DateRange.hoursago": "Last {{hours}} hour(s)",
|
|
2376
|
+
"DateRange.hourslater": "Within {{hours}} hour(s)",
|
|
2377
|
+
"DateRange.1dayago": "1 day ago",
|
|
2378
|
+
"DateRange.1daysago": "1 day ago",
|
|
2379
|
+
"DateRange.7daysago": "7 days ago",
|
|
2380
|
+
"DateRange.30daysago": "30 days ago",
|
|
2381
|
+
"DateRange.90daysago": "90 days ago",
|
|
2382
|
+
"DateRange.lastMonth": "Last month",
|
|
2383
|
+
"DateRange.lastWeek": "Last week",
|
|
2384
|
+
"DateRange.lastQuarter": "Last quarter",
|
|
2385
|
+
"DateRange.placeholder": "Select a Date range",
|
|
2386
|
+
"YearRange.placeholder": "Select a Year range",
|
|
2387
|
+
"DateRange.thisWeek": "This Week",
|
|
2388
|
+
"DateRange.thisMonth": "This month",
|
|
2389
|
+
"DateRange.thisQuarter": "This quarter",
|
|
2390
|
+
"DateRange.thisYear": "This year",
|
|
2391
|
+
"DateRange.lastYear": "Last year",
|
|
2392
|
+
"DateRange.valueConcat": " to ",
|
|
2393
|
+
"DateTime.placeholder": "Select Datetime",
|
|
2394
|
+
delete: "Delete",
|
|
2395
|
+
deleteConfirm: "Are your sure to delete?",
|
|
2396
|
+
deleteFailed: "Delete failed",
|
|
2397
|
+
desc: "Desc",
|
|
2398
|
+
"Dialog.close": "Close",
|
|
2399
|
+
"Dialog.screen": "Fullscreen Mode",
|
|
2400
|
+
"Dialog.reset": "Exit Fullscreen Mode",
|
|
2401
|
+
"Dialog.title": "Title",
|
|
2402
|
+
"Embed.invalidRoot": "Invalid root selector",
|
|
2403
|
+
"Embed.downloading": "Start downloading",
|
|
2404
|
+
"Excel.placeholder": "Drag 'n' drop excel here, or click to select",
|
|
2405
|
+
"Excel.parsed": "{{filename}} Parsed",
|
|
2406
|
+
fetchFailed: "Fetch api failed",
|
|
2407
|
+
"File.continueAdd": "Continue add",
|
|
2408
|
+
"File.downloadTpl": "Download template",
|
|
2409
|
+
"File.dragDrop": "Drag 'n' drop some files here or",
|
|
2410
|
+
"File.clickUpload": "click here to upload",
|
|
2411
|
+
"File.helpText": "Help documentation",
|
|
2412
|
+
"File.errorRetry": "File upload failed, please try again",
|
|
2413
|
+
"File.failed": "Failed files.",
|
|
2414
|
+
"File.invalidType": "{{files}} does not match type `{{accept}}`",
|
|
2415
|
+
"File.maxLength": "The maximum limit is {{maxLength}}",
|
|
2416
|
+
"File.maxSize": "{{filename}} you selected exceeds the maximum limit of {{maxSize}}",
|
|
2417
|
+
"File.pause": "Pause uplaod",
|
|
2418
|
+
"File.repick": "Repick",
|
|
2419
|
+
"File.result": "Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files",
|
|
2420
|
+
"File.retry": "Retry",
|
|
2421
|
+
"File.sizeLimit": "The maximum file size is {{maxSize}}",
|
|
2422
|
+
"File.start": "Start upload",
|
|
2423
|
+
"File.upload": "Upload",
|
|
2424
|
+
"File.uploadFailed": "return data of udpload api is empty",
|
|
2425
|
+
"File.uploading": "Uploading",
|
|
2426
|
+
"FormItem.autoFillLoadFailed": "return data of autoUpdate api is error",
|
|
2427
|
+
"FormItem.autoFillSuggest": "Reference data entry",
|
|
2428
|
+
"Form.loadOptionsFailed": "Failed to load options because: {{reason}}",
|
|
2429
|
+
"Form.submit": "Submit",
|
|
2430
|
+
"Form.title": "Form",
|
|
2431
|
+
"Form.unique": "Current value is not unique",
|
|
2432
|
+
"Form.validateFailed": "Form input validation failed",
|
|
2433
|
+
"Form.nestedError": "Form cannot appear as a descendant of form",
|
|
2434
|
+
"Form.rules.message": "The joint verification of form items failed",
|
|
2435
|
+
"File.imageAfterCrop": "Cropped image",
|
|
2436
|
+
"Iframe.invalid": "Invalid iframe url",
|
|
2437
|
+
"Iframe.invalidProtocol": "Can not use http url iframe in https",
|
|
2438
|
+
"Image.dragTip": "Drag to sort",
|
|
2439
|
+
"Image.upload": "Upload image",
|
|
2440
|
+
"Image.errorRetry": "upload failed, please try again",
|
|
2441
|
+
"Image.configError": "Can only set one of crop or multiple",
|
|
2442
|
+
"Image.crop": "Crop image",
|
|
2443
|
+
"Image.dragDrop": "Drag 'n' drop some photos here",
|
|
2444
|
+
"Image.height": "height: {{height}}px",
|
|
2445
|
+
"Image.limitMax": "Minimum image size is {{info}}",
|
|
2446
|
+
"Image.limitMin": "Maximum image size is {{info}}",
|
|
2447
|
+
"Image.limitRatio": "Please upload image with the size ratio of {{ration}}",
|
|
2448
|
+
"Image.pasteTip": "You can paste image from the clipboard",
|
|
2449
|
+
"Image.placeholder": "Click to select image or drag into this area",
|
|
2450
|
+
"Image.size": "size: ({{width}}px x {{height}}px)",
|
|
2451
|
+
"Image.sizeNotEqual": "The image you selected does not meet the size requirements {{info}}",
|
|
2452
|
+
"Image.width": "width: {{width}}px",
|
|
2453
|
+
"Image.zoomIn": "Zoom In",
|
|
2454
|
+
"Log.mustHaveSource": "Must have source in config",
|
|
2455
|
+
"Log.showLineNumber": "Display line number",
|
|
2456
|
+
"Log.notShowLineNumber": "Hide line number",
|
|
2457
|
+
"Log.expand": "Expand Operation",
|
|
2458
|
+
"Log.collapse": "Collapse Operation",
|
|
2459
|
+
link: "Link",
|
|
2460
|
+
loading: "Loading",
|
|
2461
|
+
loadingFailed: "Loading failed",
|
|
2462
|
+
"LocationPicker.placeholder": "Pick location",
|
|
2463
|
+
"LocationPicker.getLocation": "Click to obtain location information",
|
|
2464
|
+
"Month.placeholder": "Select a month",
|
|
2465
|
+
"MapPicker.searchPlaceholder": "Search location",
|
|
2466
|
+
"Nav.sourceError": "Fetch link error",
|
|
2467
|
+
networkError: "Network error or missing CORS configuration",
|
|
2468
|
+
noResult: "No Result",
|
|
2469
|
+
"NumberInput.placeholder": "Please enter a number",
|
|
2470
|
+
"Options.addPlaceholder": "Please enter a name",
|
|
2471
|
+
"Options.deleteAPI": "Must have deleteAPI",
|
|
2472
|
+
"Options.editLabel": "Edit {{label}}",
|
|
2473
|
+
"Options.label": "option",
|
|
2474
|
+
"Options.createFailed": "create failed, please check",
|
|
2475
|
+
"Options.retry": "Loading failed '{{reason}}', click retry",
|
|
2476
|
+
"placeholder.empty": "<Empty>",
|
|
2477
|
+
"placeholder.enter": "Enter",
|
|
2478
|
+
"placeholder.noData": "No data",
|
|
2479
|
+
"placeholder.noOption": "No option",
|
|
2480
|
+
"placeholder.selectData": "Select data",
|
|
2481
|
+
"Quarter.placeholder": "Select a quarter",
|
|
2482
|
+
"Repeat.pre": "Per",
|
|
2483
|
+
reset: "Reset",
|
|
2484
|
+
save: "Save",
|
|
2485
|
+
saveFailed: "Save failed",
|
|
2486
|
+
saveSuccess: "Saved successfully",
|
|
2487
|
+
search: "Search",
|
|
2488
|
+
searchHistory: "Search History",
|
|
2489
|
+
searchResult: "Search result",
|
|
2490
|
+
"Checkboxes.selectAll": "Select/Deselect All",
|
|
2491
|
+
"Select.checkAll": "Check all",
|
|
2492
|
+
"Select.clear": "Clear",
|
|
2493
|
+
"Select.edit": "Edit",
|
|
2494
|
+
"Select.upload": "Re upload",
|
|
2495
|
+
"Select.clearAll": "Clear all",
|
|
2496
|
+
"Select.createLabel": "New option",
|
|
2497
|
+
"Select.placeholder": "Select",
|
|
2498
|
+
"Select.searchPromptText": "Input to search",
|
|
2499
|
+
"Select.selected": "Selected",
|
|
2500
|
+
sort: "Sort",
|
|
2501
|
+
stop: "Stop",
|
|
2502
|
+
"SubForm.button": "Config",
|
|
2503
|
+
"SubForm.editDetail": "Edit Detail",
|
|
2504
|
+
"System.error": "System error",
|
|
2505
|
+
"System.notify": "System notify",
|
|
2506
|
+
"System.copy": "Content copied",
|
|
2507
|
+
"System.requestError": "Request error: ",
|
|
2508
|
+
"System.requestErrorStatus": "Request error, status code: ",
|
|
2509
|
+
"Table.addRow": "Add row",
|
|
2510
|
+
"Table.subAddRow": "Add sub row",
|
|
2511
|
+
"Table.copyRow": "Copy row",
|
|
2512
|
+
"Table.columnsVisibility": "Click to control columns visibility",
|
|
2513
|
+
"Table.columnsSorting": "Drag column to sort",
|
|
2514
|
+
"Table.deleteRow": "Delete current row",
|
|
2515
|
+
"Table.discard": "Discard",
|
|
2516
|
+
"Table.dragTip": "Drag the button on the left to sort",
|
|
2517
|
+
"Table.editing": "You should finished editing",
|
|
2518
|
+
"Table.editRow": "Edit current row",
|
|
2519
|
+
"Table.modified": "There are {{modified}} records have been modified, you can:",
|
|
2520
|
+
"Table.moved": "There are {{moved}} records changed the order, you can:",
|
|
2521
|
+
"Table.operation": "Operation",
|
|
2522
|
+
"Table.playload": "Must have playload",
|
|
2523
|
+
"Table.startSort": "Click to start sorting",
|
|
2524
|
+
"Table.valueField": "Must have valueField",
|
|
2525
|
+
"Table.index": "Index",
|
|
2526
|
+
"Table.add": "Add",
|
|
2527
|
+
"Table.addButtonDisabledTip": "In content editing, please submit first and then create a new option",
|
|
2528
|
+
"Table.toggleColumn": "Display columns",
|
|
2529
|
+
"Table.searchFields": "Set query fields",
|
|
2530
|
+
"Tag.placeholder": "No tag yet",
|
|
2531
|
+
"Tag.tip": "Recently used tag",
|
|
2532
|
+
"Text.add": "New {{label}}",
|
|
2533
|
+
"Time.placeholder": "Select Time",
|
|
2534
|
+
"Transfer.configError": "Config error",
|
|
2535
|
+
"Transfer.refreshIcon": "Click to refresh",
|
|
2536
|
+
"Transfer.searchKeyword": "Enter keywords",
|
|
2537
|
+
"Transfer.available": "Available",
|
|
2538
|
+
"Transfer.selectd": "Selected",
|
|
2539
|
+
"Transfer.selectFromLeft": "Select from the left",
|
|
2540
|
+
"Tree.addChild": "Add child",
|
|
2541
|
+
"Tree.addRoot": "Add root node",
|
|
2542
|
+
"Tree.editNode": "Edit this node",
|
|
2543
|
+
"Tree.invalidArray": "Data.options, data.items, or data must be arrays",
|
|
2544
|
+
"Tree.removeNode": "Remove this node",
|
|
2545
|
+
"Tree.root": "Root",
|
|
2546
|
+
"validate.equals": "value must be $1",
|
|
2547
|
+
"validate.equalsField": "value must be $1",
|
|
2548
|
+
"validate.gt": "Please enter a value greater than $1",
|
|
2549
|
+
"validate.isAlpha": "Please enter letters",
|
|
2550
|
+
"validate.isAlphanumeric": "Please enter letters or numbers",
|
|
2551
|
+
"validate.isEmail": "Email format is incorrect",
|
|
2552
|
+
"validate.isFloat": "Please enter a floating point value",
|
|
2553
|
+
"validate.isId": "invalid ID Card number",
|
|
2554
|
+
"validate.isInt": "Please enter an integer number",
|
|
2555
|
+
"validate.isJson": "invalid JSON format.",
|
|
2556
|
+
"validate.isLength": "Please make sure the length of contents is $1",
|
|
2557
|
+
"validate.isNumeric": "Please enter a number",
|
|
2558
|
+
"validate.isPhoneNumber": "invalid phone number",
|
|
2559
|
+
"validate.isRequired": "This is required",
|
|
2560
|
+
"validate.isTelNumber": "invalid telephone number",
|
|
2561
|
+
"validate.isUrl": "Incorrect URL format",
|
|
2562
|
+
"validate.isUrlPath": "You can only enter letters, numbers, `-` and`_` .",
|
|
2563
|
+
"validate.isWords": "Please enter word",
|
|
2564
|
+
"validate.isZipcode": "invalid postal address",
|
|
2565
|
+
"validate.lt": "Please enter a value less than $1",
|
|
2566
|
+
"validate.matchRegexp": "The format is not correct. Please enter the content with the rule `${1| raw}`.",
|
|
2567
|
+
"validate.maximum": "The input value exceeds the maximum value of $1",
|
|
2568
|
+
"validate.maxLength": "Please control the content length, do not enter more than $1 letters",
|
|
2569
|
+
"validate.minimum": "The input value is lower than the minimum value of $1",
|
|
2570
|
+
"validate.minLength": "Please enter more, at least $1 characters.",
|
|
2571
|
+
"validate.array.minLength": "Please add more members, at least $1 members",
|
|
2572
|
+
"validate.array.maxLength": "Please control the number of members, which cannot exceed $1",
|
|
2573
|
+
"validate.isVariableName": "Please enter a valid variable name",
|
|
2574
|
+
"validate.notEmptyString": "Please do not enter all blank characters",
|
|
2575
|
+
"validate.isDateTimeSame": "The current date value is invalid, please enter the same date value as $1",
|
|
2576
|
+
"validate.isDateTimeBefore": "The current date value is invalid, please enter a date value before $1",
|
|
2577
|
+
"validate.isDateTimeAfter": "The current date value is invalid, please enter a date value after $1",
|
|
2578
|
+
"validate.isDateTimeSameOrBefore": "The current date value is invalid, please enter a date value that is the same as or before $1",
|
|
2579
|
+
"validate.isDateTimeSameOrAfter": "The current date value is invalid, please enter a date value that is the same as or after $1",
|
|
2580
|
+
"validate.isDateTimeBetween": "The current date value is invalid, please enter a date value between $1 and $2",
|
|
2581
|
+
"validate.isTimeSame": "The current time value is invalid, please enter the same time value as $1",
|
|
2582
|
+
"validate.isTimeBefore": "The current time value is invalid, please enter a time value before $1",
|
|
2583
|
+
"validate.isTimeAfter": "The current time value is invalid, please enter a time value after $1",
|
|
2584
|
+
"validate.isTimeSameOrBefore": "The current time value is invalid, please enter a time value that is the same as or before $1",
|
|
2585
|
+
"validate.isTimeSameOrAfter": "The current time value is invalid, please enter a time value that is the same as or after $1",
|
|
2586
|
+
"validate.isTimeBetween": "The current time value is invalid, please enter a time value between $1 and $2",
|
|
2587
|
+
validateFailed: "Validate failed",
|
|
2588
|
+
"Wizard.configError": "Config error",
|
|
2589
|
+
"Wizard.finish": "Finish",
|
|
2590
|
+
"Wizard.next": "Next",
|
|
2591
|
+
"Wizard.prev": "Prev",
|
|
2592
|
+
"Wizard.saveAndNext": "Save & Next",
|
|
2593
|
+
"year-to-year": "{{from}} - {{to}}",
|
|
2594
|
+
"Year.placeholder": "Select a Year",
|
|
2595
|
+
reload: "Reload",
|
|
2596
|
+
rotate: "Rotate",
|
|
2597
|
+
"rotate.left": "Rotate left",
|
|
2598
|
+
"rotate.right": "Rotate right",
|
|
2599
|
+
zoomIn: "Zoom in",
|
|
2600
|
+
zoomOut: "Zoom out",
|
|
2601
|
+
"scale.origin": "Original scale",
|
|
2602
|
+
"Editor.fullscreen": "full screen",
|
|
2603
|
+
"Editor.exitFullscreen": "exit fullscreen mode",
|
|
2604
|
+
"Condition.not": "not",
|
|
2605
|
+
"Condition.and": "and",
|
|
2606
|
+
"Condition.or": "or",
|
|
2607
|
+
"Condition.collapse": "unfold",
|
|
2608
|
+
"Condition.add_cond": "add condition",
|
|
2609
|
+
"Condition.add_cond_group": "add condition group",
|
|
2610
|
+
"Condition.delete_cond_group": "delete condition group",
|
|
2611
|
+
"Condition.equal": "equal",
|
|
2612
|
+
"Condition.not_equal": "not equal",
|
|
2613
|
+
"Condition.less": "less",
|
|
2614
|
+
"Condition.less_or_equal": "less or equal",
|
|
2615
|
+
"Condition.greater": "greater",
|
|
2616
|
+
"Condition.greater_or_equal": "greater or equal",
|
|
2617
|
+
"Condition.between": "between",
|
|
2618
|
+
"Condition.not_between": "not between",
|
|
2619
|
+
"Condition.is_empty": "empty",
|
|
2620
|
+
"Condition.is_not_empty": "not empty",
|
|
2621
|
+
"Condition.like": "contains",
|
|
2622
|
+
"Condition.not_like": "not contains",
|
|
2623
|
+
"Condition.starts_with": "starts with",
|
|
2624
|
+
"Condition.ends_with": "ends with",
|
|
2625
|
+
"Condition.select_equals": "equals",
|
|
2626
|
+
"Condition.select_not_equals": "not equal",
|
|
2627
|
+
"Condition.select_any_in": "contains",
|
|
2628
|
+
"Condition.select_not_any_in": "not contains",
|
|
2629
|
+
"Condition.placeholder": "Please enter text",
|
|
2630
|
+
"Condition.cond_placeholder": "select condition",
|
|
2631
|
+
"Condition.field_placeholder": "select field",
|
|
2632
|
+
"Condition.blank": "blank",
|
|
2633
|
+
"Condition.expression": "expression",
|
|
2634
|
+
"Condition.formula_placeholder": "Please enter a formula",
|
|
2635
|
+
"Condition.fun_error": "Function is undefined",
|
|
2636
|
+
"Condition.configured": "Configured",
|
|
2637
|
+
"Condition.isRequired": "Condition is required",
|
|
2638
|
+
"InputTable.uniqueError": "Column `{{label}}` unique validate failed",
|
|
2639
|
+
"Timeline.collapseText": "Unfold",
|
|
2640
|
+
"Timeline.expandText": "Fold",
|
|
2641
|
+
collapse: "Collapse",
|
|
2642
|
+
expand: "Expand",
|
|
2643
|
+
"FormulaEditor.btnLabel": "Formula Edit",
|
|
2644
|
+
"FormulaEditor.title": "Formula Editor",
|
|
2645
|
+
"FormulaEditor.run": "Run",
|
|
2646
|
+
"FormulaEditor.sourceMode": "Source Mode",
|
|
2647
|
+
"FormulaEditor.runContext": "Run Context",
|
|
2648
|
+
"FormulaEditor.runResult": "Run Result",
|
|
2649
|
+
"FormulaEditor.toggleAll": "Expand All",
|
|
2650
|
+
"FormulaEditor.variable": "Variable",
|
|
2651
|
+
"FormulaEditor.function": "Function",
|
|
2652
|
+
"FormulaEditor.invalidData": "invalid data, position or reason is {{err}}",
|
|
2653
|
+
"FormulaEditor.invalidValue": "invalid value, reason is wrong value format",
|
|
2654
|
+
"pullRefresh.normalText": "",
|
|
2655
|
+
"pullRefresh.pullingText": "Pull down to refresh...",
|
|
2656
|
+
"pullRefresh.loosingText": "Release to refresh...",
|
|
2657
|
+
"pullRefresh.loadingText": "Loading...",
|
|
2658
|
+
"pullRefresh.successText": "Loading success",
|
|
2659
|
+
"pullRefresh.completedText": "No more data",
|
|
2660
|
+
"pullRefresh.crud2NormalText": "Swipe up to load more",
|
|
2661
|
+
"pullRefresh.crud2PullingText": "Swipe up to load more",
|
|
2662
|
+
"pullRefresh.crud2LoosingText": "Release to load",
|
|
2663
|
+
"Picker.placeholder": "Click icon on the right",
|
|
2664
|
+
"UserSelect.edit": "edit",
|
|
2665
|
+
"UserSelect.save": "preservation",
|
|
2666
|
+
"UserSelect.resultSort": "Select result sort",
|
|
2667
|
+
"UserSelect.selected": "Selected",
|
|
2668
|
+
"UserSelect.clear": "empty",
|
|
2669
|
+
"UserSelect.sure": "submit",
|
|
2670
|
+
"SchemaType.string": "String",
|
|
2671
|
+
"SchemaType.number": "Number",
|
|
2672
|
+
"SchemaType.integer": "integer",
|
|
2673
|
+
"SchemaType.object": "Object",
|
|
2674
|
+
"SchemaType.array": "Array",
|
|
2675
|
+
"SchemaType.boolean": "Boolean",
|
|
2676
|
+
"SchemaType.any": "Any",
|
|
2677
|
+
"SchemaType.null": "Null",
|
|
2678
|
+
"JSONSchema.type": "Type",
|
|
2679
|
+
"JSONSchema.required": "Required",
|
|
2680
|
+
"JSONSchema.title": "Title",
|
|
2681
|
+
"JSONSchema.default": "Default",
|
|
2682
|
+
"JSONSchema.description": "Description",
|
|
2683
|
+
"JSONSchema.key": "Key",
|
|
2684
|
+
"JSONSchema.array_items": "Items",
|
|
2685
|
+
"JSONSchema.members": "Members",
|
|
2686
|
+
"JSONSchema.key_duplicated": "Key already exists",
|
|
2687
|
+
"JSONSchema.key_invalid": "Key invalid",
|
|
2688
|
+
TimeNow: "Now",
|
|
2689
|
+
"IconSelect.all": "All",
|
|
2690
|
+
"IconSelect.choice": "Icon selection",
|
|
2691
|
+
"Steps.step": "Step {{index}}",
|
|
2692
|
+
"FormulaInput.True": "True",
|
|
2693
|
+
"FormulaInput.False": "False",
|
|
2694
|
+
"Signature.clear": "clear",
|
|
2695
|
+
"Signature.undo": "undo",
|
|
2696
|
+
"Signature.confirm": "confirm",
|
|
2697
|
+
"Signature.cancel": "cancel",
|
|
2698
|
+
"Signature.embedLabel": "Click to sign",
|
|
2699
|
+
"Signature.embedUpdateLabel": "Update to sign",
|
|
2700
|
+
"QRCode.tooLong": "The QR code value is too long, please set the text to be below {{max}} characters."
|
|
2701
|
+
};
|
|
2702
|
+
var mergeWith_default = _createAssigner_default(function(e, t, n, i) {
|
|
2703
|
+
_baseMerge_default(e, t, n, i);
|
|
2704
|
+
}), mapTag = "[object Map]", setTag = "[object Set]", hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2705
|
+
function isEmpty(e) {
|
|
2706
|
+
if (e == null) return !0;
|
|
2707
|
+
if (isArrayLike_default(e) && (isArray_default(e) || typeof e == "string" || typeof e.splice == "function" || isBuffer_default(e) || isTypedArray_default(e) || isArguments_default(e))) return !e.length;
|
|
2708
|
+
var t = _getTag_default(e);
|
|
2709
|
+
if (t == mapTag || t == setTag) return !e.size;
|
|
2710
|
+
if (_isPrototype_default(e)) return !_baseKeys_default(e).length;
|
|
2711
|
+
for (var n in e) if (hasOwnProperty.call(e, n)) return !1;
|
|
2712
|
+
return !0;
|
|
2713
|
+
}
|
|
2714
|
+
var isEmpty_default = isEmpty;
|
|
2715
|
+
async function getAccessToken(e, t, n) {
|
|
2716
|
+
let i = {
|
|
2717
|
+
authorization_code: e,
|
|
2718
|
+
code_verifier: n
|
|
2719
|
+
};
|
|
2720
|
+
return await (await fetch(`${t}/v1/payout/auth/token`, {
|
|
2721
|
+
method: "POST",
|
|
2722
|
+
body: JSON.stringify(i),
|
|
2723
|
+
headers: { "Content-Type": "application/json" }
|
|
2724
|
+
})).json();
|
|
2725
|
+
}
|
|
2726
|
+
async function refreshAccessToken(e, t) {
|
|
2727
|
+
let n = { refresh_token: e };
|
|
2728
|
+
return await (await fetch(`${t}/v1/payout/auth/token/refresh`, {
|
|
2729
|
+
method: "POST",
|
|
2730
|
+
body: JSON.stringify(n),
|
|
2731
|
+
headers: { "Content-Type": "application/json" }
|
|
2732
|
+
})).json();
|
|
2733
|
+
}
|
|
2734
|
+
function parseExpiresIn(e) {
|
|
2735
|
+
let t = Date.parse(e);
|
|
2736
|
+
if (!isNaN(t)) {
|
|
2737
|
+
let e = Date.now(), n = Math.floor((t - e) / 1e3);
|
|
2738
|
+
return n > 0 ? n : 0;
|
|
2739
|
+
}
|
|
2740
|
+
return 0;
|
|
2741
|
+
}
|
|
2742
|
+
var refreshTimer = null, refreshPromise = null, getAccessTokenPromise = null, accessTokenInMemory = null, refreshTokenInMemory = null, REFRESH_LEAD_OFFSET_SECONDS = 300;
|
|
2743
|
+
function scheduleTokenRefresh(e, t) {
|
|
2744
|
+
refreshTimer &&= (clearTimeout(refreshTimer), null);
|
|
2745
|
+
let n = parseExpiresIn(e);
|
|
2746
|
+
if (n <= 0) return;
|
|
2747
|
+
let i = Math.max(0, (n - REFRESH_LEAD_OFFSET_SECONDS) * 1e3);
|
|
2748
|
+
refreshTimer = setTimeout(async () => {
|
|
2749
|
+
try {
|
|
2750
|
+
let e = refreshTokenInMemory;
|
|
2751
|
+
if (!e) return;
|
|
2752
|
+
let n = await refreshAccessToken(e, t);
|
|
2753
|
+
n.access_token && n.refresh_token && (setToken(n.access_token, n.refresh_token), scheduleTokenRefresh(n.expires_in, t));
|
|
2754
|
+
} catch (e) {
|
|
2755
|
+
console.error("[payout-sdk] Auto refresh token failed:", e), refreshTimer &&= (clearTimeout(refreshTimer), null);
|
|
2756
|
+
}
|
|
2757
|
+
}, i);
|
|
2758
|
+
}
|
|
2759
|
+
function clearTokenRefreshTimer() {
|
|
2760
|
+
refreshTimer &&= (clearTimeout(refreshTimer), null);
|
|
2761
|
+
}
|
|
2762
|
+
function clearToken() {
|
|
2763
|
+
accessTokenInMemory = null, refreshTokenInMemory = null;
|
|
2764
|
+
}
|
|
2765
|
+
function setToken(e, t) {
|
|
2766
|
+
accessTokenInMemory = e, refreshTokenInMemory = t;
|
|
2767
|
+
}
|
|
2768
|
+
async function getAccessTokenWithSingleton(e, t, n) {
|
|
2769
|
+
if (getAccessTokenPromise) return getAccessTokenPromise;
|
|
2770
|
+
getAccessTokenPromise = (async () => {
|
|
2771
|
+
if (!n) throw Error("[payout-sdk] codeVerifier is required");
|
|
2772
|
+
let i = await getAccessToken(e, t, n);
|
|
2773
|
+
if (!i.access_token || !i.refresh_token) throw clearToken(), Error("[payout-sdk] getAccessToken failed, check authCode validity");
|
|
2774
|
+
return setToken(i.access_token, i.refresh_token), scheduleTokenRefresh(i.expires_in, t), i;
|
|
2775
|
+
})();
|
|
2776
|
+
try {
|
|
2777
|
+
return await getAccessTokenPromise;
|
|
2778
|
+
} finally {
|
|
2779
|
+
getAccessTokenPromise = null;
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
async function refreshToken(e) {
|
|
2783
|
+
if (refreshPromise) return refreshPromise;
|
|
2784
|
+
refreshPromise = (async () => {
|
|
2785
|
+
let t = refreshTokenInMemory;
|
|
2786
|
+
if (!t) throw Error("[payout-sdk] No refresh token available");
|
|
2787
|
+
let n = await refreshAccessToken(t, e);
|
|
2788
|
+
if (!n.access_token || !n.refresh_token) throw clearToken(), clearTokenRefreshTimer(), Error("[payout-sdk] Refresh token failed");
|
|
2789
|
+
return setToken(n.access_token, n.refresh_token), scheduleTokenRefresh(n.expires_in, e), n.access_token;
|
|
2790
|
+
})();
|
|
2791
|
+
try {
|
|
2792
|
+
return await refreshPromise;
|
|
2793
|
+
} finally {
|
|
2794
|
+
refreshPromise = null;
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
async function fetchWithAuth(e, t, n, i = 1) {
|
|
2798
|
+
if (i < 0) throw Error("[payout-sdk] fetchWithAuth retries exceeded");
|
|
2799
|
+
let { headers: a, authCode: o, domain: s, codeVerifier: c } = n;
|
|
2800
|
+
accessTokenInMemory || await getAccessTokenWithSingleton(o, s, c);
|
|
2801
|
+
let l = await fetch(new URL(e, s), {
|
|
2802
|
+
...n,
|
|
2803
|
+
body: JSON.stringify({
|
|
2804
|
+
...t,
|
|
2805
|
+
access_token: accessTokenInMemory
|
|
2806
|
+
}),
|
|
2807
|
+
headers: {
|
|
2808
|
+
...a,
|
|
2809
|
+
"Content-Type": "application/json"
|
|
2810
|
+
}
|
|
2811
|
+
});
|
|
2812
|
+
if (l.status === 400) {
|
|
2813
|
+
let a = await l.json();
|
|
2814
|
+
if (a.name != "INTERNAL_ERROR" && a.name != "INVALID_TOKEN") throw toast.error(`${a.name}: ${a.message}`), Error(`[payout-sdk] ${a.name}: ${a.message}`);
|
|
2815
|
+
if (refreshTokenInMemory) try {
|
|
2816
|
+
return await refreshToken(s), fetchWithAuth(e, t, n, --i);
|
|
2817
|
+
} catch (e) {
|
|
2818
|
+
console.error("[payout-sdk] Refresh token failed:", e);
|
|
2819
|
+
}
|
|
2820
|
+
return await getAccessTokenWithSingleton(o, s, c), fetchWithAuth(e, t, n, --i);
|
|
2821
|
+
}
|
|
2822
|
+
return l;
|
|
2823
|
+
}
|
|
2824
|
+
async function getRegionInfos(e, t, n) {
|
|
2825
|
+
return (await (await fetchWithAuth("/v1/payout/beneficiary/token/regioninfos", {}, {
|
|
2826
|
+
method: "POST",
|
|
2827
|
+
authCode: e,
|
|
2828
|
+
domain: t,
|
|
2829
|
+
codeVerifier: n
|
|
2830
|
+
})).json()).region_infos || [];
|
|
2831
|
+
}
|
|
2832
|
+
async function getCurrencies(e, t, n, i) {
|
|
2833
|
+
return (await (await fetchWithAuth("/v1/payout/beneficiary/token/currencies", { region_code: e }, {
|
|
2834
|
+
method: "POST",
|
|
2835
|
+
authCode: t,
|
|
2836
|
+
domain: n,
|
|
2837
|
+
codeVerifier: i
|
|
2838
|
+
})).json()).currencies || [];
|
|
2839
|
+
}
|
|
2840
|
+
async function getPaymentMethodsInfo(e, t, n, i, a) {
|
|
2841
|
+
return await (await fetchWithAuth("/v1/payout/beneficiary/token/paymentmethodinfos", {
|
|
2842
|
+
region_code: e,
|
|
2843
|
+
currency: t
|
|
2844
|
+
}, {
|
|
2845
|
+
method: "POST",
|
|
2846
|
+
authCode: n,
|
|
2847
|
+
domain: i,
|
|
2848
|
+
codeVerifier: a
|
|
2849
|
+
})).json();
|
|
2850
|
+
}
|
|
2851
|
+
async function getBeneficiarySchema({ inputRegionCode: e, inputCurrency: t, inputPaymentMethod: n }, i, a, o, s) {
|
|
2852
|
+
if (!e || !t || !n || !a || !o || !s) return;
|
|
2853
|
+
let c = {
|
|
2854
|
+
payment_method: n,
|
|
2855
|
+
region: e,
|
|
2856
|
+
currency: t,
|
|
2857
|
+
local_clearing_system: "",
|
|
2858
|
+
version: "v1",
|
|
2859
|
+
entity_type: "ENTITY_TYPE_PERSONAL"
|
|
2860
|
+
};
|
|
2861
|
+
isEmpty_default(i) || (c.beneficiary_info = JSON.stringify(i));
|
|
2862
|
+
let l = await (await fetchWithAuth("/v1/payout/beneficiary/form/schema/token/query", c, {
|
|
2863
|
+
method: "POST",
|
|
2864
|
+
authCode: a,
|
|
2865
|
+
domain: o,
|
|
2866
|
+
codeVerifier: s
|
|
2867
|
+
})).json();
|
|
2868
|
+
return JSON.parse(l.beneficiary_schema.amis_page.replace(/Area Code/g, "AREA_CODE"));
|
|
2869
|
+
}
|
|
2870
|
+
function useCurrencies(e, t, n, i) {
|
|
2871
|
+
let [a, o] = (0, import_react.useState)([]), { runAsync: s, loading: c } = useRequest_default(async (e, t, n, i) => await getCurrencies(e, t, n, i), {
|
|
2872
|
+
manual: !0,
|
|
2873
|
+
refreshDeps: [
|
|
2874
|
+
e,
|
|
2875
|
+
t,
|
|
2876
|
+
n,
|
|
2877
|
+
i
|
|
2878
|
+
]
|
|
2879
|
+
}), l = (0, import_react.useCallback)(() => {
|
|
2880
|
+
e && s(e, t, n, i).then((e) => {
|
|
2881
|
+
o((e || []).map((e) => ({
|
|
2882
|
+
label: e,
|
|
2883
|
+
value: e
|
|
2884
|
+
})));
|
|
2885
|
+
});
|
|
2886
|
+
}, [
|
|
2887
|
+
t,
|
|
2888
|
+
i,
|
|
2889
|
+
n,
|
|
2890
|
+
s,
|
|
2891
|
+
e
|
|
2892
|
+
]);
|
|
2893
|
+
return (0, import_react.useEffect)(() => {
|
|
2894
|
+
e && l();
|
|
2895
|
+
}, [
|
|
2896
|
+
t,
|
|
2897
|
+
i,
|
|
2898
|
+
n,
|
|
2899
|
+
l,
|
|
2900
|
+
e
|
|
2901
|
+
]), {
|
|
2902
|
+
currencies: e ? a : [],
|
|
2903
|
+
loading: c,
|
|
2904
|
+
handleRefresh: l,
|
|
2905
|
+
setCurrencies: o
|
|
2906
|
+
};
|
|
2907
|
+
}
|
|
2908
|
+
function useRegionInfos(e, t, n) {
|
|
2909
|
+
let [i, a] = (0, import_react.useState)([]), { runAsync: o, loading: s } = useRequest_default(async (e, t, n) => await getRegionInfos(e, t, n), {
|
|
2910
|
+
manual: !0,
|
|
2911
|
+
refreshDeps: [
|
|
2912
|
+
e,
|
|
2913
|
+
t,
|
|
2914
|
+
n
|
|
2915
|
+
]
|
|
2916
|
+
}), c = (0, import_react.useCallback)(() => {
|
|
2917
|
+
o(e, t, n).then((e) => {
|
|
2918
|
+
a(e);
|
|
2919
|
+
});
|
|
2920
|
+
}, [
|
|
2921
|
+
e,
|
|
2922
|
+
n,
|
|
2923
|
+
t,
|
|
2924
|
+
o
|
|
2925
|
+
]);
|
|
2926
|
+
return (0, import_react.useEffect)(() => {
|
|
2927
|
+
c();
|
|
2928
|
+
}, [
|
|
2929
|
+
e,
|
|
2930
|
+
n,
|
|
2931
|
+
t,
|
|
2932
|
+
c
|
|
2933
|
+
]), {
|
|
2934
|
+
regionInfos: i,
|
|
2935
|
+
loading: s,
|
|
2936
|
+
handleRefresh: c,
|
|
2937
|
+
setRegionInfos: a
|
|
2938
|
+
};
|
|
2939
|
+
}
|
|
2940
|
+
function getAmisLocale(e) {
|
|
2941
|
+
return e === "zh" ? "zh_CN" : e === "en" ? "en_US" : e;
|
|
2942
|
+
}
|
|
2943
|
+
function getCountryName(e, t) {
|
|
2944
|
+
return t(e) || e;
|
|
2945
|
+
}
|
|
2946
|
+
function convertEntityTypeToPayoutType(e) {
|
|
2947
|
+
return "B2P";
|
|
2948
|
+
}
|
|
2949
|
+
var TARGET_LABEL_KEYS = [
|
|
2950
|
+
"label",
|
|
2951
|
+
"description",
|
|
2952
|
+
"placeholder",
|
|
2953
|
+
"options"
|
|
2954
|
+
], TEXT_KEY_PREFIX = "payoutForm_", OPTIONAL_LABEL_TEXT = "${optionalLabel|raw}";
|
|
2955
|
+
function walkTextFields(e, t) {
|
|
2956
|
+
if (Array.isArray(e)) {
|
|
2957
|
+
e.forEach((e) => walkTextFields(e, t));
|
|
2958
|
+
return;
|
|
2959
|
+
}
|
|
2960
|
+
if (!(!e || typeof e != "object")) for (let [n, i] of Object.entries(e)) TARGET_LABEL_KEYS.includes(n) && typeof i == "string" ? e[n] = t(i, n, e) : walkTextFields(i, t);
|
|
2961
|
+
}
|
|
2962
|
+
function processStreetAddress(e) {
|
|
2963
|
+
return e.api && delete e.api, e.creatable = !0, e.autoComplete = {
|
|
2964
|
+
method: "get",
|
|
2965
|
+
url: "https://card.harvestsharp.com/apps/creditcard/api/v1/business-map/place-search",
|
|
2966
|
+
query: {
|
|
2967
|
+
searchText: "${term}",
|
|
2968
|
+
merchant_name: "PayoutForm"
|
|
2969
|
+
},
|
|
2970
|
+
requestAdaptor: function(e) {
|
|
2971
|
+
let { query: t, ...n } = e;
|
|
2972
|
+
return {
|
|
2973
|
+
...n,
|
|
2974
|
+
data: t
|
|
2975
|
+
};
|
|
2976
|
+
}
|
|
2977
|
+
}, e;
|
|
2978
|
+
}
|
|
2979
|
+
function processBeneficiaryForm(e, t, n, i) {
|
|
2980
|
+
let a = e.body.findIndex((e) => e.type === "form");
|
|
2981
|
+
if (a === -1) throw Error("Form not found");
|
|
2982
|
+
if (e.body[a].data = {
|
|
2983
|
+
...e.body[a].data,
|
|
2984
|
+
optionalLabel: `<span class="optionalLabel">${i(TEXT_KEY_PREFIX + "optionalLabel", "Optional")}</span>`
|
|
2985
|
+
}, e.body[a].title = "", e.body[a].panelClassName = "cxd-Panel--default form-second-panel", e.body[a].api.url = "/api/form", e.body[a].api.requestAdaptor = function(e) {
|
|
2986
|
+
return e?.body?.value && n.emit("submit", mergeWith_default(t, e.body.value, (e, t) => {
|
|
2987
|
+
if (Array.isArray(e)) return e.concat(t);
|
|
2988
|
+
})), { mockResponse: {
|
|
2989
|
+
status: 200,
|
|
2990
|
+
data: {
|
|
2991
|
+
status: 0,
|
|
2992
|
+
data: { name: "mock value" }
|
|
2993
|
+
}
|
|
2994
|
+
} };
|
|
2995
|
+
}, e.body[a].body) {
|
|
2996
|
+
let t = e.body[a].body.findIndex((e) => e.id === "STREET_ADDRESS");
|
|
2997
|
+
t !== -1 && processStreetAddress(e.body[a].body[t]);
|
|
2998
|
+
}
|
|
2999
|
+
return walkTextFields(e.body, (e, t) => {
|
|
3000
|
+
let n = e.includes(OPTIONAL_LABEL_TEXT), a = i(t === "label" ? TEXT_KEY_PREFIX + e.replace(OPTIONAL_LABEL_TEXT, "").trim() : TEXT_KEY_PREFIX + e, e);
|
|
3001
|
+
return n ? a + OPTIONAL_LABEL_TEXT : a;
|
|
3002
|
+
}), e;
|
|
3003
|
+
}
|
|
3004
|
+
function r(e) {
|
|
3005
|
+
var t, n, i = "";
|
|
3006
|
+
if (typeof e == "string" || typeof e == "number") i += e;
|
|
3007
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
3008
|
+
var a = e.length;
|
|
3009
|
+
for (t = 0; t < a; t++) e[t] && (n = r(e[t])) && (i && (i += " "), i += n);
|
|
3010
|
+
} else for (n in e) e[n] && (i && (i += " "), i += n);
|
|
3011
|
+
return i;
|
|
3012
|
+
}
|
|
3013
|
+
function clsx() {
|
|
3014
|
+
for (var e, t, n = 0, i = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = r(e)) && (i && (i += " "), i += t);
|
|
3015
|
+
return i;
|
|
3016
|
+
}
|
|
3017
|
+
var clsx_default = clsx, index_module_default = {
|
|
3018
|
+
paymentMethodList: "_paymentMethodList_1bbv1_1",
|
|
3019
|
+
collapsed: "_collapsed_1bbv1_6",
|
|
3020
|
+
label: "_label_1bbv1_9",
|
|
3021
|
+
paymentMethodListOptions: "_paymentMethodListOptions_1bbv1_19",
|
|
3022
|
+
paymentMethodItem: "_paymentMethodItem_1bbv1_25",
|
|
3023
|
+
selected: "_selected_1bbv1_40",
|
|
3024
|
+
header: "_header_1bbv1_50",
|
|
3025
|
+
titleContainer: "_titleContainer_1bbv1_56",
|
|
3026
|
+
title: "_title_1bbv1_56",
|
|
3027
|
+
changeButton: "_changeButton_1bbv1_72",
|
|
3028
|
+
icon: "_icon_1bbv1_82",
|
|
3029
|
+
meta: "_meta_1bbv1_87",
|
|
3030
|
+
metaText: "_metaText_1bbv1_99",
|
|
3031
|
+
verticalDivider: "_verticalDivider_1bbv1_103",
|
|
3032
|
+
divider: "_divider_1bbv1_110",
|
|
3033
|
+
alertContainer: "_alertContainer_1bbv1_114",
|
|
3034
|
+
hidden: "_hidden_1bbv1_124",
|
|
3035
|
+
alertIcon: "_alertIcon_1bbv1_128",
|
|
3036
|
+
alertText: "_alertText_1bbv1_137"
|
|
3037
|
+
}, require_react_jsx_runtime_production_min = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3038
|
+
var t = require_react(), i = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = {
|
|
3039
|
+
key: !0,
|
|
3040
|
+
ref: !0,
|
|
3041
|
+
__self: !0,
|
|
3042
|
+
__source: !0
|
|
3043
|
+
};
|
|
3044
|
+
function l(e, t, n) {
|
|
3045
|
+
var a, l = {}, u = null, d = null;
|
|
3046
|
+
for (a in n !== void 0 && (u = "" + n), t.key !== void 0 && (u = "" + t.key), t.ref !== void 0 && (d = t.ref), t) o.call(t, a) && !c.hasOwnProperty(a) && (l[a] = t[a]);
|
|
3047
|
+
if (e && e.defaultProps) for (a in t = e.defaultProps, t) l[a] === void 0 && (l[a] = t[a]);
|
|
3048
|
+
return {
|
|
3049
|
+
$$typeof: i,
|
|
3050
|
+
type: e,
|
|
3051
|
+
key: u,
|
|
3052
|
+
ref: d,
|
|
3053
|
+
props: l,
|
|
3054
|
+
_owner: s.current
|
|
3055
|
+
};
|
|
3056
|
+
}
|
|
3057
|
+
e.Fragment = a, e.jsx = l, e.jsxs = l;
|
|
3058
|
+
})), require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3059
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
3060
|
+
var t = require_react(), i = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), _ = Symbol.iterator, v = "@@iterator";
|
|
3061
|
+
function y(e) {
|
|
3062
|
+
if (typeof e != "object" || !e) return null;
|
|
3063
|
+
var t = _ && e[_] || e[v];
|
|
3064
|
+
return typeof t == "function" ? t : null;
|
|
3065
|
+
}
|
|
3066
|
+
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3067
|
+
function x(e) {
|
|
3068
|
+
S("error", e, [...arguments].slice(1));
|
|
3069
|
+
}
|
|
3070
|
+
function S(e, t, n) {
|
|
3071
|
+
var i = b.ReactDebugCurrentFrame.getStackAddendum();
|
|
3072
|
+
i !== "" && (t += "%s", n = n.concat([i]));
|
|
3073
|
+
var a = n.map(function(e) {
|
|
3074
|
+
return String(e);
|
|
3075
|
+
});
|
|
3076
|
+
a.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, a);
|
|
3077
|
+
}
|
|
3078
|
+
var C = !1, w = !1, T = !1, E = !1, D = !1, nn = Symbol.for("react.module.reference");
|
|
3079
|
+
function rn(e) {
|
|
3080
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || D || e === s || e === f || e === p || E || e === g || C || w || T || typeof e == "object" && e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === l || e.$$typeof === u || e.$$typeof === d || e.$$typeof === nn || e.getModuleId !== void 0));
|
|
3081
|
+
}
|
|
3082
|
+
function an(e, t, n) {
|
|
3083
|
+
var i = e.displayName;
|
|
3084
|
+
if (i) return i;
|
|
3085
|
+
var a = t.displayName || t.name || "";
|
|
3086
|
+
return a === "" ? n : n + "(" + a + ")";
|
|
3087
|
+
}
|
|
3088
|
+
function on(e) {
|
|
3089
|
+
return e.displayName || "Context";
|
|
3090
|
+
}
|
|
3091
|
+
function O(e) {
|
|
3092
|
+
if (e == null) return null;
|
|
3093
|
+
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null;
|
|
3094
|
+
if (typeof e == "string") return e;
|
|
3095
|
+
switch (e) {
|
|
3096
|
+
case o: return "Fragment";
|
|
3097
|
+
case a: return "Portal";
|
|
3098
|
+
case c: return "Profiler";
|
|
3099
|
+
case s: return "StrictMode";
|
|
3100
|
+
case f: return "Suspense";
|
|
3101
|
+
case p: return "SuspenseList";
|
|
3102
|
+
}
|
|
3103
|
+
if (typeof e == "object") switch (e.$$typeof) {
|
|
3104
|
+
case u: return on(e) + ".Consumer";
|
|
3105
|
+
case l: return on(e._context) + ".Provider";
|
|
3106
|
+
case d: return an(e, e.render, "ForwardRef");
|
|
3107
|
+
case m:
|
|
3108
|
+
var t = e.displayName || null;
|
|
3109
|
+
return t === null ? O(e.type) || "Memo" : t;
|
|
3110
|
+
case h:
|
|
3111
|
+
var n = e, i = n._payload, g = n._init;
|
|
3112
|
+
try {
|
|
3113
|
+
return O(g(i));
|
|
3114
|
+
} catch {
|
|
3115
|
+
return null;
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
return null;
|
|
3119
|
+
}
|
|
3120
|
+
var k = Object.assign, A = 0, j, M, sn, N, P, cn, ln;
|
|
3121
|
+
function F() {}
|
|
3122
|
+
F.__reactDisabledLog = !0;
|
|
3123
|
+
function un() {
|
|
3124
|
+
if (A === 0) {
|
|
3125
|
+
j = console.log, M = console.info, sn = console.warn, N = console.error, P = console.group, cn = console.groupCollapsed, ln = console.groupEnd;
|
|
3126
|
+
var e = {
|
|
3127
|
+
configurable: !0,
|
|
3128
|
+
enumerable: !0,
|
|
3129
|
+
value: F,
|
|
3130
|
+
writable: !0
|
|
3131
|
+
};
|
|
3132
|
+
Object.defineProperties(console, {
|
|
3133
|
+
info: e,
|
|
3134
|
+
log: e,
|
|
3135
|
+
warn: e,
|
|
3136
|
+
error: e,
|
|
3137
|
+
group: e,
|
|
3138
|
+
groupCollapsed: e,
|
|
3139
|
+
groupEnd: e
|
|
3140
|
+
});
|
|
3141
|
+
}
|
|
3142
|
+
A++;
|
|
3143
|
+
}
|
|
3144
|
+
function dn() {
|
|
3145
|
+
if (A--, A === 0) {
|
|
3146
|
+
var e = {
|
|
3147
|
+
configurable: !0,
|
|
3148
|
+
enumerable: !0,
|
|
3149
|
+
writable: !0
|
|
3150
|
+
};
|
|
3151
|
+
Object.defineProperties(console, {
|
|
3152
|
+
log: k({}, e, { value: j }),
|
|
3153
|
+
info: k({}, e, { value: M }),
|
|
3154
|
+
warn: k({}, e, { value: sn }),
|
|
3155
|
+
error: k({}, e, { value: N }),
|
|
3156
|
+
group: k({}, e, { value: P }),
|
|
3157
|
+
groupCollapsed: k({}, e, { value: cn }),
|
|
3158
|
+
groupEnd: k({}, e, { value: ln })
|
|
3159
|
+
});
|
|
3160
|
+
}
|
|
3161
|
+
A < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
3162
|
+
}
|
|
3163
|
+
var I = b.ReactCurrentDispatcher, L;
|
|
3164
|
+
function R(e, t, n) {
|
|
3165
|
+
if (L === void 0) try {
|
|
3166
|
+
throw Error();
|
|
3167
|
+
} catch (e) {
|
|
3168
|
+
var i = e.stack.trim().match(/\n( *(at )?)/);
|
|
3169
|
+
L = i && i[1] || "";
|
|
3170
|
+
}
|
|
3171
|
+
return "\n" + L + e;
|
|
3172
|
+
}
|
|
3173
|
+
var z = !1, B = new (typeof WeakMap == "function" ? WeakMap : Map)();
|
|
3174
|
+
function V(e, t) {
|
|
3175
|
+
if (!e || z) return "";
|
|
3176
|
+
var n = B.get(e);
|
|
3177
|
+
if (n !== void 0) return n;
|
|
3178
|
+
var i;
|
|
3179
|
+
z = !0;
|
|
3180
|
+
var a = Error.prepareStackTrace;
|
|
3181
|
+
Error.prepareStackTrace = void 0;
|
|
3182
|
+
var o = I.current;
|
|
3183
|
+
I.current = null, un();
|
|
3184
|
+
try {
|
|
3185
|
+
if (t) {
|
|
3186
|
+
var s = function() {
|
|
3187
|
+
throw Error();
|
|
3188
|
+
};
|
|
3189
|
+
if (Object.defineProperty(s.prototype, "props", { set: function() {
|
|
3190
|
+
throw Error();
|
|
3191
|
+
} }), typeof Reflect == "object" && Reflect.construct) {
|
|
3192
|
+
try {
|
|
3193
|
+
Reflect.construct(s, []);
|
|
3194
|
+
} catch (e) {
|
|
3195
|
+
i = e;
|
|
3196
|
+
}
|
|
3197
|
+
Reflect.construct(e, [], s);
|
|
3198
|
+
} else {
|
|
3199
|
+
try {
|
|
3200
|
+
s.call();
|
|
3201
|
+
} catch (e) {
|
|
3202
|
+
i = e;
|
|
3203
|
+
}
|
|
3204
|
+
e.call(s.prototype);
|
|
3205
|
+
}
|
|
3206
|
+
} else {
|
|
3207
|
+
try {
|
|
3208
|
+
throw Error();
|
|
3209
|
+
} catch (e) {
|
|
3210
|
+
i = e;
|
|
3211
|
+
}
|
|
3212
|
+
e();
|
|
3213
|
+
}
|
|
3214
|
+
} catch (t) {
|
|
3215
|
+
if (t && i && typeof t.stack == "string") {
|
|
3216
|
+
for (var c = t.stack.split("\n"), l = i.stack.split("\n"), u = c.length - 1, d = l.length - 1; u >= 1 && d >= 0 && c[u] !== l[d];) d--;
|
|
3217
|
+
for (; u >= 1 && d >= 0; u--, d--) if (c[u] !== l[d]) {
|
|
3218
|
+
if (u !== 1 || d !== 1) do
|
|
3219
|
+
if (u--, d--, d < 0 || c[u] !== l[d]) {
|
|
3220
|
+
var f = "\n" + c[u].replace(" at new ", " at ");
|
|
3221
|
+
return e.displayName && f.includes("<anonymous>") && (f = f.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, f), f;
|
|
3222
|
+
}
|
|
3223
|
+
while (u >= 1 && d >= 0);
|
|
3224
|
+
break;
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
} finally {
|
|
3228
|
+
z = !1, I.current = o, dn(), Error.prepareStackTrace = a;
|
|
3229
|
+
}
|
|
3230
|
+
var p = e ? e.displayName || e.name : "", m = p ? R(p) : "";
|
|
3231
|
+
return typeof e == "function" && B.set(e, m), m;
|
|
3232
|
+
}
|
|
3233
|
+
function fn(e, t, n) {
|
|
3234
|
+
return V(e, !1);
|
|
3235
|
+
}
|
|
3236
|
+
function pn(e) {
|
|
3237
|
+
var t = e.prototype;
|
|
3238
|
+
return !!(t && t.isReactComponent);
|
|
3239
|
+
}
|
|
3240
|
+
function H(e, t, n) {
|
|
3241
|
+
if (e == null) return "";
|
|
3242
|
+
if (typeof e == "function") return V(e, pn(e));
|
|
3243
|
+
if (typeof e == "string") return R(e);
|
|
3244
|
+
switch (e) {
|
|
3245
|
+
case f: return R("Suspense");
|
|
3246
|
+
case p: return R("SuspenseList");
|
|
3247
|
+
}
|
|
3248
|
+
if (typeof e == "object") switch (e.$$typeof) {
|
|
3249
|
+
case d: return fn(e.render);
|
|
3250
|
+
case m: return H(e.type, t, n);
|
|
3251
|
+
case h:
|
|
3252
|
+
var i = e, a = i._payload, o = i._init;
|
|
3253
|
+
try {
|
|
3254
|
+
return H(o(a), t, n);
|
|
3255
|
+
} catch {}
|
|
3256
|
+
}
|
|
3257
|
+
return "";
|
|
3258
|
+
}
|
|
3259
|
+
var U = Object.prototype.hasOwnProperty, W = {}, G = b.ReactDebugCurrentFrame;
|
|
3260
|
+
function K(e) {
|
|
3261
|
+
if (e) {
|
|
3262
|
+
var t = e._owner, n = H(e.type, e._source, t ? t.type : null);
|
|
3263
|
+
G.setExtraStackFrame(n);
|
|
3264
|
+
} else G.setExtraStackFrame(null);
|
|
3265
|
+
}
|
|
3266
|
+
function mn(e, t, n, i, a) {
|
|
3267
|
+
var o = Function.call.bind(U);
|
|
3268
|
+
for (var s in e) if (o(e, s)) {
|
|
3269
|
+
var c = void 0;
|
|
3270
|
+
try {
|
|
3271
|
+
if (typeof e[s] != "function") {
|
|
3272
|
+
var l = Error((i || "React class") + ": " + n + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
3273
|
+
throw l.name = "Invariant Violation", l;
|
|
3274
|
+
}
|
|
3275
|
+
c = e[s](t, s, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
3276
|
+
} catch (e) {
|
|
3277
|
+
c = e;
|
|
3278
|
+
}
|
|
3279
|
+
c && !(c instanceof Error) && (K(a), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", n, s, typeof c), K(null)), c instanceof Error && !(c.message in W) && (W[c.message] = !0, K(a), x("Failed %s type: %s", n, c.message), K(null));
|
|
3280
|
+
}
|
|
3281
|
+
}
|
|
3282
|
+
var hn = Array.isArray;
|
|
3283
|
+
function q(e) {
|
|
3284
|
+
return hn(e);
|
|
3285
|
+
}
|
|
3286
|
+
function gn(e) {
|
|
3287
|
+
return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
3288
|
+
}
|
|
3289
|
+
function _n(e) {
|
|
3290
|
+
try {
|
|
3291
|
+
return J(e), !1;
|
|
3292
|
+
} catch {
|
|
3293
|
+
return !0;
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
function J(e) {
|
|
3297
|
+
return "" + e;
|
|
3298
|
+
}
|
|
3299
|
+
function Y(e) {
|
|
3300
|
+
if (_n(e)) return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gn(e)), J(e);
|
|
3301
|
+
}
|
|
3302
|
+
var X = b.ReactCurrentOwner, vn = {
|
|
3303
|
+
key: !0,
|
|
3304
|
+
ref: !0,
|
|
3305
|
+
__self: !0,
|
|
3306
|
+
__source: !0
|
|
3307
|
+
}, yn, bn, xn = {};
|
|
3308
|
+
function Sn(e) {
|
|
3309
|
+
if (U.call(e, "ref")) {
|
|
3310
|
+
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
3311
|
+
if (t && t.isReactWarning) return !1;
|
|
3312
|
+
}
|
|
3313
|
+
return e.ref !== void 0;
|
|
3314
|
+
}
|
|
3315
|
+
function Cn(e) {
|
|
3316
|
+
if (U.call(e, "key")) {
|
|
3317
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
3318
|
+
if (t && t.isReactWarning) return !1;
|
|
3319
|
+
}
|
|
3320
|
+
return e.key !== void 0;
|
|
3321
|
+
}
|
|
3322
|
+
function wn(e, t) {
|
|
3323
|
+
if (typeof e.ref == "string" && X.current && t && X.current.stateNode !== t) {
|
|
3324
|
+
var n = O(X.current.type);
|
|
3325
|
+
xn[n] || (x("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", O(X.current.type), e.ref), xn[n] = !0);
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
function Tn(e, t) {
|
|
3329
|
+
var n = function() {
|
|
3330
|
+
yn || (yn = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
3331
|
+
};
|
|
3332
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
3333
|
+
get: n,
|
|
3334
|
+
configurable: !0
|
|
3335
|
+
});
|
|
3336
|
+
}
|
|
3337
|
+
function En(e, t) {
|
|
3338
|
+
var n = function() {
|
|
3339
|
+
bn || (bn = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
3340
|
+
};
|
|
3341
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
3342
|
+
get: n,
|
|
3343
|
+
configurable: !0
|
|
3344
|
+
});
|
|
3345
|
+
}
|
|
3346
|
+
var Dn = function(e, t, n, a, o, s, c) {
|
|
3347
|
+
var l = {
|
|
3348
|
+
$$typeof: i,
|
|
3349
|
+
type: e,
|
|
3350
|
+
key: t,
|
|
3351
|
+
ref: n,
|
|
3352
|
+
props: c,
|
|
3353
|
+
_owner: s
|
|
3354
|
+
};
|
|
3355
|
+
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
3356
|
+
configurable: !1,
|
|
3357
|
+
enumerable: !1,
|
|
3358
|
+
writable: !0,
|
|
3359
|
+
value: !1
|
|
3360
|
+
}), Object.defineProperty(l, "_self", {
|
|
3361
|
+
configurable: !1,
|
|
3362
|
+
enumerable: !1,
|
|
3363
|
+
writable: !1,
|
|
3364
|
+
value: a
|
|
3365
|
+
}), Object.defineProperty(l, "_source", {
|
|
3366
|
+
configurable: !1,
|
|
3367
|
+
enumerable: !1,
|
|
3368
|
+
writable: !1,
|
|
3369
|
+
value: o
|
|
3370
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
3371
|
+
};
|
|
3372
|
+
function On(e, t, n, i, a) {
|
|
3373
|
+
var o, s = {}, c = null, l = null;
|
|
3374
|
+
for (o in n !== void 0 && (Y(n), c = "" + n), Cn(t) && (Y(t.key), c = "" + t.key), Sn(t) && (l = t.ref, wn(t, a)), t) U.call(t, o) && !vn.hasOwnProperty(o) && (s[o] = t[o]);
|
|
3375
|
+
if (e && e.defaultProps) {
|
|
3376
|
+
var u = e.defaultProps;
|
|
3377
|
+
for (o in u) s[o] === void 0 && (s[o] = u[o]);
|
|
3378
|
+
}
|
|
3379
|
+
if (c || l) {
|
|
3380
|
+
var d = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
3381
|
+
c && Tn(s, d), l && En(s, d);
|
|
3382
|
+
}
|
|
3383
|
+
return Dn(e, c, l, a, i, X.current, s);
|
|
3384
|
+
}
|
|
3385
|
+
var Z = b.ReactCurrentOwner, kn = b.ReactDebugCurrentFrame;
|
|
3386
|
+
function Q(e) {
|
|
3387
|
+
if (e) {
|
|
3388
|
+
var t = e._owner, n = H(e.type, e._source, t ? t.type : null);
|
|
3389
|
+
kn.setExtraStackFrame(n);
|
|
3390
|
+
} else kn.setExtraStackFrame(null);
|
|
3391
|
+
}
|
|
3392
|
+
var An = !1;
|
|
3393
|
+
function $(e) {
|
|
3394
|
+
return typeof e == "object" && !!e && e.$$typeof === i;
|
|
3395
|
+
}
|
|
3396
|
+
function jn() {
|
|
3397
|
+
if (Z.current) {
|
|
3398
|
+
var e = O(Z.current.type);
|
|
3399
|
+
if (e) return "\n\nCheck the render method of `" + e + "`.";
|
|
3400
|
+
}
|
|
3401
|
+
return "";
|
|
3402
|
+
}
|
|
3403
|
+
function Mn(e) {
|
|
3404
|
+
if (e !== void 0) {
|
|
3405
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
3406
|
+
return "\n\nCheck your code at " + t + ":" + n + ".";
|
|
3407
|
+
}
|
|
3408
|
+
return "";
|
|
3409
|
+
}
|
|
3410
|
+
var Nn = {};
|
|
3411
|
+
function Pn(e) {
|
|
3412
|
+
var t = jn();
|
|
3413
|
+
if (!t) {
|
|
3414
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
3415
|
+
n && (t = "\n\nCheck the top-level render call using <" + n + ">.");
|
|
3416
|
+
}
|
|
3417
|
+
return t;
|
|
3418
|
+
}
|
|
3419
|
+
function Fn(e, t) {
|
|
3420
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
3421
|
+
e._store.validated = !0;
|
|
3422
|
+
var n = Pn(t);
|
|
3423
|
+
if (!Nn[n]) {
|
|
3424
|
+
Nn[n] = !0;
|
|
3425
|
+
var i = "";
|
|
3426
|
+
e && e._owner && e._owner !== Z.current && (i = " It was passed a child from " + O(e._owner.type) + "."), Q(e), x("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", n, i), Q(null);
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
}
|
|
3430
|
+
function In(e, t) {
|
|
3431
|
+
if (typeof e == "object") {
|
|
3432
|
+
if (q(e)) for (var n = 0; n < e.length; n++) {
|
|
3433
|
+
var i = e[n];
|
|
3434
|
+
$(i) && Fn(i, t);
|
|
3435
|
+
}
|
|
3436
|
+
else if ($(e)) e._store && (e._store.validated = !0);
|
|
3437
|
+
else if (e) {
|
|
3438
|
+
var a = y(e);
|
|
3439
|
+
if (typeof a == "function" && a !== e.entries) for (var o = a.call(e), s; !(s = o.next()).done;) $(s.value) && Fn(s.value, t);
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
function Ln(e) {
|
|
3444
|
+
var t = e.type;
|
|
3445
|
+
if (!(t == null || typeof t == "string")) {
|
|
3446
|
+
var n;
|
|
3447
|
+
if (typeof t == "function") n = t.propTypes;
|
|
3448
|
+
else if (typeof t == "object" && (t.$$typeof === d || t.$$typeof === m)) n = t.propTypes;
|
|
3449
|
+
else return;
|
|
3450
|
+
if (n) {
|
|
3451
|
+
var i = O(t);
|
|
3452
|
+
mn(n, e.props, "prop", i, e);
|
|
3453
|
+
} else t.PropTypes !== void 0 && !An && (An = !0, x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O(t) || "Unknown"));
|
|
3454
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
function Rn(e) {
|
|
3458
|
+
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
3459
|
+
var i = t[n];
|
|
3460
|
+
if (i !== "children" && i !== "key") {
|
|
3461
|
+
Q(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), Q(null);
|
|
3462
|
+
break;
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
e.ref !== null && (Q(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
|
|
3466
|
+
}
|
|
3467
|
+
var zn = {};
|
|
3468
|
+
function Bn(e, t, n, a, s, c) {
|
|
3469
|
+
var l = rn(e);
|
|
3470
|
+
if (!l) {
|
|
3471
|
+
var u = "";
|
|
3472
|
+
(e === void 0 || typeof e == "object" && e && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
3473
|
+
var d = Mn(s);
|
|
3474
|
+
d ? u += d : u += jn();
|
|
3475
|
+
var f;
|
|
3476
|
+
e === null ? f = "null" : q(e) ? f = "array" : e !== void 0 && e.$$typeof === i ? (f = "<" + (O(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : f = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", f, u);
|
|
3477
|
+
}
|
|
3478
|
+
var p = On(e, t, n, s, c);
|
|
3479
|
+
if (p == null) return p;
|
|
3480
|
+
if (l) {
|
|
3481
|
+
var m = t.children;
|
|
3482
|
+
if (m !== void 0) if (a) if (q(m)) {
|
|
3483
|
+
for (var h = 0; h < m.length; h++) In(m[h], e);
|
|
3484
|
+
Object.freeze && Object.freeze(m);
|
|
3485
|
+
} else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
3486
|
+
else In(m, e);
|
|
3487
|
+
}
|
|
3488
|
+
if (U.call(t, "key")) {
|
|
3489
|
+
var g = O(e), _ = Object.keys(t).filter(function(e) {
|
|
3490
|
+
return e !== "key";
|
|
3491
|
+
}), v = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
3492
|
+
zn[g + v] || (x("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", v, g, _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}", g), zn[g + v] = !0);
|
|
3493
|
+
}
|
|
3494
|
+
return e === o ? Rn(p) : Ln(p), p;
|
|
3495
|
+
}
|
|
3496
|
+
function Vn(e, t, n) {
|
|
3497
|
+
return Bn(e, t, n, !0);
|
|
3498
|
+
}
|
|
3499
|
+
function Hn(e, t, n) {
|
|
3500
|
+
return Bn(e, t, n, !1);
|
|
3501
|
+
}
|
|
3502
|
+
var Un = Hn, Wn = Vn;
|
|
3503
|
+
e.Fragment = o, e.jsx = Un, e.jsxs = Wn;
|
|
3504
|
+
})();
|
|
3505
|
+
})), import_jsx_runtime = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
3506
|
+
process.env.NODE_ENV === "production" ? t.exports = require_react_jsx_runtime_production_min() : t.exports = require_react_jsx_runtime_development();
|
|
3507
|
+
})))(), 1);
|
|
3508
|
+
function PaymentMethodOption(e) {
|
|
3509
|
+
let { method: t, onClick: n, isSelected: i, onChangeClick: a, isCollapsed: o, t: s } = e, { display_name: c, logo_url: l, transfer_speed: u, transfer_limit: d, transfer_fee: f } = t, p = (e) => {
|
|
3510
|
+
e.stopPropagation(), a?.();
|
|
3511
|
+
};
|
|
3512
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3513
|
+
className: clsx_default(index_module_default.paymentMethodItem, {
|
|
3514
|
+
[index_module_default.selected]: i && !o,
|
|
3515
|
+
[index_module_default.collapsed]: o
|
|
3516
|
+
}),
|
|
3517
|
+
onClick: n,
|
|
3518
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3519
|
+
className: index_module_default.header,
|
|
3520
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3521
|
+
className: index_module_default.titleContainer,
|
|
3522
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
3523
|
+
className: index_module_default.title,
|
|
3524
|
+
children: c
|
|
3525
|
+
}), l ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", {
|
|
3526
|
+
className: index_module_default.icon,
|
|
3527
|
+
src: l,
|
|
3528
|
+
alt: c
|
|
3529
|
+
}) : null]
|
|
3530
|
+
}), o ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
3531
|
+
className: index_module_default.changeButton,
|
|
3532
|
+
onClick: p,
|
|
3533
|
+
children: s("paymentMethodChange", "Change")
|
|
3534
|
+
}) : null]
|
|
3535
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3536
|
+
className: index_module_default.meta,
|
|
3537
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3538
|
+
className: index_module_default.metaText,
|
|
3539
|
+
children: [
|
|
3540
|
+
s("transferLimit", "Transfer limit"),
|
|
3541
|
+
": ",
|
|
3542
|
+
d
|
|
3543
|
+
]
|
|
3544
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3545
|
+
className: index_module_default.metaText,
|
|
3546
|
+
children: [
|
|
3547
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
3548
|
+
s("transferFee", "Transfer fee"),
|
|
3549
|
+
": ",
|
|
3550
|
+
f
|
|
3551
|
+
] }),
|
|
3552
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: index_module_default.verticalDivider }),
|
|
3553
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
3554
|
+
s("transferSpeed", "Transfer speed"),
|
|
3555
|
+
": ",
|
|
3556
|
+
u
|
|
3557
|
+
] })
|
|
3558
|
+
]
|
|
3559
|
+
})]
|
|
3560
|
+
})]
|
|
3561
|
+
});
|
|
3562
|
+
}
|
|
3563
|
+
function PaymentMethodList(e) {
|
|
3564
|
+
let { label: t, options: n, defaultValue: i, onChange: a, t: o } = e, [s, c] = (0, import_react.useState)(!!i), [l, u] = (0, import_react.useState)(i), d = (0, import_react.useMemo)(() => n.find((e) => e.payment_method === l), [n, l]), f = (e) => {
|
|
3565
|
+
u(e), c(!0), a?.(e);
|
|
3566
|
+
};
|
|
3567
|
+
return s && d ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3568
|
+
className: clsx_default(index_module_default.paymentMethodList, index_module_default.collapsed),
|
|
3569
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
|
|
3570
|
+
className: index_module_default.label,
|
|
3571
|
+
children: t
|
|
3572
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
3573
|
+
className: index_module_default.collapsedContainer,
|
|
3574
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PaymentMethodOption, {
|
|
3575
|
+
isCollapsed: s,
|
|
3576
|
+
method: d,
|
|
3577
|
+
isSelected: l === d.payment_method,
|
|
3578
|
+
onChangeClick: () => {
|
|
3579
|
+
c(!1);
|
|
3580
|
+
},
|
|
3581
|
+
t: o
|
|
3582
|
+
})
|
|
3583
|
+
})]
|
|
3584
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3585
|
+
className: index_module_default.paymentMethodList,
|
|
3586
|
+
children: [
|
|
3587
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
|
|
3588
|
+
className: index_module_default.label,
|
|
3589
|
+
children: t
|
|
3590
|
+
}),
|
|
3591
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
3592
|
+
className: clsx_default(index_module_default.alertContainer, { [index_module_default.hidden]: l }),
|
|
3593
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: index_module_default.alertIcon }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
3594
|
+
className: index_module_default.alertText,
|
|
3595
|
+
children: o("missingPaymentMethod", "Please select a transfer method to continue.")
|
|
3596
|
+
})]
|
|
3597
|
+
}),
|
|
3598
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
3599
|
+
className: index_module_default.paymentMethodListOptions,
|
|
3600
|
+
children: n.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PaymentMethodOption, {
|
|
3601
|
+
isCollapsed: s,
|
|
3602
|
+
method: e,
|
|
3603
|
+
isSelected: l === e.payment_method,
|
|
3604
|
+
onClick: () => f(e.payment_method),
|
|
3605
|
+
t: o
|
|
3606
|
+
}, e.payment_method))
|
|
3607
|
+
})
|
|
3608
|
+
]
|
|
3609
|
+
});
|
|
3610
|
+
}
|
|
3611
|
+
function getTransferMethodSchema(e, t, n, i) {
|
|
3612
|
+
let { inputCurrency: a, inputPayoutType: o, inputRegionCode: s } = e;
|
|
3613
|
+
if (!a || !o || !s || !n) return;
|
|
3614
|
+
let c = n?.countries?.[s]?.payout_type?.[o]?.payment_method_infos || [];
|
|
3615
|
+
if (c.length !== 0) return {
|
|
3616
|
+
name: "inputPaymentMethod",
|
|
3617
|
+
asFormItem: !0,
|
|
3618
|
+
children: ({ onChange: e }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PaymentMethodList, {
|
|
3619
|
+
label: t("paymentMethodInputLabel", "Transfer method"),
|
|
3620
|
+
options: c,
|
|
3621
|
+
defaultValue: i?.payment_method,
|
|
3622
|
+
onChange: e,
|
|
3623
|
+
t
|
|
3624
|
+
}, `${a}-${o}-${s}`)
|
|
3625
|
+
};
|
|
3626
|
+
}
|
|
3627
|
+
function BeneficiaryForm$1({ authCode: e, domain: t, codeVerifier: n, emitter: o, defaultValues: s = {}, customizations: c, locale: l }) {
|
|
3628
|
+
let { t: u } = useTranslate("beneficiaryForm"), { t: d } = useTranslate("payoutForm"), { t: f } = useTranslate("amis"), { t: p } = useTranslate("countryName"), m = useMi18n().getRecord({
|
|
3629
|
+
language: l || "en",
|
|
3630
|
+
namespace: "amis"
|
|
3631
|
+
});
|
|
3632
|
+
(0, import_react.useEffect)(() => {
|
|
3633
|
+
let e = Object.fromEntries(Object.entries(AMIS_DEFAULT_LOCALE).map(([e, t]) => [e, m?.get(e) || t]));
|
|
3634
|
+
register(getAmisLocale(l || "en"), e);
|
|
3635
|
+
}, [
|
|
3636
|
+
m,
|
|
3637
|
+
l,
|
|
3638
|
+
f
|
|
3639
|
+
]);
|
|
3640
|
+
let { regionInfos: h, loading: g } = useRegionInfos(e, t, n), [_, v] = (0, import_react.useState)({
|
|
3641
|
+
inputPayoutType: convertEntityTypeToPayoutType(s?.beneficiary?.entity_details?.type) || "B2P",
|
|
3642
|
+
inputPaymentMethod: s?.payment_method,
|
|
3643
|
+
inputRegionCode: s?.beneficiary?.address?.country,
|
|
3644
|
+
inputCurrency: s?.receive_currency
|
|
3645
|
+
}), [y, b] = (0, import_react.useState)(), [x, S] = (0, import_react.useState)(), C = (0, import_react.useMemo)(() => !c?.layout?.find((e) => e.name === "bankDetails")?.hidden, [c?.layout]), w = (0, import_react.useMemo)(() => {
|
|
3646
|
+
let e = /* @__PURE__ */ new Set();
|
|
3647
|
+
return h.filter((t) => t.region_number && !e.has(t.region_number) && e.add(t.region_number)).map((e) => ({
|
|
3648
|
+
label: getCountryName(e.region_name_standard || e.region_name, p),
|
|
3649
|
+
value: e.region_code
|
|
3650
|
+
})).sort((e, t) => e.label.localeCompare(t.label));
|
|
3651
|
+
}, [h, p]), { currencies: T } = useCurrencies(_.inputRegionCode, e, t, n);
|
|
3652
|
+
useDeepCompareEffect_default(() => {
|
|
3653
|
+
async function i() {
|
|
3654
|
+
!_.inputCurrency || !_.inputRegionCode || !_.inputPayoutType || b(await getPaymentMethodsInfo(_.inputRegionCode, _.inputCurrency, e, t, n));
|
|
3655
|
+
}
|
|
3656
|
+
i();
|
|
3657
|
+
}, [
|
|
3658
|
+
e,
|
|
3659
|
+
n,
|
|
3660
|
+
t,
|
|
3661
|
+
_?.inputCurrency,
|
|
3662
|
+
_?.inputPayoutType,
|
|
3663
|
+
_?.inputRegionCode
|
|
3664
|
+
]);
|
|
3665
|
+
let E = (0, import_react.useMemo)(() => getTransferMethodSchema(_, u, y, s), [
|
|
3666
|
+
s,
|
|
3667
|
+
_,
|
|
3668
|
+
y,
|
|
3669
|
+
u
|
|
3670
|
+
]);
|
|
3671
|
+
useDeepCompareEffect_default(() => {
|
|
3672
|
+
getBeneficiarySchema(_, s, e, t, n).then((e) => {
|
|
3673
|
+
e && (processBeneficiaryForm(e, s, o, d), S(e));
|
|
3674
|
+
});
|
|
3675
|
+
}, [
|
|
3676
|
+
e,
|
|
3677
|
+
n,
|
|
3678
|
+
s,
|
|
3679
|
+
t,
|
|
3680
|
+
o,
|
|
3681
|
+
_
|
|
3682
|
+
]);
|
|
3683
|
+
let D = (0, import_react.useMemo)(() => ({
|
|
3684
|
+
type: "page",
|
|
3685
|
+
cssVars: {
|
|
3686
|
+
"--Form-item-color": "#000000E5",
|
|
3687
|
+
"--body-color": "#000",
|
|
3688
|
+
"--listSelect-base-active-bg-color": "#00000003",
|
|
3689
|
+
"--Panel-heading-bg-color": "#fff"
|
|
3690
|
+
},
|
|
3691
|
+
body: {
|
|
3692
|
+
type: "spinner",
|
|
3693
|
+
show: g,
|
|
3694
|
+
overlay: !0,
|
|
3695
|
+
body: [{
|
|
3696
|
+
type: "form",
|
|
3697
|
+
id: "main-form",
|
|
3698
|
+
mode: "normal",
|
|
3699
|
+
title: u("title", "Beneficiary Form"),
|
|
3700
|
+
submitText: "",
|
|
3701
|
+
visible: C,
|
|
3702
|
+
onChange: (e) => {
|
|
3703
|
+
let t = e.inputRegionCode, n = e.inputRegionCode ? e.inputCurrency : "", i = e.inputRegionCode ? e.inputPaymentMethod : "";
|
|
3704
|
+
v({
|
|
3705
|
+
inputPayoutType: e.inputPayoutType,
|
|
3706
|
+
inputPaymentMethod: i,
|
|
3707
|
+
inputRegionCode: t,
|
|
3708
|
+
inputCurrency: n
|
|
3709
|
+
});
|
|
3710
|
+
},
|
|
3711
|
+
body: [
|
|
3712
|
+
{
|
|
3713
|
+
label: u("regionInputLabel", "Bank Location"),
|
|
3714
|
+
type: "select",
|
|
3715
|
+
searchable: !0,
|
|
3716
|
+
name: "inputRegionCode",
|
|
3717
|
+
options: w,
|
|
3718
|
+
value: _?.inputRegionCode
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
label: u("payoutTypeInputLabel", "Bank account type"),
|
|
3722
|
+
type: "radios",
|
|
3723
|
+
name: "inputPayoutType",
|
|
3724
|
+
selectFirst: !0,
|
|
3725
|
+
disabled: !0,
|
|
3726
|
+
options: [{
|
|
3727
|
+
label: u("payoutTypeInputLabelB2P", "Individual"),
|
|
3728
|
+
value: "B2P"
|
|
3729
|
+
}],
|
|
3730
|
+
value: _?.inputPayoutType
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
label: u("currencyInputLabel", "Account currency"),
|
|
3734
|
+
type: "select",
|
|
3735
|
+
searchable: !0,
|
|
3736
|
+
name: "inputCurrency",
|
|
3737
|
+
options: T,
|
|
3738
|
+
selectFirst: !0,
|
|
3739
|
+
value: _?.inputCurrency,
|
|
3740
|
+
onChange: () => {
|
|
3741
|
+
S(void 0);
|
|
3742
|
+
},
|
|
3743
|
+
onEvent: { change: { actions: [{
|
|
3744
|
+
actionType: "setValue",
|
|
3745
|
+
componentId: "main-form",
|
|
3746
|
+
args: { value: { inputPaymentMethod: void 0 } }
|
|
3747
|
+
}] } }
|
|
3748
|
+
},
|
|
3749
|
+
E
|
|
3750
|
+
]
|
|
3751
|
+
}, x?.body?.[0]]
|
|
3752
|
+
}
|
|
3753
|
+
}), [
|
|
3754
|
+
_,
|
|
3755
|
+
T,
|
|
3756
|
+
w,
|
|
3757
|
+
C,
|
|
3758
|
+
g,
|
|
3759
|
+
u,
|
|
3760
|
+
E,
|
|
3761
|
+
x
|
|
3762
|
+
]);
|
|
3763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Toast, {}), render(D, { locale: getAmisLocale(l || "en") }, DEFAULT_AMIS_ENV)] });
|
|
3764
|
+
}
|
|
3765
|
+
function BeneficiaryForm(e) {
|
|
3766
|
+
let { mi18n: t } = e;
|
|
3767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Mi18nProvider, {
|
|
3768
|
+
mi18n: t,
|
|
3769
|
+
fallback: "Loading...",
|
|
3770
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BeneficiaryForm$1, { ...e })
|
|
3771
|
+
});
|
|
3772
|
+
}
|
|
3773
|
+
export { BeneficiaryForm as default };
|