aldehyde 0.2.98 → 0.2.100
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/LICENSE +1 -1
- package/dist/bundle.021f784b1c84781461d2.js +1 -0
- package/dist/bundle.03c542ca824e205fe307.js +2 -0
- package/dist/bundle.03c542ca824e205fe307.js.LICENSE.txt +27 -0
- package/dist/bundle.03c542ca824e205fe307.js.gz +0 -0
- package/dist/bundle.15cb660c34802f6cccf5.js +1 -0
- package/dist/bundle.15cb660c34802f6cccf5.js.gz +0 -0
- package/dist/bundle.2f9c2d692fe0277a37aa.js +2 -0
- package/dist/bundle.2f9c2d692fe0277a37aa.js.LICENSE.txt +1 -0
- package/dist/bundle.2f9c2d692fe0277a37aa.js.gz +0 -0
- package/dist/bundle.320c02187dd135005102.js +2 -0
- package/dist/bundle.320c02187dd135005102.js.LICENSE.txt +6 -0
- package/dist/bundle.320c02187dd135005102.js.gz +0 -0
- package/dist/bundle.35a4af7e2d0da1942d79.js +10 -0
- package/dist/bundle.35a4af7e2d0da1942d79.js.gz +0 -0
- package/dist/bundle.3f9072b1629cdb384b46.js +2 -0
- package/dist/bundle.3f9072b1629cdb384b46.js.LICENSE.txt +5 -0
- package/dist/bundle.3f9072b1629cdb384b46.js.gz +0 -0
- package/dist/bundle.46e2295b5360a725bcd5.js +1 -0
- package/dist/bundle.46e2295b5360a725bcd5.js.gz +0 -0
- package/dist/bundle.4c3c988531c3cf360b87.js +1 -0
- package/dist/bundle.4c3c988531c3cf360b87.js.gz +0 -0
- package/dist/bundle.4df89546fd2e9d665dfb.js +2 -0
- package/dist/bundle.4df89546fd2e9d665dfb.js.LICENSE.txt +5 -0
- package/dist/bundle.4df89546fd2e9d665dfb.js.gz +0 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js +5 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js.LICENSE.txt +10 -0
- package/dist/bundle.5a9afb9ee6cceca506fa.js.gz +0 -0
- package/dist/bundle.5e6cccd06b34a0e3a2ff.js +1 -0
- package/dist/bundle.5e6cccd06b34a0e3a2ff.js.gz +0 -0
- package/dist/bundle.62c62e6aaa7f3c20761e.js +2 -0
- package/dist/bundle.62c62e6aaa7f3c20761e.js.LICENSE.txt +17 -0
- package/dist/bundle.62c62e6aaa7f3c20761e.js.gz +0 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js +2 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js.LICENSE.txt +17 -0
- package/dist/bundle.6fd2dadd29083268c5a6.js.gz +0 -0
- package/dist/bundle.8241d8d05e35988dd480.js +1 -0
- package/dist/bundle.8241d8d05e35988dd480.js.gz +0 -0
- package/dist/bundle.829683dfa6a98c78c58e.js +2 -0
- package/dist/bundle.829683dfa6a98c78c58e.js.LICENSE.txt +14 -0
- package/dist/bundle.829683dfa6a98c78c58e.js.gz +0 -0
- package/dist/bundle.840e28984e710e12f467.js +75 -0
- package/dist/bundle.840e28984e710e12f467.js.LICENSE.txt +8 -0
- package/dist/bundle.840e28984e710e12f467.js.gz +0 -0
- package/dist/bundle.85ce5221fe6ab1d91f7d.js +2 -0
- package/dist/bundle.85ce5221fe6ab1d91f7d.js.LICENSE.txt +1 -0
- package/dist/bundle.85ce5221fe6ab1d91f7d.js.gz +0 -0
- package/dist/bundle.9cfd99a04bde7f781c30.js +1 -0
- package/dist/bundle.9cfd99a04bde7f781c30.js.gz +0 -0
- package/dist/bundle.a049dc8814bbbf59160f.js +1 -0
- package/dist/bundle.a049dc8814bbbf59160f.js.gz +0 -0
- package/dist/bundle.a94f7811fac19aa9d6a3.js +2 -0
- package/dist/bundle.a94f7811fac19aa9d6a3.js.LICENSE.txt +1 -0
- package/dist/bundle.a94f7811fac19aa9d6a3.js.gz +0 -0
- package/dist/bundle.abdde6e82ee9f60d1bf3.js +2 -0
- package/dist/bundle.abdde6e82ee9f60d1bf3.js.LICENSE.txt +30 -0
- package/dist/bundle.abdde6e82ee9f60d1bf3.js.gz +0 -0
- package/dist/bundle.b207a66d5902f39d0c5a.js +1 -0
- package/dist/bundle.b207a66d5902f39d0c5a.js.gz +0 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js +2 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js.LICENSE.txt +8 -0
- package/dist/bundle.b7b86a025aa95dea0e19.js.gz +0 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js +2 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js.LICENSE.txt +5 -0
- package/dist/bundle.b7e3eb480b649b3de67b.js.gz +0 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js +2 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js.LICENSE.txt +5 -0
- package/dist/bundle.c1c6028fd703ebf78c2e.js.gz +0 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js +2 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js.LICENSE.txt +22 -0
- package/dist/bundle.cd10ae07e0e0c36d0dee.js.gz +0 -0
- package/dist/bundle.cf6a1933769c2aee4e6e.js +1 -0
- package/dist/bundle.cf6a1933769c2aee4e6e.js.gz +0 -0
- package/dist/bundle.d158d417d1d7a8acb2a1.js +1 -0
- package/dist/bundle.d158d417d1d7a8acb2a1.js.gz +0 -0
- package/dist/bundle.db40aa107272f4303ece.js +1 -0
- package/dist/bundle.db40aa107272f4303ece.js.gz +0 -0
- package/dist/bundle.ddefe6d8f235ef95d470.js +1 -0
- package/dist/bundle.ddefe6d8f235ef95d470.js.gz +0 -0
- package/dist/bundle.e02a7a16b4a6b3bb412f.js +2 -0
- package/dist/bundle.e02a7a16b4a6b3bb412f.js.LICENSE.txt +16 -0
- package/dist/bundle.e02a7a16b4a6b3bb412f.js.gz +0 -0
- package/dist/bundle.e760a70171cf0ae4567b.js +1 -0
- package/dist/bundle.e760a70171cf0ae4567b.js.gz +0 -0
- package/dist/bundle.f3ce062a620fe456c152.js +1 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js +2 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js.LICENSE.txt +41 -0
- package/dist/bundle.f6e1c4fda58154810fe2.js.gz +0 -0
- package/dist/bundle.fe9c09b8ace9c3117b0a.js +1 -0
- package/dist/bundle.fe9c09b8ace9c3117b0a.js.gz +0 -0
- package/dist/bundle.feaa17bec2057a4ee54f.js +1 -0
- package/dist/bundle.feaa17bec2057a4ee54f.js.gz +0 -0
- package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css +12 -0
- package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css.gz +0 -0
- package/dist/css/common-901df6b21f13391f2a53.css +56 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +886 -0
- package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
- package/dist/css/main-f3c8fdebab315e61e7be.css +865 -0
- package/dist/css/main-f3c8fdebab315e61e7be.css.gz +0 -0
- package/dist/images/development-30de07a0.png +0 -0
- package/dist/images/logo-54b328b7.png +0 -0
- package/dist/images/pain-point-8f02421e.png +0 -0
- package/dist/images/target-13a5b4b9.png +0 -0
- package/dist/images/time-cost-cb40d2c2.png +0 -0
- package/dist/images/time-prograss-44b86b36.png +0 -0
- package/dist/index.html +4 -0
- package/lib/controls/action/index.d.ts +16 -7
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +64 -48
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/action/utils.d.ts +1 -1
- package/lib/controls/action/utils.d.ts.map +1 -1
- package/lib/controls/action/utils.js +6 -4
- package/lib/controls/action/utils.js.map +1 -1
- package/lib/controls/auto-complete/index.d.ts +1 -1
- package/lib/controls/auto-complete/index.d.ts.map +1 -1
- package/lib/controls/auto-complete/index.js +12 -6
- package/lib/controls/auto-complete/index.js.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +13 -4
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.js +40 -27
- package/lib/controls/chemstruc/graph.js.map +1 -1
- package/lib/controls/collapse-card/index.d.ts +11 -2
- package/lib/controls/collapse-card/index.d.ts.map +1 -1
- package/lib/controls/collapse-card/index.js +18 -16
- package/lib/controls/collapse-card/index.js.map +1 -1
- package/lib/controls/color-picker/index.d.ts +11 -2
- package/lib/controls/color-picker/index.d.ts.map +1 -1
- package/lib/controls/color-picker/index.js +23 -19
- package/lib/controls/color-picker/index.js.map +1 -1
- package/lib/controls/cquery/cquick-button.d.ts +11 -2
- package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
- package/lib/controls/cquery/cquick-button.js +30 -28
- package/lib/controls/cquery/cquick-button.js.map +1 -1
- package/lib/controls/entity-select/entity-select.d.ts +12 -3
- package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/entity-select.js +67 -66
- package/lib/controls/entity-select/entity-select.js.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.d.ts +11 -2
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.js +26 -21
- package/lib/controls/entity-select/lab-tree-select.js.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +11 -2
- package/lib/controls/entity-select/popover-entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.js +30 -26
- package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +153 -98
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
- package/lib/controls/input-number/index.d.ts +1 -1
- package/lib/controls/input-number/index.d.ts.map +1 -1
- package/lib/controls/input-number/index.js +31 -23
- package/lib/controls/input-number/index.js.map +1 -1
- package/lib/controls/input-range/index.d.ts +1 -1
- package/lib/controls/input-range/index.d.ts.map +1 -1
- package/lib/controls/input-range/index.js +9 -8
- package/lib/controls/input-range/index.js.map +1 -1
- package/lib/controls/password-setter/index.d.ts +9 -3
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/password-setter/index.js +22 -14
- package/lib/controls/password-setter/index.js.map +1 -1
- package/lib/controls/progress/index.d.ts +1 -1
- package/lib/controls/progress/index.d.ts.map +1 -1
- package/lib/controls/progress/index.js +13 -6
- package/lib/controls/progress/index.js.map +1 -1
- package/lib/controls/relation-existion/index.d.ts +11 -2
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.js +30 -18
- package/lib/controls/relation-existion/index.js.map +1 -1
- package/lib/controls/rfield/index.d.ts +11 -2
- package/lib/controls/rfield/index.d.ts.map +1 -1
- package/lib/controls/rfield/index.js +33 -35
- package/lib/controls/rfield/index.js.map +1 -1
- package/lib/controls/signature/index.d.ts +10 -1
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/signature/index.js +56 -31
- package/lib/controls/signature/index.js.map +1 -1
- package/lib/controls/steps/index.d.ts +1 -1
- package/lib/controls/steps/index.d.ts.map +1 -1
- package/lib/controls/steps/index.js +8 -6
- package/lib/controls/steps/index.js.map +1 -1
- package/lib/controls/text/ellipsis-text.d.ts +9 -0
- package/lib/controls/text/ellipsis-text.d.ts.map +1 -1
- package/lib/controls/text/ellipsis-text.js +13 -11
- package/lib/controls/text/ellipsis-text.js.map +1 -1
- package/lib/controls/upload/index.d.ts +10 -1
- package/lib/controls/upload/index.d.ts.map +1 -1
- package/lib/controls/upload/index.js +30 -21
- package/lib/controls/upload/index.js.map +1 -1
- package/lib/controls/view-control.d.ts +1 -1
- package/lib/controls/view-control.d.ts.map +1 -1
- package/lib/controls/view-control.js +118 -85
- package/lib/controls/view-control.js.map +1 -1
- package/lib/custom-page/def-custom-page.d.ts +5 -6
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/custom-page/def-custom-page.js +13 -12
- package/lib/custom-page/def-custom-page.js.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +10 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js +19 -7
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/bottom-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.js +20 -12
- package/lib/detail/button/bottom-submit-button-bar.js.map +1 -1
- package/lib/detail/button/cquery-button-bar.d.ts +12 -3
- package/lib/detail/button/cquery-button-bar.d.ts.map +1 -1
- package/lib/detail/button/cquery-button-bar.js +22 -18
- package/lib/detail/button/cquery-button-bar.js.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.js +28 -23
- package/lib/detail/button/fix-right-submit-button-bar.js.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +11 -2
- package/lib/detail/edit/fields-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/fields-edit-card.js +18 -19
- package/lib/detail/edit/fields-edit-card.js.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +11 -2
- package/lib/detail/edit/modal-row-edit.d.ts.map +1 -1
- package/lib/detail/edit/modal-row-edit.js +14 -11
- package/lib/detail/edit/modal-row-edit.js.map +1 -1
- package/lib/detail/edit/post-result/index.d.ts +1 -1
- package/lib/detail/edit/post-result/index.d.ts.map +1 -1
- package/lib/detail/edit/post-result/index.js +17 -12
- package/lib/detail/edit/post-result/index.js.map +1 -1
- package/lib/detail/edit/row-edit-card.d.ts +11 -2
- package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/row-edit-card.js +23 -23
- package/lib/detail/edit/row-edit-card.js.map +1 -1
- package/lib/detail/rightbar/index.d.ts +12 -3
- package/lib/detail/rightbar/index.d.ts.map +1 -1
- package/lib/detail/rightbar/index.js +16 -9
- package/lib/detail/rightbar/index.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +11 -2
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +26 -25
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts +2 -2
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +40 -40
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/field-view-group.d.ts +10 -1
- package/lib/detail/view/field-view-group.d.ts.map +1 -1
- package/lib/detail/view/field-view-group.js +17 -11
- package/lib/detail/view/field-view-group.js.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts +10 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.js +11 -8
- package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +11 -2
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +18 -16
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/exportor/export-frame.d.ts +11 -2
- package/lib/exportor/export-frame.d.ts.map +1 -1
- package/lib/exportor/export-frame.js +41 -42
- package/lib/exportor/export-frame.js.map +1 -1
- package/lib/form/criteria-form.d.ts +2 -2
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +58 -45
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/form/dtmpl-form.d.ts +11 -2
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/dtmpl-form.js +77 -65
- package/lib/form/dtmpl-form.js.map +1 -1
- package/lib/form/field-group-form.d.ts +12 -3
- package/lib/form/field-group-form.d.ts.map +1 -1
- package/lib/form/field-group-form.js +26 -18
- package/lib/form/field-group-form.js.map +1 -1
- package/lib/form/form-Item-group.d.ts +10 -1
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/form-Item-group.js +43 -26
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/import/excel-import.d.ts +12 -3
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/excel-import.js +69 -55
- package/lib/import/excel-import.js.map +1 -1
- package/lib/index.d.ts +42 -39
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +43 -39
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.d.ts +1 -1
- package/lib/layout/MainPage.d.ts.map +1 -1
- package/lib/layout/MainPage.js +47 -37
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/footer/index.d.ts.map +1 -1
- package/lib/layout/header/index.d.ts +1 -1
- package/lib/layout/header/index.d.ts.map +1 -1
- package/lib/layout/header/index.js +15 -13
- package/lib/layout/header/index.js.map +1 -1
- package/lib/layout/menu/block.d.ts +13 -1
- package/lib/layout/menu/block.d.ts.map +1 -1
- package/lib/layout/menu/block.js +66 -8
- package/lib/layout/menu/block.js.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts +11 -2
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.js +24 -19
- package/lib/layout/menu/l2menu-quick-bar.js.map +1 -1
- package/lib/layout/menu/menu-2layers.d.ts +10 -0
- package/lib/layout/menu/menu-2layers.d.ts.map +1 -1
- package/lib/layout/menu/menu-2layers.js +32 -9
- package/lib/layout/menu/menu-2layers.js.map +1 -1
- package/lib/layout/menu/reset-password.d.ts +12 -3
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.js +52 -36
- package/lib/layout/menu/reset-password.js.map +1 -1
- package/lib/layout/menu/user-bar.d.ts +12 -3
- package/lib/layout/menu/user-bar.d.ts.map +1 -1
- package/lib/layout/menu/user-bar.js +72 -42
- package/lib/layout/menu/user-bar.js.map +1 -1
- package/lib/layout/menu/userinfo-bar.d.ts +10 -1
- package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
- package/lib/layout/menu/userinfo-bar.js +11 -10
- package/lib/layout/menu/userinfo-bar.js.map +1 -1
- package/lib/layout/sidebar/index.css +15 -4
- package/lib/layout/sidebar/index.d.ts +2 -2
- package/lib/layout/sidebar/index.d.ts.map +1 -1
- package/lib/layout/sidebar/index.js +21 -13
- package/lib/layout/sidebar/index.js.map +1 -1
- package/lib/locale/LocaleButton.d.ts +4 -0
- package/lib/locale/LocaleButton.d.ts.map +1 -0
- package/lib/locale/LocaleButton.js +24 -0
- package/lib/locale/LocaleButton.js.map +1 -0
- package/lib/locale/LocaleProvider.d.ts +13 -0
- package/lib/locale/LocaleProvider.d.ts.map +1 -0
- package/lib/locale/LocaleProvider.js +137 -0
- package/lib/locale/LocaleProvider.js.map +1 -0
- package/lib/locale/langMp.d.ts +16 -0
- package/lib/locale/langMp.d.ts.map +1 -0
- package/lib/locale/langMp.js +29 -0
- package/lib/locale/langMp.js.map +1 -0
- package/lib/locale/translate.d.ts +3 -0
- package/lib/locale/translate.d.ts.map +1 -0
- package/lib/locale/translate.js +76 -0
- package/lib/locale/translate.js.map +1 -0
- package/lib/locale/useLocale.d.ts +14 -0
- package/lib/locale/useLocale.d.ts.map +1 -0
- package/lib/locale/useLocale.js +34 -0
- package/lib/locale/useLocale.js.map +1 -0
- package/lib/login/login.d.ts +13 -3
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +38 -25
- package/lib/login/login.js.map +1 -1
- package/lib/login/router-login.d.ts +2 -2
- package/lib/login/router-login.d.ts.map +1 -1
- package/lib/login/router-login.js +33 -19
- package/lib/login/router-login.js.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts +11 -2
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.js +22 -14
- package/lib/module/dtmpl-edit-card.js.map +1 -1
- package/lib/module/dtmpl-edit-page.d.ts +12 -3
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.js +42 -31
- package/lib/module/dtmpl-edit-page.js.map +1 -1
- package/lib/module/ltmpl-modal.d.ts +10 -1
- package/lib/module/ltmpl-modal.d.ts.map +1 -1
- package/lib/module/ltmpl-modal.js +15 -8
- package/lib/module/ltmpl-modal.js.map +1 -1
- package/lib/module/ltmpl-table.d.ts +11 -2
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +39 -39
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/routable/ltmpl-route.d.ts +2 -2
- package/lib/routable/ltmpl-route.d.ts.map +1 -1
- package/lib/routable/ltmpl-route.js +22 -21
- package/lib/routable/ltmpl-route.js.map +1 -1
- package/lib/table/act-table.d.ts +12 -3
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +269 -208
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/column/column-selector.d.ts.map +1 -1
- package/lib/table/column/column-selector.js +20 -18
- package/lib/table/column/column-selector.js.map +1 -1
- package/lib/table/control-table-x-axis-wrapper.d.ts +5 -0
- package/lib/table/control-table-x-axis-wrapper.d.ts.map +1 -0
- package/lib/table/control-table-x-axis-wrapper.js +60 -0
- package/lib/table/control-table-x-axis-wrapper.js.map +1 -0
- package/lib/table/l2-act-table.d.ts +1 -1
- package/lib/table/pagination.d.ts +11 -2
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/pagination.js +13 -12
- package/lib/table/pagination.js.map +1 -1
- package/lib/table/query-table.d.ts +10 -1
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +47 -40
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +13 -4
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +118 -109
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/selected-rows-card.d.ts +10 -1
- package/lib/table/selected-rows-card.d.ts.map +1 -1
- package/lib/table/selected-rows-card.js +10 -9
- package/lib/table/selected-rows-card.js.map +1 -1
- package/lib/table/stat/restat.d.ts +10 -1
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +10 -9
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/tmpl/hc-data-source.d.ts.map +1 -1
- package/lib/tmpl/hc-data-source.js +21 -14
- package/lib/tmpl/hc-data-source.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts +2 -0
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +127 -100
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/model-struc-v3.d.ts.map +1 -1
- package/lib/tmpl/model-struc-v3.js +19 -18
- package/lib/tmpl/model-struc-v3.js.map +1 -1
- package/lib/tmpl/superagent.d.ts +2 -2
- package/lib/tmpl/superagent.d.ts.map +1 -1
- package/lib/tmpl/superagent.js +28 -23
- package/lib/tmpl/superagent.js.map +1 -1
- package/lib/tree/act-tree.d.ts +10 -1
- package/lib/tree/act-tree.d.ts.map +1 -1
- package/lib/tree/act-tree.js +26 -20
- package/lib/tree/act-tree.js.map +1 -1
- package/lib/tree/tmpl-tree.d.ts +11 -2
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.js +85 -64
- package/lib/tree/tmpl-tree.js.map +1 -1
- package/lib/tree/tree-node.d.ts.map +1 -1
- package/lib/tree/tree-node.js.map +1 -1
- package/lib/units/index.d.ts.map +1 -1
- package/lib/welcome/HCWelcome.js +7 -23
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/lib/welcome/HCWelcome1.d.ts +4 -0
- package/lib/welcome/HCWelcome1.d.ts.map +1 -0
- package/lib/welcome/HCWelcome1.js +192 -0
- package/lib/welcome/HCWelcome1.js.map +1 -0
- package/lib/welcome/quick-entrance.d.ts +12 -3
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.js +21 -17
- package/lib/welcome/quick-entrance.js.map +1 -1
- package/lib/welcome/workbench.d.ts +12 -3
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/lib/welcome/workbench.js +23 -19
- package/lib/welcome/workbench.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/action/index.tsx +329 -221
- package/src/aldehyde/controls/action/utils.tsx +6 -4
- package/src/aldehyde/controls/auto-complete/index.tsx +64 -60
- package/src/aldehyde/controls/chemstruc/graph.tsx +175 -139
- package/src/aldehyde/controls/collapse-card/index.tsx +96 -54
- package/src/aldehyde/controls/color-picker/index.tsx +107 -78
- package/src/aldehyde/controls/cquery/cquick-button.tsx +129 -89
- package/src/aldehyde/controls/entity-select/entity-select.tsx +643 -523
- package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +140 -131
- package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +178 -133
- package/src/aldehyde/controls/entry-control.tsx +374 -248
- package/src/aldehyde/controls/input-number/index.tsx +131 -86
- package/src/aldehyde/controls/input-range/index.tsx +51 -40
- package/src/aldehyde/controls/password-setter/index.js +81 -63
- package/src/aldehyde/controls/progress/index.tsx +59 -46
- package/src/aldehyde/controls/relation-existion/index.tsx +125 -87
- package/src/aldehyde/controls/rfield/index.tsx +178 -151
- package/src/aldehyde/controls/signature/index.tsx +215 -151
- package/src/aldehyde/controls/steps/index.tsx +44 -42
- package/src/aldehyde/controls/text/ellipsis-text.tsx +79 -53
- package/src/aldehyde/controls/upload/index.tsx +125 -109
- package/src/aldehyde/controls/view-control.tsx +250 -188
- package/src/aldehyde/custom-page/def-custom-page.tsx +17 -0
- package/src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx +75 -66
- package/src/aldehyde/detail/button/bottom-submit-button-bar.tsx +79 -43
- package/src/aldehyde/detail/button/cquery-button-bar.tsx +129 -98
- package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +161 -113
- package/src/aldehyde/detail/edit/fields-edit-card.tsx +124 -87
- package/src/aldehyde/detail/edit/modal-row-edit.tsx +81 -60
- package/src/aldehyde/detail/edit/post-result/index.tsx +80 -47
- package/src/aldehyde/detail/edit/row-edit-card.tsx +158 -107
- package/src/aldehyde/detail/rightbar/index.tsx +79 -63
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +177 -124
- package/src/aldehyde/detail/view/dtmpl-view.tsx +284 -178
- package/src/aldehyde/detail/view/field-view-group.tsx +62 -47
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +67 -54
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +143 -110
- package/src/aldehyde/exportor/export-frame.tsx +258 -200
- package/src/aldehyde/form/criteria-form.tsx +309 -201
- package/src/aldehyde/form/dtmpl-form.tsx +460 -307
- package/src/aldehyde/form/field-group-form.tsx +87 -66
- package/src/aldehyde/form/form-Item-group.tsx +190 -132
- package/src/aldehyde/import/excel-import.tsx +414 -331
- package/src/aldehyde/index.tsx +90 -45
- package/src/aldehyde/layout/MainPage.tsx +280 -245
- package/src/aldehyde/layout/header/index.tsx +59 -53
- package/src/aldehyde/layout/menu/block.less +11 -0
- package/src/aldehyde/layout/menu/block.tsx +132 -72
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +137 -118
- package/src/aldehyde/layout/menu/menu-2layers.tsx +99 -64
- package/src/aldehyde/layout/menu/reset-password.tsx +213 -162
- package/src/aldehyde/layout/menu/user-bar.tsx +216 -147
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +58 -41
- package/src/aldehyde/layout/sidebar/index.css +15 -4
- package/src/aldehyde/layout/sidebar/index.tsx +70 -38
- package/src/aldehyde/locale/LocaleButton.tsx +31 -0
- package/src/aldehyde/locale/LocaleProvider.tsx +166 -0
- package/src/aldehyde/locale/langMp.ts +33 -0
- package/src/aldehyde/locale/translate.ts +81 -0
- package/src/aldehyde/locale/useLocale.ts +50 -0
- package/src/aldehyde/login/login.tsx +192 -141
- package/src/aldehyde/login/router-login.tsx +54 -21
- package/src/aldehyde/module/dtmpl-edit-card.tsx +225 -160
- package/src/aldehyde/module/dtmpl-edit-page.tsx +334 -212
- package/src/aldehyde/module/ltmpl-modal.tsx +57 -53
- package/src/aldehyde/module/ltmpl-table.tsx +329 -240
- package/src/aldehyde/routable/ltmpl-route.tsx +220 -196
- package/src/aldehyde/table/act-table.tsx +1244 -795
- package/src/aldehyde/table/column/column-selector.tsx +111 -72
- package/src/aldehyde/table/control-table-x-axis-wrapper.tsx +52 -0
- package/src/aldehyde/table/pagination.tsx +66 -59
- package/src/aldehyde/table/query-table.tsx +354 -303
- package/src/aldehyde/table/relation-table.tsx +781 -571
- package/src/aldehyde/table/selected-rows-card.tsx +61 -48
- package/src/aldehyde/table/stat/restat.tsx +112 -69
- package/src/aldehyde/tmpl/hc-data-source.tsx +381 -296
- package/src/aldehyde/tmpl/hcservice-v3.tsx +991 -796
- package/src/aldehyde/tmpl/model-struc-v3.tsx +95 -91
- package/src/aldehyde/tmpl/superagent.js +148 -142
- package/src/aldehyde/tree/act-tree.tsx +206 -138
- package/src/aldehyde/tree/tmpl-tree.tsx +627 -353
- package/src/aldehyde/tree/tree-node.tsx +0 -3
- package/src/aldehyde/welcome/HCWelcome.js +78 -110
- package/src/aldehyde/welcome/HCWelcome1.js +260 -0
- package/src/aldehyde/welcome/quick-entrance.tsx +82 -71
- package/src/aldehyde/welcome/workbench.tsx +83 -68
- package/src/aldehyde/custom-page/def-custom-page.js +0 -18
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see bundle.a94f7811fac19aa9d6a3.js.LICENSE.txt */
|
|
2
|
+
!function(){var t,e,r,n,o,a={22503:function(t,e,r){"use strict";r.d(e,{A:function(){return U}});var n=r(62477),o=r(44274),a=r(2532),i=r(63549),c=r(91985),u=r(11504),s=r(50828),l=r(96540),f=r(28073),h=r(45038),p=r(37977),d=r(16044),v=r(42455),y=r(17636),m=r(677),g=r(28392),w=r(47852),b=r(89467),A=r(43455),x=r(17437);function k(){k=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:S(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};s(A,i,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(T([])));L&&L!==r&&n.call(L,i)&&(A=L);var E=b.prototype=g.prototype=Object.create(A);function C(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,v.A)(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError((0,v.A)(e)+" is not iterable")}return w.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),s(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),s(E,u,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function L(t,e,r){return e=(0,c.A)(e),(0,i.A)(t,E()?Reflect.construct(e,r||[],(0,c.A)(t).constructor):e.apply(t,r))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}var C=function(t){function e(){var t;(0,o.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=L(this,e,[].concat(n)),(0,s.A)(t,"state",{}),t}return(0,u.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:(r=(0,y.A)(k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.formRef,r=t.fields,n=t.value,o=t.onFinish,a=t.onValuesChange,i=t.serverKey;return(0,x.Y)(l.Fragment,null,(0,x.Y)(b.A,{onValuesChange:a,labelWrap:!0,ref:e,name:"control-hooks",onFinish:o},(0,x.Y)(A.A,{serverKey:i,formRef:e,nameAttr:"id",fields:r,valueMap:n})))}}]);var r}(l.PureComponent),O=r(1026);function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};s(A,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&n.call(k,i)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,a,i,c){var u=f(t[o],t,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,v.A)(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function O(e,r,n){var o=h;return function(a,i){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError((0,v.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=s(b,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),s(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),s(L,u,"Generator"),s(L,i,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Y(t,e,r){return e=(0,c.A)(e),(0,i.A)(t,j()?Reflect.construct(e,r||[],(0,c.A)(t).constructor):e.apply(t,r))}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(j=function(){return!!t})()}var P=function(t){function e(){var t;(0,o.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=Y(this,e,[].concat(n)),(0,s.A)(t,"formRef",l.createRef()),(0,s.A)(t,"state",{}),(0,s.A)(t,"context",void 0),(0,s.A)(t,"reset",(function(){t.formRef.current&&t.formRef.current.resetFields()})),(0,s.A)(t,"onOk",(function(){t.formRef.current.submit()})),t}return(0,u.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:(i=(0,y.A)(S().mark((function t(){return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,y.A)(S().mark((function t(){return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.reset();case 1:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.title,r=(t.height,t.onOk),o=t.fields,a=t.value,i=t.onCancel,c=t.okButtonType,u=t.needConfirm,s=t.okDanger,f=t.onValuesChange,p=t.serverKey;(0,n.A)(this.state);var v=this.context.translate;return(0,x.Y)(m.A,{size:"small",style:{width:1e3},title:e,bodyStyle:{overflow:"auto"},extra:(0,x.Y)(l.Fragment,null,(0,x.Y)(g.A,{size:[8,0]},(0,x.Y)(h.Ay,{onClick:this.reset},v("${重置}")),function(t){return u?s?(0,x.Y)(d.A,{placement:"rightBottom",title:v("${确定要执行提交吗}?"),onConfirm:t,okText:v("${确定}"),cancelText:v("${取消}"),okType:"danger"},(0,x.Y)(h.Ay,{type:c,danger:!0},v("${确定}"))):(0,x.Y)(d.A,{placement:"rightBottom",title:v("${确定要执行提交吗}?"),onConfirm:t,okText:v("${确定}"),cancelText:v("${取消}")},(0,x.Y)(h.Ay,{type:c},v("${确定}"))):(0,x.Y)(h.Ay,{type:c,onClick:t},v("${确定}"))}(this.onOk),i?(0,x.Y)(h.Ay,{onClick:i},(0,x.Y)(w.A,null)):""))},(0,x.Y)(C,{serverKey:p,onValuesChange:f,fields:o,formRef:this.formRef,value:a,onFinish:r}))}}]);var r,i}(l.PureComponent);(0,s.A)(P,"defaultProps",{forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},needConfirm:!1,okButtonType:"primary",okDanger:!1}),(0,s.A)(P,"contextType",O.U);var I=r(27251),T=r(20922),N=r(26067),_=r(99552),D=r(5813),R=r(70462);function F(t,e,r){return e=(0,c.A)(e),(0,i.A)(t,G()?Reflect.construct(e,r||[],(0,c.A)(t).constructor):e.apply(t,r))}function G(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(G=function(){return!!t})()}var $={FileDoneOutlined:T.A,CheckOutlined:N.A,CloseCircleOutlined:_.A,FileAddOutlined:D.A,ThunderboltOutlined:R.A},M=function(t){function e(){return(0,o.A)(this,e),F(this,e,arguments)}return(0,u.A)(e,t),(0,a.A)(e,[{key:"render",value:function(){var t=this.props.type;return $[t]?l.createElement($[t]):(0,x.Y)(R.A,null)}}])}(l.PureComponent);function K(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return B(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function q(t,e,r){return e=(0,c.A)(e),(0,i.A)(t,V()?Reflect.construct(e,r||[],(0,c.A)(t).constructor):e.apply(t,r))}function V(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(V=function(){return!!t})()}var U=function(t){function e(){var t;(0,o.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=q(this,e,[].concat(n)),(0,s.A)(t,"context",void 0),(0,s.A)(t,"state",{popoverOpen:!1}),(0,s.A)(t,"isShow",(function(){var e=t.props,r=e.actionConfig,n=e.data,o=e.formRef;return I.A.isShow(r,n,o)})),(0,s.A)(t,"getValue",(function(){var e,r=t.props,n=r.data,o=r.formRef,a=r.actionConfig,i={},c=n?n[0]:void 0,u=o?o.current:void 0,s=K(a.writes);try{for(s.s();!(e=s.n()).done;){var l=e.value;l&&(u&&u.getFieldValue(l.id)?i[l.id]=I.A.getFormRefValue(o.current,l.id):c&&(c.fieldMap?i[l.id]=c?c.fieldMap[l.id]:void 0:i[l.id]=c?c[l.id]:void 0))}}catch(t){s.e(t)}finally{s.f()}return console.log("actionValue:",i),i})),(0,s.A)(t,"onOk",(function(e){console.log("action form value:",e);var r=t.props,n=r.actionConfig,o=r.doAction;t.setState({popoverOpen:!1}),o(n.id,t.getCodes(),e)})),(0,s.A)(t,"onCancel",(function(){t.setState({popoverOpen:!1})})),(0,s.A)(t,"onValuesChange",(function(e){var r=t.props.formRef;r&&r.current&&r.current.setFieldsValue(e)})),(0,s.A)(t,"getButtonType",(function(){var e=t.props,r=e.buttonType,n=e.actionConfig,o=r?"dashed"==r.split("-")[0]?"dashed":"primary":"dashed";return r?o:n.buttonType?n.buttonType:"dashed"})),(0,s.A)(t,"blockButton",(function(){var e=t.props.buttonType;return e&&e.includes("block")})),(0,s.A)(t,"formButton",(function(){var e=t.state.popoverOpen,r=t.props,n=r.actionConfig,o=r.disabled,a=r.hiddenType,i=r.buttonSize,c=r.serverKey,u=o;if(!t.isShow()){if(!a||"hidden"==a)return null;u=!0}return(0,x.Y)(f.A,{placement:"top",open:e,trigger:"click",content:(0,x.Y)(P,{serverKey:c,okDanger:"danger"==n.beforeExeConfirm,needConfirm:!0,title:n.title,onCancel:function(){return t.onCancel()},fields:n.writes,value:t.getValue(),onOk:t.onOk,onValuesChange:t.onValuesChange})},(0,x.Y)(h.Ay,{danger:n.danger,type:t.getButtonType(),shape:n.buttonShape,block:t.blockButton(),size:i,onClick:function(){return t.setState({popoverOpen:!e})},disabled:u},t.getTitle()))})),(0,s.A)(t,"getTitle",(function(){var e=t.props,r=e.actionConfig,n=e.iconType,o=t.context.translate,a=null;return a=r.icon?"icon-title"==n?(0,x.Y)(l.Fragment,null,(0,x.Y)(M,{type:r.icon}),o("${"+r.title+"}")):"icon"==n?(0,x.Y)(p.A,{placement:"top",title:o("${"+r.title+"}")},(0,x.Y)(M,{type:r.icon}),""):o("${"+r.title+"}"):o("${"+r.title+"}"),r.tip&&"icon"!=n&&(a=(0,x.Y)(l.Fragment,null,(0,x.Y)(p.A,{title:r.tip},o("${"+r.title+"}")))),a})),(0,s.A)(t,"getCodes",(function(){var e=t.props.data,r=[];if(e&&e instanceof Array){var n,o=K(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;a&&r.push(a.code)}}catch(t){o.e(t)}finally{o.f()}}return r})),(0,s.A)(t,"withoutFormButton",(function(){var e=t.props,r=e.actionConfig,n=e.doAction,o=(e.data,e.disabled),a=(e.buttonType,e.hiddenType),i=e.buttonSize,c=t.context.translate,u=o;if(!t.isShow()){if(!a||"hidden"==a)return null;u=!0}var s=t.getCodes(),l=t.blockButton(),f=t.getButtonType();return r.beforeExeConfirm&&"default"!=r.beforeExeConfirm?"danger"==r.beforeExeConfirm?(0,x.Y)(d.A,{key:r.id,placement:"rightBottom",title:c("${确定要执行}【${"+r.title+"}】?"),onConfirm:function(){n(r.id,s,{})},disabled:u,okText:c("${确定}"),cancelText:c("${取消}"),okType:"danger"},(0,x.Y)(h.Ay,{type:f,block:l,danger:!0,shape:r.buttonShape,size:i,disabled:u},t.getTitle())):(0,x.Y)(h.Ay,{type:f,block:l,size:i,shape:r.buttonShape,danger:r.danger,onClick:function(){return n(r.id,s,{})},disabled:u},t.getTitle()):(0,x.Y)(d.A,{key:r.id,placement:"rightBottom",title:c("${确定要执行}【${"+r.title+"}】?"),onConfirm:function(){n(r.id,s,{})},disabled:u,okText:c("${确定}"),cancelText:c("${取消}")},(0,x.Y)(h.Ay,{size:i,danger:r.danger,type:f,shape:r.buttonShape,block:l,disabled:u},t.getTitle()))})),t}return(0,u.A)(e,t),(0,a.A)(e,[{key:"componentDidMount",value:function(){(0,n.A)(this.props),this.setState({})}},{key:"componentDidUpdate",value:function(t){(0,n.A)(this.props),this.props}},{key:"render",value:function(){(0,n.A)(this.state);var t=this.props.actionConfig;return(0,x.Y)(l.Fragment,null,t.writes&&t.writes.length>0?this.formButton():this.withoutFormButton())}}])}(l.PureComponent);(0,s.A)(U,"defaultProps",{hiddenType:"hidden",buttonSize:void 0,iconType:"icon-title"}),(0,s.A)(U,"contextType",O.U)},27251:function(t,e,r){"use strict";r.d(e,{A:function(){return s}});var n=r(44274),o=r(2532),a=r(69036),i=r(78229);function c(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=function(){return(0,o.A)((function t(){(0,n.A)(this,t)}),null,[{key:"isShow",value:function(t,e,r){var n=t.preposes;return!n||n.length<=0||this.isMatch(n,e,null==r?void 0:r.current,null)}},{key:"isMatch",value:function(t,e,r,n){var o=!0;if(r){var a,u=[],s=c(t);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(l){var f=n?i.A.getFieldId(n,l.mstrucId):l.id;if(this.containsField(r,f)){var h=this.getFormRefValue(r,f);if(!this.comparator(l.comparator,h,l.defaultValue)){o=!1;break}}else u.push(l)}}}catch(t){s.e(t)}finally{s.f()}o&&u.length>0&&(o=this.matchDtmplData(u,e,n))}else o=!!e&&this.matchDtmplData(t,e,n);return o}},{key:"matchDtmplData",value:function(t,e,r){var n=!0;if(!e)return!1;var o,a=c(e);try{for(a.s();!(o=a.n()).done;){var u=o.value;if(!u){n=!1;break}var s,l=c(t);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(u.fieldMap){var h=r?i.A.getFieldId(r,f.mstrucId):f.id;if(!this.comparator(f.comparator,u.fieldMap[h],f.defaultValue)){n=!1;break}}else if(!this.comparator(f.comparator,u[f.id],f.defaultValue)){n=!1;break}}}catch(t){l.e(t)}finally{l.f()}}}catch(t){a.e(t)}finally{a.f()}return n}},{key:"comparator",value:function(t,e,r){if(t||(t="equals"),!r)return!0;if(!e&&"0"!=e)return!1;switch(t){case"contain":return e.includes(r);case"equal":case"equals":return e==r;case"exclude":return!("string"==typeof r?r.split(","):r).includes(e);case"includeOne":case"include_anyone":return("string"==typeof r?r.split(","):r).includes(e);case"noGreater":case"nogreater":return e<=r;case"noLess":case"noless":return e>=r;case"unequal":case"unequals":return e!=r;default:return void a.Ay.error("暂不支持的比较关系:"+t+";请联系管理员添加。")}}},{key:"getFormRefValue",value:function(t,e){return!!t&&t.getFieldValue(e)}},{key:"containsField",value:function(t,e){return!!t&&!!t.getFieldInstance(e)}}])}()},56953:function(t,e,r){"use strict";var n=r(65425),o=(r(96540),r(17355)),a=r(37457),i=r(46704),c=r(94300),u=r(17437),s=o.A.TextArea;e.A=function(t){var e=t.id,r=t.value,o=(t.itemType,t.fieldConfig),l=t.onChange,f=(0,c.Y)().translate,h={id:e,placeholder:o.disabled?f("${无需输入}"):f("${请输入}${"+o.title+"}"),disabled:o.disabled};return(0,u.Y)(a.A,{allowClear:!0,dropdownMatchSelectWidth:!0,options:function(){var t=i.A.getEnums(o.mstrucId);if(!t)return[];var e=[];return t.map((function(t){var r={value:"@@"+t.value,label:t.title};return e.push(r),!1})),e}(),onChange:function(t){if(l){var e;if(void 0===t)return"";e=t.startsWith("@@")?(r||"")+t.substring(2,t.length):t,l(e)}},value:r},(0,u.Y)(s,(0,n.A)({style:{height:150}},h)))}},49814:function(t,e,r){"use strict";r.d(e,{A:function(){return E}});var n=r(42455),o=r(65425),a=r(38452),i=r(17636),c=r(44274),u=r(2532),s=r(63549),l=r(91985),f=r(11504),h=r(50828),p=r(96540),d=r(71057),v=r(46704),y=r(17437),m=["fieldConfig","onChange","value"];function g(){g=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function w(){}function b(){}function A(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var E=A.prototype=w.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return b.prototype=A,a(E,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:b,configurable:!0}),b.displayName=l(A,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function A(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return x(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function k(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,L()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}var E=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=k(this,e,[].concat(n)),(0,h.A)(t,"state",{options:[]}),(0,h.A)(t,"handleChange",(function(e){var r=t.props.onChange,n=void 0;e&&(n=e.join("->")),r&&r(n)})),(0,h.A)(t,"getOptions",(0,i.A)(g().mark((function e(){var r,n,o,a,i,c,u,s,l;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.fieldConfig,o=r.baseValue,a=r.serverKey,e.next=3,v.A.getOptions(a,n.mstrucId);case 3:return i=e.sent,c=[],s=i,l=u=[],o.length>0?o.map((function(t,e){if(e>0&&(l[0].subOptions=[],l=l[0].subOptions),s){var r,n=A(s);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.title==t&&(l.push(b({},o)),s=o.subOptions)}}catch(t){n.e(t)}finally{n.f()}}})):u=i,t.buildOptions(u,c),e.abrupt("return",c);case 11:case"end":return e.stop()}}),e)})))),(0,h.A)(t,"buildOptions",(function(e,r){e.forEach((function(e){var n={};if(n.value=e.title,n.label=e.title,n.key=e.id,r.push(n),e.subOptions){var o=[];n.children=o,t.buildOptions(e.subOptions,o)}else n.isLeaf=!0}))})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"componentDidMount",value:(r=(0,i.A)(g().mark((function t(){var e;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getOptions();case 2:e=t.sent,this.setState({options:e});case 4:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.options,e=this.props,r=(e.fieldConfig,e.onChange,e.value),n=(0,a.A)(e,m);return(0,y.Y)(d.A,(0,o.A)({displayRender:function(t){return t.join("->")},options:t,value:r?r.split("->"):void 0,onChange:this.handleChange},n))}}]);var r}(p.PureComponent);(0,h.A)(E,"defaultProps",{baseValue:[]})},13050:function(t,e,r){"use strict";r.d(e,{A:function(){return x}});var n=r(65425),o=r(38452),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(45038),p=r(677),d=r(68e3),v=r(14103),y=r(84957),m=r(1026),g=r(17437),w=["extra","title","className","initCollapse","showRightNav"];function b(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,A()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(A=function(){return!!t})()}var x=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=b(this,e,[].concat(n)),(0,l.A)(t,"state",{collapse:!1}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"cardTitle",(function(){var e=t.props,r=e.title,n=e.tip,o=t.state.collapse,a=t.context.translate;if(!r||"null"==r)return null;var i;return i=o?(0,g.Y)(h.Ay,{type:"text",onClick:function(){t.setState({collapse:!1})}},(0,g.Y)(d.A,null),a("${"+r+"}")):(0,g.Y)(h.Ay,{type:"text",onClick:function(){t.setState({collapse:!0})}},(0,g.Y)(v.A,null),a("${"+r+"}")),(0,g.Y)(f.Fragment,null,i,(0,g.Y)(y.A,{content:n}))})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:function(){var t=this.props.initCollapse;this.setState({collapse:t})}},{key:"componentDidUpdate",value:function(t){var e=this.props.initCollapse;this.props!=t&&this.setState({collapse:e})}},{key:"render",value:function(){var t=this.state.collapse,e=this.props,r=e.extra,a=(e.title,e.className),i=(e.initCollapse,e.showRightNav),c=(0,o.A)(e,w);return(0,g.Y)(p.A,(0,n.A)({},c,{size:"small",extra:t?"":r,style:{width:i?"90%":"100%"},className:"".concat(a," ").concat(t?"collapse":""),title:this.cardTitle()}),t?null:this.props.children)}}])}(f.PureComponent);(0,l.A)(x,"contextType",m.U)},1490:function(t,e,r){"use strict";var n=r(65425),o=r(38452),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(45038),p=r(1849),d=r(28392),v=r(46935),y=r(40261),m=r(8130),g=r(46675),w=r(1026),b=r(17437),A=["cQueryConfig","mainCode","type","pageType","serverKey"];function x(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,k()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}var L={EditOutlined:(0,b.Y)(y.A,null)},E=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=x(this,e,[].concat(n)),(0,l.A)(t,"state",{showDraw:!1}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"showDraw",(function(e){t.setState({showDraw:!0})})),(0,l.A)(t,"closeDrawer",(function(){t.setState({showDraw:!1})})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"render",value:function(){var t=this,e=this.props,r=e.cQueryConfig,a=e.mainCode,i=e.type,c=e.pageType,u=e.serverKey,s=(0,o.A)(e,A),l=this.state.showDraw,y=this.context.translate,w=a&&a.indexOf("@R@")>0?a.split("@R@")[0]:a;return(0,b.Y)(f.Fragment,null,"text"==i?(0,b.Y)("span",{className:"cquickTextButton",onClick:function(){t.setState({showDraw:!l})}},r.title):(0,b.Y)(h.Ay,(0,n.A)({},s,{onClick:function(){t.setState({showDraw:!l})}}),L[r.title]?L[r.title]:r.title),l?"edit"==r.type?(0,b.Y)(g.A,{serverKey:u,pageType:c,open:l,onCancel:function(){t.setState({showDraw:!1})},sourceId:r.id,code:w,onOk:this.closeDrawer}):(0,b.Y)(p.A,{placement:"left",title:y("${关联查询}"),closable:!0,mask:!1,onClose:this.closeDrawer,open:l,width:"calc(100% - 280px)",style:{maxWidth:1960},extra:(0,b.Y)(d.A,null,(0,b.Y)(h.Ay,{onClick:this.closeDrawer},y("${关闭}")))},r.path?f.createElement(m.A.getCustomPage(r.path)):(0,b.Y)(v.A,{serverKey:u,sourceId:r.id,mainCode:w})):null)}}])}(f.PureComponent);(0,l.A)(E,"contextType",w.U),(0,l.A)(E,"defaultProps",{pageType:"modal"}),e.A=E},23605:function(t,e,r){"use strict";var n=r(50828),o=(r(96540),r(34303)),a=r(15622),i=r(74353),c=r.n(i),u=r(8130),s=r(17437);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var h=o.A.RangePicker;e.A=function(t){var e,r=t.id,n=t.value,i=t.itemType,l=t.fieldConfig,p=t.onChange,d=t.style,v=t.min,y=t.max,m=n,g=u.A.getDayjsFormat(i),w=function(t){p&&p(t?t.format(g):void 0)},b=function(t){p&&(t?2===t.length&&t[0]&&t[1]&&p(t[0].format(g)+"~"+t[1].format(g)):p(t))},A=function(t){return t&&(y&&c()(t.format(g),g)>c()(y,g)||v&&c()(t.format(g),g)<c()(v,g))},x=void 0,k="date";switch(i){case"date-YY":case"date-M1":case"date":e=m?c()(m,g):void 0,k="date-YY"==i?"year":"date-M1"==i?"month":"date",x=(0,s.Y)(o.A,{id:r,style:f({},d),picker:k,format:g,disabledDate:A,value:e,disabled:l.disabled,onChange:w});break;case"datetime-HH":case"datetime-mm":case"datetime":e=m?c()(m,g):void 0,x=(0,s.Y)(o.A,{id:r,style:f({},d),disabledDate:A,showTime:{format:u.A.getDateTimeFormat(i)},picker:"date",format:g,value:e,disabled:l.disabled,onChange:w});break;case"daterange-YY":case"daterange-M1":case"daterange":var L=m&&m.indexOf("~")>0?m.split("~")[0]:void 0,E=m&&m.indexOf("~")>0?m.split("~")[1]:void 0;e=[L?c()(L,g):void 0,E?c()(E,g):void 0],k="daterange-YY"==i?"year":"daterange-M1"==i?"month":"date",x=(0,s.Y)(h,{id:r,picker:k,style:f({},d),format:g,disabledDate:A,value:e,disabled:l.disabled,onChange:b});break;case"datetimerange-HH":case"datetimerange-mm":case"datetimerange":var C=m&&m.indexOf("~")>0?m.split("~")[0]:void 0,O=m&&m.indexOf("~")>0?m.split("~")[1]:void 0;e=[C?c()(C,g):void 0,O?c()(O,g):void 0],x=(0,s.Y)(h,{id:r,showTime:{format:u.A.getDateTimeFormat(i)},format:g,style:f({},d),value:e,disabledDate:A,disabled:l.disabled,onChange:b});break;case"time-HH":case"time-mm":case"time":e=m?c()(m,g):void 0,x=(0,s.Y)(a.A,{id:r,value:e,style:f({},d),disabled:l.disabled,onChange:w,format:g});break;case"timerange-HH":case"timerange-mm":case"timerange":var S=m&&m.indexOf("~")>0?m.split("~")[0]:void 0,Y=m&&m.indexOf("~")>0?m.split("~")[1]:void 0;e=[S?c()(S,g):void 0,Y?c()(Y,g):void 0],x=(0,s.Y)(a.A.RangePicker,{id:r,value:e,style:f({},d),disabled:l.disabled,onChange:b,format:g})}return x}},36586:function(t,e,r){"use strict";r.d(e,{A:function(){return q}});var n=r(42455),o=r(21745),a=r(17636),i=r(44274),c=r(2532),u=r(63549),s=r(91985),l=r(11504),f=r(50828),h=r(96540),p=r(36552),d=r(47152),v=r(16370),y=r(45038),m=r(69036),g=r(67034),w=r(36492),b=r(76139),A=r(13341),x=r(49237),k=r(60149),L=r(11058),E=r(40261),C=r(42877),O=r(38221),S=r.n(O),Y=r(92749),j=r(46704),P=r(44920),I=r(46675),T=r(56522),N=r(51864),_=r(1026),D=r(17437);function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach((function(e){(0,f.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function G(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return $(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function M(){M=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function K(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,B()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(B=function(){return!!t})()}var q=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),c=0;c<r;c++)n[c]=arguments[c];return t=K(this,e,[].concat(n)),(0,f.A)(t,"state",{titleId:void 0,optionCacheKey:void 0,pageNo:1,loading:!1,optionsCache:{},codeLabel:{},ltmplConfig:void 0,showView:!1,showEdit:!1,showTable:!1,drawCode:void 0,preMainCode:void 0}),(0,f.A)(t,"context",void 0),(0,f.A)(t,"dropdownRender",(function(e){var r=t.props.fieldConfig.actions;return(0,D.Y)(h.Fragment,null,e,(0,D.Y)(h.Fragment,null,(0,D.Y)(p.A,{style:{margin:"8px 0"}}),(0,D.Y)(d.A,{justify:"end"},r&&r.indexOf("table")>=0?(0,D.Y)(v.A,null,(0,D.Y)(y.Ay,{type:"text",icon:(0,D.Y)(A.A,{style:{color:"#0958d9"}}),onClick:function(){return t.showTable()}})):null,r&&r.indexOf("add")>=0?(0,D.Y)(v.A,null,(0,D.Y)(y.Ay,{type:"text",icon:(0,D.Y)(x.A,{style:{color:"#0958d9"}}),onClick:function(){return t.editItem()}})):null,(0,D.Y)(v.A,null,(0,D.Y)(y.Ay,{type:"text",icon:(0,D.Y)(k.A,{style:{color:"#0958d9"}}),onClick:function(){return t.initCache()}})))))})),(0,f.A)(t,"editItem",function(){var e=(0,a.A)(M().mark((function e(r){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadLtmplConfig();case 2:n=e.sent,t.setState({showEdit:!0,showTable:!1,showView:!1,drawCode:r,ltmplConfig:n});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"showTable",(0,a.A)(M().mark((function e(){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({showEdit:!1,showTable:!0,showView:!1,drawCode:void 0});case 1:case"end":return e.stop()}}),e)})))),(0,f.A)(t,"loadLtmplConfig",(0,a.A)(M().mark((function e(){var r,n,o,a,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.fieldConfig,o=r.serverKey,a=t.state.ltmplConfig,i=a){e.next=7;break}return e.next=6,j.A.requestLtmplConfig(n.serverKey?n.serverKey:o,n.sourceId?n.sourceId:n.id);case 6:i=e.sent.ltmplConfig;case 7:return t.setState({ltmplConfig:i}),e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})))),(0,f.A)(t,"showItem",function(){var e=(0,a.A)(M().mark((function e(r){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadLtmplConfig();case 2:n=e.sent,t.setState({showEdit:!1,showTable:!1,showView:!0,drawCode:r,ltmplConfig:n});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"initCache",(function(){t.setState({optionsCache:{},codeLabel:{}})})),(0,f.A)(t,"toOption",(function(e,r,n){var o=t.props.fieldConfig.actions;return t.state.codeLabel[e]=r,{value:e,label:(0,D.Y)(h.Fragment,null,r,o&&o.indexOf("detail")>=0?(0,D.Y)(y.Ay,{size:"small",type:"text",onClick:function(r){r.stopPropagation(),t.showItem(e)}},(0,D.Y)(L.A,{style:{color:"#0958d9"}})):null,o&&o.indexOf("edit")>=0?(0,D.Y)(y.Ay,{size:"small",type:"text",onClick:function(r){r.stopPropagation(),t.editItem(e)}},(0,D.Y)(E.A,{style:{color:"#0958d9"}})):null)}})),(0,f.A)(t,"doClose",(function(){t.setState({drawCode:void 0,showEdit:!1,showView:!1,showTable:!1})})),(0,f.A)(t,"drawSubmited",(function(){t.initCache(),t.doClose()})),(0,f.A)(t,"closeTable",(function(){t.drawSubmited()})),(0,f.A)(t,"toValueArray",(function(e){var r,n=[],o=G(t.toArray(e));try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a){var i=a.split("@R@");"null"!=i[1]&&n.push(i[0])}}}catch(t){o.e(t)}finally{o.f()}return n})),(0,f.A)(t,"toArray",(function(t){return t instanceof Array?t:t?t.split(","):[]})),(0,f.A)(t,"toOptions",(function(e,r){var n,o=t.props.fieldConfig,a=[],i=G(t.toArray(e));try{for(i.s();!(n=i.n()).done;){var c=n.value;if(c){var u=c.split("@R@");"null"!=u[1]&&a.push(t.toOption(u[0],u[1],r))}}}catch(t){i.e(t)}finally{i.f()}return o.suppleOptions&&o.suppleOptions.forEach((function(e){var r=!1;a.forEach((function(t){t.value!=e.code||(r=!0)})),r||a.push(t.toOption(e.code,e.title,void 0))})),a})),(0,f.A)(t,"fetchNextPage",(0,a.A)(M().mark((function e(){var r,n,a,i,c,u,s;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.state,n=r.optionCacheKey,a=r.titleId,i=r.optionsCache,c=i[n],u=c.pageInfo,c.touchEnd){e.next=10;break}return u.pageNo=u.pageNo+1,e.next=7,t.loadData(c.queryKey.key,F({},u),a);case 7:(s=e.sent)&&(c.options=[].concat((0,o.A)(c.options),(0,o.A)(s.options)),c.touchEnd=s.touchEnd),t.setState({pageNo:u.pageNo});case 10:case"end":return e.stop()}}),e)})))),(0,f.A)(t,"fetchOptions",function(){var e=(0,a.A)(M().mark((function e(r){var n,o,a,i,c,u,s,l,f,h,p,d,v,y,g,w,b,A,x,k,L;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,o=n.fieldConfig,a=n.mainCode,i=n.baseCriteria,c=n.serverKey,u=t.state,s=u.optionsCache,l=u.ltmplConfig,f=u.preMainCode,h=a||o.mainCode,f!=h&&(t.setState({preMainCode:h.toString()}),t.initCache()),p="withoutValue",r&&(p=r),d=t.state.titleId,v=s[p]){e.next=39;break}if(t.setState({loading:!0}),y=l){e.next=15;break}return e.next=14,t.loadLtmplConfig();case 14:y=e.sent;case 15:if(y){e.next=18;break}return m.Ay.error("请配置正确查询页面"),e.abrupt("return");case 18:return g={pageNo:1,pageSize:6,virtualEndPageNo:void 0},d=y.primaryColumn.id,w=y.primaryCriteria,b="undefinedCriteria",w&&(b="c_"+w.id),(A=y.defaultPageSize)&&(g.pageSize=A),x={},i&&(x=F({},i)),x[b]=r,e.next=30,Y.A.requestLtmplQueryKey(o.serverKey?o.serverKey:c,o.sourceId,F(F(F({},x),g),{},{mainCode:h}));case 30:return k=e.sent,e.next=33,t.loadData(k.key,g,d);case 33:L=e.sent,v={options:L.options,pageInfo:g,queryKey:k,searchValue:r,touchEnd:L.touchEnd},s[p]=v,t.setState({optionCacheKey:p,titleId:d,optionsCache:F({},s),loading:!1}),e.next=40;break;case 39:t.state.optionCacheKey==p&&"withoutValue"==p?t.setState({loading:!1,optionCacheKey:p}):S()((function(){t.setState({loading:!1,optionCacheKey:p})}),500)();case 40:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"onChange",(function(e){var r=t.state.codeLabel,n=(0,o.A)(e);e&&e.length>t.props.maxSelected&&n.shift();var a=[];n.forEach((function(t){t.indexOf("@R@")>0?a.push(t):a.push(t+"@R@"+r[t])})),t.props.onChange(a)})),(0,f.A)(t,"tagRender",(function(t){var e=t.label,r=t.closable,n=t.onClose;return(0,D.Y)(g.A,{onMouseDown:function(t){t.preventDefault(),t.stopPropagation()},closable:r,onClose:n,style:{marginRight:3}},e)})),(0,f.A)(t,"loadData",function(){var e=(0,a.A)(M().mark((function e(r,n,o){var a,i,c,u,s,l;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.props,i=a.onEntityClick,a.baseCriteria,c=a.serverKey,u=a.fieldConfig,e.next=3,Y.A.requestQueryData(u.serverKey?u.serverKey:c,r,n);case 3:return s=e.sent,l=[],n=s.pageInfo,s.entities.forEach((function(e,r){var n=e.fieldMap[o];if(j.A.cache(e),n){var a=n.split("@R@"),c=a&&a.length>0?a[a.length-1]:n;if("null"!=c){var u=t.toOption(e.code,c,i);l.push(u)}}})),e.abrupt("return",{options:l,touchEnd:s.touchEnd});case 8:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,f.A)(t,"debounceFetcher",(function(){return S()((function(e){t.fetchOptions(e)}),800)})),(0,f.A)(t,"debounceFetchNextPage",(function(){S()(t.fetchNextPage,200)()})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.baseCriteria,n=e.mainCode,o=e.fieldConfig,a=t.baseCriteria,i=t.mainCode,c=t.fieldConfig;(r&&JSON.stringify(r)!=JSON.stringify(a)||n&&n!=i||o&&c&&o.id!=c.id)&&this.initCache()}},{key:"render",value:function(){var t,e=this,r=this.props,n=r.id,a=r.value,i=r.fieldConfig,c=(r.onChange,r.disabled),u=r.style,s=(r.maxSelected,r.onEntityClick),l=r.mainCode,f=r.serverKey,p=i.actions,d=this.state,v=d.optionCacheKey,y=d.loading,m=d.optionsCache,g=d.drawCode,A=d.showEdit,x=d.showView,k=d.showTable,L=d.ltmplConfig,E=this.context.translate,O=i.serverKey?i.serverKey:f,Y=this.toOptions(a,s),j=(0,o.A)(Y),_=256;if(v&&m[v]){var R=m[v];R.pageInfo&&R.pageInfo.pageSize<8&&(_=32*R.pageInfo.pageSize-10);var $,M=G(R.options);try{for(M.s();!($=M.n()).done;){var K=$.value;t=!1;var B,q=G(Y);try{for(q.s();!(B=q.n()).done;){var V=B.value;V.value==K.value&&(t=!0,V.label=K.label)}}catch(t){q.e(t)}finally{q.f()}t||j.push(K)}}catch(t){M.e(t)}finally{M.f()}}return(0,D.Y)(h.Fragment,null,(0,D.Y)(w.A,{disabled:c,id:n,listHeight:_,style:F({},u),onChange:this.onChange,value:this.toValueArray(a),mode:"multiple",placeholder:E("${请选择}${"+i.title+"}"),notFoundContent:y?(0,D.Y)(b.A,{size:"small"}):E("${无数据}"),allowClear:!0,showArrow:!0,suffixIcon:(0,D.Y)(C.A,null),filterOption:!1,dropdownRender:this.dropdownRender,tagRender:p&&(p.indexOf("detail")>=0||p.indexOf("edit")>=0)?this.tagRender:void 0,onSearch:this.debounceFetcher(),onClick:c?null:function(){S()(e.fetchOptions,100)(void 0)},options:y?[]:j,onPopupScroll:function(t){var r=t.target;r.scrollTop+r.offsetHeight+1>=r.scrollHeight&&e.debounceFetchNextPage()}}),x&&g?(0,D.Y)(P.A,{serverKey:O,placement:"left",onClose:this.doClose,open:x,sourceId:i.sourceId,code:g}):null,A&&L?L.customEditPagePath?(0,D.Y)(T.A,{open:A,onOk:function(){e.drawSubmited()},customPath:L.customEditPagePath,sourceId:i.sourceId,mainCode:l,code:g}):(0,D.Y)(I.A,{serverKey:O,pageType:"modal",open:A,onCancel:this.doClose,mainCode:l,sourceId:i.sourceId,code:g,onOk:this.drawSubmited}):null,k?(0,D.Y)(N.$h,{serverKey:O,open:k,height:"76vh",onCancel:this.closeTable,sourceId:i.sourceId,mainCode:l}):null)}}])}(h.PureComponent);(0,f.A)(q,"defaultProps",{maxSelected:100}),(0,f.A)(q,"contextType",_.U)},18015:function(t,e,r){"use strict";r.d(e,{A:function(){return b}});var n=r(42455),o=r(21745),a=r(17636),i=r(44274),c=r(2532),u=r(63549),s=r(91985),l=r(11504),f=r(50828),h=r(96540),p=r(21102),d=r(92749),v=r(1026),y=r(17437);function m(){m=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function A(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var E=A.prototype=w.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return b.prototype=A,a(E,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:b,configurable:!0}),b.displayName=l(A,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function g(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,w()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var b=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),c=0;c<r;c++)n[c]=arguments[c];return t=g(this,e,[].concat(n)),(0,f.A)(t,"state",{treeData:[]}),(0,f.A)(t,"context",void 0),(0,f.A)(t,"loadSchoolLevelUnit",(0,a.A)(m().mark((function t(){var e,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],t.next=3,d.A.requestLtmplQueryTop(null,"221036732522497",{});case 3:return(r=t.sent).entities&&r.entities.forEach((function(t,r){var n={};n.id=t.code,n.level=1,n.pId=0,n.title=t.fieldMap[0xcfc1f06ca002],n.value=n.id+"@R@"+n.title,n.key=n.value,n.selectable=!1,e.push(n)})),t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})))),(0,f.A)(t,"loadLab",function(){var t=(0,a.A)(m().mark((function t(e){var r,n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,d.A.requestLtmplQueryTop(null,"228261345665025",{mainCode:e});case 3:return(n=t.sent).entities&&n.entities.forEach((function(t,n){var o={};o.id=t.code,o.level=2,o.pId=e,o.title=t.fieldMap[0xcec62beca003],o.value=o.id+"@R@"+o.title,o.key=o.value,o.selectable=!1,r.push(o)})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,f.A)(t,"loadRoom",function(){var t=(0,a.A)(m().mark((function t(e){var r,n;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.next=3,d.A.requestLtmplQueryTop(null,"228261733638145",{mainCode:e});case 3:return(n=t.sent).entities&&n.entities.forEach((function(t,n){var o={};o.id=t.code,o.level=3,o.pId=e,o.title=t.fieldMap[0xd239b3eca005],o.value=o.id+"@R@"+o.title,o.key=o.value,o.isLeaf=!0,r.push(o)})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,f.A)(t,"onChange",(function(e){(0,t.props.onChange)(e)})),(0,f.A)(t,"onLoadData",function(){var e=(0,a.A)(m().mark((function e(r){var n,a,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.state.treeData,1!=r.level){e.next=8;break}return e.next=4,t.loadLab(r.id);case 4:a=e.sent,t.setState({treeData:[].concat((0,o.A)(n),(0,o.A)(a))}),e.next=13;break;case 8:if(2!=r.level){e.next=13;break}return e.next=11,t.loadRoom(r.id);case 11:i=e.sent,t.setState({treeData:[].concat((0,o.A)(n),(0,o.A)(i))});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidMount",value:(r=(0,a.A)(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this,t.next=3,this.loadSchoolLevelUnit();case 3:t.t1=t.sent,t.t2={treeData:t.t1},t.t0.setState.call(t.t0,t.t2);case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t,e=this.props,r=(e.id,e.value),n=(e.fieldConfig,e.style,this.state.treeData),o=this.context.translate;return r&&(t=r.split("@R@")[1]),(0,y.Y)(p.A,{treeDataSimpleMode:!0,style:{width:"100%",minWidth:"260px"},value:t,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:o("--${请选择}--"),onChange:this.onChange,loadData:this.onLoadData,treeData:n})}}]);var r}(h.PureComponent);(0,f.A)(b,"defaultProps",{maxSelected:100}),(0,f.A)(b,"contextType",v.U)},59090:function(t,e,r){"use strict";r.d(e,{A:function(){return L}});var n=r(62477),o=r(44274),a=r(2532),i=r(63549),c=r(91985),u=r(11504),s=r(50828),l=r(96540),f=r(45038),h=r(28073),p=r(36492),d=r(42877),v=r(65560),y=r(1026),m=r(17437);function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){(0,s.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function x(t,e,r){return e=(0,c.A)(e),(0,i.A)(t,k()?Reflect.construct(e,r||[],(0,c.A)(t).constructor):e.apply(t,r))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}var L=function(t){function e(){var t;(0,o.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=x(this,e,[].concat(n)),(0,s.A)(t,"state",{}),(0,s.A)(t,"context",void 0),(0,s.A)(t,"onClick",(function(){t.setState({showSelectTable:!0})})),(0,s.A)(t,"onSelect",(function(e){var r=t.props,n=(r.value,r.onChange),o=[];if(e){var a,i=b(e);try{for(i.s();!(a=i.n()).done;){var c=a.value,u=null;if(u=c.title instanceof Array?c.title[0]:c.title,c.title&&c.title.includes("@R@")){var s=u.split("@R@");u=s[s.length-1]}o.push(c.code+"@R@"+u)}}catch(t){i.e(t)}finally{i.f()}}n(o)})),(0,s.A)(t,"toArray",(function(t){return t instanceof Array?t:t?t.split(","):[]})),(0,s.A)(t,"toValueArray",(function(e){var r,n=[],o=b(t.toArray(e));try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a){var i=a.split("@R@");"null"!=i[1]&&n.push(i[0])}}}catch(t){o.e(t)}finally{o.f()}return n})),t}return(0,u.A)(e,t),(0,a.A)(e,[{key:"render",value:function(){var t=this.props,e=t.id,r=t.value,o=(t.itemType,t.fieldConfig),a=t.onChange,i=t.style,c=t.maxSelected,u=t.onEntityClick,s=t.mainCode,y=t.serverKey;(0,n.A)(this.state);var g=this.context.translate,b=[],A=[],x=this.toArray(r);return x.forEach((function(t){if(t.indexOf("@R@")>0){var e=t.split("@R@");b.push({code:e[0],title:e[1]}),A.push({value:e[0],label:u?(0,m.Y)(f.Ay,{size:"small",style:{padding:"0px"},type:"link",title:"",onClick:function(t){t.stopPropagation(),u(e[0])}},e[1]):e[1]})}})),(0,m.Y)(l.Fragment,null,(0,m.Y)(h.A,{overlayClassName:"-popover",placement:"bottom",color:"#f0f0f0",overlayStyle:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},overlayInnerStyle:{padding:"0px"},content:(0,m.Y)("div",{style:{height:300,backgroundColor:"#fafafa",overflow:"auto",borderStyle:"solid",borderRadius:"6px",borderWidth:"0px",borderColor:"#8c8c8c"}},(0,m.Y)(v.A,{serverKey:y,mainCode:s,maxSelectedRows:c,selectedRows:b,sourceId:o.sourceId,onChange:this.onSelect})),trigger:"click"},(0,m.Y)(p.A,{id:e,style:w({},i),value:this.toValueArray(x),mode:"multiple",placeholder:g("${请选择}${"+o.title+"}"),notFoundContent:g("${请选择}"),allowClear:!0,showArrow:!0,suffixIcon:(0,m.Y)(d.A,null),dropdownStyle:{display:"none"},onChange:function(t){a(t)},options:A})))}}])}(l.PureComponent);(0,s.A)(L,"defaultProps",{maxSelected:100}),(0,s.A)(L,"contextType",y.U)},97135:function(t,e,r){"use strict";var n=r(38452),o=r(65425),a=r(50828),i=r(96540),c=r(91196),u=r(50770),s=r(17355),l=r(36492),f=r(15039),h=r(54763),p=r(4283),d=r(68876),v=r(24262),y=r(56953),m=r(80243),g=r(46704),w=r(66941),b=r(17595),A=r(49814),x=r(36586),k=r(59090),L=r(18015),E=r(8130),C=r(51864),O=r(75763),S=r(23605),Y=r(48287),j=r(17437),P=["value","onChange","style"],I=["value"],T=["fieldConfig","value","onChange","id","mainCode"];function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){(0,a.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var D=c.A.Group,R=u.Ay.Group,F=(0,j.Y)(i.Fragment,null,"loading"),G=(0,m.Ay)({resolved:{},chunkName:function(){return"signature"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(87)]).then(r.bind(r,4556))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 4556}},{fallback:F}),$=(0,m.Ay)({resolved:{},chunkName:function(){return"chemstruc-graph"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(689),r.e(651),r.e(390),r.e(469),r.e(63),r.e(613),r.e(419),r.e(543),r.e(724),r.e(809),r.e(670)]).then(r.bind(r,85998))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 85998}},{fallback:F}),M=(0,m.Ay)({resolved:{},chunkName:function(){return"html-editor-draft"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(689),r.e(651),r.e(900)]).then(r.bind(r,12536))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 12536}},{fallback:F}),K=(0,m.Ay)({resolved:{},chunkName:function(){return"code-editor-sql-code-editor"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(112),r.e(695)]).then(r.bind(r,74025))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 74025}},{fallback:F}),B=(0,m.Ay)({resolved:{},chunkName:function(){return"color-picker"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(671)]).then(r.bind(r,33442))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 33442}},{fallback:F}),q=s.A.TextArea;function V(t){var e=[],r=g.A.getEnums(t);return r&&r.map((function(t){e.push({label:(t.order&&parseInt(t.order)>0&&parseInt(t.order)<1e4?t.order+".":"")+(0,Y.A)("${"+t.title+"}"),value:t.value})})),e}e.A=function(t){var e=t.fieldConfig,r=t.value,a=t.onChange;return function(t,e,r,a,c,m,g){var Y=(0,C.Ym)().translate,T=h.A.getControlType(r,a),N=void 0,F=r.disabled?Y("${无需输入}"):Y("${请输入}${"+r.title+"}"),U=r.disabled,H=r.min,z=H||"0"==H?E.A.configParamTrans(H):void 0,W=(H=r.max)||"0"==H?E.A.configParamTrans(H):void 0,Q=_({id:t,mainCode:e,fieldConfig:r,min:z,max:W,itemType:T,viewOrEdit:"edit",onChange:c,disabled:U,value:a,style:{minWidth:220,width:"100%"}},g),J=_({id:t,placeholder:F,disabled:U,value:a,onChange:c,style:{minWidth:220,width:"100%"}},g),X=(0,j.Y)(s.A,{type:"text",placeholder:Y("${暂未实现}-${"+T+"}"),disabled:!0});if(C.vr.getCustomEditControl(T))return i.createElement(C.vr.getCustomEditControl(T),Q);switch(T){case"int":case"decimal":case"float":case"double":case"intrange":case"decimalrange":N=(0,j.Y)(d.A,Q);break;case"text":N=(0,j.Y)(s.A,(0,o.A)({allowClear:!0,type:"text"},J));break;case"range":N=(0,j.Y)(v.A,Q);break;case"select":N=(0,j.Y)(l.A,(0,o.A)({},J,{notFoundContent:Y("${暂无选项}"),allowClear:!0,showSearch:!0,optionLabelProp:"value",optionFilterProp:"label",options:V(r.mstrucId)}));break;case"multiselect":case"texttags":N=(0,j.Y)(l.A,(0,o.A)({mode:"multiple"},J,{value:a&&""!=a?"string"==typeof a?a.split(","):a:void 0,notFoundContent:Y("${暂无选项}"),allowClear:!0,showSearch:!0,optionLabelProp:"value",optionFilterProp:"label",showArrow:!0,options:V(r.mstrucId)}));break;case"checkbox":N=(0,j.Y)(D,(0,o.A)({},J,{options:V(r.mstrucId),value:"string"==typeof a?a.split(","):a}));break;case"radio":N=(0,j.Y)(R,(0,o.A)({},J,{options:V(r.mstrucId),value:"string"==typeof a?a.split(",")[0]:a}));break;case"yes-no-switch":var Z=J.value,tt=J.onChange,et=(J.style,(0,n.A)(J,P));N=(0,j.Y)(f.A,(0,o.A)({style:{width:"60px"},checkedChildren:Y("${是}"),unCheckedChildren:Y("${否}"),checked:Z==Y("${是}"),onChange:function(t){tt(Y(t?"${是}":"${否}"))}},et));break;case"yes-no-radio":var rt=J.value,nt=(0,n.A)(J,I);N=(0,j.Y)(R,(0,o.A)({value:rt?rt==Y("${是}")?Y("${是}"):Y("${否}"):null},nt),(0,j.Y)(u.Ay,{value:Y("${是}")},Y("${是}")),(0,j.Y)(u.Ay,{value:Y("${否}")},Y("${否}")));break;case"date-YY":case"daterange-YY":case"date-M1":case"daterange-M1":case"date":case"daterange":case"datetime-HH":case"datetimerange-HH":case"datetime-mm":case"datetimerange-mm":case"datetime":case"datetimerange":case"time-HH":case"timerange-HH":case"time-mm":case"timerange-mm":case"time":case"timerange":N=(0,j.Y)(S.A,Q);break;case"textarea":case"url":N=(0,j.Y)(q,(0,o.A)({rows:3,allowClear:!0},J));break;case"html":N=(0,j.Y)(M,(0,o.A)({viewOrEdit:"edit"},Q));break;case"steps":N=(0,j.Y)(p.A,(0,o.A)({},Q,{options:V(r.mstrucId)}));break;case"password":N=(0,j.Y)(s.A.Password,(0,o.A)({},J,{autoComplete:"new-password",prefix:(0,j.Y)(O.A,{className:"site-form-item-icon"})}));break;case"preselect":N=(0,j.Y)(y.A,Q);break;case"caselect":N=(0,j.Y)(A.A,Q);break;case"relation":default:N=X;break;case"file":case"video":case"picture":case"non-download-file":N=(0,j.Y)(w.A,Q);break;case"chemstruc":N=(0,j.Y)($,(0,o.A)({viewOrEdit:"edit"},Q));break;case"sql-code-editor":N=(0,j.Y)(K,(0,o.A)({viewOrEdit:"edit"},Q));break;case"relselect":case"refselect":case"entity-select":N=(0,j.Y)(x.A,(0,o.A)({maxSelected:W?parseInt(W):void 0},Q));break;case"table-entity-select":N=(0,j.Y)(k.A,(0,o.A)({maxSelected:W?parseInt(W):void 0},Q));break;case"lab-tree-select":N=(0,j.Y)(L.A,(0,o.A)({maxSelected:W?parseInt(W):void 0},Q));break;case"progress":N=(0,j.Y)(b.A,Q);break;case"signature":N=(0,j.Y)(G,Q);break;case"color":N=(0,j.Y)(B,Q);break;case"hidden":N=(0,j.Y)(s.A,{type:"hidden",value:a,disabled:!0})}return N}(t.id,t.mainCode,e,r,a,0,(0,n.A)(t,T))}},75283:function(t,e,r){"use strict";r(96540);var n=r(52120),o=r(46704),a=r(17437);e.A=function(t){var e=t.value,r=(t.itemType,t.fieldConfig),i=o.A.getEnumValueColor(r.mstrucId,e);return(0,a.Y)("span",{className:"infoStyle"},e?(0,a.Y)(n.A,{color:i||"green",text:e}):null)}},78550:function(t,e,r){"use strict";r(96540);var n=r(67034),o=r(46704),a=r(17437);e.A=function(t){var e=t.value,r=(t.itemType,t.fieldConfig),i=[];if(e){var c=e;e instanceof Array||(c=e.split(",")),c.forEach((function(t){var c=o.A.getEnumValueColor(r.mstrucId,e);i.push((0,a.Y)(n.A,{key:t,color:c||"blue"},t))}))}return(0,a.Y)("span",{className:"infoStyle"},i)}},68876:function(t,e,r){"use strict";var n=r(65425),o=r(50828),a=(r(96540),r(7142)),i=r(28392),c=r(8130),u=r(94300),s=r(17437);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){(0,o.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.A=function(t){var e=t.id,r=t.value,o=t.itemType,l=t.fieldConfig,h=t.onChange,p=t.style,d=t.min,v=t.max,y=(0,u.Y)().translate,m=void 0,g=function(t){h&&h(t)},w=c.A.splitValue(r),b=w.valueBegin,A=w.valueEnd,x=r||0==r?r:null,k=function(t){h&&h(c.A.concatValue(t,A))},L=function(t){h&&h(c.A.concatValue(b,t))},E=function(t){(!t.target.value&&0!=t.target.value||isNaN(t.target.value))&&(t.target.value=null)},C=l.disabled?y("${无需输入}"):y("${请输入}${"+l.title+"}"),O=l.disabled,S={id:e,placeholder:C,disabled:O,value:r};switch(o){case"int":m=(0,s.Y)(a.A,(0,n.A)({style:f({},p),min:d,max:v,stringMode:!0,precision:0},S,{value:x,onChange:g}));break;case"decimal":case"float":case"double":m=(0,s.Y)(a.A,(0,n.A)({style:f({},p)},S,{value:x,min:d,max:v,step:.1,onChange:g}));break;case"intrange":m=(0,s.Y)(i.A,null,(0,s.Y)(a.A,{min:d,max:v,placeholder:y("${开始}"),value:b,precision:0,onKeyUp:E,onChange:k}),"~",(0,s.Y)(a.A,{min:d,max:v,placeholder:y("${结束}"),value:A,precision:0,onKeyUp:E,onChange:L}));break;case"decimalrange":m=(0,s.Y)(i.A,null,(0,s.Y)(a.A,{min:d,max:v,placeholder:y("${开始}"),value:b,onChange:k,step:.1,disabled:O}),"~",(0,s.Y)(a.A,{min:d,max:v,placeholder:y("${结束}"),value:A,step:.1,onChange:L,disabled:O}))}return m}},24262:function(t,e,r){"use strict";r(96540);var n=r(17355),o=r(8130),a=r(94300),i=r(17437);e.A=function(t){var e,r=t.id,c=t.value,u=(t.itemType,t.fieldConfig),s=t.onChange,l=(t.style,(0,a.Y)().translate),f=o.A.splitValue(c),h=f.valueBegin,p=f.valueEnd,d=u.disabled;return e=(0,i.Y)(n.A.Group,{compact:!0},(0,i.Y)(n.A,{id:r,style:{width:"45%"},disabled:d,min:u.min,max:u.max,placeholder:l("${开始}"),value:h,onChange:function(t){var e=t.target.value;s&&s(o.A.concatValue(e,p))}}),"~",(0,i.Y)(n.A,{style:{width:"45%"},disabled:d,min:u.min,max:u.max,placeholder:l("${结束}"),value:p,onChange:function(t){var e=t.target.value;s&&s(o.A.concatValue(h,e))}})),e}},17595:function(t,e,r){"use strict";var n=r(65425),o=r(50828),a=(r(96540),r(6754)),i=r(7142),c=r(94300),u=r(17437);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){(0,o.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.A=function(t){var e,r=t.value,o=(t.itemType,t.fieldConfig),s=t.onChange,f=t.style,h=t.viewOrEdit,p=(0,c.Y)().translate;e=r?isNaN(r)?r:r.toString():0;var d,v={placeholder:o.disabled?p("${无需输入}"):p("${请输入}${"+o.title+"}"),disabled:o.disabled,value:r};return d="view"==h||o.disabled?(0,u.Y)(a.A,{width:90,percent:e}):(0,u.Y)(i.A,(0,n.A)({style:l({},f),min:0,max:100},v,{onKeyUp:function(t){t.target.value&&!isNaN(t.target.value)?t.target.value=parseInt(t.target.value):t.target.value=0},onChange:function(t){s&&s(t)}})),d}},49604:function(t,e,r){"use strict";r.d(e,{A:function(){return w}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(50828),s=r(96540),l=r(28392),f=r(45038),h=r(28073),p=r(22733),d=r(1026),v=r(17437);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,g()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var w=function(t){function e(){var t;(0,n.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=m(this,e,[].concat(o)),(0,u.A)(t,"state",{showDtmplView:!1,showSelectTable:!1,selectedCodes:void 0,openCode:void 0}),(0,u.A)(t,"context",void 0),(0,u.A)(t,"showRfieldDtmplView",(function(e){t.setState({openCode:e,showDtmplView:!0})})),(0,u.A)(t,"hiddenDtmplView",(function(){t.setState({showDtmplView:!1})})),(0,u.A)(t,"handleRFieldSelect",(function(t){})),(0,u.A)(t,"deleteRFieldValue",(function(t){})),(0,u.A)(t,"showCount",(function(){var e=t.props.value,r="";if(e instanceof Array){var n,o=0,a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(e);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(o++,(r+=i&&i.indexOf("@R@")>0?i.split("@R@")[1]:i).length>=20)break}}catch(t){a.e(t)}finally{a.f()}return o}return 1})),(0,u.A)(t,"needMore",(function(){var e=t.props.value,r=t.showCount();return(e instanceof Array?e.length:1)>r})),(0,u.A)(t,"getValue",(function(e){var r,n=t.props,o=n.fieldConfig,a=n.value,i=o.buttons;return r=a instanceof Array?e&&e>0&&a.length>e?a.slice(0,e):a:a?a.split(","):[],i&&i.includes("detail")?(0,v.Y)(l.A,{key:e?e+1:1,size:[8,8],wrap:!0},r.map((function(e,r){var n=!!e&&e.indexOf("@R@")>0,o=n?e.split("@R@")[1]:e,a=e?e.split("@R@")[0]:void 0;return n?(0,v.Y)(f.Ay,{key:r,style:{padding:"0px 0px",height:"100%"},type:"link",title:"",onClick:function(){t.showRfieldDtmplView(a)}},o):(0,v.Y)("span",{key:r},o)}))):(0,v.Y)(l.A,{key:e?e+2:2,size:[8,16],wrap:!0},r.map((function(t,e){var r=t&&t.indexOf("@R@")>0?t.split("@R@")[1]:t;return t&&t.split("@R@")[0],(0,v.Y)("span",{key:e},r)})))})),t}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){var t=this.props,e=t.fieldConfig,r=(t.value,t.itemType,t.serverKey),n=this.state,o=n.showDtmplView,a=n.openCode,i=e.buttons,c=this.context.translate,u=this.getValue(this.showCount());return(0,v.Y)(s.Fragment,null,(0,v.Y)(l.A,{key:3,size:[8,16],wrap:!0,style:{minWidth:"80px"}},u,this.needMore()?(0,v.Y)(h.A,{overlayStyle:{maxWidth:"400px"},placement:"leftBottom",trigger:"click",content:this.getValue()},(0,v.Y)(f.Ay,{key:"more",type:"link",size:"small"},c("${更多}..."))):null,i&&i.includes("detail")?(0,v.Y)(p.A,{serverKey:r,key:"mdv",open:o,onCancel:this.hiddenDtmplView,sourceId:e.sourceId,code:a}," "):""))}}])}(s.PureComponent);(0,u.A)(w,"contextType",d.U)},4283:function(t,e,r){"use strict";var n=r(38452),o=(r(96540),r(53515)),a=r(36492),i=r(46704),c=r(94300),u=r(17437),s=["viewOrEdit"];e.A=function(t){var e,r=t.viewOrEdit,l=void 0===r?"view":r,f=(0,n.A)(t,s),h=f.value,p=f.fieldConfig,d=f.onChange,v=f.options,y=(0,c.Y)().translate,m=i.A.getEnums(p.mstrucId),g=void 0;for(var w in m)h==m[w].value&&(g=parseInt(w));var b=[];return m.map((function(t){return b.push({title:t.title})})),e=p.disabled||"view"==l?(0,u.Y)(o.A,{items:b,current:g,size:"small"}):(0,u.Y)(a.A,{placeholder:y("${请选择}${"+p.title+"}"),notFoundContent:y("${暂无选项}"),allowClear:!0,showSearch:!0,value:h,onChange:function(t){d&&d(t)},options:v}),e}},55208:function(t,e,r){"use strict";r.d(e,{A:function(){return m}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(50828),s=r(96540),l=r(8130),f=r(28073),h=r(45038),p=r(1026),d=r(17437);function v(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,y()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}var m=function(t){function e(){var t;(0,n.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=v(this,e,[].concat(o)),(0,u.A)(t,"state",{}),(0,u.A)(t,"context",void 0),(0,u.A)(t,"toString",(function(t){return t?t.toString():t})),(0,u.A)(t,"viewButton",(function(){var e=t.props,r=e.value,n=e.isHtml,o=e.maxWidth,a=t.context.translate;return(0,d.Y)(s.Fragment,null,(0,d.Y)(f.A,{overlayStyle:{maxWidth:o},placement:"leftBottom",trigger:"click",content:(0,d.Y)(s.Fragment,null,n?(0,d.Y)("div",{style:{padding:"6px"},dangerouslySetInnerHTML:{__html:r}}):(0,d.Y)("div",{style:{padding:"6px"}},r))},(0,d.Y)(h.Ay,{type:"link",size:"small"},a("${查看}"))," "))})),t}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){var t=this.props,e=t.value,r=t.isHtml,n=t.showMax,o=this.toString(e);if(r){var a=new RegExp("<[^<>]+>","g");o=e.replace(a,"")}var i=l.A.getLongTextStyle(o.substring(0,n));return(0,d.Y)(s.Fragment,null,o.length<=n||n<=0?(0,d.Y)("span",{className:"infoStyle",style:i},o):(0,d.Y)("span",{className:"infoStyle",style:i},o.substring(0,n),"...",this.viewButton()))}}])}(s.PureComponent);(0,u.A)(m,"contextType",p.U),(0,u.A)(m,"defaultProps",{isHtml:!1,showMax:30,maxWidth:"1024px"})},66941:function(t,e,r){"use strict";r.d(e,{A:function(){return L}});var n=r(42455),o=r(17636),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(69036),p=r(77829),d=r(45038),v=r(77028),y=r(92749),m=r(19612),g=r(8130),w=r(1026),b=r(17437);function A(){A=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var E=b.prototype=g.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function x(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,k()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}var L=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=x(this,e,[].concat(n)),(0,l.A)(t,"state",{}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"handleRemove",(function(e){t.props.onChange(JSON.stringify({valid:"delete"}))})),(0,l.A)(t,"handleChange",function(){var e=(0,o.A)(A().mark((function e(r){var n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("file change:",r),"done"==r.file.status&&(n={valid:"new",fileKey:r.file.response.fileKey,fileName:r.file.originFileObj.name},(0,t.props.onChange)(JSON.stringify(n)));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,l.A)(t,"beforeUpload",(function(e){var r=t.context.translate;return!!(e.size/1024/1024<40)||(h.Ay.error(r("${超过40M限制 不允许上传~}")),!1)})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"render",value:function(){var t=this.props,e=t.id,r=t.itemType,n=t.disabled,o=t.value,a=t.serverKey,i=this.context.translate,c=[];if(o){var u=o;"string"==typeof u&&(u=JSON.parse(o)),!0===u.valid?c.push({uid:"-1",name:u.base.fileName,status:"done",url:g.A.joinPath(g.A.joinPath(g.A.api(),"/v3/files"),u.base.path)+"?@token=".concat(g.A.hydrocarbonToken(),"&@programToken=").concat(g.A.programCode(),"&disposition=attachment")}):"new"==u.valid&&c.push({uid:"-2",name:u.fileName})}return(0,b.Y)("div",null,(0,b.Y)(p.A,{id:e,maxCount:1,accept:"picture"===r?".png, .jpg, .jpeg":"video"===r?".mp4":void 0,listType:"picture"==r?"picture":"text",fileList:0==c.length?void 0:c,disabled:n,name:"file",headers:m.A.getHeaderObj(),action:function(t){return y.A.postFileAction(a,t)},beforeUpload:this.beforeUpload,onChange:this.handleChange,onRemove:this.handleRemove},c&&c.length>=1?"":(0,b.Y)(d.Ay,{disabled:n},(0,b.Y)(v.A,null)," ",i(n?"${无需上传}":"${点击上传}"))))}}])}(f.PureComponent);(0,l.A)(L,"contextType",w.U)},74712:function(t,e,r){"use strict";var n=r(38452),o=r(65425),a=r(50828),i=r(96540),c=r(52120),u=r(37977),s=r(17355),l=r(80243),f=r(54763),h=r(78550),p=r(75283),d=r(4283),v=r(8130),y=r(49604),m=r(74353),g=r.n(m),w=r(17595),b=r(55208),A=r(51864),x=r(17437),k=["fieldConfig","value","holderType"];function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var E=(0,x.Y)(i.Fragment,null,"loading"),C=(0,l.Ay)({resolved:{},chunkName:function(){return"signature"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(87)]).then(r.bind(r,4556))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 4556}},{fallback:E}),O=(0,l.Ay)({resolved:{},chunkName:function(){return"chemstruc-graph"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(689),r.e(651),r.e(390),r.e(469),r.e(63),r.e(613),r.e(419),r.e(543),r.e(724),r.e(809),r.e(670)]).then(r.bind(r,85998))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 85998}},{fallback:E}),S=(0,l.Ay)({resolved:{},chunkName:function(){return"code-editor-sql-code-editor"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(112),r.e(695)]).then(r.bind(r,74025))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 74025}},{fallback:E}),Y=(0,l.Ay)({resolved:{},chunkName:function(){return"color-picker"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(671)]).then(r.bind(r,33442))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 33442}},{fallback:E}),j=(0,l.Ay)({resolved:{},chunkName:function(){return"controls-file-view"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(150)]).then(r.bind(r,78122))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 78122}},{fallback:E});function P(t,e,r,n,l){var m=(0,A.Ym)().translate,k=f.A.getControlType(t,e),E=r;E||(E="descriptions");t.colNum;var P=void 0,I=(t.disabled?m("${无需输入}"):m("${请输入}${"+t.title+"}"),t.disabled,e||(t.defaultValue&&!v.A.isConfigDefaultValue(t.defaultValue)?t.defaultValue:"")),T=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach((function(e){(0,a.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({fieldConfig:t,itemType:k,value:I,viewOrEdit:"view"},l);if(A.vr.getCustomEditControl(k))return i.createElement(A.vr.getCustomViewControl(k),T);var N=(0,x.Y)("span",{className:"infoStyle"},m("${暂未完成}-${"+k+"}"));switch(k){case"int":case"decimal":case"float":case"double":case"intrange":case"decimalrange":case"range":case"daterange-YY":case"daterange-M1":case"daterange":case"datetimerange-HH":case"datetimerange-mm":case"datetimerange":case"timerange-HH":case"timerange-mm":case"timerange":case"caselect":P=(0,x.Y)("span",{className:"infoStyle"},I);break;case"date-YY":case"date-M1":case"date":case"datetime-HH":case"datetime-mm":case"datetime":case"time-HH":case"time-mm":case"time":P=(0,x.Y)("span",{className:"infoStyle"},I?g()(I).format(v.A.getDayjsFormat(k)):void 0);break;case"text":case"textarea":case"preselect":P="table"==E?(0,x.Y)(b.A,{maxWidth:"400px",isHtml:!1,value:I,showMax:t.ellipsisLength}):(0,x.Y)("span",{className:"infoStyle"},I);break;case"select":case"radio":case"yes-no-switch":P=(0,x.Y)(p.A,T);break;case"yes-no-radio":P=(0,x.Y)("span",{className:"infoStyle"},I?(0,x.Y)(c.A,{color:I==m("${是}")?"green":"red",text:I}):null);break;case"multiselect":case"checkbox":P=(0,x.Y)(h.A,T);break;case"html":P="table"==E?(0,x.Y)(b.A,{isHtml:!0,value:I}):(0,x.Y)("div",{dangerouslySetInnerHTML:{__html:I}});break;case"steps":P=(0,x.Y)(d.A,T);break;case"password":P=I?(0,x.Y)(u.A,(0,o.A)({title:I,color:"#fff1b8"},T),(0,x.Y)("span",{className:"infoStyle"},"********")):null;break;case"relation":default:P=N;break;case"file":case"picture":case"video":P=(0,x.Y)(j,T);break;case"non-download-file":P=(0,x.Y)(j,(0,o.A)({},T,{downloadable:!1}));break;case"chemstruc":P=(0,x.Y)(O,T);break;case"sql-code-editor":P=(0,x.Y)(S,(0,o.A)({viewOrEdit:"view"},T));break;case"relselect":case"refselect":case"entity-select":case"table-entity-select":P=(0,x.Y)(y.A,T);break;case"progress":P=(0,x.Y)(w.A,T);break;case"signature":P=(0,x.Y)(C,T);break;case"color":P=(0,x.Y)(Y,T);break;case"url":P=(0,x.Y)("a",{target:"_blank",href:I},m("${网址}"));break;case"hidden":P=(0,x.Y)(s.A,{type:"hidden",value:e,disabled:!0})}return P}e.A=function(t){return P(t.fieldConfig,t.value,t.holderType,0,(0,n.A)(t,k))}},88133:function(t,e,r){"use strict";r(96540);var n=r(57529),o=r(94300),a=r(17437),i=n.A.Title;e.A=function(t){var e=(0,o.Y)().translate;return(0,a.Y)(n.A,null,(0,a.Y)(i,null,e("${没有找到自定义页面}")),(0,a.Y)(i,{level:5},"url:/",t.pageName),(0,a.Y)(i,{level:5},e("${请确认配置}")))}},56522:function(t,e,r){"use strict";r.d(e,{A:function(){return g}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(50828),s=r(96540),l=r(45038),f=r(37187),h=r(88133),p=r(51864),d=r(1026),v=r(17437);function y(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,m()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}var g=function(t){function e(){var t;(0,n.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=y(this,e,[].concat(o)),(0,u.A)(t,"state",{}),(0,u.A)(t,"context",void 0),(0,u.A)(t,"getFooter",(function(){var e=t.props.onOk,r=t.context.translate,n=[];return n.unshift((0,v.Y)(l.Ay,{onClick:e,type:"primary"},r("${关闭}"))),n})),(0,u.A)(t,"customPage",(function(){var e=t.props,r=e.code,n=e.sourceId,o=e.open,a=e.mainCode,i=e.customPath,c=e.onOk;if(o){var u=p.vr.getCustomPage(i)||h.A;return s.createElement(u,{code:r,sourceId:n,mainCode:a,pageName:i,onOk:c})}})),t}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){var t=this.props,e=t.height,r=t.onOk,n=t.open,o=t.width,a=t.title,i=t.bodyWidth,c=this.context.translate;return(0,v.Y)(f.A,{open:n,width:o,title:a,closable:!1,bodyStyle:{height:e,width:i,overflow:"auto"},destroyOnClose:!0,centered:!0,onCancel:r,footer:[(0,v.Y)(l.Ay,{onClick:function(){return r()}},c("${关闭}"))]},this.customPage())}}])}(s.PureComponent);(0,u.A)(g,"contextType",d.U),(0,u.A)(g,"defaultProps",{height:"82vh",width:"82vw",bodyWidth:"100%",forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"}})},97823:function(t,e,r){"use strict";var n=r(62477),o=r(44274),a=r(2532),i=r(63549),c=r(91985),u=r(11504),s=r(50828),l=r(96540),f=r(28392),h=r(99326),p=r(28073),d=r(45038),v=r(50329),y=r(1490),m=r(1026),g=r(17437);function w(t,e,r){return e=(0,c.A)(e),(0,i.A)(t,b()?Reflect.construct(e,r||[],(0,c.A)(t).constructor):e.apply(t,r))}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}var A=function(t){function e(){var t;(0,o.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=w(this,e,[].concat(n)),(0,s.A)(t,"state",{}),(0,s.A)(t,"context",void 0),(0,s.A)(t,"calcOffsetBottom",(function(t){return t.length>=3?120:2==t.length?86:80})),t}return(0,u.A)(e,t),(0,a.A)(e,[{key:"render",value:function(){(0,n.A)(this.state);var t=this.props,e=t.dtmplConfig,r=t.mainCode,o=t.serverKey,a=this.context.translate;if(!e)return null;e.buttons;var i,c=e.cQuerys;return c&&c.length>3&&(i=(0,g.Y)("div",{style:{width:"100px"},className:"btns"},(0,g.Y)(f.A,{direction:"vertical"},c.map((function(t,e){if(e>2)return(0,g.Y)(y.A,{serverKey:o,block:!0,key:t.id,mainCode:r,cQueryConfig:t})}))))),c&&c.length>0&&r?(0,g.Y)(h.A,{style:{position:"absolute",top:180,right:10,maxHeight:90},offsetTop:300},(0,g.Y)("div",{className:"submitButtonBar"},(0,g.Y)("ul",null,c?c.map((function(t,e){if(e<3)return(0,g.Y)("li",{key:e},(0,g.Y)(y.A,{serverKey:o,type:"text",block:!0,key:t.id,mainCode:r,cQueryConfig:t}))})):"",c&&c.length>2?(0,g.Y)(p.A,{placement:"leftTop",content:i,trigger:"hover"},(0,g.Y)(d.Ay,{block:!0},(0,g.Y)(v.A,null),a("${更多}"))):""))):""}}])}(l.PureComponent);(0,s.A)(A,"contextType",m.U),e.A=A},54040:function(t,e,r){"use strict";r.d(e,{A:function(){return v}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(50828),s=r(96540),l=r(99326),f=r(1026),h=r(17437);function p(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,d()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}var v=function(t){function e(){var t;(0,n.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=p(this,e,[].concat(o)),(0,u.A)(t,"context",void 0),(0,u.A)(t,"scrollToAnchor",(function(e){if(e){var r=document.getElementById(t.props.parentId+e.id);r&&r.scrollIntoView({behavior:"smooth",block:"end"})}})),(0,u.A)(t,"scroll",(function(t){t.preventDefault(),t.stopPropagation();var e=document.getElementsByClassName("rightBar")[0];e&&(e.getElementsByTagName("ul")[0].style.marginTop="")})),t}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){var t=this,e=this.props,r=e.dtmplConfig,n=e.positionRight,o=[],a=this.context.translate;return r&&r.groups.forEach((function(t){o.push({title:t.title,id:t.id})})),r&&r.premises&&r.premises.length>0&&o.push({id:r.premises[0].id,title:a("${默认字段}")}),o&&o.length>3?(0,h.Y)(l.A,{style:{position:"absolute",top:60,right:n},offsetTop:80},(0,h.Y)("div",{className:"rightBar",onScroll:this.scroll},(0,h.Y)("ul",null,o?o.map((function(e,r){return(0,h.Y)("li",{onClick:function(){return t.scrollToAnchor(e)},key:r},e.title)})):""))):""}}])}(s.PureComponent);(0,u.A)(v,"defaultProps",{positionRight:15}),(0,u.A)(v,"contextType",f.U)},84957:function(t,e,r){"use strict";r.d(e,{A:function(){return w}});var n=r(65425),o=r(38452),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(21348),p=r(28073),d=r(45038),v=r(17437),y=["placement","icon","content"];function m(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,g()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var w=function(t){function e(){return(0,a.A)(this,e),m(this,e,arguments)}return(0,s.A)(e,t),(0,i.A)(e,[{key:"render",value:function(){var t=this.props,e=t.placement,r=t.icon,a=t.content,i=(0,o.A)(t,y);return a?(0,v.Y)(p.A,{placement:e,content:(0,v.Y)("div",{dangerouslySetInnerHTML:{__html:a}})},(0,v.Y)(d.Ay,(0,n.A)({},i,{icon:r||(0,v.Y)(h.A,null)}))):null}}])}(f.PureComponent);(0,l.A)(w,"defaultProps",{placement:"right",size:"small",type:"text"})},76390:function(t,e,r){"use strict";r.d(e,{A:function(){return z}});var n=r(42455),o=r(17636),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(677),p=r(45038),d=r(37977),v=r(40261),y=r(33748),m=r(80581),g=r(46704),w=r(33835),b=r(1849),A=r(92749),x=r(8130),k=r(73729),L=r(69068),E=r(54040),C=r(13050),O=r(97823),S=r(78229),Y=r(46935),j=r(45705),P=r(17437);function I(){I=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function T(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,N()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function N(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(N=function(){return!!t})()}var _=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=T(this,e,[].concat(n)),(0,l.A)(t,"state",{loading:!0,id:"dtmplView"+x.A.getRandomNum(6),snapshotOpen:!1,dtmplData:void 0,premisesTitle:"默认字段",layout:{labelCol:{span:8},wrapperCol:{span:16}}}),(0,l.A)(t,"loadData",(0,o.A)(I().mark((function e(){var r,n,o,a,i,c,u,s;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,a=r.versionId,i=r.serverKey,c=r.codeSource,(u=o)||!c){e.next=6;break}return e.next=5,A.A.queryCode(n,c,i);case 5:u=e.sent;case 6:if(!u){e.next=14;break}return t.setState({loading:!0}),e.next=10,A.A.requestViewDtmplData(i,n,u,a);case 10:s=e.sent,t.setState({dtmplData:s,loading:!1}),e.next=15;break;case 14:t.setState({loading:!1});case 15:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"fieldGroupList",(function(){var e=t.props,r=e.dtmplConfig,n=e.serverKey,o=e.mainCode,a=e.showRightNav,i=e.parentId,c=t.state,u=c.dtmplData,s=c.loading,l=c.id,f=[];return r&&(f=r.groups),f.map((function(t){if("embed"==t.type){if(!u)return;var e=void 0,c=S.A.getFieldValueCodeOfMstrucId(r,u.fieldMap,t.codeSourceFieldMstrucId),f=S.A.getFieldValueCodeOfMstrucId(r,u.fieldMap,t.pageSourceFieldMstrucId);if(!(f=f||t.pointSourceId))return null;if("列表"==t.embedType)return(0,P.Y)(h.A,{bodyStyle:{padding:0},bordered:!1,style:{width:a?"90%":"100%"}},(0,P.Y)(Y.A,{readOnly:!0,serverKey:null,collapsible:!0,initCollapse:!1,title:t.title,mainCode:o,funcMode:"common",sourceId:f}));if("详情"==t.embedType)return e="listop",(0,P.Y)(C.A,{showRightNav:a,tip:t.tip,title:t.title,key:t.id,id:i+t.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:s,bodyStyle:{padding:"6px"}},(0,P.Y)(j.A,{showHeader:!1,codeSource:e,code:c,sourceId:f})," ");switch(t.embedType){case"编辑":e="listop";break;case"编辑或添加":e="new"}return(0,P.Y)(C.A,{showRightNav:a,tip:t.tip,title:t.title,key:t.id,id:i+t.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:s,bodyStyle:{padding:"6px"}},(0,P.Y)(j.A,{showHeader:!1,codeSource:e,code:c,sourceId:f})," ")}if("relation"!=t.type)return(0,P.Y)(C.A,{tip:t.tip,title:t.title,key:t.id,id:l+t.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:s},(0,P.Y)(L.A,{serverKey:n,fields:t.fields,valueMap:u?u.fieldMap:void 0,width:220}));if(t.fields){var p=void 0;return u&&(p=u.arrayMap[t.id]),(0,P.Y)(k.A,{serverKey:n,initCollapse:u&&(!p||p.length<=0),loading:s,parentId:l,key:t.id,fieldGroupConfig:t,value:p,viewOrEdit:"view"})}}))})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(n=(0,o.A)(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,o.A)(I().mark((function t(e){var r,n,o,a,i,c;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.props).sourceId,n=r.code,o=r.versionId,a=r.refreshCode,i=e.code,e.versionId,c=e.refreshCode,!(n!=i||o&&o!=e.versionId||a&&a!=c)){t.next=5;break}return t.next=5,this.loadData();case 5:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.showRightNav,r=t.rightBarPositionRight,n=t.code,o=(t.sourceId,t.dtmplConfig),a=t.serverKey,i=this.state,c=i.premisesTitle,u=i.loading,s=(i.dtmplData,i.layout,i.snapshotOpen,i.id),l=o?o.premises:void 0;return(0,P.Y)("div",null,this.fieldGroupList(),l&&l.length>0?(0,P.Y)(C.A,{title:c,key:c,id:s+l[0].id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:u},(0,P.Y)(L.A,{serverKey:a,fields:l})):"",e?(0,P.Y)(E.A,{parentId:s,positionRight:r,dtmplConfig:o}):"",(0,P.Y)(O.A,{serverKey:a,dtmplConfig:o,mainCode:n}))}}]);var r,n}(f.PureComponent);(0,l.A)(_,"defaultProps",{showRightNav:!0});var D=_,R=r(1026);function F(){F=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function G(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,$()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function $(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($=function(){return!!t})()}var M=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=G(this,e,[].concat(n)),(0,l.A)(t,"state",{list:void 0,loading:!1,current:void 0}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"loadData",(0,o.A)(F().mark((function e(){var r,n,o,a,i,c;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,r.showSnapshot,a=r.serverKey,i=t.state.current,!o){e.next=8;break}return t.setState({loading:!0}),e.next=6,A.A.requestVersionList(a,n,o);case 6:c=e.sent,t.setState({list:c,current:!i&&c.length>0?c[0].code:i,loading:!1});case 8:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"onChange",(function(e){var r=t.props.showSnapshot;t.setState({current:e}),r(e)})),(0,l.A)(t,"detailHistory",(function(){var e=t.state,r=e.list,n=e.current,o=t.context.translate;if(r.length>0)return r.map((function(e,r){var a=!!n&&e.code===n,i=a?"red":"blue";return(0,P.Y)(w.A.Item,{color:i,key:r},x.A.formateDate(e.time),(0,P.Y)("br",null),""+e.userName,a?"":(0,P.Y)(p.Ay,{style:{marginLeft:10},type:"primary",size:"small",onClick:function(){return t.onChange(e.code)}},o("${查看}")))}))})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(n=(0,o.A)(F().mark((function t(){return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,o.A)(F().mark((function t(e){var r,n;return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props.open,n=this.state.list,r&&!n&&this.loadData();case 3:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.open,r=t.onClose,n=t.dtmplConfig,o=t.sourceId,a=t.code,i=t.serverKey,c=this.state,u=c.list,s=c.current,l=this.context.translate;return(0,P.Y)(f.Fragment,null,(0,P.Y)(b.A,{title:l("${快照列表}"),closable:!0,onClose:r,open:e,width:350},u&&u.length>0?(0,P.Y)(w.A,{mode:"alternate"},this.detailHistory()):l("${暂无历史记录}")),(0,P.Y)(b.A,{placement:"left",title:l("${快照查看}"),closable:!0,mask:!1,onClose:r,open:e,width:"calc(100% - 380px)",style:{maxWidth:1960}},(0,P.Y)(D,{serverKey:i,showRightNav:!1,dtmplConfig:n,sourceId:o,code:a,versionId:s})))}}]);var r,n}(f.PureComponent);(0,l.A)(M,"defaultProps",{}),(0,l.A)(M,"contextType",R.U);var K=M,B=r(84957);function q(){q=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function V(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,U()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function U(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(U=function(){return!!t})()}var H=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=V(this,e,[].concat(n)),(0,l.A)(t,"context",void 0),(0,l.A)(t,"state",{loading:!0,dtmplConfig:void 0,snapshotOpen:!1,premisesTitle:"默认字段",layout:{labelCol:{span:8},wrapperCol:{span:16}},refreshCode:void 0}),(0,l.A)(t,"doRefresh",(0,o.A)(q().mark((function e(){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({refreshCode:x.A.getRandomNum(6)});case 1:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"goEdit",(function(){var e=t.props;(0,e.goDtmpl)(e.code)})),(0,l.A)(t,"showSnapshot",(function(){t.setState({snapshotOpen:!0})})),(0,l.A)(t,"onSnapshotClose",(function(){t.setState({snapshotOpen:!1})})),(0,l.A)(t,"toSnapshot",(function(){})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(r=(0,o.A)(q().mark((function t(){var e,r,n,o;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,r=e.sourceId,n=e.serverKey,t.next=3,g.A.requestViewDtmplConfig(n,r);case 3:o=t.sent,this.setState({dtmplConfig:o});case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.showRightNav,r=t.rightBarPositionRight,n=t.code,o=t.sourceId,a=t.goDtmpl,i=t.serverKey,c=t.codeSource,u=t.title,s=t.showHeader,l=this.state,f=l.dtmplConfig,g=(l.premisesTitle,l.loading,l.layout,l.snapshotOpen),w=l.refreshCode,b=this.context.translate,A=f?f.buttons:void 0,x=(f&&f.premises,e);return f&&f.groups.length<4&&(x=!1),(0,P.Y)("div",{className:"detailPage ".concat(x?"showRightNav":"noRightNav")},s?(0,P.Y)(h.A,{bordered:!1,size:"small",key:"detailTitle",className:"hoverable pageHeader"},(0,P.Y)("h3",null,b("${"+(u||"详情")+"}"),f?(0,P.Y)(B.A,{content:f.tip}):null,(0,P.Y)("div",{className:"fr"},A&&A.includes("dtmplEdit")&&a&&!f.editAction?(0,P.Y)(p.Ay,{className:"hoverbig",onClick:this.goEdit},(0,P.Y)(v.A,null)):"",A&&A.includes("history")?(0,P.Y)(d.A,{title:b("${数据快照}")},(0,P.Y)(p.Ay,{className:"hoverbig",onClick:this.showSnapshot},(0,P.Y)(y.A,null))):"",(0,P.Y)(p.Ay,{className:"hoverbig",title:b("${刷新}"),onClick:this.doRefresh},(0,P.Y)(m.A,null)),(0,P.Y)(K,{serverKey:i,dtmplConfig:f,code:n,onClose:this.onSnapshotClose,showSnapshot:this.toSnapshot,sourceId:o,open:g})))):null,(0,P.Y)(D,{codeSource:c,serverKey:i,refreshCode:w,showRightNav:x,rightBarPositionRight:r,dtmplConfig:f,sourceId:o,code:n}))}}]);var r}(f.PureComponent);(0,l.A)(H,"defaultProps",{showRightNav:!0,rightBarPositionRight:15,showHeader:!0}),(0,l.A)(H,"contextType",R.U);var z=H},69068:function(t,e,r){"use strict";r.d(e,{A:function(){return y}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(50828),s=r(96540),l=r(55957),f=r(74712),h=r(1026),p=r(17437);function d(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,v()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var y=function(t){function e(t){var r;return(0,n.A)(this,e),r=d(this,e,[t]),(0,u.A)(r,"context",void 0),(0,u.A)(r,"initViewList",(function(){var t=r.props,e=t.fields,n=t.valueMap,o=t.serverKey,a=r.context.translate,i=[];return e.length>0&&e.forEach((function(t,e){t.title;var r=n?n[t.id]:void 0;if(r=r||(t.defaultValue?t.defaultValue:void 0),t.id,Math.random(),"hidden"!=t.extControlType&&!t.hidden){var c=(0,p.Y)(l.A.Item,{label:a("${"+t.title+"}"),span:t.colNum,key:e,className:"labelcss"},(0,p.Y)(f.A,{serverKey:o,holderType:"descriptions",value:r,fieldConfig:t}));i.push(c)}})),i})),r.state={fileList:[]},r}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){return(0,p.Y)(l.A,{column:2},this.initViewList())}}])}(s.PureComponent);(0,u.A)(y,"contextType",h.U)},22733:function(t,e,r){"use strict";r.d(e,{A:function(){return w}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(50828),s=r(96540),l=r(37187),f=r(45038),h=r(89467),p=r(76390),d=r(35880),v=r(1026),y=r(17437);function m(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,g()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var w=function(t){function e(){var t;(0,n.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=m(this,e,[].concat(o)),(0,u.A)(t,"context",void 0),t}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){var t=this.props,e=t.code,r=t.sourceId,n=t.serverKey,o=t.open,a=t.onCancel,i=t.height,c=this.context.translate;return(0,y.Y)(l.A,{open:o,title:c("${查看}"),width:"82vw",centered:!0,wrapClassName:"aaa",bodyStyle:{height:i,overflow:"auto"},onCancel:a,footer:[(0,y.Y)(f.Ay,{key:"back",onClick:a},c("${取消}"))]},(0,y.Y)(d.Ay,{autoHide:!0,autoHideTimeout:1e3},e?(0,y.Y)(p.A,{serverKey:n,showRightNav:!1,sourceId:r,code:e}):""))}}])}(s.PureComponent);(0,u.A)(w,"defaultProps",{showConfirm:!0,height:500,forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},cancelText:"取消",form:h.A.useForm}),(0,u.A)(w,"state",{viewOrEdit:"view"}),(0,u.A)(w,"contextType",v.U)},11733:function(t,e,r){"use strict";var n=r(65425),o=r(33227),a=r(96540),i=r(39356),c=r(89467),u=r(45038),s=r(36492),l=r(47152),f=r(16370),h=r(28392),p=r(677),d=r(16044),v=r(97135),y=r(22503),m=r(1490),g=r(94300),w=r(17437),b=i.A.Panel,A=c.A.Item,x=function(t){var e=(0,g.Y)().translate,r=t.ltmplConfig,x=t.doSearch,k=t.doAction,L=t.doJump,E=t.doDelete,C=t.selectedRows,O=t.data,S=t.open,Y=(t.loading,t.selectedDatas),j=t.doCQuery,P=t.serverKey,I=c.A.useForm(),T=(0,o.A)(I,1)[0],N=r.buttons,_=r.actions,D=r.jumps,R=r.cQuerys,F=r.criterias,G=r.drillingParams,$=r.columns,M={};(0,a.useEffect)((function(){T.resetFields()}));var K=N.includes("query")&&x,B=N.includes("batchDelete")&&E,q=!(C&&C.length>0),V=function(r){if(r){var n=t.hiddenCriteriaIds,o=t.serverKey;return r.map((function(t){var e="c_"+t.id,r=O?O[e]:void 0;M[e]=r})),x?r.map((function(r){var a="c_"+r.id,i=O?O[a]:void 0;if(!n.includes(r.id))return(0,w.Y)(A,{label:e("${"+r.title+"}"),name:a,key:r.id,tooltip:r.tip,rules:r.required?[{required:!0,message:e("${请选择}"+r.title)}]:void 0},(0,w.Y)(v.A,{serverKey:o,mainCode:t.mainCode,value:i,fieldConfig:r}))})):void 0}};return(0,w.Y)(c.A,{form:T,name:"control-hooks",initialValues:M,layout:"inline",onFinish:function(t){x&&x(t)},style:{width:"100%"}},N.includes("drilling")&&S&&(G.length>0||($.forEach((function(t){if("dimension"==t.statColType)return!0})),0))?(0,w.Y)(i.A,{style:{width:"100%"},defaultActiveKey:["1"]},(0,w.Y)(b,{header:e("设置-数据上钻"),key:"1"},(0,w.Y)(l.A,null,(0,w.Y)(f.A,null,(0,w.Y)(h.A,{size:"small",wrap:!0},V(G),function(){var t="drillingColIds",r=[],o=[];$.forEach((function(t){"dimension"==t.statColType&&(o.push({label:t.title,value:t.id}),r.push(t.id))})),o.push({label:e("${无}"),value:"5"}),M[t]=O&&O[t]?O[t]:r;var a=O?O[t]:r,i={placeholder:e("${请选择}${维度}"),disabled:!1,value:a,style:{minWidth:220,width:"100%"}};return(0,w.Y)(A,{label:e("${维度}"),name:t,key:t,rules:[{required:!0,message:e("${请选择维度,上钻到顶层请只选[无]}")}]},(0,w.Y)(s.A,(0,n.A)({mode:"multiple"},i,{notFoundContent:e("${暂无选项}"),allowClear:!0,showSearch:!0,showArrow:!0,options:o})))}()))))):"",(0,w.Y)(p.A,{className:"hoverable",style:{display:S?"block":"none",width:"100%"},headStyle:{background:"#f2f4f5"}},(0,w.Y)(l.A,null,(0,w.Y)(f.A,null,(0,w.Y)(h.A,{size:"small",wrap:!0},K?V(F):null,(0,w.Y)(h.A,{className:"btns"},K?(0,w.Y)(u.Ay,{type:"primary",htmlType:"submit"},e("${查询}")):"",B?(0,w.Y)(d.A,{placement:"rightBottom",title:e("${确定要[删除]选中数据吗}?"),onConfirm:function(){E()},okText:e("${确定}"),cancelText:e("${取消}"),okType:"danger"},(0,w.Y)(u.Ay,{danger:!0,disabled:q},e("${删除选中}"))):"",function(){if(k&&_&&_.length>0)return _.map((function(t){var e=!0;return C&&(C.length>0&&t.multible||1==C.length)&&(e=!1),(0,w.Y)(y.A,{serverKey:P,hiddenType:"disabled",key:t.id,disabled:e,data:Y,actionConfig:t,doAction:k,serial:1})}))}(),function(){if(L&&D&&D.length>0)return D.map((function(t){var e=!0;return C&&1==C.length&&(e=!1),(0,w.Y)(u.Ay,{key:t.id,onClick:function(){return L(t)},disabled:e},t.title)}))}(),function(){var e=t.serverKey;if(j&&R&&R.length>0)return R.map((function(t){var r=!0;return C&&1==C.length&&(r=!1),(0,w.Y)(m.A,{serverKey:e,key:t.id,disabled:r,cQueryConfig:t,mainCode:r?void 0:C[0].code})}))}()))))))};x.defaultProps={hiddenCriteriaIds:[],open:!0},e.A=x},70870:function(t,e,r){"use strict";r.d(e,{A:function(){return K}});var n=r(42455),o=r(17636),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(69036),p=r(89467),d=r(677),v=r(15039),y=r(45038),m=r(92749),g=r(43455),w=r(80581),b=r(69068),A=r(73729),x=r(13050),k=r(51864),L=r(84957),E=r(46704),C=r(8130),O=r(17437);function S(){S=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Y(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,j()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(j=function(){return!!t})()}var P=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=Y(this,e,[].concat(n)),(0,l.A)(t,"formRef",f.createRef()),(0,l.A)(t,"state",{id:"EmbedDtmplEditPage"+C.A.getRandomNum(6),dtmplConfig:void 0,loading:!0,dtmplData:void 0}),(0,l.A)(t,"doSubmit",(function(e){var r=t.props.mainCode;t.formRef.current.setFieldsValue({actionId:e}),r&&t.formRef.current.setFieldsValue({mainCode:r}),t.formRef.current.submit()})),(0,l.A)(t,"loadConfigData",(0,o.A)(S().mark((function e(){var r,n,o,a,i,c;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.code,o=r.sourceId,a=r.serverKey,r.group,i=r.addTmplId,t.setState({loading:!0}),c=void 0,!n){e.next=9;break}return e.next=6,E.A.requestDtmplConfig(a,o,n);case 6:c=e.sent,e.next=12;break;case 9:return e.next=11,E.A.requestAddDtmplConfig(a,o,i);case 11:c=e.sent;case 12:return e.next=14,t.loadData(c);case 14:t.setState({dtmplConfig:c,loading:!1});case 15:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"loadData",function(){var e=(0,o.A)(S().mark((function e(r){var n,o,a,i,c,u,s,l;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,o=n.sourceId,a=n.code,i=n.defaultDtmplData,c=n.serverKey,u=n.codeSource,(s=a)||!u){e.next=6;break}return e.next=5,m.A.queryCode(o,u,c);case 5:s=e.sent;case 6:if(!s){e.next=14;break}return t.setState({loading:!0}),e.next=10,m.A.getDtmplData(r,c,o,s);case 10:l=e.sent,t.setState({dtmplData:l,id:s,loading:!1}),e.next=15;break;case 14:i?t.setState({dtmplData:i,loading:!1}):t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(r=(0,o.A)(S().mark((function t(){return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadConfigData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var t=this.props,e=t.sourceId,r=t.serverKey,n=t.mainCode,o=t.onFinish,a=this.state,i=a.dtmplConfig,c=a.id,u=a.dtmplData;return(0,O.Y)(K,{serverKey:r,mainCode:n,parentId:c,dtmplConfig:i,formRef:this.formRef,onFinish:o,sourceId:e,dtmplData:u})}}]);var r}(f.PureComponent);(0,l.A)(P,"defaultProps",{});var I=r(46935),T=r(78229),N=r(45705),_=r(1026);function D(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return R(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function G(){G=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function $(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,M()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function M(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(M=function(){return!!t})()}var K=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=$(this,e,[].concat(n)),(0,l.A)(t,"fuseMode",!1),(0,l.A)(t,"premisestitle","默认字段"),(0,l.A)(t,"context",void 0),(0,l.A)(t,"state",{loading:!0,currentDtmplData:void 0,appDtmplConfig:void 0,embedForm:{},embedRefValue:{}}),(0,l.A)(t,"loadData",(0,o.A)(G().mark((function e(){var r,n,o,a,i,c,u,s,l;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,a=r.formRef,i=r.dtmplData,c=r.dtmplConfig,u=r.serverKey,!o){e.next=8;break}return t.setState({loading:!0}),e.next=5,m.A.requestDtmplData(u,n,o,null);case 5:s=e.sent,e.next=9;break;case 8:s=i||{code:void 0,title:void 0,fieldMap:{},arrayMap:{}};case 9:l=k.vr.getAppDtmplConfig(c,i,t.props),t.setState({appDtmplConfig:l,currentDtmplData:s,loading:!1,embedRefValue:{}}),setTimeout((function(){return a.current?a.current.resetFields():void 0}),200);case 12:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"doRefresh",(0,o.A)(G().mark((function e(){var r;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.loadData();case 2:r=t.context.translate,h.Ay.info(r("${已刷新}!"));case 4:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"onGroupChange",(function(e,r){var n=t.state.currentDtmplData;n.arrayMap[e.id]=r;var o=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach((function(e){(0,l.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},n);t.setState({currentDtmplData:o})})),(0,l.A)(t,"changeFuseMode",(function(e){t.fuseMode=!e})),(0,l.A)(t,"postForm",function(){var e=(0,o.A)(G().mark((function e(r){var n,o,a,i,c,u;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),n=t.props,o=n.sourceId,a=n.code,i=n.dtmplData,c=n.serverKey,a?r["唯一编码"]=a:i&&i.code&&(r["唯一编码"]=i.code),e.next=5,m.A.postDtmplData(c,o,r,h.Ay);case 5:u=e.sent,t.setState({loading:!1}),"success"===u.status&&t.props.onFinish(u.code);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,l.A)(t,"onSubmit",function(){var e=(0,o.A)(G().mark((function e(r){var n,o,a,i,c,u,s,l,f,h,p;return G().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.props.dtmplConfig,o=t.state,a=o.currentDtmplData,i=o.appDtmplConfig,c=o.embedForm,u=o.embedRefValue,s=r,l=D(n.groups),e.prev=5,h=G().mark((function t(){var e,r,n;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("embed"!=(e=f.value).type||"列表"==e.embedType){t.next=11;break}if(u[e.id]){t.next=7;break}return c[e.id].current.doSubmit(),t.abrupt("return",{v:void 0});case 7:r=T.A.getFieldId(i,e.codeSourceFieldMstrucId),s[r]=u[e.id];case 9:t.next=12;break;case 11:"relation"!=e.type||e.readOnly||(s["".concat(e.id,".$$flag$$")]=!0,(n=a.arrayMap[e.id])&&n.forEach((function(t,r){if(s["".concat(e.id,"[").concat(r,"].$$relation$$")]=t.relationLabel,t.editStatus&&"new"==t.editStatus){var n,o=D(e.fields);try{for(o.s();!(n=o.n()).done;){var a=n.value;s["".concat(e.id,"[").concat(r,"].").concat(a.id)]=t.fieldMap[a.id]}}catch(t){o.e(t)}finally{o.f()}}else if(t.editStatus&&"changed"==t.editStatus){s["".concat(e.id,"[").concat(r,"].唯一编码")]=t.code;var i,c=D(e.fields);try{for(c.s();!(i=c.n()).done;){var u=i.value;s["".concat(e.id,"[").concat(r,"].").concat(u.id)]=t.fieldMap[u.id]}}catch(t){c.e(t)}finally{c.f()}}else s["".concat(e.id,"[").concat(r,"].唯一编码")]=t.code})));case 12:case"end":return t.stop()}}),t)})),l.s();case 8:if((f=l.n()).done){e.next=15;break}return e.delegateYield(h(),"t0",10);case 10:if(!(p=e.t0)){e.next=13;break}return e.abrupt("return",p.v);case 13:e.next=8;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(5),l.e(e.t1);case 20:return e.prev=20,l.f(),e.finish(20);case 23:return e.next=25,t.postForm(s);case 25:e.sent;case 26:case"end":return e.stop()}}),e,null,[[5,17,20,23]])})));return function(t){return e.apply(this,arguments)}}()),(0,l.A)(t,"onEmbedPageFinish",(function(e,r){t.state.embedRefValue[e.id]=r,t.props.formRef.current.submit()})),(0,l.A)(t,"addHiddenItem",(function(t){if(t)return t.map((function(t){return(0,O.Y)(p.A.Item,{hidden:!0,name:t.id,initialValue:t.value})}))})),(0,l.A)(t,"fieldGroupList",(function(e,r){var n=t.props,o=n.parentId,a=n.maxColsOnRow,i=n.mainCode,c=n.formRef,u=n.serverKey,s=n.showRightNav,l=t.state,h=l.loading,p=l.embedForm,v=[];return e&&(v=e.groups),v.map((function(n){if("embed"==n.type){var l=void 0,v=T.A.getFieldValueCodeOfMstrucId(e,r.fieldMap,n.codeSourceFieldMstrucId),y=T.A.getFieldValueCodeOfMstrucId(e,r.fieldMap,n.pageSourceFieldMstrucId);if(!(y=y||n.pointSourceId))return null;if("列表"==n.embedType)return(0,O.Y)(d.A,{bodyStyle:{padding:0},bordered:!1,style:{width:s?"90%":"100%"}},(0,O.Y)(I.A,{serverKey:null,collapsible:!0,initCollapse:!1,title:n.title,mainCode:i,funcMode:"common",sourceId:y}));if("详情"==n.embedType)return l="listop",(0,O.Y)(x.A,{showRightNav:s,tip:n.tip,title:n.title,key:n.id,id:o+n.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:h,bodyStyle:{padding:"6px"}},(0,O.Y)(N.A,{showHeader:!1,codeSource:l,code:v,sourceId:y})," ");switch(p[n.id]=f.createRef(),n.embedType){case"编辑":l="listop";break;case"编辑或添加":l="new"}return(0,O.Y)(x.A,{showRightNav:s,tip:n.tip,title:n.title,key:n.id,id:o+n.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:h,bodyStyle:{padding:"6px"}},(0,O.Y)(P,{ref:p[n.id],onFinish:function(e){t.onEmbedPageFinish(n,e)},codeSource:l,code:v,sourceId:y})," ")}if("relation"!=n.type)return(0,O.Y)(x.A,{showRightNav:s,tip:n.tip,title:n.title,key:n.id,id:o+n.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:h,bodyStyle:{padding:"6px"}},(0,O.Y)(g.A,{serverKey:u,formRef:c,mainCode:i,maxColsOnRow:a,fields:n?n.fields:void 0,valueMap:r?r.fieldMap:void 0}));if(n.fields){var m=void 0;return r&&(m=r.arrayMap[n.id]),(0,O.Y)(A.A,{showRightNav:s,serverKey:u,mainCode:i||o,loading:h,parentId:o,key:n.id,fieldGroupConfig:n,value:m,viewOrEdit:n.readOnly?"view":"edit",onChange:t.onGroupChange})}}))})),(0,l.A)(t,"onValuesChange",(function(e,r){var n=t.props,o=n.onValuesChange,a=n.formRef,i=n.code,c=t.state,u=c.appDtmplConfig,s=c.currentDtmplData;u.onValuesChange&&u.onValuesChange(e,{code:i,fieldMap:r,arrayMap:s.arrayMap},a.current),o&&o()})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(n=(0,o.A)(G().mark((function t(){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,o.A)(G().mark((function t(e){var r;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.props).code,r.formRef,e.code,e==this.props){t.next=5;break}return t.next=5,this.loadData();case 5:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.formRef,r=t.dtmplConfig,n=t.code,o=t.parentId,a=t.showHeader,i=t.serverKey,c=this.state,u=c.currentDtmplData,s=c.appDtmplConfig,l=this.context.translate;if(!r)return(0,O.Y)(d.A,{loading:!0},l("${加载中}"),"... ...");var h=s||{buttons:void 0,premises:void 0},m=h.buttons,g=h.premises;return(0,O.Y)(f.Fragment,null,a?(0,O.Y)(d.A,{bordered:!1,key:"detailTitle",className:"hoverable pageHeader"},(0,O.Y)("h3",null,n||u&&u.code?l("[${编辑}]"):l("[${新增}]"),r?(0,O.Y)(L.A,{content:r.tip}):null,(0,O.Y)("div",{className:"fr"},m&&m.includes("fusionMode")?(0,O.Y)(v.A,{checkedChildren:l("${开}"),unCheckedChildren:l("${关}"),style:{marginRight:10},title:l("${融合模式}"),onChange:this.changeFuseMode}):"",(0,O.Y)(y.Ay,{className:"hoverbig",title:l("${刷新}"),onClick:this.doRefresh},(0,O.Y)(w.A,null))))):null,(0,O.Y)(p.A,{scrollToFirstError:!0,labelWrap:!0,ref:e,name:"control-hooks",onValuesChange:this.onValuesChange,onFinish:this.onSubmit},(0,O.Y)(p.A.Item,{hidden:!0,name:"actionId"}),(0,O.Y)(p.A.Item,{hidden:!0,name:"mainCode"}),this.addHiddenItem(r.hiddenFields),this.fieldGroupList(s,u)),g&&g.length>0?(0,O.Y)(x.A,{title:this.premisestitle,key:this.premisestitle,id:o+g[0].id,className:"hoverable",headStyle:{background:"#f2f4f5"}},(0,O.Y)(b.A,{serverKey:i,fields:g})):"")}}]);var r,n}(f.PureComponent);(0,l.A)(K,"contextType",_.U),(0,l.A)(K,"defaultPorps",{maxCols:2,showHeader:!0,showRightNav:!1})},43455:function(t,e,r){"use strict";r.d(e,{A:function(){return A}});var n=r(42455),o=r(44274),a=r(2532),i=r(63549),c=r(91985),u=r(11504),s=r(50828),l=r(96540),f=r(89467),h=r(16370),p=r(47152),d=r(97135),v=r(8130),y=r(1026),m=r(17437);function g(t,e,r){return e=(0,c.A)(e),(0,i.A)(t,w()?Reflect.construct(e,r||[],(0,c.A)(t).constructor):e.apply(t,r))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var b=f.A.Item,A=function(t){function e(t){var r;return(0,o.A)(this,e),r=g(this,e,[t]),(0,s.A)(r,"context",void 0),(0,s.A)(r,"isPromise",(function(t){return!!t&&("object"===(0,n.A)(t)||"function"==typeof t)&&"function"==typeof t.then})),(0,s.A)(r,"getMainCode",(function(t,e){var n=r.props.formRef;return t.mainCode?"function"==typeof t.mainCode?t.mainCode(n.current):t.mainCode:e})),(0,s.A)(r,"getFieldConfig",(function(t){var e=r.props.formRef;return t.updateSelf?t.updateSelf(e.current):t})),(0,s.A)(r,"initFormItem",(function(t,e){var n=r.props,o=n.nameAttr,a=n.maxColsOnRow,i=n.mainCode,c=n.serverKey,u=r.context.translate,s=r.getFieldConfig(t),l=s.title;return(0,m.Y)(b,{label:u("${"+s.title+"}"),hidden:s.hidden,name:s[o],key:s.id,labelCol:1==a||1==s.colNum?{span:6}:{span:3},wrapperCol:1==a?{span:18}:1==s.colNum?{span:15}:{span:19},tooltip:s.tip,initialValue:e,style:{margin:4},rules:s.required?[{required:!0,message:u("${请输入}${"+l+"}")}]:void 0},(0,m.Y)(d.A,{serverKey:c,mainCode:r.getMainCode(s,i),value:e,fieldConfig:s}))})),(0,s.A)(r,"initFormList",(function(){var t=r.props,e=t.fields,n=t.valueMap,o=t.nameAttr,a=t.maxColsOnRow,i=t.mainCode,c=t.serverKey,u=[];e&&e.length>0&&e.forEach((function(t,e){var a=n?n[t.id]:void 0;t.id,Math.random(),a=a||0==a?a:t.defaultValue?v.A.configParamTrans(t.defaultValue):void 0;var s;s="hidden"==t.extControlType?(0,m.Y)(b,{hidden:!0,initialValue:a,name:t[o],key:t.id},(0,m.Y)(d.A,{serverKey:c,mainCode:r.getMainCode(t,i),value:a,fieldConfig:t})):t.shouldUpdate?(0,m.Y)(b,{noStyle:!0,shouldUpdate:t.shouldUpdate},(function(){return r.initFormItem(t,a)})):r.initFormItem(t,a),u.push(s)}));for(var s=[],l=0;l<u.length;l+=1){var f=e[l].colNum;"hidden"==e[l].extControlType?f=0:a&&1==a&&(f=2);var y=(0,m.Y)(h.A,{key:l,span:12*f},u[l]);s.push(y)}return(0,m.Y)(p.A,{gutter:[16,8],key:1},s)})),r.state={fileList:[]},r}return(0,u.A)(e,t),(0,a.A)(e,[{key:"render",value:function(){return this.initFormList()}}])}(l.PureComponent);(0,s.A)(A,"defaultProps",{nameAttr:"id",maxColsOnRow:2}),(0,s.A)(A,"contextType",y.U)},51864:function(t,e,r){"use strict";r.d(e,{L:function(){return Er},at:function(){return eo},L9:function(){return cn},F9:function(){return Wn.A},Q0:function(){return tr},rV:function(){return cr},O4:function(){return yo},Fj:function(){return o.A},YO:function(){return x.Y},$h:function(){return so},RW:function(){return vn},Hu:function(){return Ye},vr:function(){return n.A},n9:function(){return gr},Rm:function(){return zn},bs:function(){return xo.bs},Ym:function(){return pe.Y}});var n=r(8130),o=r(92749),a=r(42455),i=r(65425),c=r(38452),u=r(17636),s=r(44274),l=r(2532),f=r(63549),h=r(91985),p=r(11504),d=r(50828),v=r(96540),y=r(52120),m=r(45038),g=r(677),w=r(28392),b=r(8554),A=(r(71436),r(46704)),x=r(1026),k=r(17437),L=["title"];function E(){E=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function C(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return O(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Y()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Y=function(){return!!t})()}var j=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=S(this,e,[].concat(n)),(0,d.A)(t,"state",{l2Menus:void 0}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"intervals",[]),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(E().mark((function t(){var e,r,n,a,i=this;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A.A.fastMenu("QuickQueryBar");case 2:if(!(e=t.sent)){t.next=23;break}r=C(e),t.prev=5,a=E().mark((function t(){var e,r,a;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=n.value).disabled){t.next=3;break}return t.abrupt("return",1);case 3:if(1!=e.displayTotal){t.next=11;break}return r=setInterval((0,u.A)(E().mark((function t(){var r;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.A.requestLtmplCount(null,e.id);case 2:r=t.sent,e.count=r,i.setState({});case 5:case"end":return t.stop()}}),t)}))),18e4),i.intervals.push(r),t.next=8,o.A.requestLtmplCount(null,e.id);case 8:a=t.sent,e.count=a,i.setState({});case 11:case"end":return t.stop()}}),t)})),r.s();case 8:if((n=r.n()).done){t.next=14;break}return t.delegateYield(a(),"t0",10);case 10:if(!t.t0){t.next=12;break}return t.abrupt("continue",12);case 12:t.next=8;break;case 14:t.next=19;break;case 16:t.prev=16,t.t1=t.catch(5),r.e(t.t1);case 19:return t.prev=19,r.f(),t.finish(19);case 22:this.setState({l2Menus:e});case 23:case"end":return t.stop()}}),t,this,[[5,16,19,22]])}))),function(){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){if(this.intervals.length>0){var t,e=C(this.intervals);try{for(e.s();!(t=e.n()).done;){var r=t.value;clearInterval(r)}}catch(t){e.e(t)}finally{e.f()}}this.intervals=[]}},{key:"render",value:function(){var t=this.props,e=(t.title,(0,c.A)(t,L)),r=this.state.l2Menus,n=this.context.translate,o=[];return r&&r.forEach((function(t){if(t.disabled)return null;var e=(0,k.Y)(y.A,{key:t.id,count:t.count},(0,k.Y)(m.Ay,{shape:"round",icon:(0,k.Y)(b.A,null),href:"#/".concat(t.id,"/act-table?menuId=").concat(t.id),size:"large"},t.title));o.push(e)})),(0,k.Y)(g.A,(0,i.A)({size:"small"},e,{title:n("${快速访问}")}),(0,k.Y)(w.A,{size:[16,16],wrap:!0},o))}}]);var r}(v.PureComponent);(0,d.A)(j,"contextType",x.U);var P=j,I=r(6544),T=r(82626),N=["title"];function _(){_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function D(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return R(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function F(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,G()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function G(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(G=function(){return!!t})()}var $=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=F(this,e,[].concat(n)),(0,d.A)(t,"state",{l2Menus:void 0}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"intervals",[]),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(_().mark((function t(){var e,r,n,a,i=this;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A.A.fastMenu("QuickPanel");case 2:if(!(e=t.sent)){t.next=23;break}r=D(e),t.prev=5,a=_().mark((function t(){var e,r,a;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=n.value).disabled){t.next=3;break}return t.abrupt("return",1);case 3:return r=setInterval((0,u.A)(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.A.requestLtmplCount(null,e.id);case 2:r=t.sent,e.count=r,i.setState({});case 5:case"end":return t.stop()}}),t)}))),18e4),i.intervals.push(r),t.next=7,o.A.requestLtmplCount(null,e.id);case 7:a=t.sent,e.count=a,i.setState({});case 10:case"end":return t.stop()}}),t)})),r.s();case 8:if((n=r.n()).done){t.next=14;break}return t.delegateYield(a(),"t0",10);case 10:if(!t.t0){t.next=12;break}return t.abrupt("continue",12);case 12:t.next=8;break;case 14:t.next=19;break;case 16:t.prev=16,t.t1=t.catch(5),r.e(t.t1);case 19:return t.prev=19,r.f(),t.finish(19);case 22:this.setState({l2Menus:e});case 23:case"end":return t.stop()}}),t,this,[[5,16,19,22]])}))),function(){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){if(this.intervals.length>0){var t,e=D(this.intervals);try{for(e.s();!(t=e.n()).done;){var r=t.value;console.log("workbanch移除定时任务"),clearInterval(r)}}catch(t){e.e(t)}finally{e.f()}}this.intervals=[]}},{key:"render",value:function(){var t=this.props,e=t.title,r=(0,c.A)(t,N),n=this.state.l2Menus,o=this.context.translate,a=[];return n&&n.forEach((function(t){if(t.disabled)return null;var e=(0,k.Y)(g.A,{size:"small",key:t.id},(0,k.Y)(I.A,{prefix:(0,k.Y)(T.A,null),title:t.title,value:t.count}),(0,k.Y)(m.Ay,{style:{marginTop:12},href:"#/".concat(t.id,"/act-table?menuId=").concat(t.id)},o("${查看}")));a.push(e)})),(0,k.Y)(g.A,(0,i.A)({size:"small"},r,{title:e||o("${工作台}")}),(0,k.Y)(w.A,{size:[16,16],wrap:!0},a))}}]);var r}(v.PureComponent);(0,d.A)($,"contextType",x.U);var M=$,K=(r(59090),r(19612)),B=r(49);function q(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,V()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function V(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(V=function(){return!!t})()}var U=B.A.Footer,H=function(t){function e(){return(0,s.A)(this,e),q(this,e,arguments)}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){var t=this.props.content;return(0,k.Y)(U,{style:{textAlign:"center"}},(0,k.Y)("div",{className:"footer"},t||"Enterprise Applications ©2022 Created by 旷识科技"))}}])}(v.Component),z=r(5131),W=r(47152),Q=r(16370),J=r(76157),X=r(31201),Z=r(76945),tt=r(37977),et=r(84976);function rt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return nt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ot={getMenu:function(t,e){return t.l1Menus?this.toL1Menu(t.l1Menus,e,""):this.toSubMenu(t.items,e,"")},toL1Menu:function(t,e){var r,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=[];return t&&t.map((function(t){r={key:t.id};var i=t.l2Menus;i&&(r.label=t.title,r.children=n.toSubMenu(i,e,o)),a.push(r)})),a},toSubMenu:function(t,e){var r,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=[];return t&&t.map((function(t){r={key:t.id};var i=t.items;if(i)r.label=t.title,r.children=n.toSubMenu(i,e,o);else{var c=t;c.disabled?c.hiddenOnDisabled?r=null:(r.disabled=c.disabled,c.tip?r.label=(0,k.Y)(tt.A,{placement:"top",title:c.tip},c.title):r.label=c.title):r.label=n.toL2MenuTitle(c,e,o)}r&&a.push(r)})),a},getRoutePath:function(t,e,r){if(t){var n="act-table",o="";switch(t.pageType){case"列表":n="act-table";break;case"树":n="act-tree";break;case"添加":n="detail-edit",o="&codeSource=new";break;case"编辑":n="detail-edit",o="&codeSource=listop";break;case"编辑或添加":n="detail-edit",o="&codeSource=listop-new";break;case"详情":n="detail-view",o="&codeSource=listop"}return"".concat(e,"/").concat(t.id,"/").concat(n,"?menuId=").concat(t.id).concat(o).concat(r)}return null},toL2MenuTitle:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t)return null;var o="/",a=t.customPath;a&&(a.startsWith("/")||a.startsWith("\\"))&&(o="");var i="";t.defaultCriteriaValue&&(i="&"+n.A.transQueryParamsToStr(t.defaultCriteriaValue));var c=a?"".concat(r,"/page/").concat(t.id).concat(o).concat(a,"?menuId=").concat(t.id):this.getRoutePath(t,r,i);return(0,k.Y)(et.k2,{to:c,target:e},t.title)},findOpenId:function(t,e){var r=void 0;if(t.l1Menus){var n,o=rt(t.l1Menus);try{for(o.s();!(n=o.n()).done;){var a,i=n.value,c=rt(i.l2Menus);try{for(c.s();!(a=c.n()).done;)if(a.value.id==e)return r=i.id}catch(t){c.e(t)}finally{c.f()}}}catch(t){o.e(t)}finally{o.f()}}else{var u,s=rt(t.items);try{for(s.s();!(u=s.n()).done;){var l=u.value;if(l.items){var f,h=rt(l.items);try{for(h.s();!(f=h.n()).done;)if(f.value.id==e)return r=l.id}catch(t){h.e(t)}finally{h.f()}}else if(l.id==e)return r=l.id}}catch(t){s.e(t)}finally{s.f()}}return r}};function at(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return it(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?it(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function it(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ct(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,ut()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function ut(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ut=function(){return!!t})()}var st=function(t){function e(t){var r;return(0,s.A)(this,e),r=ct(this,e,[t]),(0,d.A)(r,"context",void 0),(0,d.A)(r,"getSubMenu",(function(t){return ot.getMenu(t,null)})),(0,d.A)(r,"findBlockId",(function(t,e){var r,n=void 0,o=at(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.l1Menus){var i,c=at(a.l1Menus);try{for(c.s();!(i=c.n()).done;){var u,s=at(i.value.l2Menus);try{for(s.s();!(u=s.n()).done;)if(u.value.id===e)return n=a.id}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}}else{var l,f=at(a.items);try{for(f.s();!(l=f.n()).done;){var h,p=at(l.value.items);try{for(p.s();!(h=p.n()).done;)if(h.value.id===e)return n=a.id}catch(t){p.e(t)}finally{p.f()}}}catch(t){f.e(t)}finally{f.f()}}}}catch(t){o.e(t)}finally{o.f()}return n})),r}return(0,p.A)(e,t),(0,l.A)(e,[{key:"computedBlocks",get:function(){var t=this.context.translate,e=JSON.parse(JSON.stringify(this.props.blocks));return e&&Array.isArray(e)&&e.forEach((function(e){e.title=t("${"+e.title+"}");var r=e.items;r&&Array.isArray(r)&&r.forEach((function(e){e.title=t("${"+e.title+"}")}))})),e}},{key:"menuItems",get:function(){var t=this,e=this.computedBlocks,r=[];return e.forEach((function(e){var n={className:"menu-item",label:e.title,key:e.id,children:t.getSubMenu(e)};r.push(n)})),r}},{key:"render",value:function(){var t=this.props,e=t.currentBlockId,r=t.blocks,n=t.currentL2MenuId;if(t.activeColor,!r||r.length<1)return(0,k.Y)(v.Fragment,null);var o=e;return n&&!o&&(o=this.findBlockId(r,n)),o||(o=r.at(0).id),(0,k.Y)(Z.A,{mode:"horizontal",defaultSelectedKeys:[e,n],items:this.menuItems,style:{flex:1,minWidth:0}})}}])}(v.PureComponent);(0,d.A)(st,"contextType",x.U);var lt=st,ft=r(34267),ht=r(40562);function pt(){pt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function dt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return vt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yt(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,mt()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mt=function(){return!!t})()}var gt=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=yt(this,e,[].concat(o)),(0,d.A)(t,"state",{messageBars:void 0,anyState:!1}),(0,d.A)(t,"renderMessageBar",(function(e){var r=t.props.backgroudColor,o=0,a={"--message-bar-backgroupd":r},i=(0,k.Y)(Z.A,{key:1},e.map((function(t,e){t.count&&(o+=t.count);var r="";return t.l2Menu.defaultCriteriaValue&&(r="&"+n.A.transQueryParamsToStr(t.l2Menu.defaultCriteriaValue)),(0,k.Y)(Z.A.Item,{key:e},(0,k.Y)(et.k2,{to:"/".concat(t.l2Menu.id,"/act-table?menuId=").concat(t.l2Menu.id).concat(r)},t.l2Menu.title,(0,k.Y)(y.A,{count:t.count,overflowCount:99,offset:[2,-2],size:"small"})))})));if(e&&0!=e.length){if(1==e.length){var c=e[0],u=c.l2Menu,s="";return u.defaultCriteriaValue&&(s="&"+n.A.transQueryParamsToStr(u.defaultCriteriaValue)),(0,k.Y)("div",{className:"message-bar",style:a},(0,k.Y)("a",{href:u.customPath?"/page/".concat(u.id).concat(u.customPath,"?menuId=").concat(u.id):"#/".concat(u.id,"/act-table?menuId=").concat(u.id).concat(s),className:"head-example"},(0,k.Y)(y.A,{count:c.count,overflowCount:99,offset:[8,-2]},(0,k.Y)("span",{style:{fontSize:"20px",color:"#08c"}},(0,k.Y)(ht.A,null)))))}return(0,k.Y)(ft.A,{overlay:i,placement:"bottomCenter"},(0,k.Y)("div",{className:"message-bar",style:a},(0,k.Y)(y.A,{count:o,overflowCount:99,offset:[8,-2]},(0,k.Y)("span",{style:{fontSize:"20px",color:"#08c"}},(0,k.Y)(ht.A,null)))))}})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(pt().mark((function t(){var e,r,n,a,i,c=this;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A.A.fastMenu("MessageBar");case 2:if(e=t.sent,r=[],!e){t.next=23;break}n=dt(e),t.prev=6,i=pt().mark((function t(){var e,n,i;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=a.value).disabled){t.next=3;break}return t.abrupt("return",1);case 3:return n={l2Menu:e,count:0},setInterval((0,u.A)(pt().mark((function t(){var r;return pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.A.requestLtmplCount(null,e.id);case 2:r=t.sent,n.count=r,c.setState({anyState:!c.state.anyState});case 5:case"end":return t.stop()}}),t)}))),18e4),t.next=8,o.A.requestLtmplCount(null,e.id);case 8:i=t.sent,n.count=i,r.push(n);case 11:case"end":return t.stop()}}),t)})),n.s();case 9:if((a=n.n()).done){t.next=15;break}return t.delegateYield(i(),"t0",11);case 11:if(!t.t0){t.next=13;break}return t.abrupt("continue",13);case 13:t.next=9;break;case 15:t.next=20;break;case 17:t.prev=17,t.t1=t.catch(6),n.e(t.t1);case 20:return t.prev=20,n.f(),t.finish(20);case 23:this.setState({messageBars:r});case 24:case"end":return t.stop()}}),t,this,[[6,17,20,23]])}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.messageBars;return(0,k.Y)(v.Fragment,null,t?this.renderMessageBar(t):"")}}]);var r}(v.PureComponent);(0,d.A)(gt,"defaultProps",{backgroudColor:"#4a5f74"});var wt=gt,bt=r(1849),At=r(1372),xt=r(46935);function kt(){kt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Lt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Et(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Et(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ct(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Ot()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Ot(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ot=function(){return!!t})()}var St=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Ct(this,e,[].concat(n)),(0,d.A)(t,"state",{quickBars:void 0,anyState:!1,currentId:void 0,showDraw:!1}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"showDraw",(function(e){t.setState({currentId:e,showDraw:!0})})),(0,d.A)(t,"closeDrawer",(function(){t.setState({showDraw:!1})})),(0,d.A)(t,"renderQuickBar",(function(e){var r={"--message-bar-backgroupd":t.props.backgroudColor},n=(0,k.Y)(Z.A,{key:1},e.map((function(e,r){return e.count&&e.count,(0,k.Y)(Z.A.Item,{key:r},(0,k.Y)("span",{onClick:function(){return t.showDraw(e.l2Menu.id)}},e.l2Menu.title))})));if(e&&0!=e.length){if(1==e.length){var o=e[0];return o.l2Menu,(0,k.Y)("div",{className:"message-bar",style:r,onClick:function(){return t.showDraw(o.l2Menu.id)}},(0,k.Y)("span",{style:{fontSize:"20px",color:"#08c"}},(0,k.Y)(At.A,null)))}return(0,k.Y)(ft.A,{overlay:n,placement:"bottomCenter"},(0,k.Y)("div",{className:"message-bar",style:r},(0,k.Y)("span",{style:{fontSize:"20px",color:"#08c"}},(0,k.Y)(At.A,null))))}})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(kt().mark((function t(){var e,r,n,o,a,i;return kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A.A.fastMenu("QuickQueryBar");case 2:if(e=t.sent,r=[],!e){t.next=25;break}n=Lt(e),t.prev=6,n.s();case 8:if((o=n.n()).done){t.next=17;break}if(!(a=o.value).disabled){t.next=12;break}return t.abrupt("continue",15);case 12:i={l2Menu:a,count:0},r.push(i);case 15:t.next=8;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(6),n.e(t.t0);case 22:return t.prev=22,n.f(),t.finish(22);case 25:this.setState({quickBars:r});case 26:case"end":return t.stop()}}),t,this,[[6,19,22,25]])}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.quickBars,r=t.showDraw,n=t.currentId,o=this.context.translate;return(0,k.Y)(v.Fragment,null,e?this.renderQuickBar(e):"",(0,k.Y)(bt.A,{placement:"left",title:o("${快捷查询}"),closable:!0,mask:!1,onClose:this.closeDrawer,open:r,width:"calc(100% - 280px)",style:{maxWidth:1960},extra:(0,k.Y)(w.A,null,(0,k.Y)(m.Ay,{onClick:this.closeDrawer},"关闭"))},(0,k.Y)(xt.A,{serverKey:null,sourceId:n})))}}]);var r}(v.PureComponent);(0,d.A)(St,"defaultProps",{backgroudColor:"#4a5f74"}),(0,d.A)(St,"contextType",x.U);var Yt=St,jt=r(66647),Pt=r(74336),It=r(26555),Tt=r(87450),Nt=r(44920);function _t(){_t=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Dt(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Rt()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Rt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rt=function(){return!!t})()}var Ft=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Dt(this,e,[].concat(n)),(0,d.A)(t,"state",{showDraw:!1}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"showDraw",(function(){t.setState({showDraw:!0})})),(0,d.A)(t,"closeDrawer",(function(){t.setState({showDraw:!1})})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(_t().mark((function t(){return _t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.showDraw,e=this.props,r=e.gtmplSourceId,n=e.userCode,o=e.editable,a=this.context.translate;return(0,k.Y)(v.Fragment,null,n?(0,k.Y)(v.Fragment,null,(0,k.Y)("span",{onClick:this.showDraw},a("${个人信息}")),t?(0,k.Y)(Nt.A,{serverKey:null,editable:o,title:a("${个人信息}"),sourceId:r,open:t,code:n,onClose:this.closeDrawer}):null):null," ")}}]);var r}(v.PureComponent);(0,d.A)(Ft,"contextType",x.U),(0,d.A)(Ft,"defaultProps",{editable:!1});var Gt=Ft,$t=r(69036),Mt=r(89467),Kt=r(17355),Bt=r(28073),qt=r(75763);function Vt(){Vt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Ut(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Ht()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Ht(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ht=function(){return!!t})()}var zt=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=Ut(this,e,[].concat(n)),(0,d.A)(t,"state",{showPopover:!1,pubkey:void 0,loading:!1}),(0,d.A)(t,"formRef",v.createRef()),(0,d.A)(t,"context",void 0),(0,d.A)(t,"handleSubmit",function(){var e=(0,u.A)(Vt().mark((function e(r){var n,a,i;return Vt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.context.translate,t.setState({loading:!0}),a=t.state.pubkey,i=t.props.serverKey,e.next=6,o.A.resetPassword(i,r.oldPassword,r.newPassword,a);case 6:"success"==e.sent.status&&($t.Ay.info(n("${密码已重置,请重新登录}")),o.A.logout()),t.setState({loading:!1});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,d.A)(t,"handleBlurCapture",(function(){var e=t.context.translate,r=t.formRef.current.getFieldValue("newPassword"),n=t.formRef.current.getFieldValue("reNewPassword");r&&n&&r!=n?t.formRef.current.setFields([{name:"reNewPassword",value:n,errors:[e("${两次密码输入不一致}!")]}]):t.formRef.current.setFields([{name:"reNewPassword",value:n,errors:[]}])})),(0,d.A)(t,"getForm",(function(){var e=t.state.loading,r=t.context.translate;return(0,k.Y)(W.A,{justify:"center",align:"middle"},(0,k.Y)(Q.A,null,(0,k.Y)(Mt.A,{style:{width:350},ref:t.formRef,name:"normal_login",className:"login-form",onFinish:t.handleSubmit},(0,k.Y)(Mt.A.Item,{label:r("${原密码}"),name:"oldPassword",rules:[{required:!0,message:r("${请输入}${原密码}")}]},(0,k.Y)(Kt.A.Password,{placeholder:r("${密码}"),prefix:(0,k.Y)(qt.A,{className:"site-form-item-icon"})})),(0,k.Y)(Mt.A.Item,{label:r("${新设密码}"),name:"newPassword",rules:[{required:!0,message:r("${请输入}${新密码}!")}]},(0,k.Y)(Kt.A.Password,{placeholder:r("${新设密码}"),onBlurCapture:t.handleBlurCapture,prefix:(0,k.Y)(qt.A,{className:"site-form-item-icon"})})),(0,k.Y)(Mt.A.Item,{label:r("${确认密码}"),name:"reNewPassword",rules:[{required:!0,message:r("${请输入}${确认密码}")},function(t){var e=t.getFieldValue;return{validator:function(t,n){return n&&e("newPassword")!==n?Promise.reject(new Error(r("${两次密码输入不一致}!"))):Promise.resolve()}}}]},(0,k.Y)(Kt.A.Password,{placeholder:r("${确认密码}"),prefix:(0,k.Y)(qt.A,{className:"site-form-item-icon"})})),(0,k.Y)(Mt.A.Item,null,(0,k.Y)(W.A,{align:"middle",gutter:32},(0,k.Y)(Q.A,{span:12},(0,k.Y)(m.Ay,{style:{width:"100%"},type:"primary",loading:e,onClick:function(){return t.formRef.current.submit()}},r("${确定}"))),(0,k.Y)(Q.A,{span:12},(0,k.Y)(m.Ay,{style:{width:"100%"},onClick:function(){t.setState({showPopover:!1})}},r("${取消}"))))))))})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(Vt().mark((function t(){var e,r;return Vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props.serverKey,t.next=3,o.A.getRasPubkey(e);case 3:r=t.sent,this.setState({pubkey:r});case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.state,r=e.showPopover,n=(e.loading,this.context.translate);return(0,k.Y)(v.Fragment,null,(0,k.Y)(Bt.A,{destroyTooltipOnHide:!0,open:r,overlayStyle:{maxWidth:"400px"},title:n("${修改密码}"),placement:"leftBottom",trigger:"click",content:this.getForm()},(0,k.Y)("span",{onClick:function(){t.setState({showPopover:!r})}},n("${修改密码}"))))}}]);var r}(v.PureComponent);(0,d.A)(zt,"contextType",x.U);var Wt=zt;function Qt(){Qt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jt(Object(r),!0).forEach((function(e){(0,d.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zt(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,te()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(te=function(){return!!t})()}var ee=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Zt(this,e,[].concat(n)),(0,d.A)(t,"state",{id:void 0,name:void 0,roles:[],context:void 0,cleanCachable:!1,gtmplSourceId:void 0,changePasswordable:void 0,changePersonalInfoable:void 0,viewPersonalInfoable:void 0}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"cleanCache",(function(){var e=t.state.roles,r=document.getElementById("ajaxLoading");r.style.display="block",A.A.reload(e),r.style.display="none"})),(0,d.A)(t,"getContext",(function(){var e=t.state.context,r=t.context.translate;return e?(console.log("context",e),(0,k.Y)(v.Fragment,null,e.map((function(t){return(0,k.Y)(W.A,null,(0,k.Y)(Q.A,null,t.label," : ",t.content))})))):r("${无}")})),(0,d.A)(t,"toSetContext",(function(){window.location.hash="#/context-setter"})),(0,d.A)(t,"getTitle",(function(){var e=t.state,r=e.name,n=e.context;return(0,k.Y)(v.Fragment,null,(0,k.Y)("p",null,r),n?n.map((function(t){return(0,k.Y)("p",null,t.label," : ",t.content)})):null)})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(Qt().mark((function t(){var e,r;return Qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.A.getUser();case 2:return e=t.sent,t.next=5,o.A.getContextSourceValue();case 5:r=t.sent,this.setState(Xt({context:r},e));case 7:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.backgroudColor,r=t.showUserInfo,n=t.showChangePassword,a=t.menu,i=this.state,c=i.name,u=i.context,s=i.cleanCachable,l=i.gtmplSourceId,f=i.changePasswordable,h=i.changePersonalInfoable,p=i.viewPersonalInfoable,d=i.id,y=this.context,m=y.translate,g=y.changeLocale,w={"--message-bar-backgroupd":e},b=[];return b.push({key:"locale",label:m("${切换语言}"),children:[{label:(0,k.Y)("span",{onClick:function(){return g("zh")}},"中文"),key:"locale-zh"},{label:(0,k.Y)("span",{onClick:function(){return g("fr")}},"fr"),key:"locale-fr"}]}),c?(r&&p&&b.push({key:"1",label:(0,k.Y)(Gt,{gtmplSourceId:l,editable:h,userCode:d})}),u&&u.length>0&&b.push({key:"2",label:(0,k.Y)("span",{onClick:this.toSetContext},m("${全局配置}"))}),n&&f&&b.push({key:"3",label:(0,k.Y)(Wt,null)}),s&&b.push({key:"4",label:(0,k.Y)("span",{onClick:this.cleanCache},m("${清空缓存}"))}),b.push({key:"5",label:(0,k.Y)("span",{onClick:o.A.logout},(0,k.Y)(Pt.A,null)," ",m("${退出}"))})):b.push({key:"2",label:(0,k.Y)("span",{onClick:o.A.logout},(0,k.Y)(It.A,null)," ",m("${登录}"))}),(0,k.Y)(v.Fragment,null,(0,k.Y)(ft.A,{menu:a||{items:b},placement:"bottom",trigger:["click"]},(0,k.Y)("div",{className:"userLogin",style:w},(0,k.Y)(tt.A,{placement:"left",title:this.getTitle()},(0,k.Y)(jt.A,{className:"loginAvatar",icon:(0,k.Y)(Tt.A,null),size:"large"})))))}}]);var r}(v.PureComponent);(0,d.A)(ee,"contextType",x.U),(0,d.A)(ee,"defaultProps",{backgroudColor:"#4a5f74",showUserInfo:!0,showChangePassword:!0});var re=ee,ne=B.A.Header,oe=z.A.useToken,ae=function(t){var e=oe().token,r=t.collapsed,n={"--antd-color-primary":e.colorPrimary};return(0,k.Y)(ne,{style:{padding:0,height:"auto",minWidth:"1000px"}},(0,k.Y)(W.A,{className:"header-top",style:n,wrap:!1},(0,k.Y)(Q.A,{span:20,className:"header-col"},(0,k.Y)("div",{style:{float:"left"}},v.createElement(r?J.A:X.A,{className:"trigger",onClick:function(){t.toggle()}})),(0,k.Y)(lt,(0,i.A)({},t,{activeColor:e.colorPrimary}))),(0,k.Y)(Q.A,{span:1,style:{width:"100%"}},(0,k.Y)(Yt,{backgroudColor:e.colorPrimary})),(0,k.Y)(Q.A,{span:1,style:{width:"100%"}},(0,k.Y)(wt,{backgroudColor:e.colorPrimary})),(0,k.Y)(Q.A,{span:2},(0,k.Y)(re,{backgroudColor:e.colorPrimary}))))},ie=["blockMenu","collapsed","currentL2MenuId","basePath"];function ce(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,ue()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ue=function(){return!!t})()}var se=function(t){function e(t){var r;return(0,s.A)(this,e),r=ce(this,e,[t]),(0,d.A)(r,"context",void 0),(0,d.A)(r,"handleOpen",(function(t){t&&t.length>1&&t.splice(0,1),r.setState({openKeys:t})})),r.state={openKeys:[]},r}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.currentL2MenuId,r=t.blockMenu,n=(t.collapsed,this.state.openKeys),o=r?ot.findOpenId(r,e):void 0;o&&n.length<1&&this.setState({openKeys:[o.toString()]})}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.currentL2MenuId,n=e.blockMenu,o=(e.collapsed,t.currentL2MenuId),a=t.blockMenu;if(this.state.openKeys,a&&n&&n.id==a.id){var i=n?ot.findOpenId(n,r):void 0,c=n?ot.findOpenId(a,o):void 0;(!c&&i||i&&i!=c)&&this.setState({openKeys:[i]})}else{var u=n?ot.findOpenId(n,r):void 0;u&&this.setState({openKeys:[u]})}}},{key:"computedBlockMenu",get:function(){var t=this.context.translate,e=JSON.parse(JSON.stringify(this.props.blockMenu));return e&&Array.isArray(e.items)&&e.items.forEach((function(e){return e.title=t("${"+e.title+"}"),e})),e}},{key:"render",value:function(){var t=this.props,e=t.blockMenu,r=t.collapsed,n=t.currentL2MenuId,o=t.basePath,a=(0,c.A)(t,ie),u=this.state.openKeys;return(0,k.Y)(Z.A,(0,i.A)({},a,{onOpenChange:this.handleOpen,selectedKeys:n?[n.toString()]:void 0,openKeys:r?void 0:u,items:e?ot.getMenu(this.computedBlockMenu,void 0,o):[]}))}}])}(v.PureComponent);(0,d.A)(se,"contextType",x.U);var le=se,fe=r(35880),he=r(62070),pe=r(94300),de=z.A.useToken,ve=function(t){var e=(0,pe.Y)().translate,r={"--logo-blue-background":de().token.colorPrimary},o=t.collapsed;return(0,k.Y)("div",null,(0,k.Y)(fe.Ay,{style:{height:"calc(100vh)"},autoHide:!0,autoHideTimeout:1e3},(0,k.Y)("div",{className:o?"logonly":"logo-blue",style:r},(0,k.Y)("a",{href:"#/home"},o?t.logo?(0,k.Y)(he.A,{src:t.logo}):(0,k.Y)("h1",{style:{overflow:"hidden",height:"56px",paddingLeft:"-20px"}},"M"):(0,k.Y)(v.Fragment,null,(0,k.Y)("h1",{style:{overflow:"hidden",height:"56px",paddingLeft:"-20px"}},(0,k.Y)(v.Fragment,null,t.logo?(0,k.Y)(he.A,{width:"30px",src:t.logo}):(0,k.Y)(v.Fragment,null),e(t.title?t.title:n.A.programName_NavLeft())))))),(0,k.Y)(le,(0,i.A)({mode:"inline",theme:"light"},t))))},ye=r(38093),me=r.n(ye),ge=r(33227),we=r(47767),be=function(t){return function(e){var r=(0,we.zy)(),n=(0,we.Zp)(),o=(0,we.g)(),a=(0,et.ok)(),c=(0,ge.A)(a,2),u=c[0];return c[1],(0,k.Y)(t,(0,i.A)({},e,{location:r,navigate:n,params:o,searchParams:u}))}};function Ae(){Ae=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function xe(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ke(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ke(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Le(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Ee()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Ee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ee=function(){return!!t})()}var Ce=B.A.Content,Oe=B.A.Sider,Se=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=Le(this,e,[].concat(o)),(0,d.A)(t,"scrollbarRef",v.createRef()),(0,d.A)(t,"state",{collapsed:!1,blocks:[],currentL2MenuId:void 0,currentBlockId:void 0,isImporter:!1,sideBartitle:void 0}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"findBlockTitle",(function(e){var r,o=t.state.blocks;if(e){var a,i=xe(o);try{for(i.s();!(a=i.n()).done;){var c=a.value;if(c.id==e){r=c.title;break}}}catch(t){i.e(t)}finally{i.f()}}return(r?r+"-":"")+(n.A.programName()?n.A.programName():"HYDROCARBON")})),(0,d.A)(t,"findBlockIdOfL2Menu",(function(e){var r=void 0,n=t.state.blocks;if(e){var o,a=xe(n);try{for(a.s();!(o=a.n()).done;){var i=o.value;if(i.l1Menus){var c,u=xe(i.l1Menus);try{for(u.s();!(c=u.n()).done;){var s,l=xe(c.value.l2Menus);try{for(l.s();!(s=l.n()).done;)if(s.value.id==e){r=i.id;break}}catch(t){l.e(t)}finally{l.f()}}}catch(t){u.e(t)}finally{u.f()}}else{var f,h=xe(i.items);try{for(h.s();!(f=h.n()).done;){var p=f.value;if(p.items){var d,v=xe(p.items);try{for(v.s();!(d=v.n()).done;)if(d.value.id==e){r=i.id;break}}catch(t){v.e(t)}finally{v.f()}}else if(p.id==e){r=i.id;break}}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){a.e(t)}finally{a.f()}}return r})),(0,d.A)(t,"findCurrentBlock",(function(){var e=t.state,r=e.blocks,n=e.currentL2MenuId,o=e.currentBlockId,a=void 0;if(n){var i,c=xe(r);try{for(c.s();!(i=c.n()).done;){var u=i.value;if(u.l1Menus){var s,l=xe(u.l1Menus);try{for(l.s();!(s=l.n()).done;){var f,h=xe(s.value.l2Menus);try{for(h.s();!(f=h.n()).done;)if(f.value.id==n){a=u;break}}catch(t){h.e(t)}finally{h.f()}}}catch(t){l.e(t)}finally{l.f()}}else{var p,d=xe(u.items);try{for(d.s();!(p=d.n()).done;){var v=p.value;if(v.items){var y,m=xe(v.items);try{for(m.s();!(y=m.n()).done;)if(y.value.id==n){a=u;break}}catch(t){m.e(t)}finally{m.f()}}else if(v.id==n){a=u;break}}}catch(t){d.e(t)}finally{d.f()}}}}catch(t){c.e(t)}finally{c.f()}}if(o&&!a){var g,w=xe(r);try{for(w.s();!(g=w.n()).done;){var b=g.value;if(b.id===o){a=b;break}}}catch(t){w.e(t)}finally{w.f()}}return a||(a=r.at(0)),a})),(0,d.A)(t,"toggle",(function(){t.setState((function(e){return{collapsed:!t.state.collapsed}}))})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(o=(0,u.A)(Ae().mark((function t(){var e,r,n,o,a,i,c,u,s;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new URL(window.location.href),r=window.location.href.split("?")[1],n=new URLSearchParams("?"+r),o=n.get("blockId"),(a=n.get("menuId"))||(i=e.hash.match(/[\w]+\-[\d]+/))&&"menu"===(c=i[0].split("-"))[0]&&(a=c[1]),u=this.props.sideBartitle,t.next=9,A.A.requestBlocks(a||void 0,o||void 0);case 9:s=t.sent,this.setState((function(t){return{isImporter:e.hash.indexOf("/importer")>0,blocks:s&&s.blocks?s.blocks:[],currentL2MenuId:s?s.l2MenuId:null,currentBlockId:s?s.blockId:null,sideBartitle:u||(s?s.programName:null)}}));case 11:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,u.A)(Ae().mark((function t(e,r){var n,o,a,i,c,u,s,l,f,h,p;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new URL(window.location.href),o=window.location.href.split("?")[1],a=new URLSearchParams("?"+o),i=a.get("blockId"),c=a.get("menuId"),u=n.hash.indexOf("/importer")>0,r.isImporter!=u&&this.setState((function(t){return{isImporter:u}})),c||(s=n.hash.match(/[\w]+\-[\d]+/))&&"menu"===(l=s[0].split("-"))[0]&&(c=l[1]),f=this.state,h=f.currentL2MenuId,p=f.currentBlockId,c&&h!=c&&this.setState((function(t){return{currentL2MenuId:c}})),i||(i=this.findBlockIdOfL2Menu(c)),i&&p!=i&&this.setState((function(t){return{currentBlockId:i}}));case 12:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"render",value:function(){var t,e=this.props,r=e.footer,n=e.sideBarLogo,o=this.state,a=o.collapsed,c=o.currentL2MenuId,u=o.currentBlockId,s=o.isImporter,l=o.sideBartitle,f=this.context.translate;return null===(t=this.scrollbarRef)||void 0===t||null===(t=t.current)||void 0===t||t.scrollToTop(),(0,k.Y)(fe.Ay,{ref:this.scrollbarRef,style:{height:"calc(100vh)"},autoHide:!0,autoHideTimeout:1e3},(0,k.Y)(me(),{title:(s?f("${导入}-"):"")+this.findBlockTitle(u)},(0,k.Y)(B.A,null,(0,k.Y)(Oe,{theme:"light",style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0},collapsed:a},(0,k.Y)(ve,{title:f("${"+l+"}"),logo:n,blockMenu:this.findCurrentBlock(),currentL2MenuId:c,collapsed:a})),(0,k.Y)(B.A,{style:a?{background:"#fff",marginLeft:80}:{background:"#fff",marginLeft:200}},(0,k.Y)(ae,(0,i.A)({toggle:this.toggle},this.state)),(0,k.Y)(Ce,{style:{margin:"24px 16px 0",overflow:"initial",minHeight:"calc(100vh)",minWidth:760,maxWidth:1960,paddingBottom:"8px"}},this.props.children),(0,k.Y)(H,{content:r})))))}}]);var r,o}(v.PureComponent);(0,d.A)(Se,"contextType",x.U);var Ye=be(Se),je=r(21745),Pe=r(91196),Ie=r(57529),Te=r(7142),Ne=r(77829),_e=r(6754),De=r(42652),Re=r(80581),Fe=r(77028),Ge=r(40756),$e=r(78602);function Me(){Me=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Ke(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Be(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Be(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qe(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Ve()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Ve(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ve=function(){return!!t})()}var Ue=Pe.A.Group,He=["INFO","SUC","ERROR","WARN"],ze=Ie.A.Text,We=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=qe(this,e,[].concat(o)),(0,d.A)(t,"state",{maxMsgCount:100,inputMaxMsgCount:100,importStatus:"waitingFile",importFile:void 0,logs:[],percent:0,statusMsg:void 0,logSetterOpen:!1,showLogLevelList:[].concat(He),logSerialId:void 0,ltmplConfig:void 0}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"timerId",void 0),(0,d.A)(t,"handleUpload",(function(){var e=t.props,r=e.sourceId,n=e.serverKey,o=t.state.importFile,a=t.context.translate,i=new FormData;i.append("file",o),i.append("sourceId",r.toString()),K.A.super({url:"/v3/ltmpl/importer",serverKey:n,method:"POST",data:i},"formdata").then((function(e){"success"===e.status?(t.setState({importStatus:"importing"}),t.timerId=setInterval((function(){return t.handleStatus(e.importId)}),500)):($t.Ay.error(a("${失败}!")),t.setState({importStatus:"fail"}))}))})),(0,d.A)(t,"handleStopImport",(function(){t.setState({importStatus:"stop"})})),(0,d.A)(t,"handleStatus",(function(e){var r=t.props.serverKey,o=t.state,a=o.maxMsgCount,i=o.importStatus,c=o.logs,u=t.context.translate;K.A.super({url:"/v3/importer/status",serverKey:r,method:"GET",query:{importId:e,msgIndex:0,maxMsgCount:a,interrupted:"stop"==i}},"","none").then((function(e){var r=[];if("error"===e.status)clearInterval(t.timerId);else{if(e.messageSequence.messages){var o,s=Ke(e.messageSequence.messages);try{for(s.s();!(o=s.n()).done;){var l=o.value,f="",h="",p=n.A.formateDate(l.createTime);"SUC"===l.type?(f="green",h=u("${成功}")):"INFO"===l.type?(f="black",h=u("${常规}")):"ERROR"===l.type?(f="red",h=u("${错误}")):"WARN"===l.type&&(f="rgb(250, 225, 4)",h=u("${警告}"));var d=(0,k.Y)("div",null,(0,k.Y)("p",null,p),(0,k.Y)("p",{style:{color:f}},"【".concat(h,"】")+l.text));r.push({level:l.type,msg:d})}}catch(t){s.e(t)}finally{s.f()}}var v=Math.floor(e.current/e.totalCount*100);1==e.completed&&(t.timerId&&(clearInterval(t.timerId),t.timerId=void 0,$t.Ay.success(u("${导入完成}!")),t.setState({})),v=100),"stop"==i&&clearInterval(t.timerId);var y=[].concat((0,je.A)(c),r);y=y.length>a?y.slice(c.length-a):y,t.setState({statusMsg:e.message,percent:v,importStatus:100==v?"success":"importing",logs:y})}}))})),(0,d.A)(t,"onChangeShowLogLevelList",(function(e){t.setState({showLogLevelList:e})})),(0,d.A)(t,"fresh",(function(){})),(0,d.A)(t,"handleLogSetter",(function(){var e=t.state.inputMaxMsgCount,r=t.context.translate;t.setState({maxMsgCount:e,logSetterOpen:!1}),$t.Ay.success(r("${设置成功}!"))})),(0,d.A)(t,"changeLogSetterOpen",(function(e){t.setState({logSetterOpen:e})})),(0,d.A)(t,"download",(function(){var e=t.props,r=e.sourceId,o=e.serverKey,a=n.A.hydrocarbonToken();n.A.downloadFile(n.A.joinPath(n.A.api(o),"/v3/ltmpl/importer/template?sourceId=".concat(r,"&@token=").concat(a,"&@programToken=").concat(n.A.programCode(o))),"导入模板")})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(Me().mark((function t(){var e,r,n,o;return Me().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,r=e.sourceId,n=e.serverKey,t.next=3,A.A.requestLtmplConfig(n,r);case 3:o=t.sent,this.setState({ltmplConfig:o.ltmplConfig});case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.timerId&&clearInterval(this.timerId)}},{key:"render",value:function(){var t,e=this,r=this.state,n=r.ltmplConfig,o=r.importFile,a=r.maxMsgCount,i=r.percent,c=r.importStatus,u=r.showLogLevelList,s=r.logSetterOpen,l=[],f=Ke(r.logs);try{for(f.s();!(t=f.n()).done;){var h=t.value;u.includes(h.level)&&l.push(h.msg)}}catch(t){f.e(t)}finally{f.f()}var p={accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/vnd.ms-excel",onChange:function(){},onRemove:function(t){e.setState({importFile:void 0,importStatus:"waitingFile",percent:0})},beforeUpload:function(t){return e.setState({percent:0,importFile:t,importStatus:"fileSelected"}),!1},fileList:o?[o]:void 0},d=this.context.translate,v=(0,k.Y)("div",null,(0,k.Y)("label",null,d("${日志消息数上限}: ")),(0,k.Y)(Te.A,{defaultValue:a,onChange:function(t){return e.setState({inputMaxMsgCount:t})}}),(0,k.Y)(m.Ay,{type:"primary",style:{marginLeft:"10px"},onClick:this.handleLogSetter},d("${确定}: ")));return(0,k.Y)("div",{className:"importData"},(0,k.Y)("h3",null,d("${导入} -> "),n?n.title:"",(0,k.Y)("p",{className:"fr"},(0,k.Y)(m.Ay,{className:"hoverbig",title:d("${刷新}"),onClick:this.fresh},(0,k.Y)(Re.A,null)))),(0,k.Y)(W.A,null,(0,k.Y)(Q.A,{span:14,offset:5},(0,k.Y)(g.A,{size:"small",style:{minWidth:600}},(0,k.Y)(w.A,null,(0,k.Y)(Ne.A,p,(0,k.Y)(m.Ay,{type:"primary"},(0,k.Y)(Fe.A,null),d("${选择导入文件}"))),(0,k.Y)(m.Ay,{onClick:this.download},(0,k.Y)(Ge.A,null),d("${下载导入模板}"))),(0,k.Y)(_e.A,{percent:i,size:"small",status:"active"}),(0,k.Y)("div",{className:"importBtns"},(0,k.Y)(w.A,null,(0,k.Y)(m.Ay,{type:"primary",onClick:this.handleUpload,disabled:!["fileSelected","stop"].includes(c),loading:"importing"==c},d("importing"==c?"${正在导入}":"stop"==c?"${重新导入}":"${开始导入}")),(0,k.Y)(m.Ay,{onClick:this.handleStopImport,disabled:"importing"!=c},d("${停止导入}")))),(0,k.Y)(De.A,{header:(0,k.Y)("div",{className:"listHeader"},(0,k.Y)("h4",null,d("${导入日志}")),(0,k.Y)("div",{className:"checks"},(0,k.Y)(Ue,{value:u,onChange:this.onChangeShowLogLevelList},(0,k.Y)(Pe.A,{value:"INFO",className:"infoColor"},d("${常规}")),(0,k.Y)(Pe.A,{value:"SUC",className:"sucColor"},d("${成功}")),(0,k.Y)(Pe.A,{value:"ERROR",className:"errorColor"},d("${错误}")),(0,k.Y)(Pe.A,{value:"WARN",className:"warnColor"},d("${警告}"))),(0,k.Y)("div",{className:"btns"},(0,k.Y)(Bt.A,{content:v,title:d("${日志设置}"),trigger:"click",placement:"top",open:s,overlayStyle:{width:350},onOpenChange:this.changeLogSetterOpen},(0,k.Y)(m.Ay,{title:d("${日志设置}"),type:"primary",size:"small"},(0,k.Y)($e.A,null)))))),footer:(0,k.Y)(ze,{type:"fail"==c||"stop"==c?"danger":"success"},c),bordered:!0,dataSource:l,renderItem:function(t){return(0,k.Y)(De.A.Item,null,t)},className:"importList"})))))}}]);var r}(v.PureComponent);function Qe(){Qe=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Je(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Xe()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Xe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xe=function(){return!!t})()}(0,d.A)(We,"contextType",x.U);var Ze=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Je(this,e,[].concat(n)),(0,d.A)(t,"state",{}),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(r=(0,u.A)(Qe().mark((function t(){return Qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.params,r=t.serverKey,n=e.sourceId;return(0,k.Y)(We,{serverKey:r,sourceId:n})}}]);var r}(v.PureComponent),tr=be(Ze),er=r(88133);function rr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(r),!0).forEach((function(e){(0,d.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function or(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,ar()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function ar(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ar=function(){return!!t})()}var ir=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=or(this,e,[].concat(n)),(0,d.A)(t,"goBackToLtmpl",(function(){var e=t.props.match.params.sourceId,r=t.props.basePath,n="".concat(r?r+"/":"","/").concat(e,"/act-table?menuId=").concat(t.getMenuId()),o=t.getMainCode();o&&(n+="&mainCode=".concat(o)),t.props.navigate(n)})),(0,d.A)(t,"getMainCode",(function(){return t.props.searchParams.get("mainCode")})),(0,d.A)(t,"getMenuId",(function(){return t.props.searchParams.get("menuId")})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){var t=this.props.params.pageName,e=this.props.location.search,r=n.A.transQueryStrToParams(e),o=n.A.getCustomPage("/"+t)||er.A;return v.createElement(o,nr(nr({},this.props.params),{},{goBack:this.goBackToLtmpl},r))}}])}(v.PureComponent),cr=be(ir),ur=r(80112),sr=(r(65560),r(27025));function lr(){lr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function fr(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,hr()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function hr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hr=function(){return!!t})()}var pr=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=fr(this,e,[].concat(n)),(0,d.A)(t,"state",{username:"",password:"",loading:!0,needKaptcha:!1,kaptchaImg:null,kaptchaToken:null,pubkey:void 0}),(0,d.A)(t,"formRef",v.createRef()),(0,d.A)(t,"context",void 0),(0,d.A)(t,"componentDidMount",(0,u.A)(lr().mark((function e(){var r,n;return lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.programCode,window.removeEventListener("keydown",t.handleKeyDown),e.next=4,o.A.getRasPubkey(null,r);case 4:n=e.sent,t.setState({pubkey:n,loading:!1});case 6:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"getKaptchaToken",(0,u.A)(lr().mark((function e(){var r,n,a;return lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.programCode,e.next=3,o.A.getKaptchaToken(r);case 3:(n=e.sent)&&(a=n.img&&0==n.img.indexOf("data:")?n.img:"data:image/png;base64,".concat(n.img),t.setState({kaptchaImg:a,kaptchaToken:n.kaptchaToken,needKaptcha:!0}));case 5:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"handleSubmit",(0,u.A)(lr().mark((function e(){var r,n,a;return lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),r=t.state,n=r.kaptchaToken,a=r.pubkey,e.next=4,t.formRef.current.validateFields().then(function(){var e=(0,u.A)(lr().mark((function e(r){var i,c,u;return lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.props.programCode,c={username:r.username,password:r.password},e.next=4,o.A.login(c,n,r.kaptchaText,a,i);case 4:if("success"!==(u=e.sent).status){e.next=9;break}t.props.onFinish(u.token),e.next=12;break;case 9:if("error"!==u.status){e.next=12;break}return e.next=12,t.getKaptchaToken();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}));case 4:t.setState({loading:!1});case 5:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"handleKeyDown",(function(e){13===e.keyCode&&t.handleSubmit()})),(0,d.A)(t,"changeKaptcha",function(){var e=(0,u.A)(lr().mark((function e(r){return lr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getKaptchaToken();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){var t=this.state,e=t.loading,r=t.needKaptcha,n=t.kaptchaImg,o=this.props.autoSaveUser,a=void 0===o||o,i=this.context.translate;return(0,k.Y)(Mt.A,{style:{width:350},ref:this.formRef,name:"normal_login",initialValues:{remember:!0}},this.props.title,(0,k.Y)(Mt.A.Item,{name:"username",rules:[{required:!0,message:i("${请输入}${用户名}!")},{max:30,min:0,message:i("${请输入}${0-30个字符}!")}]},(0,k.Y)(Kt.A,{prefix:(0,k.Y)(Tt.A,{className:"site-form-item-icon"}),placeholder:i("${用户名}"),autoComplete:a?"on":"off"})),(0,k.Y)(Mt.A.Item,{name:"password",rules:[{required:!0,message:i("${请输入}${密码}!")}]},(0,k.Y)(Kt.A,{style:a?{}:{"-webkit-text-security":"disc"},type:a?"password":"text",placeholder:i("${密码}"),onKeyDown:this.handleKeyDown,autoComplete:a?"on":"off",prefix:(0,k.Y)(qt.A,{className:"site-form-item-icon"})})),r?(0,k.Y)(W.A,{gutter:8},(0,k.Y)(Q.A,{span:12},(0,k.Y)(Mt.A.Item,{name:"kaptchaText",rules:[{required:!0,message:i("${请输入}${验证码}!")}]},(0,k.Y)(Kt.A,{prefix:(0,k.Y)(sr.A,{className:"site-form-item-icon"}),placeholder:i("${验证码}"),onKeyDown:this.handleKeyDown}))),(0,k.Y)(Q.A,{span:12},(0,k.Y)("img",{style:{cursor:"pointer"},height:30,width:90,title:i("${点击刷新}"),onClick:this.changeKaptcha,src:n}))):"",(0,k.Y)(Mt.A.Item,null,(0,k.Y)(m.Ay,{type:"primary",style:{width:"100%"},loading:e,onClick:this.handleSubmit},i("${登录}"))))}}])}(v.PureComponent);(0,d.A)(pr,"contextType",x.U);var dr=pr,vr=r(82441),yr=function(){var t=(0,pe.Y)().setLocale;return(0,k.Y)(ft.A,{menu:{items:[{label:"中文",key:"zh"},{label:"fr",key:"fr"}],onClick:function(e){var r=e.key;t(r)}}},(0,k.Y)(m.Ay,{type:"primary",shape:"circle",icon:(0,k.Y)(vr.A,null)}))},mr=function(t){var e=t.params,r=t.autoSaveUser,o=(0,pe.Y)().translate;return n.A.setProgramCode4RoutePath(e),(0,k.Y)(W.A,{justify:"center",align:"middle",className:"login-blue"},(0,k.Y)(Q.A,null,(0,k.Y)(dr,{onFinish:function(t){A.A.clear(),window.location.hash="#/context-setter",n.A.setHydrocarbonToken(t)},title:(0,k.Y)("h3",null,o("${欢迎登录}")),autoSaveUser:r})," "))},gr=be((function(t){return(0,k.Y)("div",{style:{position:"relative",width:"100%",height:"100%"}},(0,k.Y)("div",{style:{position:"absolute",top:"10px",right:"10px",zIndex:"10000"}},(0,k.Y)(yr,null)),(0,k.Y)(mr,t))})),wr=r(37187),br=r(97135);function Ar(){Ar=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function xr(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,kr()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function kr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(kr=function(){return!!t})()}var Lr=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=xr(this,e,[].concat(n)),(0,d.A)(t,"state",{loading:!1,config:null,context:null}),(0,d.A)(t,"formRef",v.createRef()),(0,d.A)(t,"handleSubmit",(0,u.A)(Ar().mark((function e(){var r;return Ar().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),r=t.state.config,e.next=4,t.formRef.current.validateFields().then(function(){var t=(0,u.A)(Ar().mark((function t(e){var n;return Ar().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},r.forEach((function(t){n[t.id]=e[t.id]})),t.next=4,o.A.setContext(n);case 4:t.sent;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){}));case 4:t.setState({loading:!1});case 5:case"end":return e.stop()}}),e)})))),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(n=(0,u.A)(Ar().mark((function t(){var e,r;return Ar().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.A.getContextSourceConfig();case 2:return e=t.sent,t.next=5,o.A.getContextSourceValue();case 5:if(r=t.sent,e&&0!=e.length){t.next=10;break}return e=[],window.location.hash="#/home",t.abrupt("return");case 10:this.setState({config:e,context:r,loading:!1});case 11:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,u.A)(Ar().mark((function t(e){return Ar().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.config,r=t.loading,n=t.context,o=this.props.serverKey;return(0,k.Y)(wr.A,{title:"全局配置",closable:!1,open:!0,footer:[]},(0,k.Y)(W.A,{justify:"center",align:"middle"},(0,k.Y)(Q.A,null,(0,k.Y)(Mt.A,{style:{width:350},ref:this.formRef,name:"normal_login",className:"login-form",initialValues:{remember:!0}},e?e.map((function(t){var e=null;return n&&n.forEach((function(r){r.moduleName==t.moduleName&&(e=r.selectedValues)})),(0,k.Y)(Mt.A.Item,{name:t.id,initialValue:e,rules:[{required:!0,message:"请选择"+t.title}]},(0,k.Y)(br.A,{serverKey:o,id:"14",fieldConfig:{id:t.groupId,title:t.title,controlType:"entity-select",max:"1",required:!0,sourceId:t.groupId,suppleOptions:t.canNotSet?[{code:"all",title:"不设置"}]:void 0}}))})):null,(0,k.Y)(Mt.A.Item,null,(0,k.Y)(m.Ay,{type:"primary",style:{width:"100%"},loading:r,onClick:this.handleSubmit,className:"login-form-button"},"确 定"))))))}}]);var r,n}(v.PureComponent);(0,d.A)(Lr,"defaultProps",{});var Er=be(Lr),Cr=r(17308),Or=r(70870),Sr=r(14378),Yr=["resultStatus"],jr=function(t){var e=t.resultStatus,r=void 0===e?"success":e,n=(0,c.A)(t,Yr),o=n.title,a=n.open,i=n.subtitle,u=n.goAdd,s=n.goEdit,l=n.goList,f=n.jumpTypes,h=n.addOrUpdate,p=(0,pe.Y)().translate;return(0,k.Y)(wr.A,{title:o||p("${保存提示}"),open:a,closable:!1,destroyOnClose:!0,footer:[],bodyStyle:{height:430,overflow:"auto"},width:560,maskClosable:!0},(0,k.Y)(Sr.Ay,{status:r,title:p("success"===r?"${保存成功}":"${保存失败}"),subTitle:i,extra:[u&&f&&f.includes("add")?(0,k.Y)(m.Ay,{key:"goOnAdd",onClick:function(){return u()}},p("update"===h?"${转添加}":"${继续添加}")):void 0,s&&f&&f.includes("edit")?(0,k.Y)(m.Ay,{type:"primary",key:"goOnEdit",onClick:function(){return s()}},p("update"===h?"${继续编辑}":"${编辑实体}")):"",l&&f&&f.includes("list")?(0,k.Y)(m.Ay,{type:"primary",key:"onBackList",onClick:function(){return l()}},p("${返回列表}")):""]}))},Pr=r(54040),Ir=r(62477),Tr=r(99326),Nr=r(43903),_r=r(50329),Dr=r(22503);function Rr(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Fr()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Fr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fr=function(){return!!t})()}var Gr=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Rr(this,e,[].concat(n)),(0,d.A)(t,"state",{}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"calcOffsetBottom",(function(t,e){var r=0;return e&&(r+=e.length),t&&t.includes("dtmplSave")&&(r+=1),r>=3?120:2==r?86:80})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){(0,Ir.A)(this.state);var t,e=this.props,r=e.dtmplConfig,n=e.doSubmit,o=e.formRef,a=e.serial,i=e.serverKey,c=e.dtmplData,u=r.buttons,s=r.actions,l=[],f=this.context.translate;return r.premises&&r.premises.length>0&&l.push({id:"1",title:f("${默认字段}")}),r.groups.forEach((function(t){l.push({title:t.title,id:t.id})})),s&&s.length>1&&(t=(0,k.Y)("div",{className:"btns"},s.map((function(t,e){if(e>1)return(0,k.Y)(Dr.A,{serverKey:i,data:[c],iconType:"icon-title",hiddenType:"disabled",buttonType:"primary",serial:a,key:t.id,formRef:o,actionConfig:t,doAction:n})})))),(0,k.Y)(Tr.A,{style:{position:"absolute",bottom:60,right:15},offsetBottom:this.calcOffsetBottom(u,s)},(0,k.Y)("div",{className:"submitButtonBar"},(0,k.Y)("ul",null,u.includes("dtmplSave")?(0,k.Y)("li",{key:100},(0,k.Y)(m.Ay,{onClick:function(){return n()},type:"primary",icon:(0,k.Y)(Nr.A,null),key:"btn",block:!0},f("${保存}"))):"",s?s.map((function(t,e){if(e<2)return(0,k.Y)("li",{key:e},(0,k.Y)(Dr.A,{data:[c],serverKey:i,hiddenType:"disabled",buttonType:"primary-block",serial:a,key:t.id,formRef:o,actionConfig:t,doAction:n}))})):"",s&&s.length>2?(0,k.Y)(Bt.A,{placement:"leftTop",content:t,trigger:"hover"},(0,k.Y)(m.Ay,{block:!0},(0,k.Y)(_r.A,null),f("${更多}"))):"")))}}])}(v.PureComponent);(0,d.A)(Gr,"contextType",x.U);var $r=Gr;function Mr(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Kr()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Kr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Kr=function(){return!!t})()}var Br=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Mr(this,e,[].concat(n)),(0,d.A)(t,"state",{}),(0,d.A)(t,"context",void 0),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){(0,Ir.A)(this.state);var t=this.props,e=t.dtmplConfig,r=t.position,n=t.doSubmit,o=t.formRef,a=t.serial,i=t.serverKey,c=t.dtmplData,u=e.buttons,s=e.actions,l=this.context.translate;return(0,k.Y)(g.A,{bordered:!1},(0,k.Y)(W.A,{align:"middle",justify:"bottomLeft"==r?"start":"bottomRight"==r?"end":"center"},(0,k.Y)(w.A,null,u.includes("dtmplSave")?(0,k.Y)(Q.A,null,(0,k.Y)(m.Ay,{onClick:function(){return n()},type:"primary",icon:(0,k.Y)(Nr.A,null),key:"btn",block:!0},l("${保存}"))):null,s?s.map((function(t,e){return(0,k.Y)(Q.A,null,(0,k.Y)(Dr.A,{serverKey:i,serial:a,key:t.id,data:[c],formRef:o,actionConfig:t,doAction:n}))})):"")))}}])}(v.PureComponent);(0,d.A)(Br,"contextType",x.U);var qr=Br;function Vr(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Ur()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Ur(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ur=function(){return!!t})()}var Hr=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Vr(this,e,[].concat(n)),(0,d.A)(t,"state",{}),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){var t=this.props,e=t.position,r=t.doSubmit,n=t.serial,o=t.dtmplConfig,a=t.formRef,i=t.dtmplData,c=e||(o.buttonPosition?o.buttonPosition:void 0);return(0,k.Y)(v.Fragment,null,c&&"fixedBottomRight"!=c?(0,k.Y)(qr,{position:c,doSubmit:r,serial:n,dtmplConfig:o,formRef:a,dtmplData:i}):(0,k.Y)($r,{doSubmit:r,serial:n,dtmplConfig:o,formRef:a,dtmplData:i}))}}])}(v.PureComponent);(0,d.A)(Hr,"defaultProps",{});var zr=Hr,Wr=r(97823);function Qr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jr(){Jr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Xr(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Zr()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Zr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Zr=function(){return!!t})()}var tn=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=Xr(this,e,[].concat(a)),(0,d.A)(t,"formRef",v.createRef()),(0,d.A)(t,"newCode",void 0),(0,d.A)(t,"state",{id:"dtmplEdit"+n.A.getRandomNum(6),showPostResult:!1,dtmplConfig:void 0,loading:!0,serial:1,dtmplData:void 0}),(0,d.A)(t,"autoSaveTimer",-1e15),(0,d.A)(t,"autoSaveInterval",void 0),(0,d.A)(t,"onClickBody",(function(e){t.autoSaveTimer=0})),(0,d.A)(t,"onValuesChange",(function(){t.setState({serial:t.state.serial+1})})),(0,d.A)(t,"loadConfigData",(0,u.A)(Jr().mark((function e(){var r,n,o,a,i,c;return Jr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,a=r.serverKey,i=r.addTmplId,t.setState({loading:!0}),c=void 0,!o){e.next=9;break}return e.next=6,A.A.requestDtmplConfig(a,n,o);case 6:c=e.sent,e.next=12;break;case 9:return e.next=11,A.A.requestAddDtmplConfig(a,n,i);case 11:c=e.sent;case 12:return e.next=14,t.loadData(c);case 14:return t.setState({dtmplConfig:c,loading:!1}),e.abrupt("return",c);case 16:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"loadData",function(){var e=(0,u.A)(Jr().mark((function e(r){var n,a,i,c,u,s,l,f;return Jr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,a=n.sourceId,i=n.code,c=n.addOrUpdate,u=n.serverKey,s=n.codeSource,(l=i)||!s){e.next=6;break}return e.next=5,o.A.queryCode(a,s,u);case 5:l=e.sent;case 6:if(r.autoSaveInterval&&r.autoSaveInterval>0&&(t.autoSaveInterval&&clearInterval(t.autoSaveInterval),t.autoSaveInterval=setInterval((function(){t.autoSaveTimer>=r.autoSaveInterval?(t.autoSaveTimer=-1e15,t.doSubmit(void 0)):t.autoSaveTimer=t.autoSaveTimer+1}),1e3)),!l){e.next=16;break}return t.setState({loading:!0}),e.next=11,o.A.getDtmplData(r,u,a,l);case 11:f=e.sent,"copy"==c&&f&&(f.code=void 0),t.setState({dtmplData:f,id:l,loading:!1}),e.next=17;break;case 16:t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 17:setTimeout((function(){return t.onValuesChange()}),300);case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,d.A)(t,"doSubmit",(function(e){var r=t.props.mainCode;t.formRef.current.setFieldsValue({actionId:e}),r&&t.formRef.current.setFieldsValue({mainCode:r}),t.formRef.current.submit()})),(0,d.A)(t,"onFinish",(function(e){t.newCode=e;var r=t.state.dtmplConfig,n=r.saveJumpTo?r.saveJumpTo:[];n.length>1?t.setState({showPostResult:!0}):n.includes("edit")?t.goEdit():n.includes("add")?t.goAdd():n.includes("nothing")||t.goList()})),(0,d.A)(t,"goList",(function(){t.newCode=void 0,t.props.goBackToLtmpl()})),(0,d.A)(t,"goEdit",(function(){var e=t.newCode,r=t.props,n=r.goDtmpl;r.code,r.goBackToLtmpl,t.newCode=void 0,n(e),t.setState((function(t){return{showPostResult:!1}}))})),(0,d.A)(t,"goAdd",(function(){t.newCode=void 0;var e=t.props,r=e.goDtmpl;e.code&&r(),t.setState((function(t){return{showPostResult:!1}}))})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:function(){this.loadConfigData()}},{key:"componentDidUpdate",value:(r=(0,u.A)(Jr().mark((function t(e,r,n){return Jr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e==this.props){t.next=7;break}return t.t0=this,t.next=4,this.loadConfigData();case 4:return t.t1=t.sent,t.next=7,t.t0.loadData.call(t.t0,t.t1);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.autoSaveInterval&&clearInterval(this.autoSaveInterval)}},{key:"render",value:function(){var t=this.state,e=t.dtmplConfig,r=t.showPostResult,n=t.loading,o=t.id,a=t.serial,i=t.dtmplData,c=this.props,u=c.sourceId,s=c.showRightNav,l=c.code,f=c.addOrUpdate,h=c.maxColsOnRow,p=c.mainCode,d=c.serverKey,v=[];if(!e)return(0,k.Y)(g.A,{loading:n});var y=e.actions;if(y){var m,w=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Qr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(y);try{for(w.s();!(m=w.n()).done;){var b=m.value;b.writes&&b.writes.forEach((function(t){v.push({id:t.id,value:t.value})}))}}catch(t){w.e(t)}finally{w.f()}e.hiddenFields=v}return(0,k.Y)("div",{className:"detailPage ",onClick:this.onClickBody},(0,k.Y)(Or.A,{showRightNav:s,serverKey:d,mainCode:p,parentId:o,dtmplConfig:e,formRef:this.formRef,sourceId:u,onFinish:this.onFinish,maxColsOnRow:h,showConfirm:!0,dtmplData:i,onValuesChange:this.onValuesChange}),s?(0,k.Y)(Pr.A,{parentId:o,dtmplConfig:e}):"",(0,k.Y)(zr,{dtmplData:i,serverKey:d,serial:a,dtmplConfig:e,doSubmit:this.doSubmit,formRef:this.formRef}),(0,k.Y)(Wr.A,{serverKey:d,dtmplConfig:e,mainCode:l}),(0,k.Y)(jr,{open:r,addOrUpdate:"copy"==f?"add":f,resultStatus:"success",goList:this.goList,goEdit:this.goEdit,goAdd:this.goAdd,jumpTypes:e.saveJumpTo}))}}]);var r}(v.PureComponent);(0,d.A)(tn,"defaultProps",{showRightNav:!0});var en=r(76390);function rn(){rn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function nn(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,on()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function on(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(on=function(){return!!t})()}var an=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=nn(this,e,[].concat(n)),(0,d.A)(t,"state",{codeSource:void 0,queriedCode:void 0}),(0,d.A)(t,"queryCode",(0,u.A)(rn().mark((function e(){var r,n,a,i;return rn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.params,n=r.sourceId,a=t.getCodeSource(),e.next=5,o.A.queryCode(n,a);case 5:i=e.sent,t.setState({codeSource:a,queriedCode:i});case 7:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"getMenuId",(function(){return t.props.searchParams.get("menuId")})),(0,d.A)(t,"getCodeSource",(function(){return t.props.searchParams.get("codeSource")})),(0,d.A)(t,"goBackToLtmpl",(function(){t.props.navigate(-1)})),(0,d.A)(t,"goDtmpl",(function(e){var r=t.props.params.sourceId,n=t.props.basePath,o="".concat(n,"/").concat(r,"/detail-edit?menuId=").concat(t.getMenuId());e&&(o+="&code=".concat(e));var a=t.getMainCode();a&&(o+="&mainCode=".concat(a)),t.props.navigate(o)})),(0,d.A)(t,"getMainCode",(function(){return t.props.searchParams.get("mainCode")})),(0,d.A)(t,"getCode",(function(){var e=t.state,r=e.codeSource,n=e.queriedCode,o=t.props.searchParams;return r?n:o.get("code")})),(0,d.A)(t,"getMode",(function(){var e=t.props.searchParams;return t.getCode()?e.get("mode"):"add"})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(n=(0,u.A)(rn().mark((function t(){return rn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.queryCode();case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"shouldComponentUpdate",value:function(t,e){return t&&t==this.props||this.setState({codeSource:void 0,queriedCode:void 0}),!0}},{key:"componentDidUpdate",value:(r=(0,u.A)(rn().mark((function t(e,r,n){return rn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e==this.props){t.next=3;break}return t.next=3,this.queryCode();case 3:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.location,r=t.params,n=t.searchParams,o=r.sourceId,a=this.state.codeSource;if(!e)return(0,k.Y)(v.Fragment,null);var i=this.getCode();if(i&&"bad-code"==i)return(0,k.Y)(Cr.A,null);var c=r.versionId;return e.pathname.endsWith("detail-view")?(0,k.Y)(en.A,{serverKey:null,goDtmpl:this.goDtmpl,sourceId:o,versionId:c,code:i,mainCode:this.getMainCode()}):(0,k.Y)(tn,{addTmplId:n.get("addTmplId"),serverKey:null,addOrUpdate:this.getMode(),sourceId:o,code:i,mainCode:this.getMainCode(),goBackToLtmpl:a?void 0:this.goBackToLtmpl,goDtmpl:this.goDtmpl})}}]);var r,n}(v.Component);(0,d.A)(an,"defaultProps",{basePath:"",codeSource:void 0,queriedCode:void 0});var cn=be(an);function un(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?un(Object(r),!0).forEach((function(e){(0,d.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ln(){ln=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function fn(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,hn()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function hn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hn=function(){return!!t})()}var pn=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=fn(this,e,[].concat(o)),(0,d.A)(t,"state",{ltmplConfigRes:void 0,pageNo:void 0,pageSize:void 0}),(0,d.A)(t,"onRoute",(function(e){t.props.navigate(e)})),(0,d.A)(t,"getMenuId",(function(){return t.props.searchParams.get("menuId")})),(0,d.A)(t,"loadData",(0,u.A)(ln().mark((function e(){var r,n,o;return ln().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.params,n=r.sourceId,e.next=4,A.A.requestLtmplConfig(null,n);case 4:o=e.sent,t.setState({ltmplConfigRes:o});case 6:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"showView",(function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.props.basePath,o=t.props.params.sourceId,a=t.state.ltmplConfigRes,i="".concat(n,"/").concat(o,"/detail-view?code=").concat(e,"&menuId=").concat(t.getMenuId());r&&a.ltmplConfig.customViewPagePath&&(i="".concat(n).concat(a.ltmplConfig.customViewPagePath,"?menuId=").concat(t.getMenuId(),"&sourceId=").concat(o)),t.onRoute(i)})),(0,d.A)(t,"doEdit",(function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.props.basePath,a=t.props.params.sourceId,i=t.state.ltmplConfigRes,c=t.getMainCode(),u="".concat(o,"/").concat(a,"/detail-edit?code=").concat(e,"&menuId=").concat(t.getMenuId(),"&mode=").concat(r);n&&i.ltmplConfig.customEditPagePath&&(u="".concat(o,"/page/").concat(a).concat(i.ltmplConfig.customEditPagePath,"?code=").concat(e,"&menuId=").concat(t.getMenuId())),c&&(u+="&mainCode=".concat(c)),t.onRoute(u)})),(0,d.A)(t,"getMainCode",(function(){var e=void 0,r=t.props.searchParams.get("mainCode");return r&&(e=r),e})),(0,d.A)(t,"doCreate",(function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.props.basePath,o=t.props.params.sourceId,a=t.state.ltmplConfigRes,i="".concat(n,"/").concat(o,"/detail-edit?menuId=").concat(t.getMenuId(),"&addTmplId=").concat(e||"");r&&a.ltmplConfig.customEditPagePath&&(i="".concat(n,"/page/").concat(o).concat(a.ltmplConfig.customEditPagePath,"?menuId=").concat(t.getMenuId()));var c=t.getMainCode();c&&(i+="&mainCode=".concat(c)),t.onRoute(i)})),(0,d.A)(t,"doRAction",(function(e,r){var n=t.props.basePath,o="".concat(n,"/").concat(e,"/act-table?mainCode=").concat(r,"&menuId=").concat(t.getMenuId());t.onRoute(o)})),(0,d.A)(t,"doSearch",(function(e){var r=t.props.basePath,o=t.props.params.sourceId,a=sn({},e),i=n.A.transQueryParamsToStr(a);t.props.navigate("".concat(r,"/").concat(o,"/act-table?").concat(i),{replace:!0})})),(0,d.A)(t,"onChangeSearch",(function(e){var r=sn({},e),n=t.props.searchParams.get("mainCode");n&&(r.mainCode=n);var o=t.state,a=o.pageSize,i=o.pageNo;a&&(r.pageNo=i),i&&(r.pageSize=a),r.menuId=t.getMenuId(),r.sourceId=t.getMenuId(),t.doSearch(r)})),(0,d.A)(t,"onChangePage",(function(e,r){var o=t.props.location.search,a=n.A.transQueryStrToParams(o);a.pageNo=e,a.pageSize=r,t.doSearch(a)})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(o=(0,u.A)(ln().mark((function t(){return ln().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.loadData();case 1:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,u.A)(ln().mark((function t(e){var r,n,o,a,i,c;return ln().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.props,n=r.location,o=r.params,a=o.sourceId,i=e.params.sourceId,c=e.location,!(!a||!i&&this.state.ltmplConfigRes||n.pathname==c.pathname&&n.search==c.search)){t.next=6;break}return t.abrupt("return");case 6:this.loadData();case 7:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state.ltmplConfigRes,e=this.props,r=e.location,o=e.params.sourceId,a=void 0,i=r.search,c=n.A.transQueryStrToParams(i),u=c.pageSize,s=c.pageNo;return i.indexOf("mainCode")>0&&(a=c.mainCode),t?(0,k.Y)(ur.A,{serverKey:null,pageSize:u,pageNo:s,onChangePage:this.onChangePage,menuId:this.getMenuId(),mainCode:a,showView:this.showView,doSearch:this.onChangeSearch,doEdit:this.doEdit,doCreate:this.doCreate,sourceId:o,criteriaData:c,ltmplConfig:t?t.ltmplConfig:null,doRAction:this.doRAction}):(0,k.Y)(v.Fragment,null)}}]);var r,o}(v.PureComponent);(0,d.A)(pn,"defaultProps",{basePath:""});var dn,vn=be(pn),yn=r(16044),mn=r(87937),gn=r(93598),wn=r(40261),bn=r(11058),An=r(55140),xn=r(49237);function kn(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Ln(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ln(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function En(){En=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Cn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function On(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cn(Object(r),!0).forEach((function(e){(0,d.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Sn=(0,l.A)((function t(){(0,s.A)(this,t)}));function Yn(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return jn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function jn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pn(){Pn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function In(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Tn()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Tn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Tn=function(){return!!t})()}dn=Sn,(0,d.A)(Sn,"initTtmplNodeConfig",function(){var t=(0,u.A)(En().mark((function t(e){var r,n,o,a,i,c,u;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",null);case 2:if(!(r=On({},e)).rootGtmplId){t.next=10;break}return t.next=6,A.A.requestLtmplConfig(null,r.rootGtmplId);case 6:n=t.sent,o=n.ltmplConfig,r.rootLTmplConfig=o,r.rootTitleId=o.primaryColumn.id;case 10:if(!r.branchRatmplId){t.next=17;break}return t.next=13,A.A.requestLtmplConfig(null,r.branchRatmplId);case 13:a=t.sent,i=a.ltmplConfig,r.branchLTmplConfig=i,r.branchTitleId=i.primaryColumn.id;case 17:if(!r.leafRatmplId){t.next=24;break}return t.next=20,A.A.requestLtmplConfig(null,r.leafRatmplId);case 20:c=t.sent,u=c.ltmplConfig,r.leafLTmplConfig=u,r.leafTitleId=u.primaryColumn.id;case 24:return t.abrupt("return",r);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,d.A)(Sn,"loadRootNodeData",function(){var t=(0,u.A)(En().mark((function t(e){var r,n;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.A.requestTtmplRootData(null,e.id,{});case 2:return r=t.sent,n=[],r.entities&&r.entities.forEach((function(t,r){n.push(dn.toTreeNodeData(t,e.rootTitleId,null,!1,"R"))})),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,d.A)(Sn,"pushNodeData",(function(t,e,r,n){t.children.splice(0,t.children.length),r&&r.forEach((function(r,n){t.children.push(dn.toBanchTreeNodeData(r,e,t))})),n&&n.forEach((function(r,n){t.children.push(dn.toLeafTreeNodeData(r,e,t))}))})),(0,d.A)(Sn,"pushSameCodeNodeData",function(){var t=(0,u.A)(En().mark((function t(e,r){var n,a,i,c,u,s,l;return En().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.length>0)){t.next=13;break}if(!r.branchRatmplId){t.next=6;break}return t.next=4,o.A.requestLtmplQueryTop(null,r.branchRatmplId,{mainCode:e[0].code});case 4:a=t.sent,n=a.entities;case 6:if(!r.leafRatmplId){t.next=11;break}return t.next=9,o.A.requestLtmplQueryTop(null,r.leafRatmplId,{mainCode:e[0].code});case 9:c=t.sent,i=c.entities;case 11:u=kn(e);try{for(u.s();!(s=u.n()).done;)l=s.value,dn.pushNodeData(l,r,n,i)}catch(t){u.e(t)}finally{u.f()}case 13:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),(0,d.A)(Sn,"toLeafTreeNodeData",(function(t,e,r){return dn.toTreeNodeData(t,e.leafTitleId,r,!0,"B")})),(0,d.A)(Sn,"toBanchTreeNodeData",(function(t,e,r){return dn.toTreeNodeData(t,e.branchTitleId,r,!1,"L")})),(0,d.A)(Sn,"toTreeNodeData",(function(t,e,r,n,o){var a=t.fieldMap[e];return{code:t.code,key:o+(null==r?void 0:r.code)+t.code,name:a,title:(0,k.Y)(v.Fragment,null,(0,k.Y)("span",null,a||t.code)),children:[],isLeaf:n,parent:r}})),(0,d.A)(Sn,"filterNode",(function(t,e){var r=(0,je.A)(t.children),n=[],o=[];return r.forEach((function(t){var r=On({},t);if((r.searchValue?r.searchValue:r.name).indexOf(e)>=0&&n.push(r),r.children&&r.children.length>0){var a=dn.filterNode(r,e);a.length>0?(r.children=a,(r.searchValue?r.searchValue:r.name).indexOf(e)<0&&n.push(r)):(r.children=[],o.push(r))}})),t.children=n,n})),(0,d.A)(Sn,"filterTree",(function(t,e){var r={code:"",config:void 0,key:void 0,children:(0,je.A)(t)};return dn.filterNode(r,e),r.children})),Ie.A.Text,Ie.A.Title;var Nn=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=In(this,e,[].concat(n)),(0,d.A)(t,"state",{data:[],expandedKeys:[],loadedKeys:[],loading:!1,currentEditKey:void 0,parentNodeData:void 0,currentNodeData:void 0,rootAddable:!1,searchValue:void 0}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"doDelete",function(){var e=(0,u.A)(Pn().mark((function e(r){var n,a;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props.ttmplNodeConfig,a=r.isLeaf?n.leafRatmplId:n.branchRatmplId,e.next=4,o.A.deleteByCode(null,a,[r.code]);case 4:if(e.sent,!r.parent){e.next=8;break}return e.next=8,t.reloadData(r.parent.code);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,d.A)(t,"loadRootNodeData",(0,u.A)(Pn().mark((function e(){var r,n;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.ttmplNodeConfig,e.next=3,Sn.loadRootNodeData(r);case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"onExpand",function(){var e=(0,u.A)(Pn().mark((function e(r,n){var o,a;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.props.ttmplNodeConfig,a=t.state.data,!n.expanded){e.next=5;break}return e.next=5,Sn.pushSameCodeNodeData([n.node],o);case 5:t.setState({data:(0,je.A)(a),expandedKeys:r});case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,d.A)(t,"onClickNode",(function(e){var r=t.props,n=r.doEditRoot,o=r.doViewRoot,a=r.doViewSub,i=r.doEditSub,c=r.ttmplNodeConfig;e.parent?e.isLeaf?c.leafLTmplConfig.buttons.indexOf("dtmplEdit")>0?i(c.leafTitle,c.leafRatmplId,e.parent.code,e.code):c.leafLTmplConfig.buttons.indexOf("detail")>0&&a(c.leafTitle,c.leafRatmplId,e.parent.code,e.code):c.branchLTmplConfig.buttons.indexOf("dtmplEdit")>0?i(c.branchTitle,c.branchRatmplId,e.parent.code,e.code):c.branchLTmplConfig.buttons.indexOf("detail")>0&&a(c.branchTitle,c.branchRatmplId,e.parent.code,e.code):c.rootLTmplConfig.buttons.indexOf("dtmplEdit")>0?n(c.branchTitle,e.code):c.rootLTmplConfig.buttons.indexOf("detail")>0&&o(c.branchTitle,e.code)})),(0,d.A)(t,"stopPropagation",(function(t){t.stopPropagation?t.stopPropagation():window.event.cancelBubble=!0})),(0,d.A)(t,"reloadData",function(){var e=(0,u.A)(Pn().mark((function e(r){var n,o,a,i,c,u,s,l,f,h;return Pn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props.ttmplNodeConfig,o=t.state,a=o.data,i=o.expandedKeys,null!=r){e.next=10;break}return e.next=5,t.loadRootNodeData();case 5:c=e.sent,t.mergeRootData(a,c),t.setState({data:c}),e.next=17;break;case 10:return u=[],t.searchNode(a,r,u),e.next=14,Sn.pushSameCodeNodeData(u,n);case 14:for(s=[],l=0,f=u;l<f.length;l++)h=f[l],s.push(h.key);t.setState({expandedKeys:[].concat((0,je.A)(i),s),data:(0,je.A)(a)});case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,d.A)(t,"mergeRootData",(function(t,e){if(e&&t){var r,n=Yn(e);try{for(n.s();!(r=n.n()).done;){var o,a=r.value,i=Yn(t);try{for(i.s();!(o=i.n()).done;){var c=o.value;if(a.code==c.code){a.children=c.children;break}}}catch(t){i.e(t)}finally{i.f()}}}catch(t){n.e(t)}finally{n.f()}}})),(0,d.A)(t,"searchNode",(function(e,r,n){if(e){var o,a=Yn(e);try{for(a.s();!(o=a.n()).done;){var i=o.value;if(i.code==r){n.push(i);break}i.children.length>0&&t.searchNode(i.children,r,n)}}catch(t){a.e(t)}finally{a.f()}}})),(0,d.A)(t,"getDeleteButton",(function(e,r){var n=t.props.doDelete,o=t.context.translate;return(0,k.Y)("div",{onClick:function(e){t.stopPropagation(e)}},(0,k.Y)(yn.A,{placement:"topLeft",title:o("${确定要删除吗}?"),onConfirm:function(){n(e,r)},okText:o("${确定}"),cancelText:o("${取消}")},(0,k.Y)(tt.A,null,(0,k.Y)(m.Ay,{size:"small",danger:!0},(0,k.Y)(gn.A,null)))))})),(0,d.A)(t,"getAddButton",(function(e,r,n,o){var a=t.props.doAddSub;return(0,k.Y)(m.Ay,{onClick:function(r){t.stopPropagation(r),a(e,n,o,null)},size:"small"},r,e)})),(0,d.A)(t,"packageTitle",(function(e){var r,n,o,a,i=t.props,c=i.doEditRoot,u=i.doViewRoot,s=i.doViewSub,l=i.doEditSub,f=i.ttmplNodeConfig,h=t.context.translate,p=[];if(e.parent){if(e.isLeaf)(null===(r=f.leafLTmplConfig)||void 0===r?void 0:r.buttons.indexOf("dtmplEdit"))>0&&p.push((0,k.Y)(m.Ay,{onClick:function(r){t.stopPropagation(r),l(f.leafTitle,f.leafRatmplId,e.parent.code,e.code)},size:"small"},(0,k.Y)(wn.A,null),h("${编辑}"))),(null===(n=f.leafLTmplConfig)||void 0===n?void 0:n.buttons.indexOf("detail"))>0&&p.push((0,k.Y)(m.Ay,{onClick:function(r){t.stopPropagation(r),s(f.leafTitle,f.leafRatmplId,e.parent.code,e.code)},size:"small"},(0,k.Y)(bn.A,null),h("${查看}"))),(null===(o=f.leafLTmplConfig)||void 0===o?void 0:o.buttons.indexOf("singleDelete"))>0&&p.push(t.getDeleteButton(f.leafRatmplId,e.code));else if(f.branchLTmplConfig){var d,y,g,b;f.branchLTmplConfig.buttons.indexOf("dtmplEdit")>0&&p.push((0,k.Y)(m.Ay,{onClick:function(r){t.stopPropagation(r),l(f.branchTitle,f.branchRatmplId,e.parent.code,e.code)},size:"small"},(0,k.Y)(wn.A,null),h("${编辑}"))),(null===(d=f.branchLTmplConfig)||void 0===d?void 0:d.buttons.indexOf("detail"))>0&&p.push((0,k.Y)(m.Ay,{onClick:function(r){t.stopPropagation(r),s(f.branchTitle,f.branchRatmplId,e.parent.code,e.code)},size:"small"},(0,k.Y)(bn.A,null),h("${查看}"))),(null===(y=f.branchLTmplConfig)||void 0===y?void 0:y.buttons.indexOf("dtmplAdd"))>0&&p.push(t.getAddButton(f.branchTitle,(0,k.Y)(An.A,null),f.branchRatmplId,e.code)),(null===(g=f.leafLTmplConfig)||void 0===g?void 0:g.buttons.indexOf("dtmplAdd"))>0&&p.push(t.getAddButton(f.leafTitle,(0,k.Y)(xn.A,null),f.leafRatmplId,e.code)),(null===(b=f.branchLTmplConfig)||void 0===b?void 0:b.buttons.indexOf("singleDelete"))>0&&p.push(t.getDeleteButton(f.branchRatmplId,e.code))}}else f.rootLTmplConfig.buttons.indexOf("dtmplEdit")>0&&p.push((0,k.Y)(m.Ay,{onClick:function(r){t.stopPropagation(r),c(f.branchTitle,e.code)},size:"small"},(0,k.Y)(wn.A,{style:{color:"blue"}}),h("${编辑}"))),f.rootLTmplConfig.buttons.indexOf("detail")>0&&p.push((0,k.Y)(m.Ay,{onClick:function(r){t.stopPropagation(r),u(f.branchTitle,e.code)},size:"small"},(0,k.Y)(bn.A,null),h("${查看}"))),f.branchLTmplConfig&&f.rootLTmplConfig.buttons.indexOf("dtmplAdd")>0&&p.push(t.getAddButton(f.branchTitle,(0,k.Y)(An.A,null),f.branchRatmplId,e.code)),(null===(a=f.leafLTmplConfig)||void 0===a?void 0:a.buttons.indexOf("dtmplAdd"))>0&&p.push(t.getAddButton(f.leafTitle,(0,k.Y)(xn.A,null),f.leafRatmplId,e.code)),f.rootLTmplConfig.buttons.indexOf("singleDelete")>0&&p.push(t.getDeleteButton(f.branchRatmplId,e.code));return 0==p.length?e.title:(0,k.Y)(Bt.A,{zIndex:100,content:(0,k.Y)(v.Fragment,null,(0,k.Y)(w.A,null,p)),arrow:!1},e.title)})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(i=(0,u.A)(Pn().mark((function t(){return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.refresh();case 2:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"componentDidUpdate",value:(a=(0,u.A)(Pn().mark((function t(e){var r,n;return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ttmplNodeConfig,(n=this.props.ttmplNodeConfig)&&(!r||n.id!=r.id)){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,this.refresh();case 6:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"refresh",value:(n=(0,u.A)(Pn().mark((function t(){var e,r;return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.props.ttmplNodeConfig){t.next=3;break}return t.abrupt("return");case 3:return this.setState({loading:!0}),t.next=6,this.loadRootNodeData();case 6:r=t.sent,this.setState({searchValue:null,data:r,rootAddable:e.rootLTmplConfig.buttons.indexOf("dtmplAdd")>0,loading:!1});case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentWillUnmount",value:(r=(0,u.A)(Pn().mark((function t(){return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.props,r=e.doEditRoot,n=e.ttmplNodeConfig,o=this.state,a=o.data,i=o.loading,c=o.expandedKeys,u=o.rootAddable,s=o.searchValue,l=a,f=this.context.translate;return s&&(l=Sn.filterTree(a,s)),(0,k.Y)(v.Fragment,null,(0,k.Y)(W.A,null,(0,k.Y)(Q.A,{span:24},(0,k.Y)(g.A,{style:{marginBottom:0,width:"100%"},bordered:!1,bodyStyle:{padding:"4px 2px 4px 8px"}},(0,k.Y)(W.A,{align:"middle"},(0,k.Y)(Q.A,{span:8},u&&r?(0,k.Y)(m.Ay,{type:"link",onClick:function(){return r(n.branchTitle)}},f("${添加}")):null),(0,k.Y)(Q.A,{span:16},(0,k.Y)(Kt.A.Search,{value:s,allowClear:!0,placeholder:f("${输入查找内容}"),onChange:function(e){t.setState({searchValue:e.target.value})},onSearch:function(e){t.refresh()},enterButton:(0,k.Y)(Re.A,null)})))))),(0,k.Y)(W.A,null,(0,k.Y)(Q.A,{span:24},(0,k.Y)(g.A,{bodyStyle:{padding:"4px 4px 4px 16px",height:"80vh",minWidth:"292px"},loading:i},0==l.length?f("${没有找到数据}"):(0,k.Y)(fe.Ay,{style:{height:"80vh"},autoHide:!0,autoHideTimeout:1e3},(0,k.Y)(mn.A,{blockNode:!0,showLine:n.showLine,checkable:!1,expandedKeys:c,onExpand:this.onExpand,titleRender:function(e){return(0,k.Y)("div",{onClick:function(){return t.onClickNode(e)}},t.packageTitle(e))},treeData:l}))))))}}]);var r,n,a,i}(v.PureComponent);(0,d.A)(Nn,"defaultProps",{draggable:!1,readOnly:!1}),(0,d.A)(Nn,"contextType",x.U);var _n=Nn;function Dn(){Dn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Rn(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Fn()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Fn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fn=function(){return!!t})()}var Gn=B.A.Content,$n=B.A.Sider,Mn=(Ie.A.Text,Ie.A.Title,function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=Rn(this,e,[].concat(n)),(0,d.A)(t,"state",{ttmplNodeConfig:void 0,recordCode:void 0,showEdit:!1,showView:!1,mainCode:void 0,sourceId:void 0,cardtitle:void 0,addTmplId:void 0}),(0,d.A)(t,"context",void 0),(0,d.A)(t,"refTmplTree",v.createRef()),(0,d.A)(t,"loadData",(0,u.A)(Dn().mark((function e(){var r,n;return Dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.ttmplConfig,e.next=3,Sn.initTtmplNodeConfig(r);case 3:n=e.sent,t.setState({ttmplNodeConfig:n,showEdit:!1,showView:!1});case 5:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"onEditRoot",(function(e,r){var n=t.props.ttmplConfig;t.showCard(e,n.rootGtmplId,null,r,!0,!1)})),(0,d.A)(t,"showCard",(function(e,r,n,o,a,i,c){t.setState({mainCode:n,cardtitle:e,recordCode:o,showEdit:a,showView:i,sourceId:r,addTmplId:c})})),(0,d.A)(t,"onViewRoot",(function(e,r){var n=t.props.ttmplConfig;t.showCard(e,n.rootGtmplId,null,r,!1,!0,null)})),(0,d.A)(t,"onEditSub",(function(e,r,n,o){t.showCard(e,r,n,o,!0,!1,null)})),(0,d.A)(t,"onViewSub",(function(e,r,n,o){t.showCard(e,r,n,o,!1,!0,null)})),(0,d.A)(t,"onDelete",(function(t,e){o.A.deleteByCode(null,t,[e])})),(0,d.A)(t,"onAddSub",(function(e,r,n,o){t.showCard(e,r,n,null,!0,!1,o)})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(n=(0,u.A)(Dn().mark((function t(){return Dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,u.A)(Dn().mark((function t(e){var r,n;return Dn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.ttmplConfig,!(n=this.props.ttmplConfig)||!r||n.id!=r.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,this.loadData();case 6:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this;(0,Ir.A)(this.props);var e=this.context.translate,r=this.state,n=r.ttmplNodeConfig,o=r.showView,a=r.showEdit,i=r.recordCode,c=r.mainCode,u=r.sourceId,s=r.cardtitle,l=r.addTmplId;return n?(0,k.Y)(B.A,{hasSider:!0,style:{backgroundColor:"#fff"}},(0,k.Y)($n,{width:300,theme:"light",style:{height:"90vh",position:"fixed",left:0,top:66,bottom:0,marginLeft:210}},(0,k.Y)(_n,{doEditRoot:this.onEditRoot,doEditSub:this.onEditSub,doDelete:this.onDelete,doViewRoot:this.onViewRoot,doViewSub:this.onViewSub,doAddSub:this.onAddSub,ttmplNodeConfig:n,ref:this.refTmplTree})),(0,k.Y)(B.A,{style:{marginLeft:322,backgroundColor:"#fff"}},(0,k.Y)(Gn,{style:{overflow:"initial"}},a?(0,k.Y)(eo,{addTmplId:l,title:(0,k.Y)(v.Fragment,null,i?(0,k.Y)(v.Fragment,null,e("${编辑}")," ",s||""):(0,k.Y)(v.Fragment,null,e("${添加}")," ",s||"")," "),mainCode:c,sourceId:u,code:i,onOk:function(e){var r;null===(r=t.refTmplTree)||void 0===r||null===(r=r.current)||void 0===r||r.reloadData(c),t.setState({recordCode:e})}}):null,o?(0,k.Y)(Wn.A,{mainCode:c,sourceId:u,code:i}):null))):(0,k.Y)(g.A,{loading:!0})}}]);var r,n}(v.PureComponent));function Kn(){Kn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Bn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bn(Object(r),!0).forEach((function(e){(0,d.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vn(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,Un()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function Un(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Un=function(){return!!t})()}(0,d.A)(Mn,"defaultProps",{}),(0,d.A)(Mn,"contextType",x.U);var Hn=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Vn(this,e,[].concat(n)),(0,d.A)(t,"state",{ttmplConfig:void 0}),(0,d.A)(t,"onRoute",(function(e){t.props.navigate(e)})),(0,d.A)(t,"getMenuId",(function(){return t.props.searchParams.get("menuId")})),(0,d.A)(t,"loadData",(0,u.A)(Kn().mark((function e(){var r,n,o;return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props.params,n=r.sourceId,e.next=4,A.A.requestTtmplConfig(null,n);case 4:"1M"==(o=e.sent).type?t.props.navigate("/".concat(o.id,"/act-table")):t.setState({ttmplConfig:qn({},o)});case 6:case"end":return e.stop()}}),e)})))),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(n=(0,u.A)(Kn().mark((function t(){return Kn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.loadData();case 1:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,u.A)(Kn().mark((function t(e){var r,n,o,a;return Kn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.props).location,n=r.params,o=n.sourceId,a=e.params.sourceId,e.location,!o||!a||o!=a){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,this.loadData();case 8:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){(0,Ir.A)(this.props);var t=this.state.ttmplConfig;return t?(0,k.Y)(v.Fragment,null,(0,k.Y)(Mn,{ttmplConfig:t})):(0,k.Y)(g.A,{loading:!0})}}]);var r,n}(v.PureComponent);(0,d.A)(Hn,"defaultProps",{basePath:""});var zn=be(Hn),Wn=r(45705);r(46675);function Qn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qn(Object(r),!0).forEach((function(e){(0,d.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xn(){Xn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Zn(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,to()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function to(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(to=function(){return!!t})()}v.PureComponent,r(68455);var eo=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return t=Zn(this,e,[].concat(a)),(0,d.A)(t,"formRef",v.createRef()),(0,d.A)(t,"autoSaveTimer",-1e15),(0,d.A)(t,"autoSaveInterval",void 0),(0,d.A)(t,"context",void 0),(0,d.A)(t,"onClickBody",(function(e){t.autoSaveTimer=0})),(0,d.A)(t,"state",{id:"dtmplEditCard"+n.A.getRandomNum(6),dtmplConfig:void 0,loading:!0,serial:1,dtmplData:void 0}),(0,d.A)(t,"loadConfigData",(0,u.A)(Xn().mark((function e(){var r,n,o,a,i,c;return Xn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,o=r.code,a=r.serverKey,i=r.addTmplId,t.setState({loading:!0}),c=void 0,!o){e.next=9;break}return e.next=6,A.A.requestDtmplConfig(a,n,o);case 6:c=e.sent,e.next=12;break;case 9:return e.next=11,A.A.requestAddDtmplConfig(a,n,i);case 11:c=e.sent;case 12:return e.next=14,t.loadData(c);case 14:t.setState({dtmplConfig:c,loading:!1});case 15:case"end":return e.stop()}}),e)})))),(0,d.A)(t,"loadData",function(){var e=(0,u.A)(Xn().mark((function e(r){var n,a,i,c,u,s,l,f;return Xn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,a=n.sourceId,i=n.code,c=n.defaultDtmplData,u=n.serverKey,s=n.codeSource,(l=i)||!s){e.next=6;break}return e.next=5,o.A.queryCode(a,s,u);case 5:l=e.sent;case 6:if(r.autoSaveInterval&&r.autoSaveInterval>0&&(t.autoSaveInterval&&clearInterval(t.autoSaveInterval),t.autoSaveInterval=setInterval((function(){t.autoSaveTimer>=r.autoSaveInterval?(t.autoSaveTimer=-1e15,t.doSubmit(void 0)):t.autoSaveTimer=t.autoSaveTimer+1}),1e3)),!l){e.next=15;break}return t.setState({loading:!0}),e.next=11,o.A.getDtmplData(r,u,a,l);case 11:f=e.sent,t.setState({dtmplData:f,id:l,loading:!1}),e.next=16;break;case 15:c?t.setState({dtmplData:c,loading:!1}):t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 16:setTimeout((function(){return t.onValuesChange()}),300);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,d.A)(t,"onValuesChange",(function(){t.setState({serial:t.state.serial+1})})),(0,d.A)(t,"doSubmit",(function(e,r,n){var o=t.props.mainCode;t.formRef.current.setFieldsValue({actionId:e}),o&&t.formRef.current.setFieldsValue({mainCode:o}),n&&t.formRef.current.setFieldsValue(n),t.formRef.current.submit()})),(0,d.A)(t,"getFooter",(function(){var e=t.props.serverKey,r=t.state,n=(r.dtmplData,r.serial),o=t.context.translate,a=[];a.unshift((0,k.Y)(m.Ay,{onClick:function(){return t.doSubmit()},type:"primary"},o("${保存}")));var i=t.state.dtmplConfig;return i&&i.actions.forEach((function(r,o){a.unshift((0,k.Y)(Dr.A,{serverKey:e,iconType:"icon-title",hiddenType:"disabled",serial:n,key:r.id,formRef:t.formRef,actionConfig:r,doAction:t.doSubmit}))})),a})),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentDidMount",value:(a=(0,u.A)(Xn().mark((function t(){return Xn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadConfigData();case 2:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,u.A)(Xn().mark((function t(e){var r;return Xn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.state.dtmplConfig,!e||e==this.props){t.next=9;break}if(e.sourceId==this.props.sourceId&&null!=r){t.next=7;break}return t.next=5,this.loadConfigData();case 5:t.next=9;break;case 7:return t.next=9,this.loadData(r);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.autoSaveInterval&&clearInterval(this.autoSaveInterval)}},{key:"render",value:function(){var t=this.props,e=t.onOk,r=t.sourceId,n=t.mainCode,o=t.style,a=t.maxColsOnRow,i=t.title,c=t.serverKey,u=this.state,s=u.dtmplConfig,l=u.id,f=u.dtmplData;return(0,k.Y)(v.Fragment,null,(0,k.Y)(g.A,{onClick:this.onClickBody,headStyle:{alignItems:"center"},title:i,style:Jn({minWidth:1==a?"360px":"720px"},o),bodyStyle:{padding:"6px"},extra:(0,k.Y)(w.A,null,this.getFooter())},(0,k.Y)(Or.A,{serverKey:c,showHeader:!1,mainCode:n,parentId:l,dtmplConfig:s,formRef:this.formRef,sourceId:r,onFinish:e,maxColsOnRow:a,showConfirm:!1,dtmplData:f,onValuesChange:this.onValuesChange})))}}]);var r,a}(v.PureComponent);(0,d.A)(eo,"contextType",x.U),(0,d.A)(eo,"defaultProps",{showConfirm:!1,okText:"确定"});var ro=["title","placement","width","onCancel","open"];function no(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,oo()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function oo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oo=function(){return!!t})()}var ao=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=no(this,e,[].concat(n)),(0,d.A)(t,"state",{}),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){var t=this.props,e=t.title,r=t.placement,n=t.width,o=t.onCancel,a=t.open,i=(0,c.A)(t,ro);return(0,k.Y)(bt.A,{title:e,placement:r,closable:!0,mask:!1,onClose:o,open:a,width:n,style:{maxWidth:"92vw"}},(0,k.Y)(xt.A,i))}}])}(v.PureComponent);(0,d.A)(ao,"defaultProps",{showConfirm:!0,width:"76vw",forceRender:!0,style:{maxWidth:"92vw",maxHeight:"92vh"},okText:"确定",cancelText:"取消",placement:"left"});var io=["title","height","width","onCancel","open"];function co(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,uo()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function uo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(uo=function(){return!!t})()}var so=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=co(this,e,[].concat(n)),(0,d.A)(t,"state",{}),(0,d.A)(t,"context",void 0),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"render",value:function(){var t=this.props,e=t.title,r=t.height,n=t.width,o=t.onCancel,a=t.open,i=(0,c.A)(t,io),u=this.context.translate;return(0,k.Y)(wr.A,{open:a,width:n,title:e,closable:!1,bodyStyle:{height:r,overflow:"auto",padding:"6 0 6 6"},destroyOnClose:!0,centered:!0,onOk:o,onCancel:o,footer:[(0,k.Y)(m.Ay,{onClick:o},u("${关闭}"))]},(0,k.Y)(fe.Ay,{autoHide:!0,autoHideTimeout:1e3},(0,k.Y)(g.A,{bordered:!1,bodyStyle:{padding:"4px 10px 0 0"}},(0,k.Y)(xt.A,i))))}}])}(v.PureComponent);function lo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fo(){fo=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function ho(t,e,r){return e=(0,h.A)(e),(0,f.A)(t,po()?Reflect.construct(e,r||[],(0,h.A)(t).constructor):e.apply(t,r))}function po(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(po=function(){return!!t})()}(0,d.A)(so,"defaultProps",{showConfirm:!0,height:"82vh",width:"82vw",forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)",padding:10},okText:"确定",cancelText:"取消"}),(0,d.A)(so,"contextType",x.U),r(74712),r.p,r.p,r.p,r.p,r.p;var vo=function(t){function e(){var t;(0,s.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=ho(this,e,[].concat(n)),(0,d.A)(t,"state",{}),(0,d.A)(t,"intervals",[]),(0,d.A)(t,"componentDidMount",(0,u.A)(fo().mark((function t(){return fo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case 2:case"end":return t.stop()}}),t)})))),(0,d.A)(t,"cardStyle",{height:"400px"}),(0,d.A)(t,"carouselStyle",{background:"#fff",borderRadius:"6px"}),t}return(0,p.A)(e,t),(0,l.A)(e,[{key:"componentWillUnmount",value:function(){if(this.intervals.length>0){var t,e=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return lo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(this.intervals);try{for(e.s();!(t=e.n()).done;){var r=t.value;clearInterval(r)}}catch(t){e.e(t)}finally{e.f()}}this.intervals=[]}},{key:"render",value:function(){var t=this.props.params;return n.A.setProgramCode4RoutePath(t),(0,k.Y)(v.Fragment,null,(0,k.Y)(W.A,{className:"home-page",gutter:{xs:4,sm:8,md:12,lg:16}},(0,k.Y)(Q.A,{span:24},(0,k.Y)(W.A,{style:{minHeight:"100px"},gutter:{xs:4,sm:8,md:12,lg:16}},(0,k.Y)(Q.A,{span:12,style:{width:"100%"}},(0,k.Y)(M,{className:"hovercard"})),(0,k.Y)(Q.A,{span:12,style:{width:"100%"}},(0,k.Y)(P,{className:"hovercard"})))),(0,k.Y)(Q.A,{span:24},(0,k.Y)(W.A,{gutter:{xs:4,sm:8,md:12,lg:16}},(0,k.Y)(Q.A,{style:{width:"100%"}},(0,k.Y)(g.A,{className:"hovercard",title:"统计视图"},(0,k.Y)(W.A,{gutter:[{xs:4,sm:8,md:12,lg:16},{xs:4,sm:8,md:12,lg:16}]},(0,k.Y)(Q.A,{span:16,style:{height:"400px"},id:"echart1"}),(0,k.Y)(Q.A,{span:8,style:{height:"400px"},id:"echart2"}))))))))}}])}(v.Component),yo=be(vo),mo=(r(23605),r(48287));function go(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?go(Object(r),!0).forEach((function(e){(0,d.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):go(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bo(){bo=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&n.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,i,c,u){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,a.A)(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,a.A)(e)+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var Ao=function(){return(0,l.A)((function t(){(0,s.A)(this,t)}),null,[{key:"post",value:(r=(0,u.A)(bo().mark((function t(e,r,n){var o,a,i;return bo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(o=new FormData).append("sourceId",e),o.append("jsonEntity",JSON.stringify(r)),t.next=5,K.A.super({url:this.url,serverKey:n,data:o,method:"POST"},"formdata",null);case 5:return a=t.sent,i=null,a?"success"===a.status&&($t.Ay&&(a.message?$t.Ay.warning((0,mo.A)("${保存成功}!")+a.message,4):$t.Ay.success((0,mo.A)("${保存成功}!"),1)),i=a.entityCode?a.entityCode:a.code):$t.Ay&&$t.Ay.error((0,mo.A)("${保存失败}!")),t.abrupt("return",{code:i,status:a?a.status:"error"});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"get",value:(e=(0,u.A)(bo().mark((function t(e,r,n){var o;return bo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,K.A.super({url:this.url,serverKey:n,query:wo({pageSize:1e3,sourceId:e},r),method:"GET"},null,null);case 2:return(o=t.sent)?"success"===o.status?($t.Ay&&o.message&&$t.Ay.warning((0,mo.A)("${查询成功}!")+o.message,4),o.entityCode?o.entityCode:o.code):o.message&&$t.Ay.error((0,mo.A)("${查询失败}!")+o.message,6):$t.Ay&&$t.Ay.error((0,mo.A)("${查询失败}!")),t.abrupt("return",o||{status:"error"});case 6:case"end":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})},{key:"delete",value:(t=(0,u.A)(bo().mark((function t(e,r,n){var o;return bo().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,K.A.super({url:this.url,serverKey:n,query:{sourceId:e,codes:r},method:"DELETE"},null,null);case 2:return(o=t.sent)?"success"===o.status?($t.Ay&&o.message&&$t.Ay.warning((0,mo.A)("${删除成功}!")+o.message,4),o.entityCode?o.entityCode:o.code):o.message&&$t.Ay.error((0,mo.A)("${删除失败}!")+o.message,6):$t.Ay&&$t.Ay.error((0,mo.A)("${删除失败}!")),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t,this)}))),function(e,r,n){return t.apply(this,arguments)})}]);var t,e,r}();(0,d.A)(Ao,"url","/v3/mstruc/data");var xo=r(95424)},1026:function(t,e,r){"use strict";r.d(e,{U:function(){return m},Y:function(){return w}});var n=r(42455),o=r(50828),a=r(33227),i=r(17636),c=r(96540),u=r(94300),s=r(95424),l=r(92749),f=r(17437);function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){(0,o.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(){d=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function w(){}function b(){}function A(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var E=A.prototype=w.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?m:v,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return b.prototype=A,a(E,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:b,configurable:!0}),b.displayName=l(A,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function v(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var m=(0,c.createContext)({locale:void 0,langPkg:{},changeLocale:function(){},t:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.join("")},translate:function(t){var e,r=[],n="",o="",a=!1,i=v(t);try{for(i.s();!(e=i.n()).done;){var c=e.value;if("$"===c)a=!0,r.push(n),n="";else{if(a&&"{"===c)continue;a&&"}"===c?(r.push(o),a=!1,o=""):a?o+=c:n+=c}}}catch(t){i.e(t)}finally{i.f()}return r.push(n),r.join("")}}),g=function(){var t=(0,i.A)(d().mark((function t(e){var r,n,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("zh"!==(r=(0,s.EV)(e))){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,l.A.getLocale(r);case 5:if(n=t.sent,o=n.value,"success"!==n.status){t.next=10;break}return t.abrupt("return",o);case 10:return t.abrupt("return",{});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),w=function(t){var e=t.children,r=(0,u.t)().navigatorLanguage,n=window.localStorage.getItem("locale"),l=JSON.parse(window.localStorage.getItem("langPkg")),h=(0,c.useState)(n||(0,s.oK)(r)),y=(0,a.A)(h,2),w=y[0],b=y[1],A=(0,c.useState)(l||{}),x=(0,a.A)(A,2),k=x[0],L=x[1],E=function(){var t=(0,i.A)(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:b(e);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return(0,c.useEffect)((function(){g(w).then((function(t){window.localStorage.setItem("locale",w);var e=p(p({},k),{},(0,o.A)({},w,t));L(e)}))}),[w]),(0,c.useEffect)((function(){window.localStorage.setItem("langPkg",JSON.stringify(k))}),[k]),(0,f.Y)(m.Provider,{value:{locale:w,langPkg:k,changeLocale:E,t:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if("zh"===w)return e.join("");for(var n="",o=!1,a=0,i=e;a<i.length;a++){var c=i[a],u=void 0===k[w]?void 0:k[w][c];if(void 0===u){o=!0;break}n+=u+" "}return o?e.join(""):n.slice(0,n.length-1)},translate:function(t){var e,r=[],n=[],o=!1,a="",i="",c=!1,u=v(t);try{for(u.s();!(e=u.n()).done;){var s=e.value;if("$"===s)c=!0,""!==a&&(r.push(a),a="",n.push(!1));else{if(c&&"{"===s)continue;c&&"}"===s?(void 0===(void 0===k[w]?void 0:k[w][i])&&(o=!0),r.push(i),n.push(!0),c=!1,i=""):c?i+=s:a+=s}}}catch(t){u.e(t)}finally{u.f()}if(""!==a&&(r.push(a),n.push(!1)),o)return r.join("");for(var l="",f=0;f<r.length;f++)n[f]?l+=(0!==f?" ":"")+k[w][r[f]]:l+=r[f];return l}}},e)}},95424:function(t,e,r){"use strict";r.d(e,{EV:function(){return s},bs:function(){return l},oK:function(){return u}});var n=r(33227),o=r(99536),a=r(92187),i={fr:["fra","fr-FR"],zh:["zh","zh-CN"]},c={fra:["fr","fr-FR"],zh:["zh","zh-CN"]},u=function(t){for(var e=0,r=Object.entries(i);e<r.length;e++){var o=(0,n.A)(r[e],2),a=o[0];if(o[1].findIndex((function(e){return e===t}))>-1)return a}return"zh"},s=function(t){for(var e=0,r=Object.entries(c);e<r.length;e++){var o=(0,n.A)(r[e],2),a=o[0];if(o[1].findIndex((function(e){return e===t}))>-1)return a}return"zh"},l={zh:a.A,fr:o.A}},48287:function(t,e){"use strict";function r(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,i=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}e.A=function(t){var e=window.localStorage.getItem("locale"),n=window.localStorage.getItem("langPkg");if(void 0===e||void 0===n)return function(t){var e,n=[],o="",a="",i=!1,c=r(t);try{for(c.s();!(e=c.n()).done;){var u=e.value;if("$"===u)i=!0,n.push(o),o="";else{if(i&&"{"===u)continue;i&&"}"===u?(n.push(a),i=!1,a=""):i?a+=u:o+=u}}}catch(t){c.e(t)}finally{c.f()}return n.push(o),n.join("")}(t);var o,a=[],i=[],c=!1,u="",s="",l=!1,f=r(t);try{for(f.s();!(o=f.n()).done;){var h=o.value;if("$"===h)l=!0,""!==u&&(a.push(u),u="",i.push(!1));else{if(l&&"{"===h)continue;l&&"}"===h?(void 0===(void 0===n[e]?void 0:n[e][s])&&(c=!0),a.push(s),i.push(!0),l=!1,s=""):l?s+=h:u+=h}}}catch(t){f.e(t)}finally{f.f()}if(""!==u&&(a.push(u),i.push(!1)),c)return a.join("");for(var p="",d=0;d<a.length;d++)i[d]?p+=(0!==d?" ":"")+n[e][a[d]]:p+=a[d];return p}},94300:function(t,e,r){"use strict";r.d(e,{Y:function(){return c},t:function(){return i}});var n=r(33227),o=r(96540),a=r(1026),i=function(){var t,e=null===(t=window)||void 0===t?void 0:t.navigator,r=Boolean(e&&"language"in e),a=(0,o.useState)(null==e?void 0:e.language),i=(0,n.A)(a,2),c=i[0],u=i[1];return window.addEventListener("languagechange",(function(){e&&u(e.language)})),{isSupported:r,navigatorLanguage:c}},c=function(){var t=(0,o.useContext)(a.U),e=t.locale,r=(t.langPkg,t.changeLocale);return{getLocale:function(){return e},setLocale:function(t){r(t)},t:t.t,translate:t.translate}}},68455:function(t,e,r){"use strict";r.d(e,{A:function(){return p}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(96540),s=r(46675),l=r(17437);function f(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,h()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}var p=function(t){function e(){return(0,n.A)(this,e),f(this,e,arguments)}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){return(0,l.Y)(s.A,this.props)}}])}(u.PureComponent)},46675:function(t,e,r){"use strict";r.d(e,{A:function(){return Y}});var n=r(42455),o=r(17636),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(45038),p=r(16044),d=r(37187),v=r(1849),y=r(28392),m=r(677),g=r(70870),w=r(46704),b=r(8130),A=r(92749),x=r(22503),k=r(35880),L=r(1026),E=r(17437);function C(){C=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function O(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,S()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function S(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(S=function(){return!!t})()}var Y=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=O(this,e,[].concat(n)),(0,l.A)(t,"formRef",f.createRef()),(0,l.A)(t,"autoSaveTimer",-1e15),(0,l.A)(t,"autoSaveInterval",void 0),(0,l.A)(t,"onClickBody",(function(e){t.autoSaveTimer=0})),(0,l.A)(t,"state",{id:"modelDtmplEdit"+b.A.getRandomNum(6),dtmplConfig:void 0,loading:!0,serial:1,dtmplData:void 0}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"loadConfigData",(0,o.A)(C().mark((function e(){var r,n,o,a,i,c;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.props,n=r.sourceId,r.open,o=r.code,a=r.serverKey,i=r.addTmplId,t.setState({loading:!0}),c=void 0,!o){e.next=9;break}return e.next=6,w.A.requestDtmplConfig(a,n,o);case 6:c=e.sent,e.next=12;break;case 9:return e.next=11,w.A.requestAddDtmplConfig(a,n,i);case 11:c=e.sent;case 12:return e.next=14,t.loadData(c);case 14:t.setState({dtmplConfig:c,loading:!1});case 15:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"loadData",function(){var e=(0,o.A)(C().mark((function e(r){var n,o,a,i,c,u,s,l,f;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.props,o=n.sourceId,a=n.code,i=n.defaultDtmplData,c=n.open,u=n.serverKey,s=n.codeSource,c){e.next=3;break}return e.abrupt("return");case 3:if(r.autoSaveInterval&&r.autoSaveInterval>0&&(t.autoSaveInterval&&clearInterval(t.autoSaveInterval),t.autoSaveInterval=setInterval((function(){t.autoSaveTimer>=r.autoSaveInterval?(t.autoSaveTimer=-1e15,t.doSubmit(void 0)):t.autoSaveTimer=t.autoSaveTimer+1}),1e3)),(l=a)||!s){e.next=9;break}return e.next=8,A.A.queryCode(o,s,u);case 8:l=e.sent;case 9:if(!l){e.next=17;break}return t.setState({loading:!0}),e.next=13,A.A.getDtmplData(r,u,o,l);case 13:f=e.sent,t.setState({dtmplData:f,id:l,loading:!1}),e.next=18;break;case 17:i?t.setState({dtmplData:i,loading:!1}):t.setState({dtmplData:{code:void 0,title:void 0,fieldMap:{},arrayMap:{}},loading:!1});case 18:setTimeout((function(){return t.onValuesChange()}),300);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,l.A)(t,"onValuesChange",(function(){t.setState({serial:t.state.serial+1})})),(0,l.A)(t,"doSubmit",(function(e,r,n){var o=t.props.mainCode;t.formRef.current.setFieldsValue({actionId:e}),o&&t.formRef.current.setFieldsValue({mainCode:o}),n&&t.formRef.current.setFieldsValue(n),t.formRef.current.submit()})),(0,l.A)(t,"getFooter",(function(){var e=t.props,r=e.onCancel,n=e.serverKey,o=t.state,a=(o.dtmplData,o.serial),i=[],c=t.state.dtmplConfig,u=t.context.translate;return c&&c.buttons&&c.buttons.includes("dtmplSave")&&i.unshift((0,E.Y)(h.Ay,{type:"primary",onClick:function(){return t.doSubmit()}},u("${保存}"))),c&&c.actions.forEach((function(e,r){i.unshift((0,E.Y)(x.A,{serverKey:n,iconType:"icon-title",hiddenType:"disabled",serial:a,key:e.id,formRef:t.formRef,actionConfig:e,doAction:t.doSubmit}))})),i.unshift((0,E.Y)(p.A,{key:"back",placement:"topLeft",title:u("${确定要取消本次修改内容吗}?"),onConfirm:r,okText:u("${确定}"),cancelText:u("${取消}")},(0,E.Y)(h.Ay,null,u("${取消}")))),i})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(n=(0,o.A)(C().mark((function t(){return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.props.open){t.next=3;break}return t.next=3,this.loadConfigData();case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,o.A)(C().mark((function t(e){var r;return C().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.state.dtmplConfig,!e||e==this.props){t.next=9;break}if(e.sourceId==this.props.sourceId&&e.code==this.props.code&&e.addTmplId==this.props.addTmplId&&null!=r){t.next=7;break}return t.next=5,this.loadConfigData();case 5:t.next=9;break;case 7:return t.next=9,this.loadData(r);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.autoSaveInterval&&clearInterval(this.autoSaveInterval)}},{key:"render",value:function(){var t=this.props,e=t.height,r=t.onOk,n=t.onCancel,o=(t.code,t.bodyWidth,t.sourceId),a=t.open,i=t.mainCode,c=t.width,u=t.pageType,s=t.placement,l=t.maxColsOnRow,h=t.title,p=t.serverKey,w=this.state,b=w.dtmplConfig,A=w.id,x=w.dtmplData,L=h||(b?b.title:"");return(0,E.Y)(f.Fragment,null," ","modal"==u?(0,E.Y)(d.A,{open:a,width:c,title:L,closable:!1,bodyStyle:{height:e,overflow:"auto"},destroyOnClose:!0,centered:!0,onCancel:n,footer:this.getFooter()},(0,E.Y)(k.Ay,{autoHide:!0,autoHideTimeout:1e3},(0,E.Y)("div",{onClick:this.onClickBody},(0,E.Y)(g.A,{serverKey:p,mainCode:i,parentId:A,dtmplConfig:b,formRef:this.formRef,sourceId:o,onFinish:r,maxColsOnRow:l,showConfirm:!1,dtmplData:x,onValuesChange:this.onValuesChange})))):"drawer"==u?(0,E.Y)(v.A,{onClick:this.onClickBody,title:L,placement:s,closable:!0,mask:!1,onClose:n,open:a,width:c,style:{maxWidth:1960},extra:(0,E.Y)(y.A,null,this.getFooter())},(0,E.Y)(g.A,{serverKey:p,mainCode:i,parentId:A,dtmplConfig:b,formRef:this.formRef,sourceId:o,onFinish:r,maxColsOnRow:l,showConfirm:!1,dtmplData:x,onValuesChange:this.onValuesChange})):(0,E.Y)(m.A,{title:L},(0,E.Y)(g.A,{serverKey:p,mainCode:i,parentId:A,dtmplConfig:b,formRef:this.formRef,sourceId:o,onFinish:r,maxColsOnRow:l,showConfirm:!1,dtmplData:x,onValuesChange:this.onValuesChange})))}}]);var r,n}(f.PureComponent);(0,l.A)(Y,"defaultProps",{showConfirm:!0,height:"76vh",width:"76vw",bodyWidth:"100%",forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},okText:"确定",cancelText:"取消",pageType:"modal",placement:"left"}),(0,l.A)(Y,"contextType",L.U)},45705:function(t,e,r){"use strict";var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(50828),s=r(96540),l=r(76390),f=r(68455),h=r(17437);function p(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,d()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}var v=function(t){function e(){var t;(0,n.A)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=p(this,e,[].concat(o)),(0,u.A)(t,"state",{showDtmplEdit:!1}),(0,u.A)(t,"goDtmpl",(function(){t.setState({showDtmplEdit:!0})})),(0,u.A)(t,"handleDtmplEdit",(function(e){t.setState({showDtmplEdit:!1})})),t}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){var t=this,e=this.state.showDtmplEdit,r=this.props,n=r.sourceId,o=r.code,a=r.mainCode,i=r.editable,c=r.serverKey,u=r.codeSource,p=r.title,d=r.showHeader,v=r.addTmplId;return(0,h.Y)(s.Fragment,null,(0,h.Y)(l.A,{showHeader:d,title:p,codeSource:u,serverKey:c,goDtmpl:i?this.goDtmpl:null,sourceId:n,code:o,mainCode:a}),e?(0,h.Y)(f.A,{addTmplId:v,codeSource:u,serverKey:c,open:e,onCancel:function(){t.setState({showDtmplEdit:!1})},sourceId:n,code:o,onOk:this.handleDtmplEdit}):null)}}])}(s.PureComponent);(0,u.A)(v,"defaultProps",{editable:!0,showHeader:!0}),e.A=v},44920:function(t,e,r){"use strict";var n=r(42455),o=r(17636),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(1849),p=r(28392),d=r(45038),v=r(45705),y=r(17437);function m(){m=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function A(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var E=A.prototype=w.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return b.prototype=A,a(E,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:b,configurable:!0}),b.displayName=l(A,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function g(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,w()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}var b=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=g(this,e,[].concat(n)),(0,l.A)(t,"state",{}),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(r=(0,o.A)(m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.title,r=t.sourceId,n=t.code,o=t.placement,a=t.open,i=t.onClose,c=t.width,u=t.cancelText,s=t.editable,l=t.serverKey,m=t.codeSource;return(0,y.Y)(h.A,{placement:o,title:(0,y.Y)(f.Fragment,null,e),closable:!0,mask:!1,onClose:i,open:a,width:c,style:{maxWidth:"92vw"},extra:(0,y.Y)(p.A,null,(0,y.Y)(d.Ay,{onClick:function(){return i()}},u))},(0,y.Y)(v.A,{codeSource:m,serverKey:l,editable:s,sourceId:r,code:n}))}}]);var r}(f.PureComponent);(0,l.A)(b,"defaultProps",{height:"82vh",width:"82vw",forceRender:!0,cancelText:"关闭",placement:"left",open:!1,editable:!0}),e.A=b},46935:function(t,e,r){"use strict";var n=r(42455),o=r(17636),a=r(44274),i=r(2532),c=r(63549),u=r(91985),s=r(11504),l=r(50828),f=r(96540),h=r(8130),p=r(80112),d=r(46704),v=r(22733),y=r(46675),m=r(1849),g=r(28392),w=r(45038),b=r(56522),A=r(1026),x=r(17437);function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(){L=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&o.call(k,c)&&(A=k);var E=b.prototype=g.prototype=Object.create(A);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function E(t,e,r){return e=(0,u.A)(e),(0,c.A)(t,C()?Reflect.construct(e,r||[],(0,u.A)(t).constructor):e.apply(t,r))}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}var O=function(t){function e(){var t;(0,a.A)(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t=E(this,e,[].concat(n)),(0,l.A)(t,"state",{ltmplConfigRes:void 0,pageNo:void 0,pageSize:void 0,criteriaData:void 0,showDtmplView:!1,showDtmplEdit:!1,showDtmplCustomEdit:!1,selectedCode:void 0,showDraw:!1,ractionId:void 0,collapse:!1,addTmplId:void 0}),(0,l.A)(t,"context",void 0),(0,l.A)(t,"loadLtmplConfig",(0,o.A)(L().mark((function e(){var r,n,o,a,i,c;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.sourceId,o=r.serverKey,e.next=3,d.A.requestLtmplConfig(o,n);case 3:(a=e.sent)&&(c=a.ltmplConfig.defaultCriteriaValue)&&(i=t.toCriteriaData(c)),t.setState({ltmplConfigRes:a,criteriaData:i});case 6:case"end":return e.stop()}}),e)})))),(0,l.A)(t,"toCriteriaData",(function(t){var e={};if(t)for(var r in t)e[r]=h.A.configParamTrans(t[r]);return e.sequence=h.A.getRandomNum(6),e})),(0,l.A)(t,"showView",(function(e){t.setState({selectedCode:e,showDtmplView:!0})})),(0,l.A)(t,"doEdit",(function(e,r,n){var o=t.props.doCustomEdit;n?o?o(e,r,(function(){t.doSearch(t.state.criteriaData)})):t.setState({selectedCode:e,showDtmplCustomEdit:!0}):t.setState({selectedCode:e,showDtmplEdit:!0})})),(0,l.A)(t,"doRAction",(function(e,r){t.setState({selectedCode:r,showDraw:!0,ractionId:e})})),(0,l.A)(t,"doCreate",(function(e,r){var n=t.props.doCustomCreate;r?n?n((function(){t.doSearch(t.state.criteriaData)})):t.setState({selectedCode:null,showDtmplCustomEdit:!0}):t.setState({selectedCode:null,showDtmplEdit:!0,addTmplId:e})})),(0,l.A)(t,"closeDrawer",(function(){t.setState({showDraw:!1})})),(0,l.A)(t,"doSearch",(function(e){var r=t.props,n=r.sourceId,o=r.mainCode,a=r.collapsible,i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){(0,l.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e);o&&(i.mainCode=o),i.sourceId=n,a&&t.setState({collapse:!1}),t.setState({criteriaData:t.toCriteriaData(i)})})),(0,l.A)(t,"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),(0,l.A)(t,"handleDtmplEdit",(function(e){t.doSearch(t.state.criteriaData),t.setState({showDtmplEdit:!1})})),t}return(0,s.A)(e,t),(0,i.A)(e,[{key:"componentDidMount",value:(n=(0,o.A)(L().mark((function t(){var e,r,n;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.loadLtmplConfig(),e=this.props,r=e.collapsible,n=e.initCollapse,r&&this.setState({collapse:n});case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,o.A)(L().mark((function t(e){var r,n,o;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props,n=r.sourceId,o=r.mainCode,e&&e.sourceId==n?o&&e.mainCode!=o&&this.loadLtmplConfig():this.loadLtmplConfig();case 2:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,r=this.state,n=r.ltmplConfigRes,o=r.criteriaData,a=r.pageSize,i=r.pageNo,c=r.showDtmplView,u=r.selectedCode,s=r.showDtmplEdit,l=r.showDtmplCustomEdit,h=r.ractionId,d=r.showDraw,A=r.collapse,k=r.addTmplId,L=this.props,E=L.sourceId,C=L.mainCode,O=L.showView,S=L.doSearch,Y=L.doRAction,j=L.funcMode,P=L.tip,I=L.title,T=L.collapsible,N=L.initCollapse,_=L.doCustomEdit,D=L.doCustomCreate,R=L.serverKey,F=L.readOnly,G=this.context.translate;if(n){var $=n.ltmplConfig,M=$.buttons,K=$.customEditPagePath;return(0,x.Y)(f.Fragment,null,(0,x.Y)(p.A,{readOnly:F,tip:P,serverKey:R,pageSize:a,pageNo:i,onChangePage:this.onChangePage,collapsible:T,initCollapse:N&&A,title:I,funcMode:j,mainCode:C,showView:O||this.showView,doRAction:Y||this.doRAction,doSearch:S||this.doSearch,doEdit:this.doEdit,doCreate:this.doCreate,sourceId:E,criteriaData:o,customEditable:!!_,customCreatable:!!D,ltmplConfig:n.ltmplConfig}),M.includes("detail")&&c?(0,x.Y)(v.A,{serverKey:R,open:c,onCancel:function(){t.setState({showDtmplView:!1})},mainCode:C,sourceId:E,code:u}," "):"",(M.includes("dtmplEdit")||M.includes("dtmplAdd"))&&s?(0,x.Y)(y.A,{addTmplId:k,serverKey:R,open:s,onCancel:function(){t.setState({showDtmplEdit:!1})},sourceId:E,mainCode:C,code:u,onOk:this.handleDtmplEdit}):"",l?(0,x.Y)(b.A,{serverKey:R,open:l,onOk:function(){t.doSearch(t.state.criteriaData),t.setState({showDtmplCustomEdit:!1})},customPath:K,sourceId:E,mainCode:C,code:u}):"",(0,x.Y)(m.A,{placement:"left",title:G("${关联查询}"),closable:!0,mask:!1,onClose:this.closeDrawer,open:d,width:"calc(100% - 280px)",style:{maxWidth:1960},extra:(0,x.Y)(g.A,null,(0,x.Y)(w.Ay,{onClick:this.closeDrawer},G("${关闭}")))},(0,x.Y)(e,{serverKey:R,sourceId:h,mainCode:u})))}return(0,x.Y)(f.Fragment,null)}}]);var r,n}(f.PureComponent);(0,l.A)(O,"contextType",A.U),(0,l.A)(O,"defaultProps",{collapsible:!1,initCollapse:!1,readOnly:!1}),e.A=O},80112:function(t,e,r){"use strict";r.d(e,{A:function(){return Zt}});var n=r(42455),o=r(62477),a=r(21745),i=r(17636),c=r(44274),u=r(2532),s=r(63549),l=r(91985),f=r(11504),h=r(50828),p=r(96540),d=r(39356),v=r(37977),y=r(45038),m=r(28392),g=r(16044),w=r(28073),b=r(91196),A=r(47152),x=r(16370),k=r(677),L=r(36552),E=r(45806),C=r(29197),O=r(30234),S=r(8597),Y=r(11058),j=r(92295),P=r(40261),I=r(39277),T=r(57046),N=r(93598),_=r(42877),D=r(49237),R=r(39822),F=r(77028),G=r(40756),$=r(84890),M=r(71822),K=r(25668),B=r(13341),q=r(80581),V=r(21426),U=r(54763),H=r(92749),z=r(33958),W=r(11733),Q=r(74712),J=r(8130),X=r(61021),Z=r(53357),tt=r(94300),et=r(17437);function rt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return nt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ot(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,at()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function at(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(at=function(){return!!t})()}var it=(0,X.Zj)((function(t){var e=t.value,r=t.index,n=t.disabledColIds,o=(0,tt.Y)().translate;return(0,et.Y)(x.A,{key:r,span:24},(0,et.Y)(b.A,{disabled:n.includes(e.id),value:e.id},(0,et.Y)(ct,null)," ",o("${"+e.title+"}")))})),ct=(0,X.D)((function(){return(0,et.Y)(C.A,{style:{cursor:"grab",color:"#999"}})})),ut=(0,X.q6)((function(t){var e=t.items,r=t.selected,n=t.onChange,o=t.disabledColIds;return(0,et.Y)(b.A.Group,{value:r,onChange:n},(0,et.Y)(A.A,{style:{width:"148px"}},e.map((function(t,e){return(0,et.Y)(it,{key:"item-".concat(t.id),index:e,value:t,disabledColIds:o})}))))})),st=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=ot(this,e,[].concat(n)),(0,h.A)(t,"onChange",(function(e){var r,n=t.props,o=n.onChangeHiddenCols,a=n.columns,i=n.ignoredColIds,c=[],u=rt(a);try{for(u.s();!(r=u.n()).done;){var s=r.value;0==e.length||e.includes(s.id)||i.includes(s.id)||c.push(s.id)}}catch(t){u.e(t)}finally{u.f()}o(c)})),(0,h.A)(t,"onSortEnd",(function(e){var r=e.oldIndex,n=e.newIndex,o=t.props,a=o.columns,i=o.onChangeColSort;r!==n&&i((0,Z.p)([].concat(a),r,n).filter((function(t){return!!t})))})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"render",value:function(){var t=this.props,e=t.hiddenColIds,r=t.columns,n=t.disabledColIds,o=[];if(r){var a,i=rt(r);try{for(i.s();!(a=i.n()).done;){var c=a.value;e&&e.includes(c.id)||o.push(c.id)}}catch(t){i.e(t)}finally{i.f()}}return(0,et.Y)(ut,{disabledColIds:n,helperClass:"row-dragging",items:r,selected:o,onChange:this.onChange,onSortEnd:this.onSortEnd})}}])}(p.PureComponent);(0,h.A)(st,"defaultProps",{ignoredColIds:[]});var lt=st,ft=r(50770),ht=r(7142),pt=r(6754),dt=r(19612),vt=r(1026);function yt(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,mt()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function mt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mt=function(){return!!t})()}var gt=ft.Ay.Group,wt=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=yt(this,e,[].concat(n)),(0,h.A)(t,"state",{interrupted:!1,disabledPageNoInput:!1,disabledCurrentPageRadio:!1,disabledAllPageRadio:!1,exportId:void 0,startPageNo:1,endPageNo:10,exportMode:"all",percent:0,exportStatus:"ready",exportingMsg:""}),(0,h.A)(t,"context",void 0),(0,h.A)(t,"onChangeRadio",(function(e){t.setState({exportMode:e.target.value,startPageNo:1,endPageNo:10})})),(0,h.A)(t,"timerID",void 0),(0,h.A)(t,"setInerval",(function(e){t.timerID&&clearInterval(t.timerID),t.timerID=e})),(0,h.A)(t,"handleStart",(function(){var e=t.props,r=e.queryKey,n=e.currentPage,o=(e.title,e.serverKey),a=t.state,i=a.startPageNo,c=a.endPageNo,u=a.exportMode;t.setState({exportStatus:"ready"}),dt.A.super({url:"/v3/ltmp/data/exporter",serverKey:o,method:"GET",query:{scope:u,withDetail:!1,queryKey:r.key,startPageNo:"all"==u?i:n.pageNo,endPageNo:"all"==u?c:n.pageNo}}).then((function(e){e.exportId?(t.setState({exportId:e.exportId,exportStatus:"exporting"}),t.statusOut(e.exportId),t.setInerval(setInterval((function(){return t.statusOut(e.exportId)}),2e3))):t.setState({exportStatus:"fail"})}))})),(0,h.A)(t,"statusOut",(function(e){var r=t.props.serverKey,n=t.state.exportStatus;dt.A.super({url:"/v3/exporter/status",serverKey:r,query:{interrupted:"stop"==n,exportId:e},method:"GET"},"","none").then((function(e){"error"==e.status?(clearInterval(t.timerID),console.log(e.statusMsg,t.timerID),t.setState({exportingMsg:e.statusMsg,exportStatus:"stop",percent:0})):e.breaked?(clearInterval(t.timerID),t.setState({exportingMsg:"已终止",exportStatus:"stop",percent:0})):t.setState({exportingMsg:e.statusMsg,percent:Math.floor(e.current/e.totalCount*100)}),"stop"==n&&clearInterval(t.timerID),!0===e.completed&&(clearInterval(t.timerID),t.setState({exportStatus:"success",exportingMsg:e.statusMsg,percent:Math.floor(e.current/e.totalCount*100)}))}))})),(0,h.A)(t,"download",(function(){var e=t.props,r=e.title,n=e.serverKey,o=t.state.exportId,a=J.A.hydrocarbonToken();J.A.downloadFile(J.A.joinPath(J.A.api(n),"/v3/exporter/excel?exportId=".concat(o,"&@token=").concat(a,"&@programToken=").concat(J.A.programCode(n))),r)})),(0,h.A)(t,"handleCancel",(function(){t.setState({percent:0,exportStatus:"stop",exportId:void 0})})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"componentWillUnmount",value:function(){console.log("销毁")}},{key:"render",value:function(){var t=this,e=this.props,r=e.defaultExportMode,n=e.currentPage,o=this.state,a=o.startPageNo,i=o.endPageNo,c=o.disabledPageNoInput,u=o.exportMode,s=o.exportStatus,l=o.percent,f=o.exportingMsg,h=this.context.translate;return(0,et.Y)("div",{style:{width:"400px"},className:"exportFrame"},n?(0,et.Y)(p.Fragment,null,(0,et.Y)(gt,{onChange:this.onChangeRadio,value:u,defaultValue:r},(0,et.Y)(ft.Ay,{value:"current",disabled:"exporting"==s},h("${导出当前页}")),(0,et.Y)(ft.Ay,{value:"all",disabled:"exporting"==s},h("${导出所有}"))),(0,et.Y)(L.A,null)):"","all"==u?(0,et.Y)("div",null,h("${页号}:"),(0,et.Y)(ht.A,{min:1,value:a,placeholder:h("${开始页号}"),onChange:function(e){return t.setState({startPageNo:e})},disabled:c}),"-",(0,et.Y)(ht.A,{min:1,value:i,placeholder:h("${结束页号}"),onChange:function(e){return t.setState({endPageNo:e})},disabled:c}),(0,et.Y)(L.A,null)):"",(0,et.Y)("div",null,"ready"==s?(0,et.Y)(y.Ay,{type:"primary",onClick:this.handleStart},h("${开始导出}")):"exporting"==s?(0,et.Y)(y.Ay,{onClick:this.handleCancel},h("${取消导出}")):(0,et.Y)(y.Ay,{onClick:this.handleStart},h("${重新导出}")),"success"==s?(0,et.Y)(y.Ay,{type:"primary",style:{marginLeft:10},disabled:"success"!=s,onClick:this.download},h("${下载文件}")):"",l>0?(0,et.Y)(pt.A,{percent:l,size:"small",status:"active"}):"",(0,et.Y)("p",null,f)))}}])}(p.PureComponent);(0,h.A)(wt,"defaultProps",{defaultExportMode:"all"}),(0,h.A)(wt,"contextType",vt.U);var bt=r(46704);function At(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?At(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):At(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kt(){kt=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Lt(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,Et()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function Et(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Et=function(){return!!t})()}var Ct=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t=Lt(this,e,[].concat(n)),(0,h.A)(t,"state",{pageNo:void 0,pageSize:void 0,ltmplConfigRes:void 0,criteriaData:{}}),(0,h.A)(t,"loadData",function(){var e=(0,i.A)(kt().mark((function e(r){var n,o,a,i;return kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,o=n.sourceId,a=n.serverKey,e.next=3,bt.A.requestL2LtmplConfig(a,o);case 3:i=e.sent,t.setState({ltmplConfigRes:i,criteriaData:r});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.A)(t,"doSearch",(function(e){var r=t.props,n=r.sourceId,a=r.innerQueryKey,i=xt({},e);(0,o.A)(t.state),i.innerQueryKey=a,i.sourceId=n,t.setState({criteriaData:i})})),(0,h.A)(t,"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"componentDidMount",value:(n=(0,i.A)(kt().mark((function t(){var e,r,n,o;return kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.state.criteriaData,r=this.props,n=r.sourceId,o=r.innerQueryKey,e.innerQueryKey=o,e.sourceId=n,this.loadData(e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,i.A)(kt().mark((function t(e){var r,n,o,a,i,c,u,s;return kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props,n=r.sourceId,o=r.innerQueryKey,a=e.sourceId,i=e.innerQueryKey,c=this.state.criteriaData,n&&n!=a?((u={}).innerQueryKey=o,u.sourceId=n,this.loadData(u)):o!=i&&((s=xt({},c)).innerQueryKey=o,this.setState({criteriaData:s}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.ltmplConfigRes,r=t.criteriaData,n=t.pageNo,o=t.pageSize,a=this.props,i=a.sourceId,c=a.serverKey;return e?(0,et.Y)(Zt,{serverKey:c,pageSize:o,pageNo:n,onChangePage:this.onChangePage,doSearch:this.doSearch,level:"l2",criteriaData:r,sourceId:i,ltmplConfig:e.ltmplConfig}):""}}]);var r,n}(p.PureComponent),Ot=Ct,St=r(22503),Yt=r(89467),jt=r(47852),Pt=r(56679),It=r(43455);function Tt(){Tt=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Nt(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,_t()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function _t(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_t=function(){return!!t})()}var Dt=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Nt(this,e,[].concat(n)),(0,h.A)(t,"state",{popoverOpen:!1,loading:!1}),(0,h.A)(t,"context",void 0),(0,h.A)(t,"formRef",p.createRef()),(0,h.A)(t,"onRestat",function(){var e=(0,i.A)(Tt().mark((function e(r){var n,o,a,i;return Tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,o=n.sourceId,a=n.onfinish,i=n.serverKey,t.setState({loading:!0}),e.next=4,H.A.increCalc(i,o,r);case 4:t.setState({loading:!1}),a();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"render",value:function(){var t=this,e=this.state,r=e.popoverOpen,n=e.loading,o=this.props,a=o.fields,i=o.value,c=o.serverKey,u=this.context.translate;return(0,et.Y)(w.A,{open:r,content:(0,et.Y)(k.A,{loading:n,style:{width:1e3},title:u("${重新统计}"),bodyStyle:{overflow:"auto"},extra:(0,et.Y)(p.Fragment,null,(0,et.Y)(m.A,{size:[8,0]},(0,et.Y)(y.Ay,{type:"primary",onClick:function(){t.formRef.current.submit()}},u("${确定}")),(0,et.Y)(y.Ay,{onClick:function(){t.setState({popoverOpen:!1})}},(0,et.Y)(jt.A,null))))},(0,et.Y)(Yt.A,{labelWrap:!0,ref:this.formRef,name:"control-hooks",onFinish:this.onRestat},(0,et.Y)(It.A,{serverKey:c,nameAttr:"id",fields:a,valueMap:i}))),placement:"bottomLeft",trigger:"click"},(0,et.Y)(v.A,{title:u("${重新统计}")},(0,et.Y)(y.Ay,{onClick:function(){t.setState({popoverOpen:!r})}},(0,et.Y)(Pt.A,null))))}}])}(p.PureComponent);(0,h.A)(Dt,"defaultProps",{}),(0,h.A)(Dt,"contextType",vt.U);var Rt=Dt,Ft=r(27251),Gt=r(1490),$t=r(13050),Mt=r(84957);function Kt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function Bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qt(){qt=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function Vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ut(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ht(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,zt()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zt=function(){return!!t})()}var Wt=(0,X.D)((function(){return(0,et.Y)(C.A,{style:{cursor:"grab",color:"#999"}})})),Qt=(d.A.Panel,["20000","10000"]),Jt=!0,Xt=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),u=0;u<r;u++)n[u]=arguments[u];return t=Ht(this,e,[].concat(n)),(0,h.A)(t,"state",{sortedColConfigs:void 0,queryKey:void 0,loading:!0,disableCols:void 0,hiddenColIds:Qt,selectedRows:[],selectedDatas:[],hiddenRowCodes:[],viewModels:[],drillingColIds:void 0,disabledColIds:void 0,showL2ActTable:!1,showL2Chart:!1}),(0,h.A)(t,"context",void 0),(0,h.A)(t,"loadData",function(){var e=(0,i.A)(qt().mark((function e(r,n,o){var i,c,u,s,l,f,h,p,d,v,y,m,g,w,b;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.props,c=i.sourceId,u=i.criteriaData,s=i.ltmplConfig,l=i.mainCode,f=i.level,h=i.pageNo,p=i.pageSize,d=i.serverKey,s){e.next=3;break}return e.abrupt("return");case 3:if(t.setState({loading:!0}),v=[],y=(0,a.A)(r),u&&u.drillingColIds&&(m=(0,a.A)(u.drillingColIds),s.columns.forEach((function(t){"dimension"!=t.statColType||m.includes(t.id)||y.includes(t.id)||(y.push(t.id),v.push(t.id)),"dimension"!=t.statColType||m.includes(t.id)||v.includes(t.id)||v.push(t.id)})),y=y.filter((function(t){return!m.includes(t)}))),s.columns.forEach((function(t){t.hidden&&y.push(t.id)})),g=s.defaultPageSize,w={pageNo:h||1,pageSize:p||g||10,virtualEndPageNo:void 0},!f||"l2"!=f){e.next=16;break}return e.next=13,H.A.requestL2LtmplQueryKey(d,c,Ut(Ut(Ut({},u),w),{},{mainCode:l}));case 13:b=e.sent,e.next=19;break;case 16:return e.next=18,H.A.requestLtmplQueryKey(d,c,Ut(Ut(Ut({},u),w),{},{mainCode:l}));case 18:b=e.sent;case 19:t.setState({disabledColIds:v,hiddenColIds:y,hiddenRowCodes:n,sortedColConfigs:o,queryKey:b,loading:!1,showL2Chart:!1,selectedRows:[],selectedDatas:[],viewModels:t.state.viewModels.length>0?t.state.viewModels:["table"]});case 20:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.A)(t,"buildTableColumns",(function(e,r,n,o){var a=t.props,c=a.showView,u=a.doEdit,s=a.doRAction,l=a.customEditable,f=a.serverKey,h=a.readOnly,d=a.sourceId,w=t.context.translate,b=e.buttons,A=[],x=0;return(o||e.columns).forEach((function(o){var a={};r&&r.includes(o.id)||A.push(a),a.title=o.title,a.dataIndex=o.id,x++;var k=U.A.getSupportControlType(o);x<10&&"操作"!=o.title&&"序号"!=o.title&&r.includes("10000")&&V.A.sort(a,k),"序号"===o.title?(a.render=function(t,e,r){return(0,et.Y)("label",null,r+1)},o.sorter=void 0):"10000"==o.id?(a.title=(0,et.Y)(v.A,{title:w("${拖拽排序}")},w("${"+o.title+"}")),a.width=30,a.dataIndex=o.id,a.className="drag-visible",a.render=function(){return(0,et.Y)(Wt,null)}):"20000"==o.id?(a.align="center",a.width=14,a.title=(0,et.Y)(p.Fragment,null,n.length>0?(0,et.Y)(v.A,{title:w("${取消隐藏}")},(0,et.Y)(y.Ay,{style:{marginRight:"0px"},size:"small",shape:"circle",icon:(0,et.Y)(O.A,null),type:"text",onClick:function(){return t.unHiden()}})):""),a.render=function(e,r){return(0,et.Y)(v.A,{title:w("${隐藏}")}," ",(0,et.Y)(y.Ay,{style:{marginRight:"0px"},icon:(0,et.Y)(S.A,null),type:"dashed",size:"small",onClick:function(){return t.onHide(r.code)}}))}):"操作"===o.title?(a.fixed="right",a.align="center",a.className="opsColumn",a.title=(0,et.Y)(p.Fragment,null,w("${操作}")),a.render=function(r,n){return(0,et.Y)(m.A,{size:[0,4],wrap:!0},b.includes("detail")&&c?(0,et.Y)(y.Ay,{size:"small",type:"primary",icon:(0,et.Y)(Y.A,null),onClick:function(){return c(n.code)}}):"",b.includes("customDetail")&&c?(0,et.Y)(y.Ay,{size:"small",type:"primary",icon:(0,et.Y)(j.A,null),onClick:function(){return c(n.code,!0)}}):"",!b.includes("dtmplEdit")||!u||h||e.editAction&&!Ft.A.isShow(e.editAction,[n],void 0)?"":(0,et.Y)(y.Ay,{size:"small",type:"dashed",icon:(0,et.Y)(P.A,null),onClick:function(){return u(n.code,"update")}}),!b.includes("dtmplCustomEdit")&&!l||!u||h||e.editAction&&!Ft.A.isShow(e.editAction,[n],void 0)?"":(0,et.Y)(y.Ay,{size:"small",type:"dashed",icon:(0,et.Y)(I.A,null),onClick:function(){return u(n.code,"update",!0)}}),b.includes("copy")&&u&&!h?(0,et.Y)(v.A,{title:w("${复制}")},(0,et.Y)(y.Ay,{size:"small",type:"dashed",icon:(0,et.Y)(T.A,null),onClick:(0,i.A)(qt().mark((function t(){var e,r;return qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!1,(b.includes("dtmplCustomEdit")||l)&&(e=!0),t.next=4,H.A.doCopy(f,d,n.code);case 4:(r=t.sent)&&u(r,"update",e);case 6:case"end":return t.stop()}}),t)})))})):"",e.ractions&&!h?e.ractions.map((function(t){return(0,et.Y)(y.Ay,{key:t.id,size:"small",type:"dashed",onClick:function(){return s(t.id,n.code)}},t.title)})):"",e.rowActions&&!h&&e.rowActions.length>0?e.rowActions.map((function(e){return(0,et.Y)(St.A,{serverKey:f,iconType:"icon",key:e.id,data:[n],actionConfig:e,doAction:t.doRowAction,buttonSize:"small",serial:1})})):"",e.rowJumps&&e.rowJumps.length>0&&!h?e.rowJumps.map((function(e){return(0,et.Y)(y.Ay,{key:e.id,size:"small",type:"dashed",onClick:function(){return t.doRowJump(e,n)}},e.title)})):"",e.rowCQuerys&&e.rowCQuerys.length>0&&!h?e.rowCQuerys.map((function(t){return(0,et.Y)(Gt.A,{serverKey:f,key:t.id,size:"small",pageType:"drawer",cQueryConfig:t,mainCode:t.mainCodeColId?n[t.mainCodeColId]:n.code})})):"",!b.includes("singleDelete")||h||e.deleteAction&&!Ft.A.isShow(e.deleteAction,[n],void 0)?"":(0,et.Y)(g.A,{placement:"rightBottom",title:w("${确定要[删除]此数据吗}?"),onConfirm:function(){t.doDeleteByCode(n.code)},okText:w("${确定}"),cancelText:w("${取消}"),okType:"danger"},(0,et.Y)(y.Ay,{size:"small",type:"dashed",danger:!0},(0,et.Y)(N.A,null))))}):(a.className="opsColumn",a.title=w("${"+o.title+"}"),a.render=function(t,e){return(0,et.Y)(Q.A,{serverKey:f,fieldConfig:o,value:e[o.id],holderType:"table"})})})),A})),(0,h.A)(t,"handleShowChart",(function(){t.setState({showL2Chart:!t.state.showL2Chart})})),(0,h.A)(t,"handleDataAnalysis",(function(){t.setState({showL2ActTable:!t.state.showL2ActTable})})),(0,h.A)(t,"unHiden",(function(){t.props.ltmplConfig;var e=t.state;e.hiddenColIds,e.sortedColConfigs,t.setState({hiddenRowCodes:[]})})),(0,h.A)(t,"onHide",(function(e){t.props.ltmplConfig;var r=t.state,n=r.hiddenRowCodes,o=(r.hiddenColIds,r.sortedColConfigs,[].concat((0,a.A)(n),[e]));t.setState({hiddenRowCodes:o})})),(0,h.A)(t,"changeViewModel",(function(e){t.setState({viewModels:e})})),(0,h.A)(t,"changeHiddenColumns",(function(e){(0,o.A)(t.props),(0,o.A)(t.state),t.setState({showL2Chart:!1,hiddenColIds:e})})),(0,h.A)(t,"doSelectedAction",function(){var e=(0,i.A)(qt().mark((function e(r,n,o){var a;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t.state.selectedRows,t.doAction(r,a,o);case 2:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.A)(t,"doAction",function(){var e=(0,i.A)(qt().mark((function e(r,n,o){var a,i,c,u,s;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.props.serverKey,i=t.state,c=i.hiddenColIds,u=i.hiddenRowCodes,s=i.sortedColConfigs,t.setState({loading:!0}),e.next=5,H.A.postActions(a,r,n,o);case 5:e.sent?t.loadData(c,u,s):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.A)(t,"doRowAction",function(){var e=(0,i.A)(qt().mark((function e(r,n,o){return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.doAction(r,[{title:void 0,code:n[0]}],o);case 1:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.A)(t,"doDelete",(0,i.A)(qt().mark((function e(){var r,n,o,a,i,c,u,s;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.sourceId,o=r.serverKey,a=t.state,i=a.selectedRows,c=a.hiddenColIds,u=a.hiddenRowCodes,s=a.sortedColConfigs,t.setState({loading:!0}),e.next=5,H.A.deleteData(o,n,i);case 5:e.sent?t.loadData(c,u,s):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})))),(0,h.A)(t,"doDeleteByCode",function(){var e=(0,i.A)(qt().mark((function e(r){var n,o,a,i,c,u,s;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,o=n.sourceId,a=n.serverKey,i=t.state,c=i.hiddenColIds,u=i.hiddenRowCodes,s=i.sortedColConfigs,t.setState({loading:!0}),e.next=5,H.A.deleteByCode(a,o,[r]);case 5:e.sent?t.loadData(c,u,s):t.setState({loading:!1});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.A)(t,"doSelectedCQuery",function(){var t=(0,i.A)(qt().mark((function t(e){return qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),(0,h.A)(t,"doJump",function(){var t=(0,i.A)(qt().mark((function t(e,r){var n,o,a,i,c,u,s,l,f,h,p,d,v,y,m,g,w;return qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.fieldMap?r.fieldMap:r,o=null,(a=e.path)||(a="/"),0==a.indexOf("#")||0==o.indexOf("/#")?o="":0==a.indexOf("http://")||0==a.indexOf("HTTP://")||0==a.indexOf("https://")||0==a.indexOf("HTTPS://")?(o=a.split("//")[0]+"//",a=a.split("//")[1]):o=new URL(window.location.href).pathname,i=a.split("/"),!(c=e.routeParams)){t.next=37;break}u=0;case 9:if(!(u<i.length)){t.next=34;break}if(0!=i[u].indexOf(":")){t.next=31;break}s=i[u].substring(1),l=Kt(c),t.prev=13,l.s();case 15:if((f=l.n()).done){t.next=23;break}if(!(h=f.value)||s!=h.title){t.next=21;break}return p=n[h.id]?n[h.id]:h.defaultValue,i[u]=p,t.abrupt("break",23);case 21:t.next=15;break;case 23:t.next=28;break;case 25:t.prev=25,t.t0=t.catch(13),l.e(t.t0);case 28:return t.prev=28,l.f(),t.finish(28);case 31:u++,t.next=9;break;case 34:o=J.A.joinPath(o,i.join("/")),t.next=38;break;case 37:o=J.A.joinPath(o,a);case 38:if(d=e.searchParams,v=[],e.tokenName&&(v[0]=e.tokenName+"="+J.A.hydrocarbonToken()),d)for(y=v.length,m=0;m<d.length;m++)g=d[m],(w=n[g.id]?n[g.id]:g.defaultValue)||"code"!=g.title||(w=r.code),v[y+m]=g.title+"="+w;v.length>0&&(o.indexOf("?")!=o.length-1&&(o+="?"),o+=v.join("&")),0==o.indexOf("#")||0==o.indexOf("/#")||0==o.indexOf("//#")?window.location.hash=o.substring(o.indexOf("#")+1):window.open(o);case 44:case"end":return t.stop()}}),t,null,[[13,25,28,31]])})));return function(e,r){return t.apply(this,arguments)}}()),(0,h.A)(t,"doRowJump",function(){var e=(0,i.A)(qt().mark((function e(r,n){return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.doJump(r,n);case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,h.A)(t,"doSelectedJump",function(){var e=(0,i.A)(qt().mark((function e(r){var n;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:1==(n=t.state.selectedDatas).length&&t.doJump(r,n[0]);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.A)(t,"changeRowSelection",(function(e,r){t.setState({selectedRows:e,selectedDatas:r})})),(0,h.A)(t,"onChangeColSort",(function(e){t.props.ltmplConfig;var r=t.state;r.hiddenRowCodes,r.hiddenColIds,t.setState({sortedColConfigs:e})})),(0,h.A)(t,"getAddTmplButton",(function(e){var r=t.context.translate;return e&&e.length<1?r("${没有分类添加按钮}"):e.map((function(e){return(0,et.Y)("p",null,(0,et.Y)(y.Ay,{size:"small",type:"text",onClick:function(){return t.props.doCreate(e.id,!1)}},e.title))}))})),(0,h.A)(t,"renderHeaderButtons",(function(){var e=t.state,r=e.hiddenColIds,n=e.queryKey,o=e.viewModels,a=e.sortedColConfigs,i=e.disabledColIds,c=e.showL2Chart,u=e.showL2ActTable,s=t.props,l=s.ltmplConfig,f=s.sourceId,h=s.doCreate,d=s.doSearch,g=s.menuId,k=s.funcMode,L=s.customCreatable,E=s.serverKey,C=s.readOnly,O=t.context.translate,S=l.buttons;return(0,et.Y)(p.Fragment,null,(0,et.Y)(m.A,null,"common"==k&&t.criteriaFormUseful()?(0,et.Y)(w.A,{trigger:"click",content:t.renderCriteriaForm()},(0,et.Y)(y.Ay,null,(0,et.Y)(_.A,null))):null,S.includes("dtmplAdd")&&h&&!C?l.classifiedAddConfigs&&l.classifiedAddConfigs.length>0?(0,et.Y)(w.A,{arrow:!1,content:t.getAddTmplButton(l.classifiedAddConfigs),placement:"bottomRight"},(0,et.Y)(v.A,null,(0,et.Y)(y.Ay,null,(0,et.Y)(D.A,null)))):(0,et.Y)(v.A,{title:O("${创建}")},(0,et.Y)(y.Ay,{onClick:function(){return h(null,!1)}},(0,et.Y)(D.A,null))," "):"",(S.includes("dtmplCustomAdd")||L)&&h&&!C?(0,et.Y)(v.A,{title:O("${创建}")},(0,et.Y)(y.Ay,{onClick:function(){return h(null,!0)}},(0,et.Y)(R.A,null))):"",S.includes("importLtmplExcel")&&!C?(0,et.Y)(v.A,{title:O("${导入}")}," ",(0,et.Y)(y.Ay,{href:"#/".concat(f,"/importer?menuId=").concat(g),target:"_blank"},(0,et.Y)(F.A,null))):"",S.includes("exportLtmplExcel")&&!C?(0,et.Y)(w.A,{content:(0,et.Y)(wt,{serverKey:E,queryKey:n,title:O("${"+l.title+"}")}),title:O("${导出}"),placement:"bottomRight",trigger:"click"},(0,et.Y)(v.A,{title:O("${导出}")},(0,et.Y)(y.Ay,{style:{display:S.includes("exportLtmplExcel")&&!C?"inline":"none",marginLeft:"5px"}},(0,et.Y)(G.A,null)))):"",S.includes("showChart")?(0,et.Y)(v.A,{title:O(c?"${隐藏}${图表}":"${展示}${图表}")},(0,et.Y)(y.Ay,{onClick:t.handleShowChart},(0,et.Y)($.A,null))):"",S.includes("analysis")?(0,et.Y)(v.A,{title:O(u?"${隐藏}${数据分析}":"${展示}${数据分析}")},(0,et.Y)(y.Ay,{onClick:t.handleDataAnalysis},(0,et.Y)(M.A,null))):"",S.includes("reStat")&&!C?(0,et.Y)(Rt,{serverKey:E,fields:l.reStatParams,sourceId:f,onfinish:function(){return d(null)}}):"",(0,et.Y)(w.A,{content:(0,et.Y)(b.A.Group,{value:o,onChange:t.changeViewModel},(0,et.Y)(A.A,{style:{width:"120px"}},(0,et.Y)(x.A,{span:24},(0,et.Y)(b.A,{value:"table"},O("${表格}"))),(0,et.Y)(x.A,{span:24},(0,et.Y)(b.A,{value:"verticalList"},O("${纵向列表}"))))),title:O("${视图}"),placement:"bottomRight",trigger:"click"},(0,et.Y)(v.A,{title:O("${选择视图}")},(0,et.Y)(y.Ay,null,(0,et.Y)(K.A,null)))),(0,et.Y)(w.A,{content:(0,et.Y)(lt,{columns:a,disabledColIds:i,hiddenColIds:r,onChangeColSort:t.onChangeColSort,onChangeHiddenCols:t.changeHiddenColumns}),title:O("${排序和选择列}"),placement:"bottomRight",trigger:"click"},(0,et.Y)(v.A,{title:O("${点击排序和选择列}")},(0,et.Y)(y.Ay,null,(0,et.Y)(B.A,null)))),d?(0,et.Y)(y.Ay,{className:"hoverbig",title:O("${刷新}"),onClick:function(){d(null)}},(0,et.Y)(q.A,null)):""))})),(0,h.A)(t,"criteriaFormUseful",(function(){var e=t.props.ltmplConfig,r=e.buttons,n=e.criterias;return!!(r.includes("query")&&(n&&n.length>0||r.includes("drilling"))||t.checkBoxUseful())})),(0,h.A)(t,"checkBoxUseful",(function(){var e=t.props.ltmplConfig,r=e.buttons,n=e.jumps,o=e.actions;return!!(r.includes("batchDelete")||o&&o.length>0||n&&n.length>0)})),(0,h.A)(t,"renderCriteriaForm",(function(){var e=t.state,r=e.loading,n=e.selectedRows,o=e.selectedDatas,a=t.props,i=a.ltmplConfig,c=a.doSearch,u=a.criteriaData,s=a.serverKey;return(0,et.Y)(W.A,{serverKey:s,loading:r,selectedDatas:o,selectedRows:n,ltmplConfig:i,data:u,doCQuery:t.doSelectedCQuery,doAction:t.doSelectedAction,doDelete:t.doDelete,doJump:t.doSelectedJump,doSearch:c})})),(0,h.A)(t,"renderContent",(function(){var e=t.state,r=e.queryKey,n=e.loading,o=e.selectedRows,a=e.hiddenRowCodes,i=e.viewModels,c=e.sortedColConfigs,u=e.hiddenColIds,s=e.showL2ActTable,l=t.props,f=l.sourceId,h=l.ltmplConfig,d=l.funcMode,v=l.title,y=l.collapsible,m=l.pageSize,g=l.pageNo,w=l.onChangePage,b=l.serverKey,A=t.context.translate;if(!h||!f)return(0,et.Y)(p.Fragment,null,(0,et.Y)(k.A,{loading:n}),(0,et.Y)(E.X,{loading:n}));var x=t.buildTableColumns(h,u,a,c),C=h.buttons,O=!1;"simple"==d||"common"==d?O=!1:t.criteriaFormUseful()&&(O=!0);var S=[];if(c){var Y,j=Kt(c);try{for(j.s();!(Y=j.n()).done;){var P=Y.value;u.includes(P.id)||S.push(P)}}catch(t){j.e(t)}finally{j.f()}}return(0,et.Y)(p.Fragment,null,C.includes("analysis")&&s?(0,et.Y)("div",null,(0,et.Y)(Ot,{serverKey:b,innerQueryKey:r.key,sourceId:f}),(0,et.Y)(L.A,{dashed:!0,style:{borderTopColor:"#40a9ff"},plain:!0})):"",(0,et.Y)("div",{className:"actTable"},"complete"==d||"common"==d?y?null:(0,et.Y)("span",null,h.header?(0,et.Y)("div",{style:{padding:"6px"},dangerouslySetInnerHTML:{__html:h.header}}):null,(0,et.Y)("h3",null," ",A("${"+(v||h.title)+"}"),(0,et.Y)("p",{className:"fr"},t.renderHeaderButtons()))):null,O?t.renderCriteriaForm():null,n?"":(0,et.Y)(z.A,{serverKey:b,onChangePage:w,viewModels:i,primaryColumn:h.primaryColumn,columnConfigs:S,maxSelectedRows:t.checkBoxUseful()?1e4:-1,selectedRows:o,columns:x,hiddenRowCodes:a,pageInfo:{pageNo:g||1,pageSize:m||h.defaultPageSize},queryKey:r,onChangeRowSelection:t.changeRowSelection}),h.footer?(0,et.Y)("div",{style:{padding:"6px"},dangerouslySetInnerHTML:{__html:h.footer}}):null))})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"componentDidMount",value:(n=(0,i.A)(qt().mark((function t(){var e,r,n;return qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.props.ltmplConfig,r=this.context.translate,n=void 0,e&&(n=[{id:"10000",title:r("${排序}")}].concat((0,a.A)(e.columns),[{id:"20000",title:r("${隐藏}")}])),this.loadData(Qt,[],n);case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,i.A)(qt().mark((function t(e){var r,n,o,i,c,u,s,l,f,h,p,d;return qt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.props,n=r.sourceId,o=r.criteriaData,i=r.ltmplConfig,c=this.context.translate,u=e.ltmplConfig,s=e.criteriaData,l=e.sourceId,f=this.state,h=f.hiddenColIds,p=f.sortedColConfigs,!(Jt||n&&l!=n||i&&(!u||i.id!=u.id)||J.A.transQueryParamsToStr(o,!1,["pageSize","pageNo"])!=J.A.transQueryParamsToStr(s,!1,["pageSize","pageNo"]))){t.next=17;break}if(Jt=!1,i.id!=u.id){t.next=11;break}return t.next=9,this.loadData(h,[],p);case 9:t.next=16;break;case 11:return d=void 0,i&&(d=[{id:"10000",title:c("${排序}")}].concat((0,a.A)(i.columns),[{id:"20000",title:c("${隐藏}")}])),this.setState({viewModels:["table"]}),t.next=16,this.loadData(Qt,[],d);case 16:setTimeout((function(){Jt=!0}),2e3);case 17:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.state,e=t.queryKey,r=t.loading,n=this.props,o=n.sourceId,a=n.ltmplConfig,i=n.title,c=n.collapsible,u=n.initCollapse,s=n.tip,l=this.context.translate;return a&&o?(0,et.Y)(p.Fragment,null," ",c?(0,et.Y)($t.A,{initCollapse:u,title:(0,et.Y)(p.Fragment,null,l("${"+(i||a.title)+"}"),(0,et.Y)(Mt.A,{content:s||(a?a.tip:null)})),id:e+a.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:r,bodyStyle:{padding:"6px"},extra:this.renderHeaderButtons()},this.renderContent()):(0,et.Y)(p.Fragment,null,this.renderContent())):(0,et.Y)(p.Fragment,null,(0,et.Y)(k.A,{loading:r}),(0,et.Y)(E.X,{loading:r}))}}]);var r,n}(p.PureComponent);(0,h.A)(Xt,"contextType",vt.U),(0,h.A)(Xt,"defaultProps",{criteriaData:{},funcMode:"complete",collapsible:!1,initCollapse:!1,readOnly:!1});var Zt=Xt},45806:function(t,e,r){"use strict";r.d(e,{X:function(){return s}});var n,o=r(62477),a=r(65425),i=r(96540),c=r(42729),u=r(17437),s=(n=c.A,function(t){var e=(0,a.A)({},((0,o.A)(t),t)),r=(0,i.useRef)(null);return(0,i.useEffect)((function(){var t=r.current.querySelector(".ant-table"),e=!1,n=function(t){3===t.which&&(e=!0)},o=function(t){3===t.which&&(e=!1)},a=function(r){if(e){var n=r.movementX;r.movementY,r.offsetX,r.offsetY,t.scrollBy(5*n,0),r.preventDefault()}},i=function(t){t.preventDefault()};return t&&(t.addEventListener("mousedown",n),t.addEventListener("mousemove",a),t.addEventListener("mouseup",o),t.addEventListener("contextmenu",i)),function(){t&&(t.removeEventListener("mousedown",n),t.removeEventListener("mousemove",a),t.removeEventListener("mouseup",o),t.removeEventListener("contextmenu",i))}}),[]),(0,u.Y)("div",{ref:r},(0,u.Y)(n,e))})},33958:function(t,e,r){"use strict";r.d(e,{A:function(){return M}});var n=r(42455),o=r(17636),a=r(38452),i=r(65425),c=r(44274),u=r(2532),s=r(63549),l=r(91985),f=r(11504),h=r(50828),p=r(96540),d=r(39356),v=r(55957),y=r(677),m=r(42652),g=r(45806),w=r(92749),b=r(84769),A=r(1026),x=r(17437);function k(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,L()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}var E=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=k(this,e,[].concat(n)),(0,h.A)(t,"context",void 0),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"render",value:function(){var t,e=this.props,r=e.queryTotal,n=e.pageInfo,o=e.total,a=e.pageTo,i=(e.touchEnd,this.context.translate);if(!n)return(0,x.Y)(p.Fragment,null);var c=!0,u="";return o&&o>=0?(t=o,c=!0,o>0&&(u=i("${总共}"+o+"${条}"))):(c=!1,t=n.virtualEndPageNo*n.pageSize+1,u=i("${点击查看总数}")),!t||t<n.pageSize?"":(0,x.Y)("div",{className:"Pagination"},(0,x.Y)("span",{className:c?"sewTotal":"seeTotal",onClick:r},u),(0,x.Y)(b.A,{style:{display:"inline-block"},showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100","500"],defaultCurrent:1,current:parseInt(n.pageNo.toString()),pageSize:n.pageSize,onChange:function(t,e){return a(t,e)},onShowSizeChange:function(t,e){return a(t,e)},hideOnSinglePage:0===o,total:t}))}}])}(p.PureComponent);(0,h.A)(E,"contextType",A.U);var C=E,O=r(61021),S=r(53357),Y=r(74712),j=["className","style"];function P(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return I(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function T(){T=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function D(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,R()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function R(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(R=function(){return!!t})()}d.A.Panel;var F=(0,O.Zj)((function(t){return(0,x.Y)("tr",t)})),G=(0,O.q6)((function(t){return(0,x.Y)("tbody",t)})),$=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),u=0;u<r;u++)n[u]=arguments[u];return t=D(this,e,[].concat(n)),(0,h.A)(t,"state",{queryDataCache:void 0,virtualEndPageNo:void 0,dataSource:void 0,loading:!0,touchEnd:void 0,total:void 0}),(0,h.A)(t,"context",void 0),(0,h.A)(t,"DraggableContainer",(function(e){return(0,x.Y)(G,(0,i.A)({useDragHandle:!0,disableAutoscroll:!0,helperClass:"row-dragging",onSortEnd:t.onSortEnd},e))})),(0,h.A)(t,"DraggableBodyRow",(function(e){e.className,e.style;var r=(0,a.A)(e,j),n=t.state.dataSource;if(n){var o=n.findIndex((function(t){return t.key===r["data-row-key"]}));return(0,x.Y)(F,(0,i.A)({key:o,index:o},r))}return(0,x.Y)(p.Fragment,null)})),(0,h.A)(t,"onSortEnd",(function(e){var r=e.oldIndex,n=e.newIndex,o=t.state.dataSource;if(r!==n){var a=(0,S.p)([].concat(o),r,n).filter((function(t){return!!t}));t.setState({dataSource:a})}})),(0,h.A)(t,"loadData",function(){var e=(0,o.A)(T().mark((function e(r,n,o){var a,i,c,u,s,l,f;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.setState({loading:!0}),a=t.state.queryDataCache,i=t.props.serverKey,o||!a?(c=new Map,t.setState({total:void 0})):c=a,!c.has(n.pageNo+"_"+n.pageSize)){e.next=9;break}u=c.get(n.pageNo+"_"+n.pageSize),t.setState({dataSource:u.dataSource,virtualEndPageNo:u.pageInfo.virtualEndPageNo,loading:!1}),e.next=18;break;case 9:return e.next=11,w.A.requestQueryData(i,r,n);case 11:s=e.sent,l=[],n=s.pageInfo,s.entities.forEach((function(t,e){var r=_(_({key:t.code,code:t.code},t.fieldMap),{},{index:e});l.push(r)})),f=s.touchEnd,c.set(n.pageNo+"_"+n.pageSize,{dataSource:l,pageInfo:n}),t.setState({dataSource:l,virtualEndPageNo:n.virtualEndPageNo,queryDataCache:c,touchEnd:f,loading:!1});case 18:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,h.A)(t,"pageTo",function(){var e=(0,o.A)(T().mark((function e(r,n){var o,a,i,c;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.props.onChangePage,a=t.state.virtualEndPageNo,i={pageNo:r,pageSize:n||10,virtualEndPageNo:a},c=t.props.queryKey,e.next=6,t.loadData(c.key,i);case 6:o(r,n);case 7:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,h.A)(t,"queryTotal",(0,o.A)(T().mark((function e(){var r,n,o,a;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.queryKey,o=r.serverKey,e.next=3,w.A.requestQueryCount(o,n.key);case 3:a=e.sent,t.setState({total:a});case 5:case"end":return e.stop()}}),e)})))),(0,h.A)(t,"getRowSelection",(function(){var e,r=t.props,n=r.columns,o=r.onChangeRowSelection,a=r.selectedRows,i=r.maxSelectedRows,c=r.primaryColumn,u=t.state.dataSource,s=[],l=P(a);try{for(l.s();!(e=l.n()).done;){var f=e.value;s.push(f.code)}}catch(t){l.e(t)}finally{l.f()}var h=[];if(u){var p,d=P(u);try{for(d.s();!(p=d.n()).done;){var v=p.value;h.push(v.code)}}catch(t){d.e(t)}finally{d.f()}}if(-1==i)return null;var y={fixed:!0,type:1==i?"radio":"checkbox",selectedRowKeys:s,onChange:function(t,e){var r=[],a=[],i=null==c?void 0:c.id;i||n.forEach((function(t){"序号"==t.title||null!=i||(i=t.dataIndex)})),e.forEach((function(t){r.push({code:t.code,title:t[i]}),a.push(t)})),o&&o(r,a,h)}};return y})),(0,h.A)(t,"getUnHidenDataSource",(function(){var e=t.state.dataSource,r=t.props.hiddenRowCodes,n=[];if(e){var o,a=P(e);try{for(a.s();!(o=a.n()).done;){var i=o.value;r.includes(i.code)||n.push(i)}}catch(t){a.e(t)}finally{a.f()}}return n})),(0,h.A)(t,"initViewList",(function(e){var r=t.context.translate,n=t.props,o=(n.columns,n.columnConfigs),a=n.serverKey,i=[];return o.length>0&&o.forEach((function(t,n){if("10000"!=t.id&&"操作"!=t.title&&"20000"!=t.id){var o=t.title,c=e?e[t.id]:void 0;"序号"==o&&(c=e.index),c=c||(t.defaultValue?t.defaultValue:void 0),t.id,Math.random();var u=(0,x.Y)(v.A.Item,{label:r("${"+t.title+"}"),key:n,className:"labelcss"},(0,x.Y)(Y.A,{serverKey:a,holderType:"table",value:c,fieldConfig:t}));i.push(u)}})),i})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"componentDidMount",value:(n=(0,o.A)(T().mark((function t(){var e,r,n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.props,r=e.queryKey,n=e.pageInfo,!r){t.next=4;break}return t.next=4,this.loadData(r.key,n);case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){this.setState=function(){return!1}}},{key:"componentDidUpdate",value:(r=(0,o.A)(T().mark((function t(e){var r,n,o,a,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.queryKey,n=e.pageInfo,o=this.props,a=o.queryKey,i=o.pageInfo,this.state.total,!a){t.next=12;break}if((null==r?void 0:r.key)==a.key){t.next=9;break}return t.next=7,this.loadData(a.key,i,!0);case 7:t.next=12;break;case 9:if((null==n?void 0:n.pageNo)==i.pageNo&&(null==n?void 0:n.pageSize)==i.pageSize){t.next=12;break}return t.next=12,this.loadData(a.key,i,!1);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.props,r=e.pageInfo,n=e.columns,o=e.viewModels,a=this.state,i=a.touchEnd,c=a.total,u=a.loading,s=a.virtualEndPageNo;return(0,x.Y)(p.Fragment,null,o.includes("table")?(0,x.Y)(g.X,{size:"middle",rowSelection:this.getRowSelection(),columns:n||[],dataSource:this.getUnHidenDataSource(),bordered:!0,pagination:!1,style:{display:n?"block":"none"},loading:u,components:{body:{wrapper:this.DraggableContainer,row:this.DraggableBodyRow}}}):"",(0,x.Y)(C,{touchEnd:i,pageInfo:_(_({},r),{},{virtualEndPageNo:s}),pageTo:this.pageTo,queryTotal:this.queryTotal,total:c}),o.includes("verticalList")?(0,x.Y)(y.A,{style:{marginTop:"10px"}},(0,x.Y)(m.A,{dataSource:this.getUnHidenDataSource(),renderItem:function(e){return(0,x.Y)(m.A.Item,{key:e.id},(0,x.Y)(y.A,{size:"small",bodyStyle:{padding:"4px"}},(0,x.Y)(v.A,{column:4},t.initViewList(e))))}})):"")}}]);var r,n}(p.PureComponent);(0,h.A)($,"defaultProps",{pageInfo:{pageNo:1,pageSize:10,virtualEndPageNo:void 0},hiddenRowCodes:[],selectedRows:[],viewModels:["table"]}),(0,h.A)($,"contextType",A.U);var M=$},73729:function(t,e,r){"use strict";r.d(e,{A:function(){return Dt}});var n=r(42455),o=r(21745),a=r(17636),i=r(44274),c=r(2532),u=r(63549),s=r(91985),l=r(11504),f=r(50828),h=r(96540),p=r(89467),d=r(57529),v=r(45038),y=r(37977),m=r(69036),g=r(47152),w=r(16370),b=r(28392),A=r(28073),x=r(45806),k=r(11058),L=r(39277),E=r(40261),C=r(93598),O=r(55140),S=r(56798),Y=r(54763),j=r(21426),P=r(74712),I=r(22733),T=r(46675),N=r(37187),_=r(46704),D=r(92749),R=r(33958),F=r(11733),G=r(67034),$=r(1026),M=r(17437);function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function B(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,q()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(q=function(){return!!t})()}var V=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=B(this,e,[].concat(n)),(0,f.A)(t,"context",void 0),(0,f.A)(t,"handleClose",(function(e){var r=t.props,n=r.onChange,o=r.value;if(n){var a,i=[],c=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return K(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(o);try{for(c.s();!(a=c.n()).done;){var u=a.value;u.code!=e.code&&i.push(u)}}catch(t){c.e(t)}finally{c.f()}n(i)}})),(0,f.A)(t,"renderTag",(function(){var e=t.props.value,r=[];return e?(e.forEach((function(e,n){var o=e.title instanceof Array?e.title[0]:e.title;r.push((0,M.Y)(G.A,{key:n,style:{fontSize:14},color:"geekblue",closable:!0,onClose:function(r){r.preventDefault(),t.handleClose(e)}},o&&o.includes("@R@")?o.split("@R@")[1]:e.title))})),r):""})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"render",value:function(){var t=this.context.translate;return(0,M.Y)("div",null,(0,M.Y)("h3",null,t("${查询点选}:"),this.renderTag()))}}])}(h.PureComponent);(0,f.A)(V,"contextType",$.U);var U=V,H=r(35880);function z(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return W(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Q(){Q=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function X(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){(0,f.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Z(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,tt()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function tt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tt=function(){return!!t})()}var et=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),c=0;c<r;c++)n[c]=arguments[c];return t=Z(this,e,[].concat(n)),(0,f.A)(t,"state",{selectConfig:void 0,columns:void 0,queryKey:void 0,loading:!0,criteriaData:void 0,pageNo:void 0,pageSize:void 0,disableCols:void 0,selectedRows:[]}),(0,f.A)(t,"loadData",function(){var e=(0,a.A)(Q().mark((function e(r,n){var o,a,i,c,u,s,l,f,h,p,d;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),o=t.state,a=o.pageNo,i=o.pageSize,c=r.defaultPageSize,u={pageNo:a,pageSize:i||c,virtualEndPageNo:void 0},s=t.props,l=s.sourceId,f=s.exceptCodes,h=s.serverKey,p=s.mainCode,e.next=7,D.A.requestLtmplQueryKey(h,l,X(X(X({exceptCodes:f},n),u),{},{mainCode:p}));case 7:d=e.sent,t.setState({queryKey:d,criteriaData:n,loading:!1});case 9:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,f.A)(t,"loadConfig",(0,a.A)(Q().mark((function e(){var r,n,o,a,i,c;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.sourceId,r.exceptCodes,o=r.serverKey,t.setState({loading:!0}),e.next=4,_.A.requestSelectConfig(o,n);case 4:return a=e.sent,i=[],c=0,a.columns.forEach((function(t){var e={};"操作"!=t.title&&i.push(e),e.title=t.title,e.dataIndex=t.id,c++;var r=Y.A.getSupportControlType(t);c<10&&j.A.sort(e,r),"序号"===t.title?(e.render=function(t,e,r){return(0,M.Y)("label",null,r+1)},t.sorter=void 0):e.render=function(e,r){return(0,M.Y)(P.A,{serverKey:o,fieldConfig:t,value:r[t.id],holderType:"table"})}})),t.setState({columns:i,selectConfig:a,loading:!1}),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})))),(0,f.A)(t,"doSearch",function(){var e=(0,a.A)(Q().mark((function e(r){var n,o;return Q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state.selectConfig,o=X({},r),e.next=4,t.loadData(n,o);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),(0,f.A)(t,"handleOk",(function(){t.props.onOK(t.state.selectedRows),t.setState({selectedRows:[],queryKey:void 0})})),(0,f.A)(t,"handleCancel",(function(){t.setState({queryKey:void 0}),t.props.onCancel()})),(0,f.A)(t,"changeRowSelection",(function(e,r,n){var a=t.props.maxSelectedRows;if(n){var i=t.state.selectedRows,c=[],u=[];1!=a&&u.push.apply(u,(0,o.A)(i));var s,l=!1,f=z(e);try{for(f.s();!(s=f.n()).done;){var h=s.value;l=!1;var p,d=z(u);try{for(d.s();!(p=d.n()).done;){var v=p.value;h.code==v.code&&(l=!0)}}catch(t){d.e(t)}finally{d.f()}l||u.push(h),c.push(h.code)}}catch(t){f.e(t)}finally{f.f()}var y=[];y.push.apply(y,u);for(var m=0,g=u;m<g.length;m++){var w=g[m];if(n.includes(w.code)&&!c.includes(w.code))for(var b in y)y[b].code==w.code&&y.splice(Number(b),1)}t.setState({selectedRows:y})}else t.setState({selectedRows:e})})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidMount",value:(n=(0,a.A)(Q().mark((function t(){var e,r,n;return Q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.props,r=e.sourceId,n=e.open,!r||!n){t.next=9;break}return t.t0=this,t.next=5,this.loadConfig();case 5:return t.t1=t.sent,t.t2={},t.next=9,t.t0.loadData.call(t.t0,t.t1,t.t2);case 9:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,a.A)(Q().mark((function t(e){var r,n,o,a,i,c,u,s;return Q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=this.props).exceptCodes,n=r.open,o=this.state,a=o.selectConfig,i=o.criteriaData,c=o.queryKey,u=o.loading,e.exceptCodes,e.open,s=a,!n){t.next=12;break}if(s){t.next=9;break}return t.next=8,this.loadConfig();case 8:s=t.sent;case 9:if(c||u){t.next=12;break}return t.next=12,this.loadData(s,i);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.open,r=t.maxSelectedRows,n=t.serverKey,o=this.state,a=o.queryKey,i=o.columns,c=o.selectConfig,u=o.criteriaData,s=o.loading,l=o.selectedRows,f=o.pageSize,p=o.pageNo;if(!c)return(0,M.Y)(h.Fragment,null);var d=c.buttons,v=c.criterias,y=c.jumps,m=c.actions;return d.includes("batchDelete")||d.includes("query")&&v&&v.length>0||m&&m.length>0||y&&y.length,(0,M.Y)(N.A,{open:e,title:(0,M.Y)(U,{value:l,onChange:this.changeRowSelection}),width:1150,destroyOnClose:!0,centered:!0,bodyStyle:{height:"80vh",overflow:"auto"},onCancel:this.handleCancel,onOk:this.handleOk},(0,M.Y)(H.Ay,{style:{height:"80vh"},autoHide:!0,autoHideTimeout:1e3},(0,M.Y)("div",{className:"actTable"},(0,M.Y)(F.A,{serverKey:n,selectedRows:l,ltmplConfig:c,data:u,doSearch:this.doSearch,loading:s}),(0,M.Y)(R.A,{serverKey:n,pageInfo:{pageNo:p||1,pageSize:f||c.defaultPageSize},onChangePage:this.onChangePage,maxSelectedRows:r,selectedRows:l,primaryColumn:c.primaryColumn,columns:i,queryKey:a,onChangeRowSelection:this.changeRowSelection}))," "))}}]);var r,n}(h.PureComponent),rt=et,nt=r(13050),ot=r(16044),at=r(677),it=r(47852),ct=r(50770),ut=r(43455),st=r(8130);function lt(){lt=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function ft(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,ht()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function ht(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ht=function(){return!!t})()}var pt=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=ft(this,e,[].concat(n)),(0,f.A)(t,"state",{}),(0,f.A)(t,"context",void 0),(0,f.A)(t,"onSubmit",(function(e){var r=t.props,n=r.dtmplData,o=r.fieldGroupConfig,a={code:n?n.code:"new"+st.A.getRandomNum(6),editStatus:n&&n.code&&!n.code.startsWith("new")?"changed":"new",relationLabel:e.relationLabel?e.relationLabel:o.relationNames[0],fieldMap:e};t.props.onFinish(a)})),(0,f.A)(t,"selectRelation",(function(){var e=t.props,r=e.fieldGroupConfig,n=e.dtmplData,o=t.context.translate;return r.relationNames.length>1?(0,M.Y)(p.A.Item,{name:"relationLabel",initialValue:n?n.relationLabel:void 0,rules:[{required:!0,message:o("${请选择}${关系}")}],label:o("${关系}")},(0,M.Y)(ct.Ay.Group,null,r.relationNames.map((function(t){return(0,M.Y)(ct.Ay,{value:"item"},t)})))):""})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidMount",value:(r=(0,a.A)(lt().mark((function t(){return lt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.formRef,r=t.fieldGroupConfig,n=t.dtmplData,o=t.serverKey;return(0,M.Y)(h.Fragment,null,(0,M.Y)(p.A,{labelWrap:!0,ref:e,name:"control-hooks",onFinish:this.onSubmit},this.selectRelation(),(0,M.Y)(ut.A,{serverKey:o,formRef:e,nameAttr:"id",fields:r?r.fields:void 0,valueMap:n?n.fieldMap:{}})))}}]);var r}(h.PureComponent);function dt(){dt=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function vt(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,yt()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function yt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yt=function(){return!!t})()}(0,f.A)(pt,"contextType",$.U);var mt=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=vt(this,e,[].concat(n)),(0,f.A)(t,"formRef",h.createRef()),(0,f.A)(t,"state",{isAdded:!1}),(0,f.A)(t,"context",void 0),(0,f.A)(t,"reset",(function(){})),(0,f.A)(t,"onOk",(function(){t.setState({isAdded:!1}),t.formRef.current.submit()})),(0,f.A)(t,"add",(function(){t.setState({isAdded:!0}),t.formRef.current.submit()})),(0,f.A)(t,"getTitle",(function(){var e=t.props,r=e.fieldGroupConfig,n=e.dtmplData,o=t.context.translate;return r.title+o(n?"[${行编辑}]":"[${新建一行}]")})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidMount",value:(n=(0,a.A)(dt().mark((function t(){return dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,a.A)(dt().mark((function t(){return dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=(t.height,t.onOk),r=t.fieldGroupConfig,n=t.dtmplData,o=t.onCancel,a=t.okButtonType,i=t.needConfirm,c=t.okDanger,u=t.serverKey,s=this.state.isAdded,l=this.context.translate;return(0,M.Y)(at.A,{style:{width:1e3},title:this.getTitle(),bodyStyle:{overflow:"auto"},extra:(0,M.Y)(h.Fragment,null,(0,M.Y)(b.A,{size:[8,0]},function(t){return i?c?(0,M.Y)(ot.A,{placement:"rightBottom",title:l("${确定要执行提交吗}?"),onConfirm:t,okText:l("${确定}"),cancelText:l("${取消}"),okType:"danger"},(0,M.Y)(v.Ay,{type:a,danger:!0,size:"small"},"确定")):(0,M.Y)(ot.A,{placement:"rightBottom",title:l("${确定要执行提交吗}?"),onConfirm:t,okText:l("${确定}"),cancelText:l("${取消}")},(0,M.Y)(v.Ay,{size:"small",type:a},l("${确定}"))):(0,M.Y)(v.Ay,{type:a,size:"small",onClick:t},l("${确定}"))}(this.onOk),n?"":(0,M.Y)(y.A,{placement:"top",title:l("${可连续添加}")},(0,M.Y)(v.Ay,{type:"primary",size:"small",onClick:this.add},l("${添加}"))),o?(0,M.Y)(v.Ay,{onClick:o},(0,M.Y)(it.A,null)):""))},(0,M.Y)(pt,{serverKey:u,fieldGroupConfig:r,formRef:this.formRef,onFinish:function(t){return e(t,!s)},dtmplData:n}))}}]);var r,n}(h.PureComponent);function gt(){gt=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function wt(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,bt()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function bt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bt=function(){return!!t})()}(0,f.A)(mt,"defaultProps",{forceRender:!0,style:{maxWidth:"calc(100vw - 60px)",maxHeight:"calc(100vh - 50px)"},needConfirm:!1,okButtonType:"primary",okDanger:!1}),(0,f.A)(mt,"contextType",$.U);var At=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=wt(this,e,[].concat(n)),(0,f.A)(t,"formRef",h.createRef()),(0,f.A)(t,"state",{popoverOpen:!1}),(0,f.A)(t,"onOk",(function(e){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&t.setState({popoverOpen:!1}),t.props.onOk(e)})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidMount",value:(n=(0,a.A)(gt().mark((function t(){return gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,a.A)(gt().mark((function t(){return gt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.state.popoverOpen,r=this.props,n=r.disabled,o=r.buttonIcon,a=r.buttonTitle,i=r.tooltipTitle,c=r.fieldGroupConfig,u=r.dtmplData,s=r.buttonStyle,l=r.serverKey;return(0,M.Y)(A.A,{destroyTooltipOnHide:!0,placement:"leftBottom",open:e,content:(0,M.Y)(mt,{serverKey:l,fieldGroupConfig:c,dtmplData:u,onCancel:function(){t.setState({popoverOpen:!1})},onOk:this.onOk}),trigger:"click"},(0,M.Y)(y.A,{placement:"left",title:i},(0,M.Y)(v.Ay,{disabled:n,style:s,icon:o,size:"small",onClick:function(){t.setState({popoverOpen:!e})}},a||"")))}}]);var r,n}(h.PureComponent);(0,f.A)(At,"defaultProps",{buttonIcon:void 0,disabled:!1});var xt=r(22503),kt=r(62477);function Lt(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,Et()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function Et(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Et=function(){return!!t})()}var Ct=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=Lt(this,e,[].concat(n)),(0,f.A)(t,"onChange",(function(){var e=t.props,r=e.count,n=e.onChange,o=e.min;console.log("关系 this.props 修改",t.props),n((r||0==r)&&r>=Number(o)?1:null)})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidMount",value:function(){(0,kt.A)(this.props),this.onChange()}},{key:"componentDidUpdate",value:function(t){var e=this.props.count;!e&&0!=e||t.count==e||this.onChange()}},{key:"render",value:function(){var t=this.props,e=(t.count,t.min,t.value);return console.log("关系 this.props",e),(0,M.Y)(h.Fragment,null)}}])}(h.PureComponent);function Ot(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return St(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?St(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function St(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yt(){Yt=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:O(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==r&&o.call(k,c)&&(A=k);var L=b.prototype=g.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function Y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(C.prototype),l(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),l(L,s,"Generator"),l(L,c,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pt(t,e,r){return e=(0,s.A)(e),(0,u.A)(t,It()?Reflect.construct(e,r||[],(0,s.A)(t).constructor):e.apply(t,r))}function It(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(It=function(){return!!t})()}(0,f.A)(Ct,"defaultProps",{min:0});var Tt=p.A.Item,Nt=d.A.Text,_t=function(t){function e(){var t;(0,i.A)(this,e);for(var r=arguments.length,n=new Array(r),c=0;c<r;c++)n[c]=arguments[c];return t=Pt(this,e,[].concat(n)),(0,f.A)(t,"state",{showDtmplView:!1,selectedCode:void 0,showSelectTable:!1,showDtmplEdit:!1,tableLoading:!1,showRowEdit:!1,selectedDtmplData:void 0,filterStr:void 0,pageSize:10,addTmplId:void 0}),(0,f.A)(t,"context",void 0),(0,f.A)(t,"buildDataSource",(function(){var e=t.state.filterStr,r=t.props.value,n=void 0;return r&&(n=[],r.forEach((function(t,r){var o=!0;if(e){o=!1;for(var a=0,i=Object.values(t.fieldMap);a<i.length;a++){var c=i[a];c&&c.toString().indexOf(e)>=0&&(o=!0)}}if(o){var u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(r),!0).forEach((function(e){(0,f.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({key:r,relationLabel:t.relationLabel,code:t.code},t.fieldMap);n.push(u)}}))),n})),(0,f.A)(t,"buildColumns",(function(){var e=t.props,r=e.viewOrEdit,n=(e.value,e.fieldGroupConfig),o=e.serverKey,a=(n.title,n.buttons),i=n.fields,c=n.showRelationName,u=n.relationNames,s=(n.showRowNum,n.disabled),l=t.context.translate,f=[],h=0;if(i.forEach((function(t){var e={};f.push(e),e.title=l("${"+t.title+"}"),e.dataIndex=t.id,h++;var r=Y.A.getControlType(t,null);h<10&&j.A.sort(e,r),e.render=function(e,r){return(0,M.Y)(P.A,{serverKey:o,holderType:"table",fieldConfig:t,value:r[t.id]})}})),c){var p={dataIndex:"relationLabel",name:"relation",title:l("${关系}"),type:"relation",editable:!0,fieldAvailable:!0,id:"10000",options:u};f.unshift(p)}var d=a.includes("detail"),m=a.includes("rowEdit"),g=a.includes("dtmplEdit"),w=a.includes("singleDelete");if("edit"==r&&(d||m||g||w)){var b={};f.push(b),b.title=l("${操作}"),b.fixed="right",b.key="action",b.render=function(e){return(0,M.Y)("div",{className:"actionbtn"},d?(0,M.Y)(v.Ay,{disabled:s,title:l("${当前实体}"),type:"primary",icon:(0,M.Y)(k.A,null),size:"small",onClick:function(){return t.showEntityView(e)}}):"",g?(0,M.Y)(v.Ay,{disabled:s,title:l("${编辑}${当前实体}"),icon:(0,M.Y)(L.A,null),size:"small",onClick:function(){return t.showEditDtmplModel(e)}}):"",n.rowActions&&n.rowActions.length>0?n.rowActions.map((function(r){return(0,M.Y)(xt.A,{serverKey:o,disabled:s,key:r.id,data:[e],actionConfig:r,doAction:t.doRowAction,buttonSize:"small"})})):"",m?(0,M.Y)(At,{serverKey:o,disabled:s,buttonIcon:(0,M.Y)(E.A,null),dtmplData:t.getRowEditData(e.code),fieldGroupConfig:n,onOk:t.handleRowEdit,tooltipTitle:l("${编辑}${当前行}")}):"",w?(0,M.Y)(y.A,{placement:"right",title:l("${删除}${当前行}")},(0,M.Y)(v.Ay,{disabled:s,danger:!0,type:"primary",icon:(0,M.Y)(C.A,null),size:"small",onClick:function(){return t.delete(e)}})):"")}}else if("view"==r&&d){var A={};f.push(A),A.title=l("${操作}"),A.fixed="right",A.key="action",A.render=function(e){return(0,M.Y)("div",{className:"actionbtn"},d?(0,M.Y)(v.Ay,{disabled:s,title:l("${当前实体}"),type:"primary",icon:(0,M.Y)(k.A,null),size:"small",onClick:function(){return t.showEntityView(e)}}):"")}}return f})),(0,f.A)(t,"doRowAction",function(){var e=(0,a.A)(Yt().mark((function e(r,n,o){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.doAction(r,[{title:void 0,code:n[0]}],o);case 2:t.handleDtmplEdit(n[0]);case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,f.A)(t,"doAction",function(){var e=(0,a.A)(Yt().mark((function e(r,n,o){var a;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({tableLoading:!0}),a=t.props.serverKey,e.next=4,D.A.postActions(a,r,n,o);case 4:e.sent,t.setState({tableLoading:!1});case 6:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),(0,f.A)(t,"showEntityView",(function(e){t.setState({selectedCode:e.code,showDtmplView:!0})})),(0,f.A)(t,"hiddenEntityView",(function(){t.setState({showDtmplView:!1})})),(0,f.A)(t,"hiddenEntityEdit",(function(){t.setState({showDtmplEdit:!1})})),(0,f.A)(t,"editRow",(function(t){})),(0,f.A)(t,"delete",(function(e){var r=t.props,n=r.value,o=r.fieldGroupConfig,a=r.onChange,i=[];if(n){var c,u=Ot(n);try{for(u.s();!(c=u.n()).done;){var s=c.value;s.code!=e.code&&i.push(s)}}catch(t){u.e(t)}finally{u.f()}}a(o,i)})),(0,f.A)(t,"searchValue",(function(e){t.setState({filterStr:e})})),(0,f.A)(t,"tabChange",(function(e){t.setState({pageSize:e.pageSize})})),(0,f.A)(t,"showSelect",(function(){t.setState({showSelectTable:!0})})),(0,f.A)(t,"select",function(){var e=(0,a.A)(Yt().mark((function e(r){var n,o,a,i;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.setState({showSelectTable:!1}),r&&!(r.length<=0)){e.next=3;break}return e.abrupt("return");case 3:n=[],o=Ot(r);try{for(o.s();!(a=o.n()).done;)i=a.value,n.push(i.code)}catch(t){o.e(t)}finally{o.f()}return e.next=8,t.add(n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"add",function(){var e=(0,a.A)(Yt().mark((function e(r){var n,a,i,c,u,s,l,f,h;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,a=n.value,i=n.fieldGroupConfig,c=n.onChange,u=n.serverKey,s=i.relationNames,t.setState({tableLoading:!0}),e.next=5,D.A.requestSelectedData(u,i.id,r);case 5:if(l=e.sent){f=Ot(l);try{for(f.s();!(h=f.n()).done;)h.value.relationLabel=s[0]}catch(t){f.e(t)}finally{f.f()}}a&&l.unshift.apply(l,(0,o.A)(a)),c(i,l),t.setState({tableLoading:!1});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"getRowEditData",(function(e){var r=t.props.value,n=void 0;if(e){var o,a=Ot(r);try{for(a.s();!(o=a.n()).done;){var i=o.value;if(e==i.code){n=i;break}}}catch(t){a.e(t)}finally{a.f()}}return n})),(0,f.A)(t,"handleDtmplAdd",function(){var e=(0,a.A)(Yt().mark((function e(r){return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({showDtmplEdit:!1}),e.next=3,t.add([r]);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"handleDtmplEdit",function(){var e=(0,a.A)(Yt().mark((function e(r){var n,a,i,c,u,s,l,f,h,p;return Yt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.props,a=n.value,i=n.fieldGroupConfig,c=n.onChange,i.title,i.fields,i.showRelationName,i.relationNames,i.showRowNum,u=i.serverKey,t.setState({tableLoading:!0,showDtmplEdit:!1}),e.next=5,D.A.requestSelectedData(u,i.id,[r]);case 5:if(s=e.sent[0],(l=(0,o.A)(a))&&s){f=Ot(l);try{for(f.s();!(h=f.n()).done;)(p=h.value).code==s.code&&(p.fieldMap=s.fieldMap)}catch(t){f.e(t)}finally{f.f()}}c(i,l),t.setState({tableLoading:!1});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,f.A)(t,"handleRowEdit",(function(e){var r=t.props,n=r.value,a=r.fieldGroupConfig,i=r.onChange,c=t.context.translate,u=[];n&&(u=(0,o.A)(n));var s,l=!0,f=Ot(u);try{for(f.s();!(s=f.n()).done;){var h=s.value;if(h.code==e.code){l=!1,h.editStatus=e.editStatus,h.fieldMap=e.fieldMap,h.relationLabel=e.relationLabel;break}}}catch(t){f.e(t)}finally{f.f()}l&&u.unshift(e),i(a,u),l?m.Ay.success(c("${已添加}")):m.Ay.success(c("${已修改}"))})),(0,f.A)(t,"showAddDtmplModel",(function(e){t.setState({showDtmplEdit:!0,addTmplId:e,selectedCode:void 0})})),(0,f.A)(t,"showEditDtmplModel",(function(e){t.setState({showDtmplEdit:!0,addTmplId:void 0,selectedCode:e.code})})),(0,f.A)(t,"getAddTmplButton",(function(e){var r=t.context.translate;return e&&e.length<1?r("${没有分类添加按钮}"):e.map((function(e){return(0,M.Y)("p",null,(0,M.Y)(v.Ay,{size:"small",type:"text",onClick:function(){return t.showAddDtmplModel(e.id)}},e.title))}))})),(0,f.A)(t,"buildButtons",(function(){var e=t.props,r=e.fieldGroupConfig,n=e.viewOrEdit,o=e.value,a=e.serverKey,i=t.context.translate,c=r.buttons,u=r.disabled,s=(t.state.showRowEdit,u||!!r.max&&r.max<=(o?o.length:0));return"edit"==n?(0,M.Y)(g.A,null,(0,M.Y)(w.A,{span:20},(0,M.Y)(b.A,null,c.includes("rowAdd")?(0,M.Y)(At,{serverKey:a,disabled:s,buttonStyle:{marginBottom:10},buttonTitle:i("${新建一行}"),fieldGroupConfig:r,onOk:t.handleRowEdit}):"",c.includes("dtmplAdd")?r.classifiedAddConfigs&&r.classifiedAddConfigs.length>0?(0,M.Y)(A.A,{arrow:!1,content:t.getAddTmplButton(r.classifiedAddConfigs),placement:"bottomRight"},(0,M.Y)(y.A,null,(0,M.Y)(v.Ay,{icon:(0,M.Y)(O.A,null)},i("${新增}")))):(0,M.Y)(v.Ay,{disabled:s,icon:(0,M.Y)(O.A,null),size:"small",onClick:function(){return t.showAddDtmplModel()},style:{marginBottom:10}},i("${新增}")):"",c.includes("selectAdd")?(0,M.Y)(v.Ay,{disabled:s,type:"primary",icon:(0,M.Y)(S.A,null),size:"small",onClick:t.showSelect,style:{marginBottom:10}},i("${选择}")):"",r.min&&(!o||o.length<=0)?(0,M.Y)(Nt,{style:{color:"red"}},i("${请选择或添加}"),r.title):null,(0,M.Y)(Tt,{name:"$virtual"+r.id,style:{margin:0,maxHeight:"32px"},rules:r.min?[{required:!0,message:""}]:null},(0,M.Y)(Ct,{min:r.min+"",style:{marginBottom:10},count:o?o.length:0}))))):""})),t}return(0,l.A)(e,t),(0,c.A)(e,[{key:"componentDidMount",value:(n=(0,a.A)(Yt().mark((function t(){return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,a.A)(Yt().mark((function t(e){var r,n;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=this.props.fieldGroupConfig,n=e.fieldGroupConfig,r.disabled==n.disabled&&r.mainCode==n.mainCode||this.setState({filterStr:""});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this,e=this.props,r=e.fieldGroupConfig,n=e.value,o=e.parentId,a=e.loading,i=e.initCollapse,c=e.mainCode,u=e.serverKey,s=e.showRightNav,l=this.state,f=l.pageSize,p=l.selectedCode,d=l.showDtmplView,v=l.showSelectTable,y=l.showDtmplEdit,m=l.addTmplId,g=l.tableLoading,w=(l.showRowEdit,l.selectedDtmplData,this.context.translate),b=r.buttons,A=r.mainCode?r.mainCode:c||o,k={pageSize:f,hideOnSinglePage:!0,defaultCurrent:1,total:n?n.length:void 0,showTotal:function(t){return w("${总共}"+t+"${条}")}},L=[];if(n){var E,C=Ot(n);try{for(C.s();!(E=C.n()).done;){var O=E.value;L.push(O.code)}}catch(t){C.e(t)}finally{C.f()}}return r.displayConfig.includes("nonDataNonDisplayed")&&(!n||n.length<=0)?"":(0,M.Y)(h.Fragment,null,(0,M.Y)(nt.A,{showRightNav:s,initCollapse:i||r.displayConfig.includes("folded"),title:r.title,tip:r.tip,id:o+r.id,className:"hoverable",headStyle:{background:"#f2f4f5"},loading:a,bodyStyle:{padding:"6px"}},(0,M.Y)("div",{className:"editTableList"},this.buildButtons(),(0,M.Y)(x.X,{size:"small",locale:{emptyText:(0,M.Y)("div",{style:{textAlign:"center",width:"100%"}},(0,M.Y)(Nt,{disabled:!0},w("${暂无数据}...")))},bordered:!0,loading:g,dataSource:this.buildDataSource(),columns:this.buildColumns(),pagination:k,onChange:this.tabChange}))),b.includes("detail")?(0,M.Y)(I.A,{serverKey:u,mainCode:A,open:d,onCancel:this.hiddenEntityView,sourceId:r.id,code:p}," "):"",b.includes("dtmplEdit")||b.includes("dtmplAdd")?(0,M.Y)(T.A,{addTmplId:m,serverKey:u,mainCode:A,open:y,onCancel:this.hiddenEntityEdit,sourceId:r.id,code:p,onOk:p?this.handleDtmplEdit:this.handleDtmplAdd}):"",b.includes("selectAdd")?(0,M.Y)(rt,{serverKey:u,maxSelectedRows:r.max,open:v,onOK:this.select,onCancel:function(){t.setState({showSelectTable:!1})},exceptCodes:L,mainCode:A,sourceId:r.id}):"")}}]);var r,n}(h.PureComponent);(0,f.A)(_t,"contextType",$.U),(0,f.A)(_t,"defaultProps",{});var Dt=_t},65560:function(t,e,r){"use strict";var n=r(42455),o=r(62477),a=r(21745),i=r(17636),c=r(44274),u=r(2532),s=r(63549),l=r(91985),f=r(11504),h=r(50828),p=r(96540),d=r(21426),v=r(54763),y=r(46704),m=r(92749),g=r(33958),w=r(11733),b=r(74712),A=r(17437);function x(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return k(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function L(){L=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&o.call(k,c)&&(A=k);var E=b.prototype=g.prototype=Object.create(A);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function O(t,e,r){return e=(0,l.A)(e),(0,s.A)(t,S()?Reflect.construct(e,r||[],(0,l.A)(t).constructor):e.apply(t,r))}function S(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(S=function(){return!!t})()}var Y=function(t){function e(){var t;(0,c.A)(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t=O(this,e,[].concat(n)),(0,h.A)(t,"state",{selectConfig:void 0,columns:void 0,queryKey:void 0,loading:!0,criteriaData:void 0,disableCols:void 0,pageNo:1,pageSize:void 0}),(0,h.A)(t,"loadData",function(){var e=(0,i.A)(L().mark((function e(r,n){var o,a,i,c,u,s,l,f,h,p;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({loading:!0}),o=t.props,a=o.mainCode,i=o.serverKey,c=o.sourceId,u=t.state,s=u.pageNo,l=u.pageSize,f=r.defaultPageSize,h={pageNo:s,pageSize:l||f||10,virtualEndPageNo:void 0},e.next=7,m.A.requestLtmplQueryKey(i,c,C(C(C({},n),h),{},{mainCode:a}));case 7:p=e.sent,t.setState({queryKey:p,criteriaData:n,loading:!1});case 9:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),(0,h.A)(t,"loadConfig",(0,i.A)(L().mark((function e(){var r,n,o,a,i,c;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.props,n=r.sourceId,o=r.serverKey,t.setState({loading:!0}),e.next=4,y.A.requestSelectConfig(o,n);case 4:return a=e.sent,i=[],c=0,a.columns.forEach((function(t){var e={};"操作"!=t.title&&i.push(e),e.title=t.title,e.dataIndex=t.id,c++;var r=v.A.getSupportControlType(t);c<10&&d.A.sort(e,r),"序号"===t.title?(e.render=function(t,e,r){return(0,A.Y)("label",null,r+1)},t.sorter=void 0):e.render=function(e,r){return(0,A.Y)(b.A,{serverKey:o,holderType:"table",fieldConfig:t,value:r[t.id]})}})),t.setState({columns:i,selectConfig:a,loading:!1}),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})))),(0,h.A)(t,"doSearch",function(){var e=(0,i.A)(L().mark((function e(r){var n,o;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state.selectConfig,o=C({},r),e.next=4,t.loadData(n,o);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,h.A)(t,"changeRowSelection",(function(e,r,n){var o,i=[],c=t.props,u=c.selectedRows,s=c.selectedDatas,l=c.onChange,f=c.maxSelectedRows;if(n){var h=[],p=[];1!=f&&p.push.apply(p,(0,a.A)(u));var d,v=!1,y=x(e);try{for(y.s();!(d=y.n()).done;){var m=d.value;v=!1;var g,w=x(p);try{for(w.s();!(g=w.n()).done;){var b=g.value;m.code==b.code&&(v=!0)}}catch(t){w.e(t)}finally{w.f()}v||p.push(m),h.push(m.code)}}catch(t){y.e(t)}finally{y.f()}var A=[];A.push.apply(A,p);for(var k=0,L=p;k<L.length;k++){var E=L[k];if(n.includes(E.code)&&!h.includes(E.code))for(var C in A)A[C].code==E.code&&A.splice(Number(C),1)}o=A}else o=e;var O,S=[].concat((0,a.A)(s),(0,a.A)(r)),Y=x(o);try{for(Y.s();!(O=Y.n()).done;){var j,P=O.value,I=x(S);try{for(I.s();!(j=I.n()).done;){var T=j.value;T.code==P.code&&i.push(T)}}catch(t){I.e(t)}finally{I.f()}}}catch(t){Y.e(t)}finally{Y.f()}l(o,i)})),(0,h.A)(t,"onChangePage",(function(e,r){t.setState({pageNo:e,pageSize:r})})),t}return(0,f.A)(e,t),(0,u.A)(e,[{key:"componentDidMount",value:(n=(0,i.A)(L().mark((function t(){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this,t.next=3,this.loadConfig();case 3:return t.t1=t.sent,t.t2={},t.next=7,t.t0.loadData.call(t.t0,t.t1,t.t2);case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=(0,i.A)(L().mark((function t(e){var r,n,a,i,c,u;return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((0,o.A)(this.props),r=this.state,n=r.selectConfig,a=r.criteriaData,i=r.queryKey,c=r.loading,e.exceptCodes,e.open,u=n){t.next=8;break}return t.next=7,this.loadConfig();case 7:u=t.sent;case 8:if(i||c){t.next=11;break}return t.next=11,this.loadData(u,a);case 11:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,e=t.maxSelectedRows,r=t.selectedRows,n=t.selectedDatas,o=t.serverKey,a=this.state,i=a.queryKey,c=a.columns,u=a.selectConfig,s=a.criteriaData,l=a.loading,f=a.pageNo,h=a.pageSize;if(!u)return(0,A.Y)(p.Fragment,null);var d=u.buttons,v=u.criterias,y=u.jumps,m=u.actions;return d.includes("batchDelete")||d.includes("query")&&v&&v.length>0||m&&m.length>0||y&&y.length,(0,A.Y)("div",{className:"actTable"},(0,A.Y)(w.A,{serverKey:o,selectedRows:r,selectedDatas:n,ltmplConfig:u,data:s,doSearch:this.doSearch,loading:l}),(0,A.Y)(g.A,{serverKey:o,maxSelectedRows:e,selectedRows:r,primaryColumn:u.primaryColumn,columns:c,pageInfo:{pageNo:f,pageSize:h||u.defaultPageSize},onChangePage:this.onChangePage,queryKey:i,onChangeRowSelection:this.changeRowSelection}))}}]);var r,n}(p.PureComponent);(0,h.A)(Y,"defaultProps",{maxSelectedRows:1e3,selectedDatas:[]}),e.A=Y},21426:function(t,e){"use strict";e.A={sort:function(t,e,r){var n=t.dataIndex;t.sorter="decimal"==e||"int"==e||"float"==e||"double"==e?function(t,e){return t[n]-e[n]}:"text"==e||"textarea"==e||"date"==e||"datetime"==e?function(t,e){return t[n]?t[n].localeCompare(e[n],"zh-CN"):-1}:function(t,e){return t[n]&&e[n]&&t[n].localeCompare?t[n]?t[n].localeCompare(e[n],"zh-CN"):-1:1},r&&(t.defaultSortOrder=r),t.showSorterTooltip=!1}}},54763:function(t,e,r){"use strict";var n=r(51864),o=new Set;function a(){}o.add("date-YY"),o.add("daterange-YY"),o.add("date-M1"),o.add("daterange-M1"),o.add("date"),o.add("daterange"),o.add("datetime-HH"),o.add("datetimerange-HH"),o.add("datetime-mm"),o.add("datetimerange-mm"),o.add("datetime"),o.add("datetimerange"),o.add("timestamp"),o.add("time-HH"),o.add("timerange-HH"),o.add("time-mm"),o.add("timerange-mm"),o.add("time"),o.add("timerange"),o.add("text"),o.add("textarea"),o.add("html"),o.add("steps"),o.add("progress"),o.add("password"),o.add("preselect"),o.add("select"),o.add("multiselect"),o.add("checkbox"),o.add("radio"),o.add("yes-no-radio"),o.add("yes-no-switch"),o.add("caselect"),o.add("relation"),o.add("file"),o.add("picture"),o.add("chemstruc"),o.add("sql-code-editor"),o.add("video"),o.add("takeVideo"),o.add("signature"),o.add("non-download-file"),o.add("decimal"),o.add("float"),o.add("double"),o.add("int"),o.add("relselect"),o.add("refselect"),o.add("range"),o.add("intrange"),o.add("decimalrange"),o.add("texttags"),o.add("entity-select"),o.add("table-entity-select"),o.add("modal-entity-select"),o.add("color"),o.add("url"),o.add("hidden"),o.add("lab-tree-select"),a.isSupport=function(t){return!!t&&(!!n.vr.getCustomViewControl(t)||o.has(t))},a.getSupportControlType=function(t){return this.isSupport(t.extControlType)?t.extControlType:this.isSupport(t.controlType)?t.controlType:"text"},a.getControlType=function(t,e){var r;return r=this.getSupportControlType(t),e&&"string"==typeof e&&-1===e.indexOf("@R@")&&"relselect"===r&&-1!=e.indexOf("download-files/")&&(r="file"),r},e.A=a},46704:function(t,e,r){"use strict";var n=r(42455),o=r(17636),a=r(92749),i=r(54763),c=r(69036),u=r(48287);function s(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(){f=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function w(){}function b(){}function A(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var E=A.prototype=w.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=p(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=d;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:v,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return b.prototype=A,a(E,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:b,configurable:!0}),b.displayName=l(A,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var h,p=[],d=new Map,v=new Map,y=new Map,m=new Map,g=new Map,w=new Map,b=new Map,A=new Map,x=new Map,k=new Map;function L(t){var e=[];return t&&t.forEach((function(t){var r=i.A.getSupportControlType(t);"caselect"!=r&&"select"!=r&&"multiselect"!=r&&"steps"!=r&&"preselect"!=r&&"checkbox"!=r&&"radio"!=r||v.has(t.mstrucId)||e.push(t.mstrucId)})),e}function E(t){var e=[];return t&&t.forEach((function(t){var r=L(t.writes);S(e,r),r=L(t.preposes),S(e,r)})),e}function C(t,e){return O.apply(this,arguments)}function O(){return(O=(0,o.A)(f().mark((function t(e,r){var n,o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],!r){t.next=7;break}return r.groups&&r.groups.forEach((function(t){var e=L(t.fields);S(n,e)})),o=E(r.actions),S(n,o),t.next=7,T(e,n);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(t,e){return e&&e.forEach((function(e){t.includes(e)||t.push(e)})),t}function Y(t,e){return j.apply(this,arguments)}function j(){return(j=(0,o.A)(f().mark((function t(e,r){var n,o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],o=L(r.columns),S(n,o),o=L(r.criterias),S(n,o),t.next=7,T(e,n);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t,e){return I.apply(this,arguments)}function I(){return(I=(0,o.A)(f().mark((function t(e,r){var n,o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=[],r){t.next=3;break}return t.abrupt("return");case 3:return o=L(r.columns),S(n,o),o=L(r.criterias),S(n,o),o=L(r.drillingParams),S(n,o),o=L(r.reStatParams),S(n,o),o=E(r.actions),S(n,o),o=E(r.rowActions),S(n,o),t.next=17,T(e,n);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t,e,r){return N.apply(this,arguments)}function N(){return(N=(0,o.A)(f().mark((function t(e,r,n){var o,i,c,u,l,h;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r&&r.length>0)){t.next=5;break}return t.next=3,a.A.requestEnum(e,r,n);case 3:for(i in o=t.sent){c=o[i],u=s(c);try{for(u.s();!(l=u.n()).done;)(h=l.value).css&&(h.color=h.css.color)}catch(t){u.e(t)}finally{u.f()}v.set(i,c)}case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(){}_.loadEnumOfFields=function(){var t=(0,o.A)(f().mark((function t(e,r){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=L(r),t.next=3,T(e,n);case 3:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.loadEnumOfFieldsWithPath=function(){var t=(0,o.A)(f().mark((function t(e,r,n){var o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=L(r),t.next=3,T(e,o,n);case 3:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),_.getOptions=function(){var t=(0,o.A)(f().mark((function t(e,r){var n,o,i,c;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",null);case 2:if(v.has(r)){t.next=7;break}return t.next=5,a.A.requestOptions(e,r)[r];case 5:if(null!=(n=t.sent)){o=s(n);try{for(o.s();!(i=o.n()).done;)(c=i.value).css&&(c.color=c.css.color)}catch(t){o.e(t)}finally{o.f()}v.set(r,n)}case 7:return t.abrupt("return",v.get(r));case 8:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.requestLtmplConfig=function(){var t=(0,o.A)(f().mark((function t(e,r){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m.has(r)){t.next=10;break}return t.t0=m,t.t1=r,t.next=5,a.A.requestLtmplConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),n=m.get(r),t.next=10,P(e,n.ltmplConfig);case 10:return t.abrupt("return",m.get(r));case 11:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.requestL2LtmplConfig=function(){var t=(0,o.A)(f().mark((function t(e,r){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(g.has(r)){t.next=10;break}return t.t0=g,t.t1=r,t.next=5,a.A.requestL2LtmplConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),n=g.get(r),t.next=10,P(e,n.ltmplConfig);case 10:return t.abrupt("return",g.get(r));case 11:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.requestSelectConfig=function(){var t=(0,o.A)(f().mark((function t(e,r){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y.has(r)){t.next=9;break}return t.t0=y,t.t1=r,t.next=5,a.A.requestSelectConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,Y(e,y.get(r));case 9:return t.abrupt("return",y.get(r));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.requestDtmplConfig=function(){var t=(0,o.A)(f().mark((function t(e,r,n){var o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w.has(r)){t.next=11;break}return t.next=3,a.A.requestDtmplConfig(e,r,n);case 3:if(!(o=t.sent)||o.dynamic){t.next=8;break}w.set(r,o),t.next=9;break;case 8:return t.abrupt("return",o);case 9:return t.next=11,C(e,o);case 11:return t.abrupt("return",w.get(r));case 12:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),_.requestTtmplConfig=function(){var t=(0,o.A)(f().mark((function t(e,r){var n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(b.has(r)){t.next=6;break}return t.next=3,a.A.requestTtmplConfig(e,r);case 3:n=t.sent,b.set(r,n),b.set(n.id,n);case 6:return t.abrupt("return",b.get(r));case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.requestViewDtmplConfig=function(){var t=(0,o.A)(f().mark((function t(e,r){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A.has(r)){t.next=9;break}return t.t0=A,t.t1=r,t.next=5,a.A.requestViewDtmplConfig(e,r);case 5:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=9,C(e,A.get(r));case 9:return t.abrupt("return",A.get(r));case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.requestAddDtmplConfig=function(){var t=(0,o.A)(f().mark((function t(e,r,n){var o;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n||r,x.has(o)){t.next=10;break}return t.t0=x,t.t1=o,t.next=6,a.A.requestAddDtmplConfig(e,r,n);case 6:return t.t2=t.sent,t.t0.set.call(t.t0,t.t1,t.t2),t.next=10,C(e,x.get(o));case 10:return t.abrupt("return",x.get(o));case 11:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),_.getEnums=function(t){return v.get(t)},_.getEnumOption=function(t,e){if(!e)return null;var r=this.getEnums(t),n=void 0;return r&&r.forEach((function(t){t.value!==e||(n=t)})),n},_.getEnumValueColor=function(t,e){var r=_.getEnumOption(t,e);return r?r.color:void 0},_.requestBlocks=function(){var t=(0,o.A)(f().mark((function t(e,r){var n,o,i,c,u;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(p.length<1)){t.next=7;break}return t.next=3,a.A.requestBlocks(e||void 0,r||void 0);case 3:if(o=t.sent){i=s(o.blocks);try{for(i.s();!(c=i.n()).done;)u=c.value,p.push(u)}catch(t){i.e(t)}finally{i.f()}h=o.programName,n={blocks:o.blocks,l2MenuId:o.l2MenuId,blockId:o.blockId,programName:o.programName}}t.next=8;break;case 7:n={blocks:p,blockId:r,l2MenuId:e,programName:h};case 8:return t.abrupt("return",n);case 9:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),_.initfastMenu=(0,o.A)(f().mark((function t(){var e,r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(d.size<1)){t.next=5;break}return t.next=3,a.A.requestFastMenu();case 3:if(e=t.sent)for(r in e)d.set(r,e[r]);case 5:case"end":return t.stop()}}),t)}))),_.fastMenu=function(){var t=(0,o.A)(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(d.size<1)){t.next=3;break}return t.next=3,_.initfastMenu();case 3:return t.abrupt("return",d.get(e));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_.reload=function(){var t=(0,o.A)(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.A.reload();case 2:if("success"==t.sent.status){t.next=5;break}return t.abrupt("return");case 5:this.clear(),c.Ay.success((0,u.A)("${执行成功}"));case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),_.cache=function(t){t&&k.set(t.code,t)},_.getFromCache=function(t){return k.get(t)},_.clear=(0,o.A)(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:d.clear(),v.clear(),m.clear(),w.clear(),A.clear(),x.clear(),y.clear(),g.clear(),p.splice(0,p.length),k.clear();case 10:case"end":return t.stop()}}),t)}))),e.A=_},92749:function(t,e,r){"use strict";r.d(e,{A:function(){return k}});var n=r(42455),o=r(50828),a=r(17636),i=r(44274),c=r(2532),u=r(8130),s=r(19612),l=r(69036),f=r(21396),h=r.n(f),p=r(34572),d=function(){return(0,c.A)((function t(){(0,i.A)(this,t)}),null,[{key:"aesEncrypt",value:function(t,e){e=e||"kuangkie";var r=h().enc.Utf8.parse(e),n=h().enc.Utf8.parse(t);return h().AES.encrypt(n,r,{mode:h().mode.ECB,padding:h().pad.Pkcs7}).toString()}},{key:"aesDecrypt",value:function(t,e){var r=e||"kuangkie",n=h().enc.Utf8.parse(r),o=h().AES.decrypt(t,n,{mode:h().mode.ECB,padding:h().pad.Pkcs7});return h().enc.Utf8.stringify(o).toString()}},{key:"rsaEncrypt",value:function(t,e){var r=new p.A;return r.setPublicKey(e),r.encrypt(t)}},{key:"rsaDecrypt",value:function(t,e){var r=new p.A;return r.setPrivateKey(e),r.decrypt(t)}}])}(),v=(r(65826),r(74353)),y=r.n(v),m=r(51864),g=r(48287);function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,o.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function x(){x=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="suspendedYield",v="executing",y="completed",m={};function g(){}function w(){}function b(){}var A={};l(A,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(A=L);var E=b.prototype=g.prototype=Object.create(A);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=h(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return w.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var k=function(){return(0,c.A)((function t(){(0,i.A)(this,t)}),null,[{key:"requestEnum",value:(ft=(0,a.A)(x().mark((function t(e,r,n){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=6;break}return t.next=3,this.requestEnumWithPath(e,r,"/enum");case 3:case 8:return t.abrupt("return",t.sent);case 6:return t.next=8,this.requestEnumWithPath(e,r,n);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return ft.apply(this,arguments)})},{key:"requestEnumWithPath",value:(lt=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r.length>0)){t.next=7;break}return t.next=3,s.A.super({url:u.A.joinPath("/v3",n),serverKey:e,query:{mstrucIds:r}});case 3:return o=t.sent,t.abrupt("return",o.enumMap);case 7:return t.abrupt("return",{});case 8:case"end":return t.stop()}}),t)}))),function(t,e,r){return lt.apply(this,arguments)})},{key:"requestOptions",value:(st=(0,a.A)(x().mark((function t(e,r){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestEnum(e,[r],null);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return st.apply(this,arguments)})},{key:"requestDtmplConfig",value:(ut=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/dtmpl/config",serverKey:e,method:"GET",query:{sourceId:r,code:n}});case 3:return o=t.sent,t.abrupt("return",o.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return ut.apply(this,arguments)})},{key:"requestTtmplConfig",value:(ct=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/ttmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n.ttmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return ct.apply(this,arguments)})},{key:"requestViewDtmplConfig",value:(it=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/view-dtmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return it.apply(this,arguments)})},{key:"requestAddDtmplConfig",value:(at=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/add-dtmpl/config",serverKey:e,method:"GET",query:{sourceId:r,addTmplId:n}});case 3:return o=t.sent,t.abrupt("return",o.dtmplConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return at.apply(this,arguments)})},{key:"requestSelectConfig",value:(ot=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/select/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n.selectConfig);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return ot.apply(this,arguments)})},{key:"requestLtmplConfig",value:(nt=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/ltmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return nt.apply(this,arguments)})},{key:"requestL2LtmplConfig",value:(rt=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/l2/ltmpl/config",serverKey:e,method:"GET",query:{sourceId:r}});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return rt.apply(this,arguments)})},{key:"requestLtmplQueryKey",value:(et=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/ltmpl/query/key",serverKey:e,method:"GET",query:A(A({},n),{},{sourceId:r})});case 3:return o=t.sent,t.abrupt("return",o);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return et.apply(this,arguments)})},{key:"requestLtmplQueryTop",value:(tt=(0,a.A)(x().mark((function t(e,r,n){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,n,"/v3/ltmpl/top-data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return tt.apply(this,arguments)})},{key:"requestTtmplRootData",value:(Z=(0,a.A)(x().mark((function t(e,r,n){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,n,"/v3/ttmpl/root-data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return Z.apply(this,arguments)})},{key:"requestMstrucLtmplQueryTop",value:(X=(0,a.A)(x().mark((function t(e,r,n){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonLtmplQueryTop(e,r,n,"/v3/mstruc/ltmpl/top-data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return X.apply(this,arguments)})},{key:"queryTop1",value:(J=(0,a.A)(x().mark((function t(e,r){var n,o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestMstrucLtmplQueryTop(e,r,{top:1});case 2:return n=t.sent,o=null,n&&n.entities&&n.entities[0]&&(o=n.entities[0].code),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return J.apply(this,arguments)})},{key:"requestCommonLtmplQueryTop",value:(Q=(0,a.A)(x().mark((function t(e,r,n,o){var a;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=4;break}l.Ay.error("SourceId is undefined!"),t.next=8;break;case 4:return t.next=6,s.A.super({url:o,serverKey:e,method:"GET",query:A(A({},n),{},{sourceId:r})});case 6:return a=t.sent,t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return Q.apply(this,arguments)})},{key:"requestSelectedData",value:(W=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=3;break}return l.Ay.warning((0,g.A)("${没有选择实体}")),t.abrupt("return",null);case 3:return t.next=6,s.A.super({url:"/v3/field-group/data/selected",serverKey:e,query:{codes:n,sourceId:r},method:"GET"});case 6:if("success"!==(o=t.sent).status){t.next=11;break}return t.abrupt("return",o.entities);case 11:return l.Ay.error((0,g.A)("${没有找到实体}!")),t.abrupt("return",null);case 13:case"end":return t.stop()}}),t)}))),function(t,e,r){return W.apply(this,arguments)})},{key:"requestVersionList",value:(z=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/dtmpl/data/versions",serverKey:e,query:{pageNo:1,sourceId:r,code:n},method:"GET"});case 2:return o=t.sent,t.abrupt("return",o.versions);case 4:case"end":return t.stop()}}),t)}))),function(t,e,r){return z.apply(this,arguments)})},{key:"requestCommonDtmplData",value:(H=(0,a.A)(x().mark((function t(e,r,n,o,a){var i;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:a,serverKey:e,query:{code:n,versionId:o,sourceId:r},method:"GET"});case 2:if("success"!==(i=t.sent).status){t.next=7;break}return t.abrupt("return",i.entity);case 7:return l.Ay.error((0,g.A)("${实体不存在}!")),t.abrupt("return",null);case 9:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return H.apply(this,arguments)})},{key:"requestDtmplData",value:(U=(0,a.A)(x().mark((function t(e,r,n,o){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/v3/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return U.apply(this,arguments)})},{key:"getDtmplData",value:(V=(0,a.A)(x().mark((function t(e,r,n,o){var a;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e.dynamic&&(a=e.entity),a){t.next=5;break}return t.next=4,this.requestDtmplData(r,n,o,null);case 4:a=t.sent;case 5:return t.abrupt("return",a);case 6:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return V.apply(this,arguments)})},{key:"requestMstrucDtmplData",value:(q=(0,a.A)(x().mark((function t(e,r,n,o){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/v3/mstruc/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return q.apply(this,arguments)})},{key:"requestViewDtmplData",value:(B=(0,a.A)(x().mark((function t(e,r,n,o){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/v3/view-dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return B.apply(this,arguments)})},{key:"requestMstrucViewDtmplData",value:(K=(0,a.A)(x().mark((function t(e,r,n,o){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.requestCommonDtmplData(e,r,n,o,"/v3/mstruc/view-dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return K.apply(this,arguments)})},{key:"postCommonDtmplData",value:(M=(0,a.A)(x().mark((function t(e,r,n,o,a){var i,c,u,l;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c in i=new FormData,n)c.startsWith("$virtual")||i.append(c,n[c]||0==n[c]?n[c]:"");return i.append("sourceId",r.toString()),t.next=5,s.A.super({url:a,serverKey:e,data:i,method:"POST"},"formdata");case 5:return u=t.sent,l=null,u?"success"===u.status&&(o&&(u.message?o.warning((0,g.A)("${保存成功}!")+u.message,4):o.success((0,g.A)("${保存成功}!"),1)),l=u.entityCode?u.entityCode:u.code):o&&o.error((0,g.A)("${保存失败}!")),t.abrupt("return",{code:l,status:u?u.status:"error"});case 9:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return M.apply(this,arguments)})},{key:"postDtmplData",value:($=(0,a.A)(x().mark((function t(e,r,n,o){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.postCommonDtmplData(e,r,n,o,"/v3/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return $.apply(this,arguments)})},{key:"postMstrucDtmplData",value:(G=(0,a.A)(x().mark((function t(e,r,n,o){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,this.postCommonDtmplData(e,r,n,o,"/v3/mstruc/dtmpl/data");case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return G.apply(this,arguments)})},{key:"postFileAction",value:function(t,e){return u.A.joinPath(u.A.api(t),"/v3/upload")}},{key:"requestL2LtmplQueryKey",value:(F=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"v3/l2/ltmpl/query/key",serverKey:e,method:"GET",query:A(A({},n),{},{sourceId:r})});case 3:return o=t.sent,t.abrupt("return",o);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r){return F.apply(this,arguments)})},{key:"requestLtmplCount",value:(R=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/ltmpl/data/count",serverKey:e,query:{sourceId:r},method:"GET"});case 3:return n=t.sent,t.abrupt("return",n.count);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return R.apply(this,arguments)})},{key:"requestQueryData",value:(D=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/ltmpl/query/data",serverKey:e,method:"GET",query:A({queryKey:r},n)});case 2:return o=t.sent,t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,e,r){return D.apply(this,arguments)})},{key:"getCodesOfSelectedRows",value:function(t){var e=[];if(t&&!(t.length<1)){var r,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return w(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(t);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.code?e.push(o.code):l.Ay.error((0,g.A)("${没找到所选数据的Code}!!"))}}catch(t){n.e(t)}finally{n.f()}return e.length<1&&l.Ay.error((0,g.A)("${没找到所选数据的Code}!!")),e}}},{key:"deleteData",value:(_=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=this.getCodesOfSelectedRows(n),t.next=3,this.deleteByCode(e,r,o);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return _.apply(this,arguments)})},{key:"deleteByCode",value:(N=(0,a.A)(x().mark((function t(e,r,n){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/ltmpl/data",serverKey:e,data:{codes:n,sourceId:r},method:"DELETE"});case 2:if("success"!=t.sent.status){t.next=8;break}return l.Ay.success((0,g.A)("${删除成功}"),1),t.abrupt("return",!0);case 8:return l.Ay.error((0,g.A)("${删除成功}")),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t)}))),function(t,e,r){return N.apply(this,arguments)})},{key:"requestQueryCount",value:(T=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/ltmpl/query/count",serverKey:e,method:"GET",query:{queryKey:r}});case 2:return n=t.sent,t.abrupt("return",n.count);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return T.apply(this,arguments)})},{key:"postActions",value:(I=(0,a.A)(x().mark((function t(e,r,n,o){var a,i,c,u;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c in a=this.getCodesOfSelectedRows(n),i=new FormData,o)i.append(c,o[c]?o[c]:"");return i.append("sourceId",r.toString()),i.append("codes",a.join(",")),t.next=7,s.A.super({url:"/v3/action",serverKey:e,data:i,method:"POST"},"formdata",null);case 7:return u=t.sent,t.abrupt("return",u);case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return I.apply(this,arguments)})},{key:"increCalc",value:(P=(0,a.A)(x().mark((function t(e,r){var n,o,a=arguments;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:{},t.next=3,s.A.super({url:"/v3/stat/increcalc",serverKey:e,method:"POST",data:A(A({},n),{},{sourceId:r})});case 3:return"success"===(o=t.sent).status?l.Ay.success((0,g.A)("${统计成功}"),1):l.Ay.error((0,g.A)("${统计失败}")),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)}))),function(t,e){return P.apply(this,arguments)})},{key:"doCopy",value:(j=(0,a.A)(x().mark((function t(e,r,n,o,a){var i;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/mstruc/copy-data",serverKey:e,method:"POST",query:{sourceId:r,code:n,copyRelation:o,copyOpp2One:a}},null,null);case 2:return"success"==(i=t.sent).status&&i.message&&l.Ay.info("提示信息:"+i.message,4),t.abrupt("return",i.entityCode);case 5:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return j.apply(this,arguments)})},{key:"queryCode",value:(Y=(0,a.A)(x().mark((function t(e,r,n){var o;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=void 0,!r){t.next=16;break}if("listop"!=r){t.next=9;break}return t.next=5,this.queryTop1(n,e);case 5:(o=t.sent)||(o="bad-code"),t.next=16;break;case 9:if("listop-new"!=r){t.next=15;break}return t.next=12,this.queryTop1(n,e);case 12:o=t.sent,t.next=16;break;case 15:"new"==r&&(o=null);case 16:return t.abrupt("return",o);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return Y.apply(this,arguments)})},{key:"download",value:function(t,e){var r=e.split("/"),n=r[r.length-1];u.A.downloadFile(this.getFileUrl(t,e)+"&disposition=attachment",n)}},{key:"openfile",value:function(t,e,r){var n=e.split("/"),o=n[n.length-1];u.A.openFile(this.getFileUrl(t,e),o,r)}},{key:"getFileUrl",value:function(t,e){var r=u.A.hydrocarbonToken();return u.A.joinPath(u.A.api(t),u.A.joinPath("/v3/files",e))+"?@token=".concat(r,"&@programToken=").concat(u.A.programCode())}},{key:"getFileTxtUrl",value:function(t,e){var r=u.A.hydrocarbonToken();return u.A.joinPath(u.A.api(t),u.A.joinPath("/v3/files/text",e))+"?@token=".concat(r,"&@programToken=").concat(u.A.programCode())}},{key:"loadFileTxt",value:(S=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:u.A.joinPath("/v3/files/text",r),serverKey:e,method:"GET"});case 2:return n=t.sent,t.abrupt("return",n.text);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return S.apply(this,arguments)})},{key:"requestBlocks",value:(O=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/menu/blocks",method:"GET",query:{l2MenuId:e,blockId:r}});case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)}))),function(t,e){return O.apply(this,arguments)})},{key:"logout",value:(C=(0,a.A)(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s.A.super({url:"/v3/auth/token",method:"DELETE"}).then((function(t){u.A.toLogin()}));case 1:case"end":return t.stop()}}),t)}))),function(){return C.apply(this,arguments)})},{key:"resetPassword",value:(E=(0,a.A)(x().mark((function t(e,r,n,o){var a,i,c;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=d.rsaEncrypt(r,o),i=d.rsaEncrypt(n,o),t.next=4,s.A.super({url:"/v3/auth/password",serverKey:e,query:{oldPassword:a,newPassword:i},method:"POST"});case 4:return c=t.sent,t.abrupt("return",c);case 6:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return E.apply(this,arguments)})},{key:"getContextSourceConfig",value:(L=(0,a.A)(x().mark((function t(){var e;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/context-source-config",method:"GET"});case 2:if(!(e=t.sent)){t.next=7;break}return t.abrupt("return",e.config);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(){return L.apply(this,arguments)})},{key:"getContextSourceValue",value:(k=(0,a.A)(x().mark((function t(){var e;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/auth/context-source-value",method:"GET"});case 2:return e=t.sent,t.abrupt("return",e?e.value:null);case 4:case"end":return t.stop()}}),t)}))),function(){return k.apply(this,arguments)})},{key:"login",value:(b=(0,a.A)(x().mark((function t(e,r,n,o,a){var i,c,u;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=y()(new Date).tz("Europe/London").format("YYYY-MM-DD HH:mm:ss"),e.datetime=i,c=d.rsaEncrypt(JSON.stringify(e),o),t.next=5,s.A.super({url:"/v3/auth/hctoken",header:{programCode:a},query:{userInfo:c,kaptchaToken:r,kaptchaText:n},method:"GET"});case 5:return u=t.sent,t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)}))),function(t,e,r,n,o){return b.apply(this,arguments)})},{key:"setContext",value:(v=(0,a.A)(x().mark((function t(e){var r,n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new FormData).append("context",JSON.stringify(e)),t.next=4,s.A.super({url:"/v3/auth/context",data:r,method:"POST"},"formdata");case 4:return"success"===(n=t.sent).status&&(window.location.hash="#/home"),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)}))),function(t){return v.apply(this,arguments)})},{key:"getKaptchaToken",value:(p=(0,a.A)(x().mark((function t(e){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/auth/kaptcha",header:{programCode:e},method:"POST"});case 2:if("success"!==(r=t.sent).status){t.next=7;break}return t.abrupt("return",r);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:"getRasPubkey",value:(h=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({url:"/v3/auth/ras-pubkey",header:{programCode:r},serverKey:e,method:"GET"});case 2:if("success"!==(n=t.sent).status){t.next=7;break}return t.abrupt("return",n.rasPubkey);case 7:return t.abrupt("return",null);case 8:case"end":return t.stop()}}),t)}))),function(t,e){return h.apply(this,arguments)})},{key:"getUser",value:(f=(0,a.A)(x().mark((function t(e,r){var n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.A.super({header:{programCode:e,hydrocarbonToken:r},url:"/v3/current-user"});case 2:return n=t.sent,t.abrupt("return",n?n.user:null);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return f.apply(this,arguments)})},{key:"requestFastMenu",value:(o=(0,a.A)(x().mark((function t(){var e;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/menu/fast-menu",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e?e.fastMenu:null);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)})},{key:"reload",value:(r=(0,a.A)(x().mark((function t(){var e;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"/v3/tmpl/reload",method:"GET"});case 3:return e=t.sent,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"getLocale",value:(e=(0,a.A)(x().mark((function t(e){var r;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,s.A.super({url:"".concat("/v3/multilingual","?language=").concat(e),method:"GET"});case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"initProgramConfig",value:(t=(0,a.A)(x().mark((function t(e){var r,o,a;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.programCode&&m.vr.setProgramCode(e.programCode),e.hydrocarbonServer&&m.vr.setHydrocarbonServer(e.hydrocarbonServer),e.extendServer&&(r=e.extendServer,"object"==(0,n.A)(r)&&(o=[],Array.isArray(r)?o=r:o.push(r),m.vr.putExtendServers(o))),m.vr.setProgramName(e.programName),m.vr.setProgramName_sub(e.programName_sub),m.vr.setProgramName_NavLeft(e.programName_NavLeft),m.vr.setProgramName_Logo(e.programName_Logo),t.next=9,s.A.getProramConfig();case 9:(a=t.sent)&&(m.vr.setProgramCode(a.programCode),m.vr.setHydrocarbonServer(a.hydrocarbonServer),m.vr.setProgramName(a.programName),m.vr.setProgramName_sub(a.programName_NavLeft),m.vr.setProgramName_NavLeft(a.programName_NavLeft),m.vr.setProgramName_Logo(a.programName_Logo));case 11:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]);var t,e,r,o,f,h,p,v,b,k,L,E,C,O,S,Y,j,P,I,T,N,_,D,R,F,G,$,M,K,B,q,V,U,H,z,W,Q,J,X,Z,tt,et,rt,nt,ot,at,it,ct,ut,st,lt,ft}()},19612:function(t,e,r){"use strict";r.d(e,{A:function(){return l}});var n=r(44274),o=r(2532),a=r(15734),i=r.n(a),c=r(69036),u=r(8130),s=r(48287),l=function(){return(0,o.A)((function t(){(0,n.A)(this,t)}),null,[{key:"super",value:function(t,e,r){var n,o,a,l=null!==(n=t.header)&&void 0!==n&&n.hydrocarbonToken?t.header.hydrocarbonToken:u.A.hydrocarbonToken()?u.A.hydrocarbonToken():u.A.getAnoHydrocarbonToken(),f=t.serverKey;a=null!==(o=t.header)&&void 0!==o&&o.programCode?t.header.programCode:u.A.programCode(f),t.data&&!1!==t.data.isShowLoading&&(document.getElementById("ajaxLoading").style.display=r||"block");var h="form";"formdata"===e?h=null:"json"===e&&(h="application/json");var p=t.method?t.method:"POST";return new Promise((function(e,r){var n=t.hydrocarbonServer?t.hydrocarbonServer:u.A.api(f);i()(p,u.A.joinPath(n,t.url)).type(h).set("hydrocarbon-token",l).set("hydrocarbon-program-token",a).query(t.query||"").send(t.data).end((function(n,o){if(o)if(t.data&&!1!==t.data.isShowLoading&&(document.getElementById("ajaxLoading").style.display="none"),200===o.status){var a=o.body;a&&"error"===a.status&&c.Ay.error((0,s.A)("${错误消息}: ")+a.message,6),e(a)}else 201===o.status?e(o):403===o.status?u.A.toLogin():405===o.status||406===o.status?(c.Ay.error((0,s.A)("${权限不足}")),e(o)):404===o.status||504===o.status?(console.log((0,s.A)("${没找到服务}(")+t.url+")",5),e(o)):500===o.status?(o.body&&(c.Ay.error((0,s.A)("${后台处理错误}(")+o.body.message+")",5),console.log(o.text)),e(o)):(c.Ay.error((0,s.A)("${请求服务失败}(")+t.url+")",5),r(o.body));else c.Ay.error((0,s.A)("${服务器连接失败}")),e(null)}))}))}},{key:"getProramConfig",value:function(){return new Promise((function(t,e){i().get("programConfig.json").end((function(r,n){n?200===n.status?t(n.body):e(n.body):e()}))})).catch((function(t){console.log(t)}))}},{key:"getHeaderObj",value:function(){return{"hydrocarbon-token":u.A.hydrocarbonToken()?u.A.hydrocarbonToken():u.A.getAnoHydrocarbonToken(),"hydrocarbon-program-token":u.A.programCode()}}}])}()},78229:function(t,e,r){"use strict";var n=r(74353),o=r.n(n),a=r(27251);function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(){}u.current=function(t,e){var r=e;if(r||(r="YYYY-MM-DD HH:mm:ss SSS"),!t)return null;var n=[t];t.includes("~")&&(n=t.split("~"));var o=[];for(var a in n){var i=this.currentL1(n[a],r);o[a]=i||""}return 1==n.length?o[0]:o[0]+"~"+o[1]},u.currentL1=function(t,e){if(!t)return null;var r=new RegExp("current:?([-,+]?)([0-9]*)([D,M,Y,m,s,h]?)").exec(t);if(r){var n=r[3];if(""==n)return o()().format(e);var a=r[1];""==a&&(a="+");var i=r[2];""==i&&(i="1");var c=parseInt(i),u="days";switch(n){case"D":u="days";break;case"M":u="months";break;case"Y":u="years";break;case"W":u="weeks";break;case"h":u="hours";break;case"m":u="minutes";break;case"s":u="seconds"}return"-"==a?o()().subtract(c,u).format(e):o()().add(c,u).format(e)}return null},u.getFieldValueTitleOfMstrucId=function(t,e,r,n){var o=u.getFieldId(t,r),a=e&&e[o];return a?("null"==(a=a.indexOf("@R@")>0?e[o].split("@R@")[1]:e[o])&&(a=null),a):n},u.getFieldValueCodeOfMstrucId=function(t,e,r,n){var o=u.getFieldId(t,r),a=e&&e[o];if(!a)return n;if(a instanceof Array){var i=[];a.forEach((function(t){i.push(t.indexOf("@R@")>0?t.split("@R@")[0]:t)})),a=i.toString()}else a=a.indexOf("@R@")>0?a.split("@R@")[0]:a;return a},u.getFieldValueOfMstrucId=function(t,e,r,n){var o=u.getFieldId(t,r),a=e&&e[o];return a?a=a instanceof Array?a.toString():e[o]:n},u.getFieldId=function(t,e){var r=void 0,n=t.groups;if(null!=n){var o,a=i(n);try{for(a.s();!(o=a.n()).done;){var c,u=i(o.value.fields);try{for(u.s();!(c=u.n()).done;){var s=c.value;if(s.mstrucId==e){r=s.id;break}}}catch(t){u.e(t)}finally{u.f()}if(r)break}}catch(t){a.e(t)}finally{a.f()}}else{var l=t.columns;if(null!=l){var f,h=i(l);try{for(h.s();!(f=h.n()).done;){var p=f.value;if(p.mstrucId==e){r=p.id;break}}}catch(t){h.e(t)}finally{h.f()}}}return r},u.getRelMstrucFieldId=function(t,e,r){var n=u.getFieldId(t,r);return e&&e[n]?e[n].split("@R@")[0]:void 0},u.buildInDtmplConfig=function(t,e,r){if(!t.buildInFuncFields){var n,o=[],c=i(t.groups);try{for(c.s();!(n=c.n()).done;){var u,s=i(n.value.fields);try{for(s.s();!(u=s.n()).done;){var l=u.value;(l.requiredRuleCriterias&&l.requiredRuleCriterias.length>0||l.usableRuleCriterias&&l.usableRuleCriterias.length>0)&&(l.shouldUpdate=!0,o.push(l))}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}t.buildInFuncFields=o}if(t.buildInFuncFields.length>0){var f=function(e,r,n){var o,c=i(t.buildInFuncFields);try{for(c.s();!(o=c.n()).done;){var u=o.value;null!=u.requiredRuleCriterias&&u.requiredRuleCriterias.length>0&&(a.A.isMatch(u.requiredRuleCriterias,[r],n,t)?u.required=!0:u.required=!1),null!=u.usableRuleCriterias&&u.usableRuleCriterias.length>0&&(a.A.isMatch(u.usableRuleCriterias,[r],n,t)?u.disabled=!1:u.disabled=!0)}}catch(t){c.e(t)}finally{c.f()}};return f(0,e,null),t.onValuesChange=function(t,e,r){f(0,e,r)},t}return t},e.A=u},8130:function(t,e,r){"use strict";var n=r(42455),o=r(74353),a=r.n(o),i=r(78229),c=r(51864);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=void 0,l={},f={},h={},p={},d={},v=void 0;e.A={setAntdUseToken:function(t){v=t},getAntdUseToken:function(){return v},setAppDtmplConfigFunc:function(t,e){h[t]=e},getAppDtmplConfig:function(t,e,r){return t?h[t.id]?h[t.id](t,e,r):i.A.buildInDtmplConfig(t,e,r):t},isDynamicDtmplConfig:function(t){return!(!t||!h[t.id])},setCustomPage:function(t,e){var r=t;r&&(r.startsWith("/")||(r="/"+r),l[r]=e)},setCustomControl:function(t,e,r){var n=t;n.startsWith("/")||(n="/"+n),f[n]=e,p[n]=r},getCustomViewControl:function(t){return t?t.startsWith("/")?f[t]:f["/"+t]:null},getCustomEditControl:function(t){return t?t.startsWith("/")?p[t]:p["/"+t]:null},getCustomPage:function(t){return t?t.startsWith("/")?l[t]:l["/"+t]:null},setProgramCode:function(t,e){t&&(e?window.localStorage.setItem(e+"programCode",t):(window.localStorage.setItem("programCode",t),window.sessionStorage.setItem("programCode",t)))},setSessionProgramCode:function(t){t&&window.sessionStorage.setItem("programCode",t)},programCode:function(t){var e=null;return(e=t?window.localStorage.getItem(t+"programCode"):window.sessionStorage.getItem("programCode"))||(e=window.localStorage.getItem("programCode"),this.setSessionProgramCode(e)),e},setHydrocarbonServer:function(t,e){e?window.localStorage.setItem(e+"hydrocarbonServer",t):this.programCode()?window.localStorage.setItem(this.programCode()+"hydrocarbonServer",t):window.localStorage.setItem("hydrocarbonServer",t)},setProgramName_Logo:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName_Logo",t):window.localStorage.setItem("programName_Logo",t)},api:function(t){var e=null;if((e=t?window.localStorage.getItem(t+"hydrocarbonServer"):window.localStorage.getItem(this.programCode()+"hydrocarbonServer"))||(e=window.localStorage.getItem("hydrocarbonServer")),e)if("/"==e){var r=new URL(window.location.href),n=r.pathname.split("/kuangkie")[0];e=this.joinPath(r.origin,n)}else e.startsWith("http")||(e=this.joinPath(new URL(window.location.href).origin,e));else{var o=new URL(window.location.href),a=null;o.pathname.indexOf("/kuangkie")>0&&(a=o.pathname.split("/kuangkie")[0]),e=this.joinPath(o.origin,a)}return e},hydrocarbonToken:function(){var t=window.sessionStorage.getItem(this.programCode()+"hydrocarbonToken");return t||(t=window.sessionStorage.getItem("hydrocarbonToken")),t||((t=window.localStorage.getItem(this.programCode()+"hydrocarbonToken"))||(t=window.sessionStorage.getItem("hydrocarbonToken")),this.setSessionHydrocarbonToken(t)),t},putExtendServers:function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;d[n.key]=n,n.key&&n.hydrocarbonServer&&(c.vr.setProgramCode(n.programCode,n.key),c.vr.setHydrocarbonServer(n.hydrocarbonServer,n.key))}}catch(t){r.e(t)}finally{r.f()}},getExtendServers:function(t){return d[t]},setHydrocarbonToken:function(t){this.programCode()?(window.sessionStorage.setItem(this.programCode()+"hydrocarbonToken",t),window.localStorage.setItem(this.programCode()+"hydrocarbonToken",t)):(window.sessionStorage.setItem("hydrocarbonToken",t),window.localStorage.setItem("hydrocarbonToken",t))},setSessionHydrocarbonToken:function(t){this.programCode()?window.sessionStorage.setItem(this.programCode()+"hydrocarbonToken",t):window.sessionStorage.setItem("hydrocarbonToken",t)},setProgramName:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName",t):window.localStorage.setItem("programName",t)},programName:function(){return this.programCode()?window.localStorage.getItem(this.programCode()+"programName"):window.localStorage.getItem("programName")},setProgramName_sub:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName_sub",t):window.localStorage.setItem("programName_sub",t)},programName_sub:function(){return this.programCode()?window.localStorage.getItem(this.programCode()+"programName_sub"):window.localStorage.getItem("programName_sub")},setProgramName_NavLeft:function(t){this.programCode()?window.localStorage.setItem(this.programCode()+"programName_NavLeft",t):window.localStorage.setItem("programName_NavLeft",t)},programName_NavLeft:function(){var t;return this.programCode()&&(t=window.localStorage.getItem(this.programCode()+"programName_NavLeft")),t||(t=window.localStorage.getItem("programName_NavLeft")),t||"旷识科技"},programName_Logo:function(){var t=null;return this.programCode()&&(t=window.localStorage.getItem(this.programCode()+"programName_Logo")),t||(t=window.localStorage.getItem("programName_Logo")),t&&"undefined"==t?null:t},formateDate:function(t){return t?a()(new Date(t)).format("YYYY-MM-DD HH:mm:ss"):""},dateToString:function(t){var e=t.getFullYear(),r=(t.getMonth()+1).toString(),n=t.getDate().toString();return 1===r.length&&(r="0"+r),1===n.length&&(n="0"+n),e+"-"+r+"-"+n},pagination:function(t,e){return{onchange:function(t){e(t)},current:t.pageInfo.pageNo,pageSize:t.pageInfo.pageSize,total:t.pageInfo.count,showTotal:function(){return"共".concat(t.pageInfo.count,"条")},showQuickIumper:!0}},openFile:function(t,e,r){try{var n=document.createElement("a");n.href=t+r,n.target="_blank",document.body.appendChild(n),n.click(),document.body.removeChild(n)}catch(t){console.log(t)}},toLogin:function(){var t=this.programCode();window.location.hash=t&&"null"!=t&&"undefined"!=t?"#/login/"+t:"#/login"},downloadFile:function(t,e){try{var r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}catch(t){console.log(t)}},downloadFile_old:function(t){try{var e=document.createElement("form");e.action=t,document.body.appendChild(e),e.submit(),document.body.removeChild(e)}catch(t){console.log(t)}},getRandomNum:function(t){var e="",r=Math.floor(10*Math.random());e+=0==r?"1":r+"";for(var n=1;n<t;n++)e+=Math.floor(10*Math.random());return e},getStorageKeyPrefix:function(){return void 0===s&&(s=window.location.pathname||""),s},getLongTextStyle:function(t){if(!t)return{};var e={minWidth:"normal",maxWidth:"1000px",display:"block",textAlign:"left",whiteSpace:"normal",lineHeight:"20px"},r=t.length>200?"350px":t.length>150?"300px":t.length>100?"250px":t.length>50?"200px":t.length>=20?"160px":"80px";return e.minWidth=r,e},setLocalStorge:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60;if(t&&(t=this.getStorageKeyPrefix()+t),e){var n=r||60,o=new Date,a=60*n*1e3;localStorage.setItem(t,JSON.stringify({value:e,expireAddTime:a,expires:o.getTime()+a}))}else localStorage.removeItem(t)},getLocalStorge:function(t){t&&(t=this.getStorageKeyPrefix()+t);try{var e=JSON.parse(localStorage[t]);return!e||e.expires<Date.now()?null:(e.expires=Date.now()+e.expireAddTime,localStorage.setItem(t,JSON.stringify(e)),e.value)}catch(e){return localStorage[t]}},getAnoHydrocarbonToken:function(){var t=this.getLocalStorge("anoHydrocarbonToken");return t||(t="tmpl"+this.getRandomNum(6),this.setLocalStorge("anoHydrocarbonToken",t)),t},transQueryParamsToStr:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"?":"",n=[],o=[];for(var a in t)if(!(e.indexOf(a)>=0)){var i=t[a];[void 0,null].includes(i)?i="":o.push(a)}o.sort();for(var c=function(){var e=s[u],r=t[e],o=encodeURI(e);r&&(r&&r.constructor===Array?r.forEach((function(t){n.push(o+"[]="+encodeURI(t))})):n.push(o+"="+encodeURI(r)))},u=0,s=o;u<s.length;u++)c();return n.length?r+n.join("&"):""},transQueryStrToParams:function(t){var e={},r=t.split("?");if(r&&2==r.length)for(var n=r[1].split("&"),o=0;o<n.length;o++)if(n[o].indexOf("[]=")>0){var a=n[o].split("[]="),i=a[0];e[i]||(e[i]=[]),e[i].push(decodeURI(this.configParamTrans(a[1])))}else{var c=n[o].split("="),u=c[0];u&&(e[u]=decodeURI(this.configParamTrans(c[1])))}return e},isConfigDefaultValue:function(t){return!!t&&t.startsWith("$$current")},configParamTrans:function(t){return t&&t.startsWith&&t.startsWith("$$current")?i.A.current(t):t},uniq:function(t,e){var r=[];return t.map((function(t){var n=!0;return r.map((function(r){return t[e]===r[e]&&(n=!1),!1})),n&&r.push(t),!1})),r},deepCopy:function(t){var e=Array.isArray(t)?[]:{};for(var r in t)t.hasOwnProperty(r)&&("object"===(0,n.A)(t[r])?e[r]=this.deepCopy(t[r]):e[r]=t[r]);return e},getFileUrl:function(t){return t?t.constructor===String?t:t.constructor===Object?t.props.children.props?t.props.children.props.href:t.props.owlner?t.props.owlner:t:t:t},getOptionColor:function(t,e){return e?(t&&t.forEach((function(t){t.value!==e||t.color&&(r=t.color)})),r):null;var r},getFieldItemType:function(t){return t.extType?t.extType:t.msExtType?t.msExtType:t.msType?t.msType:t.type},isEmpty:function(t){if(!t)return!0;for(var e in t)return!1;return!0},getDayjsFormat:function(t){var e="YYYY-MM-DD HH:mm:ss";switch(t){case"daterange-YY":case"date-YY":e="YYYY";break;case"date-M1":case"daterange-M1":e="YYYY-MM";break;case"date":case"daterange":e="YYYY-MM-DD";break;case"datetime-HH":case"datetimerange-HH":e="YYYY-MM-DD HH";break;case"datetime-mm":case"datetimerange-mm":e="YYYY-MM-DD HH:mm";break;case"datetime":case"datetimerange":e="YYYY-MM-DD HH:mm:ss";break;case"timestamp":e="YYYY-MM-DD HH:mm:ss SSS";break;case"time-HH":case"timerange-HH":e="HH";break;case"time-mm":case"timerange-mm":e="HH:mm";break;case"time":case"timerange":e="HH:mm:ss"}return e},getDateTimeFormat:function(t){switch(t){case"time-HH":case"timerange-HH":case"datetime-HH":case"datetimerange-HH":return"HH";case"time-mm":case"timerange-mm":case"datetime-mm":case"datetimerange-mm":return"HH:mm";case"timestamp":case"time":case"timerange":case"datetime":case"datetimerange":return"HH:mm:ss";default:return""}return""},concatValue:function(t,e){var r=void 0;return r=t?t+"~":"~",e&&(r+=e),r},splitValue:function(t){var e,r;if(t)if(t.toString().indexOf("~")>=0){var n=t.split("~");e=n[0]?n[0]:void 0,r=n[1]?n[1]:void 0}else e=t;return{valueBegin:e,valueEnd:r}},str2UTF8:function(t){var e,r,n=new Array;e=t.length;for(var o=0;o<e;o++)(r=t.charCodeAt(o))>=65536&&r<=1114111?(n.push(r>>18&7|240),n.push(r>>12&63|128),n.push(r>>6&63|128),n.push(63&r|128)):r>=2048&&r<=65535?(n.push(r>>12&15|224),n.push(r>>6&63|128),n.push(63&r|128)):r>=128&&r<=2047?(n.push(r>>6&31|192),n.push(63&r|128)):n.push(255&r);return n},joinPath:function(t,e){var r=t;return r.endsWith("/")||r.endsWith("\\")||(r+="/"),e&&(e.startsWith("/")||r.startsWith("\\")?r+=e.slice(1):r+=e),r},setProgramCode4RoutePath:function(t){var e=t.programCode;this.setProgramCode(e)},setSessionProgramCode4RoutePath:function(t){var e=t.programCode;this.setSessionProgramCode(e)}}},42061:function(t,e,r){"use strict";var n=r(42455),o=r(17636),a=(r(18128),r(96540),r(5338)),i=r(39912),c=(r(71436),r(80243)),u=r(51864),s=JSON.parse('{"hydrocarbonServer1":"/hydrogen","hydrocarbonServer":"http://localhost:9109","programName_NavLeft1":"HYDROCARBON","programName1":"旷识企业应用","programName_sub":"CARBON","programName_Logo1":"./logo.png","programCode1":"253564453860974594","programName":"旷识开发平台","programName_NavLeft":"旷识开发平台","extendServer":[{"key":"carbonthinking","programCode":"253564453860974594","hydrocarbonServer":"https://carbonthinking.kuangkie.com/"}]}'),l=r(17437);function f(){f=function(){return e};var t,e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),c=new I(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function w(){}function b(){}function A(){}var x={};l(x,c,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(T([])));L&&L!==r&&o.call(L,c)&&(x=L);var E=A.prototype=w.prototype=Object.create(x);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(a,i,c,u){var s=p(t[a],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==(0,n.A)(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=d;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=Y(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:v,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function Y(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,Y(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a<e.length;)if(o.call(e,a))return r.value=e[a],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError((0,n.A)(e)+" is not iterable")}return b.prototype=A,a(E,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:b,configurable:!0}),b.displayName=l(A,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,l(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},C(E),l(E,s,"Generator"),l(E,c,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function h(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}(0,c.ai)((0,o.A)(f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,a.H)(document.getElementById("root")),u.vr.setAppDtmplConfigFunc("229650889220097",(function(t,e){var r=t.groups[0].fields[0];return r.shouldUpdate=function(t,e){return!0},r.mainCode=function(t){return console.log("调用了 update",r.title),t.getFieldValue(r.id),t.getFieldInstance(r.id),r.id},r.updateSelf=function(t){return"11"==t.getFieldValue(0xd0ddc3aca007)?r.required=!0:r.required=!1,r},t.onValuesChange=function(t,e,r){"22"==t[0xd0ddc3aca007]&&r.setFieldValue("229650889220101",e.fieldMap[0xd0ddc3aca005]+23)},t})),u.vr.setAppDtmplConfigFunc("281357880958977",(function(t,e){var r,n=t.groups[0],o=t.groups[1],a=e?e.fieldMap[0xffe4d9aca005]:void 0,i=h(n.fields);try{for(i.s();!(r=i.n()).done;){var c=r.value;if("bf3977ff49f1946ff35366e6b3e9bd16"==c.mstrucId)if(c.shouldUpdate=function(t,e){return!0},a&&a.length>0){var u=a.split("@R@")[0];c.disabled=!1,c.mainCode=u,o.disabled=!1,o.mainCode=u}else c.disabled=!0,o.disabled=!0;else"281358369595397"==c.id&&(c.shouldUpdate=function(t,e){return!0})}}catch(t){i.e(t)}finally{i.f()}return t.onValuesChange=function(e,r,n){var o="281358369595397",a="281358369595399",i=e[o],c=t.groups[0],u=t.groups[1];if(null!=i){var s,l=h(c.fields);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(f.id==a)if(n.isFieldTouched(a),n.setFieldValue(a,[]),n.setFieldValue("$virtual281358369595402",1),i&&i.length>0){var p=i[0].split("@R@")[0];f.disabled=!1,f.mainCode=p,u.disabled=!1,u.mainCode=p}else f.disabled=!0,u.disabled=!0}}catch(t){l.e(t)}finally{l.f()}}else if(e.hasOwnProperty("$virtual281358369595402"))if(e.$virtual281358369595402>0){var d,v=h(c.fields);try{for(v.s();!(d=v.n()).done;){var y=d.value;y.id==o&&(y.disabled=!0)}}catch(t){v.e(t)}finally{v.f()}}else{var m,g=h(c.fields);try{for(g.s();!(m=g.n()).done;){var w=m.value;w.id==o&&(w.disabled=!1)}}catch(t){g.e(t)}finally{g.f()}}},t})),t.next=5,u.Fj.initProgramConfig(s);case 5:e.render((0,l.Y)(i.A,null));case 6:case"end":return t.stop()}}),t)}))))},39912:function(t,e,r){"use strict";r.d(e,{A:function(){return b}});var n=r(44274),o=r(2532),a=r(63549),i=r(91985),c=r(11504),u=r(96540),s=r(84976),l=r(47767),f=r(80243),h=r(57529),p=r(76139),d=r(51864),v=(r(8130),r(55096),r(17437));function y(t,e,r){return e=(0,i.A)(e),(0,a.A)(t,m()?Reflect.construct(e,r||[],(0,i.A)(t).constructor):e.apply(t,r))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}h.A.Text;var g=(0,v.Y)(p.A,{tip:"Loading..."}),w=(0,f.Ay)({resolved:{},chunkName:function(){return"App"},isReady:function(t){var e=this.resolve(t);return!0===this.resolved[e]&&!!r.m[e]},importAsync:function(){return Promise.all([r.e(76),r.e(180)]).then(r.bind(r,86876))},requireAsync:function(t){var e=this,r=this.resolve(t);return this.resolved[r]=!1,this.importAsync(t).then((function(t){return e.resolved[r]=!0,t}))},requireSync:function(t){var e=this.resolve(t);return r(e)},resolve:function(){return 86876}},{fallback:g}),b=function(t){function e(){return(0,n.A)(this,e),y(this,e,arguments)}return(0,c.A)(e,t),(0,o.A)(e,[{key:"render",value:function(){var t=d.vr.getCustomPage(d.vr.programCode())?u.createElement(d.vr.getCustomPage(d.vr.programCode())):(0,v.Y)(d.O4,null);return(0,v.Y)(s.I9,null,(0,v.Y)(w,null,(0,v.Y)(l.BV,null,(0,v.Y)(l.qh,{path:"login",element:(0,v.Y)(d.n9,null)}),(0,v.Y)(l.qh,{path:"login/:programCode",element:(0,v.Y)(d.n9,null)}),(0,v.Y)(l.qh,{path:"context-setter",element:(0,v.Y)(d.L,null)}),(0,v.Y)(l.qh,{path:"*",element:(0,v.Y)(d.Hu,{footer:"Enterprise Applications ©2024 Created by 恩赫集团"},(0,v.Y)(l.BV,null,(0,v.Y)(l.qh,{path:"/home/:programCode",element:t}," "),(0,v.Y)(l.qh,{path:"/home",element:t}," "),(0,v.Y)(l.qh,{path:"/page/:sourceId/:pageName",element:(0,v.Y)(d.rV,null),exact:!0}),(0,v.Y)(l.qh,{path:"/:sourceId/act-table",element:(0,v.Y)(d.RW,null),exact:!0}),(0,v.Y)(l.qh,{path:"/:sourceId/act-Tree",element:(0,v.Y)(d.Rm,null),exact:!0}),(0,v.Y)(l.qh,{path:"/:sourceId/detail-view",element:(0,v.Y)(d.L9,null),exact:!0}),(0,v.Y)(l.qh,{path:"/:sourceId/detail-edit",element:(0,v.Y)(d.L9,null),exact:!0}),(0,v.Y)(l.qh,{path:"/:sourceId/importer",element:(0,v.Y)(d.Q0,null),exact:!0}),(0,v.Y)(l.qh,{path:"/",element:t,exact:!0})))}))))}}])}(u.Component)},55096:function(t,e,r){"use strict";r.p},50477:function(){}},i={};function c(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return a[t].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.m=a,c.amdO={},t=[],c.O=function(e,r,n,o){if(!r){var a=1/0;for(l=0;l<t.length;l++){r=t[l][0],n=t[l][1],o=t[l][2];for(var i=!0,u=0;u<r.length;u++)(!1&o||a>=o)&&Object.keys(c.O).every((function(t){return c.O[t](r[u])}))?r.splice(u--,1):(i=!1,o<a&&(a=o));if(i){t.splice(l--,1);var s=n();void 0!==s&&(e=s)}}return e}o=o||0;for(var l=t.length;l>0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[r,n,o]},c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},r=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},c.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);c.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((function(e){a[e]=function(){return t[e]}}));return a.default=function(){return t},c.d(o,a),o},c.d=function(t,e){for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.f={},c.e=function(t){return Promise.all(Object.keys(c.f).reduce((function(e,r){return c.f[r](t,e),e}),[]))},c.u=function(t){return"bundle."+{16:"feaa17bec2057a4ee54f",63:"35a4af7e2d0da1942d79",76:"85ce5221fe6ab1d91f7d",87:"6fd2dadd29083268c5a6",112:"5e6cccd06b34a0e3a2ff",150:"829683dfa6a98c78c58e",180:"f3ce062a620fe456c152",374:"cd10ae07e0e0c36d0dee",390:"5a9afb9ee6cceca506fa",419:"840e28984e710e12f467",469:"8241d8d05e35988dd480",537:"4c3c988531c3cf360b87",543:"b7b86a025aa95dea0e19",613:"320c02187dd135005102",651:"3f9072b1629cdb384b46",670:"021f784b1c84781461d2",671:"d158d417d1d7a8acb2a1",689:"ddefe6d8f235ef95d470",695:"15cb660c34802f6cccf5",724:"a049dc8814bbbf59160f",809:"03c542ca824e205fe307",864:"c1c6028fd703ebf78c2e",900:"b7e3eb480b649b3de67b"}[t]+".js"},c.miniCssF=function(t){return"css/"+{76:"common",670:"chemstruc-graph",900:"html-editor-draft"}[t]+"-"+{76:"901df6b21f13391f2a53",670:"6437e59640f8b99b774f",900:"5e8e152675ab7d201c00"}[t]+".css"},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n={},o="aldehyde:",c.l=function(t,e,r,a){if(n[t])n[t].push(e);else{var i,u;if(void 0!==r)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==o+r){i=f;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",o+r),i.src=t),n[t]=[e];var h=function(e,r){i.onerror=i.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(t){return t(r)})),e)return e(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=h.bind(null,i.onerror),i.onload=h.bind(null,i.onload),u&&document.head.appendChild(i)}},c.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;c.g.importScripts&&(t=c.g.location+"");var e=c.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t}(),function(){if("undefined"!=typeof document){var t={792:0};c.f.miniCss=function(e,r){t[e]?r.push(t[e]):0!==t[e]&&{76:1,670:1,900:1}[e]&&r.push(t[e]=function(t){return new Promise((function(e,r){var n=c.miniCssF(t),o=c.p+n;if(function(t,e){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(i=r[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===t||o===e))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===t||o===e)return i}}(n,o))return e();!function(t,e,r,n,o){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",c.nc&&(a.nonce=c.nc),a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&r.type,c=r&&r.target&&r.target.href||e,u=new Error("Loading CSS chunk "+t+" failed.\n("+i+": "+c+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=i,u.request=c,a.parentNode&&a.parentNode.removeChild(a),o(u)}},a.href=e,document.head.appendChild(a)}(t,o,0,e,r)}))}(e).then((function(){t[e]=0}),(function(r){throw delete t[e],r})))}}}(),function(){var t={792:0};c.f.j=function(e,r){var n=c.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=t[e]=[r,o]}));r.push(n[2]=o);var a=c.p+c.u(e),i=new Error;c.l(a,(function(r){if(c.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+e,e)}},c.O.j=function(e){return 0===t[e]};var e=function(e,r){var n,o,a=r[0],i=r[1],u=r[2],s=0;if(a.some((function(e){return 0!==t[e]}))){for(n in i)c.o(i,n)&&(c.m[n]=i[n]);if(u)var l=u(c)}for(e&&e(r);s<a.length;s++)o=a[s],c.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return c.O(l)},r=self.webpackChunkaldehyde=self.webpackChunkaldehyde||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}(),c.nc=void 0;var u=c.O(void 0,[649,800,270,698,130,799,11,999,402,327,179,4,464],(function(){return c(42061)}));u=c.O(u)}();
|